/* The People's Poll — client styles (NYT-style redesign, Oct 3 2026). Colors, fonts and type sizes come from tokens.css.
   Palette A "Election Night": white canvas, ink chrome and buttons, gray for the published polls, GOLD (with a thin
   ink outline) only for the People's Poll, red/blue only on party and candidate data. Type: NYT dashboard scale. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pp-bg); color: var(--pp-ink); font-family: var(--pp-font-body);
  font-size: var(--t-body); line-height: var(--lh-body); overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
#app { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--pp-ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--pp-font-display); }
p { margin: 0 0 10px; }
.num, td.num, th.num, .t-sub, .stat b, .rv-row b, .slot b, svg text, .chip { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading, .boot-loading { padding: 48px 20px; text-align: center; color: var(--pp-ink-2); }
:focus-visible { outline: 3px solid var(--pp-ink); outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- type scale (CONTRACT.md "Brand") ---------- */
h1, .hed { font-size: var(--t-page); line-height: var(--lh-page); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; max-width: 760px; text-wrap: balance; }
h2, .hed2 { font-size: var(--t-module); line-height: var(--lh-module); font-weight: 700; letter-spacing: -0.005em; margin: 0 0 6px; max-width: var(--measure); }
h3, .h3 { font-size: var(--t-body); line-height: var(--lh-body); font-weight: 700; margin: 0 0 4px; }
.dek { font-size: var(--t-dek); line-height: var(--lh-dek); font-weight: 400; color: var(--pp-ink-2); margin: 0 0 12px; max-width: var(--measure); }
.kicker { font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pp-ink-2); margin: 0 0 6px; }
.body { font-size: var(--t-body); line-height: var(--lh-body); max-width: var(--measure); }
.sec { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); }
.src { font-size: var(--t-source); line-height: var(--lh-source); color: var(--pp-ink-2); font-style: italic; margin: 8px 0 0; max-width: var(--measure); }
.crumb { font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; color: var(--pp-ink-2); margin: 0 0 4px; }
.crumb a { color: var(--pp-ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumb a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 599px) { .wrap { padding-left: 16px; padding-right: 16px; } }
main.page { flex: 1 0 auto; width: 100%; }
main.page > :not(.wrap):not(.loading) { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.narrowwrap { max-width: 760px; }
.block { padding: 22px 0 20px; border-bottom: 1px solid var(--pp-line); }
.block:last-child { border-bottom: 0; }
.block.narrow { max-width: 480px; }
main.page > section.block, main.page > article.block, main.page > div.block { border-bottom: 1px solid var(--pp-line); }

/* ---------- staging strip ---------- */
.staging-strip { background: var(--pp-ink); color: var(--pp-bg); font-size: 12px; line-height: 16px; text-align: center; padding: 4px 12px; letter-spacing: 0.02em; }

/* ---------- masthead ---------- */
.site-head { background: var(--pp-bg); }
.util { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--pp-line); }
.util .count { color: var(--pp-ink); }
.count b { font-weight: 800; }
.mast { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex: 0 0 auto; }
.brand img { display: block; height: 28px; width: auto; }
.tagline { font-size: var(--t-dek); line-height: var(--lh-dek); font-weight: 600; color: var(--pp-ink-2); border-left: 1px solid var(--pp-line); padding-left: 18px; }
.mast-r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.mast-link { font-size: var(--t-body); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.acct-slot { display: flex; }
.menubtn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--pp-ink); }
.menuic { width: 20px; height: 14px; }
.navwrap { position: relative; }
.mainnav { display: flex; gap: 28px; border-top: 1px solid var(--pp-line); border-bottom: 3px solid var(--pp-mast); }
.mainnav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--pp-ink-2); font-size: var(--t-body); font-weight: 700; box-shadow: inset 0 -3px 0 transparent; }
.mainnav a:hover { color: var(--pp-ink); }
.mainnav a[aria-current="page"] { color: var(--pp-ink); box-shadow: inset 0 -3px 0 var(--pp-ink); }
.drawer { display: flex; flex-direction: column; border-bottom: 1px solid var(--pp-line); padding: 4px 0 8px; }
.drawer[hidden] { display: none; }
.drawer a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: var(--t-answer); font-weight: 600; border-top: 1px solid var(--pp-line); }
.drawer a:first-child { border-top: 0; }
.drawer a[aria-current="page"] { font-weight: 800; }
.pcount { display: none; justify-content: space-between; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--pp-line); }
@media (min-width: 760px) { .drawer { display: none !important; } }
@media (max-width: 759px) {
  .util, .tagline, .mast-link, .mainnav { display: none; }
  .menubtn { display: inline-flex; }
  .mast { padding-top: 6px; padding-bottom: 6px; border-bottom: 3px solid var(--pp-mast); gap: 10px; }
  .brand img { height: 24px; }
  .pcount { display: flex; }
}

