/* =====================================================================
   COYNTOSS 2.0 publication templates: the front page, research, articles,
   projects and case studies, About, and the Polling and Elections overviews.
   Markup comes from scripts/publication.py. Tokens (--cx-*) come from the
   2.0 layer at the end of theme.css, so both themes are handled there and
   this file never names a color directly.

   Class prefixes: pub- shared, fp- front page, ri- research index,
   ar- article, pj- projects, cs- case study, ab- about, ph- polling
   overview, eh- elections overview, kind- the labeled kinds of number.
   Presentation only: nothing here creates a number or a label.
   ===================================================================== */

/* ------------------------------------------------------------ Shared frame */
.page-pub .hub { padding-bottom: 0; }
.pub-shell { width: min(var(--cx-shell), calc(100% - 2 * var(--cx-gutter))); margin: 0 auto; }
.page-pub main a { color: inherit; }
.page-pub main :is(p, li, dd) a:not([class]) {
  color: var(--cx-ink); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--cx-ink) 35%, transparent); text-underline-offset: 3px;
}
.page-pub main :is(p, li, dd) a:not([class]):hover { text-decoration-color: currentColor; }

.pub-label {
  margin: 0; color: var(--cx-ink); font: 650 12px/1.3 var(--cx-sans); letter-spacing: .09em; text-transform: uppercase;
}
.pub-kicker { margin: 0 0 14px; color: var(--cx-muted); font: 600 12.5px/1.3 var(--cx-sans); letter-spacing: .06em; text-transform: uppercase; }
.pub-kicker a { color: var(--cx-ink) !important; text-decoration: none !important; }
.pub-kicker a:hover { text-decoration: underline !important; }
.pub-byline { margin: 0; color: var(--cx-muted); font: 400 13.5px/1.5 var(--cx-sans); }
.pub-caption, .pub-figcap + .pub-caption { margin: 8px 0 0; color: var(--cx-muted); font: 400 12.5px/1.5 var(--cx-sans); }
.pub-figcap { display: block; margin: 0 0 10px; color: var(--cx-ink); font: 600 14.5px/1.4 var(--cx-sans); }
.pub-prov { margin: 14px 0 0; color: var(--cx-muted); font: 400 12.5px/1.6 var(--cx-sans); }
.pub-id { font: 500 .92em/1 var(--cx-mono); letter-spacing: 0; color: var(--cx-ink-soft); white-space: nowrap; }
.pub-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--cx-ink) !important; text-decoration: none !important;
  font: 600 13.5px/1.2 var(--cx-sans); white-space: nowrap;
}
.pub-more:hover span[aria-hidden], .pub-links a:hover span[aria-hidden], .fp-lead__read a:hover span[aria-hidden] { transform: translateX(2px); }
.pub-more span[aria-hidden], .pub-links span[aria-hidden], .fp-lead__read span[aria-hidden] { display: inline-block; transition: transform .15s ease; }
.pub-links { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 0; padding: 0; list-style: none; }
.pub-links a { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; color: var(--cx-ink) !important; text-decoration: none !important; font: 600 14px/1.3 var(--cx-sans); }
.pub-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--cx-ink); background: var(--cx-ink); color: var(--cx-paper) !important;
  text-decoration: none !important; font: 600 14px/1 var(--cx-sans);
}
.pub-button:hover { background: transparent; color: var(--cx-ink) !important; }
.pub-badge {
  display: inline-block; margin-left: 4px; padding: 2px 7px; border: 1px solid var(--cx-approve); color: var(--cx-approve);
  font: 650 10.5px/1.35 var(--cx-sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap;
}

/* Section heads: a heavy ink rule, a small label, an optional serif title and a link out. */
.pub-sec__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  margin: 0 0 22px; padding-top: 12px; border-top: 2px solid var(--cx-ink);
}
.pub-sec__head > div { flex: 1 1 260px; min-width: 0; }
.pub-sec__title { margin: 8px 0 0; color: var(--cx-ink); font: 600 clamp(24px, 2.6vw, 32px)/1.12 var(--cx-serif); letter-spacing: -.012em; font-variation-settings: "opsz" 48; }
.pub-sec__dek { max-width: 70ch; margin: 8px 0 0; color: var(--cx-ink-soft); font: 400 15px/1.55 var(--cx-sans); }

/* Page heads for section pages. */
.pub-head { padding: clamp(36px, 5vw, 64px) 0 clamp(26px, 3.5vw, 40px); border-bottom: 1px solid var(--cx-rule); }
.pub-head__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.pub-head__grid:has(.pub-head__aside) { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); }
.pub-head__title {
  max-width: 20ch; margin: 0; color: var(--cx-ink);
  font: 600 clamp(36px, 5.2vw, 62px)/1.02 var(--cx-serif); letter-spacing: -.022em; font-variation-settings: "opsz" 60;
}
.pub-head__dek { max-width: 64ch; margin: 18px 0 0; color: var(--cx-ink-soft); font: 400 clamp(17px, 1.6vw, 19px)/1.55 var(--cx-serif); }
.pub-head__meta { margin: 16px 0 0; color: var(--cx-muted); font: 400 13px/1.5 var(--cx-sans); }

/* Tables. */
.pub-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pub-table { width: 100%; border-collapse: collapse; color: var(--cx-ink); font: 400 14px/1.45 var(--cx-sans); font-variant-numeric: tabular-nums; }
.pub-table thead th {
  padding: 0 12px 8px 0; border-bottom: 1px solid var(--cx-ink); color: var(--cx-muted); text-align: left; vertical-align: bottom;
  font: 600 11.5px/1.3 var(--cx-sans); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.pub-table tbody :is(th, td) { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--cx-rule); text-align: left; vertical-align: top; }
