/* Midterms26 viewer — data-dense, calm. Party colours: D blue, R red, independent amber (one hue each, built
 * in OKLCH; the JS ramp in core.js uses the same anchors). Neutral greys for chrome. System fonts. */
/* Themes (Lior, 29 Oct 2026): red-white-blue light is the default; navy-night dark is the switchable option
 * (html[data-theme="dark"], remembered per viewer). Chrome is navy (#0b1f45) with flag red (#b22234) only as thin
 * accents (top stripe, active-tab underline). Red and blue mean Republican and Democrat on this page, so the chrome
 * tokens (--navy, --flag, --mast-*) are never used for data or for UI states; party colours are the same in both. */
:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --surface-3: #e7ebf1;
  --border: #d9dfe7;
  --border-2: #b6c0cd;   /* hover / emphasis borders */
  --grid: #e6eaf0;
  --text: #121a2b;
  --text-2: #3d4759;
  --muted: #5f6b7e;
  --strong: #000000;     /* link/row hover text */
  --heading: #0b1f45;
  --navy: #0b1f45;       /* chrome only */
  --flag: #b22234;       /* chrome only: thin accents */
  --mast-bg: #0b1f45;
  --mast-text-2: #c9d3e6;
  --bar-bg: rgba(255, 255, 255, .94);
  --tag-bg: #0b1f45;     /* ticker "Latest" tag */
  --d: #3d7fe8;          /* = core.js RAMP.D[100] (approx.) */
  --r: #de4a45;          /* = core.js RAMP.R[100] (approx.) */
  --i: #e0a539;          /* independent: amber */
  --o: #8a909b;
  --d-text: #2160d4;     /* party colours for text (AA on --surface) */
  --r-text: #c03a30;
  --i-text: #8f6000;
  --d-alt: #6893e6;      /* the Senate line beside the House line */
  --i-border: #d9b25a;
  --yes: #2fb59b;
  --no: #5d6676;
  --focus: #121a2b;
  --accent: #4a5d80;     /* neutral data accent (averages, totals) */
  --link: #22427f;
  --axis: #cbd2dc;
  --zero: #8691a3;
  --med: #121a2b;        /* medians, trend lines */
  --band-95: #d3d9e2;
  --band-80: #8e9bb0;
  --hl: #121a2b;         /* selected / hovered seat or state outline */
  --sel: #4a5568;
  --hover-fill: rgba(18, 26, 43, .06);
  --prog: #6b7587;
  --warn-bg: #fff5dc;
  --warn-border: #e9c46a;
  --warn-text: #6b4a00;
  --test-bg: #efebfc;
  --test-border: #c7bdf0;
  --test-text: #3f2f86;
  --live-dot: #e5484d;
  --src-model-bg: #e6ebf5;
  --src-model-text: #2b3f66;
  --src-poll-bg: #dcf2ec;
  --src-poll-text: #0f5e4f;
  --pop-bg: #ffffff;
  --pop-text: #121a2b;
  --pop-border: #d2d8e1;
  --pop-shadow: 0 10px 30px rgba(11, 31, 69, .18);
  --tip-bg: #ffffff;
  --tip-border: #cfd6df;
  --tip-shadow: 0 8px 24px rgba(11, 31, 69, .16);
  --scrim: rgba(12, 18, 32, .42);
  --flash: rgba(255, 210, 0, .42);
  --none: #e3e7ed;       /* map: no race (read by core.js) */
  --none-stroke: #cfd5de;
  --radius: 12px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;   /* headings (Google Fonts) */
  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d1a;
  --surface: #0d1527;
  --surface-2: #121c31;
  --surface-3: #1a2540;
  --border: #23304b;
  --border-2: #3a4a68;
  --grid: #1c2741;
  --text: #e8edf6;
  --text-2: #b3bdd0;
  --muted: #8b97ad;
  --strong: #ffffff;
  --heading: #eef2fa;
  --flag: #d23a49;
  --mast-bg: #0c1a3c;
  --mast-text-2: #b9c6de;
  --bar-bg: rgba(7, 13, 26, .92);
  --tag-bg: #1f3c7c;
  --d-text: #7fb0ff;
  --r-text: #ff8a83;
  --i-text: #f2c060;
  --d-alt: #9cc2ff;
  --i-border: #6b5420;
  --focus: #ffffff;
  --accent: #9cc2ff;
  --link: #9cc2ff;
  --axis: #33405a;
  --zero: #6b7891;
  --med: #ffffff;
  --band-95: #36435d;
  --band-80: #6c7a95;
  --hl: #ffffff;
  --sel: #c8d0dc;
  --hover-fill: rgba(255, 255, 255, .07);
  --prog: #c8d0dc;
  --warn-bg: #2b2210;
  --warn-border: #5f4a1c;
  --warn-text: #f6d79a;
  --test-bg: #1d1730;
  --test-border: #45376e;
  --test-text: #d4c8ff;
  --live-dot: #ff6b6b;
  --src-model-bg: #1f2e4d;
  --src-model-text: #9cc2ff;
  --src-poll-bg: #143832;
  --src-poll-text: #86e0cc;
  --pop-bg: #e9ecf1;
  --pop-text: #11151c;
  --pop-border: #e9ecf1;
  --pop-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --tip-bg: #0c1424;
  --tip-border: #3a4a68;
  --tip-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  --scrim: rgba(0, 0, 0, .55);
  --flash: rgba(255, 210, 0, .24);
  --none: #1b2438;
  --none-stroke: #2a3550;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.drawer-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums;
  overflow-x: hidden; min-height: 100vh; }