/* ---------- footer ---------- */
.site-foot { border-top: 3px solid var(--pp-mast); margin-top: 32px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding-top: 18px; padding-bottom: 28px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); }
.foot-brand img { display: block; height: 24px; width: auto; margin-bottom: 8px; }
.foot-brand p { margin: 0 0 4px; max-width: var(--measure); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; align-content: flex-start; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--pp-ink); text-decoration: none; }
.site-foot .src { grid-column: 1 / -1; }
@media (max-width: 759px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--pp-radius); border: 1.5px solid var(--pp-accent); background: var(--pp-accent); color: var(--pp-accent-ink);
  font-weight: 700; font-size: var(--t-body); line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap;
}
a.btn { color: var(--pp-accent-ink); }
.btn:hover { background: var(--pp-hover); border-color: var(--pp-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary, a.btn.secondary { background: var(--pp-bg); color: var(--pp-ink); border-color: var(--pp-ink); }
.btn.secondary:hover { background: var(--pp-sunk); }
.btn.ghost, a.btn.ghost { background: transparent; color: var(--pp-ink); border-color: transparent; text-decoration: underline; padding: 0 8px; }
.btn.danger, a.btn.danger { background: var(--pp-ink); color: var(--pp-bg); }
.btn.block { width: 100%; }
.btn-sm { font-size: var(--t-small); padding: 0 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-row input { flex: 1 1 260px; }
.tabs { display: inline-flex; border: 1px solid var(--pp-line); border-radius: var(--pp-radius); overflow: hidden; }
.tabs button { border: 0; background: var(--pp-bg); color: var(--pp-ink-2); font-weight: 700; font-size: var(--t-body); padding: 0 18px; min-height: 44px; cursor: pointer; border-right: 1px solid var(--pp-line); }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-pressed="true"] { background: var(--pp-ink); color: var(--pp-bg); }

/* ---------- People's Poll lock (gold, ink outline) and margin chips ---------- */
.lockic { width: 11px; height: 13px; flex: 0 0 auto; vertical-align: -1px; overflow: visible; }
.lk-shackle { fill: none; stroke: var(--pp-ink); stroke-width: 1.6; }
.lk-body { fill: var(--pp-people); stroke: var(--pp-people-outline); stroke-width: 1.1; }
.lockchip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); white-space: nowrap; }
.extic { width: 9px; height: 9px; margin-left: 3px; vertical-align: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--pp-ink); font-weight: 600; }
.b-d5-t::before, .b-d2-t::before, .b-c-t::before, .b-r2-t::before, .b-r5-t::before { content: ""; width: 10px; height: 10px; flex: 0 0 10px; box-shadow: inset 0 0 0 1px var(--pp-swatch-edge); }
.b-d5-t::before { background: var(--pp-d); } .b-d2-t::before { background: var(--pp-d-light); } .b-c-t::before { background: var(--pp-close); }
.b-r2-t::before { background: var(--pp-r-light); } .b-r5-t::before { background: var(--pp-r); }
.pd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; flex: 0 0 auto; }
.pd.d { background: var(--pp-d); } .pd.r { background: var(--pp-r); } .pd.k { background: var(--pp-ink); } .pd.g { background: var(--pp-pollsters); }
.pty { color: var(--pp-ink-2); font-weight: 500; }

/* ---------- map ---------- */
.mapbar { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin: 4px 0 8px; }
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 32px; align-items: start; }
@media (min-width: 980px) { .mapgrid { grid-template-columns: minmax(0, 1fr) 320px; } }
.mapbox { width: 100%; min-height: 120px; }
.usmap { display: block; width: 100%; height: auto; overflow: visible; }
.st { stroke: var(--pp-bg); stroke-width: 0.8; stroke-linejoin: round; outline: none; }
.st.none { fill: var(--pp-none); }
.st.b-d5, rect.b-d5 { fill: var(--pp-d); } .st.b-d2, rect.b-d2 { fill: var(--pp-d-light); } .st.b-c, rect.b-c { fill: var(--pp-close); }
.st.b-r2, rect.b-r2 { fill: var(--pp-r-light); } .st.b-r5, rect.b-r5 { fill: var(--pp-r); }
.st.race { cursor: pointer; }
.st-hot { fill: none; stroke: var(--pp-ink); stroke-width: 2.4; pointer-events: none; }
.st.race:focus-visible { stroke: var(--pp-ink); stroke-width: 3; }
.mlabels { pointer-events: none; }
.mlab { paint-order: stroke fill; stroke: var(--pp-bg); stroke-linejoin: round; fill: var(--pp-ink); font-family: var(--pp-font-body); }
.mlab .ab { font-weight: 800; }
.mlab .mg { font-weight: 700; }
.leader { stroke: var(--pp-ink); }
.mapkey { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); margin: 6px 0; }
.mapkey span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sw { display: inline-block; width: 13px; height: 13px; box-shadow: inset 0 0 0 1px var(--pp-swatch-edge); }
.sw.b-d5 { background: var(--pp-d); } .sw.b-d2 { background: var(--pp-d-light); } .sw.b-c { background: var(--pp-close); }
.sw.b-r2 { background: var(--pp-r-light); } .sw.b-r5 { background: var(--pp-r); } .sw.none { background: var(--pp-none); }
.maperr { font-size: var(--t-small); color: var(--pp-ink-2); border: 1px dashed var(--pp-line); padding: 16px; }
.maptable { margin-top: 8px; }
.maptable > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: var(--t-small); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.listcol .lst-h { margin: 2px 0 6px; }
.racelist { list-style: none; margin: 0; padding: 0; }
.racelist li { border-top: 1px solid var(--pp-line); }
.racelist li:last-child { border-bottom: 1px solid var(--pp-line); }
.rl { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 7px 0; min-height: 44px; text-decoration: none; color: var(--pp-ink); align-items: baseline; }
.rl:hover .rl-st { text-decoration: underline; }
.rl-st { font-weight: 700; }
.rl-m { justify-self: end; }
.rl-n { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); }
.rl-lock { justify-self: end; }
.rl-lock.voted { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); font-weight: 600; }
.locknote { display: flex; gap: 6px; align-items: center; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); padding-top: 8px; margin: 0; }

/* ---------- tooltip ---------- */
.tooltip { position: fixed; pointer-events: none; z-index: 90; left: 0; top: 0; background: var(--pp-tip-bg); color: var(--pp-tip-ink); padding: 8px 11px; font-size: 13px; line-height: 18px;
  border-radius: 4px; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; white-space: nowrap; transition: opacity 140ms ease, left 200ms cubic-bezier(.22, .61, .36, 1), top 200ms cubic-bezier(.22, .61, .36, 1); }
.tooltip .t-hd { font-weight: 800; margin-bottom: 2px; }
.tooltip .t-num { font-variant-numeric: tabular-nums; }
.tooltip .t-dim { color: var(--pp-tip-dim); }
@media (prefers-reduced-motion: reduce) { .tooltip { transition: none; } }