.pub-table tbody th { font-weight: 600; }
.pub-table .num { text-align: right; white-space: nowrap; }
.pub-table :is(th, td):last-child { padding-right: 0; }
.pub-table a { color: var(--cx-ink) !important; text-decoration: none !important; }
.pub-table tbody a:hover { text-decoration: underline !important; }

/* Figures, equations, callouts and quotes. */
.pub-figure { margin: 32px 0; }
.pub-figkey { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin: 0 0 8px; }
.pub-figkey .hub-series-key { margin: 0; }
.pub-figkey__k { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.pub-eq { margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--cx-rule); border-bottom: 1px solid var(--cx-rule); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; }
.pub-eq > .pub-label, .pub-eq > figcaption, .pub-eq > .pub-caption { grid-column: 1 / -1; }
.pub-eq math { font-size: 1.12em; color: var(--cx-ink); overflow-x: auto; max-width: 100%; }
.pub-eq__n { color: var(--cx-muted); font: 400 14px/1 var(--cx-sans); }
.pub-callout { margin: 32px 0; padding: 18px 20px 4px; border-left: 3px solid var(--cx-ink); background: var(--cx-paper-2); }
.pub-callout--limits { border-left-color: var(--cx-flag); }
.pub-callout h2 { margin: 0 0 10px !important; font: 650 12px/1.3 var(--cx-sans) !important; letter-spacing: .09em !important; text-transform: uppercase; color: var(--cx-ink) !important; }
.pub-callout p { font-size: 16px !important; }
.pub-quote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--cx-rule-strong); }
.pub-quote blockquote { margin: 0; }
.pub-quote figcaption { color: var(--cx-muted); font: 400 13px/1.4 var(--cx-sans); }

/* ------------------------------------------------------------ Kinds of number
   Every kind has a glyph as well as a word, so the distinction never rests on color. */
.kind {
  display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; vertical-align: 1px;
  color: var(--cx-muted); font: 600 10.5px/1.4 var(--cx-sans); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.kind::before { content: ""; flex: none; width: 8px; height: 8px; box-sizing: border-box; }
.kind--poll::before { border: 1.5px solid currentColor; border-radius: 50%; }
.kind--average::before { height: 2.5px; width: 12px; background: currentColor; }
.kind--estimate::before { height: 2.5px; width: 12px; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px); }
.kind--forecast::before { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.kind--result::before { background: currentColor; }
.kind--market::before { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-bottom: 8px solid currentColor; }
.pub-kinds { display: grid; gap: 10px; margin: 16px 0; }
.pub-kinds > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; }
.pub-kinds dt { margin: 0; }
.pub-kinds dd { margin: 0; color: var(--cx-ink-soft); font: 400 13.5px/1.5 var(--cx-sans); }
.pub-kinds--inline { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }
.pub-kinds--inline > div { grid-template-columns: 1fr; gap: 3px; }

.pub-status {
  display: inline-block; padding: 2px 7px; border: 1px solid currentColor; color: var(--cx-muted);
  font: 650 10.5px/1.35 var(--cx-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: 1px;
}
.pub-status--live { color: var(--cx-approve); }
.pub-status--production-archived { color: var(--cx-ink-soft); }
.pub-status--beta-archived { color: var(--cx-flag); border-style: dashed; }
.pub-status--research { color: var(--cx-flag); border-style: dotted; }
.pub-status--infrastructure { color: var(--cx-muted); }

/* Sparklines: orientation only, drawn in the series' data color. */
.spark { display: block; width: 100%; height: 44px; margin: 8px 0 0; overflow: visible; }
.spark polyline { fill: none; stroke: var(--cx-ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--cx-ink); }
.spark__zero { stroke: var(--cx-rule-strong); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.spark--net polyline { stroke: var(--cx-disapprove); } .spark--net circle { fill: var(--cx-disapprove); }
.spark--d polyline { stroke: var(--cx-dem); } .spark--d circle { fill: var(--cx-dem); }
.spark--r polyline { stroke: var(--cx-rep); } .spark--r circle { fill: var(--cx-rep); }

/* ------------------------------------------------------------ Front page */
.fp-front { padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--cx-rule); }
.fp-front__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.fp-lead { min-width: 0; }
.fp-lead__title { max-width: 22ch; margin: 0; font: 600 clamp(34px, 4.6vw, 56px)/1.04 var(--cx-serif); letter-spacing: -.022em; font-variation-settings: "opsz" 60; }
.fp-lead__title a { color: var(--cx-ink) !important; text-decoration: none !important; }
.fp-lead__title a:hover { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px; }
.fp-lead__dek { max-width: 60ch; margin: 18px 0 14px; color: var(--cx-ink-soft); font: 400 clamp(17px, 1.6vw, 19.5px)/1.55 var(--cx-serif); }
.fp-lead__fig { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--cx-rule); }
.fp-lead__fig .hub-chart { max-height: 380px; }
.fp-lead__read { margin: 18px 0 0; }
.fp-lead__read a { color: var(--cx-ink) !important; text-decoration: none !important; font: 600 15px/1.3 var(--cx-sans); }

