/* ══════════════════════════════════════════════════
   ALA CORE STYLESHEET
   Shared across all Advanced Learning Academy reports
   advancedlearning.academy | 2026
   ══════════════════════════════════════════════════ */

:root {
    --navy: #0a1628;
    --navy-light: #132038;
    --gold: #c9a227;
    --gold-light: #d4b84a;
    --gold-text: #b89630;
    --gold-text-light: #8a6d14;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --border: rgba(0,0,0,0.08);
    --sidebar-w: 280px;
    --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--serif);
    background: var(--white);
    color: #000000;
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
}

*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }
.skip-link:focus { left: 16px !important; top: 16px; border-radius: 4px; }

/* ─── Utility ─── */
.gold-text { color: var(--navy); }
.ui-text { font-family: var(--sans); }

/* ─── Sidebar Navigation ─── */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    border-right: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
}
.sidebar-brand {
    padding: 32px 24px 8px;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand h2 {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c9a227, #d4b84a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.sidebar-brand p {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 20px;
}
.sidebar-nav {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}
.sidebar-nav li { position: relative; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.sidebar-nav a:hover {
    color: var(--white);
    background: rgba(201,162,39,0.1);
}
.sidebar-nav a.active {
    color: var(--gold);
    border-left-color: var(--gold);
    background: rgba(201,162,39,0.12);
}
.sidebar-nav .nav-num {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.85;
    min-width: 18px;
}
.sidebar-nav a.active .nav-num { opacity: 1; }
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.sidebar-footer a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.7rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.sidebar-footer a:hover { color: var(--gold); }

/* ─── Mobile Hamburger ─── */
.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}
.sidebar-overlay.open { display: block; }

/* ─── Main Content Area ─── */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* ─── Top Navigation Bar ─── */
.nav:not(.sidebar-nav) {
    margin-left: var(--sidebar-w);
    background: var(--navy);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}
.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}
.nav-logo-text {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}
.nav-logo-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s;
}
.mobile-menu {
    display: none;
    background: var(--navy);
    border-bottom: 1px solid var(--border);
    margin-left: var(--sidebar-w);
    padding: 1rem 2rem;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.9rem;
}
.mobile-menu a:hover { color: var(--gold); }

/* ─── Article Hero Section ─── */
.article-hero {
    margin-left: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy) 0%, #0f1e35 100%);
    padding: clamp(3rem, 8vh, 5rem) 2rem clamp(2rem, 5vh, 3rem);
    text-align: center;
    border-bottom: 2px solid var(--gold);
    color: var(--white);
}
.article-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 1rem;
    line-height: 1.15;
}
.article-hero .subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.6);
    max-width: 750px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}
.article-hero .meta {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}
.article-hero .meta .author { color: var(--gold); }
.article-hero .read-time {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
}
.master-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--navy);
    padding: 0.3rem 1rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.article-hero .category {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}

/* ─── Hero Badges (stat cards) ─── */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 140px;
    flex: 1;
}
.badge-num {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.badge-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ─── Article Body ─── */
.article-body,
main.article-body {
    margin-left: var(--sidebar-w);
    max-width: calc(100% - var(--sidebar-w));
    padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
}
.article-body h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin: 3rem 0 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    line-height: 1.3;
}
.article-body .section-num {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.article-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: #333;
}
.article-body .section-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

/* ─── Skip Link ─── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--navy);
    z-index: 9999;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
    .article-hero, .article-body, main.article-body,
    .nav:not(.sidebar-nav), .mobile-menu {
        margin-left: 0;
    }
    .article-body, main.article-body {
        max-width: 100%;
    }
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .hero-badges { gap: 0.75rem; }
    .hero-badge { min-width: 120px; padding: 0.75rem 1rem; }
    .badge-num { font-size: 1.2rem; }
}

/* ─── Hero Section ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(201,162,39,0.06) 0%, transparent 60%);
}
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 400px;
    opacity: 0.025;
    background:
        linear-gradient(to bottom, var(--gold) 0%, var(--gold) 100%) no-repeat center top / 4px 400px,
        linear-gradient(to right, var(--gold) 0%, var(--gold) 100%) no-repeat left 30% / 200px 4px;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--sans);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c9a227 0%, #d4b84a 40%, #c9a227 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    font-style: italic;
    margin-bottom: 40px;
    line-height: 1.5;
}
.hero-stats-line {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 48px;
}
.hero-stats-line span {
    margin: 0 8px;
    color: rgba(255,255,255,0.35);
}
.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.hero-cta:hover {
    background: rgba(201,162,39,0.1);
    color: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,162,39,0.15);
}

/* ─── Methodology Statement ─── */
.methodology {
    padding: 48px 40px;
    background: var(--gray-100);
}
.methodology-box {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 40px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    position: relative;
}
.methodology-box::before {
    content: 'METHODOLOGY';
    position: absolute;
    top: -10px;
    left: 32px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #8B0000;
    background: var(--gray-100);
    padding: 0 12px;
}
.methodology-box p {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.9;
    margin-bottom: 16px;
}
.methodology-box p:last-child { margin-bottom: 0; }
.methodology-attr {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 12px;
}

