/* ==========================================================================
   StablecoinRatings.org — Stylesheet
   Dual-theme: dark (default) + light
   ========================================================================== */

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    /* Font stacks */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;

    /* Layout */
    --max-width: 1280px;
    --nav-height: 64px;
}

/* ── Dark Theme (default) ────────────────────────────────────────────────── */
:root, [data-theme="dark"] {
    --bg-primary:    #0a0b0e;
    --bg-secondary:  #111318;
    --bg-tertiary:   #181b22;
    --bg-card:       #1a1d25;
    --bg-card-hover: #20242e;
    --bg-input:      #141720;

    --text-primary:   #e8eaed;
    --text-secondary: #9aa0a8;
    --text-muted:    #5c6370;

    --border:        #252a35;
    --border-light:  #2e3442;

    --accent:        #3b82f6;
    --accent-hover:  #2563eb;
    --accent-muted:  rgba(59, 130, 246, 0.12);

    --grade-a:       #22c55e;
    --grade-b:       #3b82f6;
    --grade-c:       #f59e0b;
    --grade-d:       #ef4444;
    --grade-na:      #4b5563;

    --positive:      #22c55e;
    --negative:      #ef4444;
    --warning:       #f59e0b;

    --chart-grid:    #252a35;
    --chart-text:    #9aa0a8;
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
}

/* ── Light Theme ────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary:    #f8f9fb;
    --bg-secondary:  #f0f2f5;
    --bg-tertiary:   #e8ebef;
    --bg-card:       #ffffff;
    --bg-card-hover: #f5f7fa;
    --bg-input:      #eef0f3;

    --text-primary:   #111827;
    --text-secondary: #4b5563;
    --text-muted:    #9ca3af;

    --border:        #e2e6ed;
    --border-light:  #edf0f3;

    --accent:        #2563eb;
    --accent-hover:  #1d4ed8;
    --accent-muted:  rgba(37, 99, 235, 0.08);

    --chart-grid:    #e2e6ed;
    --chart-text:    #4b5563;
    --shadow:        0 4px 24px rgba(0,0,0,0.08);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

img, svg { display: block; max-width: 100%; }

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.nav__logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav__logo-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.nav__logo-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
}

.nav__links a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--text-primary);
    background: var(--accent-muted);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover {
    background: var(--accent-muted);
    color: var(--text-primary);
}
.theme-toggle svg { width: 18px; height: 18px; }

/* ── Page layout ───────────────────────────────────────────────────────── */
.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-10) var(--space-6);
}

.page--wide {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    padding: var(--space-16) var(--space-6);
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero__title-accent {
    color: var(--accent);
}

.hero__tagline {
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-8);
    line-height: 1.5;
}

.hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero__meta-item svg { width: 14px; height: 14px; }