.fp-rail { position: relative; padding-left: clamp(0px, 2.5vw, 32px); border-left: 1px solid var(--cx-rule); }
.fp-rail > .pub-label { padding-bottom: 10px; border-bottom: 2px solid var(--cx-ink); }
.fp-rail__list { margin: 0; padding: 0; list-style: none; }
.fp-stat { padding: 14px 0 12px; border-bottom: 1px solid var(--cx-rule); }
.fp-stat__link { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; color: var(--cx-ink) !important; text-decoration: none !important; }
.fp-stat__k { grid-column: 1 / -1; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.fp-stat__name { color: var(--cx-ink); font: 600 14.5px/1.3 var(--cx-sans); }
.fp-stat__link:hover .fp-stat__name { text-decoration: underline; text-underline-offset: 3px; }
.fp-stat__v { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.fp-stat__v b { font: 600 30px/1.05 var(--cx-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fp-stat__v small { color: var(--cx-muted); font: 500 13px/1 var(--cx-sans); }
.fp-stat__d { grid-column: 1 / -1; color: var(--cx-ink-soft); font: 400 13px/1.45 var(--cx-sans); }
.fp-stat .spark { grid-column: 1 / -1; height: 34px; }
.fp-stat__x { margin: 6px 0 0; color: var(--cx-ink-soft); font: 400 12.5px/1.45 var(--cx-sans); }
.fp-stat__f { margin: 6px 0 0; color: var(--cx-muted); font: 400 11.5px/1.45 var(--cx-sans); }
.fp-rail__note { margin: 12px 0 8px; color: var(--cx-muted); font: 400 11.5px/1.5 var(--cx-sans); }

.fp-intro { padding: 28px 0; border-bottom: 1px solid var(--cx-rule); background: var(--cx-paper-2); }
.fp-intro__grid { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.fp-intro__lede { flex: 1 1 560px; max-width: 78ch; margin: 0; color: var(--cx-ink-soft); font: 400 17px/1.55 var(--cx-serif); }
.fp-intro__lede strong { color: var(--cx-ink); font-weight: 650; letter-spacing: .04em; }
.fp-intro__links, .fp-about__links { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 0; }
.fp-intro__links a, .fp-about__links a { color: var(--cx-ink) !important; text-decoration: none !important; font: 600 14px/1.3 var(--cx-sans); white-space: nowrap; }

.fp-show { padding: clamp(40px, 5vw, 64px) 0; }
.fp-show__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.fp-show__fig { margin: 0; min-width: 0; }
.fp-show__fig .hub-series-key { margin-bottom: 8px; }
.fp-facts { margin: 0; display: grid; }
.fp-fact { padding: 11px 0; border-bottom: 1px solid var(--cx-rule); }
.fp-fact:first-child { border-top: 1px solid var(--cx-ink); }
.fp-fact dt { color: var(--cx-muted); font: 500 12px/1.3 var(--cx-sans); }
.fp-fact dd { margin: 3px 0 0; color: var(--cx-ink); font: 600 22px/1.2 var(--cx-sans); font-variant-numeric: tabular-nums; }
.fp-fact dd small { color: var(--cx-muted); font: 500 13px/1 var(--cx-sans); }
.fp-fact:last-child dd { font: 400 14px/1.45 var(--cx-sans); }

.fp-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); padding: 8px 0 clamp(40px, 5vw, 64px); }
.fp-cols > section { min-width: 0; }
.pm-table tbody :is(th, td) { padding: 10px 10px 10px 0; }
.pm-date { width: 64px; color: var(--cx-muted); font-size: 13px; white-space: nowrap; }
.pm-poll { font-weight: 400 !important; }
.pm-topic { display: block; color: var(--cx-muted); font: 600 11px/1.3 var(--cx-sans); letter-spacing: .05em; text-transform: uppercase; }
.pm-poll a { font-weight: 600; }
.pm-meta { display: block; color: var(--cx-muted); font-size: 12.5px; }
.pm-spread { font-weight: 600; }
.pm-spread .hub-d, .pm-spread .hub-r { font-weight: 650; }

.fp-projects { padding: clamp(40px, 5vw, 64px) 0; background: var(--cx-paper-2); border-top: 1px solid var(--cx-rule); border-bottom: 1px solid var(--cx-rule); }
.fp-about { padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.fp-about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fp-about__text { max-width: 60ch; margin: 0 0 20px; color: var(--cx-ink-soft); font: 400 18px/1.6 var(--cx-serif); }
.fp-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 0; padding: 0; list-style: none; }
.fp-principles li { padding-top: 12px; border-top: 1px solid var(--cx-rule-strong); }
.fp-principles h3 { margin: 0 0 6px; color: var(--cx-ink); font: 600 16px/1.3 var(--cx-serif); }
.fp-principles p { margin: 0; color: var(--cx-ink-soft); font: 400 13.5px/1.5 var(--cx-sans); }

/* ------------------------------------------------------------ Research lists */
.ri-list { margin: 0; padding: 0; list-style: none; counter-reset: ri; }
.ri-row { padding: 18px 0 20px; border-bottom: 1px solid var(--cx-rule); }
.ri-row:first-child { padding-top: 4px; }
.ri-row[hidden] { display: none; }
.ri-row__meta { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin: 0 0 6px; color: var(--cx-muted); font: 500 12.5px/1.4 var(--cx-sans); }
.ri-row__type { color: var(--cx-ink-soft); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }
.ri-row__title { margin: 0; max-width: 34em; text-wrap: balance; font: 600 clamp(20px, 2vw, 24px)/1.22 var(--cx-serif); letter-spacing: -.008em; }
.ri-row__title a { color: var(--cx-ink) !important; text-decoration: none !important; }
.ri-row__title a:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.ri-row__dek { max-width: 72ch; margin: 6px 0 0; color: var(--cx-ink-soft); font: 400 15px/1.55 var(--cx-sans); }
.ri-list--compact .ri-row { padding: 14px 0 16px; }
.ri-list--compact .ri-row:first-child { padding-top: 0; }
.ri-list--compact .ri-row__title { font-size: 19px; }
.ri-list--compact .ri-row__dek { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ri-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 0 clamp(28px, 5vw, 72px); padding: 28px 0 64px; }
.ri-tools { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 2px solid var(--cx-ink); }
.ri-tools[hidden] { display: none; }
.ri-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ri-filter {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--cx-rule-strong); background: transparent; color: var(--cx-ink-soft);
  font: 500 13px/1 var(--cx-sans); cursor: pointer;
}
.ri-filter span { color: var(--cx-muted); margin-left: 3px; font-variant-numeric: tabular-nums; }
.ri-filter:hover { border-color: var(--cx-ink); color: var(--cx-ink); }
.ri-filter[aria-pressed="true"] { background: var(--cx-ink); border-color: var(--cx-ink); color: var(--cx-paper); }
.ri-filter[aria-pressed="true"] span { color: inherit; opacity: .7; }
.ri-searchbox input {
  width: min(320px, 100%); min-height: 38px; padding: 0 12px; border: 1px solid var(--cx-rule-strong); border-radius: 0;
  background: var(--cx-paper); color: var(--cx-ink); font: 400 14px/1 var(--cx-sans);
}
.ri-searchbox input:focus { border-color: var(--cx-ink); outline: none; }
.ri-wrap > .ri-list { grid-column: 1; }
.ri-empty { grid-column: 1; color: var(--cx-muted); font: 400 15px/1.5 var(--cx-sans); }
.ri-colophon { grid-column: 2; grid-row: 2 / span 3; align-self: start; padding-top: 12px; border-top: 1px solid var(--cx-ink); }
.ri-colophon p { margin: 10px 0 0; color: var(--cx-ink-soft); font: 400 13.5px/1.55 var(--cx-sans); }

/* ------------------------------------------------------------ Article */
.ar-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--cx-rule); }
.ar-head__inner { max-width: min(var(--cx-shell), calc(100% - 2 * var(--cx-gutter))); }
.ar-title { max-width: 24ch; margin: 0; color: var(--cx-ink); font: 600 clamp(34px, 4.8vw, 58px)/1.04 var(--cx-serif); letter-spacing: -.022em; font-variation-settings: "opsz" 60; }
.ar-dek { max-width: 62ch; margin: 18px 0 18px; color: var(--cx-ink-soft); font: 400 clamp(18px, 1.7vw, 21px)/1.5 var(--cx-serif); }
.ar-grid { display: grid; grid-template-columns: minmax(0, var(--cx-measure)) minmax(220px, 300px); justify-content: space-between; gap: clamp(28px, 6vw, 96px); padding: 36px 0 24px; }
.ar-body { min-width: 0; color: var(--cx-ink); font: 400 18.5px/1.68 var(--cx-serif); font-variation-settings: "opsz" 16; }
.ar-body > p { margin: 0 0 1.15em; }
.ar-body > h2 { margin: 1.9em 0 .6em; color: var(--cx-ink); font: 650 25px/1.2 var(--cx-serif); letter-spacing: -.01em; scroll-margin-top: 84px; }
.ar-body > h3 { margin: 1.6em 0 .5em; color: var(--cx-ink); font: 650 20px/1.25 var(--cx-serif); scroll-margin-top: 84px; }
.ar-body > :is(ul, ol) { margin: 0 0 1.15em; padding-left: 1.25em; }
.ar-body > :is(ul, ol) li { margin: 0 0 .4em; }
.ar-body .pub-figure { margin: 2em 0; }
.ar-body .pub-table { font-size: 14px; }
.ar-verify { margin: 0 0 28px !important; padding: 12px 14px; border: 1px solid var(--cx-rule); background: var(--cx-paper-2); color: var(--cx-ink-soft); font: 400 13.5px/1.55 var(--cx-sans); }
.ar-verify .pub-badge { margin: 0 6px 0 0; }
.ar-body code, .ar-side code, .ar-verify code { font: 400 .86em/1.4 var(--cx-mono); padding: 1px 4px; background: var(--cx-paper-3); color: var(--cx-ink); overflow-wrap: anywhere; }
.ar-side { align-self: start; position: sticky; top: 84px; display: grid; gap: 26px; font: 400 13.5px/1.5 var(--cx-sans); }
.ar-side section { padding-top: 10px; border-top: 1px solid var(--cx-ink); }
.ar-side ul, .ar-side ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ar-side li { color: var(--cx-muted); }
.ar-side p { margin: 10px 0 0; color: var(--cx-ink-soft); }
.ar-toc ol { counter-reset: toc; }
.ar-toc li { counter-increment: toc; display: grid; grid-template-columns: 22px 1fr; }
.ar-toc li::before { content: counter(toc); color: var(--cx-muted); font-variant-numeric: tabular-nums; }
.ar-toc a { color: var(--cx-ink) !important; text-decoration: none !important; }
.ar-toc a:hover { text-decoration: underline !important; }
.ar-foot { display: grid; grid-template-columns: minmax(0, var(--cx-measure)) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); padding: 12px 0 64px; }
.ar-cite { padding-top: 12px; border-top: 1px solid var(--cx-ink); }
.ar-cite__text { margin: 10px 0 0; padding: 12px 14px; background: var(--cx-paper-2); color: var(--cx-ink-soft); font: 400 13.5px/1.55 var(--cx-mono); overflow-wrap: anywhere; }
.ar-more .pub-sec__head { margin-bottom: 14px; }

