/* The crawlable results pages (county, district, race, by-county), written by scripts/build-results-seo-2026.py. */
:root { --ink: #1b1f24; --mute: #5b6470; --line: #d9dde3; --bg: #fff; --r: #b3122e; --d: #1f4fa3; --accent: #b3122e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
a { color: #0b4ea2; }
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.sub { margin: 0; color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
h1 { margin: 2px 0 6px; font-size: 28px; line-height: 1.2; }
h2 { font-size: 20px; margin: 28px 0 8px; }
.status { margin: 0 0 12px; color: var(--mute); font-size: 13px; }
.note { color: var(--mute); font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
caption { text-align: left; color: var(--mute); font-size: 13px; padding: 4px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
thead th { font-size: 12px; color: var(--mute); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.r, td.num.r { color: var(--r); }
td.d, td.num.d { color: var(--d); }
td.win { font-weight: 700; }
td.none { color: var(--mute); font-style: italic; }
.pcts td, .pcts th { padding: 4px 6px; font-size: 13px; }
ul.cols { columns: 3 220px; padding-left: 18px; }
.places { margin-top: 32px; border-top: 1px solid var(--line); }
footer { margin-top: 24px; color: var(--mute); font-size: 13px; }
@media (max-width: 640px) { h1 { font-size: 23px; } .races td, .races th { font-size: 13px; padding: 4px; } }
thead th { text-align: right; }
thead th:first-child, thead th.txt { text-align: left; }
/* On a phone a wide table scrolls inside its own box instead of widening the page. */
@media (max-width: 760px) { table.races { display: block; overflow-x: auto; } }