/* ---------- line charts ---------- */
.chart { width: 100%; margin: 4px 0 0; }
.chart svg { display: block; overflow: visible; }
.gridline { stroke: var(--pp-grid); shape-rendering: crispEdges; }
.tick { stroke: var(--pp-line); }
.axis { font-size: 12px; fill: var(--pp-ink-2); font-family: var(--pp-font-body); }
.ln { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.ln.c-ink { stroke: var(--pp-ink); } .ln.c-gray { stroke: var(--pp-pollsters); } .ln.c-d { stroke: var(--pp-d); } .ln.c-r { stroke: var(--pp-r); }
.dot { opacity: var(--pp-dot-op, .22); }
.dot.c-ink, .endpt.c-ink, .focus.c-ink { fill: var(--pp-ink); } .dot.c-gray, .endpt.c-gray, .focus.c-gray { fill: var(--pp-pollsters); }
.dot.c-d, .endpt.c-d, .focus.c-d { fill: var(--pp-d); } .dot.c-r, .endpt.c-r, .focus.c-r { fill: var(--pp-r); }
.focus { stroke: var(--pp-bg); stroke-width: 2; pointer-events: none; }
.anno { paint-order: stroke fill; stroke: var(--pp-bg); stroke-width: 3.5px; stroke-linejoin: round; font-family: var(--pp-font-body); }
.endlab .el-n { font-size: 12px; font-weight: 600; }
.endlab .el-v { font-size: 15px; font-weight: 800; }
.c-ink-t { fill: var(--pp-ink); } .c-gray-t { fill: var(--pp-pollsters-text); } .c-d-t { fill: var(--pp-d-text); } .c-r-t { fill: var(--pp-r-text); }
.hit { cursor: crosshair; }

/* ---------- trackers + People's Poll lock strip ---------- */
.trackers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px; }
@media (min-width: 900px) { .trackers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tracker .dek { min-height: 40px; } }
.lockstrip { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); padding: 6px 0; margin-top: 12px; }
.ls-k { font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pp-people-text); white-space: nowrap; }
.ls-t { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); flex: 1 1 200px; min-width: 0; }
.lockstrip .btn { margin-left: auto; }

/* ---------- tables ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: var(--t-body); line-height: var(--lh-body); margin-top: 6px; }
.dtable th, .dtable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--pp-line); vertical-align: middle; }
.dtable thead th { font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pp-ink-2); border-bottom: 2px solid var(--pp-ink); white-space: nowrap; vertical-align: bottom; }
.dtable th:first-child, .dtable td:first-child { padding-left: 0; }
.dtable th:last-child, .dtable td:last-child { padding-right: 0; }
.dtable .num { text-align: right; }
.dtable tbody th { font-weight: 700; }
.t-state { white-space: nowrap; }
.t-cand-ph { display: none; font-weight: 400; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); }
.c-cand { line-height: 24px; }
.t-avg { white-space: nowrap; }
.t-sub { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); font-weight: 500; }
.c-bar { width: 150px; text-align: center !important; }
.dtable thead .c-bar span { font-size: 11px; letter-spacing: 0; }
.dtable thead .c-bar span:first-child { float: left; } .dtable thead .c-bar span:last-child { float: right; }
.mbar { display: block; margin: 0 auto; }
.mbar-0 { stroke: var(--pp-ink); stroke-width: 1; }
.c-date { white-space: nowrap; }
.c-pp { white-space: nowrap; }
.c-vote { text-align: right !important; }
.ltable .t-q a { font-weight: 700; }
.t-date { white-space: nowrap; }
.t-res { white-space: nowrap; }
.t-res b { margin-left: 6px; }
a.ext { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; white-space: nowrap; }
.only-narrow { display: none; }
@media (max-width: 759px) {
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .rtable .c-cand, .rtable .c-bar, .rtable .c-n, .rtable .c-date, .rtable .c-pp { display: none; }
  .t-cand-ph { display: block; white-space: normal; }
  .t-state { white-space: normal; }
  .dtable th, .dtable td { padding: 8px 6px; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1 1 0; }
  .ls-t { flex: 1 1 0; }
}

/* ---------- lists ---------- */
.plist { list-style: none; margin: 6px 0 10px; padding: 0; }
.plist li { padding: 8px 0 2px; border-top: 1px solid var(--pp-line); }
.plist li:last-child { border-bottom: 1px solid var(--pp-line); }
.ll-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--t-body); line-height: var(--lh-body); }
.ll-top a { font-weight: 700; text-decoration: none; }
.ll-top a:hover { text-decoration: underline; }
.ll-sub { display: flex; justify-content: space-between; align-items: center; gap: 0 10px; flex-wrap: wrap; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); margin-top: 2px; }
.ll-sub a.ext { color: var(--pp-ink); min-height: 32px; position: relative; }
.ll-sub a.ext::after { content: ""; position: absolute; left: -4px; right: -4px; top: -6px; bottom: -6px; }
.more { margin: 10px 0 0; }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.qlist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
@media (min-width: 760px) { .qlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .qlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qlist li { border-top: 1px solid var(--pp-line); }
.qlist a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; min-height: 44px; text-decoration: none; }
.qlist .kicker { margin: 0; }
.ql-t { font-weight: 700; font-size: var(--t-body); line-height: var(--lh-body); }
.qlist a:hover .ql-t { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- race / question page ---------- */
.qpage > * { max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; border-top: 1px solid var(--pp-line); padding-top: 10px; margin-top: 12px; }
@media (min-width: 600px) { .qhead .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; min-width: 0; }
.st-k, .stat span { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); font-weight: 600; display: flex; align-items: center; }
.stat b { font-size: var(--t-big); line-height: var(--lh-big); font-weight: 800; }
.voted { font-size: var(--t-body); line-height: var(--lh-body); font-weight: 700; padding: 12px 14px; margin: 16px 0 0; border-left: 4px solid var(--pp-ink); background: #F4F4F4; max-width: var(--measure); }
.qcard { border-top: 3px solid var(--pp-ink); margin-top: 8px; }
.qcard .q { margin-bottom: 14px; }
.options { display: flex; flex-direction: column; gap: 10px; max-width: var(--measure); }
.opt {
  display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 48px; padding: 10px 16px;
  border: 1.5px solid var(--pp-ink); border-radius: var(--pp-radius); background: var(--pp-bg); color: var(--pp-ink);
  font-size: var(--t-answer); line-height: var(--lh-answer); font-weight: 600; cursor: pointer; text-decoration: none;
}
.opt:hover { background: var(--pp-sunk); }
.opt.unsure { border-style: dashed; border-color: var(--pp-ink-2); color: var(--pp-ink-2); }
.opt.selected { background: var(--pp-ink); color: var(--pp-bg); border-color: var(--pp-ink); border-style: solid; }
.opt:disabled { cursor: progress; }
.q-note { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); margin: 10px 0 12px; max-width: var(--measure); }
.twoslots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: var(--measure); }
.twoslots.one { grid-template-columns: minmax(0, 1fr); }
.slot { border: 1px solid var(--pp-line); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 86px; min-width: 0; }
.slot-k { font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pp-pollsters-text); }
.slot-k.pp { color: var(--pp-people-text); }
.slot b { font-size: var(--t-answer); line-height: var(--lh-answer); font-weight: 700; }
.slot-s { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); }
.slot.locked { border-style: dashed; border-color: var(--pp-ink-2); }
.slot-lock { display: flex; gap: 6px; align-items: flex-start; font-size: var(--t-body); line-height: var(--lh-body); font-weight: 600; color: var(--pp-ink-2); }
.slot-lock .lockic { margin-top: 3px; }