/* ------------------------------------------------------------ Projects */
.pj-list { margin: 0; padding: 0; list-style: none; }
.pj-row { display: flex; gap: 18px; padding: 18px 0 20px; border-bottom: 1px solid var(--cx-rule); }
.pj-row__n { flex: none; width: 30px; padding-top: 4px; color: var(--cx-muted); font: 500 13px/1 var(--cx-mono); }
.pj-row__body { min-width: 0; }
.pj-row__meta { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin: 0 0 8px; color: var(--cx-muted); font: 500 12.5px/1.3 var(--cx-sans); }
.pj-row__title { margin: 0; font: 600 21px/1.22 var(--cx-serif); letter-spacing: -.006em; }
.pj-row__title a { color: var(--cx-ink) !important; text-decoration: none !important; }
.pj-row__title a:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.pj-row__dek { max-width: 68ch; margin: 6px 0 0; color: var(--cx-ink-soft); font: 400 14.5px/1.55 var(--cx-sans); }
.pj-list--grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.pj-list--grid .pj-row { flex-direction: column; gap: 10px; border-bottom: 0; border-top: 1px solid var(--cx-rule-strong); padding: 16px 0 26px; }
.pj-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(28px, 5vw, 72px); padding: 36px 0 64px; }
.pj-group + .pj-group { margin-top: 40px; }
.pj-group .pub-sec__head { margin-bottom: 6px; }
.pj-side { align-self: start; padding-top: 12px; border-top: 1px solid var(--cx-ink); }
.pj-side p { margin: 16px 0 0; color: var(--cx-ink-soft); font: 400 13.5px/1.55 var(--cx-sans); }
.pj-legend { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.pj-legend li { display: grid; gap: 4px; justify-items: start; color: var(--cx-ink-soft); font: 400 13px/1.5 var(--cx-sans); }

/* Case study */
.cs-head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--cx-rule); }
.cs-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(28px, 5vw, 72px); align-items: end; }
.cs-title { max-width: 20ch; margin: 0; color: var(--cx-ink); font: 600 clamp(34px, 4.8vw, 56px)/1.04 var(--cx-serif); letter-spacing: -.022em; font-variation-settings: "opsz" 60; }
.cs-dek { max-width: 60ch; margin: 18px 0 0; color: var(--cx-ink-soft); font: 400 clamp(17px, 1.6vw, 19.5px)/1.55 var(--cx-serif); }
.cs-cta { margin: 24px 0 0; }
.cs-facts { margin: 0; border-top: 2px solid var(--cx-ink); }
.cs-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--cx-rule); }
.cs-facts dt { color: var(--cx-muted); font: 500 12.5px/1.45 var(--cx-sans); }
.cs-facts dd { margin: 0; color: var(--cx-ink); font: 500 14px/1.45 var(--cx-sans); font-variant-numeric: tabular-nums; }
.cs-grid { display: grid; grid-template-columns: minmax(0, var(--cx-measure)) minmax(220px, 300px); justify-content: space-between; gap: clamp(28px, 6vw, 96px); padding: 36px 0 64px; }
.cs-body { min-width: 0; color: var(--cx-ink); font: 400 17.5px/1.66 var(--cx-serif); }
.cs-sec + .cs-sec { margin-top: 36px; }
.cs-sec h2 { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--cx-ink); color: var(--cx-ink); font: 650 23px/1.2 var(--cx-serif); letter-spacing: -.01em; }
.cs-sec h3 { margin: 24px 0 10px; color: var(--cx-ink); font: 650 18px/1.3 var(--cx-serif); }
.cs-sec p { margin: 0 0 1em; }
.cs-sec ul { margin: 0 0 1em; padding-left: 1.2em; }
.cs-sec li { margin: 0 0 .45em; }
.cs-role p { font-size: 18.5px; }
.cs-note { color: var(--cx-muted); font: 400 13.5px/1.5 var(--cx-sans) !important; }
.cs-results .pub-table td { font-weight: 500; }

