/* Georgia 2026 Projection: shared styles */
:root {
  --page: #eaf0ea;
  --paper: #fafbf7;
  --pine: #143029;
  --pine-2: #2b4a42;
  --muted: #546961;
  --line: #cdd8cf;
  --peach: #ffa37a;
  --peach-soft: #ffe0d0;
  --on-accent: #143029;
  --accent-hover: #ff8f60;
  --foot: #0e231e;
  --dark-text: #cfe0d8;
  --dark-small: #a9c0b6;
  --row: var(--row);
  --row-hover: #f1f6f1;
  --grid: #e2e9e3;
  --c22: #4d8c6a;
  --c24: #c98a12;
  --gold: #e3a52d;
  --blue: #2d5da8;
  --red: #b83a33;
  --neutral: #e7e4da;
  --lib: #a6aea8;
  --display: "Besley", "Clarendon", Georgia, "Times New Roman", serif;
  --ui: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--pine);
  font-family: var(--ui); font-size: 1.0625rem; line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--pine-2); max-width: 54ch; }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { height: 40px; width: auto; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-weight: 600; font-size: 0.97rem; }
.nav a { text-decoration: none; padding: 6px 2px; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.98rem; padding: 12px 20px; border-radius: 999px; background: var(--pine); color: #fff; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--pine-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.peach { background: var(--peach); color: var(--on-accent); }
.btn.peach:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.sm { padding: 9px 16px; font-size: 0.92rem; }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero-copy > * + * { margin-top: 22px; }
.stamp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.93rem; color: var(--pine-2); font-weight: 600; }
.stamp .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px var(--peach-soft); flex: none; }
.stamp span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin-right: 16px; vertical-align: middle; }
.races { display: grid; gap: 12px; margin-top: 28px; }
.race { text-align: left; font: inherit; color: inherit; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; padding: 18px 20px; border-radius: 18px; background: var(--paper); border: 2px solid transparent; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(20,48,41,.35); transition: border-color .15s ease, transform .15s ease; }
.race:hover { border-color: var(--line); }
.race[aria-pressed="true"] { border-color: var(--pine); transform: translateY(-1px); }
.race .who { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.race .cand { font-size: 0.93rem; color: var(--muted); grid-column: 1; }
.race .num { grid-row: 1 / span 2; grid-column: 2; font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; text-align: right; }
.num.d { color: var(--blue); } .num.r { color: var(--red); }
.race .meter { grid-column: 1 / -1; position: relative; height: 12px; margin-top: 12px; border-radius: 99px; overflow: hidden; display: flex; background: var(--lib); }
.race .meter i { display: block; height: 100%; transition: width .25s ease; }
.race .meter .md { background: var(--blue); } .race .meter .mr { background: var(--red); margin-left: auto; }
.race .meter::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--pine); transform: translateX(-1px); }
.race .status { grid-column: 1 / -1; font-size: 0.93rem; font-weight: 600; margin-top: 8px; }
.race .shares { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 0.9rem; margin-top: 6px; color: var(--pine-2); }
.race .shares b { font-weight: 700; }

.dial { margin-top: 26px; padding: 20px; border-radius: 18px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.dial h3 { font-size: 1.1rem; }
.dial .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.dial output { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.dial .help { font-size: 0.9rem; color: var(--muted); margin: 2px 0 12px; max-width: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--neutral), var(--peach)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--neutral), var(--peach)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--pine); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--pine); margin-top: -10px; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--pine); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--pine); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--pine); }
.chip:hover { border-color: var(--pine-2); }
.chip[aria-pressed="true"] { background: var(--pine); color: #fff; border-color: var(--pine); }
.dial hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 10px; }
.dial.turn input[type="range"]::-webkit-slider-runnable-track { background: var(--neutral); }
.dial.turn input[type="range"]::-moz-range-track { background: var(--neutral); }