/* ---------- reveal: gray "The polls" bar + gold, ink-outlined "People's Poll" bar ---------- */
.reveal { max-width: var(--measure); }
.rv-cand { margin: 12px 0 4px; }
.rv-name { font-size: var(--t-body); line-height: var(--lh-body); font-weight: 800; margin-bottom: 4px; }
.rv-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 74px; gap: 10px; align-items: center; margin: 5px 0; font-size: var(--t-body); line-height: var(--lh-body); }
.rv-who { font-weight: 700; color: var(--pp-pollsters-text); }
.rv-row.people .rv-who { color: var(--pp-people-text); }
.trk { position: relative; display: block; height: 16px; background: var(--pp-grid); }
.trk .fill { position: absolute; left: 0; top: 0; bottom: 0; display: block; }
.fill.polls { background: var(--pp-pollsters); }
.fill.people { background: var(--pp-people); box-shadow: inset 0 0 0 1.5px var(--pp-people-outline); }
.t50 { position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px solid var(--pp-ink-2); }
.rv-row b { text-align: right; font-size: var(--t-big); line-height: var(--lh-big); font-weight: 800; white-space: nowrap; }
.rv-axis { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 2px 84px 0 114px; font-size: 12px; line-height: 16px; color: var(--pp-ink-2); }
.rv-axis span:nth-child(2) { text-align: center; } .rv-axis span:nth-child(3) { text-align: right; }
.rv-note { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); margin: 12px 0 0; }
.sharebox { margin-top: 12px; }
.share-preview { margin-top: 12px; border: 1px solid var(--pp-line); overflow: hidden; }
.share-preview img { display: block; width: 100%; height: auto; }
@media (max-width: 420px) { .rv-row { grid-template-columns: 96px minmax(0, 1fr) 66px; gap: 8px; } .rv-axis { margin: 2px 74px 0 104px; } }
.sci .rv-row { grid-template-columns: minmax(84px, 160px) minmax(0, 1fr) 66px; }
.progress { height: 8px; background: var(--pp-grid); overflow: hidden; margin: 8px 0 8px; max-width: var(--measure); }
.progress > div { height: 100%; background: var(--pp-ink); transition: width 300ms; }

/* ---------- details panels ---------- */
details.panel > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; max-width: var(--measure); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; color: var(--pp-ink-2); font-weight: 800; }
details.panel[open] > summary::after { content: "–"; }
details.panel > div { padding-top: 6px; max-width: var(--measure); }
.src-list { margin: 6px 0 0; padding-left: 18px; }
.src-list a { word-break: break-all; }

/* ---------- forms ---------- */
label.field { display: block; font-weight: 600; font-size: var(--t-small); line-height: var(--lh-small); margin: 14px 0 6px; }
input[type="email"], input[type="text"], input[type="number"], input[type="password"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 20px; padding: 11px 12px; min-height: 44px; border: 1px solid #BDBDBD; border-radius: var(--pp-radius); background: var(--pp-bg); color: var(--pp-ink);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pp-ink); outline-offset: 0; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: var(--t-body); cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--pp-ink); }
.err { color: var(--pp-ink); font-weight: 700; font-size: var(--t-small); line-height: var(--lh-small); margin-top: 10px; }
.err:not(:empty) { border-left: 3px solid var(--pp-ink); padding-left: 8px; }
.ok { color: var(--pp-ink); font-weight: 700; font-size: var(--t-small); margin-top: 10px; }
.devcode { margin-top: 12px; padding: 10px 12px; background: #F4F4F4; border: 1px dashed var(--pp-ink-2); font-size: var(--t-small); line-height: var(--lh-small); }
.devcode strong { font-size: 18px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.code-input { letter-spacing: .3em; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- sheet (sign in) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: var(--pp-scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--pp-bg); width: 100%; max-width: 480px; border-top: 3px solid var(--pp-ink); padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } }
.sheet .close { float: right; width: 44px; height: 44px; margin: -10px -12px 0 0; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--pp-ink-2); }

/* ---------- profile flow ---------- */
.eyebrow { font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pp-ink-2); margin-bottom: 6px; }
.choice-list { display: grid; gap: 8px; margin-top: 10px; max-width: var(--measure); }
.choice { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--pp-line); border-radius: var(--pp-radius); background: var(--pp-bg); cursor: pointer; font-size: var(--t-body); line-height: var(--lh-body); font-weight: 600; }
.choice[aria-checked="true"] { border-color: var(--pp-ink); background: #F4F4F4; }
.choice .box { flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--pp-ink-2); border-radius: 50%; }
.choice.multi .box { border-radius: 4px; }
.choice[aria-checked="true"] .box { border-color: var(--pp-ink); background: var(--pp-ink); box-shadow: inset 0 0 0 3px var(--pp-bg); }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; max-width: var(--measure); }
.step-nav .btn { flex: 1 1 0; }
details.why { margin-top: 14px; font-size: var(--t-small); color: var(--pp-ink-2); }
details.why summary { cursor: pointer; font-weight: 600; color: var(--pp-ink); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- account ---------- */
.stats .stat > span:last-child:not(.st-k) { order: 2; }
.hist { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pp-line); }
.hist a { font-weight: 600; min-width: 0; }
.hist .choice-lbl { color: var(--pp-ink-2); text-align: right; flex: 0 0 auto; max-width: 45%; }
.confirmbox { margin-top: 12px; border-left: 3px solid var(--pp-ink); padding-left: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--pp-ink); color: var(--pp-ink); white-space: nowrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.invite { border-left: 4px solid var(--pp-ink); padding: 4px 0 4px 14px; }