/* Senate 2.0 research: sprint log and matched scorecard. */
.s2-fig { margin: 20px 0 0; }
.s2-fig .pub-caption { margin: 10px 0 0; }
.s2-fig figcaption.pub-caption { margin: 0 0 12px; }
.s2-log th[scope="row"] { width: 4.5em; font: 650 15px/1.3 var(--cx-sans); }
.s2-log td:last-child { width: 4.5em; }
.s2-date, .s2-name, .s2-q, .s2-tested, .s2-dec { display: block; }
.s2-date { margin-top: 3px; color: var(--cx-muted); font: 400 12px/1.4 var(--cx-sans); white-space: nowrap; }
.s2-q { color: var(--cx-ink); font: 600 15px/1.35 var(--cx-sans); }
.s2-tested { margin-top: 4px; color: var(--cx-muted); font-size: 12.5px; line-height: 1.5; }
.s2-dec { margin-top: 6px; color: var(--cx-ink-soft); font: 400 14px/1.5 var(--cx-sans); }
.s2-name { margin-top: 3px; color: var(--cx-muted); font: 400 12.5px/1.4 var(--cx-sans); }
.s2-role { color: var(--cx-ink); font-weight: 600; }
.s2-card { min-width: 560px; font-size: 13.5px; }
.s2-card :is(th, td).num { padding-left: 10px; }
.s2-row--base td.num { font-weight: 700; }
.cs-results__src { white-space: nowrap; text-align: right !important; font-size: 13px; }
.cs-limits { padding: 0 0 4px; }
.cs-limits h2 { border-top-color: var(--cx-flag); }
.cs-side { align-self: start; position: sticky; top: 84px; display: grid; gap: 26px; font: 400 13.5px/1.5 var(--cx-sans); }
.cs-side section { padding-top: 10px; border-top: 1px solid var(--cx-ink); }
.cs-links, .cs-other { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.cs-links li { display: grid; gap: 1px; }
.cs-links__k { color: var(--cx-muted); font: 600 10.5px/1.3 var(--cx-sans); letter-spacing: .07em; text-transform: uppercase; }
.cs-links a, .cs-other a { color: var(--cx-ink) !important; font-weight: 500; text-decoration: none !important; }
.cs-links a:hover, .cs-other a:hover { text-decoration: underline !important; }

/* ------------------------------------------------------------ About */
.ab-grid { display: grid; grid-template-columns: minmax(0, var(--cx-measure)) minmax(260px, 340px); justify-content: space-between; gap: clamp(28px, 6vw, 96px); padding: 36px 0 64px; }
.ab-main { min-width: 0; color: var(--cx-ink); font: 400 17.5px/1.66 var(--cx-serif); }
.ab-sec + .ab-sec { margin-top: 44px; }
.ab-sec > h2 { margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--cx-ink); font: 650 24px/1.2 var(--cx-serif); letter-spacing: -.01em; color: var(--cx-ink); scroll-margin-top: 84px; }
.ab-sec > p { margin: 0 0 1em; }
.ab-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0 0; border-top: 1px solid var(--cx-rule); border-bottom: 1px solid var(--cx-rule); }
.ab-counts > div { padding: 14px 14px 14px 0; }
.ab-counts > div + div { padding-left: 14px; border-left: 1px solid var(--cx-rule); }
.ab-counts dt { color: var(--cx-muted); font: 400 12.5px/1.35 var(--cx-sans); }
.ab-counts dd { margin: 0 0 4px; color: var(--cx-ink); font: 600 28px/1 var(--cx-sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ab-counts > div { display: flex; flex-direction: column; }
.ab-counts dd { order: -1; }
.ab-caps, .ab-standards { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.ab-cap, .ab-standards li { padding: 16px 0; border-bottom: 1px solid var(--cx-rule); }
.ab-cap:first-child, .ab-standards li:first-child { border-top: 1px solid var(--cx-rule); }
.ab-cap h3, .ab-standards h3 { margin: 0 0 6px; color: var(--cx-ink); font: 650 18px/1.3 var(--cx-serif); }
.ab-cap p, .ab-standards p { margin: 0; color: var(--cx-ink-soft); font: 400 15px/1.55 var(--cx-sans); }
.ab-cap__ev { margin-top: 8px !important; font-size: 13.5px !important; color: var(--cx-muted) !important; }
.ab-cap__ev a { font-weight: 600; }
.ab-side { align-self: start; display: grid; gap: 22px; }
.ab-card { padding: 14px 0 0; border-top: 2px solid var(--cx-ink); font: 400 13.5px/1.55 var(--cx-sans); color: var(--cx-ink-soft); }
.ab-card p { margin: 12px 0 0; }
.ab-contact { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.ab-contact li { display: grid; gap: 2px; }
.ab-contact__k { color: var(--cx-muted); font: 600 10.5px/1.3 var(--cx-sans); letter-spacing: .07em; text-transform: uppercase; }
.ab-contact a { color: var(--cx-ink) !important; font: 600 17px/1.3 var(--cx-sans); text-decoration: none !important; }
.ab-contact a:hover { text-decoration: underline !important; }
.ab-contact__use { color: var(--cx-muted); font-size: 12.5px; }
.ab-versions { display: grid; margin: 12px 0 0; }
.ab-versions > div { padding: 8px 0; border-bottom: 1px solid var(--cx-rule); }
.ab-versions dt { color: var(--cx-ink); font-weight: 600; }
.ab-versions dd { margin: 2px 0 0; color: var(--cx-muted); font: 400 12.5px/1.45 var(--cx-mono); }

/* ------------------------------------------------------------ Polling overview */
.ph-wrap, .eh-wrap { padding: 36px 0 64px; }
.ph-sec + .ph-sec, .ph-cols, .eh-sec { margin-top: clamp(36px, 4.5vw, 56px); }
.ph-table th[scope="row"] { min-width: 190px; }
.ph-table th[scope="row"] a { font: 600 15.5px/1.3 var(--cx-sans); }
.ph-sub { display: block; color: var(--cx-muted); font: 400 12.5px/1.4 var(--cx-sans); }
.ph-cur { font-size: 15px; }
.ph-cur b { font: 650 17px/1 var(--cx-sans); }
.ph-ok { color: var(--cx-muted); font: 500 12.5px/1 var(--cx-sans); }
.ph-mults { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--cx-rule); }
.ph-mult { margin: 0; padding: 16px 18px 14px; border-right: 1px solid var(--cx-rule); border-bottom: 1px solid var(--cx-rule); }
.ph-mult:first-child { padding-left: 0; }
.ph-mult:last-child { border-right: 0; padding-right: 0; }
.ph-mult figcaption { display: grid; gap: 1px; }
.ph-mult figcaption a { color: var(--cx-ink) !important; text-decoration: none !important; font: 600 14.5px/1.3 var(--cx-sans); }
.ph-mult figcaption a:hover { text-decoration: underline !important; }
.ph-mult figcaption span { color: var(--cx-muted); font: 400 12.5px/1.3 var(--cx-sans); }
.ph-mult__v { margin: 10px 0 0; font: 400 13px/1 var(--cx-sans); color: var(--cx-muted); }
.ph-mult__v b { font: 600 28px/1 var(--cx-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ph-mult .spark { height: 64px; margin-top: 12px; }
.ph-mult__axis { display: flex; justify-content: space-between; margin: 6px 0 0; color: var(--cx-muted); font: 400 11.5px/1 var(--cx-sans); }
.ph-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); }
.ph-cols > .ph-sec { margin-top: 0; min-width: 0; }
.ph-key p { margin: 0 0 12px; color: var(--cx-ink-soft); font: 400 14px/1.55 var(--cx-sans); }
.ph-key p a { font-weight: 600; text-decoration: none !important; }
.ph-key__more { color: var(--cx-muted) !important; font-size: 13px !important; }

/* ------------------------------------------------------------ Elections overview */
.eh-cycle .pub-prov { margin: 0 0 18px; }
.eh-table th[scope="row"] { min-width: 150px; }
.eh-table th[scope="row"] a { font: 600 16px/1.3 var(--cx-sans); margin-right: 6px; }
.eh-table td { font-size: 13.5px; }
.eh-table td.num { font: 600 15px/1.4 var(--cx-sans); white-space: nowrap; }
.eh-prov { color: var(--cx-muted); font-size: 12.5px !important; }
.eh-prov .pub-id { color: var(--cx-muted); }
.eh-key { margin: 18px 0 0; }
.eh-key .pub-kinds dd { font-size: 12.5px; color: var(--cx-muted); }
.eh-cycle__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 24px 0 0; }
.eh-cycle__links a:not(.pub-button) { color: var(--cx-ink) !important; text-decoration: none !important; font: 600 14px/1.3 var(--cx-sans); }
.eh-grids { display: grid; gap: 32px; }
.eh-races .pub-label { padding-bottom: 4px; }
.eh-races__note { margin: 4px 0 10px; color: var(--cx-muted); font: 400 13px/1.45 var(--cx-sans); }
.eh-races .hub-state-grid a { border-bottom-color: var(--cx-rule-faint); font-size: 13.5px; min-height: 36px; }
.eh-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.eh-tools li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--cx-rule); }
.eh-tools a { color: var(--cx-ink) !important; text-decoration: none !important; font: 600 15.5px/1.3 var(--cx-sans); }
.eh-tools a:hover { text-decoration: underline !important; }
.eh-tools span { color: var(--cx-muted); font: 400 13px/1.45 var(--cx-sans); }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .pj-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-front__grid, .fp-show__grid { grid-template-columns: minmax(0, 1fr); }
  .fp-rail { padding-left: 0; border-left: 0; }
  .fp-rail__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .ph-mults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-mult:nth-child(2n) { border-right: 0; padding-right: 0; }
  .ph-mult:nth-child(2n + 1) { padding-left: 0; }
}
@media (max-width: 880px) {
  .fp-cols, .fp-about__grid, .ph-cols, .ri-wrap, .ar-grid, .ar-foot, .cs-grid, .cs-head__grid, .ab-grid, .pj-wrap, .pub-head__grid:has(.pub-head__aside) { grid-template-columns: minmax(0, 1fr); }
  .ar-side, .cs-side { position: static; }
  .ri-colophon { grid-column: 1; grid-row: auto; margin-top: 32px; }
  .ab-counts { grid-template-columns: repeat(2, 1fr); }
  .ab-counts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ab-counts > div:nth-child(n + 3) { border-top: 1px solid var(--cx-rule); }
}
@media (max-width: 600px) {
  .pj-list--grid { grid-template-columns: minmax(0, 1fr); }
  .fp-rail__list { grid-template-columns: minmax(0, 1fr); }
  .fp-principles { grid-template-columns: minmax(0, 1fr); }
  .ph-mults { grid-template-columns: minmax(0, 1fr); }
  .ph-mult { padding-left: 0 !important; padding-right: 0 !important; border-right: 0; }
  .pub-kinds > div { grid-template-columns: 1fr; gap: 2px; }
  .ar-body { font-size: 17.5px; }
  .pj-row__n { display: none; }
  .cs-facts > div { grid-template-columns: 100px 1fr; }
  .pub-table { font-size: 13.5px; }
  .eh-table thead { display: none; }
  .eh-table, .eh-table tbody, .eh-table tr, .eh-table th, .eh-table td { display: block; }
  .eh-table tr { padding: 12px 0; border-bottom: 1px solid var(--cx-rule); }
  .eh-table tbody :is(th, td) { padding: 2px 0; border: 0; text-align: left !important; }
  .ph-table thead th:nth-child(2), .ph-table tbody td:nth-child(2), .ph-table thead th:nth-child(6), .ph-table tbody td:nth-child(6) { display: none; }
  .ph-table th[scope="row"] { min-width: 150px; }
}
@media print {
  .site-header, .cx-foot, .ar-side, .cs-side, .ri-tools { display: none !important; }
  .ar-grid, .cs-grid { grid-template-columns: 1fr; }
  .ar-body, .cs-body { font-size: 11.5pt; }
}
.ab-snapshot { margin: 12px 0 0; }
.ab-snapshot p { margin: 0; color: var(--cx-muted); font: 400 12px/1.55 var(--cx-mono); }

