/* On the Stand, "The ballot": every vote is a ballot line with two ovals, one filled. Members' marks are printed
   solid; yours are filled in by hand. Ovals are the only round things on the page. Violet ink on white stock,
   chosen because it is neither party's color. Amber means one thing only: no answer.
   Archivo sets the ballot (condensed for headings, as on printed ballots); Libre Caslon Text sets words that are
   quoted from someone else (statements and bill summaries). */
@font-face { font-family: 'Archivo fb'; src: local('Arial'); size-adjust: 98.4%; }
@font-face { font-family: 'Archivo fb'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); size-adjust: 98.4%; }
@font-face { font-family: 'Archivo fb68'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); size-adjust: 73%; }
@font-face { font-family: 'Archivo fb75'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); size-adjust: 80%; }
@font-face { font-family: 'Archivo fb82'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); size-adjust: 83.3%; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 100%; font-display: swap; src: url(fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/libre-caslon-text.woff2) format('woff2'); }

:root {
  /* --rule draws lines and boxes, --mark fills the ovals and bars. In light mode both are the ink; dark mode softens them. */
  --rule: #22112E; --mark: #22112E;
  --bg: #FBFAFC; --surface: #FFFFFF; --tint: #EFE9F4; --ink: #22112E; --muted: #5E5068; --line: #D6CCDE;
  --field: #3D1D5C; --onfield: #FFFFFF; --fieldmuted: #DCCFE8; --fieldline: #8B6FA6;
  --primary: #22112E; --onprimary: #FFFFFF; --primarytext: #22112E;
  --accent: #FFB000; --onaccent: #22112E;
  --c1: #CDBBF3; --c2: #A5DBAA; --c3: #86D3D6; --c4: #EBAFDB; --c5: #CCD181; --c6: #D2D0D8; --c7: #BFE3CF; --c8: #DCCBAD; --onfill: #22112E;
  --wns: #FFB000; --onwns: #22112E;
  --scbg: #3D1D5C; --scink: #FFFFFF; --scaccent: #FFB000; --sconaccent: #22112E; --scline: #8B6FA6;
  --fd: 'Archivo', 'Archivo fb68', 'Arial Narrow', Arial, sans-serif; --fd75: 'Archivo', 'Archivo fb75', 'Arial Narrow', Arial, sans-serif; --fd82: 'Archivo', 'Archivo fb82', Arial, sans-serif; --fb: 'Archivo', 'Archivo fb', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --fq: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --focus: #22112E; --pad: 18px; --floodfill: #5B2C8A; --hl: #E4D9EE;
  /* A hand-filled oval: used as a mask so it takes the ink of whatever it sits on. */
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M4.5 10.5 8 4.2 7.6 13.6 12 3.4 11.6 14.6 16 3.2 15.8 14.8 20.2 3.6 20 14.2 24 5 23.6 12.4 26 8.6' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* Dark follows the device, unless the reader picked a theme with the switch in the header (data-theme on <html>).
   The two selectors carry the same tokens; keep them in step. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1027; --surface: #241635; --tint: #2E1F42; --ink: #F2EBF8; --muted: #C3B5D1; --line: #3B2B50;
    --rule: #8A72A6; --mark: #D8C7EE;
    --field: #33184D; --fieldmuted: #D9CBE7; --fieldline: #8466A2;
    --primary: #D8C7EE; --onprimary: #1A1027; --primarytext: #F2EBF8;
    --focus: #F2EBF8; --floodfill: #F2EBF8; --hl: #3E2B57; color-scheme: dark;
    --tabink: #F2EBF8; --tabmuted: #C3B5D1;
    --pvink: #F2EBF8; --pvmuted: #C3B5D1; --pvline: #3B2B50; --pvtint: #2E1F42; --pvflood: #F2EBF8; --pvhl: #3E2B57; --pvrule: #8A72A6;
    --sun: block; --moon: none; --shadow: rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #1A1027; --surface: #241635; --tint: #2E1F42; --ink: #F2EBF8; --muted: #C3B5D1; --line: #3B2B50;
  --rule: #8A72A6; --mark: #D8C7EE;
  --field: #33184D; --fieldmuted: #D9CBE7; --fieldline: #8466A2;
  --primary: #D8C7EE; --onprimary: #1A1027; --primarytext: #F2EBF8;
  --focus: #F2EBF8; --floodfill: #F2EBF8; --hl: #3E2B57; color-scheme: dark;
  --tabink: #F2EBF8; --tabmuted: #C3B5D1;
  --pvink: #F2EBF8; --pvmuted: #C3B5D1; --pvline: #3B2B50; --pvtint: #2E1F42; --pvflood: #F2EBF8; --pvhl: #3E2B57; --pvrule: #8A72A6;
  --sun: block; --moon: none; --shadow: rgba(0, 0, 0, .6);
}
* { 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(--fb); font-stretch: 100%; }
h1, h2, h3, p, ul, blockquote, table { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.vh-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.h1 { font-family: var(--fd); font-stretch: 72%; font-size: 44px; line-height: 1.02; font-weight: 800; letter-spacing: .004em; text-wrap: balance; }
.t20 { font-family: var(--fd82); font-stretch: 82%; font-size: 23px; line-height: 1.22; font-weight: 700; letter-spacing: .005em; }
.t14 { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.t14 b, .t14 a, .t14 .link { color: var(--ink); }
.blk { display: block; }
.lbl { font-weight: 700; }

/* layout */
.top, main, .foot { margin: 0 auto; padding: 0 var(--pad); }
/* The header is the band across the top of a ballot. The row of marks under it is the strip of timing marks a
   scanner reads along a ballot's edge. */
.skip { position: absolute; left: 8px; top: -80px; z-index: 20; background: var(--surface); color: var(--ink); padding: 12px 16px; font-weight: 700; border: 2px solid var(--rule); }
.skip:focus { top: 8px; }
.top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding-bottom: 10px; background: var(--field); color: var(--onfield); --ink: var(--onfield); --rule: var(--onfield); --mark: var(--onfield); --focus: var(--onfield); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--onfield) 0 14px, transparent 14px 26px); background-position: var(--pad) 0; opacity: .9; }
.mark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--fd); font-stretch: 68%; font-weight: 800; font-size: 25px; letter-spacing: .005em; text-decoration: none; white-space: nowrap; color: var(--onfield); }
.mark::before { content: ""; width: 26px; height: 16px; border-radius: 50%; background: currentColor; flex: none; transform-origin: 0 50%; transition: transform .16s ease-out; }
.mark:hover::before, .mark:focus-visible::before { transform: scaleX(1.5); }
.mark { transition: gap .16s ease-out; }
.mark:hover, .mark:focus-visible { gap: 22px; }
main { padding-top: 16px; padding-bottom: 36px; min-height: 100vh; }
main:focus { outline: none; }
main > * + *, .issec > * + *, .mapsec > * + *, .preview > * + *, .how > * + *, .hero > * + * { margin-top: 20px; }
.after { margin-top: 22px; }
/* Links that stand on their own line get a full 44px target; links inside a sentence keep the line's rhythm. */
.after > .link, .after > a, .billlink > a { display: inline-flex; align-items: center; min-height: 44px; }
.rule { border-top: 1px solid var(--line); padding-top: 16px; }
.foot { position: relative; background: var(--field); color: var(--onfield); padding-top: 40px; padding-bottom: 44px; --ink: var(--onfield); --rule: var(--onfield); --mark: var(--onfield); --muted: var(--fieldmuted); --focus: var(--onfield); --hl: #5A3580; font-size: 15px; line-height: 1.5; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--bg) 0 14px, transparent 14px 26px); background-position: var(--pad) 0; }
.foot .end { font-family: var(--fd); font-stretch: 68%; font-weight: 800; font-size: 44px; line-height: 1; display: flex; align-items: center; gap: 14px; }
.foot .end::after { content: ""; flex: 1; height: 3px; background: var(--onfield); }
.footcols { margin-top: 18px; display: grid; gap: 14px; color: var(--fieldmuted); }
.footcols a { color: var(--onfield); }
.footcols p + p { margin-top: 8px; }
.powered { margin-top: 28px; font-size: 14px; color: var(--fieldmuted); }
.powered a { color: var(--onfield); }
.loading { color: var(--muted); }
.crumb { font-size: 14px; color: var(--muted); }
.crumb .link { font-size: 14px; }
.crumb .names { display: inline-block; margin-left: 10px; }

/* the menu: a frosted pill floating at the bottom of the screen on phones and tablets, and at the top, centered in the header, on desktops */
.tabbar { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px; border-radius: 28px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 12px 32px -10px var(--shadow), 0 2px 8px -3px var(--shadow); transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .2s ease-out; --ink: var(--tabink); --rule: var(--tabink); --mark: var(--tabink); --muted: var(--tabmuted); --focus: var(--tabink); }
.tabbar.away { transform: translateY(calc(100% + 28px)); opacity: 0; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 23px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background-color .2s ease-out, color .2s ease-out; }
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--tabink) 7%, transparent); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 800; background: color-mix(in srgb, var(--tabink) 14%, transparent); }
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* Anything the keyboard or a jump brings into view stops above the floating menu, never under it. */
html { scroll-padding-top: 16px; scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
:root { --tabink: #22112E; --tabmuted: #5E5068; --sun: none; --moon: block; --shadow: rgba(34, 17, 46, .28); }
.loc-chip { font: 700 15px/1 var(--fb); color: var(--onfield); background: none; border: 0; padding: 0 0 0 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.loc-chip u { font-weight: 400; text-underline-offset: 3px; }

/* controls: boxes are square, as printed forms are. Only marks are round. */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 10px 16px; border-radius: 0; border: 2px solid var(--rule); background: transparent; color: var(--ink); font: 700 18px/1.2 var(--fb); text-align: center; text-decoration: none; cursor: pointer; }
.btn, .sbtn { --flood: var(--tint); background-image: radial-gradient(ellipse 50% 160% at 0 50%, var(--flood) 99%, transparent 100%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .18s ease-out, transform .1s; }
.btn:not([disabled], [aria-disabled="true"], [aria-pressed="true"]):hover, .btn:focus-visible:not([aria-pressed="true"]), .sbtn:hover, .sbtn:focus-visible { background-size: 240% 100%; }
.btn.fill, .sbtn.wide:not(.alt) { background-color: var(--primary); border-color: var(--primary); color: var(--onprimary); --flood: var(--floodfill); }
.btn.sm { min-height: 48px; font-size: 16px; padding: 8px 12px; }
.btn[aria-pressed="true"] { background-color: var(--mark); border-color: var(--mark); color: var(--bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.btn[aria-disabled="true"] { pointer-events: none; }
.btn:not([disabled]):active { transform: translateY(1px); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link, main a:not(.btn, .sbtn), .foot a, .loc-chip u, details > summary { padding-top: 5px; padding-bottom: 5px; background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat; background-position: 0 50%; background-size: 0% 1.7em; transition: background-size .16s ease-out; }
.link:hover, .link:focus-visible, main a:not(.btn, .sbtn):hover, main a:not(.btn, .sbtn):focus-visible, .foot a:hover, .foot a:focus-visible, .loc-chip:hover u, details > summary:hover { background-size: 100% 1.7em; text-decoration-thickness: 2px; }
.loc .link, .crumb .link, .result a, .preview .link, .askpanel > p > .link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
label { display: block; font-weight: 700; }
input[type=text], input[type=search], input[type=url], textarea { width: 100%; font: 400 17px var(--fb); color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 0; padding: 12px; min-height: 52px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.field > * + * { margin-top: 6px; }
.warn { border-left: 4px solid var(--rule); padding-left: 10px; }
.msg { font-weight: 700; }

/* the home page opens on a field of violet: the question, the write-in box for your ZIP, and the states */
.hero, .mapsec { background: var(--field); color: var(--onfield); box-shadow: 0 0 0 100vmax var(--field); clip-path: inset(0 -100vmax); --ink: var(--onfield); --rule: var(--onfield); --mark: var(--onfield); --muted: var(--fieldmuted); --line: var(--fieldline); --focus: var(--onfield); --primary: var(--onfield); --onprimary: #22112E; --floodfill: #22112E; --tint: #55307A; --hl: #5A3580; }
.hero .btn.fill:not([disabled]):hover, .hero .btn.fill:focus-visible { color: #FFFFFF; }
.hero .btn.fill { transition: background-size .18s ease-out, color .12s ease-out .04s, transform .1s; }
.hero { margin-top: -16px; padding: 26px 0 30px; }
.hero .h1 { font-size: 54px; line-height: 1; font-stretch: 68%; letter-spacing: 0; }
.hero .h1 span { display: inline-block; }
.hero > .field { margin-top: 22px; }
.lede { font-size: 17px; line-height: 1.6; color: var(--fieldmuted); max-width: 34em; }
.lede .rolls { color: var(--onfield); font-weight: 600; font-variant-numeric: tabular-nums; }
.rolls.wait { visibility: hidden; }
.hero input.zip { background: transparent; color: var(--onfield); border: 2px solid var(--onfield); font: 800 34px/1 var(--fd75); font-stretch: 75%; letter-spacing: .22em; min-height: 66px; padding: 10px 14px; }
.hero input.zip::placeholder { font: 400 18px var(--fb); letter-spacing: 0; color: var(--fieldmuted); }
.hero .btn.fill { margin-top: 10px; min-height: 58px; }
.hero .rows button { color: var(--onfield); }
.mapsec { margin-top: 0 !important; padding: 6px 0 34px; }
.hero + .mapsec { padding-top: 8px; }
main > :not(.hero) + .mapsec { margin-top: 36px !important; padding-top: 28px; margin-bottom: -36px; }
.issec { margin-top: 34px !important; }

/* rows: issues, districts, members, search results. Each is a ballot line: a name, dots, and an oval to fill. */
.rows { list-style: none; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.rows button { width: 100%; min-height: 58px; text-align: left; background: none; border: 0; font: inherit; color: var(--ink); padding: 14px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rows button::after { content: ""; width: 28px; height: 17px; border: 2px solid var(--mark); border-radius: 50%; flex: none; order: 3; transition: transform .14s ease-out, background-color .14s ease-out; }
.rows button:hover::after, .rows button:focus-visible::after, .rows button:active::after, .rows .dtile.on::after { background: var(--mark); transform: scale(1.18); }

.rows button > span:first-child { flex: 1; }
#irows li:not(.news) button > span:first-child { flex: 0 1 auto; font-weight: 600; }
#irows li:not(.news) button::before { content: ""; order: 1; flex: 1; min-width: 0; align-self: flex-end; margin-bottom: 13px; border-bottom: 2px dotted var(--line); }
#irows li:not(.news) button > .t14 { order: 2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows .news b { display: block; }
#irows .later1::before { content: "Nominations and procedure"; display: block; padding: 26px 0 8px; font: 700 23px/1.15 var(--fd82); font-stretch: 82%; border-bottom: 3px solid var(--rule); }
#irows .later1 { break-before: avoid; }
.rows .dtile.on { font-weight: 700; }
.rows .mrow { padding: 14px 0; }
.rows .mrow > span:first-child > b { font-family: var(--fd75); font-stretch: 75%; font-weight: 800; font-size: 28px; line-height: 1.1; }
.rows .mrow .t14 a { display: inline-flex; align-items: center; min-height: 44px; }
.rows .mrow .t14 a + a { margin-left: 18px; }
.loc { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.loc b { font-family: var(--fd82); font-stretch: 82%; font-size: 21px; }

/* search */
.searchbox { display: flex; align-items: center; gap: 10px; min-height: 56px; border: 2px solid var(--rule); border-radius: 0; background: var(--surface); padding: 0 12px; font-weight: 400; }
.searchbox svg { color: var(--ink); flex: none; }
.searchbox input { border: 0; padding: 0; min-height: 50px; background: transparent; font-size: 17px; }
/* The field's border belongs to the box, so the focus box goes around the box, sized like the other inputs. */
.searchbox input:focus { outline: none; }
input:focus-visible, textarea:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.searchbox input:focus-visible { outline: none; }
.searchbox:has(input:focus-visible) { outline: 4px solid var(--focus); outline-offset: 3px; }
#iresults:empty { display: none; }
#iresults > * + * { margin-top: 12px; }
.empty { border-left: 5px solid var(--rule); padding: 4px 0 4px 14px; }
.empty > * + * { margin-top: 6px; }

/* the map: every state in its own shape. Hover or focus fills it; small states and territories are ballot ovals. */
.map { display: block; max-width: 600px; container-type: inline-size; --state: #5B3683; }
.usa { position: relative; }
.land { position: relative; aspect-ratio: 975 / 610; }
.shapes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st { fill: var(--state); stroke: var(--field); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .14s ease-out; }
.borders { fill: none; stroke: var(--field); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.leader { stroke: var(--fieldline); stroke-width: 1; vector-effect: non-scaling-stroke; display: none; pointer-events: none; }
.st:hover, .st.hot, .st.on, .st.sel { fill: var(--onfield); }
.land:has(.tile:focus-visible) .st.hot { stroke: var(--onfield); stroke-width: 3; paint-order: stroke; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; font: 700 13px/1 var(--fb); font-stretch: 88%; border: 2px solid var(--fieldline); background: transparent; color: var(--onfield); cursor: pointer; transition: transform .14s ease-out, background-color .14s ease-out, color .14s ease-out; }
/* The button at a state's label point is the label. Its hit area is clipped to the letters, so a label never
   takes a tap meant for the neighbouring state, and the rest of the shape stays the target. */
.tile.lbl { position: absolute; width: 30px; height: 24px; transform: translate(-50%, -50%); border: 0; background: none !important; color: var(--onfield); font-size: 11px; clip-path: inset(5.5px 6px); transition: color .14s ease-out; }
.tile.lbl.hot, .tile.lbl.on, .tile.lbl.sel { color: #22112E; }
.tile.lbl:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.noshapes .tile.lbl.hot, .noshapes .tile.lbl.on, .noshapes .tile.lbl.sel, .shapes:empty ~ .tile.lbl.hot, .shapes:empty ~ .tile.lbl.on, .shapes:empty ~ .tile.lbl.sel { color: var(--onfield); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
/* With a topic icon under the letters, the label is sized from the map's own width, so a label and its icon
   never reach the next state's label and each one takes its own taps. */
.searches .tile.lbl { height: min(4cqw, 30px); gap: 0; font-size: min(2.4cqw, 13px); line-height: 1; clip-path: inset(-4px 6px); }
.searches .tile.lbl[class*=" c"] { color: var(--onfill); }
.searches .tile.lbl svg { width: min(2cqw, 12px); height: min(2cqw, 12px); flex: none; }
.tile.so { position: relative; z-index: 0; width: 44px; height: 44px; border: 0; background: none !important; flex: none; }
.tile.so::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 8px; bottom: 8px; border: 2px solid var(--fieldline); border-radius: 50%; transition: background-color .14s ease-out, transform .14s ease-out; }
.ne, .terr { display: flex; flex-wrap: wrap; gap: 0 7px; margin-top: 6px; }
.terr { margin-top: 0; }
.tile.so:not([disabled]):hover, .tile.so:focus-visible, .tile.so.hot, .tile.so.on, .tile.so.sel { color: #22112E; }
.tile.so:not([disabled]):hover::before, .tile.so:focus-visible::before, .tile.so.hot::before, .tile.so.on::before, .tile.so.sel::before { background: var(--onfield); border-color: var(--onfield); }
.tile.so:not([disabled]):hover::before { transform: scale(1.1); }
.tile.so.sel::before { outline: 3px solid var(--onfield); outline-offset: 2px; }
.tile.so.c1::before { background: var(--c1); } .tile.so.c2::before { background: var(--c2); } .tile.so.c3::before { background: var(--c3); } .tile.so.c4::before { background: var(--c4); } .tile.so.c5::before { background: var(--c5); } .tile.so.c6::before { background: var(--c6); } .tile.so.c7::before { background: var(--c7); } .tile.so.c8::before { background: var(--c8); }
.tile.so[class*=" c"]::before { border-color: transparent; }
.tile.so.tie::before { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--fieldline) 3px 5px); border-color: var(--fieldmuted); }
.tile.so.nd::before { border-style: dashed; border-color: var(--fieldmuted); }
/* Every state and territory by name. Each row is a ballot line and a 44 px target. */
.picklist { margin-top: 10px; }
.picklist > summary { min-height: 48px; text-decoration: underline; text-underline-offset: 3px; }
.picks { list-style: none; padding: 0; margin: 4px 0 0 !important; columns: 2; column-gap: 24px; }
.picks li { break-inside: avoid; border-bottom: 1px solid var(--fieldline); }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 6px 0; background: none; border: 0; font: 600 16px/1.2 var(--fb); color: var(--onfield); text-align: left; cursor: pointer; }
.pick::after { content: ""; flex: none; width: 28px; height: 17px; border: 2px solid var(--onfield); border-radius: 50%; transition: background-color .14s ease-out, transform .14s ease-out; }
.pick:not([disabled]):hover::after, .pick:focus-visible::after, .pick.on::after, .pick.sel::after { background: var(--onfield); transform: scale(1.15); }
.tile[disabled] { cursor: default; }
.sw[class*=" c"] { border-color: transparent; color: var(--onfill); }
.st.c1 { fill: var(--c1); } .st.c2 { fill: var(--c2); } .st.c3 { fill: var(--c3); } .st.c4 { fill: var(--c4); } .st.c5 { fill: var(--c5); } .st.c6 { fill: var(--c6); } .st.c7 { fill: var(--c7); } .st.c8 { fill: var(--c8); }
.st.tie { fill: var(--fieldline); } .st.nd { fill: transparent; stroke: var(--fieldmuted); stroke-dasharray: 3 3; }
.st.sel[class*=" c"], .st.hot[class*=" c"], .st.tie.hot, .st.nd.hot { stroke: var(--onfield); stroke-width: 3; paint-order: stroke; }
.st.hot[class*=" c"], .st:hover[class*=" c"] { filter: brightness(1.12); }
@container (min-width: 520px) {
  .tile.lbl { font-size: 13px; clip-path: inset(4px 4px); }
  .leader { display: inline; }
  .ne { position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .ne .tile { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 26px; transform: translate(-50%, -50%); pointer-events: auto; font-size: 12px; }
  .ne .tile::before { top: 1px; bottom: 1px; left: 2px; right: 2px; }
  /* In the column the ovals are 26 px apart, so a topic icon sits beside the letters, not under them. */
  .searches .ne .tile { flex-direction: row; gap: 2px; }
  .searches .ne .tile svg { width: 10px; height: 10px; }
}
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); } .c4 { background: var(--c4); }
.c5 { background: var(--c5); } .c6 { background: var(--c6); } .c7 { background: var(--c7); } .c8 { background: var(--c8); }
/* Ties and thin data stay neutral: no fill, a pattern and an icon, so they never read as a topic. */
.sw.tie { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--fieldline) 3px 5px); color: var(--onfield); border-color: var(--fieldmuted); }
.sw.nd { background: transparent; color: var(--fieldmuted); border-style: dashed; border-color: var(--fieldmuted); }
.sw { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; flex: none; vertical-align: -5px; margin-right: 8px; border: 1.5px solid transparent; }
.seg { display: flex; border: 2px solid var(--rule); border-radius: 0; overflow: hidden; }
.seg button { flex: 1; min-height: 44px; padding: 4px 8px; font: 700 15px/1.15 var(--fb); background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--field); }
.seg.sub { border-width: 1.5px; }
.seg.sub button { min-height: 44px; font-size: 14px; }
.legend { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.legend button, .legend .lg { display: flex; align-items: center; min-height: 44px; width: 100%; font: 400 16px/1.2 var(--fb); color: var(--ink); text-align: left; background: none; border: 0; padding: 0; }
.legend button { cursor: pointer; }
.legend button span { text-decoration: underline; text-underline-offset: 3px; }
.legend .lg { font-size: 14px; color: var(--muted); }
.preview { background: var(--bg); color: var(--pvink); padding: 16px; border-top: 6px solid var(--onfield); --ink: var(--pvink); --rule: var(--pvrule); --mark: var(--pvink); --muted: var(--pvmuted); --line: var(--pvline); --focus: var(--pvink); --primary: var(--pvink); --onprimary: var(--bg); --tint: var(--pvtint); --floodfill: var(--pvflood); --hl: var(--pvhl); }
:root { --pvrule: #22112E; --pvink: #22112E; --pvmuted: #5E5068; --pvline: #D6CCDE; --pvtint: #EFE9F4; --pvflood: #5B2C8A; --pvhl: #E4D9EE; }
.preview > * + * { margin-top: 6px; }
.preview .t20 { font-size: 30px; font-stretch: 68%; font-weight: 800; }
.preview .two { margin-top: 12px; }
.preview b .sw { margin-left: 4px; }

/* the record */
/* How to read the marks, as the instruction box on a ballot does. Wide screens only; on a phone the labels under each oval say it. */
.key { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 8px 0 0; font-size: 14px; color: var(--muted); }
.key li { display: flex; align-items: center; gap: 7px; }
.key .kl { display: none; }
.key i { flex: none; width: 24px; height: 14px; border-radius: 50%; border: 2px solid var(--mark); }
.key .k1 { background: var(--mark); }
.key .k2 { box-shadow: 0 0 0 3px var(--wns); background: var(--bg); margin: 0 3px; }
.key .k3, .rail .k3 { border-color: transparent; background: var(--mark); -webkit-mask: var(--scribble) center / 100% 100% no-repeat; mask: var(--scribble) center / 100% 100% no-repeat; }
.rail { display: none; }
.pagehead > * + * { margin-top: 12px; }
.missline { display: flex; align-items: center; gap: 10px; }
/* Each bill is a contest on the ballot: a heavy rule, a shaded title box, then the lines. */
.bill { padding: 0 0 34px; margin-top: 40px; border-top: 3px solid var(--rule); }
.bills > .bill:first-child { margin-top: 10px; }
.bill > * + * { margin-top: 14px; }
.bill > .t20 { background: var(--tint); margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: 12px var(--pad) 13px; font-family: var(--fd75); font-size: 25px; font-stretch: 75%; font-weight: 800; line-height: 1.08; text-wrap: balance; }
.sum { position: relative; margin-top: 14px; font: 400 17px/1.55 var(--fq); max-height: 3.1em; overflow: hidden; }
/* Two whole lines, cut where a line ends so never inside a word. A slot is kept at the end of line two for the ellipsis. */
.sum::before { content: ""; float: right; width: 1.2em; height: 1.55em; margin-top: 1.55em; }
.sum.cut::after { content: "\2026"; position: absolute; right: 0; top: 1.55em; width: 1em; }
.sum.open { max-height: none; }
.sum.open::before, .sum.open::after { content: none; }
.summore { display: none; }
.sum.cut + .summore, .sum.open + .summore { display: block; }
.bill > .summore { margin-top: 0; font-size: 14px; float: right; }
.bill > .crs { margin-top: 4px; min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; }
.summore .link { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; min-width: 44px; }
.vote { margin-top: 16px; scroll-margin-top: 10px; }
.vote > * + * { margin-top: 10px; }
.vote-row { padding-top: 10px; }
.vote-row + .vote-row { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.vote-row > * + * { margin-top: 14px; }
.who { font-weight: 700; }
.who .t14 { font-weight: 400; }
.vote-row .pos { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; }
.vote-row .word { font-family: var(--fd); font-stretch: 66%; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.005em; }
.vote-row.compact .pos { justify-content: flex-start; gap: 10px; margin-top: 4px; }
.vote-row.compact .word { font-family: var(--fb); font-stretch: 100%; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.vote-row.pO .word { font-family: var(--fb); font-stretch: 100%; font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.vote-row.pC .word, .vote-row.pP .word { font-size: 34px; }
/* The mark. Yes is always the left oval and No the right, so the same ink tells them apart by place and by word. */
.ovals { display: inline-grid; grid-template-columns: auto auto; gap: 0 10px; flex: none; }
.ov { display: grid; justify-items: center; gap: 3px; font: 600 12.5px/1 var(--fb); color: var(--muted); font-style: normal; }
.ov::before { content: ""; width: 48px; height: 28px; border: 2.5px solid var(--mark); border-radius: 50%; }
.ov.y::after { content: "Yes"; } .ov.n::after { content: "No"; }
.pY .ov.y::before, .pN .ov.n::before, .pC .ov.y::before { background: var(--mark); }
.pY .ov.y, .pN .ov.n { color: var(--ink); font-weight: 800; }
.pC .ov.n, .pC .ov::after { display: none; }
.pO .ov::before { border-color: var(--line); }
.compact .ovals { gap: 0 4px; order: -1; }
.compact .ov::before { width: 22px; height: 14px; border-width: 2px; }
.compact .ov::after { display: none; }
/* Silence is the one loud thing: an unmarked ballot, and the word on amber. */
.vote-row.pX .word { font-size: 30px; background: var(--wns); color: var(--onwns); padding: 5px 9px 4px; white-space: nowrap; }
.vote-row.pX.compact .word { font-size: 17px; padding: 2px 6px; }
.pX .ov::before { box-shadow: 0 0 0 4px var(--wns); }
.pX .ovals { gap: 0 14px; margin-right: 4px; }
.pX.compact .ov::before { box-shadow: 0 0 0 3px var(--wns); }
.pX.compact .ovals { gap: 0 8px; margin: 0 4px; }
.dot { width: 26px; height: 16px; border-radius: 50%; border: 2.5px solid var(--mark); flex: none; }
.dot.X { border-color: var(--wns); background: var(--wns); }
/* Your side of the ballot: two options, and you fill one in. */
.take.two .btn { justify-content: flex-start; gap: 10px; text-align: left; }
.take .btn::before, .qbtn::before { content: ""; width: 30px; height: 18px; border: 2px solid currentColor; border-radius: 50%; flex: none; }
.take .btn[aria-pressed="true"]::before, .qbtn[aria-pressed="true"]::before { border-color: transparent; background: currentColor; -webkit-mask: var(--scribble) center / 100% 100% no-repeat; mask: var(--scribble) center / 100% 100% no-repeat; }
.take .btn::before, .qbtn::before { transition: background-color .14s ease-out, transform .14s ease-out; }
.take .btn:not([aria-pressed="true"]):hover::before, .take .btn:not([aria-pressed="true"]):focus-visible::before, .qbtn:not([aria-pressed="true"]):hover::before, .qbtn:not([aria-pressed="true"]):focus-visible::before { border-color: transparent; background: currentColor; opacity: .55; -webkit-mask: var(--scribble) center / 100% 100% no-repeat; mask: var(--scribble) center / 100% 100% no-repeat; }
.take .btn.just::before, .qbtn.just::before { animation: mark .32s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes mark { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.take .btn[data-act="ask"]::before { content: none; }
.vote-row.compact .take { display: flex; gap: 20px; }
.qreact { display: flex; gap: 20px; margin-top: 4px; }
.qbtn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.qbtn::before { width: 24px; height: 15px; }
.qbtn[aria-pressed="true"] { font-weight: 700; text-decoration-thickness: 3px; }
.asked { font-size: 14px; color: var(--muted); }
.asked::first-line { color: var(--ink); }
.vote.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--tint); } 100% { background: transparent; } }
/* The one orchestrated moment: when a record opens, the ovals are marked, contest by contest. */
.enter .vote.head .ov::before { animation: cast .3s cubic-bezier(.3, .7, .3, 1) both; }
.enter .bill:nth-child(1) .ov::before { animation-delay: .12s; }
.enter .bill:nth-child(2) .ov::before { animation-delay: .26s; }
.enter .bill:nth-child(3) .ov::before { animation-delay: .4s; }
.enter .bill:nth-child(n+4) .ov::before { animation-delay: .54s; }
@keyframes cast { from { box-shadow: inset -60px 0 0 var(--bg); } to { box-shadow: inset 0 0 0 var(--bg); } }
@media (prefers-reduced-motion: reduce) {
  .vote.flash { animation: none; outline: 3px solid var(--focus); }
  .enter .vote.head .ov::before, .take .btn.just::before, .qbtn.just::before { animation: none; }
  .btn:not([disabled]):active { transform: none; }
}

/* the inline message and share card */
.askpanel > * + * { margin-top: 14px; }
.draft { border: 2px solid var(--rule); padding: 14px; background: var(--surface); }
.draft > * + * { margin-top: 10px; }
.opener { font-size: 17px; }
.addline { font-weight: 400; color: var(--muted); font-size: 15px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; }
.starters .t14 { flex-basis: 100%; margin: 0; }
.starter { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 22px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.starter:hover { background: var(--tint); }
/* Your own words go on ruled lines, like a write-in. */
.draft textarea { scroll-margin-bottom: 120px; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0 6px; line-height: 34px; min-height: 103px; background: repeating-linear-gradient(transparent 0 33px, var(--line) 33px 34px) local; resize: vertical; }
.script { border-left: 4px solid var(--rule); padding: 4px 0 4px 14px; }
.script > * + * { margin-top: 4px; }
.sharewrap { padding-top: 18px; border-top: 1px solid var(--line); }
.sharewrap > * + * { margin-top: 12px; }
.sharecard { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 1080 / 1350; border-radius: 0; background: var(--scbg); }
.sharegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 420px; }
.sbtn { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1.5px solid var(--rule); border-radius: 0; font: 700 15px var(--fb); color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; }
.sbtn.wide { grid-column: 1 / -1; }
#sharebox [hidden] { display: none; }
#sharebox .sharegrid { max-width: none; }
.sbtn.wide.alt { background-color: transparent; color: var(--ink); }

/* folded sections: a plus that turns to a minus */
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 700; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
details[open] > summary::before { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.fold.small > summary { font-size: 14px; font-weight: 400; }
.fold > :not(summary) { margin-top: 10px; }
.more-body .vote { border-top: 1px solid var(--line); padding-top: 10px; }
.between .intro { margin-top: 6px; }
.subh { font-weight: 700; margin-top: 16px; }
.vrow { border-top: 1px solid var(--line); }
.vrow > summary { font-weight: 400; padding: 8px 0; align-items: flex-start; }
.vrow > summary::before { margin-top: 6px; }
.vrow > .vote { margin: 0 0 12px 22px; }
.plainbill { border-top: 1px solid var(--line); padding: 10px 0; }

/* statements: one card per member. Their words are set in Caslon; ours never are. */
.mcard { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--rule); padding: 18px; margin-top: 16px; }
.mcard > * + * { margin-top: 12px; }
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 3px 9px; border: 1.5px solid var(--rule); }
.badge.dodge { background: var(--wns); color: var(--onwns); border-color: var(--wns); }
.badge.none { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.badge .sw { width: 12px; height: 12px; margin: 0; border-radius: 50%; }
.badge.dodge .sw { display: none; }
.stmt { border-top: 1px solid var(--line); padding-top: 14px; }
.mhead + .stmt, .mhead + .t14 + .stmt { margin-top: 12px; }
.stmt > * + * { margin-top: 9px; }
.topic { font-weight: 700; }
blockquote { font: 400 18px/1.55 var(--fq); border-left: 3px solid var(--rule); padding-left: 12px; }
.evm { margin-top: 12px; }
.evsec .above { margin: 16px 0; padding: 0 16px 0 14px; border-left: 2px solid var(--line); }

/* tallies */
table { border-collapse: collapse; width: 100%; font-size: 17px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td, thead th + th { text-align: right; }
thead th { border-bottom: 2px solid var(--rule); font-size: 14px; }
caption { text-align: left; padding-bottom: 6px; }
.tline span { display: block; }
.names ul { list-style: none; padding: 0; columns: 2; font-size: 14px; }
.silent { padding-left: 18px; }
.sidetally { border-top: 3px solid var(--rule); padding-top: 4px; }
.sidetally > * + * { margin-top: 8px; }
.sidetally .bar { display: flex; height: 18px; overflow: hidden; gap: 2px; }
.sides { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 14px; }
.sides li { display: flex; align-items: center; gap: 6px; }
.sides .sw, .sidetally .sw { width: 12px; height: 12px; border-radius: 0; margin: 0; vertical-align: -1px; }
/* Categories in ink and greys; amber only where someone would not say. */
.s1 { background: var(--mark); } .s2 { background: var(--muted); } .s3 { background: var(--fieldline); } .s5 { background: var(--line); border: 1px solid var(--muted); }
.s6 { background: var(--wns); } .s7 { background: repeating-linear-gradient(45deg, var(--wns) 0 3px, transparent 3px 6px); border: 1px solid var(--wns); }
.s8 { background: var(--c6); } .s9 { background: transparent; border: 1px solid var(--muted); }
.s4 { background: repeating-linear-gradient(45deg, var(--line) 0 4px, transparent 4px 8px); border: 1px solid var(--line); }
.evsec { margin-top: 24px; }

/* a take someone shared */
.shared { border: 2px solid var(--rule); border-top-width: 6px; padding: 12px 14px; background: var(--surface); }
.shared ul { padding-left: 18px; margin-top: 6px; }
.shared li + li { margin-top: 6px; }
.shared > * + * { margin-top: 8px; }
.shared .subh { margin-top: 0; }

/* the share-my-take sheet */
dialog.sheet { border: 0; border-top: 6px solid var(--rule); padding: 20px var(--pad) 24px; width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 0; background: var(--bg); color: var(--ink); overflow-y: auto; }
dialog.sheet::backdrop { background: rgba(34, 17, 46, .6); }
@media (min-width: 700px) { dialog.sheet { max-width: 560px; margin: auto; padding: 24px; } }
.stack > * + * { margin-top: 16px; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-top .link { display: inline-flex; align-items: center; min-height: 44px; }
.sharetext { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); padding: 12px; max-height: 40vh; overflow-y: auto; background: var(--surface); }
.found b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.found .hit { padding: 16px 0 6px; }
.found .hit > b { margin-bottom: 2px; }
.found .snip { margin: 4px 0 2px; }
.found .snip strong { color: var(--ink); }
.found .cv { list-style: none; padding: 0; margin: 4px 0 0; }
.found .cv li { border: 0; }
.found .cv button { min-height: 44px; padding: 6px 0; }
.how p { max-width: 66ch; line-height: 1.65; }
.how .t20 { margin-top: 30px; padding-top: 12px; border-top: 3px solid var(--rule); }

/* wider screens: the sheet opens out into columns, as a printed ballot does */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  .top { min-height: 78px; padding-left: max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))); padding-right: max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))); }
  .top::after { background-position: max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 0; }
  .mark { font-size: 30px; }
  .mark::before { width: 32px; height: 19px; }
  .tabbar { display: flex; left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); padding: 6px; border-radius: 32px; }
  .tabbar.away { transform: translate(-50%, calc(100% + 36px)); }
  .tab { flex-direction: row; gap: 8px; font-size: 15.5px; padding: 0 18px; min-height: 46px; }
  .tab svg { width: 18px; height: 18px; }
  main { max-width: 1240px; }
  .foot { padding: 64px max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 72px; }
  .foot::before { background-position: max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 0; }
  .foot .end { font-size: 68px; }
  .footcols { grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 28px; max-width: 980px; }
  main { padding-top: 44px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  main > * { grid-column: 2; min-width: 0; }
  main > .h1, main > .pagehead { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 28px; margin-top: 0; }
  main > .h1 + *, main > .pagehead + *, main > :first-child:not(.h1, .pagehead) { margin-top: 0; }
  .h1 { font-size: 68px; line-height: 1; }
  .pagehead .h1 { font-size: 60px; }
  .t20 { font-size: 26px; }

  /* home, not located yet: the question on the left, the states on the right, one violet field */
  main:has(> .hero) { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: 56px; padding-top: 0; }
  main > .hero { grid-column: 1; grid-row: 1; margin-top: 0; padding: 72px 0 80px; align-self: stretch; position: relative; z-index: 1; }
  .hero .h1 { font-size: 74px; line-height: 1; }
  .hero > .field, .hero > .btn, .hero > .rows, .hero > p { max-width: 440px; }
  .hero > .lede { max-width: 500px; font-size: 19px; margin-top: 22px; }
  main > .hero + .mapsec { grid-column: 2; grid-row: 1; border-top: 0; padding: 78px 0 80px; align-self: stretch; margin-bottom: 0; position: relative; z-index: 2; box-shadow: none; clip-path: none; }
  main > .issec { grid-column: 1 / -1; margin-top: 56px !important; }
  .issec #irows, body[data-page="issues"] #irows { columns: 3; column-gap: 56px; }
  #irows li { break-inside: avoid; }
  #irows .news { column-span: all; }
  .issec .searchbox { max-width: 560px; }

  /* home, located: issues in two columns, the states alongside */
  main:has(> .loc) { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  main:has(> .loc) > * { grid-column: 1; }
  main:has(> .loc) > .h1 { grid-row: auto; position: static; margin-top: 28px; }
  main:has(> .loc) > .h1 + * { margin-top: 18px; }
  main:has(> .loc) > .mapsec { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 28px; margin: 0 !important; padding: 28px 28px 32px; box-shadow: none; clip-path: none; }
  body[data-page="issues"] #irows { columns: 2; column-gap: 48px; }
  body[data-page="issues"] main { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); column-gap: 64px; }
  body[data-page="issues"] main > .h1 { font-size: 60px; }

  /* the record: the issue stays put on the left while the contests scroll */
  .key { display: grid; gap: 10px; margin-top: 28px; padding: 16px 0 0; border-top: 3px solid var(--rule); font-size: 15px; color: var(--ink); }
  .key li { gap: 12px; }
  .key .kl { display: inline; } .key .ks { display: none; }
  .key i { width: 34px; height: 20px; }
  .key .k2 { box-shadow: 0 0 0 4px var(--wns); margin: 0; }
  .rail { display: block; margin-top: 28px; padding-top: 16px; border-top: 3px solid var(--rule); font-size: 15px; }
  .rail ul { list-style: none; padding: 0; margin: 6px 0 22px; }
  .rail li { padding: 5px 0; }
  .rail .marks { display: flex; gap: 22px; margin-top: 8px; }
  .rail .marks span { display: inline-flex; align-items: center; gap: 8px; }
  .rail .marks i { width: 30px; height: 18px; }
  .rail .marks b { font: 800 26px/1 var(--fd75); font-stretch: 75%; }
  .rail .t14 { margin-top: 6px; }
  .bill > .t20 { margin-left: 0; margin-right: 0; padding: 16px 20px 17px; font-size: 30px; }
  .bills > .bill:first-child { margin-top: 0; }
  .sum { font-size: 18px; max-width: 64ch; }
  .vote-row .word { font-size: 54px; }
  .ov::before { width: 56px; height: 32px; }
  .compact .ov::before { width: 22px; height: 14px; }
  .vote.head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .vote.head > * { grid-column: 1 / -1; }
  .vote.head > .vote-row { grid-column: auto; }
  .vote.head > .vote-row:has(#askpanel), .vote.head > .vote-row:only-of-type { grid-column: 1 / -1; }
  .vote.head > .vote-row + .vote-row { border-top: 0; margin-top: 6px; padding-top: 8px; }
  .vote.head > .vote-row { align-self: start; }
  .vote.head .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vote.head > .vote-row:only-of-type:not(:has(#askpanel)) { max-width: calc(50% - 24px); }
  .askpanel { max-width: 560px; }
  .vote-row:has(#askpanel) > .pos, .vote-row:has(#askpanel) > .take { max-width: 560px; }
  .mcard { max-width: 720px; }
  .how { max-width: none; }
}

/* first paint: the home question is in the HTML; linked pages start on blank shapes at their final size */
.skel, .deep #app > .static { display: none; }
.deep .skel { display: block; }
.sk { background: var(--tint); }
.skel > * + *, .skbills > * + * { margin-top: 12px; }
.skbills { margin-top: 18px; }
.sk-line { height: 16px; } .sk-line.w30 { width: 30%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.sk-h1 { height: 44px; width: 70%; }
.sk-band { height: 54px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); margin-top: 22px !important; border-top: 3px solid var(--line); }
.sk-row { height: 128px; background: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sk-box { height: 56px; background: none; border: 2px solid var(--line); }
.sk-rows { height: 560px; background: repeating-linear-gradient(transparent 0 56px, var(--line) 56px 57px); }
.issec.static .sk-box { margin-top: 14px; }

/* a member's record: one long oval per answer, yes on the left and no on the right, widths in proportion */
.rec { display: block; margin-top: 12px; }
.rec.sk { height: 108px; }
.recbar { display: flex; gap: 3px; height: 30px; }
.recbar i, .recnums i { min-width: 0; border-radius: 15px; outline: 2.5px solid var(--mark); outline-offset: -2.5px; background: var(--mark); }
/* One ink for all: yes is solid, no is hatched, missed is empty. */
.recbar .rn, .recnums .rn { background: repeating-linear-gradient(135deg, var(--mark) 0 2.5px, transparent 2.5px 7px); }
.recbar .rp, .recbar .rm, .recnums .rp, .recnums .rm { background: transparent; }
.recbar .rp, .recnums .rp { outline-style: dashed; }
.recnums { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 8px; font-size: 16px; }
.recnums span { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.recnums i { width: 22px; height: 13px; outline-width: 2px; outline-offset: -2px; align-self: center; flex: none; }
.recnums b { font-family: var(--fd75); font-stretch: 75%; font-weight: 800; font-size: 24px; }
.rec .t14 { margin-top: 2px; }
.latest .lv { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.latest > span:first-child { display: inline-block; margin-right: 4px; }
.latest .compact { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
.rows .mrow .contact { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.rows .mrow .t14 a + a { margin-left: 0; }

@media (min-width: 900px) {
  .sk-band { margin-left: 0; margin-right: 0; }
  .sk-h1 { height: 60px; }
  .headshell + .skbills { margin-top: 0; }
  .recbar { height: 36px; } .recbar i { border-radius: 18px; }
  .recnums b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .tabbar, .tab, .btn, .sbtn, .link, main a, .foot a, .tile, .rows button::after, .rows button > span:first-child, .mark, .mark::before, .take .btn::before, .qbtn::before, details > summary, .loc-chip u { transition: none; }
  .rows button:hover::after, .mark:hover::before { transform: none; }
  .st, .tile.lbl, .tile.so::before, .pick::after { transition: none; }
}

/* Desktops: the menu moves to the top, centered in the header between the name and its buttons, and slides up out of
   the way while you read down. Below 1100px it stays at the bottom, where the header has no room and thumbs reach. */
@media (min-width: 1100px) {
  .tabbar { top: 6px; bottom: auto; }
  .tabbar.away { transform: translate(-50%, calc(-100% - 20px)); }
  body { padding-bottom: 0; }
  html { scroll-padding-top: 88px; scroll-padding-bottom: 16px; }
}

/* ---------- header buttons: share this page, light or dark ---------- */
.topbtns { display: flex; align-items: center; gap: 2px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--onfield); cursor: pointer; border-radius: 50%; transition: background-color .16s ease-out, transform .16s ease-out; }
.iconbtn:hover { background: rgba(255, 255, 255, .14); }
.iconbtn:active { transform: scale(.9); }
.iconbtn .sun { display: var(--sun); } .iconbtn .moon { display: var(--moon); }
.iconbtn svg { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.iconbtn[data-act="theme"]:hover svg { transform: rotate(-24deg); }
@media (max-width: 899px) { .loc-chip { min-width: 48px; justify-content: center; padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; } .loc-chip u { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 380px) { .mark { font-size: 21px; gap: 7px; } .mark::before { width: 22px; height: 14px; } }
@media (min-width: 900px) { .topbtns { margin-left: 8px; gap: 4px; } }
/* Switching themes wipes the new one in from the switch, as a circle. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.themeswap::view-transition-new(root) { animation: wipe .55s cubic-bezier(.4, 0, .2, 1); }
@keyframes wipe { from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 0)); } to { clip-path: circle(150vmax at var(--tx, 100%) var(--ty, 0)); } }

/* ---------- a one-line note that slides up from the bottom: "Link copied" ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 40; max-width: min(92vw, 460px); padding: 13px 18px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 16px; line-height: 1.35; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .28s cubic-bezier(.3, 1.3, .5, 1), opacity .2s ease-out; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 900px) { .toast { bottom: 100px; } }
@media (min-width: 1100px) { .toast { bottom: 32px; } }

/* ---------- the story in the news, on the home page ---------- */
.livedot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(255, 176, 0, .7); animation: live 2s ease-out infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 0, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 176, 0, 0); } }
.teaser { font-size: 16px; }
.teaser a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px 8px 14px; border: 2px solid var(--fieldline); font-weight: 700; color: var(--onfield); text-decoration: none; background-image: none; transition: border-color .16s ease-out, background-color .16s ease-out; }
.teaser a::after { content: "\2192"; margin-left: 10px; transition: transform .16s ease-out; }
.teaser a:hover, .teaser a:focus-visible { border-color: var(--onfield); background: rgba(255, 255, 255, .08); }
.teaser a:hover::after { transform: translateX(4px); }
.feature { position: relative; background: var(--surface); border: 2px solid var(--rule); border-top-width: 8px; padding: 22px 18px 20px; overflow: hidden; }
.feature > * + * { margin-top: 14px; }
.feature .kicker { display: flex; align-items: center; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feature .fh { font-family: var(--fd75); font-stretch: 75%; font-weight: 800; font-size: 32px; line-height: 1.08; letter-spacing: .004em; text-wrap: balance; }
.feature .fh em { font-style: normal; white-space: nowrap; background: var(--accent); color: var(--onaccent); padding: 0 .14em; }
.feature .bar { display: flex; height: 22px; gap: 2px; overflow: hidden; }
.fsides { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.fsides li { display: flex; align-items: center; gap: 7px; }
.fsides .sw { width: 13px; height: 13px; border-radius: 0; margin: 0; }
.fsides b { font: 800 22px/1 var(--fd75); font-stretch: 75%; }
.fnote { font-size: 16px; }
.fmine { list-style: none; padding: 0; display: grid; gap: 8px; }
.fmine li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.fmine .badge { font-size: 14px; }
.feature .two .btn { min-height: 52px; font-size: 16px; }
.feature .src { font-size: 14px; }
@media (min-width: 900px) {
  .feature { padding: 30px 32px 28px; }
  .feature .fh { font-size: 44px; max-width: 18em; }
  main > .feature { grid-column: 1 / -1; }
  main:has(> .loc) > .feature { grid-column: 1; }
  .feature .two { max-width: 560px; }
}
main > .issec + .feature, main > .mapsec + .feature { margin-top: 40px !important; }

/* ---------- getting them on the record ---------- */
.askwhy { font-size: 15px; }
.vote-row .askwhy { display: inline-flex; align-items: center; min-height: 44px; }
.onrecord { border-top: 3px solid var(--rule); padding-top: 18px; margin-top: 40px !important; }
.onrecord > * + * { margin-top: 12px; }
.onrecord > .t20 { font-family: var(--fd75); font-stretch: 75%; font-size: 25px; font-weight: 800; }
.onrecord .who { margin-top: 18px; }
.onrecord .btn { max-width: 560px; }
.askedrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.askedrow .link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 700; }
.shared .btn { margin-top: 12px; max-width: 420px; }
.jumplink { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- one-tap share on every vote ---------- */
.sharelink { display: inline-flex !important; align-items: center; gap: 5px; margin-left: 8px; min-height: 44px; min-width: 44px; font-weight: 700; }
.sharelink svg { flex: none; }
.result { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; }
.result .sharelink { margin-left: 12px; }

/* ---------- the map, alive: states draw in west to east, your state glows, a card follows the pointer ---------- */
.shapes.intro .st { animation: stIn .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * .7s); }
@keyframes stIn { from { opacity: 0; fill: var(--onfield); } 40% { opacity: 1; fill: var(--onfield); } to { opacity: 1; } }
.shapes.intro .borders, .shapes.intro .leader { animation: fadeIn .6s .5s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.st.on { animation: home 2.8s ease-in-out infinite; }
@keyframes home { 0%, 100% { fill: var(--onfield); } 50% { fill: var(--fieldmuted); } }
.st { transition: fill .2s ease-out, filter .2s ease-out; }
.st:hover, .st.hot { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55)); }
.maptip { position: absolute; z-index: 5; left: 0; top: 0; min-width: 180px; max-width: 260px; padding: 10px 12px; background: var(--bg); color: var(--pvink); border-top: 4px solid var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.96); transition: opacity .14s ease-out, transform .14s ease-out; font-size: 14px; line-height: 1.4; }
.maptip.on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)) scale(1); }
.maptip b { display: block; font: 800 20px/1.1 var(--fd75); font-stretch: 75%; margin-bottom: 4px; }
.maptip span { display: block; color: var(--pvmuted); }
.preview { animation: rise .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- motion: pages slide in, sections rise into view, bars fill, numbers count ---------- */
.swap #app > * { animation: rise .42s cubic-bezier(.2, .8, .3, 1) both; }
.swap #app > :nth-child(2) { animation-delay: .05s; } .swap #app > :nth-child(3) { animation-delay: .1s; }
.swap #app > :nth-child(4) { animation-delay: .15s; } .swap #app > :nth-child(n+5) { animation-delay: .2s; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .8, .3, 1); }
.rv.in { opacity: 1; transform: none; }
.pagein .sidetally .bar span, .pagein .feature .bar span, .pagein .recbar i { animation: grow .9s cubic-bezier(.2, .8, .3, 1) both; transform-origin: 0 50%; }
.pagein .sidetally .bar span:nth-child(2), .pagein .feature .bar span:nth-child(2) { animation-delay: .06s; }
.pagein .sidetally .bar span:nth-child(n+3), .pagein .feature .bar span:nth-child(n+3) { animation-delay: .12s; }
.pagein .recbar i:nth-child(2) { animation-delay: .1s; } .pagein .recbar i:nth-child(n+3) { animation-delay: .2s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.num { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.top::after { animation: marks .9s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes marks { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.btn:not([disabled]):active, .sbtn:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .livedot, .st.on, .shapes.intro .st, .shapes.intro .borders, .shapes.intro .leader, .preview, .swap #app > *, .top::after,
  .pagein .sidetally .bar span, .pagein .feature .bar span, .pagein .recbar i { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .toast, .maptip, .iconbtn, .iconbtn svg, .st { transition: none; }
  .themeswap::view-transition-new(root) { animation: none; }
}
.askrow { padding-top: 14px; }
.askrow + .askrow { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.askrow > * + * { margin-top: 12px; }
.evm > * + * { margin-top: 10px; }
.onrecord:focus, .evmine:focus { outline: none; }

[data-tally]:empty { display: none; }
.tally-reply p:first-child { white-space: pre-wrap; overflow-wrap: anywhere; }
.tally-answer label { display: grid; gap: .25rem; }
.tally-answer textarea { min-height: 6rem; }
.askedrow > [data-tally], .fmine li > [data-tally] { flex-basis: 100%; }
.myasks { margin: 8px 0 28px; }
.myasks ul { list-style: none; margin: 10px 0 0; padding: 0; }
.myask { padding: 12px 0; border-top: 1px solid var(--line); }
.myask > p a { font-weight: 700; color: var(--ink); }