/* ─── Section Divider ─── */
.section-divider {
    text-align: center;
    padding: 40px 0;
    position: relative;
}
.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-400), transparent);
    opacity: 0.3;
}
.section-divider::after {
    content: '\2020';
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 0 20px;
    color: var(--navy);
    font-size: 1.2rem;
    opacity: 0.4;
}

/* ─── Content Sections ─── */
.content-section {
    padding: 80px 48px;
    position: relative;
}
.content-section .section-inner {
    max-width: 1060px;
    margin: 0 auto;
}
.section-number {
    font-family: var(--sans);
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--navy);
    opacity: 0.08;
    line-height: 1;
    margin-bottom: 4px;
}
.section-title-bar {
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}
.section-title {
    font-family: var(--sans);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
}
.section-description {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 800px;
}

/* ─── Panels ─── */
.panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.panel-title {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    text-transform: uppercase;
}
.panel-content {
    font-size: 1rem;
    color: var(--gray-800);
    line-height: 1.8;
}

/* ─── Stat Cards ─── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}
.stat-value {
    font-family: var(--sans);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}
.stat-label {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ─── Tables ─── */
.audit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--sans);
    font-size: 0.88rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.audit-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
.audit-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}
.audit-table tbody tr:nth-child(even) { background: var(--gray-100); }
.audit-table tbody tr:nth-child(odd) { background: var(--white); }
.audit-table tbody tr:hover { background: var(--gray-200); }
.audit-table tbody tr:last-child td { border-bottom: none; }

/* ─── Highlight Box (special verdicts) ─── */
.highlight-box {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 32px 0;
    position: relative;
}
.highlight-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(201,162,39,0.15), transparent, rgba(201,162,39,0.1));
    z-index: 0;
    pointer-events: none;
}
.highlight-box .highlight-value {
    font-family: var(--sans);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c9a227, #d4b84a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}
.highlight-box .highlight-label {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--white);
    margin-top: 8px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}