/* ------------------------------------------------------------ Overrides of older page sheets
   styles.css and theme.css set every main h1 and every thead cell with !important for the
   2026 forecast pages. The publication templates restate their own values at a higher
   specificity so those rules cannot reach them. */
html body.page-pub main :is(.pub-head__title, .ar-title, .cs-title) {
  margin: 0 !important; font-family: var(--cx-serif) !important; font-weight: 600 !important;
  font-size: clamp(36px, 5vw, 60px) !important; line-height: 1.03 !important; letter-spacing: -.022em !important;
  font-variation-settings: "opsz" 60; text-wrap: balance;
}
html body.page-pub main .pub-head__title { max-width: 22ch; }
html body.page-pub main .ar-title { max-width: 22ch; }
html body.page-pub main .cs-title { max-width: 20ch; font-size: clamp(34px, 4.6vw, 56px) !important; }
html body.page-pub main .pub-table thead th {
  background: none !important; font-family: var(--cx-sans) !important; font-weight: 600 !important;
  font-size: 11.5px !important; letter-spacing: .05em !important; color: var(--cx-muted) !important;
}
html body.page-pub main .pub-table tbody th { background: none; }
.pub-figure > figcaption { display: block; margin-bottom: 14px; }

/* Senate 2.0 race-by-race maps (senate2-maps.js) */
.s2m-f-d3 { --s2m: var(--cx-dem); }
.s2m-f-d2 { --s2m: color-mix(in srgb, var(--cx-dem) 68%, var(--cx-paper)); }
.s2m-f-d1 { --s2m: color-mix(in srgb, var(--cx-dem) 38%, var(--cx-paper)); }
.s2m-f-even { --s2m: color-mix(in srgb, var(--cx-muted) 45%, var(--cx-paper)); }
.s2m-f-r1 { --s2m: color-mix(in srgb, var(--cx-rep) 38%, var(--cx-paper)); }
.s2m-f-r2 { --s2m: color-mix(in srgb, var(--cx-rep) 68%, var(--cx-paper)); }
.s2m-f-r3 { --s2m: var(--cx-rep); }
.s2m-f-none { --s2m: var(--cx-rule-faint); }
.s2m-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0 0; padding: 14px 0; border-top: 2px solid var(--cx-ink); border-bottom: 1px solid var(--cx-rule); }
.s2m-pick { display: inline-flex; align-items: center; gap: 10px; color: var(--cx-muted); font: 600 12px/1 var(--cx-sans); letter-spacing: .06em; text-transform: uppercase; }
.s2m-pick select {
  min-height: 34px; max-width: 100%; padding: 0 30px 0 10px; border: 1px solid var(--cx-rule-strong); border-radius: 0; background: var(--cx-paper);
  color: var(--cx-ink); font: 500 14px/1 var(--cx-sans); letter-spacing: 0; text-transform: none; cursor: pointer;
}
.s2m-pick select:focus { border-color: var(--cx-ink); outline: none; }
.s2m-sum { min-height: 3em; margin: 14px 0 0; color: var(--cx-ink-soft); font: 400 15px/1.5 var(--cx-sans); }
.s2m { container-type: inline-size; }
.s2m-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 32px); margin: 8px 0 0; }
@container (max-width: 860px) { .s2m-pair { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.s2m-map { margin: 0; min-width: 0; }
.s2m-cap { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--cx-rule); color: var(--cx-ink); font: 650 12px/1.3 var(--cx-sans); letter-spacing: .08em; text-transform: uppercase; }
.s2m-map [data-s2m-map] { aspect-ratio: 960 / 560; }
.s2m-svg { display: block; width: 100%; height: auto; }
.s2m-st { fill: var(--s2m); stroke: var(--cx-paper); stroke-width: .8; stroke-linejoin: round; }
.s2m-st.has-race { cursor: pointer; }
.s2m-st.has-race:hover, .s2m-st.has-race:focus { stroke: var(--cx-ink); stroke-width: 1.6; outline: none; }
.s2m-miss { fill: none; stroke: var(--cx-flag); stroke-width: 2.6; stroke-linejoin: round; pointer-events: none; }
.s2m-spl { fill: var(--s2m); stroke: var(--cx-paper); stroke-width: 2; pointer-events: none; }
.s2m-spl.is-miss { stroke: var(--cx-flag); stroke-width: 2.6; }
.s2m-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; color: var(--cx-muted); font: 400 12px/1.4 var(--cx-sans); }
.s2m-key span[hidden] { display: none; }
.s2m-key span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.s2m-sw { display: inline-block; width: 12px; height: 12px; background: var(--s2m); }
.s2m-sw--miss { background: transparent; box-shadow: inset 0 0 0 2px var(--cx-flag); }
.s2m-sw--spl { border-radius: 50%; background: var(--cx-muted); }
.s2m-h { margin: 30px 0 0; color: var(--cx-ink); font: 600 17px/1.3 var(--cx-sans); }
.s2m-note { margin: 4px 0 10px; color: var(--cx-muted); font: 400 13px/1.5 var(--cx-sans); }
.s2m-grid { min-width: 860px; font-size: 13px; }
.s2m-grid :is(th, td) { padding-top: 5px; padding-bottom: 5px; }
.s2m-grid :is(th, td).num { padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.s2m-grid tbody th strong { display: block; color: var(--cx-ink); font-weight: 650; white-space: nowrap; }
.s2m-grid :is(tbody, tfoot) th, .s2m-grid thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--cx-paper); }
.s2m-who { display: block; color: var(--cx-muted); font-size: 11.5px; white-space: nowrap; }
.s2m-grid .s2m-res { border-right: 1px solid var(--cx-rule-strong); font-weight: 700; }
.s2m-grid .s2m-res.dem-margin { color: var(--cx-dem); }
.s2m-grid .s2m-res.rep-margin { color: var(--cx-rep); }
.s2m-c { background: color-mix(in srgb, var(--s2m) 30%, transparent); font-variant-numeric: tabular-nums; }
.s2m-c.s2m-f-none { background: none; }
.s2m-c.is-miss { color: var(--cx-ink); font-weight: 700; text-decoration: underline 2px var(--cx-flag); text-underline-offset: 3px; }
.s2m-grid .is-on { box-shadow: inset 1px 0 0 var(--cx-ink), inset -1px 0 0 var(--cx-ink); }
.s2m-grid thead .is-on { box-shadow: inset 1px 0 0 var(--cx-ink), inset -1px 0 0 var(--cx-ink), inset 0 2px 0 var(--cx-ink); }
.s2m-colbtn { padding: 2px 0; border: 0; background: none; color: var(--cx-ink-soft); font: 600 12px/1.2 var(--cx-mono); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.s2m-colbtn[aria-pressed="true"] { color: var(--cx-ink); text-decoration: none; }
.s2m-colbtn:hover, .s2m-colbtn:focus-visible { color: var(--cx-ink); }
.s2m-grid tfoot :is(th, td) { border-top: 1px solid var(--cx-rule-strong); color: var(--cx-ink-soft); font-weight: 600; }
.s2m-grid tfoot .is-best { color: var(--cx-ink); font-weight: 800; }
.s2m-grid tfoot .is-best::after { content: " ★"; color: var(--cx-flag); font-size: 10px; }
.s2m-tip__race { margin: 4px 0 0; color: var(--cx-ink); font: 700 11px/1.3 var(--cx-sans); letter-spacing: .06em; text-transform: uppercase; }
.s2m-tip__who { margin: 0; color: var(--cx-ink-soft); font-size: 12px; }
@media (max-width: 700px) {
  .s2m-tools { align-items: stretch; }
  .s2m-pick { flex: 1 1 100%; }
  .s2m-pick select { flex: 1; }
}
