/* On the Stand, "Sworn". The page is a stenographer's pad: pale green paper, one deep green ink.
   Besley (a Clarendon, the face of public notices) sets the answer and the record; Libre Franklin
   (Franklin Gothic, the American civic gothic) sets names, labels and controls.
   The answer ends in a full stop: solid for yes, open for no, same ink. An answer that was never
   given gets no stop, only the highlighter. Yellow means "no answer" and nothing else. No party colors. */
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/besley.woff2) format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/libre-franklin.woff2) format('woff2'); }

/* Stand-ins with the width of the real faces (measured against Besley and Libre Franklin), so text
   keeps its line breaks when the webfonts land. */
@font-face { font-family: 'Besley Fallback'; font-weight: 100 599; src: local('Georgia'); size-adjust: 111.6%; }
@font-face { font-family: 'Besley Fallback'; font-weight: 600 900; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 108%; }
@font-face { font-family: 'Franklin Fallback'; font-weight: 100 599; src: local('Arial'); size-adjust: 104.5%; }
@font-face { font-family: 'Franklin Fallback'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 100.5%; }

:root {
  --bg: #E6EFDF; --surface: #FAFCF6; --ink: #10301F; --muted: #44604F; --line: #B4C8B1;
  --primary: #10301F; --onprimary: #F3F8EE; --primarytext: #10301F;
  --accent: #FFE234; --onaccent: #10301F;
  --c1: #FFC978; --c2: #9ED9A4; --c3: #7FD1D6; --c4: #D2B5EC; --c5: #F5B08A; --c6: #CFD8D6; --c7: #F2A7BE; --c8: #C9D98A; --onfill: #10301F;
  --wns: #FFE234; --onwns: #10301F;
  /* The share card has no highlighter on it: a take is not a silence. */
  --scbg: #10301F; --scink: #F3F8EE; --scaccent: #E6EFDF; --sconaccent: #10301F; --scline: #44604F;
  --fd: 'Besley', 'Besley Fallback', Georgia, 'Times New Roman', serif; --fb: 'Libre Franklin', 'Franklin Fallback', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --band: #10301F; --r: 3px; --focus: #10301F;
  --pad: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B1C13; --surface: #14291D; --ink: #E6EFDF; --muted: #A3BBA9; --line: #2F4C3B; --primary: #E6EFDF; --onprimary: #0B1C13; --primarytext: #E6EFDF; --focus: #E6EFDF; --band: #14291D; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 var(--fb); font-feature-settings: 'tnum' 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, blockquote, table { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 30; background: var(--accent); color: var(--onaccent); font-weight: 700; padding: 12px 16px; border-radius: var(--r); }
.skip:focus { top: 8px; }
#app:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.vh-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* type */
.h1 { font-family: var(--fd); font-size: clamp(38px, 11.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; }
.t20 { font-family: var(--fd); font-size: 24px; line-height: 1.14; font-weight: 700; letter-spacing: -.012em; text-wrap: balance; }
.t14 { font-size: 14px; line-height: 1.45; color: var(--muted); }
.t14 b, .t14 a, .t14 .link { color: var(--ink); }
.blk { display: block; }
.lbl { font-weight: 700; }

/* layout */
.top-in, main, .foot-in { max-width: 640px; margin: 0 auto; padding: 0 var(--pad); }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; }
.mark { font-family: var(--fd); font-weight: 800; font-size: 21px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
/* Tall enough that the foot never sits in the first screen while the record is still arriving. */
main { padding-bottom: 56px; min-height: 100vh; min-height: 100svh; }
/* The stand: a deep green plate, edge to edge, that carries the title of every page. Inside it the
   same tokens flip, so links, tables and buttons need no second set of rules. */
.top, .foot, .pagehead, .shared, .hero, main > .loc, main > .h1:first-child {
  --bg: var(--band); --surface: #1B3A29; --ink: #E6EFDF; --muted: #A9C0AE; --line: #3A5B47; --primary: #E6EFDF; --onprimary: #10301F; --primarytext: #E6EFDF; --focus: #E6EFDF;
  color: var(--ink); background: var(--band);
}
.pagehead, .shared, .hero, main > .loc, main > .h1:first-child { border-image: conic-gradient(var(--band) 0 0) fill 0 / 0 / 0 100vmax; }
.pagehead, .hero, main > .loc, main > .h1:first-child { padding-top: 6px; padding-bottom: 22px; }
.pagehead { padding-top: 0; }
main > :first-child:not(.pagehead):not(.shared):not(.hero):not(.loc):not(.h1) { margin-top: 20px; }
main > .pagehead + *, main > .hero + *, main > .loc + *, main > .h1:first-child + * { margin-top: 22px; }
.hero > * + * { margin-top: 18px; }
main > .loc ~ .h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.heroform > * + * { margin-top: 14px; }
main > * + *, .issec > * + *, .mapsec > * + *, .preview > * + *, .how > * + * { margin-top: 14px; }
.after { margin-top: 16px; }
.rule { border-top: 1px solid var(--line); padding-top: 16px; }
/* The foot closes the record on the same plate that opened it: how far it runs, and where it comes from. */
.foot-in { padding-top: 36px; padding-bottom: 44px; display: grid; gap: 28px; }
#dataline { font-family: var(--fd); font-weight: 700; font-size: 22px; line-height: 1.22; letter-spacing: -.012em; text-wrap: balance; min-height: 4.9em; }
.foot ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 12px; }
.foot .lbl { font: 700 14px/1.4 var(--fb); color: var(--muted); }
.foot-end { font-size: 15px; color: var(--muted); }
.foot-end a { color: var(--ink); font-weight: 700; }
.foot-end > * + * { margin-top: 10px; }
@media (max-width: 759px) { .foot { border-bottom: 1px solid var(--line); } }
.loading { color: var(--muted); }
.crumb { font-size: 14px; color: var(--muted); }
.crumb .link { font-size: 14px; }

/* the menu: a bar at the bottom on phones, words in the header on wider screens */
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: var(--r); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 800; }
@media (max-width: 759px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--band); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (min-width: 760px) {
  .top-in, main, .foot-in { max-width: 760px; }
  .tabbar { display: flex; gap: 2px; margin-left: auto; }
  .tab { flex-direction: row; font-size: 15px; padding: 0 12px; min-height: 44px; }
  .tab svg { display: none; }
  .tab[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }
}
.loc-chip { font: 800 14px/1 var(--fb); color: var(--ink); background: none; border: 0; padding: 0 0 0 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.loc-chip u { font-weight: 400; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* controls */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px 16px; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 17px/1.2 var(--fb); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .12s, color .12s; }
.btn.fill { background: var(--primary); border-color: var(--primary); color: var(--onprimary); }
.btn.sm { min-height: 46px; font-size: 15px; font-weight: 600; padding: 8px 12px; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.btn[aria-disabled="true"] { pointer-events: none; }
@media (hover: hover) { .btn:not(.fill):not([disabled]):hover { background: var(--surface); } .btn[aria-pressed="true"]:hover { background: var(--ink); } }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
p > .link, li > .link { padding: 4px 0; }
.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], textarea { width: 100%; font: 400 17px var(--fb); color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px; min-height: 52px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
/* The ZIP is a blank on the form: no box, a rule to write on, digits in the display face. */
input.zip { font: 800 40px/1 var(--fd); letter-spacing: .02em; min-height: 68px; padding: 6px 0 4px; background: transparent; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; }
input.zip::placeholder { font: 400 18px/1 var(--fb); letter-spacing: 0; }
input.zip:focus-visible { outline: none; box-shadow: 0 4px 0 var(--ink); }
.field > * + * { margin-top: 2px; }
.field > .t14, .field > .msg { margin-top: 10px; }
.warn { border-left: 3px solid var(--ink); padding-left: 10px; }
.msg { font-weight: 700; }

/* rows: issues, districts, members, search results */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows button { width: 100%; min-height: 56px; text-align: left; background: none; border: 0; font: inherit; color: var(--ink); padding: 10px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.rows button > span:first-child { flex: 1; }
.rows button > .t14 { white-space: nowrap; font-variant-numeric: tabular-nums; }
#irows button > span:first-child, .rows .news b, .rows button b { font-family: var(--fd); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.rows .news .t14 { display: block; font: 400 14px/1.45 var(--fb); letter-spacing: 0; }
.rows .news b { display: block; }
.rows .dtile.on b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.rows .mrow { padding: 14px 0; }
.rows .mrow b { font-family: var(--fd); font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.rows .mrow .t14 a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .rows button:hover > span:first-child, .rows button:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } .rows button:hover .t14 { text-decoration: none; } }
.loc { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.loc b { font-family: var(--fd); font-weight: 800; font-size: 30px; line-height: 1.08; letter-spacing: -.025em; }
.loc .t14 { display: inline-block; margin-top: 6px; }
.loc > p { flex: 1; min-width: 0; }
.loc > .link { flex: none; }

/* search */
.searchbox { display: flex; align-items: center; gap: 10px; min-height: 54px; border: 1.5px solid var(--ink); border-radius: var(--r); 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; }
.searchbox input:focus { outline: none; box-shadow: inset 0 -3px 0 var(--ink); }
.searchbox:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
#iresults:empty { display: none; }
#iresults > * + * { margin-top: 12px; }
.empty { border-left: 3px solid var(--ink); padding: 4px 0 4px 14px; }
.empty > * + * { margin-top: 6px; }

/* the map: the states as a board of lit names */
.mapsec { margin-top: 36px !important; padding-top: 18px; border-top: 2px solid var(--ink); }
.hero + .mapsec { margin-top: 22px !important; padding-top: 0; border-top: 0; }
.map { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; max-width: 560px; }
.tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; font: 700 11px/1 var(--fb); border-radius: 2px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; min-width: 0; transition: background-color .12s, color .12s; }
@media (min-width: 520px) { .tile { font-size: 13px; } .tile svg { width: 14px; height: 14px; } }
@media (hover: hover) { .tile:hover { background: var(--ink); color: var(--bg); } }
.tile.on { background: var(--primary); color: var(--onprimary); }
.tile.sel { outline: 3px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.tile[class*=" c"], .sw[class*=" c"] { color: var(--onfill); }
.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. */
.tile.tie, .sw.tie { background: repeating-linear-gradient(45deg, var(--surface) 0 3px, var(--line) 3px 5px); color: var(--ink); }
.tile.nd, .sw.nd { background: transparent; color: var(--muted); border: 1.5px dashed var(--muted); }
.sw { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 2px; flex: none; vertical-align: -5px; margin-right: 8px; border: 1.5px solid transparent; }
.seg { display: flex; border: 1.5px solid var(--ink); border-radius: var(--r); 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(--bg); }
.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; text-decoration-thickness: 1px; }
.legend .lg { font-size: 14px; color: var(--muted); }
.preview { background: var(--surface); border-radius: var(--r); padding: 16px; border-top: 3px solid var(--ink); }
.preview > * + * { margin-top: 6px; }
.preview .t20 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 0; }
.preview .two { margin-top: 14px; }
.preview b .sw { margin-left: 4px; }

/* the record */
.pagehead > * + * { margin-top: 8px; }
.pagehead .h1 { margin-top: 2px; }
/* A no-record vote has a long name and its first action must stay on the first screen. */
.pagehead:has(+ .subh) .h1 { font-size: 32px; line-height: 1.06; letter-spacing: -.022em; }
/* Silence is highlighted, and only silence. */
.missline, .vote-row.pX .word, .badge.dodge, .key .pX .word, .w-last.pX .word { background: linear-gradient(var(--wns), var(--wns)) no-repeat 0 0 / 100% 100%; color: var(--onwns); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.missline { display: table; justify-self: start; padding: 3px 8px; font-weight: 600; font-size: 16px; margin-top: 12px !important; }
.missline .dot { display: none; }
.bill { padding: 22px 0 30px; border-top: 2px solid var(--ink); }
.bills { margin-top: 0; }
.bills > .bill:first-child { border-top: 0; padding-top: 0; }
.bill-q > * + *, .bill-a > * + * { margin-top: 8px; }
.bill-a { margin-top: 4px; }
.sum { font-family: var(--fd); font-size: 16px; line-height: 1.5; margin-top: 10px; }
.vote { margin-top: 18px; }
.vote > * + * { margin-top: 6px; }
.vote.head > .result { border-top: 1px solid var(--line); padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.vote.head > .result a { font-weight: 400; }
.vote-row { padding-top: 14px; }
.vote-row + .vote-row { margin-top: 18px; }
.vote-row > * + * { margin-top: 12px; }
.who { font-weight: 700; font-size: 16px; }
.who .t14 { font-weight: 400; }
/* The answer. Its full stop is the mark: solid for yes, open for no, in the same ink. */
.vote-row.pY .pos, .vote-row.pN .pos { white-space: nowrap; }
.vote-row .pos { margin-top: 2px; font-family: var(--fd); font-size: clamp(40px, 12vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.dot { display: inline-block; width: .24em; height: .24em; margin-left: .06em; border-radius: 50%; border: .062em solid var(--ink); flex: none; }
.pY .dot { background: var(--ink); }
.pP .dot { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.pX .dot, .pO .dot, .pC .dot { display: none; }
.vote-row.pX .word { padding: .04em .14em .08em; margin-left: -.02em; font-size: .74em; letter-spacing: -.02em; line-height: 1.3; }
.vote-row.pC .pos { font-size: 30px; letter-spacing: -.02em; }
.vote-row.compact .pos { font-family: var(--fb); font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.vote-row.compact .dot { width: .62em; height: .62em; margin-left: .4em; border-width: .14em; }
.vote-row.compact.pX .word { font-size: 1em; padding: 1px 6px; }
.vote-row.pO .pos { font-family: var(--fb); font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--muted); }
.vote-row.compact .take { display: flex; gap: 16px; }
.qreact { display: flex; gap: 16px; margin-top: 4px; }
.qbtn { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.qbtn[aria-pressed="true"] { font-weight: 800; text-decoration-thickness: 3px; }
.asked { font-size: 14px; color: var(--muted); }
.asked::first-line { color: var(--ink); }
.soon { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.vote.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--surface); } 100% { background: transparent; } }
/* The one staged moment: on arriving at a record, the highlighter is drawn across each silence. */
@keyframes mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.fresh .missline, .fresh .vote-row.pX .word { animation: mark .55s cubic-bezier(.3, .7, .2, 1) .25s backwards; }
@media (prefers-color-scheme: dark) { .fresh .missline, .fresh .vote-row.pX .word { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .vote.flash { animation: none; outline: 3px solid var(--focus); }
  .fresh .missline, .fresh .vote-row.pX .word { animation: none; }
  .btn, .tile { transition: none; }
}

/* the inline message and share card */
.askpanel > * + * { margin-top: 12px; }
.draft { border-radius: var(--r); padding: 16px; background: var(--surface); border-top: 3px solid var(--ink); }
.draft > * + * { margin-top: 10px; }
.opener { font-family: var(--fd); font-size: 17px; line-height: 1.5; }
.addline { font-weight: 400; color: var(--muted); font-size: 15px; }
.draft textarea { scroll-margin-bottom: 120px; background: var(--bg); }
.script { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface); }
.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: var(--r); 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(--ink); border-radius: var(--r); font: 600 15px var(--fb); color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; }
.sbtn.wide { grid-column: 1 / -1; background: var(--ink); color: var(--bg); font-weight: 700; }
.sbtn.wide.alt { background: transparent; color: var(--ink); }

/* folded sections: a plus opens, a minus closes */
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; flex: none; width: 20px; font-weight: 400; font-size: 1.2em; line-height: 1; }
details[open] > summary::before { content: "\2212"; }
.fold.small > summary { font-size: 14px; font-weight: 500; }
.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 > .vote { margin: 0 0 12px 20px; }
.plainbill { border-top: 1px solid var(--line); padding: 10px 0; }

/* statements: one sheet per member */
.mcard { background: var(--surface); border-radius: var(--r); padding: 16px; margin-top: 12px; }
.mcard > * + * { margin-top: 10px; }
.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: 13px; font-weight: 700; padding: 3px 8px; border-radius: 2px; border: 1.5px solid var(--ink); }
.badge.dodge { border-color: transparent; }
.badge.none { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.badge .sw { width: 12px; height: 12px; margin: 0; border-radius: 2px; }
.badge.dodge .sw { display: none; }
.stmt { border-top: 1px solid var(--line); padding-top: 12px; }
.mhead + .stmt, .mhead + .t14 + .stmt { margin-top: 12px; }
.stmt > * + * { margin-top: 6px; }
.topic { font-weight: 700; }
blockquote { font-family: var(--fd); font-size: 19px; line-height: 1.4; border-left: 3px solid var(--ink); 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: 16px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; font-weight: 500; color: var(--muted); border-bottom-color: var(--ink); }
td, thead th + th { text-align: right; }
td { font-weight: 700; }
td.t14, td .t14 { font-weight: 400; }
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: 2px solid var(--ink); padding-top: 4px; }
.sidetally > * + * { margin-top: 8px; }
.sidetally .bar { display: flex; height: 18px; border-radius: 2px; 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: 2px; margin: 0; vertical-align: -1px; }
/* Categories in the ink and its greys; the highlighter only where someone would not say. */
.s1 { background: var(--ink); } .s2 { background: var(--muted); } .s3 { background: var(--line); border: 1px solid var(--muted); } .s5 { background: var(--surface); 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 { padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.shared + .pagehead { padding-top: 16px; }
.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: 3px solid var(--ink); 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(8, 24, 15, .6); }
@media (min-width: 700px) { dialog.sheet { max-width: 560px; margin: auto; padding: 28px; } }
.stack > * + * { margin-top: 16px; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-top .t20 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sheet-top .link { display: inline-flex; align-items: center; min-height: 44px; }
.sharetext { white-space: pre-wrap; overflow-wrap: anywhere; border-radius: var(--r); padding: 14px; max-height: 40vh; overflow-y: auto; background: var(--surface); font-family: var(--fd); line-height: 1.5; }
.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: 12px 0 4px; }
.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; border: 0; }
.found .cv li { border: 0; }
.found .cv button { min-height: 44px; padding: 6px 0; }

/* How this works reads as a document */
.how p:not(.t14) { font-family: var(--fd); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.how .t20 { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); }
.how .t20:first-child { margin-top: 0; }

/* ---------- wide screens: the question on the left, the answers on the right ---------- */
@media (min-width: 1000px) {
  :root { --pad: 48px; }
  .top-in, main, .foot-in { max-width: 1280px; }
  .top-in { min-height: 84px; }
  .mark { font-size: 26px; }
  main { padding-bottom: 96px; }
  .h1 { font-size: clamp(72px, 7.4vw, 104px); line-height: .94; letter-spacing: -.038em; }
  .t20 { font-size: 30px; }
  .pagehead, .hero, main > .loc, main > .h1:first-child { padding-top: 20px; padding-bottom: 56px; }
  main > .pagehead + *, main > .hero + *, main > .loc + *, main > .h1:first-child + * { margin-top: 48px; }

  /* the record */
  .pagehead { display: grid; grid-template-columns: 7fr 5fr; column-gap: 72px; align-items: start; }
  .pagehead > * { grid-column: 2; }
  .pagehead > .crumb { grid-column: 1 / -1; margin-bottom: 8px; }
  .pagehead > .h1 { grid-column: 1; grid-row: 2 / span 12; margin-top: 0; }
  .pagehead:has(+ .subh) .h1 { font-size: 64px; line-height: .98; letter-spacing: -.032em; }
  .pagehead > .crumb + .h1 + * { margin-top: 14px; }
  .bill { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; align-items: start; padding: 28px 0 64px; }
  .bills > .bill:first-child { padding-top: 0; }
  .bill-q { position: sticky; top: 24px; }
  .bill-a { margin-top: 0; }
  .bill-a > .vote:first-child { margin-top: 0; }
  .bill-a > .vote:first-child > .result { border-top: 0; padding-top: 0; }
  .sum { font-size: 18px; line-height: 1.55; }
  .vote.head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
  .vote.head > * { grid-column: 1 / -1; }
  .vote.head > .vote-row { grid-column: auto; margin-top: 6px; }
  .vote.head > .vote-row:has(.askpanel) { grid-column: 1 / -1; }
  /* the message on the left, the card it comes with on the right */
  .vote-row .askpanel:has(.draft) { display: grid; grid-template-columns: 1fr 250px; column-gap: 36px; align-items: start; }
  .vote-row .askpanel:has(.draft) > * { grid-column: 1; }
  .vote-row .askpanel:has(.draft) > .sharewrap { grid-column: 2; grid-row: 1 / span 9; margin-top: 0; padding-top: 0; border-top: 0; }
  .vote-row .askpanel:has(.draft) .sharegrid { grid-template-columns: 1fr 1fr; }
  .vote { margin-top: 32px; }
  .vote-row .pos { font-size: clamp(44px, 3.9vw, 54px); }
  .vote-row.pX:not(.compact) .word { font-size: .56em; white-space: nowrap; }
  .bills ~ .after, .bills ~ details, .bills ~ .soon { margin-left: calc((100% - 72px) * 5 / 12 + 72px); }

  /* home: the question on the left of the stand, the blank to fill in on the right */
  .hero { display: grid; grid-template-columns: 7fr 5fr; column-gap: 72px; align-items: end; }
  .hero > * { grid-column: 1; }
  .hero > .heroform { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  input.zip { font-size: 60px; min-height: 92px; }
  input.zip::placeholder { font-size: 22px; }
  body[data-page="home"] main { display: grid; grid-template-columns: 6fr 6fr; column-gap: 72px; align-items: start; align-content: start; }
  body[data-page="home"] main > * { grid-column: 1; }
  body[data-page="home"] main > .hero, body[data-page="home"] main > .loc { grid-column: 1 / -1; }
  body[data-page="home"] main > .mapsec { grid-column: 2; grid-row: 2 / span 12; margin-top: 48px !important; padding-top: 0; border-top: 0; position: sticky; top: 24px; }
  body[data-page="home"] main > .hero ~ .mapsec { grid-column: 1; grid-row: auto; }
  body[data-page="home"] main > .hero ~ .issec { grid-column: 2; grid-row: 2; margin-top: 48px; }
  body[data-page="home"] .map { max-width: none; gap: 4px; }
  body[data-page="home"] .tile { font-size: 14px; }
  body[data-page="home"] main > .loc ~ .h1 { font-size: 30px; line-height: 1.14; letter-spacing: -.012em; font-weight: 700; }
  .loc b { font-size: 64px; letter-spacing: -.035em; line-height: 1; }
  .loc .t14 { margin-top: 12px; font-size: 15px; }

  /* issues: the list runs in columns */
  body[data-page="issues"] #irows { columns: 3; column-gap: 72px; border-top: 0; }
  #irows li { break-inside: avoid; }
  body[data-page="issues"] .searchbox, body[data-page="issues"] #iresults { max-width: 620px; }

  /* how: a document in two columns */
  .how { columns: 2; column-gap: 72px; }
  .how .t20 { break-after: avoid; font-size: 24px; }
  .how p { break-inside: avoid; }
  #irows button > span:first-child, .rows .news b, .rows button b { font-size: 21px; }
  .rows .mrow b { font-size: 34px; letter-spacing: -.028em; }
  .rows .mrow { padding: 20px 0; }
}

/* ---------- round 2 ---------- */
/* Small links get a line of their own height to press. */
.t14 a, .foot a, .how a, .result a { display: inline-block; padding: 3px 0; min-height: 24px; }
.result a { min-height: 44px; }

/* The key: read once, under the title. */
.key { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.key > span { white-space: nowrap; color: var(--ink); font-weight: 600; }
.key .dot { width: .68em; height: .68em; margin-left: .35em; border-width: .15em; vertical-align: -.04em; }
.key .pX .word { padding: 1px 6px; }

/* Hover and press, in one verb: ink runs in from the left, the way the highlighter is drawn.
   Outlined buttons fill with ink, filled ones clear to paper, links and menu words get ruled under. */
.btn, .sbtn, .seg button { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .16s cubic-bezier(.3, .7, .2, 1), color .16s, transform .08s; }
.btn.fill, .sbtn.wide:not(.alt) { background-color: var(--primary); background-image: linear-gradient(var(--bg), var(--bg)); background-repeat: no-repeat; background-size: 0% 100%; }
.sbtn.wide.alt { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-size: 0% 100%; }
.btn[aria-pressed="true"], .seg button[aria-pressed="true"] { background-size: 100% 100%; }
.btn:active:not([disabled]), .sbtn:active, .rows button:active { transform: translateY(1px); }
.tab > span, .mark, a, .link, .qbtn, details > summary { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size .16s cubic-bezier(.3, .7, .2, 1); }
.btn, .sbtn, a.tab, .tile { background-position: 0 0; }
a.tab, a.btn, a.sbtn { background-size: 0% 100%; }
a.tab { background-image: none; }
.tab > span { padding: 4px 0; background-size: 0% 3px; }
.tab[aria-current="page"] > span { background-size: 100% 3px; }
.rows button { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-size: 0% 100%; padding-inline: 10px; margin-inline: -10px; width: calc(100% + 20px); transition: background-size .18s cubic-bezier(.3, .7, .2, 1), color .18s; }
@media (hover: hover) {
  .btn:not(.fill):not([disabled]):not([aria-disabled="true"]):hover, .sbtn:not(.wide):hover, .sbtn.alt:hover, .seg button:hover { background-color: transparent; background-size: 100% 100%; color: var(--bg); }
  .btn.fill:not([disabled]):not([aria-disabled="true"]):hover, .sbtn.wide:not(.alt):hover { background-size: 100% 100%; color: var(--ink); }
  .tab:hover > span { background-size: 100% 3px; }
  .tab:hover { color: var(--ink); }
  .mark:hover, a:not(.tab):not(.btn):not(.sbtn):hover, .link:hover, .qbtn:hover, details > summary:hover { background-size: 100% 2px; }
  .rows button:hover { background-size: 100% 100%; color: var(--bg); }
  .rows button:hover > span:first-child, .rows button:hover b { text-decoration: none; }
  .rows button:hover .t14, .rows button:hover .t14 b { color: var(--bg); }
  .rows button:hover .bar > span, .rows button:hover .sw { outline: 1px solid var(--bg); }
}
.rows .mrow a { background-position: 0 100%; }
details > summary { background-position: 0 calc(100% - 8px); width: fit-content; }
@media (min-width: 760px) { .tab[aria-current="page"] { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .btn, .sbtn, .seg button, .tab > span, .mark, a, .link, .qbtn, details > summary, .rows button { transition: none; } }

/* Blank shapes hold the page at its height while the record arrives. */
.skel { margin-top: 22px; }
.sk { display: grid; gap: 12px; }
.sk i { display: block; height: 16px; background: var(--line); border-radius: 2px; opacity: .55; }
.sk.b { padding: 6px 0 34px; border-top: 2px solid var(--line); margin-top: 0; }
.sk.b + .sk.b { padding-top: 22px; }
.sk.b i:first-child { height: 26px; }
.sk.b i.a { height: 46px; width: 58%; margin-top: 14px; }
.sk.b i.a + i.a { margin-top: 44px; }
.sk.r { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sk.r i { height: 20px; }
.sk.h { padding: 6px 0 10px; } .sk.h i { height: 30px; opacity: .3; }
.sk.z i { height: 62px; opacity: .25; } .sk.z i + i { height: 52px; }

/* My members: each witness and their whole record, in the type of their answers. */
.rows .mrow { display: block; padding: 22px 0 26px; }
.rows .mrow .w-id b { display: block; margin-bottom: 6px; }
.w-reach { margin-top: 4px; display: flex !important; flex-wrap: wrap; gap: 0 18px; }
.w-rec { margin-top: 14px; }
.w-rec > * + * { margin-top: 10px; }
.rec { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; font-family: var(--fd); font-size: 19px; letter-spacing: -.01em; }
.fig { white-space: nowrap; }
.rows .mrow .fig b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.fig .dot { width: .52em; height: .52em; margin-left: .22em; border-width: .13em; }
/* On this page a missed vote is only counted: a small swatch keys it to the bar, nothing more. */
.fig.pX .word, .fig.pO .word { background: none; padding: 0; color: inherit; }
.fig.pX .word::before, .fig.pO .word::before { content: ""; display: inline-block; width: .5em; height: .5em; background: var(--wns); margin-right: .3em; border-radius: 1px; }
/* The same record as one bar: solid ink yes, open no, yellow where no answer was given. */
.recbar { display: flex; gap: 2px; height: 14px; }
.recbar span { min-width: 3px; border-radius: 1px; }
.recbar .y { background: var(--ink); } .recbar .n { box-shadow: inset 0 0 0 2px var(--ink); }
.recbar .p { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--ink); } .recbar .m { background: var(--wns); }
.w-last { margin-top: 20px; }
.w-last .pos { font-family: var(--fd); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-top: 4px; }
.w-last.pX .word { font-size: .74em; padding: .04em .14em .08em; line-height: 1.3; }

/* News: the vote with no record by name leads, with what the caucus said about it. */
.rows.lead { border-top: 0; }
.rows.lead li { border-bottom: 2px solid var(--ink); }
.rows.lead button { padding-top: 6px; padding-bottom: 22px; }
.rows.lead b { font-size: 30px; font-weight: 800; line-height: 1.06; letter-spacing: -.026em; }
.rows.lead .t14.blk { margin-top: 8px; }
.rows.lead .bar { display: flex; height: 18px; gap: 2px; margin-top: 16px; }
.rows.lead .sides { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font: 400 14px/1.4 var(--fb); }
.rows.lead .sides > span { display: inline-flex; align-items: center; gap: 6px; }
.rows.lead .sides b { font: 700 14px/1.4 var(--fb); letter-spacing: 0; }
.rows.lead .sw { width: 12px; height: 12px; margin: 0; }

@media (min-width: 1000px) {
  .foot-in { grid-template-columns: 5fr 4fr 3fr; column-gap: 72px; padding-top: 64px; padding-bottom: 72px; }
  #dataline { font-size: 30px; line-height: 1.14; letter-spacing: -.02em; min-height: 5.7em; }
  .key { margin-top: 12px; }
  /* members: who on the left, their record on the right, as on a bill */
  body[data-page="members"] main > h2 { margin-top: 36px; }
  body[data-page="members"] main > .btn { max-width: 380px; margin-top: 40px; }
  .rows .mrow { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; align-items: start; padding: 30px 0 40px; }
  .w-rec { margin-top: 4px; }
  .rows .mrow .fig b { font-size: 54px; }
  .rec { font-size: 22px; gap: 4px 36px; }
  .w-last .pos { font-size: 48px; }
  .w-last.pX .word { font-size: .6em; }
  /* news: the lead runs the full width, the rest in two columns under it */
  body[data-page="news"] main > h2 { margin-top: 40px; }
  body[data-page="news"] main > ul:nth-of-type(2) { columns: 2; column-gap: 72px; border-top: 0; }
  body[data-page="news"] main > ul:nth-of-type(2) li { break-inside: avoid; }
  .rows.lead button { display: grid; }
  .rows.lead button > span { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; align-items: start; }
  .rows.lead b { font-size: 54px; letter-spacing: -.034em; grid-row: 1 / span 3; }
  .rows.lead .t14.blk, .rows.lead .bar, .rows.lead .sides { grid-column: 2; }
  .rows.lead .t14.blk { margin-top: 6px; }
  .skel { margin-top: 48px; }
}