.highlight-box .highlight-sub {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ─── Evidence / Science Cards ─── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.evidence-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.evidence-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.evidence-card .card-ref {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 8px;
}
.evidence-card h4 {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.evidence-card p {
    font-size: 0.9rem;
    color: var(--gray-800);
    line-height: 1.6;
}

/* ─── Pull Quotes ─── */
.pull-quote {
    margin: 32px 0;
    padding: 28px 32px;
    border-left: 4px solid var(--gold);
    background: linear-gradient(135deg, rgba(201,162,39,0.06), rgba(201,162,39,0.02));
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--gray-800);
}
.pull-quote .pq-source {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.8rem;
    font-family: var(--sans);
    color: var(--navy);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ─── Flyout CTA Boxes ─── */
.flyout-cta {
    margin: 40px 0;
    padding: 24px 32px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.flyout-cta p {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}
.flyout-cta .cta-btn {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}
.flyout-cta .cta-btn:hover { background: rgba(201,162,39,0.1); }

/* ─── Sticky Bottom CTA Bar ─── */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-w);
    right: 0;
    background: var(--navy);
    color: var(--white);
    border-top: 1px solid var(--border);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta p {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}
.sticky-cta .cta-btn {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 24px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.sticky-cta .cta-btn:hover { background: rgba(201,162,39,0.15); }

/* ─── Reader Guide ─── */
.reader-guide {
    margin: 0 0 40px 0;
    padding: 32px;
    background: var(--navy);
    border-radius: 12px;
    color: #fff;
}
.reader-guide h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.reader-guide .rg-track {
    margin-bottom: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}
.reader-guide .rg-track strong {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 4px;
}
.reader-guide .rg-track p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

/* ─── Footer ─── */
.footer {
    padding: 60px 48px;
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-brand {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

/* ─── Collapsible Nav Groups ─── */
.nav-group { list-style: none; }
.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.nav-group-header:hover { background: rgba(255,255,255,0.04); }
.nav-group-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.nav-group-header .nav-group-count {
    font-family: var(--sans);
    font-size: 0.55rem;
    color: rgba(255,255,255,0.3);
    margin-left: 8px;
}
.nav-group-chevron {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    transition: transform 0.25s;
}
.nav-group.collapsed .nav-group-chevron { transform: rotate(-90deg); }
.nav-group-items {
    list-style: none;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease;
}
.nav-group.collapsed .nav-group-items { max-height: 0; }
.nav-group.has-active .nav-group-label { color: var(--gold); }

/* ─── Sidebar Search ─── */
.sidebar-search {
    padding: 12px 20px;
    position: relative;
}
.sidebar-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.78rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,0.4); }
.sidebar-search input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
}
.sidebar-search .search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    pointer-events: none;
}
.sidebar-search .search-hint {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

/* ─── Sidebar Progress ─── */
.sidebar-progress {
    padding: 0 24px 8px;
    font-family: var(--sans);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
}

/* ─── Prev / Next Arrows ─── */
.sidebar-arrows {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-arrows button {
    flex: 1;
    padding: 7px 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-family: var(--sans);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.sidebar-arrows button:hover:not(:disabled) {
    background: rgba(201,162,39,0.12);
    color: var(--gold);
}
.sidebar-arrows button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: var(--navy);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* ─── Hamburger Badge ─── */
.hamburger-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 0.55rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ─── Search Filtering ─── */
.search-hidden { display: none !important; }
.search-match .nav-group-items a { color: rgba(255,255,255,0.85); }
.search-no-match { text-align: center; padding: 16px 24px; color: rgba(255,255,255,0.4); font-family: var(--sans); font-size: 0.75rem; display: none; }
.search-no-match.visible { display: block; }

/* ─── Panel Content Spacing ─── */
.panel-content p { margin-bottom: 14px; }
.panel-content p:last-child { margin-bottom: 0; }
.panel-content ul, .panel-content ol { margin: 14px 0 14px 24px; }
.panel-content li { margin-bottom: 8px; }
.panel-content h4 { color: var(--navy); font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 20px 0 8px; }
.panel-content h4:first-child { margin-top: 0; }

/* ─── Stunning Findings ─── */
.stunning-findings {
    margin-top: 40px;
    padding: 28px 32px;
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.03), rgba(201,162,39,0.04));
}
.stunning-findings .sf-header {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}
.stunning-findings .sf-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: baseline;
}
.stunning-findings .sf-item:last-child { margin-bottom: 0; }
.stunning-findings .sf-number {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--navy);
    min-width: 22px;
    flex-shrink: 0;
}
.stunning-findings .sf-text {
    font-size: 0.92rem;
    color: var(--gray-800);
    line-height: 1.7;
}