/* ---------- prose (markdown pages) ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { max-width: var(--measure); }
.prose h1 { margin: 4px 0 14px; }
.prose h2 { margin: 24px 0 8px; }
.prose h3 { margin: 18px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose hr { border: 0; border-top: 1px solid var(--pp-line); margin: 22px 0; }
.prose blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--pp-line); color: var(--pp-ink-2); }
.prose code { font-size: .9em; background: var(--pp-sunk); padding: 1px 5px; }
.prose pre { overflow-x: auto; background: var(--pp-sunk); padding: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--t-small); }
.prose th, .prose td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--pp-line); vertical-align: top; overflow-wrap: anywhere; }
.prose .table-wrap { overflow-x: auto; margin: 12px 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--pp-ink); color: var(--pp-bg); padding: 10px 16px; border-radius: var(--pp-radius); font-size: var(--t-small); z-index: 80; max-width: calc(100vw - 32px); text-align: center; }

/* ---------- embed ---------- */
body.embed { padding: 0; background: var(--pp-bg); }
.embed-card { padding: 16px; }
.embed-card .eyebrow { margin-bottom: 4px; }
.embed-card .q-prompt { font-size: var(--t-module); line-height: var(--lh-module); font-weight: 700; margin: 0 0 12px; }
.embed-card .muted { color: var(--pp-ink-2); }
.embed-card .small { font-size: var(--t-small); }

/* Turnstile host: invisible unless Cloudflare asks for an interactive check; then it shows above the sign-in sheet. */
.ts-host { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; }
/* Phone: keep the map's table view inside the screen (Stan, Oct 3) */
.maptable { max-width: 100%; overflow-x: auto; }
@media (max-width: 480px) {
  .maptable .dtable th, .maptable .dtable td { padding: 8px 6px; }
  .maptable .dtable thead th { white-space: normal; }
}

/* Launch mode: "The People's Poll · Coming soon" panel and notify-me form (Stan, Oct 3) */
.soon-panel { border: 1.5px solid var(--pp-people-outline); border-left: 6px solid var(--pp-people); padding: 18px 20px; max-width: 640px; background: var(--pp-surface); }
.soon-panel.compact { margin-top: 16px; padding: 14px 16px; }
.soon-panel .kicker { color: var(--pp-people-text); }
.soon-panel .hed2 { margin: 2px 0 6px; }
.soon-panel .dek { margin: 0 0 12px; }
.soon-form .field { display: block; font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; margin-bottom: 6px; }
.soon-row { display: flex; gap: 8px; flex-wrap: wrap; }
.soon-row input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: var(--t-body); border: 1.5px solid var(--pp-ink); border-radius: 0; background: var(--pp-bg); color: var(--pp-ink); }
.soon-row .btn { flex: 0 0 auto; min-height: 44px; }
.soon-msg { min-height: 0; margin: 8px 0 0; font-size: var(--t-small); line-height: var(--lh-small); }
.soon-msg.err { color: var(--pp-ink); font-weight: 700; }
.soon-done { margin: 0; font-size: var(--t-body); line-height: var(--lh-body); font-weight: 600; }
.soon-panel .src { margin-top: 10px; }
.soon-panel .src a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lockchip.soon { color: var(--pp-people-text); font-weight: 600; }
.lockstrip.soon .ls-t { color: var(--pp-ink-2); }
.locknote a { color: inherit; font-weight: 700; }
@media (max-width: 480px) { .soon-row .btn { flex: 1 1 100%; } }

/* Sources page and "Learn more" links (Stan, Oct 3) */
a.learn { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.src a.learn { white-space: nowrap; }
.slot-learn { display: inline-block; margin-top: 6px; font-size: var(--t-small); line-height: var(--lh-small); min-height: 24px; }
.src-ds { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.src-ds li { font-size: var(--t-body); line-height: var(--lh-body); }
ul.how { padding-left: 18px; margin: 8px 0; max-width: 640px; }
ul.how li { font-size: var(--t-body); line-height: var(--lh-body); margin-bottom: 8px; }
ul.pollsters { list-style: none; padding: 0; margin: 12px 0 0; border-top: 2px solid var(--pp-ink); }
ul.pollsters > li { border-bottom: 1px solid var(--pp-line); }
ul.pollsters summary { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; }
ul.pollsters summary::-webkit-details-marker { display: none; }
ul.pollsters summary::before { content: '+'; font-weight: 700; width: 14px; flex: 0 0 14px; }
ul.pollsters details[open] summary::before { content: '−'; }
.ps-name { flex: 1 1 auto; font-weight: 700; font-size: var(--t-body); line-height: var(--lh-body); min-width: 0; }
.ps-meta { flex: 0 0 auto; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); white-space: nowrap; }
ul.ps-polls { list-style: none; padding: 0 0 10px 26px; margin: 0; }
ul.ps-polls li { font-size: var(--t-small); line-height: var(--lh-small); padding: 4px 0; }
ul.ps-polls a { color: inherit; }
@media (max-width: 480px) { ul.pollsters summary { flex-wrap: wrap; } .ps-meta { flex-basis: 100%; padding-left: 26px; white-space: normal; } ul.ps-polls { padding-left: 0; } }
ul.ps-polls li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--pp-line); }
ul.ps-polls li:first-child { border-top: 0; }
ul.ps-polls li > a:first-child { grid-column: 1; }
ul.ps-polls li > .sec { grid-column: 1; }
ul.ps-polls li > a.ext, ul.ps-polls li > span:last-child:not(:nth-child(2)) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
@media (max-width: 480px) { ul.ps-polls li { padding-left: 0; } }