/* map */
.mapcol { position: sticky; top: 84px; }
.mappanel { position: relative; border-radius: 28px; background: var(--paper); padding: clamp(10px, 2vw, 22px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(20,48,41,.5); overflow: hidden; }
.mapstage { position: relative; }
.mapstage svg { width: 100%; height: auto; max-height: 76vh; margin: 0 auto; }
.sun { fill: var(--peach-soft); }
.county { stroke: var(--paper); stroke-width: .7; cursor: pointer; transition: fill .25s ease; vector-effect: non-scaling-stroke; }
.county:hover { stroke: var(--pine); stroke-width: 1.6; }
.county.sel { stroke: var(--pine); stroke-width: 2.4; }
.outline { fill: none; stroke: var(--pine); stroke-width: 1.4; stroke-linejoin: round; opacity: .55; vector-effect: non-scaling-stroke; }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--pine); color: #fff; padding: 8px 11px; border-radius: 10px; font-size: .88rem; line-height: 1.3; opacity: 0; transform: translate(-50%, -120%); white-space: nowrap; transition: opacity .1s ease; }
.tip b { display: block; font-family: var(--display); font-size: 1rem; }
.tip.on { opacity: 1; }
.legend { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--pine-2); margin: 8px 4px 0; }
.legend .bar { flex: 1; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--red), #d9988f, var(--neutral), #9db8dd, var(--blue)); }
.jump { display: flex; gap: 10px; align-items: center; margin: 12px 4px 0; flex-wrap: wrap; }
.jump label { font-weight: 600; font-size: .93rem; }
select, input[type="search"] { font: inherit; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--pine); min-width: 0; }
.detail { margin: 14px 4px 4px; padding: 16px 18px; border-radius: 16px; background: var(--page); min-height: 128px; }
.detail h3 { font-size: 1.25rem; }
.detail .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin-top: 10px; }
.detail .k { font-size: .8rem; color: var(--muted); font-weight: 600; }
.detail .v { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.vbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: var(--lib); }
.vbar i { display: block; } .vbar .d { background: var(--blue); } .vbar .r { background: var(--red); margin-left: auto; }
.detail .empty { color: var(--muted); margin: 6px 0 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mapcol { position: static; order: 2; }
}

/* reveal: counties paint in once on load */
@media (prefers-reduced-motion: no-preference) {
  .county.pre { opacity: 0; }
  .county { transition: fill .25s ease, opacity .5s ease; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- sections ---------- */
.sec { padding: clamp(48px, 7vw, 104px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 48px); max-width: 70ch; }
.sec-head p { color: var(--pine-2); font-size: 1.12rem; margin: 0; }

.finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.find h3 { margin-bottom: 10px; }
.find .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; }
.find .big span { color: var(--peach); -webkit-text-stroke: 0; }
.find p { color: var(--pine-2); }
@media (max-width: 900px) { .finds { grid-template-columns: 1fr; } }

.chartwrap { background: var(--paper); border-radius: 24px; padding: clamp(14px, 2.6vw, 32px); box-shadow: 0 1px 0 var(--line); position: relative; }
.chartgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 980px) { .chartgrid { grid-template-columns: 1fr; } }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--ui); fill: var(--pine-2); font-size: 12px; }
.chart .ax { stroke: var(--line); stroke-width: 1; }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .lbl { font-weight: 700; font-size: 13px; fill: var(--pine); }
.chart .cap { fill: var(--muted); }
.legendrow { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; margin: 0 0 10px; }
.legendrow span { display: inline-flex; align-items: center; gap: 8px; }
.legendrow i { width: 22px; height: 4px; border-radius: 4px; display: inline-block; }
.legendrow i.dash { background: repeating-linear-gradient(90deg, var(--pine) 0 5px, transparent 5px 9px); }
.chip-note { font-size: .86rem; color: var(--muted); max-width: none; margin: 14px 0 0; }
.facts { display: grid; gap: 18px; }
.facts div b { font-family: var(--display); font-size: 1.7rem; display: block; line-height: 1.1; letter-spacing: -0.02em; }
.facts div span { color: var(--pine-2); font-size: .95rem; }
.ctip { position: absolute; pointer-events: none; z-index: 5; background: var(--pine); color: #fff; padding: 9px 12px; border-radius: 10px; font-size: .86rem; line-height: 1.35; opacity: 0; transition: opacity .1s ease; white-space: nowrap; }
.ctip.on { opacity: 1; }
.ctip b { font-family: var(--display); }

/* table */
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.tools input[type="search"] { width: min(320px, 100%); }
.seg { display: inline-flex; border-radius: 999px; background: var(--paper); padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { font: inherit; font-weight: 700; font-size: .92rem; border: 0; background: transparent; color: var(--pine); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--pine); color: #fff; }
.tablebox { background: var(--paper); border-radius: 20px; overflow: auto; box-shadow: 0 1px 0 var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 720px; }
table.data th, table.data td { padding: 11px 16px; text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { position: sticky; top: 0; background: var(--paper); font-size: .86rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--line); cursor: pointer; user-select: none; }
table.data thead th button { all: unset; cursor: pointer; }
table.data thead th[aria-sort] { color: var(--pine); }
table.data tbody tr { border-bottom: 1px solid var(--row); cursor: pointer; }
table.data tbody tr:hover { background: var(--row-hover); }
table.data td.cn { font-weight: 700; }
.mb { display: inline-block; vertical-align: middle; width: 70px; height: 8px; background: var(--row); border-radius: 99px; position: relative; margin-left: 10px; }
.mb i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.mb::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.d-c { color: var(--blue); font-weight: 700; } .r-c { color: var(--red); font-weight: 700; }
.moreRow { text-align: center; padding: 16px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--peach); color: var(--on-accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--pine-2); font-size: .98rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.risks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: 44px; }
.risk { padding: 18px 0; border-top: 1px solid var(--line); }
.risk h3 { font-size: 1.1rem; margin-bottom: 6px; }
.risk p { margin: 0; color: var(--pine-2); font-size: .98rem; }
@media (max-width: 760px) { .risks { grid-template-columns: 1fr; } }

/* dark section */
.dark { background: var(--pine); color: #fff; border-top: 0 !important; }
.dark .lede, .dark p { color: var(--dark-text); }
.dark .small { color: var(--dark-small); }
.stay { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .stay { grid-template-columns: 1fr; } }
.stay h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); }
.log time { font-weight: 700; color: var(--peach); font-size: .92rem; display: block; }
.log p { margin: 4px 0 0; font-size: .98rem; }
.count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.count b { font-family: var(--display); font-size: clamp(3.4rem, 8vw, 6rem); line-height: .9; color: var(--peach); letter-spacing: -0.04em; }
.count span { font-weight: 600; color: var(--dark-text); max-width: 22ch; line-height: 1.3; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--pine); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 90; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

