/* Sunshine Data — Full Redesign v11 */

/* ── CSS Variables ── */
:root {
    --brand-teal: #1a7a6d;
    --brand-dark: #145f55;
    --brand-deep: #0d3d38;
    --gold: #e8a020;
    --gold-hover: #d4911a;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-muted: #5a5a5a;
    --text-light: #8a8a8a;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

::selection { background: var(--brand-teal); color: var(--white); }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--brand-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation is now in /static/css/header.css — DO NOT add nav styles here */

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background:
        linear-gradient(180deg, rgba(13,61,56,0.72) 0%, rgba(13,61,56,0.50) 50%, rgba(13,61,56,0.75) 100%),
        url('/static/images/shutterstock_2602660931.jpg');
    background-size: cover;
    background-position: center 40%;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-block;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--white);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 6px 18px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero h1 em {
    font-style: italic;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 20px);
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    padding: 18px 52px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,160,32,0.4);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(232,160,32,0.5);
    text-decoration: none;
    color: var(--white);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 32px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
    text-decoration: none;
    color: var(--white);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--cream));
    pointer-events: none;
}

/* ── Stats Bar ── */
.stats-wrap {
    background: var(--brand-deep);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 8px;
    position: relative;
}

.stat + .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.stat a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    white-space: nowrap;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    line-height: 1.3;
}

.stats-context {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    padding: 16px 24px 0;
}

/* ── Three Pillars (Features) ── */
.pillars {
    padding: 80px 24px;
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.pillars .pillar-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 500px;
    justify-self: center;
}

.pillar-card {
    background: var(--white);
    border-radius: 14px;
    padding: 36px 32px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.pillar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pillar-icon {
    font-size: 36px;
    line-height: 1;
}

.pillar-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    padding: 4px 10px;
}
.pillar-pill.live {
    background: rgba(26,122,109,0.1);
    color: var(--brand-teal);
}
.pillar-pill.coming-soon {
    background: rgba(0,0,0,0.06);
    color: var(--text-muted);
}
.pillar-pill.requested {
    background: rgba(232,160,32,0.1);
    color: var(--gold);
}
.pillar-pill.early-access {
    background: rgba(232,160,32,0.1);
    color: var(--gold);
}
.pillar-pill.new {
    background: rgba(26,122,109,0.1);
    color: var(--brand-teal);
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.pillar-btn {
    display: inline-block;
    margin-top: 16px;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(232,160,32,0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}
.pillar-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--white);
}

.pillar-btn-muted {
    display: inline-block;
    margin-top: 16px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.pillar-btn-muted:hover {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

/* ── Know Before Everyone Else ── */
.insight {
    padding: 0 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.insight-card {
    background: linear-gradient(135deg, rgba(26,122,109,0.06), rgba(26,122,109,0.02));
    border-radius: 16px;
    padding: 56px 48px;
    border-left: 4px solid var(--brand-teal);
}

.insight-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 400;
    color: var(--brand-dark);
    margin-bottom: 20px;
}

.insight-card p {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 400;
}

/* ── Financial Explorer CTA Banner ── */
.explorer-cta {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 100%);
    padding: 72px 24px;
    text-align: center;
}
.explorer-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}
.explorer-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}
.explorer-cta p {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 32px;
}
.explorer-cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    padding: 16px 44px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,160,32,0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.explorer-cta-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(232,160,32,0.5);
    text-decoration: none;
    color: var(--white);
}