/* ─── Print ─── */
@media print {
    .sidebar, .hamburger, .sidebar-overlay, .sticky-cta, .back-to-top, .flyout-cta { display: none !important; }
    .main { margin-left: 0 !important; }
    .hero { min-height: auto; padding: 40px 20px; }
    .content-section { padding: 30px 20px; page-break-inside: avoid; }
    .panel, .evidence-card, .gem-card, .stunning-findings { break-inside: avoid; }
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .gem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .hamburger { display: flex; }
    .main { margin-left: 0; }
    .sticky-cta { left: 0; }

    .hero { padding: 60px 24px; min-height: 100vh; }
    .hero h1 { font-size: 2.4rem; letter-spacing: 3px; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats-line { font-size: 0.72rem; }
    .hero-stats-line span { margin: 0 4px; }

    .content-section { padding: 60px 24px; }
    .section-number { font-size: 3rem; }
    .section-title { font-size: 1.3rem; }

    .methodology { padding: 32px 20px; }
    .methodology-box { padding: 24px 20px; }

    .card-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .gem-grid { grid-template-columns: 1fr; }
    .panel { padding: 24px 20px; }
    .stunning-findings { padding: 20px 16px; margin-top: 32px; }

    .flyout-cta { flex-direction: column; text-align: center; }

    .footer { padding: 40px 24px; }
    .footer-links { gap: 16px; }

    .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }
    .sidebar-search input { font-size: 16px; }
    .nav-group-header { padding: 12px 24px; }
    .sidebar-nav a { padding: 12px 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; letter-spacing: 2px; }
    .stat-grid { grid-template-columns: 1fr; }
    .section-number { font-size: 2.5rem; }
    .section-title { font-size: 1.15rem; }
    .panel { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════════════
   D3.js INTERACTIVE VISUALIZATIONS
   ═══════════════════════════════════════════════════ */
.viz-container {
    background: var(--navy);
    color: var(--white);
    border-radius: 12px;
    padding: 2em 2.5em;
    margin: 2.5em 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    max-height: 600px;
}
.viz-container h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.3em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.viz-container .viz-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.5em;
    font-family: var(--sans);
}
.viz-container .viz-source {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-top: 1.2em;
    font-family: var(--sans);
    font-style: italic;
}
.viz-container svg { width: 100%; height: auto; display: block; max-height: 500px; }
.viz-tooltip {
    position: fixed;
    pointer-events: none;
    background: #0d1b2a;
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.9);
    max-width: 280px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.5;
}
.viz-tooltip.visible { opacity: 1; }
.viz-tooltip strong { color: var(--gold); }
.viz-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 1em;
    justify-content: center;
}
.viz-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-family: var(--sans);
}
.viz-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.timeline-bar { cursor: pointer; transition: opacity 0.15s; }
.timeline-bar:hover { opacity: 0.85; }
.timeline-label { font-family: var(--sans); font-size: 0.68rem; fill: rgba(255,255,255,0.7); }
.timeline-axis text { font-family: var(--sans); font-size: 0.7rem; fill: rgba(255,255,255,0.5); }
.timeline-axis line, .timeline-axis path { stroke: rgba(255,255,255,0.15); }
.stat-value[data-count-to] { transition: color 0.3s; }
@media (max-width: 640px) {
    .viz-container { padding: 1.5em 1.2em; }
    .viz-legend { gap: 0.6em; }
    .viz-legend-item { font-size: 0.68rem; }
}
@media print { .viz-container { display: none; } }
    </style>


/* ══════════════════════════════════════════════════
   READABILITY OVERRIDES
   Fixes per ALA Readability Specification v1.0
   ══════════════════════════════════════════════════ */

/* Fix #1: Citation links — accessible blue, not gold */
.panel-content a,
.evidence-card a,
.methodology-box a,
sup a,
a.citation-link {
    color: #1a56db;
    font-weight: 400;
    font-size: 13px;
}
.panel-content a:visited,
.evidence-card a:visited,
sup a:visited,
a.citation-link:visited {
    color: #7e3af2;
}
.panel-content a:hover,
.evidence-card a:hover,
sup a:hover,
a.citation-link:hover {
    color: #1e429f;
    text-decoration: underline;
}

/* Fix #2: Section scores — black pill badges */
.score-badge,
.section-score {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    vertical-align: middle;
    margin-left: 8px;
}