footer { background: var(--foot); color: var(--dark-text); padding: 44px 0 56px; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 40px; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr; } }
footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
footer a { color: #fff; }
footer ul { margin: 0; padding-left: 18px; }
footer p { max-width: 70ch; }

/* ---------- methodology ---------- */
.mhead { padding: clamp(28px, 5vw, 64px) 0 12px; }
.mhead h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 18ch; }
.mhead .lede { margin-top: 18px; }
.mgrid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: 24px 0 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: .95rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--pine-2); font-weight: 600; }
.toc a:hover, .toc a.on { background: var(--paper); color: var(--pine); }
@media (max-width: 900px) { .mgrid { grid-template-columns: 1fr; } .toc { position: static; } .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc section { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 16px; }
.doc h3 { margin: 22px 0 8px; font-size: 1.12rem; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.formula { background: var(--paper); border-radius: 16px; padding: 16px 20px; margin: 14px 0 18px; font-family: var(--display); font-size: 1.12rem; line-height: 1.9; overflow-x: auto; box-shadow: inset 4px 0 0 var(--peach); }
.formula i { font-style: italic; } .formula sub { font-size: .7em; }
.formula .nt { display: block; font-family: var(--ui); font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.callout { background: var(--peach-soft); border-radius: 16px; padding: 16px 20px; margin: 18px 0; max-width: 68ch; }
.callout p { margin: 0; }
.tbl { background: var(--paper); border-radius: 16px; overflow: auto; margin: 14px 0 20px; box-shadow: 0 1px 0 var(--line); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--row); }
.tbl th { font-size: .84rem; color: var(--muted); background: var(--paper); }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; }
.ok { color: #1c7a4f; font-weight: 700; }
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.scroll-table { max-height: 560px; }
.scroll-table table { min-width: 1100px; }

@media print {
  .top, .toast, .jump, .tools .btn, footer .cols + * { display: none !important; }
  body { background: #fff; }
}
.legendrow svg { width: 18px; height: 18px; flex: none; max-width: none; }
.chart text { font-size: 12.5px; }
@media (max-width: 520px) { .brand span { white-space: nowrap; font-size: .95rem; } .nav { gap: 10px; } .nav a { white-space: nowrap; } .nav a:not(.btn) { font-size: .9rem; } }
@media (max-width: 520px) { .brand span { display: none; } }
@media (max-width: 520px) { .brand img { height: 36px; } }
.mkcmp { margin-top: 24px; } .mkcmp tr.hl td { background: var(--peach-soft); font-weight: 600; } .mkcmp td.n, .mkcmp th.n { text-align: right; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tbl .sub { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 2px; } .tbl td:last-child { max-width: 38ch; }

/* view modes: Normal (default), Tech Fan (gold, black, white), Dawg Fan (red, black, white) */
.modebar { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 2px; flex-wrap: wrap; }
.modebar .mlabel { font-size: .88rem; font-weight: 700; color: var(--muted); }
.themes { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.themes button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .9rem; border: 0; background: transparent; color: var(--pine); padding: 7px 14px 7px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.themes button:hover { background: var(--row-hover); }
.themes button[aria-pressed="true"] { background: var(--pine); color: #fff; }
.themes .sw { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.themes button[data-t="normal"] .sw { background: linear-gradient(135deg, #ffa37a 50%, #143029 50%); }
.themes button[data-t="dawg"] .sw { background: linear-gradient(135deg, #ba0c2f 50%, #111 50%); }
.themes button[data-t="tech"] .sw { background: linear-gradient(135deg, #eaaa00 50%, #0b0b0b 50%); }
@media (max-width: 520px) { .modebar { gap: 8px; } .themes { width: 100%; justify-content: space-between; } .themes button { flex: 1; justify-content: center; padding: 7px 6px; font-size: .84rem; gap: 6px; } .themes .sw { width: 16px; height: 16px; } }
html[data-theme="dawg"] {
  --page: #f3f2f0; --paper: #ffffff; --pine: #111111; --pine-2: #2c2c2c; --muted: #5d5d5d; --line: #d8d5d1;
  --peach: #ba0c2f; --peach-soft: #f6d9de; --on-accent: #ffffff; --accent-hover: #96091f; --gold: #8f8f8f;
  --foot: #0a0a0a; --dark-text: #d6d6d6; --dark-small: #a9a9a9; --row: #ebe9e6; --row-hover: #f6f5f3; --grid: #e6e4e1;
  --c22: #7a7a7a; --c24: #b9b9b9; --neutral: #e6e4e1;
}
html[data-theme="tech"] {
  --page: #f5f3ec; --paper: #ffffff; --pine: #0b0b0b; --pine-2: #2a2a26; --muted: #5f5d54; --line: #dad6c8;
  --peach: #eaaa00; --peach-soft: #fbefc2; --on-accent: #0b0b0b; --accent-hover: #d09700; --gold: #b3a369;
  --foot: #050505; --dark-text: #dedbd0; --dark-small: #b5b1a2; --row: #ece9de; --row-hover: #f8f6ef; --grid: #e8e5da;
  --c22: #8a7f4f; --c24: #bdb9a6; --neutral: #e6e3d8;
}
.logocard { display: inline-block; background: #fff; border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; }
.logocard img { height: 64px; width: auto; }
header.top { border-top: 5px solid var(--peach); } .brand img { height: 44px; }
.brand img { aspect-ratio: 567 / 630; width: auto; flex: none; } @media (max-width: 520px) { .brand img { height: 38px; } }
.chartwrap.chart { min-height: 300px; } .races { min-height: 0; }
/* layout tightening */
.hero { padding: 20px 0 clamp(32px, 4vw, 56px); }
.hero-head { display: grid; gap: 14px; padding-bottom: 22px; }
.hero-head h1 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); max-width: 24ch; }
.hero-head .lede { max-width: 72ch; }
.hero-copy > * + * { margin-top: 14px; }
.races { margin-top: 0; }
.dial { margin-top: 14px; }
.sec { padding: clamp(36px, 4.5vw, 68px) 0; }
.sec-head { margin-bottom: clamp(18px, 2.6vw, 30px); gap: 10px; }
.sec-head h2 { max-width: 28ch; }
.mapcol { top: 78px; }
.mappanel { padding: clamp(10px, 1.6vw, 18px); }
.mapstage svg { max-height: 70vh; }
.chartgrid { align-items: stretch; }
.facts { display: grid; gap: 14px; align-content: start; }
@media (min-width: 901px) { #market .chartgrid, #early .chartgrid { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); } }
#market .seg { margin-bottom: 16px; }
.facts > div { background: var(--paper); border-radius: 16px; padding: 14px 18px; box-shadow: 0 1px 0 var(--line); }
.facts > div b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1.1; }
.facts > div span { display: block; font-size: .92rem; color: var(--pine-2); margin-top: 4px; }
.facts .small { margin: 2px 4px 0; }
