/* VoteBangor
   Editorial, civic, printed-ballot feel: black ink on warm paper, one highlighter-yellow accent,
   hairline rules instead of floating cards. No party red or blue anywhere. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f3ec;
  --surface: #fbfaf6;
  --surface-2: #ece7dc;
  --ink: #141414;
  --ink-2: #3d3b37;
  --ink-3: #5f5b54;
  --hair: #d6cfc1;
  --rule: #141414;
  --mark: #f4d03f;
  --mark-ink: #141414;
  --accent-soft: #f7e9a6;
  --link: #1f3d2f;
  --yes: #1f3d2f; --yes-bg: #dfe8dc;
  --no: #6b3d0f;  --no-bg: #f1e2cd;
  --deny: #d00000; --deny-bg: #fbd9d9;
  --focus: #c79a00;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #191918; --surface-2: #242320; --ink: #f1ede4; --ink-2: #cfc9bd; --ink-3: #a29b8e;
    --hair: #34322d; --rule: #f1ede4; --accent-soft: #3a3418; --link: #b9d6a8;
    --yes: #b9d6a8; --yes-bg: #24321f; --no: #f0c48c; --no-bg: #3a2a16; --deny: #ff5a5a; --deny-bg: #3d1717; --focus: #f4d03f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #191918; --surface-2: #242320; --ink: #f1ede4; --ink-2: #cfc9bd; --ink-3: #a29b8e;
  --hair: #34322d; --rule: #f1ede4; --accent-soft: #3a3418; --link: #b9d6a8;
  --yes: #b9d6a8; --yes-bg: #24321f; --no: #f0c48c; --no-bg: #3a2a16; --deny: #ff5a5a; --deny-bg: #3d1717; --focus: #f4d03f; color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--mark); color: var(--mark-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 1.5em 0 .45em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.03em; margin-top: .4em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
.muted { color: var(--ink-3); }
.note { color: var(--ink-3); font-size: .9rem; max-width: 60em; }
.label { font-weight: 700; }
.kicker { font: 700 .74rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin: 1.6em 0 0; }
.dek { font: 400 clamp(1.1rem, 2vw, 1.3rem)/1.5 var(--serif); color: var(--ink-2); max-width: 40em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--mark); color: var(--mark-ink); padding: 8px 12px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- masthead */
.site-header { background: var(--bg); border-bottom: 3px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none;
  font: 800 2.1rem/1 var(--sans); letter-spacing: -.035em; }
.brand b { font-weight: 800; }
.brand-mark { width: 44px; height: 26px; border-radius: 50%; background: var(--ink); box-shadow: 4px 4px 0 var(--mark); }
.theme-toggle { background: none; border: 1px solid var(--hair); color: var(--ink-2); border-radius: 50%; width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { border-color: var(--ink); }
.site-nav { border-top: 1px solid var(--hair); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 11px 10px; color: var(--ink-2); text-decoration: none; font: 600 .9rem var(--sans); border-bottom: 3px solid transparent; margin-bottom: -3px; }
.site-nav li:first-child a { padding-left: 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--mark); }

.ebar { background: var(--ink); color: var(--bg); font: 500 .86rem/1.4 var(--sans); }
.ebar .wrap { padding-top: 9px; padding-bottom: 9px; }
.ebar strong { font-weight: 800; }
.ebar-count { background: var(--mark); color: var(--mark-ink); font-weight: 800; padding: 1px 6px; margin-left: 4px; }
.ebar-count:empty { display: none; }
@media (max-width: 640px) { .ebar-sep { display: none; } .ebar .wrap > span:last-child { display: block; } }

/* ---------- breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 22px 0 0; font: 600 .76rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--hair); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- hero */
.hero { padding: 6px 0 26px; border-bottom: 1px solid var(--hair); }
.hero h1 { max-width: 15em; }
.countdown { display: flex; align-items: baseline; gap: 24px; margin: 26px 0 22px; flex-wrap: wrap; }
.countdown .cd { display: flex; align-items: baseline; gap: 6px; }
.countdown .cd b { font: 700 clamp(2.6rem, 6vw, 3.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.countdown .cd span { font: 700 .74rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 2px solid var(--ink); color: var(--ink); background: transparent;
  text-decoration: none; font: 700 .93rem var(--sans); cursor: pointer; border-radius: 0; transition: background .12s, color .12s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--mark); color: var(--mark-ink); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--hair); }
.qf { padding: 22px 20px 22px 0; }
.qf + .qf { border-left: 1px solid var(--hair); padding-left: 20px; }
.qf-n { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); letter-spacing: -.03em; margin-bottom: 6px; }
.qf-l { font-size: .86rem; color: var(--ink-3); line-height: 1.35; display: block; }
@media (max-width: 760px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .qf:nth-child(3) { border-left: 0; padding-left: 0; }
  .qf:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--rule); margin-top: 52px; padding-top: 4px; }
.sec-head h2 { margin: .3em 0 .2em; }
.sec-head a { font: 700 .85rem var(--sans); white-space: nowrap; }
section > h2:first-child { border-top: 3px solid var(--rule); padding-top: .45em; margin-top: 52px; }
.two-col section > h2:first-child, .two-col > div > h2:first-child { margin-top: 52px; }
.panel > h2:first-child { border-top: 0; padding-top: 0; }

/* ---------- candidate list: ballot-style rows */
.cgrid { list-style: none; padding: 0; margin: 10px 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--hair); }
@media (max-width: 760px) { .cgrid { grid-template-columns: minmax(0, 1fr); } }
.ccard { border-bottom: 1px solid var(--hair); }
.ccard-link { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; color: var(--ink); text-decoration: none; height: 100%; }
.ccard-link:hover .ccard-name { background: linear-gradient(transparent 58%, var(--mark) 58%); }
.ccard-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ccard-name { margin: 0; font: 650 1.35rem/1.15 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.ccard-meta { font-size: .86rem; color: var(--ink-3); }
.ccard-pri { font-size: .93rem; color: var(--ink-2); line-height: 1.45; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink);
  font: 700 1rem var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); object-fit: cover; }
