/* Same Question — shared styles
   Neutral by design: no party red/blue anywhere. Candidates are told apart
   by shape (◆ / ●) and two non-partisan tones, never by party color. */

:root {
  --bg: #f4efe6;
  --bg-2: #ebe4d6;
  --card: #fffdf8;
  --ink: #1d1b18;
  --ink-2: #4a463f;
  --ink-3: #7a7468;
  --line: #d9d0bf;
  --focus: #1d1b18;
  --a: #a8741a;          /* ◆ ochre */
  --a-soft: #f1e2c3;
  --b: #5d5296;          /* ● slate violet */
  --b-soft: #e2def3;
  --you: #1d1b18;
  --agree: #2f6b55;
  --agree-soft: #d9eade;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29,27,24,.06), 0 8px 24px rgba(29,27,24,.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15140f; --bg-2: #1d1b16; --card: #22201a; --ink: #f2ede3; --ink-2: #cdc6b8;
    --ink-3: #958e80; --line: #36322a; --focus: #f2ede3;
    --a: #e0a94a; --a-soft: #3a2f1b; --b: #a99cf0; --b-soft: #2c2843;
    --you: #f2ede3; --agree: #7cc6a5; --agree-soft: #1d3329;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15140f; --bg-2: #1d1b16; --card: #22201a; --ink: #f2ede3; --ink-2: #cdc6b8;
  --ink-3: #958e80; --line: #36322a; --focus: #f2ede3;
  --a: #e0a94a; --a-soft: #3a2f1b; --b: #a99cf0; --b-soft: #2c2843;
  --you: #f2ede3; --agree: #7cc6a5; --agree-soft: #1d3329;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap, .narrow { padding: 0 16px; } }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.mark { display: inline-flex; gap: 3px; font-size: 13px; line-height: 1; }
.mark .ma { color: var(--a); } .mark .mb { color: var(--b); }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a, .iconbtn {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 8px 10px; border-radius: 999px; border: 0; background: transparent;
}
.top nav a:hover, .iconbtn:hover { background: var(--bg-2); color: var(--ink); }
.pill-preview {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--ink-3); padding: 3px 8px; border-radius: 999px;
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 7vw, 68px); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 21px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 40ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transition: transform .12s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); font-size: 14px; }

/* ---------- home ---------- */
.hero { padding-top: 48px; padding-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--ink-2); }
.hero .lede { margin-top: 18px; }
.hero-duo {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch;
  margin: 36px 0 8px;
}
.hero-q {
  grid-column: 1 / -1; text-align: center; font-family: var(--serif); font-size: clamp(19px, 2.6vw, 24px);
  padding: 0 8px 4px;
}
.hero-side {
  background: var(--card); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow);
  font-family: var(--serif); font-size: 17px; line-height: 1.45; position: relative;
}
.hero-side .who { font-family: var(--sans); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.hero-side.a .who { color: var(--a); } .hero-side.b .who { color: var(--b); }
.hero-vs { display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
@media (max-width: 640px) {
  .hero-duo { grid-template-columns: 1fr; }
  .hero-vs { display: none; }
}

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0; }
.steps3 div { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.steps3 b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.steps3 p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 720px) { .steps3 { grid-template-columns: 1fr; gap: 14px; } }

.races { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 18px 0 40px; }
.race-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  border: 1.5px solid transparent; transition: border-color .2s, transform .15s;
}
.race-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.race-card .st { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.race-card .office { color: var(--ink-3); font-size: 14px; }
.race-card .names { display: flex; flex-direction: column; gap: 4px; font-size: 15px; margin-top: 4px; }
.race-card .go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; }
.race-card.soon { opacity: .6; pointer-events: none; }

.band { background: var(--bg-2); padding: 44px 0; margin-top: 20px; }
.band h2 { margin-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 20px; } }

footer.foot { padding-top: 36px; padding-bottom: 48px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
footer.foot a { color: var(--ink-2); }
footer.foot .row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* ---------- race app ---------- */
.stage { padding-top: 18px; padding-bottom: 60px; min-height: 70vh; }
.screen { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .reveal-row { animation: none !important; } }

.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 6px 0 22px; }
.progress i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .35s ease; }
.stepline { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }

.intro-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.chip { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

.cands { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.cand {
  background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center;
}
.mono {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 15px; color: #fff;
}
.mono.a { background: var(--a); } .mono.b { background: var(--b); }
:root[data-theme="dark"] .mono, .dark-mono .mono { color: #15140f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mono { color: #15140f; } }
.cand .nm { font-weight: 650; }
.cand .pt { font-size: 13px; color: var(--ink-3); }
@media (max-width: 520px) { .cands { grid-template-columns: 1fr; } }

/* weights */
.weights { display: grid; gap: 10px; margin: 20px 0; }
.wrow {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  background: var(--card); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line);
}
.wrow .lbl { font-weight: 600; }
.wrow .sub { font-size: 13px; color: var(--ink-3); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg);
  font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.stepper button:hover:not([disabled]) { border-color: var(--ink); }
.stepper button[disabled] { opacity: .3; cursor: default; }
.dots { display: flex; gap: 4px; min-width: 64px; justify-content: center; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.dots i.on { background: var(--ink); border-color: var(--ink); }
.budget { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 10px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.budget b { font-family: var(--serif); font-size: 22px; }

/* statement */
.qcard { background: var(--card); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow); }
.qcard .issue { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.qcard .stmt { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 10px 0 12px; font-weight: 600; letter-spacing: -.015em; }
.qcard .asked { font-size: 14px; color: var(--ink-3); border-left: 2px solid var(--line); padding-left: 10px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 22px; }
.scale button {
  min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  font-size: 13px; font-weight: 600; padding: 6px 4px; line-height: 1.2; color: var(--ink-2);
}
.scale button:hover { border-color: var(--ink-2); }
.scale button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.scale-ends { display: none; }
@media (max-width: 520px) {
  .scale { grid-template-columns: 1fr; }
  .scale button { min-height: 48px; text-align: left; padding: 0 16px; font-size: 15px; }
}
.skiprow { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* blind quotes */
.blind { margin-top: 22px; }
.blind-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.blind-h h3 { font-size: 19px; }
.blind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .blind-grid { grid-template-columns: 1fr; } }
.bq {
  text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 100%;
}
.bq:hover { border-color: var(--ink-3); }
.bq .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.bq.a .tag { color: var(--a); } .bq.b .tag { color: var(--b); }
.bq blockquote { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.bq .pick { margin-top: auto; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.bq[aria-pressed="true"].a { border-color: var(--a); background: var(--a-soft); }
.bq[aria-pressed="true"].b { border-color: var(--b); background: var(--b-soft); }
.bq[aria-pressed="true"] .pick { color: var(--ink); }
.bq.na blockquote { font-family: var(--sans); font-size: 15px; color: var(--ink-3); font-style: italic; }
.redact { background: var(--bg-2); border-radius: 4px; padding: 0 4px; font-family: var(--sans); font-size: .82em; color: var(--ink-3); white-space: nowrap; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }

/* reveal + results */
.reveal { text-align: center; padding-top: 26px; padding-bottom: 8px; }
.reveal h2 { margin-bottom: 8px; }
.reveal-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 6px; text-align: left;
}
.reveal-row > div { animation: rise .5s ease both; }
.reveal-row > div:nth-child(2) { animation-delay: .25s; }
.rv { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.rv .shape { font-size: 22px; } .rv.a .shape { color: var(--a); } .rv.b .shape { color: var(--b); }
@media (max-width: 520px) { .reveal-row { grid-template-columns: 1fr; } }

.meter-card { background: var(--card); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); margin-top: 18px; }
.meter { display: grid; grid-template-columns: 150px 1fr 54px; align-items: center; gap: 12px; margin: 12px 0; }
.meter .nm { font-weight: 600; font-size: 15px; }
.meter .bar { height: 14px; background: var(--bg-2); border-radius: 8px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 8px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.meter.a .bar i { background: var(--a); } .meter.b .bar i { background: var(--b); }
.meter .pct { font-family: var(--serif); font-size: 22px; font-weight: 600; text-align: right; }
@media (max-width: 520px) { .meter { grid-template-columns: 1fr 54px; } .meter .bar { grid-column: 1 / -1; grid-row: 2; } }
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.insight { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.insight b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.insight span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .insights { grid-template-columns: 1fr; } }

/* side by side */
.sbs { margin-top: 26px; display: grid; gap: 18px; }
.sbs-item { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.sbs-head { padding: 20px 22px 4px; }
.sbs-head .stmt { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 6px 0 6px; line-height: 1.25; }
.sbs-head .asked { font-size: 14px; color: var(--ink-3); }
.common { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .04em; color: var(--agree); background: var(--agree-soft); border-radius: 999px; padding: 4px 10px; margin-top: 8px; }
.sbs-cols { display: grid; grid-template-columns: 1fr 1fr; }
.sbs-col { padding: 16px 22px 22px; border-top: 1px solid var(--line); }
.sbs-col + .sbs-col { border-left: 1px solid var(--line); }
@media (max-width: 720px) { .sbs-cols { grid-template-columns: 1fr; } .sbs-col + .sbs-col { border-left: 0; } }
.who-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.who-line .mono { width: 32px; height: 32px; font-size: 12px; }
.who-line .nm { font-weight: 650; font-size: 15px; }
.who-line .ans { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; }
.who-line .ans.direct { color: var(--agree); border-color: color-mix(in srgb, var(--agree) 40%, transparent); }
.quote { font-family: var(--serif); font-size: 17px; line-height: 1.5; margin: 0 0 10px; }
.quote::before { content: "\201C"; } .quote::after { content: "\201D"; }
.sum { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.place { margin: 10px 0 14px; }
.track { position: relative; height: 30px; }
.track .ln { position: absolute; left: 6px; right: 6px; top: 14px; height: 2px; background: var(--line); }
.track .tick { position: absolute; top: 10px; width: 2px; height: 10px; background: var(--line); transform: translateX(-1px); }
.track .dot { position: absolute; top: 6px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-9px); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.track .dot.a { background: var(--a); } .track .dot.b { background: var(--b); }
.track .dot.you { background: var(--card); box-shadow: 0 0 0 2px var(--you); top: 6px; }
.track-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
.play {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.play:hover { border-color: var(--ink); }
.play svg { width: 14px; height: 14px; }
.src { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.src a { color: var(--ink-3); }
.vid { position: relative; aspect-ratio: 16 / 9; margin-top: 12px; border-radius: 10px; overflow: hidden; background: #000; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.flag { margin-top: 8px; }

.tabs { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 18px; }
.tabs button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* help build */
.build { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 28px 24px; margin-top: 30px; }
.build h2 { color: var(--bg); }
.build p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.build textarea, .build input, .field {
  width: 100%; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--bg) 25%, transparent);
  background: color-mix(in srgb, var(--bg) 8%, transparent); color: var(--bg); padding: 12px 14px; font: inherit; resize: vertical;
}
.build textarea::placeholder { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.build .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.build .btn.ghost { background: transparent; color: var(--bg); }
.thanks { font-weight: 600; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,14,10,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--card); color: var(--ink); border-radius: 18px; padding: 22px; width: min(520px, 100%); box-shadow: var(--shadow); }
.modal textarea { width: 100%; min-height: 90px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); padding: 10px 12px; font: inherit; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

/* method page */
.prose { font-size: 17px; }
.prose h2 { margin: 40px 0 12px; font-size: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 6px 0; }
.rule { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rule .n { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.formula { background: var(--card); border-radius: 12px; padding: 16px 18px; font-size: 15px; border: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 60; }

/* header on small screens */
.brand, .top nav a, .iconbtn { white-space: nowrap; }
@media (max-width: 560px) {
  .pill-preview { display: none; }
  .top nav a, .iconbtn { padding: 8px 7px; font-size: 13px; }
}
@media (max-width: 420px) { .hide-sm { display: none; } }

/* ---------- home quick round ---------- */
.hero-home { padding-top: 22px; padding-bottom: 18px; }
.hero-home h1 { font-size: clamp(30px, 5.2vw, 56px); max-width: 18ch; }
.hero-home .lede { margin-top: 12px; }
.quick {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  padding: 22px 22px 24px; border: 1px solid var(--line); scroll-margin-top: 12px;
}
@media (max-width: 480px) { .quick { padding: 18px 14px 20px; border-radius: 20px; } }
.qq-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qq-race { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.qq-dots { display: flex; gap: 6px; }
.qq-dots i { width: 22px; height: 5px; border-radius: 4px; background: var(--line); }
.qq-dots i.now { background: var(--ink-3); }
.qq-dots i.on { background: var(--ink); }
.qq-ask { margin: 18px 0 4px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.qq-q { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.2; }
.qq-big { font-size: clamp(28px, 4.6vw, 44px); margin-top: 16px; }
.qq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
@media (max-width: 640px) { .qq-grid { grid-template-columns: 1fr; } }
.qq {
  text-align: left; border-radius: 16px; border: 2px solid var(--line); background: var(--bg);
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 140px;
  transition: border-color .2s, background .25s, transform .12s;
}
.qq:not([disabled]):hover { border-color: var(--ink-2); transform: translateY(-1px); }
.qq:not([disabled]):active { transform: scale(.99); }
.qq .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.qq .tag b { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.qq.a .tag { color: var(--a); } .qq.b .tag { color: var(--b); }
.qq blockquote { margin: 0; font-family: var(--serif); font-size: clamp(18px, 2.3vw, 21px); line-height: 1.42; }
.qq-foot { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.qq[disabled] { cursor: default; }
.qq.shown { animation: flip .45s ease both; }
.qq.shown.b { animation-delay: .08s; }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(80deg); opacity: .4; } 100% { transform: rotateX(0); } }
.qq.mine.a { border-color: var(--a); background: var(--a-soft); }
.qq.mine.b { border-color: var(--b); background: var(--b-soft); }
.qq.mine .qq-foot { color: var(--ink); }
.qq-after { margin-top: 16px; min-height: 28px; }
.qq-after p { margin: 0 0 12px; font-size: 17px; }
.qq-row { display: flex; align-items: center; gap: 16px; }
.qq-bars { margin: 22px 0 8px; display: grid; gap: 10px; }
.qq-bar { display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; gap: 12px; font-weight: 600; }
.qq-bar .tr { height: 14px; background: var(--bg-2); border-radius: 8px; overflow: hidden; }
.qq-bar .tr i { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.qq-bar b { font-family: var(--serif); font-size: 22px; text-align: right; }
.qq-list { margin: 18px 0 22px; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.qq-skel { display: grid; gap: 12px; }
.qq-skel span { height: 22px; border-radius: 8px; background: var(--bg-2); }
.qq-skel span:nth-child(2) { height: 140px; } .qq-skel span:nth-child(3) { height: 140px; }
@media (prefers-reduced-motion: reduce) { .qq.shown { animation: none; } }

/* state chips, crowd share, hear-it */
.states { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.states .muted { margin-right: 4px; }
.chip-btn { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip-btn:hover { border-color: var(--ink-2); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qq-crowd { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.qq-crowd .tr { height: 6px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.qq-crowd .tr i { display: block; height: 100%; background: var(--ink-2); border-radius: 4px; }
.qq.a .qq-crowd .tr i { background: var(--a); } .qq.b .qq-crowd .tr i { background: var(--b); }
.qq-hear { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qq-hear .play[aria-pressed="true"] { border-color: var(--ink); background: var(--bg-2); }
.qq-vid .vid { margin-top: 12px; }

/* ---------- woven flag ---------- */
:root { --fl-r: #b3533d; --fl-w: #fffaf0; --fl-b: #2c3a63; --fl-s: #f4efe6; --flag-op: .2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fl-r: #c96a52; --fl-w: #3a352c; --fl-b: #36477a; --fl-s: #e9e2d4; --flag-op: .32; } }
:root[data-theme="dark"] { --fl-r: #c96a52; --fl-w: #3a352c; --fl-b: #36477a; --fl-s: #e9e2d4; --flag-op: .32; }
[data-flag] svg { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-flag] path { fill: none; stroke-linecap: round; }
[data-flag] .fl-r { stroke: var(--fl-r); }
[data-flag] .fl-w { stroke: var(--fl-w); }
[data-flag] .fl-b { stroke: var(--fl-b); }
[data-flag] .fl-s { fill: var(--fl-s); stroke: none; }

.hero-band { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 70px;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--fl-r) 7%, var(--bg)) 0%, var(--bg) 60%); }
.flag-bg { position: absolute; inset: -20px -40px 0 44%; opacity: var(--flag-op); z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 55%, transparent 100%); mask-composite: intersect; }
@media (max-width: 720px) { .flag-bg { inset: -10px -60px 30% 0; opacity: calc(var(--flag-op) * .8); } }
.hero-home { padding-top: 34px; }
.hero-home h1 { font-size: clamp(36px, 6.2vw, 68px); max-width: 15ch; line-height: 1.04; }
.hero-home h1 em { font-style: italic; color: var(--fl-r); }
.countdown { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 650; letter-spacing: .01em; }
.countdown .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fl-r); box-shadow: 0 0 0 0 color-mix(in srgb, var(--fl-r) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fl-r) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.proof { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.proof b { color: var(--ink); font-weight: 650; }
.quick-wrap { margin-top: -54px; position: relative; z-index: 2; }
.quick { position: relative; overflow: hidden; }
.quick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--a) 0 50%, var(--b) 50% 100%); }
.flag-strip { position: relative; height: 150px; margin-bottom: -150px; overflow: hidden; opacity: var(--flag-op); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent), linear-gradient(to right, transparent, #000 45%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000, transparent), linear-gradient(to right, transparent, #000 45%); mask-composite: intersect; }
.flag-strip + .stage, .flag-strip + main { position: relative; }
@media (prefers-reduced-motion: reduce) { .countdown .dot { animation: none; } }

/* ---------- footer ---------- */
footer.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 36px 0 40px; background: var(--bg-2); color: var(--ink-2); font-size: 15px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.powered { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 26px; padding: 12px 16px; border-radius: 14px;
  background: #0b1d25; color: #eaf1f8; text-decoration: none; border: 1px solid #16323d; transition: transform .15s, box-shadow .2s; }
.powered:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,29,37,.25); }
.powered .muted { color: #9fb6c2; }
.powered img { display: block; border-radius: 7px; }
.pw-name { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: #fff; }
@media (max-width: 480px) { .pw-sub { flex-basis: 100%; } }
@media (max-width: 560px) {
  .states { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 4px 0; }
  .states::-webkit-scrollbar { display: none; }
  .states .muted, .chip-btn { flex: none; }
  .proof span:last-child { display: none; }
  .hero-home { padding-top: 14px; }
  .countdown { margin-bottom: 14px; font-size: 12px; }
  .hero-home .lede { font-size: 17px; }
}

/* ---------- at a glance, cheat sheet, before you vote ---------- */
.glance { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 22px 0 0; box-shadow: var(--shadow); }
.glance h3 { font-size: 19px; margin-bottom: 12px; }
.glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .glance-grid { grid-template-columns: 1fr; gap: 16px; } }
.g-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.g-agree { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.g-agree li { padding-left: 22px; position: relative; font-size: 15px; }
.g-agree li::before { content: "◆●"; position: absolute; left: 0; top: 1px; font-size: 9px; letter-spacing: -1px; color: var(--agree); }
.g-agree a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.g-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 58px; align-items: center; gap: 10px; font-size: 15px; margin: 6px 0; }
.g-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-bar { height: 8px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.g-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 6px; }
.g-row b { font-size: 14px; text-align: right; white-space: nowrap; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-top: 22px; box-shadow: var(--shadow); }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sheet-h h3 { font-size: 21px; }
.sheet-scroll { overflow-x: auto; margin: 0 -6px; }
.sheet-t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.sheet-t th, .sheet-t td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.sheet-t thead th { border-top: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.sheet-t tbody th { font-weight: 500; width: 52%; }
.sheet-q { color: var(--ink); text-decoration: none; }
.sheet-q:hover { text-decoration: underline; }
.sheet-t td { white-space: nowrap; font-weight: 600; }
.sheet-t td.you { color: var(--ink); }
.sheet-t td.near { background: var(--agree-soft); color: var(--agree); border-radius: 6px; }
.byv { border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px 20px; margin-top: 22px; background: var(--bg); }
.byv h3 { font-size: 19px; margin-bottom: 8px; }
.byv ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.byv a { color: var(--ink); font-weight: 650; }

@media (max-width: 560px) {
  .sheet-scroll { overflow: visible; margin: 0; }
  .sheet-t { min-width: 0; }
  .sheet-t thead { display: none; }
  .sheet-t, .sheet-t tbody { display: block; }
  .sheet-t tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
  .sheet-t tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 0 0 2px; }
  .sheet-t td { border: 0; padding: 6px 8px; background: var(--bg); border-radius: 8px; white-space: normal; font-size: 14px; }
  .sheet-t td::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .sheet-t td.near { background: var(--agree-soft); }
}

/* ---------- guess, score, share grid, streak ---------- */
.qq-guess { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; animation: rise .3s ease both; }
.qq-guess .linkbtn { color: color-mix(in srgb, var(--bg) 75%, transparent); margin-left: auto; }
.qq.guessing { border-style: dashed; }
.qq.guessing:not(.mine) { border-color: var(--ink-3); }
.qq.guessing .qq-foot { color: var(--ink); }
.qq.guessed { outline: 3px solid var(--ink); outline-offset: 2px; }
.qq-verdict { font-weight: 700; font-size: 18px; margin: 0 0 6px !important; padding: 8px 12px; border-radius: 10px; display: inline-block; animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.qq-verdict.ok { background: var(--agree-soft); color: var(--agree); }
.qq-verdict.no { background: var(--bg-2); color: var(--ink-2); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.qq-score { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; font-size: 16px; color: var(--ink-2); }
.qq-score .big { font-family: var(--serif); font-weight: 600; font-size: 64px; line-height: 1; color: var(--ink); }
.qq-score .big small { font-size: 30px; color: var(--ink-3); }
.qq-gridline { font-size: 28px; letter-spacing: 4px; margin: 6px 0 4px; }
.qq-share { white-space: pre-wrap; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; color: var(--ink-2); }
.streak { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--a-soft); color: var(--ink); }
.qq-next { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
@media (prefers-reduced-motion: reduce) { .qq-guess, .qq-verdict { animation: none; } }

/* ---------- challenge, compare, ways to play ---------- */
.qq-banner { margin: 14px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--a-soft); font-size: 15px; }
.challenge { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--bg-2); }
.challenge p { margin: 0 0 10px; }
.field-in { flex: 1 1 180px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); padding: 0 14px; font: inherit; font-size: 15px; }
.ways { margin: 20px 0 12px; }
.ways-row { display: flex; flex-wrap: wrap; gap: 8px; }
.compare { margin: 16px 0 6px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--ink); }
.compare-big { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 0; }
.compare-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.compare-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); }
.compare-list li.same { background: var(--agree-soft); }
.compare-list li.same b { color: var(--agree); }
.compare-list b { white-space: nowrap; font-size: 13px; }

/* ---------- Your turn (get out the vote) ---------- */
.turn-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; text-align: center; }
.turn-bar .tb-k { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--fl-r); color: #fff; }
.turn-bar .tb-go { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.turn-bar:hover .tb-go { text-decoration-thickness: 2px; }
@media (max-width: 480px) { .turn-bar { font-size: 13px; gap: 6px 8px; } .turn-bar .tb-go { display: none; } }
.turn { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 24px; background: var(--ink); color: var(--bg); }
.turn::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--fl-r) 55%, transparent) 0 8px, transparent 8px 16px); opacity: .25; pointer-events: none; }
.turn-k { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.turn-h { font-size: clamp(26px, 4.4vw, 40px); color: var(--bg); line-height: 1.1; max-width: 20ch; }
.turn-h span { color: color-mix(in srgb, var(--fl-r) 70%, var(--bg)); font-style: italic; }
.turn-d { margin: 10px 0 0; font-weight: 650; font-size: 17px; }
.turn a { color: var(--bg); }
.turn .muted { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.turn-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 16px 0 0; }
.turn-dates div { background: color-mix(in srgb, var(--bg) 9%, transparent); border-radius: 12px; padding: 10px 12px; }
.turn-dates dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 65%, transparent); }
.turn-dates dd { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }
.turn-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.turn .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.turn .btn.ghost { background: transparent; color: var(--bg); }
.turn-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.turn-pick select { min-height: 40px; border-radius: 999px; padding: 0 14px; font: inherit; border: 0; background: var(--bg); color: var(--ink); }
.turn.compact { padding: 20px 18px; }
.turn.compact .turn-h { font-size: clamp(22px, 3.6vw, 30px); }

/* ---------- by the numbers ---------- */
.numbers { margin-top: 52px; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 860px) { .num-grid { grid-template-columns: repeat(2, 1fr); } }
.num { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.num:nth-child(-n+4) { background: var(--bg-2); box-shadow: none; }
.num b { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 42px); line-height: 1; letter-spacing: -.02em; }
.num span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.num em { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-top: auto; padding-top: 6px; }
@media (max-width: 400px) { .num { padding: 13px; } .num span { font-size: 13px; } }

.turn-alert { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--fl-r); color: #fff; font-weight: 700; }
.turn-alert.soft { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); font-weight: 600; }