/* Dark mode switch + logo swap (Oct 4). !important: the header/footer logo rules set display on every img. */
img.logo-dark { display: none !important; }
:root[data-theme="dark"] img.logo-light { display: none !important; }
:root[data-theme="dark"] img.logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.logo-light { display: none !important; }
  :root:not([data-theme="light"]) img.logo-dark { display: block !important; }
}
.themebtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: var(--pp-ink); cursor: pointer; border-radius: var(--pp-radius); }
.themebtn:hover { background: var(--pp-sunk); }
.themebtn svg { width: 20px; height: 20px; }
.share-preview img { background: #FFFFFF; } /* share cards stay light by design */
.foot-theme { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }

/* iPhone app teaser in the home hero (Oct 4) */
.appsoon { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.appsoon-k { font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pp-ink-2); }
.appsoon img { display: block; height: 40px; width: auto; }
.appsoon-link { display: inline-block; border-radius: 8px; }
.appsoon-link:focus-visible { outline: 2px solid var(--pp-ink); outline-offset: 3px; }

/* ---------- Surveys (Stage 1, Oct 8 2026; only shown when the SURVEYS flag is on) ----------
   Open results are drawn in ink. Gold stays reserved for the weighted People's Poll (Panel) result. */
.sv-list .sec { display: block; margin-top: 2px; }
.sv-preview { margin: 16px 0 0; padding: 10px 12px; border: 1.5px dashed var(--pp-ink); font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; }
.sv-intro p { margin: 0 0 10px; }
.sv-how { margin: 16px 0 4px; padding: 12px 14px; border-left: 4px solid var(--pp-ink); background: var(--pp-sunk); max-width: var(--measure); }
.sv-how p { margin: 4px 0 0; }
.sv-progress { height: 6px; background: var(--pp-grid); margin: 6px 0 16px; max-width: var(--measure); }
.sv-progress span { display: block; height: 100%; background: var(--pp-ink); transition: width .2s ease; }
.sv-q { margin-bottom: 10px; outline: none; }
.sv-opts { margin-top: 12px; }
.sv-opts .opt { justify-content: flex-start; text-align: left; }
.sv-nav { max-width: var(--measure); justify-content: space-between; margin-top: 18px; }
.sv-nav .btn { min-width: 120px; }
.sv-nav .btn:only-child { margin-left: auto; }
.sv-scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 6px; max-width: var(--measure); margin-top: 12px; }
.sv-scale .opt { padding: 0; min-height: 48px; font-variant-numeric: tabular-nums; }
.sv-scale-ends { display: flex; justify-content: space-between; gap: 12px; max-width: var(--measure); margin-top: 6px; font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); }
.sv-rank { list-style: none; margin: 10px 0 0; padding: 0; max-width: var(--measure); }
.sv-rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 44px 44px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--pp-line); }
.sv-rank-row:last-child { border-bottom: 1px solid var(--pp-line); }
.sv-rank-n { font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.sv-rank-l { font-size: var(--t-answer); line-height: var(--lh-answer); font-weight: 600; overflow-wrap: anywhere; }
.sv-mv { min-width: 44px; min-height: 44px; padding: 0; font-size: 18px; }
.sv-count { text-align: right; max-width: var(--measure); margin-top: 4px; font-variant-numeric: tabular-nums; }
.sv textarea { width: 100%; max-width: var(--measure); }
.sv-review { margin: 12px 0 0; padding-left: 22px; max-width: var(--measure); }
.sv-review li { padding: 8px 0; border-bottom: 1px solid var(--pp-line); }
.sv-review li span, .sv-review li strong { display: block; overflow-wrap: anywhere; }
.sv-results .sec { max-width: var(--measure); }
.sv-res { margin-top: 20px; max-width: var(--measure); }
.sv-res .h3 { margin-bottom: 8px; }
.sv-bar { margin: 8px 0; }
.sv-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-body); line-height: var(--lh-body); }
.sv-bar-l { min-width: 0; overflow-wrap: anywhere; }
.sv-bar-n { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-track { height: 10px; background: var(--pp-grid); margin-top: 4px; }
.sv-track span { display: block; height: 100%; background: var(--pp-ink-2); }
.sv-bar.mine .sv-track span { background: var(--pp-ink); }
.sv-bar.mine .sv-bar-l { font-weight: 700; }
.sv-mine { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--pp-ink); font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.sv-rank-res { margin: 0; padding-left: 22px; }
.sv-rank-res li { padding: 6px 0; border-bottom: 1px solid var(--pp-line); }
/* Panel (weighted) result: People's Poll gold with the ink outline, per the brand rule */
.sv-panel { border-top: 3px solid var(--pp-ink); }
.sv-bar.people .sv-track span { background: var(--pp-people); box-shadow: inset 0 0 0 1px var(--pp-people-outline); }
.sv-ci { font-size: var(--t-source); line-height: var(--lh-source); color: var(--pp-ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
/* Voter-file check (Stage 4) */
.vc { margin-top: 18px; max-width: var(--measure); }
.vc-form { border-top: 3px solid var(--pp-ink); padding-top: 14px; }
.vc-form input[type="text"] { width: 100%; max-width: 420px; }
/* Larger tap areas for links inside sentences (QC Oct 8): inline padding grows the hit area without moving text. */
.sv-how a:not(.btn), .vc a:not(.btn), .page .block .sec a, .sv-results .sec a { padding: 16px 2px; margin: -16px -2px; }
.sv-how .btn-row { margin-top: 14px; }

/* Phone tap targets (QC F-02, F-06, Oct 7): source links, notify links and footer links. */
.src a.learn, .locknote a, .soon-panel a { padding: 16px 2px; margin: -16px -2px; }
.slot-learn { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
.site-foot nav a { min-width: 44px; justify-content: center; }
/* Live Panel facts on Methods (Oct 8 evening) */
.sv-facts { border-left: 3px solid var(--pp-ink); padding: 8px 0 8px 14px; font-variant-numeric: tabular-nums; }

/* Public trend and state tables (Oct 8 evening) */
.sv-trend-t { width: 100%; max-width: var(--measure); border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 10px; }
.sv-trend-t th, .sv-trend-t td { text-align: left; padding: 10px 8px 10px 0; border-top: 1px solid var(--pp-line); vertical-align: top; font-size: var(--t-small); line-height: var(--lh-small); }
.sv-trend-t thead th { border-top: 0; font-weight: 700; }
.sv-trend-t .num { text-align: right; white-space: nowrap; }
.sv-trend-t tr.cur th, .sv-trend-t tr.cur td { font-weight: 700; }
.sv-trend-t th a { padding: 12px 0; margin: -12px 0; }

/* Registration check through Scan. Check. Protect. (Oct 8 2026): True the Vote's form in a frame */
.scp-box { margin-top: 12px; }
.scp-by { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 4px; }
.scp-frame { display: block; width: 100%; max-width: 100%; height: 640px; border: 1px solid var(--rule, #d4d4d4); border-radius: 4px; background: #fff; margin: 8px 0 12px; }

/* House page (Oct 11 2026): every district poll, listed as published */
.h-filters { display: grid; grid-template-columns: auto minmax(0, 220px) auto minmax(0, 220px); gap: 8px 10px; align-items: center; margin: 10px 0 4px; max-width: var(--measure); }
.h-filters label.field { margin: 0; }
.h-count { margin: 8px 0 0; }
.hd-lead { font-weight: 400; font-size: var(--t-small); }
ul.hpolls { list-style: none; padding: 0 0 10px 26px; margin: 0; }
li.hpoll { padding: 10px 0; border-top: 1px solid var(--pp-line); font-size: var(--t-small); line-height: var(--lh-small); }
li.hpoll:first-child { border-top: 0; padding-top: 2px; }
.hp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hp-who { min-width: 0; overflow-wrap: anywhere; }
.hp-top a.ext { flex: 0 0 auto; color: var(--pp-ink); min-height: 32px; position: relative; }
.hp-sub { margin: 2px 0 4px; }
.hp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hm-line { min-width: 0; overflow-wrap: anywhere; }
.hm-c { white-space: nowrap; }
.hp-m.alt { color: var(--pp-ink-2); }
.hp-m.alt .hp-row { padding-top: 2px; }
.hp-also { display: block; font-size: var(--t-kicker); line-height: var(--lh-kicker); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pp-pollsters-text); margin-top: 6px; }
@media (max-width: 560px) {
  .h-filters { grid-template-columns: auto minmax(0, 1fr); }
  ul.hpolls { padding-left: 0; }
  .hd-lead { display: block; }
}

/* Home toss-ups (Oct 11 2026): Senate, governor and House toss-ups beside the map, each linking to its full section */
.tossups .lst-h { margin: 2px 0 2px; }
.toss-dek { margin: 0 0 10px; font-size: var(--t-small); line-height: var(--lh-small); }
.tossgrp { margin: 0 0 16px; }
.toss-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 4px; font-size: var(--t-small); line-height: var(--lh-small); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.toss-n { font-weight: 600; letter-spacing: 0; text-transform: none; }
.toss-none { margin: 4px 0; padding: 8px 0; border-top: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); font-size: var(--t-small); }
.toss-more { margin: 6px 0 0; }
.toss-more a { display: inline-block; padding: 10px 0; font-weight: 700; color: var(--pp-ink); }
.toss-foot { margin: 6px 0 0; font-size: var(--t-small); line-height: var(--lh-small); }
.rl-arrow { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); font-weight: 600; white-space: nowrap; }
.tossups .rl-st { overflow-wrap: anywhere; }

/* Every 2026 race (Oct 11 2026): third candidates, the map-only chamber pages, races with one or two polls */
.pd.n { background: var(--pp-ink-2); }
@media (min-width: 980px) { .mapgrid.solo { grid-template-columns: minmax(0, 1fr); } .mapgrid.solo .mapcol { max-width: 920px; width: 100%; margin: 0 auto; } }
ul.fewlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--pp-ink); }
ul.fewlist > li { padding: 12px 0; border-bottom: 1px solid var(--pp-line); }
.fw-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.fw-top a { font-weight: 800; color: var(--pp-ink); }
ul.fw-polls { list-style: none; margin: 0; padding: 0; }
ul.fw-polls > li { padding: 6px 0; }
ul.fw-polls > li + li { border-top: 1px dashed var(--pp-line); }

/* Independent candidates (Catherine, Oct 11 2026: "independent in yellow"). Lemon yellow, never People's Poll gold. */
.b-i5-t::before, .b-i2-t::before { content: ""; width: 10px; height: 10px; flex: 0 0 10px; box-shadow: inset 0 0 0 1px var(--pp-swatch-edge); }
.b-i5-t::before { background: var(--pp-i); } .b-i2-t::before { background: var(--pp-i-light); }
.st.b-i5, rect.b-i5 { fill: var(--pp-i); } .st.b-i2, rect.b-i2 { fill: var(--pp-i-light); }
.sw.b-i5 { background: var(--pp-i); } .sw.b-i2 { background: var(--pp-i-light); }
.pd.i { background: var(--pp-i); box-shadow: inset 0 0 0 1px var(--pp-swatch-edge); }
.ln.c-i { stroke: var(--pp-i); } .dot.c-i, .endpt.c-i, .focus.c-i { fill: var(--pp-i); } .c-i-t { fill: var(--pp-i-text); }
.dot.c-i { opacity: calc(var(--pp-dot-op, .22) + .35); stroke: var(--pp-i-text); stroke-width: .6; }

/* ---- Survey present view + share cards (Oct 12 2026). Slides are a fixed 1280x720 canvas scaled to fit any screen. ---- */
body.presenting { overflow: hidden; }
.pr { position: fixed; inset: 0; z-index: 1000; background: #FFFFFF; color: #121212; display: flex; flex-direction: column; }
.pr-fit { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pr-stage { width: 1280px; height: 720px; flex: none; transform-origin: center center; }
.pr-slide { box-sizing: border-box; width: 1280px; height: 720px; overflow: hidden; padding: 56px 96px 40px; border-top: 12px solid #121212; display: flex; flex-direction: column; background: #FFFFFF; }
.pr-kick { font-size: 20px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #866208; margin-bottom: 18px; }
.pr-slide h1, .pr-slide h2, .pr-slide p, .pr-slide li { max-width: none; }
.pr-slide h1 { font-size: 72px; line-height: 1.05; font-weight: 800; margin: 0 0 24px; letter-spacing: -.01em; }
.pr-slide h2 { font-size: 42px; line-height: 1.12; font-weight: 800; margin: 0 0 20px; }
.pr-title { justify-content: center; }
.pr-sub { font-size: 26px; color: #5E5E5E; margin: 0; }
.pr-flag { display: inline-block; align-self: flex-start; margin-top: 22px; font-size: 20px; font-weight: 800; border: 2px solid #121212; padding: 6px 12px; }
.pr-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pr-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: 28px; font-weight: 600; }
.pr-lab strong { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pr-track { height: 22px; background: #ECECEC; margin-top: 6px; }
.pr-track span { display: block; height: 100%; background: #121212; }
.pr-track span.gold { background: #D4A017; box-shadow: inset 0 0 0 2px #121212; }
.pr-ci { font-size: 18px; color: #5E5E5E; margin-top: 4px; }
.pr-ranks { margin: 0; padding-left: 1.4em; font-size: 30px; }
.pr-ranks li { margin: 10px 0; }
.pr-ranks span { display: block; font-size: 20px; color: #5E5E5E; }
.pr-src { font-size: 18px; color: #5E5E5E; margin: 18px 0 0; border-top: 2px solid #DCDCDC; padding-top: 14px; }
.pr-notes { font-size: 28px; line-height: 1.4; margin: 0; padding-left: 1.1em; }
.pr-notes li { margin: 0 0 16px; }
.pr-url { font-size: 24px; font-weight: 800; margin-top: 24px; }
.pr-bar { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid #DCDCDC; background: #FFFFFF; }
.pr-btn { min-width: 44px; min-height: 44px; border: 2px solid #121212; background: #FFFFFF; color: #121212; font: 700 22px/1 Figtree, sans-serif; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; padding: 0 12px; }
.pr-btn:disabled { opacity: .35; cursor: default; }
.pr-txt { font-size: 15px; }
.pr-count { font-size: 15px; font-weight: 700; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.pr-gap { flex: 1; }
.pr-hint { display: none; font-size: 13px; color: #5E5E5E; }
@media (orientation: portrait) and (max-width: 600px) { .pr-hint { display: inline; } .pr-gap { display: none; } }
.sv-share-img { display: block; width: 100%; height: auto; border: 1px solid var(--pp-line); margin: 12px 0; background: #FFFFFF; }
.sv-present .btn-row { flex-wrap: wrap; }

/* Home map, House tab (Oct 19 2026): one dot per district with published polls. */
.hd-dot { stroke: var(--pp-bg); cursor: pointer; }
.hd-dot.b-d5 { fill: var(--pp-d); } .hd-dot.b-d2 { fill: var(--pp-d-light); } .hd-dot.b-c { fill: var(--pp-close); }
.hd-dot.b-r2 { fill: var(--pp-r-light); } .hd-dot.b-r5 { fill: var(--pp-r); }
.hd-dot.b-i2 { fill: var(--pp-i-light); } .hd-dot.b-i5 { fill: var(--pp-i); }
.hd-dot.hollow { fill: var(--pp-bg); stroke: var(--pp-ink-2); }
.hd-dot:focus { outline: none; }
.hd-dot:focus-visible { stroke: var(--pp-ink); }
.hd-hot { fill: none; stroke: var(--pp-ink); pointer-events: none; }
.hd-num { font-family: var(--pp-font-body); font-weight: 800; fill: var(--pp-ink); pointer-events: none; }
.hd-num.on-dark { fill: #fff; }
.sw.hollow { background: var(--pp-bg); box-shadow: inset 0 0 0 1.5px var(--pp-ink-2); }
.mapkey.dots .sw { border-radius: 50%; }
.hmap-note { font-size: var(--t-small); line-height: var(--lh-small); color: var(--pp-ink-2); margin: 8px 0 0; }
.hmap-note a { color: var(--pp-ink); font-weight: 700; white-space: nowrap; }

/* Home (Oct 19 2026): with three toss-up groups the side column ran ~900px taller than the map and left a white gap.
   The map now spans the page and the toss-ups sit under it in three columns: Senate, House, Governors. */
.toss-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 980px) {
  .mapgrid.home { grid-template-columns: minmax(0, 1fr); }
  .mapgrid.home .mapcol { max-width: 920px; width: 100%; margin: 0 auto; }
  .mapgrid.home .toss-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mapgrid.home .toss-dek { margin-bottom: 4px; }
}