/* ── Built For Section ── */
.audience {
    background: var(--white);
    padding: 80px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.audience-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.audience-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 400;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.audience-inner .audience-sub {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.audience-item .audience-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.audience-item .audience-role {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.audience-item .audience-benefit {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Bottom CTA ── */
.bottom-cta {
    background: var(--brand-deep);
    padding: 56px 24px 40px;
    text-align: center;
}

.bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
}

.bottom-cta .cta-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    margin-bottom: 28px;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cta-form input[type="email"] {
    flex: 1 1 280px;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 16px;
    font-family: var(--font-body);
}
.cta-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}
.cta-form input[type="email"]:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

.cta-form button {
    background: var(--gold);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    padding: 16px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(232,160,32,0.3);
    transition: background 0.2s ease;
}
.cta-form button:hover {
    background: var(--gold-hover);
}

.signup-feedback {
    margin-top: 16px;
    font-size: 15px;
    min-height: 1.5rem;
    text-align: center;
}
.signup-feedback.success { color: #a8e6cf; font-weight: 600; }
.signup-feedback.error   { color: #ffb3b3; }

/* ── FAF Partner Badge ── */
.faf-badge {
    background: var(--brand-deep);
    text-align: center;
    padding: 1.25rem 0;
    border-top: 0.5px solid rgba(255,255,255,0.12);
}
.faf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.faf-link:hover { opacity: 1; }
.faf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}
.faf-text {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}
.faf-text strong {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ── Footer ── */
footer {
    background: var(--cream);
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}
footer a {
    color: var(--brand-teal);
    font-weight: 500;
}

/* ── Login Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}

.modal-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    background: #1B3A3A;
    padding: 32px 40px 28px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    z-index: 1;
    line-height: 1;
}
.modal-close:hover { color: #ffffff; }

.modal-logo {
    display: block;
    height: 44px;
    margin: 0 auto 14px;
}

.modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
}

.modal-body {
    padding: 28px 40px 40px;
}

.modal-toggle {
    display: flex;
    border: 1px solid var(--brand-teal);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}
.modal-toggle button {
    flex: 1;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.modal-toggle button.active {
    background: var(--brand-teal);
    color: var(--white);
}
.modal-toggle button:not(.active) {
    background: var(--white);
    color: var(--brand-teal);
}

.modal-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-family: var(--font-body);
    margin-bottom: 12px;
}
.modal-form input:focus {
    outline: 2px solid var(--brand-teal);
    outline-offset: -1px;
    border-color: transparent;
}
.modal-form input:last-of-type {
    margin-bottom: 20px;
}

.modal-form .modal-submit {
    width: 100%;
    padding: 15px 0;
    border-radius: 8px;
    background: var(--gold);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-form .modal-submit:hover {
    background: var(--gold-hover);
}

.modal-forgot {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--brand-teal);
    text-decoration: underline;
    cursor: pointer;
}

.modal-name-field { display: none; }
.modal-name-field.visible { display: block; }

/* ── Scroll Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .site-nav {
        padding: 0 16px;
    }
    .site-nav .nav-logo {
        height: 48px;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
        padding: 32px 16px;
    }

    .stat + .stat::before { display: none; }

    .pillars {
        grid-template-columns: 1fr;
    }

    .insight-card {
        padding: 36px 28px;
    }

    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .modal-header {
        padding: 28px 28px 24px;
    }
    .modal-body {
        padding: 24px 28px 32px;
    }
}

@media (max-width: 480px) {
    /* Header responsive rules live in header.css — do not duplicate here */

    .hero {
        padding: 90px 16px 50px;
        min-height: 85vh;
    }

    .btn-primary {
        padding: 16px 36px;
        font-size: 16px;
    }

    .pillars {
        padding: 48px 16px;
        gap: 20px;
    }
    .pillar-card {
        padding: 28px 24px;
    }
    .pillar-card h3 {
        font-size: 18px;
    }
    .pillar-card p {
        font-size: 14px;
    }

    .audience-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-form {
        flex-direction: column;
    }
    .cta-form input[type="email"],
    .cta-form button {
        width: 100%;
        flex: none;
    }
}

/* ── Page Content Wrapper (for non-landing pages) ── */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 96px 2rem 4rem; /* 96px top to clear fixed nav */
}
.page-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 400;
    color: var(--brand-dark);
    margin-bottom: 8px;
}
.page-content > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ── Permits page (keep existing table styles) ── */
table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 1.5rem; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
th { background: var(--cream-light); font-weight: 600; color: var(--brand-teal); }
tr:hover td { background: rgba(0,0,0,0.02); }

.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
}

/* ══════════════════════════════════════════════════════════════
   Explorer Page — Dark Theme
   ══════════════════════════════════════════════════════════════ */

.explorer-page {
    --ex-bg: #1c1c1c;
    --ex-surface: #2a2a2a;
    --ex-surface-alt: #333333;
    --ex-border: rgba(255,255,255,0.1);
    --ex-text: #e4e4e4;
    --ex-text-muted: #888888;
    --ex-teal: #2dd4a8;
    --ex-red: #e06c75;

    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 2rem 4rem;
}

/* Dark page background — applied to body only when explorer-page is present */
body:has(.explorer-page) {
    background: var(--ex-bg, #1c1c1c);
}
/* ── Counts Page ── */
.counts-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}
.counts-header { margin-bottom: 0.5rem; }
.counts-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 38px);
    color: var(--brand-teal);
    font-weight: 400;
}
.counts-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 4px;
}
.counts-explainer {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.counts-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
.counts-table { margin: 0; font-size: 15px; }
.counts-table th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.counts-table td.right, .counts-table th.right { text-align: right; font-variant-numeric: tabular-nums; }
.counts-table tbody td { padding: 0.65rem 1rem; }
.counts-table tbody tr:last-child td { border-bottom: none; }
.counts-total td {
    font-weight: 700;
    color: var(--brand-teal);
    background: var(--cream-light);
    border-top: 2px solid var(--brand-teal);
    padding: 0.85rem 1rem;
    font-size: 16px;
}
.counts-spending td {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0.6rem 1rem;
    background: var(--cream-light);
}
.counts-footer-note {
    margin-top: 1rem;
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

body:has(.explorer-page) footer {
    background: #161616;
    color: #666666;
}
body:has(.explorer-page) footer a {
    color: var(--ex-teal, #2dd4a8);
}

.explorer-header {
    margin-bottom: 32px;
}
.explorer-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 400;
    color: var(--ex-text);
    margin-bottom: 6px;
}
.explorer-header p {
    color: var(--ex-text-muted);
    font-size: 15px;
}

/* ── Summary Cards ── */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.summary-card {
    background: var(--ex-surface);
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid var(--ex-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.summary-value {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    color: var(--ex-teal);
    line-height: 1.2;
}
.summary-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ex-text-muted);
    margin-top: 6px;
}

/* ── Filter Bar ── */
.filter-bar {
    margin-bottom: 20px;
}
.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-row select,
.filter-row input[type="text"] {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid var(--ex-border);
    border-radius: 8px;
    background: var(--ex-surface);
    color: var(--ex-text);
    min-width: 0;
}
.filter-row select {
    flex: 0 1 200px;
    cursor: pointer;
}
.filter-row select option {
    background: var(--ex-surface);
    color: var(--ex-text);
}
.filter-row input[type="text"] {
    flex: 1 1 180px;
}
.filter-row input::placeholder {
    color: var(--ex-text-muted);
}
.filter-row select:focus,
.filter-row input:focus {
    outline: 2px solid var(--ex-teal);
    outline-offset: -1px;
    border-color: transparent;
}

/* ── Export Button ── */
.export-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(232,160,32,0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}
.export-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
}

/* ── Table Wrapper + Spinner ── */
.table-wrap {
    position: relative;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--ex-border);
}

