/* ============================================
   American Dollar Story — Styles
   Navy blue + gold Liberty dollar aesthetic
   ============================================ */

:root {
    --bg-dark: #0D1B2A;
    --bg-card: #1B2A4A;
    --bg-surface: #243B5E;
    --navy: #1B2A4A;
    --navy-deep: #0D1B2A;
    --red: #B22234;
    --red-light: #D4374A;
    --gold: #C9A84C;
    --gold-light: #E0C56A;
    --gold-dark: #A8882E;
    --brass: #D4A843;
    --white: #F0F0F0;
    --text-primary: #E8ECF0;
    --text-secondary: #9AABBF;
    --text-muted: #5E7489;
    --border: rgba(201, 168, 76, 0.15);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --radius: 12px;
    --max-width: 1200px;
}

[data-theme="dark"] {
    --bg-dark: #050a12;
    --bg-card: #0a1424;
    --bg-surface: #0d1a30;
    --navy: #0a1424;
    --navy-deep: #050a12;
    --red: #a82232;
    --red-light: #c2344a;
    --gold: #b89642;
    --gold-light: #d0b05a;
    --gold-dark: #968030;
    --brass: #c2983f;
    --white: #e8e8f0;
    --text-primary: #e8e8f0;
    --text-secondary: #9aaabf;
    --text-muted: #5e7489;
    --border: rgba(201, 168, 76, 0.25);
    --shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.theme-toggle {
    display: flex;
    align-items: center;
}
.theme-toggle .switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.theme-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.theme-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #5e7489;
    transition: .4s;
    border-radius: 26px;
}
.theme-toggle .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--gold);
}
input:checked + .slider:before {
    transform: translateX(22px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.accent { color: var(--gold); }

/* ---- SVG Flag Icons ---- */
.flag-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

/* ---- Ad Slots ---- */
.ad-slot {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 20px;
    text-align: center;
}
.ad-placeholder {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 14px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ad-header { padding-top: 12px; }

/* ---- Header ---- */
header {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 27, 42, 0.95);
}
nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.nav-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--accent);
}
.nav-links .sister-link {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}
.nav-links .sister-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #d4a843;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav { position: relative; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark, #0a0e1a);
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        border-bottom: 1px solid rgba(212,168,67,0.2);
        z-index: 1000;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a { display: block !important; font-size: 1rem; }
}

/* ---- Hero ---- */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 70vh;
}
.hero-content {
    flex: 1;
    min-width: 280px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.hero-cta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ---- Salary Input ---- */
.salary-input-wrapper {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.salary-input-wrapper label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.salary-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    width: 170px;
    outline: none;
    transition: border-color 0.2s;
}
.salary-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.salary-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    width: 100%;
    margin-top: 4px;
}

/* ---- Coin Container ---- */
.coin-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    max-width: 550px;
}