.avatar-sm { width: 38px; height: 38px; font-size: .85rem; }
.avatar-lg { width: 88px; height: 88px; font: 700 2.1rem var(--serif); border-width: 3px; }
.badge { display: inline-block; vertical-align: .25em; font: 800 .62rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 6px; background: var(--mark); color: var(--mark-ink); margin-left: 6px; }
.badge-soft { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink-2); }

.sorter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 .74rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-top: 14px; }
.sorter [role="group"] { display: flex; flex-wrap: wrap; }
.sorter button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 .85rem var(--sans); cursor: pointer; margin-left: -1px; }
.sorter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- issues list */
.igrid { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--hair); column-gap: 32px; }
.igrid li { border-bottom: 1px solid var(--hair); }
.igrid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 0; text-decoration: none; color: var(--ink-2); }
.igrid strong { color: var(--ink); font: 650 1.2rem/1.2 var(--serif); }
.igrid a:hover strong { background: linear-gradient(transparent 58%, var(--mark) 58%); }
.igrid span { font-size: .92rem; }
.igrid .muted { font-size: .8rem; margin-top: auto; padding-top: 6px; font-weight: 600; }

/* ---------- layout */
.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 0; } }
.panel { background: var(--surface); border: 1px solid var(--hair); border-top: 3px solid var(--rule); padding: 4px 22px 14px; margin-top: 52px; }
.panel h2 { margin-top: .7em; font-size: 1.45rem; }
.dates { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.dates li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.dates time { font: 700 .8rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.dates li.past { color: var(--ink-3); }
.dates li.past time { text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 520px) { .dates li { grid-template-columns: 1fr; gap: 2px; } }
.plain { list-style: none; padding: 0; }
.plain li { margin: 0 0 6px; }
.plain.inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- citations */
.cites { display: inline; }
.src { font: 700 .64rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); text-decoration: none;
  border-bottom: 1px solid var(--hair); padding: 0 1px 2px; margin: 0 3px; white-space: nowrap; vertical-align: .14em; }
.src::before { content: "\2197\00a0"; }
.src:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- profile */
.profile-head { display: flex; gap: 22px; align-items: flex-start; margin-top: 12px; }
.profile-head h1 { margin: .12em 0 .25em; }
.profile-head .dek { margin: 0; }
.profile-head .kicker { margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; margin: 16px 0; padding: 0; border-top: 1px solid var(--hair); }
.facts div { padding: 11px 0; border-bottom: 1px solid var(--hair); }
.facts dt { font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.facts dd { margin: 3px 0 0; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }
.pos { display: grid; grid-template-columns: 13em 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.pos h3 { margin: 0; font-size: 1.08rem; }
.pos h3 a { color: var(--ink); text-decoration: none; }
.pos h3 a:hover { text-decoration: underline; }
.pos p { margin: 0; }
@media (max-width: 680px) { .pos { grid-template-columns: 1fr; gap: 4px; } }
.none { color: var(--ink-3); font-style: italic; }
.sources { padding-left: 1.2em; font-size: .9rem; }
.sources li { margin-bottom: 6px; }
.compare-with { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.compare-with label { width: 100%; font-weight: 700; }
.compare-with select { min-height: 46px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; max-width: 100%; }
.pager { display: grid; grid-template-columns: 1fr 1fr; margin: 48px 0 10px; border-top: 3px solid var(--rule); }
.pager a { display: flex; flex-direction: column; padding: 14px 0; text-decoration: none; color: var(--ink); font: 650 1.2rem var(--serif); }
.pager a[rel="next"] { text-align: right; border-left: 1px solid var(--hair); }
.pager .muted { font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- tables */
.table-scroll { position: relative; overflow-x: auto; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--hair); margin: 14px 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--hair); }
thead th { font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
.mtable th[scope="row"] { width: 48%; font-weight: 650; }
.m-out { display: block; font-weight: 400; color: var(--ink-3); font-size: .84rem; margin-top: 3px; }
.m-note { color: var(--ink-2); }
.stance { display: inline-block; font: 800 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 5px 7px; white-space: nowrap; }
.stance-yes { background: var(--yes-bg); color: var(--yes); }
.stance-no { background: var(--no-bg); color: var(--no); }
.stance-mixed, .stance-unsure { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hair); }
.stance-none { color: var(--ink-3); font-weight: 500; }
.ctable { min-width: 980px; }
.ctable th[scope="row"] { position: sticky; left: 0; background: var(--bg); min-width: 140px; z-index: 1; font: 650 1rem var(--serif); box-shadow: 1px 0 0 var(--hair); }
.ctable thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--bg); }
.ctable thead th a { color: var(--ink); text-decoration: none; font: 650 1rem var(--serif); text-transform: none; letter-spacing: 0; }
.ctable td { min-width: 220px; }
.ctable.is-filtered { min-width: 0; }
.ctable [data-col].is-hidden { display: none; }
.mx { min-width: 760px; }
.mx td { text-align: center; }
.mx th[scope="row"] { position: sticky; left: 0; background: var(--bg); white-space: nowrap; box-shadow: 1px 0 0 var(--hair); font-weight: 650; }
.mx th[scope="row"] a { color: var(--ink); text-decoration: none; }
.mx abbr { text-decoration: none; }
.mkey { font-size: .9rem; color: var(--ink-2); padding-left: 1.2em; }
.mkey li { margin-bottom: 6px; }

/* ---------- compare picker */
.picker fieldset { border: 0; border-top: 3px solid var(--rule); padding: 10px 0 0; margin: 18px 0 0; }
.picker legend { font: 700 .74rem var(--sans); text-transform: uppercase; letter-spacing: .12em; padding: 0 10px 0 0; color: var(--ink-3); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 20px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; border-bottom: 1px solid var(--hair); font-weight: 500; }
.pick input { width: 20px; height: 20px; accent-color: var(--ink); }
.picker-status { min-height: 1.6em; margin: 10px 0 0; color: var(--ink-3); font-size: .9rem; }

/* ---------- issue page */
.explainer { border-left: 6px solid var(--mark); padding: 2px 0 2px 20px; margin: 16px 0 8px; max-width: 46em; font: 400 1.12rem/1.6 var(--serif); color: var(--ink-2); }
.explainer p { margin: 0; }
.iposlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.ipos { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.ipos h3 { margin: 0 0 4px; }
.ipos h3 a { color: var(--ink); text-decoration: none; }
.ipos h3 a:hover { background: linear-gradient(transparent 58%, var(--mark) 58%); }
.ipos p { margin: 0; }

/* ---------- how to vote */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0; border-top: 3px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; padding: 16px 0 6px; border-bottom: 1px solid var(--hair); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 2.1rem/1 var(--serif); letter-spacing: -.03em; grid-row: span 3; }
.steps li > * { grid-column: 2; }
.steps h2 { font-size: 1.35rem; margin: .1em 0 .3em; border: 0; padding: 0; }
.faq { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 14px 0; font: 650 1.08rem var(--serif); min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 8px; max-width: 46em; }
#h-faq + .faq { border-top: 1px solid var(--hair); }
.members { list-style: none; padding: 0; border-top: 1px solid var(--hair); }
.members li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.rules { padding-left: 1.2em; }
.rules li { margin-bottom: 10px; }

/* ---------- footer */
.site-footer { margin-top: 80px; background: #141414; color: #cfc9bd; font-size: .9rem; }
.site-footer a { color: #f6f3ec; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-top: 36px; padding-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 6px; } }
.footer-brand { font: 800 1.4rem var(--sans); letter-spacing: -.035em; color: #f6f3ec; margin-bottom: .5em; }
.footer-brand b { color: var(--mark); }
.footer-h { font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: #f6f3ec; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1em; }
.site-footer li { margin-bottom: 4px; }
.site-footer .muted { color: #a29b8e; }
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--hair); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { border-top: 1px solid var(--hair); } }

/* ---------- practice ballot */
.ballot { background: var(--surface); border: 1px solid var(--hair); padding: 16px 18px; max-width: 560px; margin: 20px 0; }
.ballot-title { font: 700 .76rem var(--sans); text-transform: uppercase; letter-spacing: .1em; text-align: center; color: var(--ink-3); margin: 4px 0 14px; }
.ballot-race { border: 2px solid var(--ink); padding: 0; margin: 0 0 16px; }
.ballot-race legend { display: block; width: 100%; float: left; text-align: center; background: var(--ink); color: var(--bg); padding: 9px; }
.ballot-race legend + * { clear: both; }
.race { display: block; font: 800 1.05rem var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.race-rule { display: block; font-weight: 600; font-size: .86rem; }
.race-sub { display: block; font-size: .76rem; opacity: .8; }
.ballot-list { list-style: none; padding: 0; margin: 0; }
.ballot-list li { display: flex; align-items: center; border-bottom: 1px solid var(--hair); }
.oval-row { flex: 1; display: flex; align-items: center; gap: 14px; padding: 10px 12px; min-height: 50px; cursor: pointer; }
.oval-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oval { flex: none; width: 32px; height: 19px; border: 2px solid var(--ink); border-radius: 50%; }
.oval-row input:checked + .oval { width: 26px; height: 26px; margin: 0 3px; border-color: #1f7a3d; background: #1f7a3d; display: grid; place-items: center; }
.oval-row input:checked + .oval::after { content: "\2713"; color: #fff; font: 900 .95rem/1 var(--sans); }
.oval-row input:focus-visible + .oval { outline: 3px solid var(--focus); outline-offset: 2px; }
.oval-row input:disabled ~ .bn { color: var(--ink-3); }
.bn { font-weight: 650; }
.bn-more { font-size: .82rem; padding: 10px 12px; font-weight: 600; }
.ballot-list li:has(input:checked) { background: var(--yes-bg); }
.ballot-count { margin: 0; padding: 9px 12px; font-size: .9rem; color: var(--ink-2); min-height: 2.4em; }
.ballot-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }

/* ---------- left-to-right gauge: neutral tones, no party colors */
.gauge { display: block; margin-top: 10px; max-width: 420px; }
.gauge-track { position: relative; display: block; height: 6px;
  background: linear-gradient(90deg, #56707d 0%, #a8b2b4 35%, #c9c3b6 50%, #c4a77c 65%, #8a5f2a 100%); }
.gauge-track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ink-3); }
.gauge-mark { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; transform: translateY(-50%) rotate(45deg);
  background: var(--ink); box-shadow: 0 0 0 2px var(--bg); z-index: 1; }
.gauge-ends { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font: 600 .66rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.gauge-ends > span { flex: 1; }
.gauge-ends > span:nth-child(2) { text-align: center; }
.gauge-ends > span:last-child { text-align: right; }
.gauge-lean { display: block; margin-bottom: 5px; font: 600 .7rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.gauge-lean b { color: var(--ink); font-weight: 800; }
.gauge-lg .gauge-track { height: 8px; }
.gauge-lg .gauge-mark { width: 18px; height: 18px; margin-left: -9px; }
.profile-gauge { max-width: 560px; margin: 22px 0 8px; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.profile-gauge .gauge { max-width: none; }
.profile-gauge .note { margin: 10px 0 0; }
.gauge-note { border-left: 6px solid var(--mark); padding-left: 14px; margin-top: 14px; }

/* ---------- phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav a { padding: 9px 8px; font-size: .86rem; }
  .profile-head { gap: 14px; }
  .profile-head .avatar-lg { width: 58px; height: 58px; font-size: 1.4rem; }
  .profile-head > div { min-width: 0; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick { font-size: .9rem; }
  .ctable, .ctable.is-filtered { min-width: 0; }
  .ctable thead { display: none; }
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; width: auto; }
  .ctable tr { border-bottom: 3px solid var(--rule); }
  .ctable th[scope="row"] { position: static; box-shadow: none; background: transparent; font-size: 1.15rem; padding: 14px 0 4px; }
  .ctable td { min-width: 0; padding: 8px 0; }
  .ctable td::before { content: attr(data-label); display: block; font: 800 .68rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 2px; }
  .ctable [data-col].is-hidden { display: none; }
  .mx { min-width: 620px; font-size: .84rem; }
  .mx th[scope="row"] { white-space: normal; width: 104px; padding: 8px 8px 8px 0; }
  .mx thead th { padding: 8px 6px; }
  .mx td { padding: 8px 4px; }
  .mx .stance { padding: 4px 5px; }
  .steps li { grid-template-columns: 48px 1fr; }
  .steps li::before { font-size: 1.6rem; }
}

/* ---------- blog */
.post-list { list-style: none; padding: 0; margin: 12px 0 8px; border-top: 1px solid var(--hair); }
.post-item { padding: 16px 0 14px; border-bottom: 1px solid var(--hair); }
.post-item .kicker { margin: 0 0 6px; }
.post-head { margin: 0 0 6px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.15; }
.post-head a { color: var(--ink); text-decoration: none; }
.post-head a:hover { background: linear-gradient(transparent 58%, var(--mark) 58%); }
.post-sum { margin: 0 0 6px; color: var(--ink-2); max-width: 46em; }
.post-when { margin: 0; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.sub-h { margin: 28px 0 8px; font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.chips[hidden] { display: none; }
.chip { min-height: 38px; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font: 700 .8rem var(--sans); cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.post { max-width: 46em; }
.post h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); margin: .2em 0 .3em; overflow-wrap: break-word; }
.post .kicker a { color: inherit; text-decoration: none; }
.post .kicker a:hover { color: var(--ink); text-decoration: underline; }
.byline { font: 500 .88rem/1.5 var(--sans); color: var(--ink-3); margin: 16px 0 24px; padding-top: 10px; border-top: 1px solid var(--hair); }
.byline b { color: var(--ink); font-weight: 700; }
.prose { font: 400 1.15rem/1.65 var(--serif); color: var(--ink); overflow-wrap: break-word; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.05em; }
.prose h2 { font-size: 1.55rem; margin: 1.35em 0 .4em; }
.prose h3 { font-size: 1.22rem; margin: 1.3em 0 .35em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { padding: 2px 0 2px 18px; border-left: 4px solid var(--mark); color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 1.6em 0; }
.draft-note { background: var(--accent-soft); border-left: 6px solid var(--mark); padding: 10px 14px; margin: 20px 0 0; font: 500 .92rem/1.5 var(--sans); }
.howmade { background: var(--surface); border: 1px solid var(--hair); border-top: 3px solid var(--rule); padding: 4px 20px 8px; margin: 40px 0 8px; font-size: .95rem; }
.howmade h2 { font-size: 1.2rem; margin: .75em 0 .3em; }
@media (max-width: 520px) { .howmade { padding: 2px 14px 6px; } .prose { font-size: 1.08rem; } }

/* ---------- print */
@media print {
  .site-header, .ebar, .site-footer, .picker, .sorter, .crumbs, .pager, .compare-with, .cta-row, .countdown, .skip,
  .ballot-actions, .bn-more, .chips, .howmade { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .table-scroll { overflow: visible; }
  .ctable { min-width: 0; }
  .ctable th[scope="row"], .mx th[scope="row"] { position: static; }
  a { color: #000; }
  .ballot { border: 0; padding: 0; }
  .oval-row input:checked + .oval { background: #000; }
  .gauge-track, .ballot-race legend, .stance { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* ---------- issues: three-vote spotlight and fact strip */
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--hair); }
@media (max-width: 900px) { .sp-grid { grid-template-columns: 1fr; } }
.sp-card { padding: 16px 0 10px; border-bottom: 1px solid var(--hair); }
.sp-card h3 { margin: 0 0 6px; font-size: 1.35rem; }
.sp-q { font-size: .92rem; color: var(--ink-2); margin-bottom: 6px; }
.sp-row { padding: 8px 0; border-top: 1px dashed var(--hair); }
.sp-row .stance { margin-bottom: 4px; }
.sp-row p { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; }
.sp-row a { color: var(--ink); }
.sp-more { margin: 10px 0 0; font: 700 .85rem var(--sans); }
.facts-strip { margin: 18px 0 8px; border-top: 1px solid var(--hair); }
.facts-strip .qf-l .src { white-space: nowrap; }
@media (min-width: 761px) { .facts-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- candidates page: compact key-vote record under each candidate */
.compact { display: block; margin: -6px 0 16px 62px; padding-top: 10px; border-top: 1px dashed var(--hair); }
.compact > summary { list-style: none; cursor: pointer; }
.compact > summary::-webkit-details-marker { display: none; }
.compact-h { display: block; font: 700 .66rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 6px; }
.kv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; }
.kv { display: flex; align-items: baseline; gap: 6px; font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.kv-a { flex: none; width: 8.6em; box-sizing: border-box; white-space: nowrap; font: 800 .62rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 1px 5px; text-align: center; }
.kv-yes .kv-a { background: var(--yes-bg); color: var(--yes); }
.kv-no .kv-a { background: var(--no-bg); color: var(--no); }
.kv-unsure .kv-a, .kv-mixed .kv-a, .kv-none .kv-a { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hair); }
.compact-e { display: block; margin-top: 8px; font-size: .8rem; color: var(--ink-3); }
.hero-slim { padding-bottom: 18px; }
.hero-slim .countdown { margin: 18px 0 16px; }

/* ---------- practice ballot: share buttons */
.ballot-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.share-status { margin: 10px 0 0; min-height: 1.4em; font-size: .9rem; color: var(--ink-2); }


/* "Powered by" line under the wordmark, aligned with the text (past the oval) */
.brand-block { display: flex; flex-direction: column; padding: 8px 0 6px; }
.powered { font: 600 .9rem/1.2 var(--sans); letter-spacing: .03em; color: var(--ink-3); text-decoration: none; margin: 4px 0 0 58px; }
@media (max-width: 640px) { .brand { font-size: 1.75rem; gap: 12px; } .brand-mark { width: 36px; height: 21px; } .powered { font-size: .8rem; margin-left: 48px; } .header-row { min-height: 72px; } }
.powered:hover { color: var(--ink); text-decoration: underline; }

/* ---------- phones: compact candidate cards so three or more fit on screen */
@media (max-width: 640px) {
  .cgrid .ccard-link { gap: 12px; padding: 12px 0 8px; }
  .cgrid .avatar { width: 36px; height: 36px; font-size: .8rem; }
  .cgrid .ccard-name { font-size: 1.15rem; }
  .cgrid .ccard-meta { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cgrid .ccard-pri { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cgrid .gauge { margin-top: 6px; }
  .cgrid .gauge-track { height: 5px; }
  .cgrid .gauge-mark { width: 12px; height: 12px; margin-left: -6px; }
  .cgrid .gauge-ends { margin-top: 3px; font-size: .6rem; }
  .cgrid .gauge-lean { font-size: .64rem; margin-bottom: 3px; }
  .compact { margin: 0 0 10px 48px; padding-top: 6px; }
  .compact > summary { display: flex; align-items: center; gap: 6px; min-height: 32px; }
  .compact > summary::after { content: "Show ▾"; margin-left: auto; font: 700 .7rem var(--sans); letter-spacing: .04em; color: var(--link); text-transform: none; }
  .compact[open] > summary::after { content: "Hide ▴"; }
  .kv-list { grid-template-columns: 1fr; gap: 3px; }
}

/* the card link no longer fills the whole list item: the vote record sits below it */
.ccard:has(> .compact) { display: flex; flex-direction: column; }
.ccard:has(> .compact) > .ccard-link { height: auto; }

/* ---------- "watch them say it" links to the exact moment on YouTube */
.watch { display: inline-flex; align-items: center; gap: 4px; font: 700 .66rem/1 var(--sans); letter-spacing: .04em;
  color: var(--link); text-decoration: none; border: 1px solid currentColor; padding: 3px 6px; margin: 0 3px; white-space: nowrap; vertical-align: .12em; }
.watch:hover { background: var(--accent-soft); }
.watch-group { margin: 10px 0 14px; }
.watch-src { font-size: .85rem; color: var(--ink-3); margin: 0 0 6px; }
.watch-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.watch-list .watch { font-size: .74rem; padding: 6px 8px; margin: 0; min-height: 32px; }

.u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* ---------- incumbent voting record */
.rtable th[scope="row"] { width: auto; }
.rv-date { white-space: nowrap; font: 700 .78rem var(--sans); color: var(--ink-3); }
.rv-res { min-width: 200px; font-size: .88rem; }
@media (max-width: 640px) {
  .rtable { min-width: 0; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td, .rtable th { display: block; width: auto; }
  .rtable tr { padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .rtable td, .rtable th { border: 0; padding: 2px 0; }
}

/* ---------- whole ballot (/ballot/) */
.hero-more { margin: 14px 0 0; font-size: .95rem; color: var(--ink-2); }
.toc ul { margin: 6px 0 4px; }
.toc li { padding: 4px 0; line-height: 1.5; }
.race-group > h2 { margin-top: 56px; padding-bottom: 6px; border-bottom: 3px solid var(--rule); }
.brace { padding: 6px 0 18px; border-bottom: 1px solid var(--hair); }
.brace:last-child { border-bottom: 0; }
.brace h3 { margin: 22px 0 2px; font-size: 1.35rem; }
.race-meta { margin: 0 0 6px; font: 800 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.race-h { margin: 18px 0 0; font: 800 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.rcands { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.brace .src { display: inline-block; line-height: 1.3; }
.brace .watch { white-space: normal; display: inline-block; max-width: 100%; }
.rcands li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--hair); }
.rcands strong { font: 650 1.08rem var(--serif); }
.party { display: inline-block; margin-left: 6px; padding: 1px 7px; font: 700 .72rem var(--sans); border: 1px solid var(--hair); background: var(--surface-2); }
.rc-bio { display: block; margin-top: 3px; color: var(--ink-2); font-size: .93rem; }
.btable { min-width: 640px; }
.btable td { min-width: 200px; vertical-align: top; }
.btable th[scope="row"] { min-width: 150px; }
.stable th[scope="row"] { width: auto; }
@media (max-width: 760px) {
  .btable { min-width: 0; }
  .btable thead { display: none; }
  .btable, .btable tbody, .btable tr, .btable th, .btable td { display: block; width: auto; }
  .btable tr { border-bottom: 3px solid var(--rule); }
  .btable th[scope="row"] { position: static; box-shadow: none; background: transparent; font-size: 1.05rem; padding: 12px 0 4px; min-width: 0; }
  .btable td { min-width: 0; padding: 8px 0; }
  .btable td::before { content: attr(data-label); display: block; font: 800 .68rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 2px; }
}

/* ---------- quotes (/quotes/ and profiles) */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 14px 0 8px; }
.quote { margin: 0; padding: 14px 18px 12px; background: var(--surface); border: 1px solid var(--hair); border-left: 4px solid var(--mark); }
.quote.q-council, .quote.q-public-comment { border-left-color: var(--rule); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font: 400 1.08rem/1.55 var(--serif); }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: .85rem; color: var(--ink-3); }
.q-kind { font: 800 .7rem var(--sans); text-transform: uppercase; letter-spacing: .07em; }
.q-topic { font-style: italic; }
.q-note { margin: 8px 0 0; font-size: .88rem; color: var(--ink-2); }
.quote .watch { white-space: normal; }
.q-cand h2 { margin-top: 48px; padding-bottom: 6px; border-bottom: 3px solid var(--rule); }
.q-cand h2 a { color: var(--ink); text-decoration: none; }
.q-cand h2 .muted { font: 700 .78rem var(--sans); letter-spacing: .04em; margin-left: 6px; }
.toc-cols { columns: 2 220px; }
.cq { display: block; margin: 2px 0 4px; padding: 6px 10px; border-left: 3px solid var(--mark); background: var(--surface); }
.cq-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  height: 4.35em; font: italic 400 .9rem/1.45 var(--serif); color: var(--ink-2); }
.cq-text::before { content: "\201C"; }
.cq-text::after { content: "\201D"; }
.cq-src { display: block; margin-top: 3px; font: 700 .62rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
@media (max-width: 640px) { .cq-text { -webkit-line-clamp: 2; height: 2.9em; font-size: .85rem; } }

/* ---------- "Powered by MaineScanner": a slow highlighter gleam across the name */
.gleam { font-weight: 800; color: var(--ink-2);
  background: linear-gradient(100deg, var(--ink-2) 40%, #c9a227 48%, var(--mark) 50%, #c9a227 52%, var(--ink-2) 60%) 0 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gleam 6s ease-in-out 1.2s infinite; }
@keyframes gleam { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }
.powered:hover .gleam { -webkit-text-fill-color: var(--ink); animation: none; }
@media (prefers-reduced-motion: reduce) { .gleam { animation: none; -webkit-text-fill-color: currentColor; background: none; } }

/* ---------- share-your-ballot call to action (under the candidate list) */
.share-ballot { margin: 40px 0 28px; padding: 22px 22px 8px; background: var(--surface); border: 1px solid var(--hair); border-top: 6px solid var(--mark); }
.share-ballot h2 { margin: 0 0 4px; }
.share-ballot .dek { margin: 0 0 4px; font-size: 1.05rem; }
.share-ballot .ballot { background: var(--bg); margin: 14px 0 10px; }
.share-ballot .ballot-actions .btn-primary { font-size: 1rem; padding: 12px 18px; }
@media (max-width: 640px) { .share-ballot { padding: 16px 14px 4px; margin-left: -4px; margin-right: -4px; } }

/* ---------- approve / deny on candidate cards (personal, stays on this device) */
.ccard { position: relative; transition: background-color .35s ease; }
.verdict { display: flex; gap: 8px; margin: -6px 0 12px; }
.verdict[hidden] { display: none; }
.v-btn { flex: 1; min-height: 40px; border: 1.5px solid var(--hair); background: var(--surface); color: var(--ink-2);
  font: 800 .78rem var(--sans); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s; }
.v-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.v-btn:active { transform: scale(.97); }
.v-yes[aria-pressed="true"] { background: var(--yes-bg); color: var(--yes); border-color: var(--yes); }
.v-no[aria-pressed="true"] { background: var(--deny-bg); color: var(--deny); border-color: var(--deny); }
.ccard.is-yes { background: color-mix(in srgb, var(--yes-bg) 45%, transparent); box-shadow: inset 4px 0 0 var(--yes); }
.ccard.is-no { background: color-mix(in srgb, var(--deny-bg) 45%, transparent); box-shadow: inset 4px 0 0 var(--deny); }
.v-stamp { position: absolute; top: 14px; right: 4px; pointer-events: none; padding: 3px 9px; border: 3px solid currentColor; border-radius: 4px;
  font: 900 .95rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; opacity: 0; transform: rotate(-12deg); }
.is-yes .v-stamp { color: var(--yes); opacity: .9; }
.is-no .v-stamp { color: var(--deny); opacity: .9; }
.v-anim .v-stamp { animation: v-stamp .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.v-anim.is-yes { animation: v-pop .45s ease-out; }
.v-anim.is-no { animation: v-shake .4s ease-in-out; }
@keyframes v-stamp { 0% { opacity: 0; transform: rotate(-24deg) scale(2.6); } 60% { opacity: .95; } 100% { opacity: .9; transform: rotate(-12deg) scale(1); } }
@keyframes v-pop { 0% { transform: scale(1); } 40% { transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes v-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.verdict-bar { margin: 6px 0 10px; padding: 10px 12px; background: var(--surface); border-left: 4px solid var(--mark); font-size: .92rem; color: var(--ink-2); }
.verdict-bar[hidden], .verdict-pick[hidden] { display: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--link, var(--ink)); text-decoration: underline; cursor: pointer; font: inherit; }
.verdict-pick { margin: 6px 0 12px; font-size: .92rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.verdict-pick [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .v-anim .v-stamp, .v-anim.is-yes, .v-anim.is-no { animation: none; } }
@media print { .verdict, .v-stamp, .verdict-bar, .verdict-pick { display: none !important; } }

/* ---------- spam-deny escalation: more stamps, a combo counter, harder shakes, flying shards */
.v-stamp-x { position: absolute; pointer-events: none; z-index: 2; padding: 2px 8px; border: 3px solid var(--deny); border-radius: 4px; color: var(--deny);
  background: color-mix(in srgb, var(--bg) 35%, transparent); font: 900 .9rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  transform: rotate(var(--r, -12deg)) scale(var(--s, 1)); animation: v-slam .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes v-slam { 0% { opacity: 0; transform: rotate(var(--r)) scale(calc(var(--s) * 3)); } 100% { opacity: .9; transform: rotate(var(--r)) scale(var(--s)); } }
.v-combo { position: absolute; z-index: 3; top: -10px; left: -6px; padding: 3px 9px; border-radius: 999px; background: var(--deny); color: #fff;
  font: 900 .9rem/1 var(--sans); transform: scale(var(--cs, 1)) rotate(-6deg); transform-origin: left top; pointer-events: none; }
.v-combo.pop { animation: v-combo .3s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes v-combo { 0% { transform: scale(calc(var(--cs) * 1.8)) rotate(-14deg); } 100% { transform: scale(var(--cs)) rotate(-6deg); } }
.v-anim.is-no.v-big { animation: v-shake-big .45s ease-in-out; }
@keyframes v-shake-big { 0%, 100% { transform: translate(0, 0); } 15% { transform: translate(calc(var(--shake) * -1), calc(var(--shake) * .3)); }
  30% { transform: translate(var(--shake), calc(var(--shake) * -.3)); } 45% { transform: translate(calc(var(--shake) * -.7), 0); }
  60% { transform: translate(calc(var(--shake) * .5), calc(var(--shake) * .2)); } 80% { transform: translate(calc(var(--shake) * -.25), 0); } }
.v-bit { position: absolute; z-index: 4; pointer-events: none; color: var(--deny); font: 900 1rem/1 var(--sans); animation: v-bit .8s ease-out forwards; }
@keyframes v-bit { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .v-stamp-x, .v-combo.pop, .v-anim.is-no.v-big { animation: none; } }
@media print { .v-stamp-x, .v-combo, .v-bit { display: none !important; } }

/* ---------- "Show leanings" toggle: the left-right estimate is hidden until asked for */
html.lean-off .gauge, html.lean-off .profile-gauge .note { display: none; }
.lean-toggle, .sorter .lean-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
  font: 800 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.lean-toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lean-toggle[hidden] { display: none; }
.lean-ico { flex: none; }
.lean-toggle .lean-ico:first-child { color: #2f5fa7; }
.lean-toggle .lean-ico:last-child { color: #b3322d; }
.lean-toggle[aria-pressed="true"] .lean-ico:first-child { color: #9cc0f2; }
.lean-toggle[aria-pressed="true"] .lean-ico:last-child { color: #f2a19c; }
@media (max-width: 640px) { .sorter .lean-toggle { margin-left: 0; width: 100%; justify-content: center; } }
.profile-gauge { display: flow-root; }
.profile-gauge .lean-toggle { float: right; margin: 0 0 10px 12px; }
html.lean-off .profile-gauge { padding: 10px 0; }
.lean-anim .gauge { animation: lean-in .45s ease-out both; }
@keyframes lean-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lean-anim .gauge { animation: none; } }
@media print { html.lean-off .gauge { display: block; } .lean-toggle { display: none; } }

/* ---------- spam-approve: the same escalation in green, with a growing bounce instead of a shake */
.v-stamp-x.k-yes { border-color: var(--yes); color: var(--yes); }
.v-combo.k-yes { background: var(--yes); color: var(--bg); }
.v-bit.k-yes { color: var(--yes); }
.v-anim.is-yes.v-big { animation: v-bounce .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes v-bounce { 0% { transform: scale(1); } 35% { transform: scale(var(--pop, 1.02)) translateY(-3px); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .v-anim.is-yes.v-big { animation: none; } }

/* ---------- spam-approve reward: the candidate's picture with a heart on it (every 8th Approve click) */
.v-love { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  pointer-events: none; overflow: hidden; background: color-mix(in srgb, var(--bg) 55%, transparent); animation: v-love-in .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.v-love.out { animation: v-love-out .5s ease-in forwards; }
.v-love-pic { position: relative; display: block; }
.v-love-av { width: 120px !important; height: 120px !important; border-radius: 50%; border: 4px solid var(--yes) !important; font: 700 3rem var(--serif) !important;
  background: var(--surface); object-fit: cover; display: grid; place-items: center; }
.v-love-heart { position: absolute; right: -18px; bottom: -10px; width: 58px; height: 54px; fill: #e0245e; stroke: #fff; stroke-width: 1.2;
  animation: v-beat .7s ease-in-out .4s infinite; transform-origin: center; }
.v-love-name { font: 800 1.1rem var(--serif); color: var(--ink); background: var(--surface); padding: 2px 10px; border: 2px solid var(--yes); }
.v-love-float { position: absolute; bottom: -20px; color: #e0245e; font-size: calc(var(--fs, 1) * 1.2rem); animation: v-float 1.9s ease-out both; }
@keyframes v-love-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes v-love-out { to { opacity: 0; transform: scale(1.08); } }
@keyframes v-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.22); } 60% { transform: scale(.96); } }
@keyframes v-float { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-260px) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .v-love, .v-love.out, .v-love-heart, .v-love-float { animation: none; } .v-love-float { display: none; } }
@media print { .v-love { display: none !important; } }

/* ---------- swipe mode (one candidate at a time, swipe right to approve / left to deny) */
.verdict-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.swipe-open { margin-left: auto; }
.swipe-open[hidden] { display: none; }
html.sw-open { overflow: hidden; }
.swipe { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(3px); }
.swipe[hidden] { display: none; }
.sw-head { width: min(400px, 100%); display: flex; justify-content: space-between; align-items: center; font: 800 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.sw-x { width: 40px; height: 40px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.sw-deck { position: relative; width: min(400px, 100%); height: min(600px, 70vh); }
.sw-card { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; overflow: hidden; background: var(--surface);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--mark); touch-action: pan-y; user-select: none; cursor: grab;
  transition: transform .28s ease-out, opacity .28s ease-out; }
.sw-card.dragging { transition: none; cursor: grabbing; }
.sw-next { transform: scale(.95) translateY(10px); opacity: .7; pointer-events: none; }
.sw-top { display: flex; gap: 14px; align-items: center; }
.sw-av { flex: none; width: 84px !important; height: 84px !important; border-radius: 50%; object-fit: cover; font: 700 2rem var(--serif) !important; border: 3px solid var(--ink) !important; display: grid; place-items: center; }
.sw-name { margin: 0; font: 650 1.5rem/1.15 var(--serif); color: var(--ink); }
.sw-meta { margin: 4px 0 0; font-size: .86rem; color: var(--ink-3); }
.sw-quote { margin: 0; font: italic 400 1.02rem/1.5 var(--serif); color: var(--ink-2); border-left: 3px solid var(--mark); padding-left: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sw-pri { margin: 0; font-size: .92rem; color: var(--ink-2); }
.sw-tag { position: absolute; top: 22px; padding: 4px 10px; border: 4px solid currentColor; border-radius: 6px; font: 900 1.5rem/1 var(--sans);
  text-transform: uppercase; letter-spacing: .12em; pointer-events: none; background: var(--surface); }
.sw-tag-yes { left: 16px; color: var(--yes); transform: rotate(-14deg); opacity: var(--yes-o, 0); }
.sw-tag-no { right: 16px; color: var(--deny); transform: rotate(14deg); opacity: var(--no-o, 0); }
.sw-card.fly-yes { transform: translateX(140vw) rotate(28deg); opacity: 0; }
.sw-card.fly-no { transform: translateX(-140vw) rotate(-28deg); opacity: 0; }
.sw-btns { display: flex; gap: 18px; align-items: center; }
.sw-btns[hidden], .sw-hint[hidden] { display: none; }
.sw-b { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); font: 900 1.6rem var(--sans); cursor: pointer;
  transition: transform .1s; }
.sw-b:active { transform: scale(.92); }
.sw-no { color: var(--deny); border-color: var(--deny); }
.sw-yes { color: var(--yes); border-color: var(--yes); }
.sw-back { width: 46px; height: 46px; font-size: 1.2rem; color: var(--ink-3); }
.sw-back:disabled { opacity: .35; cursor: default; }
.sw-hint { margin: 0; font-size: .82rem; color: var(--ink-3); text-align: center; }
.sw-done { cursor: default; justify-content: center; }
.sw-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.sw-list label { display: flex; align-items: center; gap: 10px; font: 600 1.05rem var(--serif); }
.sw-list input { width: 20px; height: 20px; accent-color: var(--ink); }
.sw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.share-ballot.flash { animation: sb-flash 1.4s ease-out; }
@keyframes sb-flash { 0% { box-shadow: 0 0 0 0 var(--mark); } 30% { box-shadow: 0 0 0 10px var(--mark); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .sw-card { transition: none; } .share-ballot.flash { animation: none; } }

.sw-card { overflow-y: auto; gap: 10px; padding: 18px 18px 16px; }
.sw-stands { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--hair); }
.sw-stands-h { margin: 0 0 6px; font: 800 .66rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.sw-stands .kv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.sw-stands .kv { font-size: .82rem; }
@media (max-height: 700px) { .sw-top .sw-av { width: 60px !important; height: 60px !important; font-size: 1.5rem !important; } .sw-name { font-size: 1.3rem; } }

/* ---------- "Play quote" audio button (fills as the clip plays) */
.v-play { flex: 0 0 auto; padding: 0 12px; color: var(--ink); position: relative; overflow: hidden; }
.v-play .v-play-ico { color: #c4302b; position: relative; }
.v-play .v-play-txt { position: relative; }
.v-play::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--mark); opacity: .55; transition: width .25s linear; }
.v-play.playing { border-color: var(--ink); }
@media print { .v-play { display: none !important; } }

/* ---------- /swipe/ landing (the deck opens on top of it) */
.swipe-intro { padding: 28px 0 8px; }
.swipe-intro h1 { margin: 6px 0 8px; }

.sw-play { align-self: flex-start; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); }

/* ---------- "Answered our survey" line under candidate names */
.survey-note { display: block; font: 700 .78rem var(--sans); color: var(--yes); }
.sw-survey { margin: 2px 0 0; }

/* ---------- swipe on phones: show the whole quote, use the full screen height, scroll inside the card if needed */
.sw-quote { display: block; -webkit-line-clamp: unset; overflow: visible; }
.sw-card { overscroll-behavior: contain; }
@media (max-width: 640px) {
  .swipe { padding: 10px 10px 12px; gap: 8px; justify-content: flex-start; }
  .sw-head { width: 100%; }
  .sw-deck { width: 100%; flex: 1; height: auto; min-height: 0; }
  .sw-card { padding: 14px 14px 12px; gap: 8px; box-shadow: 4px 4px 0 var(--mark); }
  .sw-top { gap: 10px; }
  .sw-top .sw-av { width: 54px !important; height: 54px !important; font-size: 1.35rem !important; border-width: 2px !important; }
  .sw-name { font-size: 1.25rem; }
  .sw-meta { font-size: .8rem; }
  .sw-quote { font-size: .95rem; line-height: 1.45; }
  .sw-pri { font-size: .86rem; }
  .sw-stands .kv { font-size: .78rem; }
  .sw-tag { font-size: 1.15rem; top: 12px; }
  .sw-btns { gap: 14px; }
  .sw-b { width: 56px; height: 56px; font-size: 1.4rem; }
  .sw-back { width: 42px; height: 42px; }
  .sw-hint { display: none; }
}