.loading-spinner {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 28, 0.85);
    z-index: 10;
    align-items: center;
    justify-content: center;
}
.loading-spinner.active {
    display: flex;
}
.loading-spinner::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid rgba(45,212,168,0.2);
    border-top-color: var(--ex-teal);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Data Table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 0;
}
.data-table th,
.data-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--ex-border);
    white-space: nowrap;
    color: var(--ex-text);
}
.data-table th {
    background: #222222;
    font-weight: 600;
    color: var(--ex-teal);
    position: sticky;
    top: 0;
    z-index: 5;
}
.data-table tbody tr:nth-child(odd) td {
    background: var(--ex-bg);
}
.data-table tbody tr:nth-child(even) td {
    background: #242424;
}
.data-table td.desc-cell {
    white-space: normal;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-table td.amount-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--ex-teal);
}
.data-table td.amount-cell.negative {
    color: var(--ex-red);
}
.data-table th[data-sort="gross_amount"] {
    text-align: right;
}
.data-table tr:hover td {
    background: #333333 !important;
}

/* ── Sortable Headers ── */
th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.4rem;
}
th.sortable::after {
    content: '\2195';
    position: absolute;
    right: 0.4rem;
    opacity: 0.35;
    font-size: 12px;
    color: var(--ex-text);
}
th.sortable.active.asc::after {
    content: '\2191';
    opacity: 1;
    color: var(--ex-text);
}
th.sortable.active.desc::after {
    content: '\2193';
    opacity: 1;
    color: var(--ex-text);
}

/* ── Table Pagination ── */
.table-pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}
.table-pagination button {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    background: var(--ex-surface);
    color: var(--ex-teal);
    border: 1px solid var(--ex-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.table-pagination button:hover:not(:disabled) {
    background: var(--ex-surface-alt);
}
.table-pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.table-pagination span {
    font-size: 14px;
    color: var(--ex-text-muted);
}

/* ── Explorer Responsive ── */
@media (max-width: 768px) {
    .explorer-page {
        padding: 80px 1rem 3rem;
    }
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-row {
        flex-direction: column;
    }
    .filter-row select,
    .filter-row input[type="text"] {
        flex: 1 1 100%;
        width: 100%;
    }
    .export-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-nav .nav-link {
        font-size: 13px;
    }
    .summary-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .summary-card {
        padding: 16px 12px;
    }
    .summary-value {
        font-size: 22px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Featured Story Card
   ══════════════════════════════════════════════════════════════ */

.featured-story {
    background: var(--cream);
    padding: 32px 24px;
}

.fs-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 36px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.fs-image {
    flex: 0 0 240px;
    height: 200px;
    overflow: hidden;
}

.fs-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.fs-text {
    flex: 1;
    padding: 28px 32px 28px 0;
}

.fs-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.fs-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 400;
    color: var(--brand-deep);
    line-height: 1.3;
    margin-bottom: 10px;
}

.fs-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.fs-counter {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--brand-deep);
    margin-bottom: 20px;
}

.fs-count {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    color: var(--gold);
    vertical-align: baseline;
    margin-right: 4px;
}

.fs-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(232,160,32,0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.fs-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--white);
}

/* Featured Story — Tablet */
@media (max-width: 768px) {
    .fs-inner {
        flex-direction: column;
        gap: 0;
    }
    .fs-image {
        flex: none;
        width: 100%;
        height: 180px;
    }
    .fs-image img {
        height: 180px;
    }
    .fs-text {
        padding: 24px 24px 28px;
    }
}

/* Featured Story — Mobile */
@media (max-width: 480px) {
    .featured-story {
        padding: 24px 16px;
    }
    .fs-image {
        height: 150px;
    }
    .fs-image img {
        height: 150px;
    }
    .fs-text {
        padding: 20px 20px 24px;
    }
    .fs-text h2 {
        font-size: 20px;
    }
    .fs-count {
        font-size: 28px;
    }
}