/* ---- DOLLAR COIN EFFECT ---- */
.coin-outer-ring {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 235, 170, 0.3), transparent 60%),
        conic-gradient(
            from 0deg,
            #A8882E 0deg, #C9A84C 6deg, #E0C56A 10deg, #C9A84C 14deg, #A8882E 20deg,
            #C9A84C 26deg, #E0C56A 30deg, #C9A84C 34deg, #A8882E 40deg,
            #C9A84C 46deg, #E0C56A 50deg, #C9A84C 54deg, #A8882E 60deg,
            #C9A84C 66deg, #E0C56A 70deg, #C9A84C 74deg, #A8882E 80deg,
            #C9A84C 86deg, #E0C56A 90deg, #C9A84C 94deg, #A8882E 100deg,
            #C9A84C 106deg, #E0C56A 110deg, #C9A84C 114deg, #A8882E 120deg,
            #C9A84C 126deg, #E0C56A 130deg, #C9A84C 134deg, #A8882E 140deg,
            #C9A84C 146deg, #E0C56A 150deg, #C9A84C 154deg, #A8882E 160deg,
            #C9A84C 166deg, #E0C56A 170deg, #C9A84C 174deg, #A8882E 180deg,
            #C9A84C 186deg, #E0C56A 190deg, #C9A84C 194deg, #A8882E 200deg,
            #C9A84C 206deg, #E0C56A 210deg, #C9A84C 214deg, #A8882E 220deg,
            #C9A84C 226deg, #E0C56A 230deg, #C9A84C 234deg, #A8882E 240deg,
            #C9A84C 246deg, #E0C56A 250deg, #C9A84C 254deg, #A8882E 260deg,
            #C9A84C 266deg, #E0C56A 270deg, #C9A84C 274deg, #A8882E 280deg,
            #C9A84C 286deg, #E0C56A 290deg, #C9A84C 294deg, #A8882E 300deg,
            #C9A84C 306deg, #E0C56A 310deg, #C9A84C 314deg, #A8882E 320deg,
            #C9A84C 326deg, #E0C56A 330deg, #C9A84C 334deg, #A8882E 340deg,
            #C9A84C 346deg, #E0C56A 350deg, #C9A84C 354deg, #A8882E 360deg
        );
    box-shadow:
        0 0 0 3px #A8882E,
        0 0 0 5px #7A6420,
        inset 0 0 12px rgba(0,0,0,0.3),
        0 8px 40px rgba(201, 168, 76, 0.2),
        0 2px 12px rgba(0,0,0,0.5);
    position: relative;
}
.coin-outer-ring::before {
    content: '';
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.35);
    pointer-events: none;
    z-index: 5;
}
.coin-inner {
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}
.coin-inner svg { display: block; }
.coin-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 235, 170, 0.1) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 235, 170, 0.04) 100%
    );
    pointer-events: none;
    z-index: 10;
}

/* ---- Stars decoration around coin ---- */
.coin-stars {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 6;
}

/* ---- Stats Bar ---- */
.stats-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
    opacity: 0;
    transition: opacity 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.35);
}
.stat-card:hover::before { opacity: 1; }
.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- Personal Tax Receipt ---- */
.tax-receipt {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
    animation: fadeInUp 0.6s ease-out;
}
.tax-receipt h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}
.receipt-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.receipt-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    flex: 1;
    min-width: 180px;
    text-align: center;
}
.receipt-summary-card .receipt-big {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
}
.receipt-summary-card .receipt-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}
.receipt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.receipt-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.15s, border-color 0.2s;
    cursor: pointer;
}
.receipt-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.35);
}
.receipt-card-color {
    width: 6px;
    height: 40px;
    border-radius: 3px;
    flex-shrink: 0;
}
.receipt-card-info { flex: 1; }
.receipt-card-name {
    font-size: 0.9rem;
    font-weight: 500;
}
.receipt-card-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.receipt-card-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}
.receipt-footer {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.share-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-dark);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}
.receipt-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .receipt-grid { grid-template-columns: 1fr; }
    .receipt-summary { flex-direction: column; }
}

/* ---- Per-Dollar Breakdown ---- */
.per-dollar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}
.per-dollar h2, .sankey-section h2, .revenue-section h2, .methodology h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}
.dollar-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}
.dollar-bar-row:hover {
    background: rgba(201, 168, 76, 0.06);
    transform: translateX(4px);
}
.dollar-bar-label {
    width: 190px;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.dollar-bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 16px;
    position: relative;
}
.dollar-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}
.dollar-bar-value {
    width: 80px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    flex-shrink: 0;
}
.dollar-bar-personal {
    width: 100px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ---- Sankey ---- */
.sankey-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 60px;
    animation: fadeInUp 0.5s ease-out;
}
.back-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: all 0.2s;
}
.back-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}
/* Sankey toolbar */
.sankey-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.sankey-toolbar .back-btn {
    margin-bottom: 0;
}
.fullscreen-btn {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-left: auto;
}
.fullscreen-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
}
.fullscreen-exit-btn {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    background: rgba(13, 27, 42, 0.9);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.fullscreen-exit-btn:hover {
    background: rgba(201, 168, 76, 0.2);
}

/* Fullscreen mode */
.sankey-fullscreen {
    background: var(--bg-dark) !important;
    padding: 20px !important;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
}
.sankey-fullscreen .fullscreen-exit-btn {
    display: block;
}
.sankey-fullscreen .fullscreen-btn {
    display: none;
}
.sankey-fullscreen .sankey-container {
    flex: 1;
    overflow: auto;
}
.sankey-fullscreen .sankey-container svg {
    min-width: auto;
    width: 100%;
    height: auto;
}

.sankey-container {
    width: 100%;
    overflow-x: auto;
}
.sankey-container svg { min-width: 700px; }
.sankey-node rect { cursor: default; }
.sankey-node text { fill: var(--text-primary); font-size: 12px; }
.sankey-link {
    fill: none;
    stroke-opacity: 0.25;
    transition: stroke-opacity 0.2s;
}
.sankey-link:hover { stroke-opacity: 0.5; }

/* ---- Revenue ---- */
.revenue-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}
.revenue-chart-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.revenue-chart {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}
.revenue-legend {
    flex: 1;
    min-width: 250px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    transition: background 0.15s;
}
.legend-item:hover { background: rgba(201, 168, 76, 0.04); }
.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}
.legend-value {
    margin-left: auto;
    color: var(--gold);
    font-weight: 500;
}

