:root {
  --navy: #0b1739;
  --navy-deep: #071128;
  --blue: #2447a8;
  --yellow: #f7ce18;
  --paper: #fffdf8;
  --ivory: #f3efe5;
  --ink: #101828;
  --slate: #5b6576;
  --line: rgba(11, 23, 57, .14);
  --shadow: 0 24px 70px rgba(7, 17, 40, .13);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy-deep); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 82% 12%, rgba(247, 206, 24, .14), transparent 23rem), var(--ivory);
  color: var(--ink);
  font-family: "Public Sans", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; top: 12px; left: 16px; z-index: 100;
  transform: translateY(-180%); padding: 11px 16px;
  background: var(--yellow); color: var(--navy); font-weight: 800; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

main { width: min(1240px, calc(100% - 40px)); margin: auto; padding-bottom: 88px; }
.poll-intro { display: grid; align-items: end; gap: 40px; min-height: min(660px, 78svh); padding: clamp(66px, 9vw, 124px) 0 clamp(52px, 7vw, 88px); grid-template-columns: 1fr auto; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 36px; height: 3px; margin: 0 12px 3px 0; background: var(--yellow); content: ""; }
.poll-intro h1 { margin: 0; color: var(--navy); font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(66px, 11vw, 138px); font-weight: 600; letter-spacing: -.075em; line-height: .72; }
.poll-intro h1 em { color: var(--blue); font-weight: 500; }
.intro-lede { max-width: 520px; margin: 34px 0 0; color: var(--slate); font-size: clamp(16px, 2vw, 20px); }
.intro-lede strong { color: var(--navy); font-weight: 800; }
.intro-cta { display: inline-flex; min-height: 52px; align-items: center; gap: 17px; margin-top: 27px; padding: 0 21px; background: var(--navy); color: white; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.intro-cta:hover { background: var(--yellow); color: var(--navy); transform: translateX(3px); }
.intro-cta svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.intro-seal { display: grid; width: 164px; height: 164px; place-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); text-align: center; transform: rotate(5deg); }
.intro-seal span { font-size: 9px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.intro-seal strong { display: block; margin: 4px 0; font-family: "Libre Bodoni", Georgia, serif; font-size: 32px; line-height: 1; }

.ballot-shell { position: relative; padding: clamp(28px, 5vw, 62px); border-top: 7px solid var(--yellow); background: var(--paper); box-shadow: var(--shadow); }
.ballot-heading, .results-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; }
.step-label { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.step-label span { display: inline-grid; width: 29px; height: 29px; place-items: center; margin-right: 9px; border-radius: 50%; background: var(--navy); color: white; letter-spacing: 0; }
.ballot-heading h2, .results-topline h2 { max-width: 820px; margin: 0; color: var(--navy); font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(33px, 5vw, 57px); font-weight: 500; letter-spacing: -.045em; line-height: 1.03; }
.results-promise { max-width: 620px; margin: 17px 0 0; color: var(--blue); font-size: 14px; font-weight: 700; }
.privacy-pill { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin: 2px 0 0; padding: 9px 13px; border: 1px solid rgba(16, 119, 85, .2); border-radius: 999px; background: rgba(16, 119, 85, .07); color: #0c7552; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.privacy-pill svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.poll-state { display: flex; min-height: 260px; align-items: center; justify-content: center; gap: 14px; color: var(--slate); }
.loader { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ballot fieldset { margin: 44px 0 0; padding: 0; border: 0; }
.candidate-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.candidate-card { position: relative; display: block; min-width: 0; cursor: pointer; border: 2px solid transparent; background: var(--ivory); transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.candidate-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(7, 17, 40, .11); }
.candidate-card:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 4px; }
.candidate-card:has(input:checked) { border-color: var(--blue); background: white; box-shadow: 0 16px 40px rgba(36, 71, 168, .16); }
.candidate-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.candidate-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / .84; background: #d9dce3; }
.candidate-photo::after { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(7, 17, 40, .18)); content: ""; pointer-events: none; }
.candidate-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(.86) contrast(1.04); }
.candidate-galo .candidate-photo img { object-position: 52% 20%; }
.check { position: absolute; right: 13px; bottom: 13px; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(11, 23, 57, .62); color: white; opacity: .72; transition: background .2s, opacity .2s, transform .2s; }
.check svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.candidate-card:has(input:checked) .check { background: var(--blue); opacity: 1; transform: scale(1.08); }
.candidate-name { display: block; min-height: 89px; padding: 18px 18px 17px; }
.candidate-name strong { display: block; overflow: hidden; color: var(--navy); font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(21px, 2.3vw, 29px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.candidate-name small { display: block; margin-top: 5px; color: var(--slate); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.other-mark { display: grid; place-items: center; background: var(--navy); }
.other-mark > svg { width: 42%; fill: none; stroke: rgba(255,255,255,.78); stroke-linecap: round; stroke-width: 2.5; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.submit-row > p { max-width: 420px; margin: 0; color: var(--slate); font-size: 12px; }
.submit-row > p strong { color: var(--navy); }
.vote-button { display: inline-flex; min-height: 57px; align-items: center; justify-content: center; gap: 18px; border: 0; background: var(--navy); color: white; padding: 0 24px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.vote-button svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.vote-button:hover:not(:disabled) { background: var(--yellow); color: var(--navy); transform: translateX(3px); }
.vote-button:disabled { cursor: not-allowed; opacity: .38; }
.form-message { margin: 18px 0 0; padding: 14px 16px; border-left: 4px solid #b42318; background: #fff3f1; color: #8f1f17; }

.results { padding-top: 8px; }
.response-count { flex: 0 0 auto; margin: 0; text-align: right; }
.response-count strong { display: block; color: var(--navy); font-family: "Libre Bodoni", Georgia, serif; font-size: 44px; line-height: .85; }
.response-count span { color: var(--slate); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.result-list { display: grid; gap: 20px; margin-top: 46px; }
.result-row { display: grid; align-items: center; gap: 10px 20px; grid-template-columns: minmax(145px, 230px) 1fr 64px; }
.result-name { color: var(--navy); font-weight: 700; }
.result-track { overflow: hidden; height: 13px; border-radius: 99px; background: #e8e4da; }
.result-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .8s var(--ease); }
.result-row:first-child .result-bar { background: var(--yellow); }
.result-value { color: var(--navy); font-family: "Libre Bodoni", Georgia, serif; font-size: 25px; font-weight: 600; text-align: right; }
.thanks { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 22px 24px; background: var(--navy); color: white; }
.thanks > svg { flex: 0 0 auto; width: 34px; fill: none; stroke: var(--yellow); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.thanks p { margin: 0; color: rgba(255,255,255,.76); font-size: 13px; }
.thanks strong { color: white; }

.method-note { display: grid; align-items: start; gap: 28px; margin-top: 28px; padding: clamp(28px, 5vw, 50px); border: 1px solid var(--line); grid-template-columns: auto 1fr 1.15fr; }
.method-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; }
.method-note h2 { margin: 0 0 8px; color: var(--navy); font-family: "Libre Bodoni", Georgia, serif; font-size: 28px; font-weight: 600; }
.method-note p, .method-note li { color: var(--slate); font-size: 13px; }
.method-note p { margin: 0; }
.method-note ul { margin: 0; padding-left: 20px; }
.method-note li + li { margin-top: 8px; }
.photo-credits { margin: 16px 4px 0; color: var(--slate); font-size: 10px; }
.photo-credits a { color: var(--blue); text-underline-offset: 2px; }

.poll-footer { padding: 48px max(20px, calc((100% - 1240px) / 2)); background: var(--navy-deep); color: rgba(255,255,255,.6); font-size: 12px; }
.poll-footer p { margin: 0; }
.footer-primary { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-label { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-owner { margin-top: 9px !important; color: rgba(255,255,255,.78); }
.footer-owner strong { color: white; }
.poll-footer nav { display: flex; flex: 0 0 auto; gap: 24px; }
.poll-footer a, .poll-footer button { border: 0; background: none; color: white; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-disclosures { display: grid; gap: 22px; margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); grid-template-columns: 1.25fr 1.25fr auto; }
.footer-disclosures p { max-width: 470px; font-size: 10px; line-height: 1.6; }
.footer-disclosures p:last-child { color: rgba(255,255,255,.44); white-space: nowrap; }

.consent { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; padding: 18px; background: rgba(7, 17, 40, .52); backdrop-filter: blur(5px); }
.consent-card { position: relative; width: min(720px, 100%); padding: clamp(25px, 5vw, 42px); border-top: 5px solid var(--yellow); background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.consent-close { position: absolute; top: 12px; right: 14px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; background: transparent; color: var(--navy); font-size: 26px; line-height: 1; }
.consent-card h2 { margin: 0; color: var(--navy); font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(28px, 5vw, 41px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.consent-card > p:not(.eyebrow) { color: var(--slate); font-size: 14px; }
.consent-card > a { display: inline-block; margin-top: 16px; color: var(--blue); font-size: 12px; font-weight: 700; }
.consent-actions { display: flex; gap: 10px; margin-top: 23px; }
.consent-actions button { min-height: 48px; border: 1px solid var(--navy); padding: 0 18px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.consent-primary { background: var(--navy); color: white; }
.consent-secondary { background: transparent; color: var(--navy); }
.noscript { margin: 0; padding: 14px; background: #fff3f1; color: #8f1f17; text-align: center; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 900px) {
  .candidate-grid { grid-template-columns: repeat(2, 1fr); }
  .method-note { grid-template-columns: auto 1fr; }
  .method-note ul { grid-column: 2; }
}

@media (max-width: 620px) {
  main { width: min(100% - 24px, 1240px); }
  .poll-intro { grid-template-columns: 1fr; padding: 58px 6px 50px; }
  .intro-seal { display: none; }
  .poll-intro h1 { font-size: clamp(62px, 22vw, 100px); }
  .intro-lede { margin-top: 27px; }
  .ballot-shell { padding: 28px 14px; border-top-width: 6px; }
  .ballot-heading, .results-topline { display: block; }
  .privacy-pill { width: max-content; margin-top: 18px; }
  .ballot fieldset { margin-top: 30px; }
  .candidate-grid { gap: 9px; }
  .candidate-name { min-height: 79px; padding: 14px 12px; }
  .candidate-name strong { font-size: 19px; }
  .candidate-name small { font-size: 9px; }
  .check { right: 8px; bottom: 8px; width: 29px; height: 29px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .vote-button { width: 100%; }
  .response-count { margin-top: 22px; text-align: left; }
  .result-row { gap: 8px 10px; grid-template-columns: 1fr 56px; }
  .result-track { grid-column: 1 / -1; grid-row: 2; }
  .result-value { grid-column: 2; grid-row: 1; }
  .method-note { gap: 18px; padding: 26px 21px; grid-template-columns: auto 1fr; }
  .method-note ul { grid-column: 1 / -1; }
  .poll-footer { align-items: flex-start; flex-direction: column; }
  .footer-primary { flex-direction: column; gap: 24px; }
  .poll-footer nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-disclosures { grid-template-columns: 1fr; }
  .footer-disclosures p:last-child { white-space: normal; }
  .consent { padding: 10px; }
  .consent-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
