:root {
  color-scheme: light;
  --bg: #f9f9f9; --surface-1: #ffffff; --ink: #191919; --ink-2: #666666;
  --line: #e7e7e7; --axis: #c2c2c2; --accent: #1b64be; --accent-2: #cce3fd;
  --series-1: #257de0; --warn-bg: #fff4d6; --warn-ink: #6b4a00; --ok-bg: #e5f6e8; --ok-ink: #006c10;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0b0b; --surface-1: #191919; --ink: #efefef; --ink-2: #9c9c9c;
    --line: #303030; --axis: #474747; --accent: #6aabf1; --accent-2: #1757ac;
    --series-1: #338ced; --warn-bg: #3a2c05; --warn-ink: #fbd07a; --ok-bg: #0f2b14; --ok-ink: #53c556;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface-1); padding: 8px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { background: var(--surface-1); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 2px 14px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.nav a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px var(--accent); }

main { padding-top: 12px; padding-bottom: 32px; }
.crumbs { font-size: .85rem; color: var(--ink-2); margin: 4px 0 8px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 8px 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; }
h3 { font-size: 1rem; margin: 12px 0 6px; }
.lead { font-size: 1.05rem; color: var(--ink-2); margin-top: 0; }
.muted { color: var(--ink-2); font-size: .9rem; }
.badge { display: inline-block; min-width: 2.2em; padding: 0 .4em; border-radius: 8px; background: var(--accent);
  color: #fff; text-align: center; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: baseline; margin-right: 4px; }

.note { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font-size: .9rem; color: var(--ink-2); }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.note.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }

.search { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin: 12px 0; }
.search label, label.search { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; font-size: .9rem; color: var(--ink-2); }
.search input { font: inherit; padding: 10px 12px; border: 1px solid var(--axis); border-radius: 8px; background: var(--surface-1); color: var(--ink); width: 100%; }
button { font: inherit; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--axis); background: var(--surface-1); color: var(--ink); cursor: pointer; }
button:hover { border-color: var(--accent); }

.lines { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.lines a { display: block; padding: 8px 10px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.lines a:hover { border-color: var(--accent); }
.lines b { display: inline-block; min-width: 3em; color: var(--accent); }

.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; height: 100%; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile span { color: var(--ink-2); font-size: .9rem; }

.facts { padding-left: 18px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.js .tab[hidden] { display: none; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }

table { border-collapse: collapse; width: 100%; background: var(--surface-1); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.grid th { width: 3.5em; color: var(--ink-2); }
.grid td { word-spacing: .35em; }
.grid .m.past { color: var(--ink-2); opacity: .55; }
.grid .m.nx { background: var(--accent); color: #fff; border-radius: 4px; padding: 0 3px; }
.data .num { white-space: nowrap; }
tr.x td { text-decoration: line-through; color: var(--ink-2); }
.scroll { overflow-x: auto; }

.next { background: var(--surface-1); border: 1px solid var(--accent); border-radius: var(--radius); padding: 4px 14px 10px; margin: 12px 0; }
.next h2 { margin-top: 8px; font-size: 1rem; }
.next .row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 4px 0; }
.next .row b { min-width: 11em; }
.next .t { font-size: 1.15rem; font-weight: 600; }
.live { font-size: .9rem; color: var(--ink-2); margin: 6px 0; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.card h3 { margin-top: 4px; }
.card p { margin: 4px 0; }
.districts { line-height: 2; }

.hero { margin: 12px 0 8px; }
.hero-n { font-size: 3rem; font-weight: 600; line-height: 1.1; }
.meter { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 4px; background: var(--accent-2); margin-left: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 4px; background: var(--series-1); }

.chart { margin: 20px 0; padding: 12px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); }
.chart:focus-visible { outline: 2px solid var(--accent); }
.chart figcaption { font-weight: 600; margin-bottom: 6px; }
.chart .plot { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { stroke: var(--axis); stroke-width: 1; }
.chart .tk { fill: var(--ink-2); font-size: 11px; }
.chart .area { fill: var(--series-1); opacity: .1; }
.chart .ln { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot, .chart .hd { fill: var(--series-1); stroke: var(--surface-1); stroke-width: 2; }
.chart .lbl { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chart .xh { stroke: var(--axis); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .tip { position: absolute; top: 0; pointer-events: none; background: var(--surface-1); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
.chart .tip strong { display: block; font-size: 1rem; }
.chart .tip span { color: var(--ink-2); }
.chart details { margin-top: 8px; font-size: .9rem; }

.ad { margin: 18px 0; min-height: 90px; }
code { font-size: .8rem; word-break: break-all; }
.src li { margin-bottom: 6px; }

.foot { border-top: 1px solid var(--line); background: var(--surface-1); color: var(--ink-2); font-size: .85rem; }
.foot .wrap { padding-top: 12px; padding-bottom: 20px; }
@media (max-width: 600px) { h1 { font-size: 1.35rem; } .hero-n { font-size: 2.5rem; } .next .row b { min-width: 100%; } }
@media print { .top, .foot, .ad, .tabs, .next, .live { display: none; } .js .tab[hidden] { display: block; } }