/* Fix #3: Subsection scores */
.subsection-score {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}
.subsection-header {
    background: #F5F5F5;
    border: 1px solid #CCCCCC;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fix #4: Progress bars — consistent, numeric labels, no gradients */
.progress-bar,
.score-bar {
    height: 10px;
    border-radius: 5px;
    background: #E5E7EB;
    overflow: hidden;
    flex: 1;
}
.progress-bar .fill,
.score-bar .fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.progress-bar .fill.high,
.score-bar .fill.high { background: #1a7f37; }
.progress-bar .fill.mid,
.score-bar .fill.mid { background: #b45309; }
.progress-bar .fill.low,
.score-bar .fill.low { background: #b91c1c; }
.progress-label {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    min-width: 48px;
    text-align: right;
}

/* Fix #5: Metric title differentiation */
.metric-title {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    display: block;
    margin-bottom: 4px;
}
.metric-description {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
}

/* Fix #6: Score badge alignment */
.metric-row {
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 8px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #E5E7EB;
}
.metric-row:last-child { border-bottom: none; }
.metric-row:hover { background: #F9FAFB; }
.metric-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--sans);
}

/* Fix #7: Metric count label */
.metric-count {
    color: #000000;
    font-size: 13px;
    font-weight: 400;
    font-family: var(--sans);
}

/* Fix #10: Citation block formatting */
.citation-block {
    display: block;
    padding-top: 8px;
    border-top: 1px solid #E5E7EB;
    margin-top: 8px;
}
.citation-block .citation-label {
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}
.citation-block a {
    display: block;
    font-size: 13px;
    color: #1a56db;
    line-height: 1.6;
}

/* Fix #11: Metric row visual separation (enforced globally) */
.metric-item {
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
}
.metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Ensure all data/score text is black and bold */
.stat-value,
.score-value,
[data-score] {
    color: #000000;
    font-weight: 700;
}

/* Sidebar nav links keep gold styling (decorative, not data) */
.sidebar-nav a,
.sidebar-footer a,
.footer-links a,
.hero-cta,
.flyout-cta .cta-btn,
.sticky-cta .cta-btn {
    color: inherit;
}
.sidebar-nav a { color: rgba(255,255,255,0.85); }
.sidebar-nav a.active { color: var(--gold); }
.sidebar-footer a { color: rgba(255,255,255,0.7); }
.footer-links a { color: rgba(255,255,255,0.8); }
.hero-cta { color: var(--gold); }
.flyout-cta .cta-btn { color: var(--gold); }
.sticky-cta .cta-btn { color: var(--gold); }
.sidebar-footer a:hover,
.footer-links a:hover { color: var(--gold); }

/* No text below 13px baseline */
small, .small { font-size: 13px; }

/* ─── Cookie Consent Banner ─── */
.ala-cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:99999;padding:0 16px 16px;opacity:0;transition:opacity .4s ease;pointer-events:none}
.ala-cookie-banner.ala-cookie-visible{opacity:1;pointer-events:auto}
.ala-cookie-inner{max-width:1200px;margin:0 auto;background:rgba(26,26,46,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:8px;box-shadow:0 -4px 24px rgba(0,0,0,.3);padding:20px;display:flex;align-items:center;gap:20px}
.ala-cookie-text{flex:0 1 70%}
.ala-cookie-msg{color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;line-height:1.5;margin:0 0 4px}
.ala-cookie-learn{color:rgba(255,255,255,.5);font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:12px;margin:0}
.ala-cookie-link{color:var(--gold);text-decoration:underline}
.ala-cookie-actions{flex:0 0 30%;display:flex;gap:10px;justify-content:flex-end}
.ala-cookie-btn-accept{background:var(--gold);color:#fff;border:none;padding:10px 24px;border-radius:6px;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s}
.ala-cookie-btn-accept:hover{opacity:.9}
.ala-cookie-btn-prefs{background:transparent;color:var(--gold);border:1px solid var(--gold);padding:10px 24px;border-radius:6px;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s}
.ala-cookie-btn-prefs:hover{opacity:.8}
.ala-cookie-panel{max-width:1200px;margin:12px auto 0;background:rgba(26,26,46,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:8px;box-shadow:0 -4px 24px rgba(0,0,0,.3);padding:24px;display:none}
.ala-cookie-panel.ala-cookie-panel-open{display:block}
.ala-cookie-panel-title{color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:16px;font-weight:600;margin:0 0 16px}
.ala-cookie-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.ala-cookie-row:last-of-type{border-bottom:none}
.ala-cookie-row-info{flex:1;padding-right:16px}
.ala-cookie-row-name{color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;font-weight:500;display:block;margin-bottom:2px}
.ala-cookie-row-desc{color:rgba(255,255,255,.5);font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:12px;display:block}
.ala-cookie-toggle{width:44px;height:24px;border-radius:12px;position:relative;flex-shrink:0}
.ala-cookie-toggle-on{background:var(--gold);opacity:.5;cursor:not-allowed}
.ala-cookie-toggle-knob{width:18px;height:18px;background:#fff;border-radius:50%;position:absolute;top:3px;right:3px}
.ala-cookie-panel-note{color:rgba(255,255,255,.4);font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:12px;margin:16px 0;line-height:1.4}
.ala-cookie-btn-save{background:var(--gold);color:#fff;border:none;padding:10px 24px;border-radius:6px;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;font-weight:600;cursor:pointer;width:100%;transition:opacity .2s}
.ala-cookie-btn-save:hover{opacity:.9}
@media(max-width:768px){.ala-cookie-inner{flex-direction:column;gap:16px}.ala-cookie-text{flex:1 1 100%}.ala-cookie-actions{flex:1 1 100%;width:100%;justify-content:stretch}.ala-cookie-btn-accept,.ala-cookie-btn-prefs{flex:1}}

/* ══════════════════════════════════════════════════
   DARK BACKGROUND TEXT — COMPREHENSIVE OVERRIDE
   Every element with a dark/navy background MUST
   have white or light text. This catches anything
   that might inherit body { color: #000 }.
   ══════════════════════════════════════════════════ */

/* All containers with navy/dark backgrounds → white text */
.sidebar,
.hero,
.methodology-box,
.highlight-box,
.sticky-cta,
.reader-guide,
.footer,
.viz-container,
.back-to-top,
.panel[style*="navy"],
.card[style*="navy"],
div[style*="background:var(--navy)"],
div[style*="background: var(--navy)"],
div[style*="background:#0a1628"],
div[style*="background: #0a1628"] {
    color: var(--white);
}

/* Hero stat numbers and labels (on dark hero background) */
.hero-stat .num,
.hero-badges .num,
.hero-stat .label,
.hero-badges .label,
.hero-stats .num,
.hero-stats .label {
    color: var(--white);
}
.hero-stat .num,
.hero-badges .num,
.hero-stats .num {
    color: var(--gold);
}

/* All paragraphs/text inside dark containers */
.hero p,
.hero h1,
.hero h2,
.hero h3,
.hero span,
.methodology-box p,
.methodology-box h3,
.methodology-box h4,
.highlight-box p,
.highlight-box h3,
.highlight-box span,
.reader-guide p,
.reader-guide span,
.footer p,
.footer span,
.footer li,
.viz-container p,
.viz-container span,
.viz-container h3,
.sticky-cta span {
    color: inherit;
}

/* Links inside dark containers — light gold, not blue */
.sidebar a,
.hero a,
.methodology-box a,
.highlight-box a,
.sticky-cta a,
.reader-guide a,
.footer a,
.viz-container a,
.back-to-top a {
    color: var(--gold);
}

/* Panel-title gold underline border inherited correctly */
.methodology-box .panel-title,
.highlight-box .highlight-label,
.highlight-box .highlight-sub {
    color: var(--white);
}

/* Stat values on hero/dark backgrounds override the #000 rule */
.hero .stat-value,
.hero .score-value {
    color: var(--gold);
}

/* ─── Chart Wrappers ─── */
.chart-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
    max-height: 550px;
}
.chart-wrapper canvas {
    max-height: 480px !important;
    height: auto !important;
    width: 100% !important;
}
.chart-tall {
    max-height: 780px;
}
.chart-tall canvas {
    max-height: 700px !important;
}
.chart-title {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}
.chart-source {
    font-family: var(--sans);
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 12px;
}

/* ─── Stat Grid / Stat Cards ─── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}
.stat-value {
    display: block;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.stat-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Evidence Cards ─── */
.evidence-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
}
.evidence-card h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* ─── Warning Box ─── */
.warning-box {
    background: rgba(192,57,43,0.06);
    border: 1px solid rgba(192,57,43,0.2);
    border-left: 4px solid #c0392b;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

/* ─── Highlight Box ─── */
/* Note: .highlight-box base styles (navy bg, gold border) defined earlier in this file */

/* ─── Audit Tables ─── */
.audit-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: var(--sans);
    font-size: 0.85rem;
}
.audit-table th {
    background: var(--navy);
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}
.audit-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #333;
}
.audit-table tr:hover td {
    background: #f8fafc;
}

/* ─── BioAge CTA blocks (used in Fountain of Youth + other reports) ─── */
.bioage-cta {
    background: linear-gradient(135deg, #0a1628 0%, #162840 100%);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
}
.bioage-cta h3,
.bioage-cta h4,
.bioage-cta p,
.bioage-cta span {
    color: #ffffff;
}
.bioage-cta p {
    color: rgba(255,255,255,0.7);
}

/* ─── Standalone CTA button ─── */
.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.cta-btn:hover {
    background: #d4b84a;
    transform: translateY(-1px);
    text-decoration: none;
}
