/* ─────────────────────────────────────────────────────────
   Türkiye Seçim Arşivi · AlperTan™
   Design tokens & layout primitives
   ───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Editorial palette: ink on warm paper, with restrained signal accents */
  --paper:       #f5f1e8;
  --paper-2:     #ebe5d6;
  --paper-3:     #ddd5c0;
  --ink:         #1a1814;
  --ink-2:       #3a342b;
  --ink-3:       #6b6253;
  --ink-4:       #9b9180;

  --line:        #c8bfa8;
  --line-soft:   #d8cfb8;

  /* Signal colors — restrained, journalistic */
  --signal-red:    #b8311a;   /* uyumsuzluk, yüksek artış */
  --signal-amber:  #c8861a;   /* dikkat */
  --signal-green:  #2d6b3f;   /* normal, doğrulanmış */
  --signal-blue:   #1f4d6e;   /* nötr veri vurgu */
  --signal-plum:   #6b2d52;   /* karşılaştırma */

  /* Brand */
  --brand-mark:    #1a1814;
  --brand-gold:    #a07820;

  /* Typography */
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', Consolas, monospace;

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

  /* Layout */
  --sidebar-w:   252px;
  --topbar-h:    56px;
  --content-pad: 32px;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06);
  --shadow:    0 2px 8px rgba(26, 24, 20, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 24, 20, 0.1);
  --accent-line: var(--brand-gold);
}

/* Dark mode (opsiyonel ileride) - kullanmıyoruz şu an */

/* ─────────────────────────────────────────────────────────
   Reset & base
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(160, 120, 32, 0.025) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(31, 77, 110, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--signal-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible,
.nav-item:focus-visible,
.election-card:focus-visible,
.sidebar-toggle:focus-visible,
.filter-input:focus-visible,
.uyumsuzluk-select:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}
.focus-ring:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.3; }
h4 { font-size: 14px; line-height: 1.35; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.01em; text-transform: none; }

/* CRITICAL: text-transform: uppercase YASAK (AlperTan™ marka kuralı) */
/* Onun yerine letter-spacing + Fraunces small-caps OpenType özelliği kullan */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1, 'zero' 1; }
.num  { font-family: var(--font-mono); font-feature-settings: 'tnum' 1, 'zero' 1; }
.serif { font-family: var(--font-display); }

/* ─────────────────────────────────────────────────────────
   App layout: sidebar + main
   ───────────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.mobile-topbar {
  display: none;
}

.sidebar-overlay {
  display: none;
}

.sidebar {
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  padding: var(--space-5);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.sidebar-brand .tm {
  font-size: 11px;
  font-feature-settings: 'sups' 1;
  vertical-align: super;
  color: var(--ink-3);
  margin-left: 1px;
}

.sidebar-tagline {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-bottom: var(--space-6);
  font-style: italic;
  font-family: var(--font-display);
}

.sidebar-section {
  margin-bottom: var(--space-5);
}
.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  margin-bottom: var(--space-2);
  padding-left: var(--space-2);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.nav-item:hover {
  background: var(--paper-3);
  color: var(--ink);
}
.nav-item.active {
  background: rgba(160, 120, 32, 0.08);
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent-line);
  box-shadow: inset 0 0 0 1px rgba(160, 120, 32, 0.12);
}
.nav-item.active .nav-num {
  color: var(--brand-gold);
  font-weight: 600;
}
.nav-item .nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  margin-right: 2px;
  min-width: 14px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.55;
}
.sidebar-footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  color: var(--ink-3);
}
.sidebar-footer-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.sidebar-footer a { color: var(--ink-3); }

/* ─────────────────────────────────────────────────────────
   Main content area
   ───────────────────────────────────────────────────────── */
.main {
  padding: var(--space-7) var(--content-pad);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--accent-line);
}
.page-header .eyebrow { display: block; margin-bottom: var(--space-3); }
.page-header h1 { margin-bottom: var(--space-3); }
.page-header .lede {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 680px;
  font-style: italic;
}

/* Paylaş butonu */
.share-wrap {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}
.share-trigger {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.share-trigger:hover {
  border-color: var(--brand-gold);
  color: var(--ink);
}
.share-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  background: #fdfaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) 0;
  display: flex;
  flex-direction: column;
}
.share-menu[hidden] { display: none; }
.share-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.share-item:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.share-item-copy {
  border-top: 1px solid var(--line-soft);
  margin-top: var(--space-1);
  padding-top: 10px;
  color: var(--brand-gold);
  font-weight: 500;
}
.share-toast {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  max-width: 240px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}
.share-toast[hidden] { display: none; }

@media (max-width: 640px) {
  .share-wrap {
    position: static;
    margin-bottom: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .share-menu,
  .share-toast {
    right: auto;
    left: 0;
  }
}

/* ─────────────────────────────────────────────────────────
   Card / panel system
   ───────────────────────────────────────────────────────── */
.panel {
  background: #fdfaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.panel-title .panel-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.panel-lede {
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
  color: var(--ink-2);
}

.panel-note {
  font-size: 13px;
  color: var(--ink-3);
  margin: var(--space-3) 0 0;
  line-height: 1.6;
}

.panel-flush {
  padding: 0;
  overflow: hidden;
}

.panel-muted {
  margin-top: var(--space-6);
  background: var(--paper-2);
}

.panel-spaced {
  margin-bottom: var(--space-5);
}

.panel-spaced-lg {
  margin-bottom: var(--space-6);
}

/* Filter bar */
.filter-bar {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--line-soft);
}

.filter-bar-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 320px;
}

.filter-bar-label > span {
  font-size: 12px;
  color: var(--ink-3);
}

