/* FedComp Index — global.css
   One file. All styles. No framework. No gradients. No shadows.
   No border-radius > 4px. No hover animations. No transitions.
*/

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 2px; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:       #0B0F19;
  --surface:  #141B2D;
  --accent:   #2563EB;
  --success:  #059669;
  --warning:  #D97706;
  --danger:   #DC2626;
  --muted:    #64748B;
  --text:     #E2E8F0;
  --border:   #1E293B;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --sz-body:  14px;
  --sz-label: 12px;
  --sz-head:  16px;
  --sz-title: 20px;
  --sz-index: 48px;

  --max: 1200px;
  --r:   4px;
}

/* ─── Base ───────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--sz-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

main { flex: 1; padding: 16px 0 32px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ────────────────────────────────────────────────────────────── */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  fill: var(--text);
  flex-shrink: 0;
}

.nav-brand:hover { text-decoration: none; color: var(--text); }

.nav-search {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0 12px;
  height: 40px;
}

.nav-search svg { color: var(--muted); flex-shrink: 0; }

.nav-search input[type="text"] {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text);
  font-size: var(--sz-body);
  font-family: var(--font);
  width: 100%;
  padding: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.nav-search input[type="text"]:focus { outline: none; border: none; border-color: transparent; box-shadow: none; }
.nav-search:focus-within { border-color: var(--muted); }
.nav-search input::placeholder { color: var(--muted); }

#nav-search-results {
  display: none;
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  z-index: 200;
}

#nav-search-results.open { display: block; }

#nav-search-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  color: var(--text);
  font-size: var(--sz-body);
  border-bottom: 1px solid var(--border);
}

#nav-search-results a:last-child { border-bottom: none; }
#nav-search-results a:hover { background: var(--bg); text-decoration: none; }

#nav-search-results .sr-score {
  font-size: var(--sz-label);
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 12px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-links li { display: flex; align-items: center; }

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--r);
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface); border: 1px solid var(--border); }

.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 8px;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  font-size: var(--sz-label);
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ─── Typography ─────────────────────────────────────────────────────── */
.page-title   { font-size: var(--sz-title); font-weight: 700; line-height: 1.3; }
.section-title {
  font-size: var(--sz-head);
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.label {
  font-size: var(--sz-label);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.muted { color: var(--muted); }

/* ─── Index Number ───────────────────────────────────────────────────── */
.index-num {
  font-size: var(--sz-index);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.index-num.good { color: var(--success); }
.index-num.warn { color: var(--warning); }
.index-num.bad  { color: var(--danger);  }

/* ─── Card / Surface ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}

/* ─── Stat Grid ──────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
}

.stat .label { display: block; margin-bottom: 4px; }

.stat .val {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ─── Tables ─────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sz-body);
  font-variant-numeric: tabular-nums;
}

th {
  padding: 10px 14px;
  text-align: left;
  font-size: var(--sz-label);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

th.sort { cursor: pointer; user-select: none; }
th.sort::after        { content: " ↕"; color: var(--muted); font-size: 10px; }
th.sort.asc::after    { content: " ↑"; color: var(--accent); }
th.sort.desc::after   { content: " ↓"; color: var(--accent); }

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: #0d1320; }

td { padding: 10px 14px; vertical-align: middle; }

.rank { color: var(--muted); font-size: var(--sz-label); font-weight: 600; width: 40px; }

/* ─── Score Badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r);
  font-size: var(--sz-label);
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}
.badge.good    { background: var(--success); }
.badge.warn    { background: var(--warning); color: #000; }
.badge.bad     { background: var(--danger); }
.badge.unknown { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }

/* ─── Status Dot ─────────────────────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 5px;
  vertical-align: middle;
}
.dot.good { background: var(--success); }
.dot.warn { background: var(--warning); }
.dot.bad  { background: var(--danger);  }

/* ─── Tags ───────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: var(--sz-label);
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--sz-label);
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: none; }
.breadcrumb-sep { color: var(--border); }

/* ─── Page Header ────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ─── Index Header ───────────────────────────────────────────────────── */
.index-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.index-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-bar {
  display: flex;
  gap: 24px;
}

.stat-bar-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.stat-bar-val {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
}


/* ─── State Chart ────────────────────────────────────────────────────── */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px 14px;
  margin-bottom: 20px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}


#state-chart {
  display: block;
  width: 100%;
  height: 100%;
}

/* ─── Dossier ────────────────────────────────────────────────────────── */
.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.dossier-header-left { flex: 1; min-width: 0; }

.dossier-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.dossier-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.dossier-ids {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.dossier-id-val {
  font-family: var(--font-mono);
  font-size: var(--sz-label);
  color: var(--text);
}

.dossier-ids-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

.dossier-stat-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.dossier-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dossier-stat-val {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.dossier-stat-val--sm {
  font-size: 16px;
}

.dossier-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

/* ─── Section ────────────────────────────────────────────────────────── */
.section { margin-top: 32px; }

/* ─── Feed ───────────────────────────────────────────────────────────── */
.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: none; }
.feed-date { font-size: var(--sz-label); color: var(--muted); min-width: 80px; padding-top: 2px; }
.feed-body { flex: 1; font-size: var(--sz-body); }

/* ─── Filter Bar ─────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ─── Forms ──────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
textarea,
select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--sz-body);
  padding: 7px 10px;
  outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font);
  font-size: var(--sz-body);
  font-weight: 600;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  background: none;
}
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-sm        { padding: 4px 10px; font-size: var(--sz-label); }

/* ─── Alert ──────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: var(--sz-body);
  margin-bottom: 16px;
}
.alert-warn { border-color: var(--warning); color: var(--warning); background: #2d1d06; }
.alert-info { border-color: var(--accent);  color: var(--accent);  background: #1a2540; }

/* ─── Empty State ────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

/* ─── Waitlist Block ─────────────────────────────────────────────────── */
.waitlist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  text-align: center;
  max-width: 480px;
  margin: 60px auto;
}
.waitlist h2 { font-size: var(--sz-head); font-weight: 700; margin-bottom: 8px; }
.waitlist p  { color: var(--muted); margin-bottom: 20px; }
.waitlist form { display: flex; gap: 8px; }
.waitlist input[type="email"] { flex: 1; }

/* ─── Landing page ───────────────────────────────────────────────────── */
.landing-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-top: 20px;
}