a { color: var(--link); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .82rem; margin: 8px 0 0; }
.t-d, .t-D { color: var(--d-text); }
.t-r, .t-R { color: var(--r-text); }
.t-i, .t-I { color: var(--i-text); }
.t-O, .t-N { color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.loading, .empty { color: var(--muted); padding: 16px 0; }
.section-error { color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 8px; padding: 10px 12px; }

/* ---------------------------------------------------------------- header */
/* masthead: navy band, thin flag-red top stripe, a light star field fading in from the right */
header.top { position: relative; background: var(--mast-bg); color: #fff; border-top: 3px solid var(--flag); }
header.top::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 70%); pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cg fill='white'%3E%3Cpolygon points='12.00,4.30 12.65,6.11 14.57,6.17 13.05,7.34 13.59,9.18 12.00,8.10 10.41,9.18 10.95,7.34 9.43,6.17 11.35,6.11'/%3E%3Cpolygon points='36.00,18.30 36.65,20.11 38.57,20.17 37.05,21.34 37.59,23.18 36.00,22.10 34.41,23.18 34.95,21.34 33.43,20.17 35.35,20.11'/%3E%3C/g%3E%3C/svg%3E"); background-size: 48px 28px;
  -webkit-mask-image: linear-gradient(to left, #000 0, transparent 100%); mask-image: linear-gradient(to left, #000 0, transparent 100%); }
header.top .top-row { position: relative; z-index: 35; }   /* above the sticky tabs, so the finder's list can drop over them */
/* "Find my race" */
.finder { position: relative; flex: 0 1 250px; min-width: 180px; }
.top-right .countdown { white-space: nowrap; }
.finder-q { width: 100%; height: 34px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff;
  padding: 0 14px; font-size: .86rem; }
.finder-q::placeholder { color: var(--mast-text-2); opacity: .9; }
.finder-q:focus { background: #fff; color: #121a2b; outline: 2px solid #fff; outline-offset: 1px; }
.finder-q:focus::placeholder { color: #5f6b7e; }
.finder-list { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; max-height: 360px; overflow-y: auto; margin: 0;
  padding: 4px; list-style: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--pop-shadow); }
.fd-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.fd-item[aria-selected=true], .fd-item:hover { background: var(--surface-3); }
.fd-sw { width: 10px; height: 10px; border-radius: 3px; }
.fd-t { display: flex; flex-direction: column; min-width: 0; font-size: .88rem; line-height: 1.3; }
.fd-t small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-p { font-size: .8rem; font-weight: 800; white-space: nowrap; }
.fd-none { padding: 8px 10px; color: var(--muted); font-size: .86rem; }
/* deep-link target and links */
.rc-top { display: flex; align-items: center; gap: 4px; }
.rc-top .rc-head { flex: 1 1 auto; min-width: 0; }
.rc-link { flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); }
.rc-link:hover { color: var(--text); background: var(--surface-3); }
.drawer-link { margin-left: auto; color: var(--text-2); }
.drawer-head .drawer-titles { min-width: 0; }
@keyframes target { 0%, 60% { box-shadow: 0 0 0 3px var(--hl); } 100% { box-shadow: 0 0 0 3px transparent; } }
.rcard.target, .hrow.target { animation: target 2.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .rcard.target, .hrow.target { animation: none; box-shadow: 0 0 0 3px var(--hl); } }
header.top :focus-visible { outline-color: #fff; }
header.top .muted { color: var(--mast-text-2); }
header.top .ib { color: var(--mast-text-2); }
header.top .ib:hover, header.top .ib[aria-expanded=true] { color: #fff; background: rgba(255, 255, 255, .14); }
.top-right { display: flex; align-items: center; gap: 10px; }
.theme-btn { flex: 0 0 auto; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; }
.theme-btn:hover { background: rgba(255, 255, 255, .16); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.tabs-bar { position: sticky; top: 0; z-index: 30; background: var(--bar-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 8px; flex-wrap: wrap; }
.brand { min-width: 0; }
h1 { margin: 0; font-family: var(--serif); font-size: 1.42rem; line-height: 1.2; letter-spacing: -.005em; font-weight: 700; }
/* editorial serif for headings; numbers stay in the sans with tabular, lining figures so updating odds never jitter */
.card-h, .drawer-head h2, .ms-title, .rc-titles b, .pc-name b { font-family: var(--serif); letter-spacing: 0; }
.ho-n, .ins-v, .oc-n, .cand-p, .pc-m, .hemi-big, .pl-big-n, .jx.cell b, .stat-v, .ms-pn b, .ticker, .cnt-row, .hrow, .arow, svg text
  { font-variant-numeric: tabular-nums lining-nums; }
.mark { width: 1.3em; height: 1.3em; vertical-align: -.28em; margin-right: .45em; flex: 0 0 auto; }
.h1-sep { color: var(--mast-text-2); margin: 0 2px; }
.h1-sub { color: var(--mast-text-2); font-weight: 600; }
.sub-line { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .84rem; color: var(--mast-text-2); }
/* header pills sit on the navy masthead in both themes; "live" is neutral with a pulsing dot (red/blue mean parties) */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: .76rem;
  letter-spacing: .02em; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; white-space: nowrap; }
.pill[data-mode="live"] { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.pill[data-mode="live"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; animation: pulse 1.6s ease-in-out infinite; }
.pill[data-mode="final"] { color: var(--navy); background: #fff; border-color: #fff; }
.pill[data-mode="replay"] { color: #f2c060; border-color: rgba(242, 192, 96, .5); }
.pill[data-mode="error"] { color: #f6d79a; border-color: rgba(246, 215, 154, .5); }
@keyframes pulse { 50% { opacity: .35; } }
.countdown { margin: 0; font-size: .84rem; color: var(--mast-text-2); }
.countdown b { color: #fff; }
/* data-freshness badge: green dot = fresh, amber "!" = older than stale_after_h, red dot = live counting */
.fresh { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .08);
  padding: 0 2px 0 8px; font-size: .78rem; color: var(--mast-text-2); white-space: nowrap; min-height: 22px; }
.fresh::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--yes); }
.fresh .ib { width: 20px; height: 20px; margin: 0; }
.fresh.stale { color: #f6d79a; border-color: rgba(242, 192, 96, .5); background: rgba(242, 192, 96, .14); }
.fresh.stale::before { content: "!"; width: 12px; height: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--i);
  color: #1a1408; font-size: .62rem; font-weight: 900; line-height: 1; }
.fresh.live::before { background: #ff6b6b; }
.fresh-err { font-size: .78rem; color: #f6d79a; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tabs-wrap { padding-bottom: 0; }
.tabs { display: flex; gap: 2px; }
.tabs [role=tab] { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-2); padding: 9px 12px 8px; font-weight: 600;
  font-size: .92rem; white-space: nowrap; border-radius: 6px 6px 0 0; }
.tabs [role=tab]:hover { color: var(--text); background: var(--surface); }
.tabs [role=tab][aria-selected=true] { color: var(--heading); border-bottom-color: var(--flag); }
.tabs .ts { display: none; }
/* sticky score bar: hangs under the sticky tab row once the masthead is off screen (overlay, so nothing jumps) */
.scorebar { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); box-shadow: 0 6px 12px -10px rgba(11, 31, 69, .35); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s .15s; }
.tabs-bar.scrolled .scorebar { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease-out, transform .15s ease-out; }
@media (prefers-reduced-motion: reduce) { .scorebar, .tabs-bar.scrolled .scorebar { transition: none; transform: none; } }
.sb-row { display: flex; align-items: center; gap: 4px 20px; min-height: 30px; font-size: .82rem; white-space: nowrap; overflow: hidden; }
.sb-ch { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: none; }
.sb-ch:hover .sb-l { text-decoration: underline; }
.sb-l { color: var(--heading); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.sb-ch b { font-weight: 800; }
.sb-when { margin-left: auto; color: var(--text-2); }
.sb-when b { color: var(--text); }
@media (max-width: 720px) {
  .wrap { padding: 0 12px; }
  h1 { font-size: 1.16rem; }
  .top-row { padding-top: 8px; padding-bottom: 6px; }
  .tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; }
  .tabs [role=tab] { padding: 8px 0 7px; font-size: .76rem; text-align: center; border-radius: 0; }
  .tabs .tl { display: none; }
  .tabs .ts { display: inline; }
  .countdown { font-size: .78rem; }
  .sb-row { gap: 4px 12px; font-size: .76rem; min-height: 28px; }
  .sb-ch { gap: 5px; }
  .sb-l { font-size: .66rem; letter-spacing: .03em; }
  .sb-long { display: none; }
  .top-right { width: 100%; justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
  .finder { order: 3; flex: 1 1 100%; }
  .finder-q { font-size: 16px; }   /* iPhone Safari zooms the page into inputs under 16px */
  .method-page header.top .top-row { flex-wrap: nowrap; align-items: flex-start; }
  .method-page .top-right { width: auto; }
  .finder-list { min-width: 0; }
  .theme-btn { width: 30px; height: 30px; }
}

/* ---------------------------------------------------------------- banners and ticker */
#banners:empty { display: none; }
.banner { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; font-size: .86rem; }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }
.banner.test { background: var(--test-bg); border: 1px solid var(--test-border); color: var(--test-text); }
.ticker-wrap { margin-top: 10px; }
.ticker { display: flex; align-items: stretch; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; min-height: 38px; }
.ticker-tag { flex: 0 0 auto; display: flex; align-items: center; padding: 0 10px; font-weight: 800; font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; background: var(--tag-bg); color: #fff; }
.ticker-view { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }
.ticker-track { display: inline-flex; flex: 0 0 auto; white-space: nowrap; animation: crawl 60s linear infinite; }
.ticker-track.static { animation: none; white-space: normal; }
.ticker.paused .ticker-track { animation-play-state: paused; }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
.ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ti-group { display: inline-flex; flex: 0 0 auto; }
.ti { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 20px 0 12px; font-size: .88rem; line-height: 38px; border: 0;
  border-right: 1px solid var(--border); background: none; color: var(--text); white-space: nowrap; }
button.ti:hover { color: var(--strong); text-decoration: underline; }
.ti-t { color: var(--muted); font-weight: 700; font-size: .8rem; }
.ti-key { background: var(--text); color: var(--bg); border-radius: 4px; padding: 0 5px; font-size: .68rem; font-weight: 800; line-height: 1.5; align-self: center; }
.ticker-btn { flex: 0 0 auto; width: 40px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: .8rem; }
.upd-all { font-size: .85rem; margin-top: 4px; }
.upd-all > summary { cursor: pointer; color: var(--link); width: max-content; max-width: 100%; padding: 2px; }
.upd-list { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); max-height: 320px; overflow-y: auto; }
.upd-list li { padding: 7px 12px; border-top: 1px solid var(--grid); }
.upd-list li:first-child { border-top: 0; }
.ul-time { color: var(--muted); font-size: .8rem; font-weight: 700; }
/* kind labels: Forecast (model events) and Poll filled, a news item's source name outlined */
.ti-src { align-self: center; flex: 0 0 auto; font-size: .66rem; font-weight: 800; letter-spacing: .04em; line-height: 1.5; border-radius: 4px;
  padding: 0 5px; white-space: nowrap; }
.ti-src.s-model { background: var(--src-model-bg); color: var(--src-model-text); text-transform: uppercase; }
.ti-src.s-poll { background: var(--src-poll-bg); color: var(--src-poll-text); text-transform: uppercase; }
.ti-src.s-news { border: 1px solid var(--border-2); color: var(--text-2); padding: 0 4px; font-weight: 700; letter-spacing: .01em; }
.upd-list .ti-src { display: inline-block; vertical-align: 1px; margin-right: 2px; }
.upd-list .ti-key { display: inline-block; vertical-align: 1px; margin-right: 2px; }
.ti-a, .ti-race { color: var(--text); text-decoration: none; border: 0; background: none; padding: 0; font: inherit; line-height: inherit; white-space: inherit; text-align: left; }
.ti-a:hover, .ti-race:hover { color: var(--strong); text-decoration: underline; }
.ul-a { color: var(--link); text-underline-offset: 2px; }
.upd-filter { margin: 6px 0 6px; }
.upd-empty { margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; white-space: normal; display: block; }
  .ti-group[aria-hidden] { display: none; }
  .ti-group { display: block; }
  .ti { white-space: normal; line-height: 1.35; padding: 8px 12px; border-right: 0; display: block; }
  .ti-group > .ti:nth-child(n+3) { display: none; }
  .ticker-btn { display: none; }
  .pill[data-mode="live"]::before { animation: none; }
}

/* ---------------------------------------------------------------- layout and cards */
#main { padding-top: 14px; padding-bottom: 28px; outline: none; }
.view > * + * { margin-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; min-width: 0; }
.card.plain { background: none; border: 0; padding: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.card-h { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--heading); display: inline-flex; align-items: center; gap: 6px; letter-spacing: -.005em; }
.card.plain > .card-head .card-h { font-size: 1.14rem; }
.card-aside { font-size: .86rem; color: var(--text-2); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.src-line { margin: 10px 0 0; font-size: .74rem; line-height: 1.4; color: var(--muted); }
.foot { color: var(--muted); font-size: .8rem; padding-top: 10px; padding-bottom: 40px; border-top: 1px solid var(--border); }
.foot p { margin: 6px 0; max-width: 900px; }

/* info button + popover */
.ib { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -4px 0; padding: 0; border: 0;
  background: none; color: var(--muted); border-radius: 50%; vertical-align: middle; flex: 0 0 auto; }
.ib:hover, .ib[aria-expanded=true] { color: var(--text); background: var(--surface-3); }
.info-pop { position: absolute; z-index: 60; background: var(--pop-bg); color: var(--pop-text); border: 1px solid var(--pop-border); border-radius: 10px;
  padding: 10px 12px; font-size: .86rem; line-height: 1.45; box-shadow: var(--pop-shadow); }
.info-pop::before { content: ""; position: absolute; top: -6px; left: calc(var(--ax, 20px) - 6px); border: 6px solid transparent; border-top: 0;
  border-bottom-color: var(--pop-bg); }
.info-pop.above::before { top: auto; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--pop-bg); }
.info-pop a { color: #1a4fb4; text-underline-offset: 2px; }
.info-pop a:focus-visible { outline-color: #11151c; }
.ip-p { margin: 0; }
.ip-p + .ip-p, .ip-ul + .ip-p { margin-top: 6px; }
.ip-ul { margin: 4px 0 0; padding-left: 18px; }
.ip-warn { color: #6b4a00; font-weight: 600; }

/* latest headlines (Overview) */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.news-list li { padding: 9px 0 10px; border-top: 1px solid var(--grid); min-width: 0; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .76rem; color: var(--muted); margin-bottom: 2px; }
.nw-src { font-weight: 700; color: var(--text-2); }
.nw-a { color: var(--text); font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.nw-a::after { content: " ↗"; color: var(--muted); font-weight: 400; }
.nw-a:hover { color: var(--strong); text-decoration: underline; text-underline-offset: 2px; }
.nw-foot { margin-top: 6px; }
@media (max-width: 720px) { .news-list { grid-template-columns: minmax(0, 1fr); } }

/* tooltip */
.tip { position: absolute; z-index: 70; pointer-events: none; background: var(--tip-bg); color: var(--text); border: 1px solid var(--tip-border); border-radius: 8px;
  padding: 8px 10px; font-size: .82rem; line-height: 1.4; max-width: 300px; box-shadow: var(--tip-shadow); }
.tip b { display: block; margin-bottom: 2px; }
.tt-row { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.tt-row b { display: inline; margin: 0 0 0 auto; padding-left: 8px; }
.tt-muted { color: var(--muted); }
.tt-called { color: var(--strong); font-weight: 700; }

/* chips, tags, party chips */
.pchip { display: inline-block; min-width: 30px; text-align: center; font-size: .68rem; font-weight: 800; letter-spacing: .03em; border-radius: 4px;
  padding: 1px 4px; line-height: 1.4; vertical-align: 1px; color: #0b0e13; }
.pchip.p-D { background: var(--d); color: #fff; }
.pchip.p-R { background: var(--r); color: #fff; }
.pchip.p-I { background: var(--i); }
.pchip.p-O { background: var(--o); }
.rchip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; border-radius: 999px; padding: 1px 8px 1px 6px;
  background: var(--surface-3); color: var(--text); white-space: nowrap; }
.rchip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rc, var(--o)); }
.rchip.none { color: var(--muted); }
.rchip.none::before { background: transparent; border: 1px solid var(--muted); width: 6px; height: 6px; }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; border-radius: 4px; padding: 0 5px; line-height: 1.6; background: var(--surface-3);
  color: var(--text-2); text-transform: lowercase; white-space: nowrap; }
.tag.live { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.tag.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--live-dot); vertical-align: 1px; }
.tag.called { background: var(--text); color: var(--bg); text-transform: none; }
.tag.called.c-D { background: var(--d); color: #fff; } .tag.called.c-R { background: var(--r); color: #fff; } .tag.called.c-I { background: var(--i); color: #111; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fchip { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 5px 12px; font-size: .84rem;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.fchip:hover { color: var(--text); border-color: var(--border-2); }
.fchip[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cnt { font-size: .74rem; opacity: .75; font-weight: 700; }
.race-link { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 6px; padding: 2px 8px 2px 6px;
  font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; min-height: 26px; }
.race-link::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--o)); }
.race-link:hover { border-color: var(--border-2); }
.link-btn { border: 0; background: none; color: var(--link); padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.icon-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 8px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; }
.search { width: 100%; max-width: 520px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; color: var(--text); }
.search.sm { max-width: 280px; padding: 7px 10px; }
.search::placeholder { color: var(--muted); }
.sort-sel, .state-pick { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; color: var(--text); max-width: 100%; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.list-count { margin: 0; }
.badge-called { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--text); color: var(--bg); border-radius: 4px; padding: 1px 6px; }
.called-line { margin: 10px 0 0; font-size: .86rem; }

/* probability bars */
.pbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-3); gap: 1px; }
.pbar.big { height: 14px; border-radius: 7px; margin: 10px 0 4px; }
.pbar.thin { height: 5px; border-radius: 3px; margin-top: 4px; }
.pbar .seg { display: block; height: 100%; min-width: 0; }
.seg.s-D { background: var(--d); } .seg.s-R { background: var(--r); } .seg.s-I { background: var(--i); } .seg.s-O { background: var(--o); }
.mbar { display: block; overflow: visible; max-width: 100%; }
.mb-axis { fill: var(--axis); } .mb-zero { fill: var(--zero); } .mb-med { fill: var(--med); }

/* ---------------------------------------------------------------- overview */
.heroes { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 14px; }
@media (max-width: 1000px) { .heroes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .heroes > :last-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .heroes { grid-template-columns: minmax(0, 1fr); } }
.hero { display: flex; flex-direction: column; }
.hero-k { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; font-size: .82rem; }
.hero-t { margin: 0; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--heading); }
.hero-odds { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ho { display: flex; flex-direction: column; }
.ho.r { text-align: right; }
.ho-n { font-size: 2.3rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.ho.d .ho-n { color: var(--d-text); } .ho.r .ho-n { color: var(--r-text); } .ho.n .ho-n { color: var(--text); }
/* change since yesterday: neutral (the arrow says which way; colour stays out of it) */
.delta { display: inline-block; align-self: flex-start; margin-top: 4px; font-size: .72rem; font-weight: 700; line-height: 1.5; color: var(--text-2);
  background: var(--surface-3); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.ho.r .delta { align-self: flex-end; }
.delta.flat { color: var(--muted); font-weight: 600; }
.oc-l { flex-wrap: wrap; }
.oc-l .delta { margin: 1px 0 1px 4px; }
@keyframes flash { from { background-color: var(--flash); } to { background-color: transparent; } }
.flash { animation: flash 1.8s ease-out; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }
.ho-l { font-size: .82rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.ho.r .ho-l { justify-content: flex-end; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.stat { display: flex; flex-direction: column; min-width: 0; }
.stat-l { font-size: .74rem; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.stat-v { font-size: .98rem; font-weight: 700; }
.raxis { display: block; width: 100%; max-width: 360px; height: auto; margin-top: 10px; overflow: visible; }
.ra-axis { fill: var(--axis); } .ra-95 { fill: var(--band-95); } .ra-80 { fill: var(--band-80); } .ra-med { fill: var(--med); }
.ra-t { fill: var(--muted); font-size: 10px; }
.ra-t.need { fill: var(--text-2); font-weight: 700; }
.maj-line { stroke: var(--med); stroke-width: 1.5; stroke-dasharray: 3 3; }
.outcomes { display: grid; gap: 6px; margin-top: 10px; }
.oc { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; gap: 0 10px; }
.oc-n { font-size: 1.5rem; font-weight: 800; line-height: 1.1; grid-row: span 2; }
.oc-D .oc-n { color: var(--d-text); } .oc-R .oc-n { color: var(--r-text); } .oc-I .oc-n { color: var(--i-text); }
.oc-l { font-size: .84rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 2px; }
.oc-bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.oc-bar i { display: block; height: 100%; }
.oc-D .oc-bar i { background: var(--d); } .oc-R .oc-bar i { background: var(--r); } .oc-I .oc-bar i { background: var(--i); }
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ins { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--o); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.ins.t-D { border-left-color: var(--d); } .ins.t-R { border-left-color: var(--r); }
.ins-v { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.ins.t-D .ins-v { color: var(--d-text); } .ins.t-R .ins-v { color: var(--r-text); }
.ins-t { margin: 2px 0 4px; font-size: .92rem; line-height: 1.3; }
.ins-b { margin: 0; font-size: .84rem; color: var(--text-2); }
.ins-races { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.hist { display: block; width: 100%; height: auto; overflow: visible; }
.hb.med { stroke: var(--med); stroke-width: 1; }
.h-axis { fill: var(--axis); }
.h-tick { fill: var(--muted); font-size: 11px; }
.h-maj { fill: var(--text); font-size: 11px; font-weight: 700; }
.h-band { fill: var(--band-80); }
.h-band-t { fill: var(--text-2); font-size: 11px; }
.h-hover { fill: var(--hover-fill); }
.sw-d, .sw-r { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.sw-d { background: var(--d); } .sw-r { background: var(--r); margin-left: 8px; }
.joint { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: stretch; }
.jx { font-size: .8rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.jx.colh { justify-content: center; }
.jx.rowh { padding-right: 4px; }
.jx.cell { flex-direction: column; justify-content: center; align-items: flex-start; padding: 12px 14px; border-radius: 10px; min-height: 86px;
  background: color-mix(in srgb, var(--jc) calc(var(--ja) * 100%), var(--surface-2)); border: 1px solid var(--border); color: var(--text); }
.jx.cell b { font-size: 1.7rem; line-height: 1.1; font-weight: 800; }
.jx.cell span { font-size: .78rem; color: var(--text); opacity: .9; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.d { background: var(--d); } .dot.r { background: var(--r); }
.nat { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .nat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .nat-t { padding: 8px 10px; } }
@media (max-width: 560px) { .hist .h-tick { font-size: 18px; } .hist .h-maj { font-size: 18px; } .h-band-t { font-size: 17px; } }
.nat-t { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--border); }
.nat-t .stat-v b { font-size: 1.25rem; }
.nat-t .stat-v small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.hc-wrap { position: relative; }
.hchart { display: block; width: 100%; height: auto; }
.hc-grid { stroke: var(--grid); } .hc-mid { stroke: var(--zero); stroke-dasharray: 3 3; }
.hc-tick { fill: var(--muted); font-size: 11px; }
.hc-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.hc-line.house { stroke: var(--d); } .hc-line.senate { stroke: var(--d-alt); stroke-dasharray: 6 3; }
.hc-dot.house { fill: var(--d); } .hc-dot.senate { fill: var(--d-alt); }
.hc-cross { stroke: var(--zero); }
.hc-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--text-2); margin-top: 4px; }
.lk { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--d); vertical-align: 3px; margin-right: 6px; }
.lk.senate { border-top: 2.5px dashed var(--d-alt); }

.cnt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 16px; }
.cnt-row { display: grid; grid-template-columns: 10px 5.2rem 5.6rem minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; border: 0;
  border-bottom: 1px solid var(--grid); background: none; color: var(--text); text-align: left; padding: 7px 2px; font-size: .84rem; }
.cnt-row:hover { background: var(--surface-2); }
.cnt-in { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; color: var(--text-2); }
.cnt-m { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.cnt-m small { font-size: .74rem; }
@media (max-width: 400px) { .cnt-list { grid-template-columns: minmax(0, 1fr); } .cnt-row { grid-template-columns: 10px 4.4rem 4.6rem minmax(0, 1fr) auto; gap: 6px; } }

/* ---------------------------------------------------------------- house: hemicycle, tile map, list */
.hemi-wrap { max-width: 760px; margin: 0 auto; }
.hemi { display: block; width: 100%; height: auto; touch-action: manipulation; }
.hemi .seat { stroke: var(--surface); stroke-width: .6; cursor: pointer; }
.hemi .seat.hl { stroke: var(--hl); stroke-width: 1.6; }
.hemi .seat.called { stroke: var(--hl); stroke-width: .9; }
.hemi-big { fill: var(--text); font-size: 34px; font-weight: 800; }
.hemi-small { fill: var(--muted); font-size: 13px; }
.hemi-side { font-size: 12px; font-weight: 700; }
.hemi-side.d { fill: var(--d-text); } .hemi-side.r { fill: var(--r-text); }
.hemi-count { text-align: center; margin: 4px 0 0; font-size: .88rem; }
.ramp-leg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: .76rem; color: var(--muted); margin-top: 10px; }
.rl-bar { width: 180px; height: 8px; border-radius: 4px; }
.rl-mid { width: 100%; text-align: center; margin-top: -2px; font-size: .72rem; }
.rl-i { display: inline-flex; align-items: center; gap: 5px; }
.rl-i i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.tilemap-wrap { max-width: 860px; margin: 0 auto; }
.tilemap { display: block; width: 100%; height: auto; touch-action: manipulation; }
.tile-bg { fill: var(--surface-2); stroke: var(--border); cursor: pointer; }
.tile:hover .tile-bg, .tile.sel .tile-bg { stroke: var(--sel); stroke-width: 1.5; }
.tile.sel .tile-bg { fill: var(--surface-3); }
.tile-lab { fill: var(--text-2); font-size: 11px; font-weight: 700; cursor: pointer; }
@media (max-width: 560px) { .tile-lab { font-size: 13px; } .hemi-side { font-size: 16px; } .hemi-small { font-size: 17px; } }
.dsq { cursor: pointer; }
.dsq:hover { stroke: var(--hl); stroke-width: 1; }
.dsq.called { stroke: var(--hl); stroke-width: .6; }
.tm-tools { display: flex; justify-content: flex-end; margin-top: 8px; }
.state-panel:not(:empty) { margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.sp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.sp-head .link-btn { margin-left: auto; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.dchip { display: grid; grid-template-columns: 10px 1fr; grid-template-rows: auto auto; column-gap: 6px; text-align: left; border: 1px solid var(--border);
  background: var(--surface); border-radius: 8px; padding: 6px 8px; font-size: .8rem; min-height: 44px; }
.dchip:hover { border-color: var(--border-2); }
.dc-sw { grid-row: span 2; width: 10px; height: 100%; border-radius: 3px; background: var(--c); }
.dchip span:last-child { color: var(--text-2); font-size: .76rem; }
.hlist-box { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hlist { list-style: none; margin: 0; padding: 0; }
.hrow { display: grid; grid-template-columns: 7.2rem minmax(0, 1.1fr) minmax(0, 1.5fr) 6.6rem 5.4rem 8rem 3.8rem 3.6rem; align-items: center; gap: 4px 10px;
  width: 100%; border: 0; border-top: 1px solid var(--grid); background: none; text-align: left; padding: 8px 12px; font-size: .84rem; color: var(--text); }
.hlist li:first-child .hrow { border-top: 0; }
button.hrow:hover { background: var(--surface-2); }
.hhead { background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 700; border-top: 0; padding-top: 6px; padding-bottom: 6px; }
.sort-btn { border: 0; background: none; color: var(--muted); padding: 2px 0; font-weight: 700; font-size: .74rem; text-align: left; }
.sort-btn[aria-pressed=true] { color: var(--text); }
.hc-seat { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.hc-inc, .hc-cands { min-width: 0; }
.hl-cands { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hl-cands > span, .inc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.hc-pd b { font-size: .9rem; }
.hc-margin small { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.hc-flip, .hc-tip { text-align: right; }
.hrow .lbl { display: none; }
.rc-sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; display: inline-block; }
@media (max-width: 980px) {
  .hrow { grid-template-columns: 6rem minmax(0, 1fr) 6.2rem 5rem 3.6rem; grid-template-areas: "seat cands rating pd flip" "seat cands margin margin tip"; }
  .hhead { display: none; }
  .hc-seat { grid-area: seat; } .hc-cands { grid-area: cands; } .hc-rating { grid-area: rating; } .hc-pd { grid-area: pd; }
  .hc-margin { grid-area: margin; } .hc-flip { grid-area: flip; } .hc-tip { grid-area: tip; } .hc-inc { display: none; }
  .hrow .lbl { display: inline; color: var(--muted); }
}
@media (max-width: 560px) {
  .hrow { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "seat rating pd" "cands cands cands" "margin flip tip"; padding: 10px 12px; }
  .hc-margin { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .hc-margin svg { display: none; }
  .hc-margin small { display: inline; font-size: .76rem; }
  .hc-margin small::before { content: "80%: "; }
}

/* ---------------------------------------------------------------- senate / governors */
.strip-wrap { margin-top: 2px; }
.strip { display: block; width: 100%; height: 44px; }
.st-race { cursor: pointer; }
.st-fixed.d { fill: var(--d); opacity: .45; } .st-fixed.r { fill: var(--r); opacity: .45; }
.strip-lab { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--text-2); margin-top: 4px; flex-wrap: wrap; }
.strip-mid { color: var(--muted); text-align: center; }
.geomap-wrap { max-width: 980px; margin: 0 auto; }
.geomap { display: block; width: 100%; height: auto; touch-action: manipulation; }
.gm-st { stroke: var(--bg); stroke-width: .8; stroke-linejoin: round; }
.gm-st.has, .gm-box.has { cursor: pointer; }
.gm-st.has:hover, .gm-box.has:hover { stroke: var(--hl); stroke-width: 1.6; }
.gm-lab { fill: #0b0e13; font-size: 12px; font-weight: 800; pointer-events: none; }
.gm-lab.none { fill: #6b7587; }
.gm-box { stroke: var(--bg); }
.gm-lead { stroke: var(--zero); stroke-width: .8; }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
@media (max-width: 400px) { .rcards { grid-template-columns: minmax(0, 1fr); } }
.rcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rcard.called { border-color: var(--border-2); }
.rc-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 0; text-align: left; color: var(--text); }
.rc-head:hover b { text-decoration: underline; }
.rc-titles { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.rc-titles b { font-size: 1rem; }
.rc-titles .muted { font-size: .78rem; }
.cands { display: grid; gap: 4px; }
.cand { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .9rem; }
.cand-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cand-p { font-size: 1.05rem; font-weight: 800; }
.cands.big .cand { font-size: 1rem; }
.cands.big .cand-p { font-size: 1.35rem; }
.cand.won .cand-n > span { font-weight: 700; }
.inc-tag { margin-left: 6px; font-size: .66rem; font-weight: 700; color: var(--text-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
.rc-margin { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .84rem; flex-wrap: wrap; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .8rem; color: var(--text-2); }
.rc-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.rc-cond { margin: 0; font-size: .82rem; color: var(--text-2); }
.rc-notes { margin: 0; padding-left: 18px; font-size: .78rem; color: var(--muted); }
.rc-notes li + li { margin-top: 2px; }

/* live count */
.live-block { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; font-size: .84rem; }
.live-block.is-called { background: var(--surface-2); border-color: var(--border); }
.lv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lv-badge { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.lv-badge:not(.not_started):not(.called)::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%;
  background: var(--live-dot); vertical-align: 1px; }
.lv-badge.not_started { background: var(--surface-3); color: var(--text-2); box-shadow: none; }
.lv-badge.called { background: var(--text); color: var(--bg); box-shadow: none; }
.lv-badge.c-D { background: var(--d); color: #fff; } .lv-badge.c-R { background: var(--r); color: #fff; } .lv-badge.c-I { background: var(--i); color: #111; }
.lv-in { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); }
.lv-prog { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.lv-prog i { display: block; height: 100%; background: var(--prog); }
.lv-votes { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 1px; background: var(--surface-3); }
.lv-votes .seg { display: block; height: 100%; }
.lv-nums { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--text-2); flex-wrap: wrap; }
.lv-line { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--text-2); }
.lv-line b { color: var(--text); }

/* ---------------------------------------------------------------- measures */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 400px) { .mcards { grid-template-columns: minmax(0, 1fr); } }
.mcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ms-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .82rem; }
.ms-state { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); font-size: .76rem; }
.ms-title { margin: 0; font-size: 1rem; line-height: 1.3; }
.ms-sum { margin: 0; font-size: .84rem; color: var(--text-2); }
.ms-p { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.ms-pn b { font-size: 1.4rem; font-weight: 800; }
.ms-thr { font-size: .78rem; color: var(--muted); }
.ybar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 1px; }
.ybar .y { background: var(--yes); } .ybar .n { background: var(--no); }
.ms-poll { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--text-2); }

/* ---------------------------------------------------------------- all races */
.alist-head, .arow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) 7.2rem 9.5rem; gap: 4px 12px; align-items: center; }
.alist-head { font-size: .74rem; color: var(--muted); font-weight: 700; padding: 6px 12px; border-bottom: 1px solid var(--border); }
.alist { list-style: none; margin: 0; padding: 0; }
.arow { width: 100%; border: 0; border-bottom: 1px solid var(--grid); background: none; color: var(--text); text-align: left; padding: 8px 12px; font-size: .84rem; }
.arow:hover { background: var(--surface-2); }
.ar-race { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ar-race > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ar-race small { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-res { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ar-res small { font-size: .72rem; }
@media (max-width: 720px) {
  .alist-head { display: none; }
  .arow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "race res" "cands rating"; }
  .ar-race { grid-area: race; } .ar-res { grid-area: res; } .ar-cands { grid-area: cands; } .ar-rating { grid-area: rating; text-align: right; }
}

/* ---------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 50; background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; box-shadow: -20px 0 40px rgba(0, 0, 0, .4); transform: translateX(16px); opacity: .6;
  transition: transform .18s ease-out, opacity .18s ease-out; outline: none; }
.drawer.open { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 2px 0 0; font-size: 1.2rem; line-height: 1.25; color: var(--heading); }
.kicker { margin: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.drawer-body { overflow-y: auto; padding: 4px 16px 32px; overscroll-behavior: contain; flex: 1 1 auto; }
.dsec { padding: 12px 0; border-bottom: 1px solid var(--grid); }
.dsec:last-child { border-bottom: 0; }
.dsec h3 { margin: 0 0 8px; font-size: .86rem; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.dinc { margin: 8px 0 0; font-size: .84rem; color: var(--text-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mdist, .comps { display: block; width: 100%; height: auto; overflow: visible; }
.md-area { opacity: .8; }
.md-med { stroke: var(--med); stroke-width: 1.5; }
.md-zero { stroke: var(--zero); stroke-dasharray: 2 3; }
.md-lab { fill: var(--text); font-size: 12px; font-weight: 700; }
.md-now { fill: var(--med); }
.comps { display: grid; gap: 2px; }
.cp-row { padding: 6px 0 8px; border-bottom: 1px solid var(--grid); }
.cp-row.final { border-bottom: 0; }
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: .84rem; }
.cp-name { display: flex; flex-direction: column; min-width: 0; }
.cp-name small { color: var(--muted); font-size: .74rem; }
.cp-row.final .cp-name b { font-weight: 800; }
.cp-val { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; text-align: right; }
.cp-w { display: flex; align-items: center; gap: 5px; flex-direction: row-reverse; }
.cp-w i { display: block; width: 36px; height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--prog) 0, var(--prog) var(--w, 0%), var(--surface-3) var(--w, 0%)); }
.cp-w small { color: var(--muted); font-size: .72rem; }
.cp-track { position: relative; height: 14px; margin: 6px 6px 0; }
.cp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1px; background: var(--axis); }
.cp-track i { position: absolute; display: block; }
.cp-zero { top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--zero); }
.cp-whisk { top: 6px; height: 2px; opacity: .75; border-radius: 1px; }
.cp-band { top: 3px; height: 8px; opacity: .55; border-radius: 4px; }
.cp-dot { top: 2.5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--surface); }
.cp-dot.final { top: 1px; width: 12px; height: 12px; margin-left: -6px; }
.cp-axis { position: relative; height: 18px; margin: 2px 6px 0; font-size: .7rem; color: var(--muted); }
.cp-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rgrid > div { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; align-items: flex-start; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--grid); font-size: .86rem; }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--text-2); display: inline-flex; align-items: center; gap: 2px; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 600px) {
  .drawer { top: auto; height: 92vh; height: 92dvh; width: 100vw; border-left: 0; border-top: 1px solid var(--border); border-radius: 14px 14px 0 0;
    transform: translateY(24px); }
  .drawer.open { transform: none; }
}

/* ---------------------------------------------------------------- polls */
.pl-intro { margin: 0; font-size: .92rem; color: var(--text-2); }
.pl-intro .ib { margin-left: 2px; }
.view > .pl-when { margin-top: 2px; }
.pl-calm { margin: 0; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.pl-gb-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 10px; }
.pl-big { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.pl-big-n { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.pl-big-l { display: flex; flex-direction: column; font-size: .88rem; color: var(--text-2); line-height: 1.3; }
.pl-big-l small { color: var(--muted); font-size: .76rem; }
.pl-aggs-w { min-width: 0; max-width: 100%; }
.pl-aggs-l { margin: 0 0 4px; font-size: .74rem; color: var(--muted); font-weight: 700; }
.pl-aggs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-agg { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px;
  padding: 3px 10px; font-size: .8rem; color: var(--text); text-decoration: none; white-space: nowrap; min-height: 28px; }
a.pl-agg:hover { border-color: var(--border-2); }
.pl-agg small { color: var(--muted); font-size: .72rem; }
.pl-chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.pl-grid { stroke: var(--grid); }
.pl-zero { stroke: var(--zero); stroke-dasharray: 3 3; }
.pl-tick { fill: var(--muted); font-size: 11px; }
.pl-dot { fill-opacity: .8; }
.pl-dot.lt { fill-opacity: .32; }
.pl-dot.hol { stroke-width: 1.4; }
.pl-dot.hol.lt { stroke-opacity: .55; }
.pl-dot.sm { fill-opacity: .9; }
.pl-trend-bg { fill: none; stroke: var(--surface); stroke-width: 5.5; stroke-linejoin: round; stroke-linecap: round; }
.pl-trend { fill: none; stroke: var(--med); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pl-trend-dot { fill: var(--med); stroke: var(--surface); stroke-width: 2; }
.pl-end { fill: var(--text); font-size: 13px; font-weight: 800; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pl-ring { fill: none; stroke: var(--hl); stroke-width: 1.6; pointer-events: none; }
.pl-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .78rem; color: var(--text-2); margin: 6px 0 0; }
.pl-leg > span { display: inline-flex; align-items: center; gap: 5px; }
.pl-leg svg { flex: 0 0 auto; overflow: visible; }
.pl-toggle { margin-top: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 6px 12px;
  font-size: .84rem; font-weight: 600; min-height: 34px; }
.pl-toggle:hover { border-color: var(--border-2); }
.pl-toggle.sm { margin-top: 0; align-self: flex-start; font-size: .8rem; padding: 4px 10px; min-height: 30px; }
.pl-tbox { margin-top: 8px; max-width: 100%; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pl-tbox-free { max-height: none; margin-top: 0; }
.pl-tbl { border-collapse: collapse; width: 100%; font-size: .8rem; }
.pl-tbl th, .pl-tbl td { padding: 6px 10px; text-align: left; white-space: nowrap; border-top: 1px solid var(--grid); font-weight: 400; }
.pl-tbl thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 700; border-top: 0; }
.pl-tbl tbody th { font-weight: 600; }
.pl-tbl .n { text-align: right; }
.pl-tbl td.pn { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; }
.pl-tbl tfoot td { font-weight: 800; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--accent); }
.pl-tbl abbr { text-decoration: none; }
.pl-sp { text-transform: none; }
.pl-ap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 960px) { .pl-ap { grid-template-columns: minmax(0, 1fr); } }
.pl-aline { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-width: 1.3; stroke-linejoin: round; }
.pl-aline.hl { stroke: var(--text); stroke-opacity: 1; stroke-width: 2.4; }
.pl-avg-line { stroke: var(--accent); stroke-opacity: .55; stroke-dasharray: 4 3; }
.pl-avg-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.pl-avg-t { fill: var(--accent); font-size: 12px; font-weight: 800; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.pl-tools .chips { margin-bottom: 0; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 400px) { .pl-cards { grid-template-columns: minmax(0, 1fr); } }
.pcard { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard.open { grid-column: 1 / -1; }
.pcard.open .pl-spark { max-width: 420px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; }
.pc-name { display: inline-flex; align-items: baseline; gap: 6px; border: 0; background: none; padding: 0; color: var(--text); text-align: left; min-height: 28px; }
.pc-name b { font-size: 1rem; }
.pc-name .muted { font-size: .8rem; }
button.pc-name:hover b { text-decoration: underline; }
.pc-rcv { display: inline-flex; align-items: center; gap: 2px; }
.pc-cands { display: grid; gap: 3px; font-size: .86rem; }
.pc-cand { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-ind { flex: 0 0 auto; color: var(--i-text); font-size: .68rem; font-weight: 700; border: 1px solid var(--i-border); border-radius: 4px; padding: 0 4px; }
.pc-avg { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .8rem; }
.pc-m { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.pc-meta { margin: 0; font-size: .78rem; color: var(--muted); }
.pl-spark { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.pl-sp-t { fill: var(--muted); font-size: 9.5px; paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; }
.pl-avgl { stroke-width: 1.3; stroke-dasharray: 4 3; stroke-opacity: .8; }
.pl-mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 20px; }
@media (max-width: 400px) { .pl-mlist { grid-template-columns: minmax(0, 1fr); } }
.pm-row { display: grid; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--grid); font-size: .84rem; min-width: 0; }
.pm-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.pm-t b { width: 100%; font-size: .9rem; font-weight: 700; }
.pm-v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--text-2); }
.pm-yn b { color: var(--text); }
.pm-bar { width: 90px; height: 6px; }
.pm-v small { color: var(--muted); font-size: .76rem; }
@media (max-width: 560px) { .pl-big-n { font-size: 2.2rem; } }
@media (max-width: 400px) { .tabs [role=tab] { font-size: .7rem; } }

/* election night: poll-closing timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl-slot { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--grid); }
.tl-slot:first-child { border-top: 0; padding-top: 2px; }
.tl-time { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tl-time b { font-size: 1.02rem; font-weight: 800; color: var(--heading); white-space: nowrap; }
.tl-time small { color: var(--muted); font-size: .74rem; }
.tl-tag { white-space: nowrap; font-size: .68rem; font-weight: 800; letter-spacing: .03em; border-radius: 4px; padding: 0 6px; line-height: 1.6; text-transform: uppercase; }
.tl-tag.done { background: var(--surface-3); color: var(--muted); }
.tl-tag.next { background: var(--text); color: var(--bg); }
.tl-slot.past .tl-body { opacity: .7; }
.tl-slot.next { background: linear-gradient(to right, var(--surface-2), transparent); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.tl-st { margin: 0; font-size: .88rem; color: var(--text-2); line-height: 1.45; }
.tl-st b { color: var(--text); font-weight: 700; }
.tl-st.part { font-size: .8rem; }
.tl-races { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.tl-rl { font-size: .74rem; color: var(--muted); font-weight: 700; margin-right: 2px; }
.tl-more { font-size: .78rem; }
@media (max-width: 560px) { .tl-slot { grid-template-columns: minmax(0, 1fr); } .tl-time { flex-direction: row; align-items: baseline; gap: 8px; } }

/* methodology page */
.home-link { color: inherit; text-decoration: none; }
.home-link:hover .h1-main { text-decoration: underline; text-underline-offset: 3px; }
.mast-link { color: #fff; text-underline-offset: 2px; }
.prose { max-width: 820px; padding-top: 18px; padding-bottom: 28px; }
.prose section { margin-top: 26px; scroll-margin-top: 16px; }
.prose h2 { font-family: var(--serif); color: var(--heading); font-size: 1.45rem; line-height: 1.25; margin: 0 0 8px; }
.prose h3 { font-family: var(--serif); color: var(--heading); font-size: 1.1rem; margin: 18px 0 6px; }
.prose p, .prose li { line-height: 1.6; }
.prose li + li { margin-top: 6px; }
.prose ul ul { margin-top: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 16px; font-size: .9rem; font-weight: 600; }
.toc a { color: var(--link); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.mtbl-box { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.mtbl { border-collapse: collapse; width: 100%; font-size: .88rem; }
.mtbl th, .mtbl td { padding: 7px 12px; text-align: left; border-top: 1px solid var(--grid); }
.mtbl thead th { border-top: 0; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 700; }
.mtbl .n { text-align: right; }
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-row .pl-toggle { margin-top: 0; }
.pl-toggle:disabled { opacity: .55; cursor: default; }
.foot-links a { color: var(--link); }

/* lab */
.lab-status:empty { display: none; }
.lab-status { color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
#lab-root { min-height: 0; }

/* small screens */
@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .card { padding: 12px 12px 14px; }
  .pl-tbl th, .pl-tbl td { padding: 6px 7px; }
  .ho-n { font-size: 2rem; }
  .jx.cell { padding: 10px; min-height: 74px; }
  .jx.cell b { font-size: 1.4rem; }
  .jx { font-size: .74rem; }
  .rl-bar { width: 120px; }
}
