:root{
  --ink:#2A2540; --subink:#6B6585; --grid:#E7E3F1; --bg:#FCFBFE;
  --accent:#8C7AC9; --highlight:#6D28D9; --deep:#4C1D95;
  --panel:#FFFFFF; --line:#EBE7F4; --soft:#F6F3FC;
  --win:#16794a; --warn:#B45309;
  --font:"Inter","Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
  --shadow:0 1px 2px rgba(42,37,64,.04),0 4px 16px rgba(42,37,64,.06);
}
*{box-sizing:border-box}
/* The `hidden` attribute must win over author `display` rules (e.g. .ctrl below
   sets display:flex, which otherwise overrides the UA [hidden]{display:none}
   and leaves toggled controls like #cmpPicker always visible). */
[hidden]{display:none !important}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--font); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:1280px; margin:0 auto; padding:0 24px}
/* Mobile (M1): keep all form controls >=16px so iOS Safari doesn't zoom the
   page on focus (and then fail to zoom back out). */
select, input, textarea{font-size:16px}

/* masthead */
.masthead{
  background:linear-gradient(180deg,var(--soft) 0%,var(--bg) 100%);
  border-bottom:1px solid var(--line); padding:30px 0 22px;
}
.tab{width:46px; height:6px; background:var(--highlight); border-radius:2px; margin-bottom:14px}
.masthead h1{font-size:29px; line-height:1.12; margin:0 0 8px; letter-spacing:-.015em}
.deck{color:var(--subink); margin:0; font-size:15px; max-width:760px}

/* The election picker + results-status line (Elections.applyChrome). Same place
   on every page: under the deck, above the nav. */