.filter-input,
.uyumsuzluk-select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.filter-input:focus,
.uyumsuzluk-select:focus {
  border-color: var(--brand-gold);
  outline: none;
}

.data-table-wrap {
  padding: 0;
  overflow: hidden;
}

/* Badges */
.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink-4);
}
.badge-genel { color: var(--signal-blue); background: rgba(31, 77, 110, 0.08); }
.badge-yerel { color: var(--signal-plum); background: rgba(107, 45, 82, 0.08); }

/* Callouts */
.callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin-bottom: var(--space-5);
}
.callout-warn {
  border-color: rgba(200, 134, 26, 0.35);
  background: rgba(200, 134, 26, 0.06);
}
.callout-title {
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--ink);
}
.callout p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Empty state */
.empty-state,
.bolge-bos {
  padding: var(--space-5);
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  font-style: italic;
}

/* Prose (info pages) */
.prose {
  max-width: 720px;
}
.prose .panel + .panel {
  margin-top: var(--space-5);
}

/* Stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.stat-tile {
  background: #fdfaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  border-left: 3px solid var(--line);
}
.stat-tile.accent-gold { border-left-color: var(--brand-gold); }
.stat-tile.accent-blue { border-left-color: var(--signal-blue); }
.stat-tile.accent-green { border-left-color: var(--signal-green); }
.stat-tile.accent-plum { border-left-color: var(--signal-plum); }
.stat-tile .stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.stat-tile .stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-tile .stat-value.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
}
.stat-tile .stat-sub {
  font-size: 12px;
  color: var(--ink-3);
}

/* Election grid (homepage feature) */
.election-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.election-card {
  background: #fdfaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.election-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.election-card.featured {
  border-color: rgba(160, 120, 32, 0.45);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #fffdf8 0%, #fdfaf2 100%);
}
.election-card.featured:hover {
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-md);
}
.election-card.featured .ec-year {
  color: var(--brand-gold);
}
.election-card .ec-year {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.election-card .ec-tip {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.35;
  font-weight: 500;
}
.election-card .ec-stats {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: var(--space-2);
}
.election-card .ec-tag {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}
.election-card .ec-tag.badge-genel {
  color: var(--signal-blue);
  background: rgba(31, 77, 110, 0.08);
}
.election-card .ec-tag.badge-yerel {
  color: var(--signal-plum);
  background: rgba(107, 45, 82, 0.08);
}
.election-card { position: relative; }

/* Section heading separator */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: var(--space-7) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
}

/* Module placeholder */
.module-placeholder {
  background: linear-gradient(180deg, #fdfaf2 0%, var(--paper-2) 100%);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--space-7);
  text-align: center;
  color: var(--ink-3);
}
.module-placeholder .mp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--space-3);
}
.module-placeholder .mp-body {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 14px;
}
.module-placeholder ul {
  text-align: left;
  display: inline-block;
  margin-top: var(--space-4);
  padding-left: var(--space-5);
  font-size: 13.5px;
  color: var(--ink-3);
}
.module-placeholder li {
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

/* Anomaly badge (preview teaser) */
.anomaly-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.anomaly-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
}
.anomaly-list li:last-child { border-bottom: none; }
.anomaly-list .a-loc {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.anomaly-list .a-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.anomaly-list .a-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--signal-red);
  white-space: nowrap;
}
.anomaly-list .a-val.amber { color: var(--signal-amber); }
.anomaly-list .a-val.green { color: var(--signal-green); }

/* Footnote bar */
.footnote {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
  font-style: italic;
  font-family: var(--font-display);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--line);
  background: transparent;
  white-space: nowrap;
}
.data-table tbody td {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--paper-2); }
.data-table .num {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1, 'zero' 1;
  font-size: 13px;
}

/* Inline bar (used in tables) */
.bar-wrap {
  background: var(--paper-2);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.bar {
  height: 100%;
  background: var(--brand-gold);
  border-radius: 3px;
  transition: width 200ms ease;
}

.table-meta {
  padding: var(--space-3) var(--space-5);
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
}

.data-table .num-right { text-align: right; }
.data-table .col-bar { width: 140px; padding-left: var(--space-3); }

/* Loading state */
.loading {
  padding: var(--space-7);
  text-align: center;
  color: var(--ink-3);
  font-style: italic;
  font-family: var(--font-display);
}
.loading::before {
  content: '...';
  animation: dots 1.4s infinite;
  display: inline-block;
  letter-spacing: 0.2em;
  margin-right: 4px;
}
@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Responsive */
.mobile-topbar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-topbar-title .tm {
  font-size: 9px;
  vertical-align: super;
  color: var(--ink-3);
}

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: transparent;
}
.sidebar-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 150ms ease, opacity 150ms ease;
}
.sidebar-open .sidebar-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sidebar-open .sidebar-toggle-bar:nth-child(2) {
  opacity: 0;
}
.sidebar-open .sidebar-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-h) 1fr;
    grid-template-areas:
      "topbar"
      "main";
  }
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    grid-area: topbar;
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--topbar-h);
    padding: 0 var(--space-4);
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
  }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 20, 0.35);
    z-index: 250;
  }
  .sidebar-overlay[hidden] {
    display: none;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    width: min(280px, 85vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
  }
  .main {
    grid-area: main;
    padding: var(--space-5) var(--space-4);
  }
  h1 { font-size: 26px; }
  .anomaly-list li { grid-template-columns: 1fr; gap: var(--space-2); }
  .anomaly-list .a-val { justify-self: start; }
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .election-grid {
    grid-template-columns: 1fr;
  }
}
