:root {
    --primary-color: #1a73e8;
    --text-main: #202124;
    --text-muted: #5f6368;
    --border-color: #1A96C6;
    --bg-light: #f8f9fa;
}

/* Tighter & Densified Dashboard Matrix */
.scholar-dashboard-container{
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    width: 700px;
    margin: 0 auto;
    margin-bottom: 20px;
}
.scholar-dashboard-container h2{
    text-align: center;
    margin: 5px 0;
    font-size: 1.1rem;
}

.scholar-dashboard-container .dashboard{
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 1.5fr;
    gap: 10px;
    padding: 5px 10px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .scholar-dashboard-container .dashboard { grid-template-columns: 1fr; gap: 16px; }
}

/* Compact Metrics Table */
.scholar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.scholar-table th {
    text-align: right;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 8px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3px;
}
.scholar-table th:first-child { text-align: left; }
.scholar-table td {
    padding: 6px 8px;
    text-align: right;
    border-top: 1px solid #f1f3f4;
    color: #3c4043;
}
.scholar-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-main);
}
.scholar-table tr.main-row td {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
}

/* Bulletproof Dynamic Graph Layout Components */
.graph-wrapper-outer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    height: 130px; /* Fixed height envelope container */
    padding: 0 4px;
}
.graph-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Keeps components stacked cleanly from the bottom up */
    flex: 1;
    min-width: 22px;
    height: 100%;
}
.graph-bar {
    width: 70%;
    max-width: 24px;
    background: linear-gradient(to top, #4285f4, #669df6);
    border-radius: 2px 2px 0 0;
    transition: background 0.15s ease-in-out;
    margin-bottom: 2px; /* Slight gap over the baseline border */
}
.graph-bar-wrapper:hover .graph-bar {
    background: linear-gradient(to top, #1a73e8, #4285f4);
}
.bar-label-val {
    font-size: 9px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1;
}
.bar-label-year {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
    line-height: 1;
}
#google-scholar-link {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    padding-top: 5px;
    border-top: 1px solid #f1f3f4;

}
.cache-timestamp{
    grid-column: 1 / -1;
    font-size: 11px;
    color: var(--text-muted);
}

/* Streamlined Structural Publication Typography Layouts */
.year-section {
    font-weight: 700;
    /*color: #0F5671;*/
    margin-top: 5px;
    margin-bottom: 0px;
}
.pub-row {
    padding: 10px 0;
    border-bottom: 1px solid #1A96C6;
}
.publication-group > .pub-row:last-child { border-bottom: none; }

.pub-title{
    /*font-size: 0.9rem;*/
    font-weight: 600;
    margin-bottom: 2px;
}

.my-contribution{
    /*font-size: 0.9rem;*/
}

.pub-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.author-highlight {
    font-weight: 600;
    color: #000000;
    background-color: #fffde7;
    padding: 0 1px;
    border-radius: 1px;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 6px;
    font-weight: 500;
}
.badge-official {
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #c2e7ff;
}
.badge-official:hover { background: #d2e3fc; }

.badge-preprint {
    background: #f1f3f4;
    color: #3c4043;
    border: 1px solid #dadce0;
}
.badge-preprint:hover { background: #e8eaed; }

.badge-doi { background: #e8f0fe; color: #1a73e8; border: 1px solid #c2e7ff; }
.badge-pdf { background: #e6f4ea; color: #137333; border: 1px solid #c4eed0; }

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    scroll-margin-top: 110px !important;
}