.election-bar{display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 16px; margin-top:12px}
.election-pick select{
  font:inherit; font-size:16px; font-weight:600; color:var(--ink); background:#fff;
  border:1.5px solid var(--highlight); border-radius:9px; padding:8px 12px; min-width:240px; min-height:44px;
}
.election-pick select:focus{outline:2px solid var(--accent); outline-offset:1px}
.election-status{margin:0 0 9px; font-size:13px; color:var(--subink)}
.election-status:empty{display:none}
.election-status[data-status="election-night"],
.election-status[data-status="unofficial"]{color:#92400E; font-weight:600}
/* "Counts as of ..." beside the status line (Msg.setAsOf). */
.election-asof{margin:0 0 9px; font-size:13px; color:var(--subink)}

/* Why the reader landed here: a page this election does not have (Elections
   bounceNotice). */
.bounce-notice{margin:8px 0 0; font-size:13px; color:#92400E; font-weight:600}

/* "New results (<time>). Reload" (Elections.showNewResults). Fixed at the
   bottom so a reader scrolled anywhere sees it; never reloads by itself. */
.results-banner{position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:2000;
  display:flex; align-items:center; gap:10px; width:max-content; max-width:calc(100vw - 24px);
  background:var(--deep); color:#fff; border-radius:12px; padding:6px 6px 6px 16px;
  box-shadow:0 4px 18px rgba(42,37,64,.28); font-size:14px; font-weight:600}
.results-banner span{min-width:0; overflow-wrap:anywhere}
.results-banner button{font:inherit; cursor:pointer; min-height:44px; border-radius:9px; flex:none}
.results-banner-reload{background:#fff; color:var(--deep); border:0; padding:0 14px}
/* While the bar shows, the page ends below it: the footer's last lines
   scroll clear instead of sitting under the bar (its height + 16px offset,
   two lines of text on a phone). */
body.has-results-banner{padding-bottom:88px}
@media (max-width:560px){ body.has-results-banner{padding-bottom:120px} }
.results-banner-close{background:transparent; color:#fff; border:0; min-width:44px; font-size:20px; line-height:1}
.results-banner-reload:focus-visible,.results-banner-close:focus-visible{outline:2px solid #fff; outline-offset:2px}

/* Party chip next to a general-election candidate's name (Party.chipHtml).
   Background is the candidate's map colour; ink is computed for contrast. */
.party-chip{display:inline-block; font-size:10.5px; font-weight:700; line-height:1.4;
  letter-spacing:.03em; padding:0 6px; border-radius:4px; margin-left:6px;
  vertical-align:1px; white-space:nowrap}

/* Pre-results ballot (index, general before polls close): a candidate list,
   no bars, no numbers. */
.ballot-list{display:flex; flex-direction:column; gap:6px}
.ballot-cand{display:flex; align-items:center; gap:8px; padding:8px 10px;
  border:1px solid var(--line); border-radius:9px; background:var(--panel); font-size:14px}
.ballot-cand .swatch{flex:0 0 auto}
.ballot-note{font-size:13px; color:var(--subink); margin:12px 0 0}
/* BOE's declared write-in list (Msg.declaredWriteInsText): not on the ballot */
.declared-wi{display:block; font-size:12.5px; font-weight:400; color:var(--subink); margin:6px 0 0; line-height:1.35}

/* masthead layout: title/deck stacked ABOVE the nav pill row (full width) so the
   title isn't squished by the pills. Mobile already stacked; this matches desktop. */
.masthead-inner{display:flex; flex-direction:column; align-items:flex-start; gap:16px}
.masthead-title{min-width:0}

/* site nav pills */
.site-nav{display:flex; flex:0 0 auto; align-items:center; gap:8px; flex-wrap:wrap; padding-top:2px}
.site-nav a{
  display:inline-flex; align-items:center;
  color:var(--highlight); text-decoration:none;
  font-weight:600; font-size:.85rem;
  border:1.5px solid var(--highlight); border-radius:999px;
  padding:.5rem 1.1rem; min-height:44px;
  white-space:nowrap; transition:background .15s,color .15s;
}
.site-nav a:hover{background:var(--highlight); color:#fff}
.site-nav a.active{background:var(--highlight); color:#fff; pointer-events:none}
/* nav disclosure: desktop (>560px) renders as today's flat pill row regardless of [open] */
.site-nav summary{display:none}
.site-nav .nav-links{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.site-nav .nav-divider{display:none}
/* The Ranked Choice tab is LIVE site-wide (rcv.json meta.isSample is false). The
   former go-live gate that hid it on non-RCV pages (keyed off body:not .rcv-live)
   has been removed so the tab shows in the shared nav on every page, not just
   rcv.html (where rcv.js sets body.rcv-live). To re-gate it if RCV ever reverts to
   sample data, see the exact rule to restore in RCV-GOLIVE.md. */
/* Chromium 131+ hides a closed <details>'s content via content-visibility:hidden on
   the ::details-content wrapper, which the .nav-links display override above can't
   defeat — that blanked the desktop nav. Un-hide the wrapper on desktop (where the
   disclosure is never [open]). Older engines lack ::details-content and ignore this,
   relying on the display override instead. Scoped to >560px so mobile still collapses. */
@media (min-width:561px){
  .site-nav .nav-disclosure::details-content{content-visibility:visible}
}

/* ===== THE CONTROL BAR - one pattern for every page =========================
   .controls is the PAGE-LEVEL bar: the filters that re-scope the whole page.
   It sits between the masthead and <main> on index, drops, closest, rcv and
   cvr, and it is STICKY, so the reader never scrolls back up past a chart to
   change what the chart is about. (index alone used to be sticky; every other
   page put its filters in a non-sticky .chart-pickers row inside <main>, which
   is why changing the drop pair on drops.html meant scrolling to the top.)

   .chart-pickers is the SAME row of controls inline with ONE chart - the three
   on analysis.html and the area/precinct pickers inside cvr.html's sections.
   Those are not page scope, so they are not sticky and they stay with their
   chart; everything else about them (label, select, spacing, focus ring) is
   shared with .controls below rather than declared twice.

   Control ORDER inside a bar is the site's, left to right: PARTY, WARD,
   CONTEST, then whatever that page's view needs (index's "Color the map by",
   drops' Drop A / Drop B). drops used to run Contest before Ward.
   =========================================================================== */
.controls{
  position:sticky; top:0; z-index:1000;
  background:rgba(252,251,254,.94); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.controls-inner{display:flex; flex-wrap:wrap; gap:18px; align-items:flex-end; padding:14px 24px}
.ctrl,.chart-picker{display:flex; flex-direction:column; gap:5px; min-width:0}
.ctrl-lbl,.chart-picker span{font-size:11px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--subink)}
.controls select,.chart-picker select{
  font:inherit; font-size:16px; color:var(--ink); background:#fff;
  border:1px solid var(--line); border-radius:9px; padding:10px 12px; min-width:240px;
  min-height:44px; cursor:pointer; box-shadow:var(--shadow);
}
.controls select:focus,.chart-picker select:focus{outline:2px solid var(--accent); outline-offset:1px}
/* A note that belongs to a control (rcv's "won in the first round" disclosure,
   cvr's held-back note): full width, under the row, not squeezed beside it. */
.ctrl-note{flex-basis:100%; margin:2px 0 0; text-transform:none; letter-spacing:normal}
.scope-note{display:block; font-size:13px; color:var(--subink); padding-bottom:9px; align-self:flex-end}
.scope-note b{color:var(--highlight)}
/* index (cross-group B1): above a phone, Office (Party in a primary) and Ward
   give up the 240px floor. Ward sits at the 160px floor; a select is as wide as
   its longest option, so a general's Office is wider, set by "State Board of
   Education". At 1280px "Color the map by" then fits the first row in the 2026
   and 2022 generals; longer contest names still push it to a second row in the
   2020 and 2024 generals and in most primaries. */
@media (min-width:561px){ .controls-index #partySel,.controls-index #wardSel{min-width:160px} }
@media (max-width:560px){
  .controls-index .controls-inner{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px}
  .controls-index .controls-inner > *{grid-column:1 / -1}
  /* A select cannot wrap, and "State Board of Education" is the longest Office
     label: half a phone row cuts it off. So Office and Ward share no row: each
     takes the full width, Ward below Office. */
  .controls-index .scope-note{padding-bottom:0}
}

/* The phone's one-row filter summary (js/filter-fold.js). Nothing here applies
   above 560px: the row is display:none and .is-folded has no effect. */
.fold-row{display:none}
@media (max-width:560px){
  .fold-row{display:block; padding-top:10px; padding-bottom:10px}
  .fold-btn{display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:6px 12px;
    font:inherit; font-size:14px; text-align:left; color:var(--ink); background:#fff; cursor:pointer;
    border:1px solid var(--line); border-radius:9px; box-shadow:var(--shadow)}
  .fold-btn:focus-visible{outline:2px solid var(--accent); outline-offset:1px}
  .fold-sum{flex:1 1 auto; min-width:0; font-weight:600; overflow-wrap:anywhere}
  .fold-act{flex:none; font-weight:600; color:var(--highlight)}
  .fold-act::after{content:" \25BE"}
  .fold-btn[aria-expanded="true"] .fold-act::after{content:" \25B4"}
  /* The scope line and a control's note are statements about the results, not
     filters: they stay. So does endorsers.html's colour legend (it explains the chart). */
  .controls.is-folded .controls-inner > :not(.scope-note):not(.ctrl-note):not(.en-legend){display:none}
  .controls.is-folded .controls-inner{padding-top:0; padding-bottom:0}
  .controls.is-folded .scope-note:not(:empty),
  .controls.is-folded .ctrl-note,
  .controls.is-folded .en-legend:not(:empty){margin-bottom:10px}
  .controls-index:not(.is-folded) .controls-inner{padding-top:0}
}

/* Prose that points at a control inside the closed phone fold: only while it is closed. */
.fold-open-btn{display:none; font:inherit; color:var(--highlight); background:none; border:0; padding:0; text-decoration:underline; cursor:pointer}
@media (max-width:560px){ html:not(.fold-open) .fold-open-btn{display:inline-block; min-height:44px} }

/* head-to-head pair picker */
.cmp-row{display:flex; align-items:center; gap:6px}
.cmp-row select{min-width:120px}
.cmp-vs{font-size:12px; font-weight:700; color:var(--subink); text-transform:uppercase}

/* three-stop scale ends for the diverging compare legend */
.legend .scale-ends-3 span:nth-child(2){flex:1; text-align:center}

/* cross-contest precinct profile */
.xcross{margin-top:6px; border-top:1px solid var(--line); padding-top:6px}
.xc-list{display:flex; flex-direction:column; gap:1px}
.xc-row{display:grid; grid-template-columns:1fr auto; gap:2px 10px; align-items:center;
  padding:6px 8px; border-radius:8px; cursor:pointer}
.xc-row:hover{background:var(--soft)}
.xc-row.active{background:rgba(109,40,217,.08)}
.xc-contest{font-size:13px; color:var(--ink); min-width:0}
.xc-leader{font-size:12.5px; color:var(--subink); display:flex; align-items:center; gap:6px;
  white-space:nowrap; justify-self:end}
.xc-share{font-variant-numeric:tabular-nums}
.xc-anc a{color:var(--highlight)}
.xc-badge{font-size:10px; font-weight:700; color:var(--warn); background:rgba(180,83,9,.12);
  padding:1px 7px; border-radius:999px; letter-spacing:.02em}

/* ballot measure: Yes-share legend, verdict, past initiatives (js/measure.js) */
.legend .ys-row{display:flex; align-items:flex-start; gap:5px}
.legend .ys-end{font-size:11px; color:var(--subink); line-height:12px}
.legend .ys-scale{flex:1; min-width:150px}
.legend .ys-bar{display:flex; height:12px; border-radius:3px; overflow:hidden}
.legend .ys-cell{flex:1}
.legend .ys-ticks{position:relative; height:14px; margin:0 0 2px; font-size:10px; color:var(--subink)}
.legend .ys-tick{position:absolute; top:1px; transform:translateX(-50%)}
.legend .ys-tick.mid{color:var(--ink); font-weight:700}
.legend .ys-tick.mid::before{content:""; position:absolute; left:50%; top:-15px; height:14px;
  border-left:1.5px solid var(--ink)}
.verdict{margin:0 0 8px; font-size:13px; color:var(--subink)}
.verdict .badge{margin-left:0; font-size:11px; padding:2px 9px}
.verdict-status{margin-left:6px}
.measure-list .cand{cursor:default}
.measure-list .cand:hover{background:none}
.mpast{margin-top:6px; border-top:1px solid var(--line); padding-top:6px}
.mpast-list{display:flex; flex-direction:column; gap:2px; font-size:13px}
.mpast-row{display:flex; justify-content:space-between; gap:10px}
.mpast-v{color:var(--subink); font-variant-numeric:tabular-nums; white-space:nowrap}
.mscatter{display:block; width:100%; max-width:320px; height:auto}
.mscatter .sc-grid{stroke:var(--grid); stroke-width:1}
.mscatter .sc-grid.mid{stroke:#B9B3CC; stroke-dasharray:3 3}
.mscatter .sc-ax{font-size:9.5px; fill:var(--subink)}
.mscatter .sc-lbl{font-size:10px; fill:var(--ink)}
.mscatter .sc-dot{fill:var(--highlight); fill-opacity:.55}
/* index: the "last approved" card beside a measure (app.js lastApprovedHtml) */
.lastwin{margin-top:10px; border:1px solid var(--line); border-radius:10px; padding:8px 10px 10px}
.lastwin .eyebrow{margin:0 0 2px}
.lw-head{margin:0 0 6px; font-size:14px}
.lw-verdict{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
  color:#3F4F12; background:#E0EFB3; border-radius:999px; padding:2px 8px; margin-left:4px}
.lw-stats{margin:0 0 4px}
.lw-counts{margin:0 0 6px}
.lw-wards{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; margin:0 0 8px;
  font-size:12px; font-variant-numeric:tabular-nums}
.lw-ward{display:flex; justify-content:space-between; gap:4px; padding:3px 6px; border-radius:6px;
  background:var(--soft,#F6F3FC); cursor:default}
.lw-ward.on{outline:1.5px solid var(--highlight)}
.lw-w{color:var(--subink); font-weight:700}
.lw-line{margin:10px 0 0}
.lw-more{margin:0 0 8px; font-size:12px}
.lw-more summary{cursor:pointer; color:var(--highlight); font-weight:600; padding:5px 0}
.lw-tbl{border-collapse:collapse; width:100%; margin-top:4px; font-variant-numeric:tabular-nums}
.lw-tbl th,.lw-tbl td{padding:3px 6px; border-bottom:1px solid var(--line); text-align:right}
.lw-tbl th:first-child{text-align:left; font-weight:600}
.lw-tbl thead th{color:var(--subink); font-weight:700}

/* explorer grid */
main{padding:22px 0 56px}
.explorer{display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr); gap:22px; align-items:start}

/* map */
.map-col{position:relative}
/* Every Leaflet map's wrapper is its own stacking context (task f18b3541).
   Leaflet's control corners are z-index 800/1000 and its panes 200-700, and
   #map makes no stacking context of its own, so those values competed with
   the sticky .controls bar (z-index 1000) at the ROOT: equal z, later in the
   DOM, so the attribution painted over the bar as the map scrolled under it.
   Isolating the WRAPPER (not .leaflet-container) keeps the order inside it
   as it was - the in-map legend (600) still sits under Leaflet's tooltips
   (650) and above its tiles - while the whole map paints below the bar, the
   results banner (fixed, 2000) and the search list (1200). */
.map-col,.dropmap-wrap,.cvrmap-wrap,.anc-map-wrap,.smd-map-box{isolation:isolate}
#map{height:620px; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); background:#eef}
.map-hint{font-size:12.5px; color:var(--subink); margin:10px 2px 0}
.leaflet-container{border-radius:14px; font-family:var(--font)}
/* A clicked polygon takes focus in Chrome (Leaflet's tooltip binds focus
   listeners to it), and the default focus ring on an SVG <path> is drawn round
   its BOUNDING BOX: every map click showed a square, not the district. The
   paths are not tab stops (map-common.js: no per-polygon tabindex), and the
   selection is drawn by the path's own stroke, so the ring is removed. */
.leaflet-container path.leaflet-interactive:focus{outline:none}

/* legend */
/* Anchored to the MAP's bottom edge (top = #map height, then lifted by its own
   height + 26px), not the column's: the hint paragraph under the map wraps to
   three lines on a phone, and a column-relative `bottom` then slid the
   legend's last row under Leaflet's attribution. */
.legend{
  position:absolute; right:14px; top:620px; transform:translateY(calc(-100% - 26px)); z-index:600;
  background:rgba(255,255,255,.96); border:1px solid var(--line);
  border-radius:10px; padding:11px 13px; box-shadow:var(--shadow); max-width:230px;
}
.legend h4{margin:0 0 8px; font-size:12px; letter-spacing:.02em; color:var(--ink)}
.legend .grad{height:11px; border-radius:3px; margin-bottom:5px}
.legend .scale-ends{display:flex; justify-content:space-between; font-size:11px; color:var(--subink)}
.legend .swatch-row{display:flex; align-items:center; gap:7px; font-size:12px; margin:4px 0; color:var(--ink)}
.legend .swatch{width:13px; height:13px; border-radius:3px; flex:none; border:1px solid rgba(0,0,0,.08)}
.legend .na{color:var(--subink); font-size:11px; margin-top:7px}

/* panel */
.panel{background:var(--panel); border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow); padding:18px 20px; position:sticky; top:84px}
.panel .eyebrow{font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--accent); margin:0 0 3px}
.panel h2{font-size:20px; margin:0 0 4px; letter-spacing:-.01em}
.panel .sub{font-size:13px; color:var(--subink); margin:0 0 14px}
.back-link{display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600;
  color:var(--highlight); background:none; border:none; cursor:pointer; padding:0; margin:0 0 12px}
.back-link:hover{text-decoration:underline}

/* stat chips inside panel */
.mini-stats{display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:0 0 16px}
.mini{background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:9px 11px}
.mini .n{font-size:18px; font-weight:700; color:var(--highlight); letter-spacing:-.01em}
.mini .l{font-size:11px; color:var(--subink); margin-top:1px}

/* candidate bar list */
.cand-list{display:flex; flex-direction:column; gap:2px}
.cand{display:grid; grid-template-columns:1fr auto; gap:2px 10px; align-items:center;
  padding:7px 8px; border-radius:8px; cursor:pointer; position:relative}
.cand:hover{background:var(--soft)}
.cand.active{background:rgba(109,40,217,.08)}
.cand.lead .cn{font-weight:700}
.cand .cn{font-size:13.5px; grid-column:1; position:relative; z-index:1}
.cand .cv{font-size:13px; color:var(--subink); grid-column:2; text-align:right; position:relative; z-index:1; white-space:nowrap}
.cand .barwrap{grid-column:1 / -1; height:6px; background:var(--grid); border-radius:99px; overflow:hidden; margin-top:1px}
.cand .bar{height:100%; background:var(--accent); border-radius:99px}
.cand.lead .bar{background:var(--highlight)}
.badge{display:inline-block; font-size:10px; font-weight:700; padding:1px 7px;
  border-radius:999px; color:#fff; margin-left:6px; vertical-align:middle; background:var(--win)}
.badge.lead{background:var(--highlight)}

/* index panel: race rule, RCV-pending chip, not-final note, batch deltas
   (app.js raceRuleHtml / rcvPendingHtml / MAIL_NOTE / deltaHtml) */
.panel .race-rule{font-size:13px; color:var(--ink); margin:2px 0 8px}
.panel .race-flags{margin:0 0 8px}
.flag-chip{display:inline-block; font-size:11px; font-weight:700; line-height:1.4; padding:1px 7px;
  border-radius:999px; color:var(--highlight); background:color-mix(in srgb, var(--accent) 18%, #fff);
  margin-left:6px; white-space:nowrap}
.race-flags .flag-chip{margin-left:0}
/* RCV transfers changed the leader (task c41516e2): Winner.rcvOvertakeChip,
   the ONE marker on anc / smd / my / rcv / closest / index. Here, not in
   anc.css: rcv.html and closest.html load style.css only. */
.rcv-ot{display:inline-block; font-size:11px; font-weight:600; line-height:1.4; color:var(--deep);
  background:color-mix(in srgb, var(--accent) 18%, #fff); border-radius:10px; padding:1px 8px;
  cursor:help; vertical-align:middle}
.rcv-ot b{font-weight:700}
.rcv-summary .rcv-ot{margin-right:6px}
.cls-ot{margin-top:3px}
.race-flags .rcv-ot{margin-left:6px}
.panel .panel-note{font-size:12px; color:var(--subink); margin:-8px 0 12px}
.panel .delta-note{font-size:12px; margin:-4px 0 6px}
.cand .cd{grid-column:1 / -1; font-size:11.5px; color:var(--subink); position:relative; z-index:1;
  overflow-wrap:anywhere}
.cand .cd .pos{color:var(--win)} .cand .cd .neg{color:var(--warn)}

/* slate chips + slate block */
.slate-chip{display:inline-block; font-size:10.5px; font-weight:700; line-height:1.4;
  padding:1px 7px; border-radius:999px; margin-left:6px; vertical-align:middle;
  color:var(--sc); background:color-mix(in srgb, var(--sc) 13%, #fff);
  border:1px solid color-mix(in srgb, var(--sc) 35%, #fff); white-space:nowrap}
.slate-block{margin:2px 0 4px; padding:13px 13px 11px; background:var(--soft);
  border:1px solid var(--line); border-radius:11px}
.slate-list{display:flex; flex-direction:column; gap:3px}
.slate-row{display:grid; grid-template-columns:1fr auto; gap:2px 10px; align-items:center;
  padding:6px 7px; border-radius:8px; cursor:pointer}
.slate-row:hover{background:#fff}
.slate-row.active{background:#fff; box-shadow:inset 0 0 0 1px var(--line)}
.slate-row .sl-name{font-size:13px; font-weight:600; display:flex; align-items:center; gap:7px}
.slate-row .sl-val{font-size:12.5px; color:var(--subink); white-space:nowrap}
.slate-row .barwrap{grid-column:1 / -1; height:6px; background:var(--grid); border-radius:99px; overflow:hidden; margin-top:2px}
.slate-row .bar{height:100%; border-radius:99px}
.slate-row .seats{font-size:10.5px; font-weight:700; color:var(--win); margin-left:2px;
  background:rgba(22,121,74,.1); padding:0 6px; border-radius:999px}
.swatch{width:12px; height:12px; border-radius:3px; flex:none; display:inline-block; border:1px solid rgba(0,0,0,.08)}
.slate-sub{display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px}
.sl-pill{display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600;
  color:var(--ink); background:var(--soft); border:1px solid var(--line);
  border-radius:999px; padding:2px 9px}

/* slate-results overview (contest x slate seat matrix) */
.slate-overview-section{margin-top:34px; border-top:1px solid var(--line); padding-top:26px}
.slate-tallies{display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 4px}
.slate-tally{display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--subink);
  background:var(--soft); border:1px solid var(--line); border-radius:999px; padding:5px 13px}
.slate-tally b{color:var(--ink); font-weight:700}
table.slate-matrix th .swatch{margin-right:6px; vertical-align:-2px}
table.slate-matrix tbody tr{cursor:pointer}
table.slate-matrix tbody tr:hover{background:var(--soft)}
table.slate-matrix tfoot tr{cursor:default}
table.slate-matrix tbody td{color:var(--subink)}
table.slate-matrix td.scope{color:var(--subink); font-size:12.5px}
table.slate-matrix td.won{font-weight:700; color:var(--highlight); background:rgba(109,40,217,.07)}
table.slate-matrix td.zero{color:var(--grid)}
table.slate-matrix tfoot td{border-top:2px solid var(--line); font-weight:700; color:var(--ink)}
table.slate-matrix tfoot td.name{color:var(--ink)}

/* analysis page (analysis.html): intro + shared chart pieces */
.analysis-intro{margin:8px 0 4px}
/* Early and mail ballots received is drops.html's first section: no rule above it (it was
   an empty strip pre-results); the drops intro after the two charts gets the section rule. */
.analysis-section.recv-section{margin-top:8px; border-top:0; padding-top:0}
.recv-section:not([hidden]) ~ .analysis-intro{margin-top:34px; border-top:1px solid var(--line); padding-top:26px}
.analysis-intro h2{font-size:23px; margin:0 0 4px; letter-spacing:-.01em}
.analysis-intro .back-link{display:inline; margin-left:6px}

/* Per-chart pickers: the layout of the row. The control itself (.chart-picker,
   its label and its select) is declared once with .ctrl up in the control-bar
   block - two copies of that select rule is how the two ended up 1px apart in
   padding. */
.chart-pickers{display:flex; flex-wrap:wrap; gap:16px; margin:16px 0 6px; align-items:flex-end}

/* analytical views (waterfall + by-ward heatmap) */
.analysis-section{margin-top:34px; border-top:1px solid var(--line); padding-top:26px}

/* seat-margin waterfall */
.wf-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:16px}
.wf-panel{min-width:0}
.wf-title{font-size:14px; font-weight:700; color:var(--ink)}
.wf-sub{font-size:12px; color:var(--subink); margin:1px 0 4px}
.wf-svg{width:100%; height:auto; display:block}
.wf-axis{stroke:var(--subink); stroke-width:1}
.wf-cum{fill:none; stroke:var(--accent); stroke-width:1.4; stroke-dasharray:3 3}
.wf-dot{fill:var(--accent)}
.wf-val{font-size:9px; font-weight:700; text-anchor:middle; font-family:var(--font)}
.wf-xlbl{font-size:10px; fill:var(--subink); text-anchor:middle; font-family:var(--font)}
.wf-xlbl.wf-net{fill:var(--ink); font-weight:700}
.wf-legend{display:flex; flex-wrap:wrap; gap:16px; margin-top:10px; font-size:12.5px; color:var(--ink)}
.wf-legend .swatch-row{display:inline-flex; align-items:center; gap:7px}

/* general charts: blank share rows and two-dot ward rows (js/analysis.js).
   HTML rows, not an SVG viewBox, so the type stays full size on a phone. */
.chart-note{margin-top:8px}
#pgLegend .swatch-row,#wardShareLegend .swatch-row,#wardBallotsLegend .swatch-row,
.anc-trend .swatch-row{display:inline-flex; align-items:center; gap:5px}
.chart-note:empty{display:none}
.bk-chart,.db-chart{margin-top:14px}
.bk-row{display:grid; grid-template-columns:minmax(0,40%) 1fr 46px; gap:10px; align-items:center;
  padding:3px 0; font-size:13px}
.bk-sub .bk-lbl{padding-left:12px; color:var(--subink)}
.bk-track{height:13px; background:var(--grid); border-radius:2px; overflow:hidden}
.bk-bar{display:block; height:100%}
.bk-val{text-align:right; font-variant-numeric:tabular-nums; font-weight:600}
.db-row{display:grid; grid-template-columns:28px 1fr 116px; gap:10px; align-items:center;
  padding:5px 0; font-size:13px}
.db-lbl{font-weight:600}
.db-track{position:relative; height:12px; margin:0 6px; border-bottom:1px solid var(--grid)}
.db-link{position:absolute; top:5px; height:2px; background:var(--subink); opacity:.5}
.db-dot{position:absolute; top:0; width:12px; height:12px; margin-left:-6px; border-radius:50%;
  box-sizing:border-box}
.db-from{background:var(--panel); border:2px solid var(--subink)}
.db-to{background:var(--highlight)}
/* ballots are not share: blue, Palette.RAMP_VOLUME[5] */
#wardBallotsChart .db-to,#wardBallotsLegend .db-to{background:#2E62AB}
.db-key{position:static; display:inline-block; margin-left:0}
.db-val{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap}
.db-axis{padding:0; font-size:11px; color:var(--subink)}
.db-ends{display:flex; justify-content:space-between}

/* ANC competition by cycle (js/anc-stats.js): bar length is seats */
.anc-trend{margin-top:26px}
.ct-row{display:grid; grid-template-columns:38px 1fr 122px; gap:10px; align-items:center; padding:4px 0; font-size:12.5px}
.ct-lbl{font-weight:600}
.ct-bar{display:flex; height:18px; min-width:0}
.ct-seg{display:block; height:100%}
.ct-val{color:var(--subink); line-height:1.25; font-variant-numeric:tabular-nums}
.ct-mark{margin:6px 0 2px 48px; padding-top:4px; border-top:1px dashed var(--subink); font-size:12px;
  font-weight:600; color:var(--ink)}

/* by-ward heatmap */
.seg-toggle{display:inline-flex; gap:6px; margin:16px 0 4px; flex-wrap:wrap}
.seg-btn{font:inherit; font-size:13px; font-weight:600; color:var(--subink);
  background:#fff; border:1px solid var(--line); border-radius:999px; padding:6px 15px; cursor:pointer}
.seg-btn:hover{color:var(--highlight)}
.seg-btn.active{background:var(--highlight); color:#fff; border-color:var(--highlight)}
table.heatmap{font-size:13px}
table.heatmap th,table.heatmap td{padding:7px 9px; text-align:center}
table.heatmap th.hm-name,table.heatmap td.hm-name{text-align:left; white-space:nowrap}
table.heatmap th.hm-rank,table.heatmap td.hm-rank{text-align:right; color:var(--subink); font-variant-numeric:tabular-nums}
table.heatmap th.hm-city,table.heatmap td.hm-city{color:var(--subink); border-left:1px solid var(--line)}
table.heatmap tbody tr.hm-win td.hm-name,table.heatmap tbody tr.hm-win td.hm-rank,
table.heatmap tbody tr.hm-win td.hm-city{font-weight:700; color:var(--ink)}
table.heatmap tbody tr.hm-divider td{border-bottom:2px dashed var(--ink)}
.hm-cell{font-variant-numeric:tabular-nums; font-weight:600}
.hm-dot{font-size:9px; font-weight:700; letter-spacing:.04em; color:var(--highlight)}
table.heatmap tbody tr.hm-win .hm-dot{color:var(--highlight)}
.legend-inline{display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:12px;
  font-size:12px; color:var(--subink)}
.hm-leg-bar{width:120px; height:11px; border-radius:3px; display:inline-block}
.hm-leg-ends{font-variant-numeric:tabular-nums}
.hm-leg-note{margin-left:4px}
.hm-leg-lbl{font-weight:600; color:var(--ink)}

/* share-by-ward small multiples */
.sm-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:16px}
.sm-card{border:1px solid var(--line); border-radius:11px; background:#fff; padding:11px 12px; min-width:0}
.sm-title{font-size:12px; font-weight:700; color:var(--ink); margin-bottom:8px}
.sm-bars{display:flex; flex-direction:column; gap:5px}
.sm-row{display:grid; grid-template-columns:64px 1fr auto; gap:7px; align-items:center; font-size:11.5px}
.sm-lbl{color:var(--subink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sm-barwrap{height:7px; background:var(--grid); border-radius:99px; overflow:hidden}
.sm-bar{display:block; height:100%; border-radius:99px; background:var(--accent)}
.sm-val{color:var(--ink); font-variant-numeric:tabular-nums; font-weight:600}

/* turnout vs. share scatter + candidate-across-wards slope (shared SVG style) */
.scatter-wrap{position:relative}
.sc-svg{width:100%; height:auto; display:block; margin-top:6px}
.sc-grid{stroke:var(--grid); stroke-width:1}
.sc-tick{font-size:10px; fill:var(--subink); text-anchor:middle; font-family:var(--font)}
.sc-tick-y{text-anchor:end}
.sc-axis-title{font-size:11px; font-weight:700; fill:var(--subink); text-anchor:middle; font-family:var(--font)}
.sc-dot{fill-opacity:.62; stroke:#fff; stroke-width:.6; cursor:pointer}
.sc-dot:hover{fill-opacity:.95; stroke:var(--ink); stroke-width:1.2}
.sc-trend{stroke:var(--ink); stroke-width:1.4; stroke-dasharray:5 4; opacity:.55}
.sc-r2{font-size:11px; font-weight:700; fill:var(--ink); text-anchor:end; font-family:var(--font)}
/* .scatter-tip's declaration lives in the shared "tooltip" section below,
   next to .pct-tip - it's the same dark-tooltip family (same background,
   radius, shadow, padding, weight), just positioned differently (absolute,
   following the mouse inside .scatter-wrap) rather than via Leaflet. */

/* slope plot specifics */
.slope-candidates{display:flex; flex-wrap:wrap; gap:7px; margin:8px 0 6px}
.slope-chip{font:inherit; font-size:12.5px; font-weight:600; color:var(--subink);
  background:#fff; border:1px solid var(--line); border-radius:999px; padding:11px 16px; cursor:pointer;
  display:inline-flex; align-items:center; min-height:44px}
.slope-chip:hover{color:var(--highlight)}
.slope-chip.on{color:#fff; background:var(--chip,var(--highlight)); border-color:var(--chip,var(--highlight))}
.sl-line{fill:none; stroke-width:2.2}
.sl-dot{stroke:#fff; stroke-width:.8}
.sl-median{fill:none; stroke:var(--subink); stroke-width:1.4; stroke-dasharray:4 4; opacity:.5}
.sl-median-key{background:repeating-linear-gradient(90deg,var(--subink) 0 4px,transparent 4px 8px)}

/* results table */
.table-section{margin-top:34px; border-top:1px solid var(--line); padding-top:26px}
.table-head{display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px}
.table-head h2{font-size:21px; margin:0; letter-spacing:-.01em}
.hint{font-size:13px; color:var(--subink); margin:0}
.table-scroll{overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:#fff; margin-top:14px}
table.data{border-collapse:collapse; width:100%; font-size:13.5px}
table.data th,table.data td{padding:9px 13px; 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(--soft); color:var(--ink);
  font-weight:600; border-bottom:2px solid var(--grid)}
/* Sort cursor/hover/arrow is scoped to #resultsTable, the ONLY table that
   actually sorts (app.js sortableTable(), which targets #resultsTable
   exclusively). Every other table.data (rcv round table, analysis heatmap,
   the slate matrix on index and slate.html) shares the header style above
   but must not look clickable-to-sort - task 4, PLAN-C. */
table.data#resultsTable thead th{cursor:pointer; user-select:none}
table.data#resultsTable thead th:hover{color:var(--highlight)}
table.data#resultsTable thead th[data-dir=asc]::after{content:" \2191"; color:var(--accent)}
table.data#resultsTable thead th[data-dir=desc]::after{content:" \2193"; color:var(--accent)}
table.data tbody tr{border-bottom:1px solid var(--line)}
table.data tbody tr:last-child{border-bottom:none}
table.data tbody tr.win{background:rgba(109,40,217,.06)}
table.data tbody tr.active{background:rgba(109,40,217,.12)}
/* Row-click affordance (cursor + hover highlight) is scoped to the tables
   whose rows actually navigate/select on click - same principle as the
   header sort affordance above, task 4 (PLAN-C). #resultsTable rows call
   setMetric (app.js); table.heatmap rows cross-page deep-link (analysis.js).
   table.slate-matrix has its own identical rule already (see below) and
   needs no addition here. rcv's #rcvTable/#rcvFlowTable (table.rcv-data)
   rows do NOT click - see rcv.js renderTable/renderFlowTable - so they must
   NOT get a pointer cursor or hover highlight. */
table.data#resultsTable tbody tr,
table.heatmap tbody tr{cursor:pointer}
table.data#resultsTable tbody tr:hover,
table.heatmap tbody tr:hover{background:var(--soft)}
table.data td.name{font-weight:600}
.bar-cell{position:relative; min-width:120px}
.bar-cell .fill{position:absolute; left:0; top:0; bottom:0; background:rgba(140,122,201,.20); z-index:0}
.bar-cell span{position:relative; z-index:1}

/* footer */
footer{border-top:1px solid var(--line); padding:22px 0 36px; background:var(--soft)}
footer p{font-size:12.5px; color:var(--subink); margin:0}
.fineprint{margin-top:6px; font-size:11.5px; opacity:.85}
.data-credit{margin-top:6px; font-size:12px}
.data-credit a{color:var(--highlight); font-weight:600; text-decoration:none}
.data-credit a:hover{text-decoration:underline}

/* ballot drops page (drops.html): vote-delta bars, share shift, precinct grid */
.margin-line{margin:2px 0 14px; font-size:14px; color:var(--subink)}
.margin-line b{color:var(--ink); font-weight:700}
/* signed vote deltas reuse .cand/.barwrap; color the value + bar by sign */
.cand .cv.pos{color:var(--win)} .cand .cv.neg{color:var(--warn)}
.cand .bar.neg{background:var(--warn)}
/* vote-share shift: two stacked bars (A faint, B accent) per candidate */
.share-list{display:flex; flex-direction:column; gap:3px}
.share-row{display:grid; grid-template-columns:minmax(120px,1fr) 2fr auto; gap:4px 12px;
  align-items:center; padding:7px 8px; border-radius:8px}
.share-row.lead .sr-name{font-weight:700}
.share-row .sr-name{font-size:13.5px}
.share-row .sr-track{position:relative; height:18px}
.share-row .sr-a,.share-row .sr-b{position:absolute; left:0; height:7px; border-radius:99px}
.share-row .sr-a{top:0; background:var(--accent); opacity:.45}
.share-row .sr-b{top:10px; background:var(--highlight)}
.share-row .sr-val{font-size:12.5px; color:var(--subink); white-space:nowrap; text-align:right}
.share-row .sr-val b{color:var(--ink)}
.share-row .sr-val .pos{color:var(--win); font-weight:700}
.share-row .sr-val .neg{color:var(--warn); font-weight:700}
.share-key{margin-left:8px; white-space:nowrap; font-size:12px}
.share-key i{display:inline-block; width:11px; height:11px; border-radius:3px; vertical-align:-1px; margin:0 4px 0 10px}
.share-key i.a{background:var(--accent); opacity:.45} .share-key i.b{background:var(--highlight)}
/* precinct reporting grid */
.pgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(30px,1fr)); gap:4px; margin:14px 0 8px}
.pcell{aspect-ratio:1; border-radius:5px; display:flex; align-items:center; justify-content:center;
  font-size:9.5px; background:var(--grid); color:var(--subink)}
.pcell.rep{background:color-mix(in srgb, var(--accent) 22%, #fff); color:var(--deep)}
.pcell.new{background:var(--highlight); color:#fff; font-weight:700}
.pgrid-key{font-size:12px; color:var(--subink); margin:2px 0 0}
.key-cell{display:inline-block; width:12px; height:12px; border-radius:3px; vertical-align:-2px;
  margin:0 3px 0 12px; background:var(--grid)}
.key-cell.rep{background:color-mix(in srgb, var(--accent) 22%, #fff)} .key-cell.new{background:var(--highlight)}

/* closest-races leaderboard (closest.html) */
.closest-board{display:flex; flex-direction:column; gap:2px; margin-top:10px}
.cls-row{display:grid; grid-template-columns:30px minmax(0,2.4fr) minmax(90px,1fr) minmax(120px,1.1fr);
  gap:6px 14px; align-items:center; padding:10px 10px; border-radius:9px; border:1px solid transparent}
.cls-row:not(.cls-head){cursor:pointer}
.cls-row:not(.cls-head):hover{background:var(--soft); border-color:var(--line)}
.cls-head{font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--subink); padding:4px 10px; border-bottom:1px solid var(--line); border-radius:0}
.cls-head:hover{background:none}
.cls-rank{font-size:13px; font-weight:700; color:var(--accent); text-align:center}
.cls-main{min-width:0}
.cls-name{font-size:14px; font-weight:700; color:var(--ink); display:flex; flex-wrap:wrap;
  align-items:center; gap:7px}
.cls-cands{font-size:12.5px; color:var(--subink); margin-top:2px}
.cls-cands b{color:var(--ink); font-weight:600}
.cls-cands .badge{margin-left:0; margin-right:6px}
.cls-seatnote{color:var(--subink); font-style:italic}
.cls-sub{font-size:13px; color:var(--subink); margin-top:2px}
/* Shared "Show all N" button: anc.js and closest.js (anc.css pages also load this file). */
.anc-more{margin:10px 0; font:inherit; font-size:15px; padding:10px 14px; border-radius:9px;
  border:1px solid var(--line); background:#fff; cursor:pointer; min-height:44px}
.cls-badge{font-size:10px; font-weight:700; color:var(--deep);
  background:color-mix(in srgb, var(--accent) 18%, #fff);
  border-radius:99px; padding:1px 8px; letter-spacing:.02em}
.cls-flag{font-size:10px; font-weight:700; color:var(--warn);
  background:rgba(180,83,9,.12); border-radius:99px; padding:1px 8px; letter-spacing:.02em}
.cls-margin{text-align:right; white-space:nowrap}
.cls-margin .cls-mv{font-size:14px; font-weight:700; color:var(--highlight)}
/* Match .cvr-tie (line 667) so an exact tie reads the same on every page:
   bold + italic + muted. It was bold-grey-only here, the one divergence. */
.cls-margin.cls-tie .cls-mv{color:var(--subink); font-style:italic}
.cls-margin .cls-mp{font-size:12px; color:var(--subink); margin-top:1px}
.cls-trend{display:flex; align-items:center; gap:9px; min-width:0}
.cls-spark{font-size:17px; line-height:1; letter-spacing:1px; color:var(--accent);
  font-family:"Segoe UI Symbol","Apple Symbols",sans-serif}
.cls-label{font-size:11px; font-weight:700; letter-spacing:.02em; white-space:nowrap}
.cls-label.narrowing{color:var(--win)}
.cls-label.widening{color:var(--subink)}
.cls-label.steady{color:var(--subink)}
.cls-label.flipped{color:var(--warn)}
/* "Leads that changed" (js/leadchange.js), closest.html and drops.html. A phone
   stacks each race into labelled lines: four columns do not fit 320px. */
.lc-title{font-size:15px; font-weight:700; color:var(--ink); margin:18px 0 2px}
.lc-line{font-size:14px; color:var(--ink); margin:6px 0 8px}
.lc-tag{color:var(--subink); font-style:italic}
.lc-wrap{margin:6px 0 10px}
table.data.lc-table{table-layout:fixed}
table.data.lc-table thead th{position:static}
table.data.lc-table th,table.data.lc-table td{text-align:left; white-space:normal; vertical-align:top}
table.data.lc-table th:nth-child(1){width:22%}
table.data.lc-table th:nth-child(3){width:18%}
.lc-table b{font-weight:600}
.lc-table a{color:var(--deep)}
/* On this page (js/jump-nav.js). Not sticky: the .controls bar already holds the
   top of the screen. order: drops.html's main is a flex column on phones. */
.jump-nav{display:flex; flex-wrap:wrap; align-items:center; gap:0 16px; order:-5; margin:12px 0; font-size:14px}
.jump-nav-lbl{font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--subink)}
.jump-nav a{color:var(--highlight); padding:5px 0}
/* Phones: a 44px tap target (task d349bec4). min-height on an inline-flex link,
   not more padding, so the row's gap and the desktop look are untouched. */
@media (max-width:560px){ .jump-nav a{display:inline-flex; align-items:center; min-height:44px; padding:0}
  /* .jump-nav-row: one swipeable row, for a page whose intro already pushes the row
     to the bottom of the first screen (cvr.html, nine links). */
  .jump-nav-row{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none}
  .jump-nav-row > *{flex:none; white-space:nowrap}
}
[data-jump]:focus{outline:none}

/* The jump from drops.html stops below the sticky .controls bar. */
@media (min-width:561px){ #lead-changes{scroll-margin-top:104px} }
@media (max-width:560px){
  .lc-table thead{display:none}
  .lc-table,.lc-table tbody,.lc-table tr,.lc-table td{display:block; width:100%}
  .lc-table tr{padding:8px 0; border-bottom:1px solid var(--line)}
  table.data.lc-table td{padding:1px 0}
  .lc-table td:first-child{font-weight:700}
  .lc-table td:not(:first-child)::before{content:attr(data-label) ": "; color:var(--subink)}
}
@media (max-width:560px){
  .cls-row{grid-template-columns:24px minmax(0,1.6fr) auto; gap:5px 10px}
  .cls-trend{grid-column:2 / -1; margin-top:2px}
  .cls-head .cls-trend{display:none}
  /* at 320px the nowrap trend label ran 19px past the viewport */
  .cls-label{white-space:normal}
  .cls-trend{flex-wrap:wrap; row-gap:2px}
  .cls-spark{max-width:100%; overflow:hidden}
}

/* tooltip - shared "dark tooltip" declaration for pct-tip (Leaflet's hover
   tooltip on the index/drops/cvr precinct maps) and scatter-tip (the
   analysis turnout-vs-share dot tooltip): same background, radius, shadow,
   padding and weight, collapsed from two near-identical blocks. Positioning
   genuinely differs - Leaflet places pct-tip itself, scatter-tip follows the
   mouse manually via wireScatterDots() - so that stays per-selector below.
   Verify visually on both pages before touching this again. */
.leaflet-tooltip.pct-tip, .scatter-tip{background:var(--ink); color:#fff; border-radius:7px;
  box-shadow:var(--shadow); padding:6px 9px; font-weight:500}
.leaflet-tooltip.pct-tip{border:none; font-size:12.5px}
.leaflet-tooltip.pct-tip::before{display:none}
.pct-tip b{font-weight:700}
.pct-tip .tval{color:#D9C9FF}
.pct-tip .tsub{color:#CFC8E6; font-size:11.5px}
.scatter-tip{position:absolute; z-index:700; pointer-events:none; max-width:180px;
  font-size:12px; line-height:1.4}
.scatter-tip b{font-weight:700}

@media (max-width:900px){
  .explorer{grid-template-columns:1fr}
  /* Results first: #panel sat ~1,300px down, under the map. Visual order only;
     DOM (and so tab/reading order) is unchanged. */
  .explorer > .panel{order:-1}
  #map{height:460px}
  /* Single-column: the stacked controls bar is ~370px tall, so pinning it to
     the top covers the results and lets the map's zoom control (also z-index
     1000) paint over the filters mid-scroll. Let it scroll with the page.
     This now applies to drops.html and cvr.html too, which grew the same
     sticky bar and carry the same Leaflet zoom control. */
  .controls{position:static}
  .panel{position:static}
  .legend{top:460px}
  .wf-grid{grid-template-columns:1fr}
  .sm-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .masthead h1{font-size:23px}
  .masthead-inner{flex-direction:column}
  /* The 240px min-width is what pushed a picker row past the viewport on a
     375px phone. .controls select was already released here; .chart-picker
     select was not, so analysis.html and cvr.html's in-section pickers still
     overflowed. Same control, same rule, one line. */
  .controls select,.chart-picker select{min-width:0; width:100%}
  .election-pick select{min-width:0; width:100%}
  .ctrl,.chart-picker{width:100%}
  .election-bar,.election-picker{width:100%}
  /* nav collapses into a pure-CSS <details> disclosure (no JS) */
  .site-nav{width:100%}
  .nav-disclosure{width:100%; border:1.5px solid var(--highlight); border-radius:12px; overflow:hidden}
  .site-nav summary{display:flex; align-items:center; min-height:44px; padding:.5rem 1.1rem;
    font-weight:600; font-size:.85rem; color:var(--highlight); list-style:none; cursor:pointer}
  .site-nav summary::-webkit-details-marker{display:none}
  .site-nav summary::after{content:"\25BE"; margin-left:auto; transition:transform .15s}
  .nav-disclosure[open] summary::after{transform:rotate(180deg)}
  .site-nav .nav-links{display:none; flex-direction:column; gap:0}
  .nav-disclosure[open] .nav-links{display:flex}
  .site-nav .nav-links a{border:none; border-radius:0; justify-content:flex-start;
    border-top:1px solid var(--line); width:100%}
  .site-nav .nav-divider{display:block; height:1px; background:var(--line); margin:0}
  /* The legend sits under the map, not on it: on the map it covered 13% of the
     city and Leaflet's attribution clipped its corner. */
  .legend{position:static; transform:none; max-width:none; margin-top:10px; box-shadow:none}
  /* The candidates are the result; the tiles restate them. Visual order only. */
  .panel:has(> .cand-list){display:flex; flex-direction:column}
  .panel:has(> .cand-list) > .mini-stats{order:1; margin-top:14px}
  .panel > .cand-list ~ *{order:2}
  /* Numbers first: rank is the row order, names wrap, so Votes and Share show
     with no sideways scroll. What still scrolls keeps its name pinned. */
  #resultsTable [data-k="rank"],#resultsTable td.rank{display:none}
  #resultsTable th,#resultsTable td{padding:9px 6px}
  #resultsTable th[data-k="name"],#resultsTable td.name{position:sticky; left:0; z-index:1; background:#fff;
    text-align:left; white-space:normal; min-width:72px; overflow-wrap:anywhere}
  #resultsTable th[data-k="name"]{background:var(--soft)}
  /* A slate contest has a fourth column: Share's bar gives up its 120px floor
     and the chip wraps, so Slate stays inside the table at 320. Slate contests
     only: with a smaller floor the pinned name column takes all spare width. */
  #resultsTable.has-slate .bar-cell{min-width:56px}
  #resultsTable td .slate-chip{white-space:normal; margin-left:0; padding:1px 4px; font-size:10px}
  #resultsTable tr.win td.name{background:linear-gradient(rgba(109,40,217,.06),rgba(109,40,217,.06)),#fff}
  #resultsTable tr.active td.name{background:linear-gradient(rgba(109,40,217,.12),rgba(109,40,217,.12)),#fff}
  .ward-table thead th{white-space:normal; vertical-align:bottom}
  .ward-table thead .swatch{display:block; margin:0 0 3px auto}
  .ward-table th:first-child{position:sticky; left:0; z-index:1; background:#fff}
  .ward-table thead th:first-child{background:var(--soft)}
  .ward-table tr.on th:first-child{background:linear-gradient(rgba(109,40,217,.10),rgba(109,40,217,.10)),#fff}
  /* The cue that a table runs on: a shadow on the right edge, gone at the end
     (the cover scrolls with the content, the shadow stays with the box).
     Also drops.html's precinct table and cvr.html's one-row jump links. */
  .table-section .table-scroll,.pd-wrap,.jump-nav-row{background:
    linear-gradient(to left,#fff 40%,rgba(255,255,255,0)) right / 28px 100% no-repeat local,
    linear-gradient(to left,rgba(42,37,64,.22),rgba(42,37,64,0)) right / 12px 100% no-repeat scroll,
    #fff}
}

/* ===== drops page: "where the votes came from" choropleth (self-contained,
   appended to minimize merge conflicts with concurrent style.css edits) ===== */
.dropmap-wrap{position:relative; margin:14px 0 8px}
#dropMap{height:560px; border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow); background:#eef}
.dropmap-legend{position:absolute; right:14px; bottom:14px; z-index:500;
  background:rgba(255,255,255,.94); border:1px solid var(--line); border-radius:10px;
  box-shadow:var(--shadow); padding:10px 12px; max-width:230px}
.dropmap-legend h4{margin:0 0 8px; font-size:12px; letter-spacing:.02em; color:var(--ink)}
.dropmap-legend .grad{height:11px; border-radius:3px; margin-bottom:5px}
.dropmap-legend .scale-ends{display:flex; justify-content:space-between;
  font-size:11px; color:var(--subink)}
.dropmap-legend .na{color:var(--subink); font-size:11px; margin-top:8px;
  display:flex; align-items:center; gap:6px}
.dropmap-legend .swatch{width:13px; height:13px; border-radius:3px; flex:none;
  border:1px solid rgba(0,0,0,.08)}
.dropmap-hint{margin-top:10px}
.dropmap-view{position:absolute; top:12px; right:12px; z-index:500; margin:0}
.dropmap-view .seg-btn{box-shadow:var(--shadow)}
.dropmap-view .seg-btn:disabled{cursor:progress; opacity:.7}
@media (max-width:900px){
  #dropMap{height:440px}
}
@media (max-width:560px){
  /* Under the map, as index's: Leaflet's attribution clipped its corner. */
  .dropmap-legend{position:static; max-width:none; margin-top:10px; padding:8px 10px; box-shadow:none}
  .dropmap-view{top:8px; right:8px}
  .dropmap-view .seg-btn{min-height:44px}
}

/* ===== ranked-choice page (rcv.html) - self-contained, appended to minimize
   merge conflicts with concurrent style.css edits ===== */
.rcv-banner{margin:14px 0 4px; padding:12px 15px; border-radius:11px;
  background:rgba(180,83,9,.08); border:1px solid rgba(180,83,9,.35);
  color:var(--ink); font-size:13.5px; line-height:1.5}
.rcv-banner strong{color:var(--warn)}
.rcv-banner p{margin:0}
.rcv-banner p + p{margin-top:8px}
.rcv-empty{margin:26px 0; padding:18px 16px; border:1px dashed var(--line);
  border-radius:12px; background:var(--soft)}

/* screen-reader-only utility (off-screen but available to assistive tech) */
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

/* auto-generated headline (result summary + exhausted stat) */
.rcv-summary{margin:6px 0 2px; font-size:15px; line-height:1.5; color:var(--ink)}
.rcv-summary strong{color:var(--deep)}
.rcv-summary .rcv-stat{display:inline; color:var(--subink); font-weight:400}

/* legitimacy bar: 100%-stacked breakdown of the final-round ballot universe
   (winner / other-continuing / exhausted). Two segments for zero-exhaustion
   contests; three for any with exhausted ballots. */
.rcv-legit-bar{margin:6px 0 12px}
.rcv-legit-svg{width:100%; height:auto; display:block}
.rcv-legit-lbl{font-size:11px; font-weight:700; font-family:var(--font)}

/* trajectory (bump) chart */
#rcvChart{margin-top:8px}
.rcv-svg{width:100%; height:auto; display:block; overflow:visible}
.rcv-grid{stroke:var(--grid); stroke-width:1}
.rcv-vguide{stroke:var(--grid); stroke-width:1; opacity:.45}
.rcv-tick{font-size:11px; fill:var(--subink)}
.rcv-tick-y{text-anchor:end}
.rcv-xlbl{text-anchor:middle; font-size:12px; font-weight:600; fill:var(--ink)}
.rcv-axislbl{text-anchor:middle; font-size:11px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; fill:var(--subink)}
.rcv-winlbl{text-anchor:middle; font-size:13px; font-weight:700; fill:var(--highlight)}
/* the 50% majority threshold line + its text label */
.rcv-majline{stroke:var(--warn); stroke-width:1.4; stroke-dasharray:5 4; opacity:.85}
.rcv-majlbl{font-size:11px; font-weight:700; fill:var(--warn)}
/* candidate trajectory lines + point markers */
.rcv-traj{stroke-width:2; fill:none; stroke-linejoin:round; stroke-linecap:round; opacity:.85}
.rcv-traj-win{stroke-width:3.6; opacity:1}
.rcv-dotm{stroke:#fff; stroke-width:1}
.rcv-dotm-win{stroke:var(--deep); stroke-width:1.4}
/* end-of-line + elimination + crossing labels */
.rcv-endlbl{font-size:11.5px; font-weight:600}
.rcv-endlbl-win{font-size:12.5px; font-weight:800}
.rcv-elimlbl{font-size:10.5px; font-weight:600; fill:var(--subink); font-style:italic}
.rcv-cross{fill:var(--panel); stroke:var(--highlight); stroke-width:2.5}

/* legend (reuses .swatch / .swatch-row from .legend) */
.rcv-leg-lbl{font-size:11px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--subink); margin-right:2px}
#rcvLegend .swatch{width:13px; height:13px; border-radius:3px; flex:none;
  border:1px solid rgba(0,0,0,.08)}
#rcvLegend .swatch-row{display:inline-flex; align-items:center; gap:7px; font-size:12px;
  color:var(--ink)}
#rcvLegend .rcv-leg-note{color:var(--subink); font-size:11.5px; flex-basis:100%}
.rcv-wintag{color:var(--highlight); font-size:10px; letter-spacing:.04em}

/* mobile-only "tap for details" affordance (the table is the full fallback) */
.rcv-tap-hint{display:none; margin:6px 0 0; font-size:12px; color:var(--subink)}

/* table */
table.rcv-data td.rcv-out{color:var(--subink); opacity:.5; text-align:right}
table.rcv-data td.rcv-elim-cell{color:var(--warn); font-style:italic;
  background:rgba(180,83,9,.06)}
table.rcv-data tbody tr.win .rcv-dot{color:var(--highlight); font-weight:700; font-size:11px}
table.rcv-data tbody tr.rcv-exhaust-row{color:var(--subink); cursor:default}
table.rcv-data tbody tr.rcv-exhaust-row:hover{background:transparent}
table.rcv-data tbody tr.rcv-total-row{border-top:2px solid var(--line);
  font-weight:700; color:var(--ink); cursor:default}
table.rcv-data tbody tr.rcv-total-row:hover{background:transparent}

/* transfer-flow section ("where the votes went") - hidden until rcv.js finds a
   contest with per-round `transfers` (tabulate-derived data). Collapsible. */
.rcv-flow-details > summary{cursor:pointer; list-style:none; display:block}
.rcv-flow-details > summary::-webkit-details-marker{display:none}
.rcv-flow-details > summary::marker{content:""}
.rcv-flow-title{font-size:21px; font-weight:700; letter-spacing:-.01em; color:var(--ink)}
.rcv-flow-summary .hint{display:block; margin-top:3px}
.rcv-flow-round{margin-top:18px}
.rcv-flow-h{font-size:13px; font-weight:700; letter-spacing:.02em; margin:0 0 4px; color:var(--ink)}
.rcv-flow-svg{width:100%; height:auto; display:block; overflow:visible; max-width:700px}
.rcv-flow-node{stroke:#fff; stroke-width:.75}
.rcv-ribbon{opacity:.5; transition:opacity .12s ease}
.rcv-ribbon:hover{opacity:.8}
.rcv-ribbon-exh{opacity:.38}
.rcv-flow-srclbl{font-size:11px; font-weight:700; fill:var(--ink)}
.rcv-flow-lbl{font-size:11.5px; fill:var(--ink)}
.rcv-flow-lbl-exh{fill:var(--subink)}
#rcvFlowTable{margin-top:14px}

/* round-to-round sankey overview (d3-sankey), above the per-elimination ribbons.
   Same lavender/hairline language as the ribbons + bump chart. The scroll
   wrapper lets the fixed-width viewBox pan on phones rather than crush columns. */
.rcv-sankey-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch; margin:6px 0 4px}
/* d3-zoom: wheel/pinch to scale, drag to pan. touch-action:pan-y keeps vertical
   page scroll working while letting d3 own horizontal + pinch gestures. The svg
   clips so zoomed content stays inside the box. */
.rcv-sankey-svg{display:block; height:auto; min-width:640px; cursor:grab; touch-action:pan-y; overflow:hidden}
.rcv-sankey-svg:active{cursor:grabbing}
.rcv-sankey-link{cursor:pointer}
/* zoom controls + hint above the diagram. Shared with the cvr.html ward
   sankey (see the .cvr-sankey-* selectors below at style.css:727+) - same
   declarations, added to these rules rather than duplicated. */
.rcv-sankey-tools, .cvr-sankey-tools{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:8px 0 2px}
.rcv-sankey-zoombtns, .cvr-sankey-zoombtns{display:inline-flex; gap:4px}
.rcv-sankey-btn, .cvr-sankey-btn{font:inherit; font-size:13px; line-height:1; padding:5px 10px; border:1px solid var(--rule,#d9d4e6);
  background:#fff; color:var(--ink); border-radius:6px; cursor:pointer}
.rcv-sankey-btn:hover, .cvr-sankey-btn:hover{background:var(--accent); color:#fff; border-color:transparent}
.rcv-sankey-zoomhint, .cvr-sankey-zoomhint{color:var(--subink)}
/* instant, mouse-following tooltip (replaces the slow native <title>
   tooltip, which never fires on touch). ONE declaration shared by every
   page that wires this pattern: rcv.js's sankeyTooltipEl (rcv.html),
   cvr.js's cvrTipEl (cvr.html - sunburst, ward sankey, head-to-head bar),
   analysis.js's analysisTipEl (analysis.html - heatmap, small
   multiples, slope plot) and smd.js's smdTipEl (smd.html - ballots by
   day). Was four near-identical copy/paste blocks
   (this one, cvr-tip, plus the separate pct-tip/scatter-tip family above,
   which keeps its own background/radius/shadow because those genuinely
   differ) - verify visually on every page that uses one before touching
   this again. */
.rcv-sankey-tip, .cvr-tip, .analysis-tip, .smd-tip{position:fixed; z-index:1000; pointer-events:none; max-width:260px;
  background:#2A2540; color:#fff; font-size:12px; line-height:1.3; padding:5px 8px;
  border-radius:5px; box-shadow:0 2px 8px rgba(0,0,0,.25)}
.rcv-sankey-tip[hidden], .cvr-tip[hidden], .analysis-tip[hidden], .smd-tip[hidden]{display:none}
.rcv-sankey-node{stroke:#fff; stroke-width:.6}
.rcv-sankey-node-win{stroke:var(--highlight); stroke-width:1.1}
.rcv-sankey-node-exh{stroke:#fff}
.rcv-sankey-link{opacity:.42; transition:opacity .12s ease}
.rcv-sankey-link:hover{opacity:.72}
.rcv-sankey-link-exh{opacity:.3}
.rcv-sankey-lbl{font-size:11px; fill:var(--ink)}
.rcv-sankey-lbl-win{font-weight:700; fill:var(--highlight)}
.rcv-sankey-lbl-exh{fill:var(--subink)}
.rcv-sankey-rlbl{font-size:10.5px; font-weight:700; letter-spacing:.04em; fill:var(--subink); text-transform:uppercase}

@media (max-width:560px){
  .rcv-banner{font-size:13px; padding:11px 13px}
  .rcv-summary{font-size:14px}
  /* keep the trajectory legible: scroll horizontally rather than shrink labels
     to unreadable sizes. Round labels are already abbreviated (R1..Rn) for 6+
     round charts so they never overlap. */
  .rcv-svg{min-width:600px}
  #rcvChart{overflow-x:auto; -webkit-overflow-scrolling:touch}
  .rcv-tap-hint{display:block}
  .rcv-flow-svg{min-width:520px}
  #rcvFlow{overflow-x:auto; -webkit-overflow-scrolling:touch}
  /* the sankey already lives in its own scroll wrapper; shrink labels slightly */
  .rcv-sankey-lbl{font-size:10px}
}

/* ===========================================================================
   Ballot-level ranked choice (cvr.html) - preview scaffolding, unlinked page.
   Self-contained: adds only .cvr-* classes, edits no shared rule - with one
   deliberate exception, the ward sankey's zoom controls, which add their
   .cvr-sankey-* selectors ALONGSIDE the existing .rcv-sankey-* zoom-button
   rules up in the rcv.html block above (style.css:576-581) rather than
   duplicating those declarations. The page ships inert (no data anywhere
   today), so most of this styles the caveat and status blocks; the result
   styles below are unexercised against real data.
   =========================================================================== */
.cvr-banner{border:1px solid var(--rule,#d9d4e6); border-left:4px solid var(--highlight,#B8442E);
  background:#FBF7F6; border-radius:8px; padding:13px 15px; margin:14px 0 6px}
.cvr-banner p{margin:0; font-size:14px; line-height:1.5}
.cvr-banner code{font-size:13px}
.cvr-status{padding:2px 0}
.cvr-status-head{margin:0 0 6px; font-weight:700; font-size:16px}
.cvr-status .hint{margin:6px 0}

.cvr-row{display:grid;
  grid-template-columns:minmax(90px,1fr) minmax(120px,2fr) 90px 74px 90px;
  gap:10px; align-items:center; padding:9px 4px; border-bottom:1px solid var(--rule,#d9d4e6);
  font-size:14px; min-height:44px}
.cvr-row-head{font-weight:700; font-size:12.5px; letter-spacing:.03em;
  text-transform:uppercase; color:var(--subink)}
.cvr-row-votes,.cvr-row-share,.cvr-row-rounds{text-align:right;
  font-variant-numeric:tabular-nums}
.cvr-row-rounds{color:var(--subink)}
/* The map's fill intensity, in text. Kept at full --ink rather than the --subink
   of the rounds column beside it: this is the second variable the map encodes,
   not a footnote to the first, and the table is where a reader who cannot
   perceive the shading reads it. */
.cvr-row-share{color:var(--ink)}
/* An exact tie, where naming a leader would be an alphabetical accident rather
   than a result. Weight and italics carry the meaning, not colour alone. */
.cvr-tie{font-style:italic; font-weight:700; color:var(--subink)}
.cvr-tie-mark{color:var(--subink); font-weight:700}

.cvr-split{margin:0 0 12px}
/* Thousands of items sit in these blocks; let the browser skip layout and paint
   for the ones off screen. Content stays in the DOM (find-in-page, screen
   readers), unchanged. */
/* (.cvr-split is only ever used inside #cvrSplitsList) */
.cvr-split{content-visibility:auto; contain-intrinsic-size:auto 400px}
.cvr-split-head{margin:0 0 4px; font-weight:700; font-size:14px}
.cvr-split-list{margin:0; padding-left:18px; font-size:13.5px; color:var(--subink)}
/* the percentage that rides alongside each raw count in the always-built
   ranking-split list (see splitsTotals / renderSplitsList in cvr.js) -
   de-emphasized relative to the bold count, same subink as the rest of the
   list's supporting text */
.cvr-split-pct{color:var(--subink); font-weight:400}
.cvr-sunburst-svg{display:block; width:100%; max-width:420px; height:auto; margin:0 auto}
/* Every slice is pointable now - hovering or tapping one traces it back to the
   centre and writes it into the readout below. Nothing re-roots, so `pointer`
   here promises a highlight, not a navigation. touch-action:manipulation kills
   the ~300ms tap delay so the trace feels immediate on a phone. */
.cvr-sunburst-arc{stroke:#fff; stroke-width:.6; cursor:pointer;
  touch-action:manipulation; transition:opacity .12s ease}
.cvr-sunburst-arc:hover{opacity:.85}
/* The traced path: the slice and every ancestor back to the centre keep full
   opacity and take a dark outline, while everything else fades. TWO cues, not
   just opacity, so the trace survives greyscale and low-contrast screens - and
   the readout under the chart states the same path in words regardless. */
.cvr-sunburst-arc-on{opacity:1; stroke:#1F1B2E; stroke-width:1.4}
.cvr-sunburst-arc-dim{opacity:.28}
/* No :focus rule on the arcs: they are deliberately not focusable (see the
   tabindex comment in drawSunburstArcs in cvr.js) - #cvrSplitsList, which now
   runs to the full published depth, is the keyboard/screen-reader equivalent. */

/* the traced-slice readout under the chart. Reserves two lines' height so a
   hover does not shift the page under the pointer, and stays put after a tap. */
.cvr-splits-readout{margin:8px auto 0; max-width:520px; min-height:2.8em;
  font-size:13.5px; line-height:1.45; color:var(--ink); text-align:center}
.cvr-splits-readout:empty{min-height:0}
/* cvr-tip's declaration lives with .rcv-sankey-tip/.analysis-tip near the
   rcv-sankey-* rules above (it is deliberately named for none of the three
   charts on this page - see cvrTipEl in cvr.js - and is now the same shared
   declaration every page's instant tooltip uses). */

/* plain-language headline that leads each view (the figure comes from the
   payload at runtime; nothing numeric is styled in here) */
.cvr-headline{margin:0 0 8px; font-size:15.5px; line-height:1.55; color:var(--ink)}
.cvr-bignum{color:var(--highlight); font-size:19px; font-variant-numeric:tabular-nums}

/* roll-off broken into its disjoint causes. Bars are scaled to the largest
   cause, so they compare the causes with each other, never with the whole
   contest; the count and percent beside each label carry the real magnitude. */
.cvr-reason-head{margin:16px 0 8px; font-size:12px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--accent)}
.cvr-reason-list{list-style:none; margin:0 0 10px; padding:0;
  display:flex; flex-direction:column; gap:12px}
.cvr-reason-top{display:flex; justify-content:space-between; align-items:baseline;
  gap:12px; flex-wrap:wrap}
.cvr-reason-label{font-size:14px; color:var(--ink)}
.cvr-reason-num{font-size:14px; font-variant-numeric:tabular-nums; color:var(--ink);
  white-space:nowrap}
.cvr-reason-pct{color:var(--subink); font-size:12.5px}
.cvr-reason-bar{height:8px; border-radius:4px; background:var(--line);
  overflow:hidden; margin:5px 0 4px}
.cvr-reason-bar span{display:block; height:100%; border-radius:4px;
  background:var(--accent)}
.cvr-reason-note{margin:0; font-size:12.5px; line-height:1.5; color:var(--subink)}

/* 144 precincts is a long list: give it its own scroll box so the sections
   below stay reachable without a very long scroll past one table */
.cvr-scroll{max-height:520px; overflow-y:auto; -webkit-overflow-scrolling:touch;
  border:1px solid var(--rule,#d9d4e6); border-radius:8px; padding:0 10px}

/* .cvr-orig-table / .cvr-orig-n: a generic result-table style, named for the
   now-removed origins section that introduced it but reused by the
   head-to-head table, the continuation matrix and the ward-transfer
   destination table below - keep these two even though the rest of the
   .cvr-orig-* family (the origins bar/swatch/head, origins-only) is gone. */
.cvr-orig-table{width:100%; border-collapse:collapse; margin-top:9px; font-size:13.5px}
.cvr-orig-table th{text-align:left; font-size:11.5px; letter-spacing:.03em;
  text-transform:uppercase; color:var(--subink); font-weight:700;
  padding:3px 4px; border-bottom:1px solid var(--rule,#d9d4e6)}
.cvr-orig-table td{padding:5px 4px; border-bottom:1px solid var(--rule,#d9d4e6)}
.cvr-orig-n{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap}

/* text equivalent of the sunburst, always available (not only when d3 fails) */
.cvr-splits-details{margin-top:12px; font-size:14px}
.cvr-splits-details summary{cursor:pointer; min-height:44px; display:flex;
  align-items:center; color:var(--highlight); font-weight:700}

@media (max-width:560px){
  /* The ranking-splits list is the phone's way into the outer rings (its arcs
     are too thin to tap), so its summary reads as a heading, not a footnote. */
  #cvrSplitsDetails{margin-top:16px; padding-top:8px; border-top:1px solid var(--rule,#d9d4e6)}
  #cvrSplitsDetails summary{font-size:16px}
  .cvr-banner p{font-size:13px}
  /* stack the leader board: five columns are unreadable on a phone */
  .cvr-row{grid-template-columns:1fr auto; row-gap:2px}
  /* Share and rounds both ride the right-hand column, on their own rows. Share
     goes ABOVE rounds - it is the map variable, rounds is provenance - and both
     are pinned explicitly, because leaving share to auto-flow put it in the
     left column beside the leader name where it read as part of the name. */
  .cvr-row-share,.cvr-row-rounds{grid-column:2}
  .cvr-headline{font-size:14.5px}
  .cvr-bignum{font-size:17px}
  /* a phone already scrolls; a nested scroll box traps the gesture */
  .cvr-scroll{max-height:none; overflow-y:visible; border:0; padding:0}
  /* an eight-round contest can leave many rows: keep the shared result-table
     style readable rather than squeezing three columns */
  .cvr-orig-table{font-size:12.5px}
}
/* The continued count, and the per-ward drill-down that runs into it. These
   carry NO reconciliation guarantee, so they are deliberately styled apart
   from the reconciled sections above: a tinted, hatched-edge panel rather
   than the plain white ones. Nothing here is signalled by hue alone; every
   "not counted" column and step also carries a word. */
.cvr-continued{background:#FCFAF4; border:1px dashed var(--rule,#d9d4e6);
  border-radius:10px; padding:14px 16px}
.cvr-cont-banner{border-left:4px solid #B45309; background:#FFF9EE;
  border-radius:6px; padding:11px 13px; margin:0 0 14px}
.cvr-cont-banner p{margin:0; font-size:13.5px; line-height:1.5}
.cvr-h2h-svg{display:block; width:100%; height:auto; border-radius:4px; margin:2px 0 4px}
.cvr-h2h-seg{stroke:#fff; stroke-width:.8; cursor:pointer; transition:opacity .12s ease}
.cvr-h2h-seg:hover{opacity:.85}
.cvr-h2h-scroll{margin-top:14px; max-height:none; overflow-x:auto}
.cvr-h2h-matrix{min-width:420px}
.cvr-h2h-matrix th{white-space:nowrap}
/* a column BOE never counted: tint plus the words "not counted" in the header */
.cvr-cont-col{background:#FFF6E5}
.cvr-col-tag{display:block; font-size:10px; font-weight:400; letter-spacing:0;
  text-transform:none; color:var(--subink)}
.cvr-out{color:var(--subink); font-style:italic}
.cvr-exh{color:var(--subink)}
/* the pairwise matrix. At-Large is 10x10, so it gets its own horizontal scroll
   box rather than pushing the page sideways; the row header sticks so a reader
   scrolled to the far column still knows whose row they are on. */
.cvr-pw-scroll{max-height:none; overflow-x:auto; -webkit-overflow-scrolling:touch}
.cvr-pw-table{min-width:100%; width:auto}
.cvr-pw-table th[scope="row"]{text-align:left; font-size:12.5px;
  text-transform:none; letter-spacing:0; color:var(--ink); font-weight:600;
  white-space:nowrap; position:sticky; left:0; background:var(--panel,#fff);
  padding-right:10px; border-bottom:1px solid var(--rule,#d9d4e6)}
.cvr-pw-col{white-space:nowrap; text-align:right; vertical-align:bottom}
.cvr-pw-table td{padding:5px 7px}
.cvr-pw-pct{display:block; font-size:11px; color:var(--subink);
  font-variant-numeric:tabular-nums}
/* the diagonal: a candidate is not compared with themselves */
.cvr-pw-self{background:repeating-linear-gradient(-45deg,
  transparent 0 5px, var(--line,#eceaf3) 5px 6px)}
/* per-ward transfer drill-down */
.cvr-sankey-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch}
/* d3-zoom: wheel/pinch to scale, drag to pan (mirrors .rcv-sankey-svg above).
   touch-action:pan-y keeps vertical page scroll working while letting d3 own
   horizontal + pinch gestures; the svg clips so zoomed content stays boxed. */
.cvr-sankey-svg{display:block; width:100%; min-width:560px; height:auto; cursor:grab; touch-action:pan-y; overflow:hidden}
.cvr-sankey-svg:active{cursor:grabbing}
.cvr-sankey-link{fill:none; stroke-opacity:.34; cursor:pointer; transition:stroke-opacity .12s ease}
.cvr-sankey-link:hover{stroke-opacity:.6}
.cvr-sankey-link-exh{stroke-opacity:.2; stroke-dasharray:3 2}
.cvr-sankey-node{stroke:#fff; stroke-width:.5; cursor:pointer}
.cvr-sankey-lbl{font-size:10.5px; fill:var(--ink)}
.cvr-sankey-rlbl{font-size:11px; font-weight:700; fill:var(--subink)}
.cvr-sankey-rlbl-cont{fill:#B45309; font-style:italic}
.cvr-flow-step{margin:0 0 16px; padding:0 0 12px;
  border-bottom:1px solid var(--rule,#d9d4e6)}
.cvr-flow-step:last-child{border-bottom:0; padding-bottom:0}
.cvr-flow-head{margin:0 0 5px; font-weight:700; font-size:14px}
.cvr-cont .cvr-flow-head{color:#8A5A0B}
.cvr-cont-tag{display:inline-block; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.03em; color:#8A5A0B;
  background:#FFF6E5; border-radius:4px; padding:1px 6px; margin-left:4px}
@media (max-width:560px){
  .cvr-continued{padding:12px 11px}
  .cvr-cont-banner p{font-size:12.5px}
  .cvr-h2h-matrix{font-size:12px}
  .cvr-flow-head{font-size:13px}
}

/* ===== drops page: geographic signature of a batch (self-contained, appended
   to minimize merge conflicts with concurrent style.css edits) ===== */
.geo-callout{margin:2px 0 14px; font-size:14.5px; line-height:1.55; color:var(--ink)}
.geo-callout b{color:var(--highlight)}
.geo-wards{display:flex; flex-direction:column; gap:5px}
.geo-ward{display:grid; grid-template-columns:74px 1fr 128px; align-items:center; gap:10px;
  padding:3px 4px; border-radius:8px}
.geo-ward.selected{background:var(--soft); box-shadow:inset 0 0 0 1px var(--line)}
.gw-name{font-size:13px; font-weight:700; color:var(--ink)}
.gw-track{position:relative; height:18px; background:var(--soft); border-radius:5px;
  border:1px solid var(--line); overflow:hidden}
.gw-bar{position:absolute; left:0; top:0; bottom:0; background:var(--accent);
  border-radius:4px 0 0 4px}
.gw-bar.heavy{background:var(--highlight)}
.gw-bar.light{background:#CFC7E6}
/* the 1.0x proportional reference line, drawn over the bar */
.gw-mark{position:absolute; top:0; bottom:0; width:1px; background:var(--subink);
  opacity:.55; z-index:2}
.gw-val{font-size:13px; color:var(--ink); text-align:right}
.gw-val b{color:var(--highlight)}
.gw-sub{color:var(--subink); font-size:11.5px; margin-left:4px}

.geo-arc-wrap{margin-top:20px; border-top:1px solid var(--line); padding-top:14px}
.geo-sub{font-size:13.5px; margin:0 0 3px; color:var(--ink)}
.geo-arc{display:flex; align-items:flex-end; gap:5px; margin-top:10px;
  overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px}
.geo-col{flex:1 0 46px; min-width:46px; min-height:44px; display:flex; flex-direction:column;
  align-items:center; gap:3px; font:inherit; background:none; border:1px solid transparent;
  border-radius:8px; padding:4px 2px 5px; cursor:pointer}
.geo-col:hover{background:var(--soft)}
.geo-col.on{background:var(--soft); border-color:var(--accent)}
.gc-bar-wrap{width:100%; height:74px; display:flex; align-items:flex-end;
  justify-content:center}
.gc-bar{width:70%; background:var(--accent); border-radius:3px 3px 0 0; min-height:3px}
.geo-col.on .gc-bar{background:var(--highlight)}
.gc-pct{font-size:11px; color:var(--subink); line-height:1}
.gc-lbl{font-size:11.5px; font-weight:700; color:var(--ink); line-height:1}
.geo-hint{margin-top:14px}
@media (max-width:560px){
  .geo-ward{grid-template-columns:60px 1fr 104px; gap:7px}
  .gw-val{font-size:12px}
  .gw-sub{display:block; margin-left:0}
  .geo-callout{font-size:13.5px}
  .gc-bar-wrap{height:58px}
}
.geo-key{margin:0 0 9px}

/* ===== cvr.html: the per-precinct winner map and its drill-down button
   (self-contained, appended to minimize merge conflicts with concurrent
   style.css edits; sizing and legend chrome mirror the drops page's map) ===== */
.cvrmap-wrap{position:relative; margin:14px 0 8px}
#cvrMap{height:560px; border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow); background:#eef}
.cvrmap-legend{position:absolute; right:14px; bottom:14px; z-index:500;
  background:rgba(255,255,255,.94); border:1px solid var(--line); border-radius:10px;
  box-shadow:var(--shadow); padding:10px 12px; max-width:250px;
  max-height:330px; overflow-y:auto}
.cvrmap-legend h4{margin:0 0 8px; font-size:12px; letter-spacing:.02em; color:var(--ink)}
.cvrmap-legend .swatch-row{display:flex; align-items:center; gap:7px; font-size:12px;
  margin:4px 0; color:var(--ink); line-height:1.3}
.cvrmap-legend .swatch{width:13px; height:13px; border-radius:3px; flex:none;
  border:1px solid rgba(0,0,0,.08); margin-top:1px}
.cvr-legend-n{color:var(--subink); font-variant-numeric:tabular-nums}
/* A candidate's swatch is a gradient now, because their precincts are drawn at
   many strengths. The 1px inset border the flat .swatch carries would cut the
   pale end off visually, so the ramp swatch is a touch wider and keeps only the
   faint outline. */
.cvrmap-legend .swatch-ramp{width:26px}
/* The intensity key: what the lightness axis means, stated in numbers. Neutral
   grey on purpose - it describes the axis, and drawing it in a candidate's hue
   would read as a claim about that candidate. */
.cvr-ramp-key{margin-top:9px; padding-top:8px; border-top:1px solid var(--line)}
.cvr-ramp-bar{height:9px; border-radius:3px; border:1px solid rgba(0,0,0,.08);
  background:linear-gradient(90deg,#e8e4f0,#4b3f72)}
.cvr-ramp-ends{display:flex; justify-content:space-between; font-size:11px;
  color:var(--subink); font-variant-numeric:tabular-nums; margin-top:3px}
.cvr-ramp-cap{font-size:11px; color:var(--subink); line-height:1.25; margin-top:2px}
.cvrmap-hint{margin-top:10px}

/* The precinct table's drill-down control. A real <button>, because it is the
   keyboard path to the transfer view (the map's polygons are not focusable -
   see paintCvrMap in cvr.js). 44px min target, matching .cvr-row. */
.cvr-row-act{text-align:right}
.cvr-row-btn{font:inherit; font-size:12.5px; line-height:1; padding:7px 10px;
  min-height:44px; border:1px solid var(--rule,#d9d4e6); border-radius:8px;
  background:#fff; color:var(--highlight); font-weight:700; cursor:pointer}
.cvr-row-btn:hover{background:var(--highlight); color:#fff; border-color:transparent}
.cvr-row-btn:focus-visible{outline:2px solid var(--highlight); outline-offset:2px}
.cvr-row-noflow{font-size:12px; color:var(--subink); font-style:italic}
.cvr-row-act-head .cvr-row-act{text-align:right}
/* six columns once the precinct table carries an action cell */
.cvr-row:has(.cvr-row-act){
  grid-template-columns:minmax(64px,.7fr) minmax(100px,2fr) 74px 66px 74px 96px}

/* The round selector above the map. Segmented-control look, but built from
   real radio inputs so arrow keys, screen readers and form semantics all work
   without any JS beyond the change handler. The input stays in the DOM (not
   display:none) and is visually hidden, so it remains focusable and the
   :focus-visible ring below can be drawn on the label around it. */
.cvr-round-wrap{margin:14px 0 4px}
.cvr-round-set{border:0; padding:0; margin:0}
.cvr-round-set legend{padding:0; margin:0 0 7px; font-size:12.5px;
  font-weight:700; letter-spacing:.02em; color:var(--subink)}
.cvr-round-opts{display:flex; flex-wrap:wrap; gap:8px}
.cvr-round-opt{position:relative; display:inline-flex; align-items:center;
  min-height:44px; padding:8px 14px; border:1px solid var(--rule,#d9d4e6);
  border-radius:999px; background:#fff; color:var(--ink); font-size:13px;
  font-weight:600; cursor:pointer; user-select:none}
.cvr-round-opt input{position:absolute; opacity:0; width:1px; height:1px;
  margin:0; pointer-events:none}
.cvr-round-opt:hover{border-color:var(--highlight)}
.cvr-round-opt.is-on{background:var(--highlight); border-color:transparent; color:#fff}
.cvr-round-opt:has(input:focus-visible){outline:2px solid var(--highlight);
  outline-offset:2px}
/* Belt and braces: :has() is what drives .is-on's live counterpart on browsers
   that support it, so the control still highlights correctly for the instant
   between a click and cvr.js's re-render. */
.cvr-round-opt:has(input:checked){background:var(--highlight);
  border-color:transparent; color:#fff}
.cvr-round-note{margin:9px 0 0}

@media (max-width:900px){
  #cvrMap{height:440px}
}
@media (max-width:560px){
  /* Under the map, as index's and drops': on it, it covered the map's corner. */
  .cvrmap-legend{position:static; max-width:none; max-height:none; margin-top:10px; padding:8px 10px;
    box-shadow:none; font-size:11px}
  /* the stacked phone layout drops to two columns; the action cell rides
     along on the second row rather than squeezing a fifth column in */
  .cvr-row:has(.cvr-row-act){grid-template-columns:1fr auto}
}

/* My races star (js/favorites.js): a real button beside what it stars, never
   inside it. 44px target; aria-pressed carries the state, the glyph shows it. */
.fav-star{flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px;
  padding:0; margin:0; font:inherit; font-size:22px; line-height:1; color:var(--accent); background:none;
  border:1px solid transparent; border-radius:9px; cursor:pointer}
.fav-star:hover{background:var(--soft); border-color:var(--line)}
.fav-star[aria-pressed="true"]{color:var(--highlight)}
.fav-star:focus-visible{outline:2px solid var(--highlight); outline-offset:2px}
.ctrl-row{display:flex; align-items:center; gap:4px; min-width:0}
.ctrl-row select{flex:1 1 auto}
.ctrl-fav:empty{display:none}

/* "Your pick" (js/favorites.js pickHtml): a label, then one real button per
   candidate (aria-pressed), 44px targets that wrap; never inside another
   button. The shared/past read-only form is a plain line (.fav-pick-ro). */
.fav-pick{display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:8px 0 0; min-width:0}
.fav-pick-lbl{font-size:13px; font-weight:600; color:var(--subink)}
.fav-pick-max{font-weight:400}
.fav-pick-chips{display:flex; flex-wrap:wrap; gap:6px; min-width:0}
.fav-pick-chip{min-height:44px; max-width:100%; padding:6px 12px; font:inherit; font-size:14px; line-height:1.2;
  color:var(--ink); background:var(--panel); border:1.5px solid var(--line); border-radius:22px; cursor:pointer;
  text-align:left; overflow-wrap:anywhere}
.fav-pick-chip:hover{background:var(--soft)}
.fav-pick-chip[aria-pressed="true"]{color:#fff; background:var(--highlight); border-color:var(--highlight)}
.fav-pick-chip[aria-pressed="true"]::before{content:"\2713\00a0"}
.fav-pick-chip:disabled{color:var(--subink); background:none; border-style:dashed; cursor:default}
.fav-pick-chip:focus-visible{outline:2px solid var(--highlight); outline-offset:2px}
.fav-pick-note{font-size:13px; color:var(--warn)}
.fav-pick-note:empty{display:none}
.fav-pick-ro{margin:8px 0 0; font-size:14px; overflow-wrap:anywhere}
.fav-pick-ro .fav-pick-lbl{margin-right:2px}
.panel-pick{margin:12px 0 4px}

/* ===== index tools: "Find a candidate" (js/search.js) and the "By ward"
   table (js/wardtable.js). Self-contained, appended. ===== */
.masthead-search{position:relative; width:100%; max-width:420px}
.cs-input{width:100%; min-height:44px; font:inherit; font-size:16px; color:var(--ink); background:#fff;
  border:1.5px solid var(--line); border-radius:9px; padding:8px 12px}
.cs-input:focus{outline:2px solid var(--accent); outline-offset:1px; border-color:var(--highlight)}
.cs-list{position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:1200; margin:0; padding:4px;
  list-style:none; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow);
  max-height:min(60vh,420px); overflow-y:auto}
.cs-list li{display:flex; flex-direction:column; gap:1px; padding:8px 10px; border-radius:7px; cursor:pointer; min-width:0}
.cs-list li[aria-selected="true"],.cs-list li:hover{background:var(--soft)}
.cs-list li[aria-selected="true"]{outline:1.5px solid var(--highlight)}
.cs-name{font-weight:600; font-size:14.5px; overflow-wrap:anywhere}
.cs-contest{font-size:12.5px; color:var(--subink); overflow-wrap:anywhere}
.cs-none{margin:4px 0 0; font-size:13px; color:var(--subink)}
.cs-none:empty{display:none}

.ward-table th .swatch{display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px; vertical-align:0}
.ward-table thead th{cursor:default}
.ward-table tbody tr{cursor:pointer}
.ward-table tbody tr:hover{background:var(--soft)}
.ward-table tbody tr.on{background:rgba(109,40,217,.10)}
.ward-table td{font-variant-numeric:tabular-nums}
.ward-table td.wt-lead{font-weight:700; background:rgba(109,40,217,.12); color:var(--deep)}
.wt-ward{font:inherit; font-weight:600; color:var(--highlight); background:none; border:0; padding:0;
  cursor:pointer; text-align:left; min-height:24px}
.wt-ward:focus-visible{outline:2px solid var(--highlight); outline-offset:2px}
@media (max-width:560px){
  .masthead-search{max-width:none}
  /* table.data: `.ward-table th` alone loses to table.data's own 13px padding */
  table.data.ward-table th,table.data.ward-table td{padding:8px 5px; font-size:12.5px}
  table.data.ward-table th:first-child{padding-left:8px}
}

/* drops.html "Early and mail ballots received" and "Ballots counted" (js/received.js). */
.recv-head{font-size:17px; margin:8px 0 2px; color:var(--ink)}
.recv-head b{color:var(--highlight); font-size:20px; letter-spacing:-.01em}
.recv-type{margin:10px 0 0}
.recv-type .seg-btn:disabled{cursor:not-allowed; opacity:.5}
.recv-type .seg-btn:disabled:hover{color:var(--subink)}
@media (max-width:560px){ .recv-type .seg-btn{min-height:44px} }
.recv-chart{margin:12px 0 6px; max-width:640px}
.recv-svg{display:block; width:100%; height:auto; overflow:visible}
.recv-svg:focus{outline:none}
.recv-svg:focus-visible{outline:2px solid var(--highlight); outline-offset:2px}
.recv-dot{stroke:var(--bg); stroke-width:1}
.recv-pt-on{display:none; fill:none; stroke:var(--ink); stroke-width:1.5; pointer-events:none}
.recv-pt-on.on{display:inline}
.recv-grid{stroke:var(--grid); stroke-width:1}
.recv-ed{stroke:var(--subink); stroke-width:1; stroke-dasharray:2 3}
.recv-tick{font-size:13px; fill:var(--subink); font-variant-numeric:tabular-nums}
.recv-legend{display:flex; flex-wrap:wrap; gap:4px 14px; list-style:none; padding:0; margin:4px 0 0;
  font-size:12.5px; color:var(--subink)}
.recv-legend li{display:flex; align-items:center; gap:6px}
.recv-swatch{display:inline-block; width:18px; border-top:3px solid; height:0}
.recv-swatch-dash{border-top-style:dashed}
.recv-table-wrap{max-width:520px; overflow-x:auto; margin:6px 0 8px}
.recv-table th,.recv-table td{padding:6px 10px}
.recv-th-sub{display:block; font-size:11px; font-weight:400; color:var(--subink)}
.recv-latest-on{font-size:11px; font-weight:400; color:var(--subink); white-space:nowrap}
/* With the Latest column the table has five columns: fit a phone without scrolling, or the
   wrapper becomes a keyboard stop and 2024 is cut off. Only a table that has that column. */
@media (max-width:520px){
  .recv-table:has(.recv-latest-on) th,.recv-table:has(.recv-latest-on) td{padding:8px 3px; font-size:12px}
  .recv-table:has(.recv-latest-on) td:first-child{white-space:normal}
  .recv-latest-on{font-size:10px}
}
.recv-total td{font-weight:700; border-top:1px solid var(--line)}
.recv-row-on td{background:var(--soft); font-weight:600}
.recv-why{margin:8px 0 0}
.recv-note{margin-top:4px}
/* drops.html on a wide screen: received and counted side by side, so each chart
   fills its half and the race sections start ~480px sooner (floats: a wrapper would
   break the ~ and > rules here and in the phone order below). Counted hidden: no float. */
@media (min-width:1000px){
  .drops-main:has(#countedSection:not([hidden])) > #receivedSection{float:left; width:calc(50% - 18px)}
  .drops-main:has(#countedSection:not([hidden])) > #countedSection{float:right; width:calc(50% - 18px);
    margin-top:8px; border-top:0; padding-top:0}
  .drops-main > #dropsIntro{clear:both}
}
/* drops.html on a phone: the candidate figures open the page, then the two charts (task
   45cfede4; desktop keeps the markup's order). Only while there are figures to show: with a
   drop pair hidden or no drops, the received chart is still the first thing on the page. */
@media (max-width:560px){
  .drops-main:has(#deltaSection:not([hidden])){display:flex; flex-direction:column}
  .drops-main:has(#deltaSection:not([hidden])) > #dropsIntro{order:-3; margin-top:8px; border-top:0; padding-top:0}
  .drops-main:has(#deltaSection:not([hidden])) > #deltaSection{order:-2}
  .drops-main:has(#deltaSection:not([hidden])) > #shareSection{order:-1}
  .drops-main:has(#deltaSection:not([hidden])) > .analysis-section.recv-section{margin-top:34px;
    border-top:1px solid var(--line); padding-top:26px}
}

/* drops.html early ballots by vote center (js/early-centers.js). */
.ec-table-wrap{max-width:760px; margin:10px 0 8px}
.ec-table td{font-variant-numeric:tabular-nums}
/* Not sticky: this wrap does not scroll, so the head would stick to the
   viewport and slide under the sticky controls bar. */
table.data.ec-table thead th{position:static}
table.data.ec-table td.ec-name{white-space:normal}
.ec-count{display:flex; align-items:center; gap:8px}
.ec-track{flex:1; min-width:36px; height:10px; background:var(--soft)}
.ec-track i{display:block; height:100%; background:var(--highlight)}
.ec-n{min-width:3.2em; text-align:right}
.ec-absent{color:var(--subink); font-size:12px}
.ec-group th{padding-top:14px; text-align:left; font-size:12px; color:var(--subink); font-weight:600}
@media (max-width:560px){
  table.data.ec-table th,table.data.ec-table td{padding:7px 5px; font-size:12.5px}
  table.data.ec-table td{white-space:normal}
  .ec-absent{font-size:11px; line-height:1.2; display:inline-block}
  /* Bar under the number: the width goes to the center names. */
  .ec-count{flex-direction:column-reverse; align-items:stretch; gap:3px}
  .ec-track{flex:none; height:6px; min-width:30px}
  .ec-n{min-width:0}
  /* "presidential" is the widest word in the head: shrink it, not the names. */
  .ec-table .recv-th-sub{font-size:9.5px}
}

/* drops.html Election Day ballots by vote center (js/ed-centers.js): the .ec-*
   table with a Ward and a Change column. */
.ed-table th:nth-child(2),.ed-table td:nth-child(2){text-align:center}
table.data.ed-table td:nth-child(5){white-space:nowrap}

/* Share (js/share.js) and Download CSV (js/csv.js). Tap-sized, like .seg-btn
   on a phone. The Share note wraps under the button: a long fallback link
   must not widen the page. */
.tool-btn{font:inherit; font-size:13px; font-weight:600; color:var(--ink); background:#fff;
  border:1px solid var(--line); border-radius:9px; padding:0 12px; min-height:44px; cursor:pointer}
.tool-btn:hover{border-color:var(--highlight)}
.tool-btn:focus-visible{outline:2px solid var(--accent); outline-offset:1px}
.share-tool{display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-width:0}
.share-note{overflow-wrap:anywhere; min-width:0}
.share-note:empty{display:none}
.table-head .csv-btn{margin-left:auto}
/* A link pinned to named drops, or naming one that is gone (Share.pairNote). */
.link-note{margin:14px 0 0; padding:10px 12px; font-size:14px; font-weight:600; color:#92400E;
  background:#FEF3C7; border-radius:9px}
/* Under drops.html's phone reorder (the figures first) the note stays with the
   filters it qualifies, ahead of the intro and the numbers. Inert without that rule. */
@media (max-width:560px){
  .drops-main:has(#deltaSection:not([hidden])) > #dropLinkNote{order:-4; margin-top:8px}
}

/* Questionnaire links beside an endorsement (task 49bd0c21) */
.q-link{font-size:12px; white-space:nowrap}
.q-cycle{margin-top:4px}

/* ===== drops page: votes gained by precinct (js/drops-precinct.js, task
   9b0bf44a). The table scrolls inside its own box, both ways, so a map click
   that marks a row never moves the page and a wide race never widens it. ===== */
.pd-wrap{position:relative; max-height:30rem; overflow:auto; max-width:100%}
.pd-wrap[hidden]{display:none}
#precinctDropNote{margin-top:8px}
table.data.pd-table{width:auto; min-width:100%; font-size:13px; font-variant-numeric:tabular-nums}
table.data.pd-table th,table.data.pd-table td{padding:7px 10px}
table.data.pd-table thead th{z-index:2; white-space:normal; min-width:4.5em; vertical-align:bottom}
table.data.pd-table thead th:first-child{left:0; z-index:3}
table.data.pd-table tbody th{position:sticky; left:0; z-index:1; background:#fff; text-align:left; font-weight:600}
table.data.pd-table tbody tr[data-precinct]{cursor:pointer}
table.data.pd-table tbody tr[data-precinct]:hover{background:var(--soft)}
table.data.pd-table tr.pd-total,table.data.pd-table tr.pd-total th{background:var(--soft); font-weight:700}
table.data.pd-table tr.active,table.data.pd-table tr.active th{background:#EDE4FB}
table.data.pd-table td.pd-net{font-weight:600}
@media (max-width:640px){
  table.data.pd-table th,table.data.pd-table td{padding:6px 6px; font-size:12px}
}