.landing-card .section-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.top-performers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.cert-col-head {
  font-size: var(--sz-label);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.cert-col td { padding: 7px 10px; }
.cert-col td:first-child { width: 28px; }

.out-of-state td { opacity: 0.75; }

/* ─── Home ───────────────────────────────────────────────────────────── */
.home-hero {
  padding: 48px 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.home-hero-left { flex: 1; min-width: 0; }

.home-hero-stats {
  display: flex;
  gap: 40px;
  flex-shrink: 0;
  align-items: flex-end;
}

.home-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.home-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin-top: 8px;
  line-height: 1.6;
}

.home-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r);
}

.home-cta:hover { text-decoration: none; opacity: 0.9; }

.home-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.home-stat-val {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.home-section {
  margin-top: 40px;
}

.home-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-state-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  opacity: 0.4;
}

.home-state-card--live {
  opacity: 1;
}

a.home-state-card:hover { text-decoration: none; border-color: var(--accent); }

.home-state-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-state-name {
  font-size: 16px;
  font-weight: 700;
}

.home-state-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
}

.home-state-meta {
  font-size: var(--sz-label);
  color: var(--muted);
}

.home-state-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.home-state-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.home-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.home-how-num {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--border);
}

/* ─── Rankings ───────────────────────────────────────────────────────── */
.rankings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 0;
}

.rankings-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0 12px;
  height: 36px;
  width: 280px;
}

.rankings-search svg { color: var(--muted); flex-shrink: 0; }

.rankings-search input {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text);
  font-size: var(--sz-body);
  font-family: var(--font);
  width: 100%;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.rankings-search input::placeholder { color: var(--muted); }
.rankings-search:focus-within { border-color: var(--muted); }

/* ─── Chart Carousel ─────────────────────────────────────────────────── */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.carousel-dot.active {
  width: 24px;
  background: var(--border);
}

.carousel-dot.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--muted);
  border-radius: 3px;
  animation: dot-fill 10s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dot-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.carousel-btn:hover { color: var(--text); }


/* ─── Rankings Mobile Cards ──────────────────────────────────────────── */
.rankings-mobile { display: none; }

.rank-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.rank-card:hover { text-decoration: none; border-color: var(--accent); }

.rank-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-card-rank {
  font-size: var(--sz-label);
  font-weight: 600;
  color: var(--muted);
  min-width: 28px;
}

.rank-card-name {
  flex: 1;
  font-weight: 600;
  font-size: var(--sz-body);
}

.rank-card-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-size: var(--sz-label);
  align-items: center;
}

/* ─── Mobile Nav Toggle ──────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle:hover { color: var(--text); }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wrap, .nav-inner, .footer-inner { padding: 0 16px; }

  /* Nav - hamburger */
  .nav-inner { flex-wrap: nowrap; position: relative; }
  .nav-search { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 12px;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; border-radius: 0; font-size: 14px; }
  .nav-links a.active { background: none; border: none; color: var(--accent); }
  .nav-sep { display: none; }

  /* Index header / stat bar */
  .index-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-bar { width: 100%; justify-content: space-between; }
  .stat-bar-item { align-items: flex-start; }
  .stat-bar-val { font-size: 16px; }

  /* Home */
  .home-hero { flex-direction: column; gap: 16px; padding: 28px 0 24px; }
  .home-hero-stats { display: none; }
  .home-headline { font-size: 24px; }
  .home-sub { font-size: 13px; margin-top: 6px; }
  .home-how-grid { grid-template-columns: 1fr; }
  .home-state-grid { grid-template-columns: 1fr; }

  /* Landing */
  .cert-grid { grid-template-columns: 1fr; }
  .top-performers-grid { grid-template-columns: 1fr; }
  .landing-card { padding: 16px; }

  /* Dossier */
  .dossier-header { flex-direction: column; gap: 16px; }
  .dossier-header-right { align-items: flex-start; flex-direction: row; gap: 12px; }
  .dossier-stat-bar { gap: 16px; flex-wrap: wrap; }
  .dossier-stat-val { font-size: 18px; }
  .dossier-2col { grid-template-columns: 1fr; }
  .dossier-name { font-size: 18px; }

  /* Tables */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Rankings: swap table for cards */
  .rankings-desktop { display: none; }
  .rankings-mobile { display: block; }

  /* Page header */
  .page-header { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar input { width: 100%; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .index-num { font-size: 36px; }
  .home-headline { font-size: 22px; }
  .home-hero-stats { gap: 16px; }
  .home-stat-val { font-size: 16px; }
  .dossier-stat-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .carousel-nav { flex-direction: column; gap: 8px; align-items: flex-start; }
}