/* ---- Methodology ---- */
.methodology {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
    border-top: 1px solid var(--border);
}
.methodology p {
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.data-source {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
}
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-disclaimer {
    margin-top: 4px;
    font-size: 0.75rem !important;
}
.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-sources {
    margin-top: 16px;
    font-size: 0.75rem !important;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Tooltip ---- */
.tooltip {
    position: fixed;
    pointer-events: none;
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 200;
    max-width: 300px;
    line-height: 1.5;
}
.tooltip.visible { opacity: 1; }
.tooltip .tt-title {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
}
.tooltip .tt-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 20px;
        gap: 30px;
        min-height: auto;
    }
    .coin-container { max-width: 100%; min-width: 0; width: 100%; }
    .dollar-bar-label { width: 130px; font-size: 0.8rem; }
    .dollar-bar-value { width: 55px; font-size: 0.8rem; }
    .dollar-bar-personal { width: 75px; font-size: 0.75rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .nav-subtitle { display: none; }
    .revenue-chart-container { flex-direction: column; }
    .salary-input-wrapper { justify-content: center; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 1.3rem; }
    .dollar-bar-personal { display: none; }
}

/* ---- Source Citations ---- */
.source-citation {
    display: inline-block;
    cursor: help;
    color: var(--gold);
    font-size: 0.85rem;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.source-citation:hover {
    opacity: 1;
}
.sankey-source-citation {
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.source-icon {
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}
.data-sources-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.data-sources-bar .source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    transition: border-color 0.2s;
}
.data-sources-bar .source-badge:hover {
    border-color: rgba(201, 168, 76, 0.3);
}
.data-sources-bar a {
    color: var(--text-secondary);
    text-decoration: none;
}
.data-sources-bar a:hover {
    color: var(--gold);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes coinGlow {
    0%, 100% { box-shadow: 0 0 0 3px #A8882E, 0 0 0 5px #7A6420, inset 0 0 12px rgba(0,0,0,0.3), 0 8px 40px rgba(201,168,76,0.2), 0 2px 12px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 0 3px #A8882E, 0 0 0 5px #7A6420, inset 0 0 12px rgba(0,0,0,0.3), 0 8px 50px rgba(201,168,76,0.32), 0 2px 12px rgba(0,0,0,0.5); }
}
.coin-outer-ring { animation: coinGlow 4s ease-in-out infinite; }
.hero-content { animation: fadeInUp 0.8s ease-out; }
.coin-container { animation: fadeInUp 0.8s ease-out 0.2s both; }
.stat-card { animation: fadeInUp 0.5s ease-out both; }
.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.5s; }
.stat-card:nth-child(4) { animation-delay: 0.6s; }
.stat-card:nth-child(5) { animation-delay: 0.7s; }

/* ---- Content Articles ---- */
.content-article {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
    border-top: 1px solid var(--border);
}
.content-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}
.content-article .section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}
.article-body {
    max-width: 800px;
}
.article-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}
.article-body h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 32px 0 12px;
    font-weight: 600;
}
.article-body ul {
    color: var(--text-secondary);
    margin: 12px 0 20px 24px;
    line-height: 1.75;
}
.article-body ul li {
    margin-bottom: 8px;
}
.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body a:hover {
    color: var(--accent-light, #E0C56A);
}
.dept-article {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dept-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.dept-article h3 {
    margin-top: 0;
}
.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-item h3 {
    margin-top: 0;
    cursor: default;
}