/* ── Stats bar ──────────────────────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-8);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.stats-bar__item {
    background: var(--bg-card);
    padding: var(--space-5) var(--space-6);
    text-align: center;
}

.stats-bar__value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stats-bar__label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Filters / Tabs ────────────────────────────────────────────────────── */
.filters {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.tab-group {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.tab {
    padding: var(--space-2) var(--space-4);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all var(--transition);
}
.tab:hover { color: var(--text-primary); }
.tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ── Ratings Table ─────────────────────────────────────────────────────── */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-wrap thead {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.table-wrap th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}
.table-wrap th:hover { color: var(--text-primary); }
.table-wrap th.num { text-align: right; }

.table-wrap tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.table-wrap tbody tr:last-child { border-bottom: none; }
.table-wrap tbody tr:hover { background: var(--bg-card-hover); }

.table-wrap td {
    padding: var(--space-3) var(--space-4);
    vertical-align: middle;
    white-space: nowrap;
}
.table-wrap td.num { text-align: right; }

/* Rank */
.td-rank {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    width: 48px;
}

/* Coin */
.td-coin {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 180px;
}

.td-coin__symbol {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.td-coin__name {
    font-size: 12px;
    color: var(--text-muted);
}

/* Grade badge */
.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.grade-a { background: rgba(34,197,94,0.15); color: var(--grade-a); }
.grade-b { background: rgba(59,130,246,0.15); color: var(--grade-b); }
.grade-c { background: rgba(245,158,11,0.15); color: var(--grade-c); }
.grade-d { background: rgba(239,68,68,0.15);  color: var(--grade-d); }

.grade-badge--large {
    width: 52px;
    height: 36px;
    font-size: 16px;
}

/* Score */
.td-score {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 14px;
    text-align: right;
}

/* Pillar bars */
.pillar-bars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pillar-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pillar-bar__track {
    width: 32px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.pillar-bar__fill {
    height: 100%;
    border-radius: 2px;
    transition: width var(--transition-slow);
}

.pillar-bar__label {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* MCap */
.td-mcap {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

/* Flags / warnings */
.flag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(245,158,11,0.12);
    color: var(--warning);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Pillars chart section ──────────────────────────────────────────────── */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.chart-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: var(--space-5);
}

.chart-card canvas {
    max-height: 280px;
}

/* ── Coin detail modal ──────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform var(--transition);
}
.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal__subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal__close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.modal__close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal__body { padding: var(--space-6); }

.modal__section {
    margin-bottom: var(--space-6);
}

.modal__section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-4);
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.pillar-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.pillar-item__name {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.pillar-item__score {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
}

.pillar-item__bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-top: var(--space-2);
    overflow: hidden;
}

.pillar-item__bar-fill {
    height: 100%;
    border-radius: 2px;
}

.modal__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Methodology page ───────────────────────────────────────────────────── */
.methodology-toc {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-10);
    align-items: start;
}

.methodology-toc__nav {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-6));
}

.methodology-toc__nav-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-3);
}

.methodology-toc__nav a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: var(--space-1) 0;
    border-left: 2px solid transparent;
    padding-left: var(--space-3);
    transition: color var(--transition), border-color var(--transition);
}
.methodology-toc__nav a:hover,
.methodology-toc__nav a.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.methodology-content h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: var(--space-10) 0 var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}
.methodology-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.methodology-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-6) 0 var(--space-3);
}

.methodology-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.methodology-content ul {
    list-style: none;
    margin-bottom: var(--space-4);
}
.methodology-content ul li {
    display: flex;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
}
.methodology-content ul li:last-child { border-bottom: none; }
.methodology-content ul li::before {
    content: "→";
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

/* Formula block */
.formula-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    overflow-x: auto;
    margin: var(--space-4) 0;
}

/* Weight table */
.weight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: var(--space-4) 0;
}
.weight-table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.weight-table td {
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.weight-table td:last-child {
    font-family: var(--font-mono);
    font-weight: 600;
}
.weight-table tr:last-child td { border-bottom: none; }

/* Grade table */
.grade-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-4) 0;
}
.grade-table th, .grade-table td {
    padding: var(--space-3) var(--space-4);
    font-size: 13px;
    border: 1px solid var(--border);
}
.grade-table th {
    background: var(--bg-tertiary);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.grade-table td:first-child { font-family: var(--font-mono); font-weight: 700; }

/* ── History page ───────────────────────────────────────────────────────── */
.history-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

select {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
}
select:focus { border-color: var(--accent); }

.chart-card--wide {
    grid-column: 1 / -1;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-10) var(--space-6);
    margin-top: var(--space-16);
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-10);
}

.footer__brand {}

.footer__brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.footer__brand-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer__col-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-4);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--text-primary); }

.footer__bottom {
    max-width: var(--max-width);
    margin: var(--space-8) auto 0;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Loading skeleton ───────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-tertiary) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-row {
    height: 52px;
    margin-bottom: 1px;
    border-radius: var(--radius-sm);
}

/* ── Tooltip ───────────────────────────────────────────────────────────── */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 50;
    box-shadow: var(--shadow);
}

[data-tooltip]:hover::after { opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .chart-section { grid-template-columns: 1fr; }
    .methodology-toc { grid-template-columns: 1fr; }
    .methodology-toc__nav { position: static; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .pillar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page { padding: var(--space-6) var(--space-4); }
    .hero { padding: var(--space-10) var(--space-4); }
    .nav__links { display: none; }
    .table-wrap { overflow-x: auto; }
    .table-wrap table { min-width: 800px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr; gap: var(--space-8); }
    .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */
@media print {
    .nav, .theme-toggle, .filters { display: none; }
    .page { padding: 0; }
    body { background: white; color: black; }
}
