/* APS Overview — tabbed Wikipedia-style page */

/* ---- Right sidebar ---- */
.overview-sidebar-right {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.overview-sidebar-right .research-card-link {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: block;
}

.overview-sidebar-right .research-card .card-img-top {
    aspect-ratio: 400 / 275;
    object-fit: cover;
}

.overview-sidebar-right .research-card .card-img-placeholder {
    aspect-ratio: 400 / 275;
    width: 100%;
}

/* ---- Middle content prose ---- */
.overview-content .primer-section-pane {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.02em;
    line-height: 1.7;
    color: #333;
}

.overview-content .primer-section-pane h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--aps-blue, #003366);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #e9ecef;
}

.overview-content .primer-section-pane h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Quick-facts card */
.overview-facts {
    background: #f8f9fa;
    border-left: 4px solid var(--aps-blue, #003366);
    padding: 1rem 1.25rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
}

.overview-facts dt {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.overview-facts dd {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

/* Symposium table */
.overview-symposia-table {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
}

.overview-symposia-table th {
    background: var(--aps-blue, #003366);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.overview-symposia-table td {
    vertical-align: middle;
}

.symposia-scroll {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Section title inside sidebar label */
.overview-sidebar-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    padding: 0.5rem 0.75rem 0.25rem;
    margin: 0;
}

/* Right sidebar heading */
.overview-sidebar-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 0.75rem;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .overview-sidebar-right {
        position: static;
        max-height: none;
        margin-top: 2rem;
    }

    /* Research cards in a horizontal scroll on tablet */
    .overview-sidebar-right .research-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .overview-sidebar-right .research-card-link {
        flex: 0 0 180px;
    }
}
