/* On the Stand, "Roll call". Every roll call is drawn as its tally: one mark per member, the same ink for yes
   (filled) and no (hollow), amber only where someone did not vote or would not answer. The board is the one loud
   thing; everything else is paper, ink and two typefaces with American printing roots: Libre Caslon Text for the
   record (titles, the vote words, quotes) and Libre Franklin for names, numbers and controls. No party colors. */
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/libre-caslon-text-400.woff2) format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/libre-caslon-text-700.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'); }
/* Fallbacks sized to the real faces (measured in the browser), so nothing reflows when the fonts arrive. */
@font-face { font-family: 'Caslon Fallback'; font-weight: 100 500; src: local('Georgia'); size-adjust: 106.8%; ascent-override: 91%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: 'Caslon Fallback'; font-weight: 600 900; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 99.8%; ascent-override: 97%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: 'Franklin Fallback'; font-weight: 100 550; src: local('Arial'), local('ArialMT'); size-adjust: 105%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: 'Franklin Fallback'; font-weight: 551 900; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 100.7%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --paper: #F2F2EE; --sheet: #FBFBF9; --ink: #211B17; --muted: #5A534D; --line: #D2CEC7; --hair: #E2DFD9;
  --amber: #E9A21B; --amber-edge: #9A6400; --onamber: #211B17;
  --board: #211B17; --lamp: #F6F0E6; --lampdim: rgba(246, 240, 230, .38); --boardline: #3B332D;
  --onink: #F6F0E6;
  /* the Searches map keeps its own soft fills; ink, amber and greys stay out of them */
  --c1: #E7D3A8; --c2: #BFD8C2; --c3: #BCD3DA; --c4: #D9C9E3; --c5: #E8C7B5; --c6: #D6D3CC; --c7: #E6C4CF; --c8: #D2D8AE; --onfill: #211B17;
  --wns: var(--amber); --onwns: var(--onamber);
  --scbg: #211B17; --scink: #F6F0E6; --scaccent: #E9A21B; --sconaccent: #211B17; --scline: #4A4038;
  --fd: 'Libre Caslon Text', 'Caslon Fallback', Georgia, serif;
  --fb: 'Libre Franklin', 'Franklin Fallback', -apple-system, Arial, sans-serif;
  --quick: .16s cubic-bezier(.2, .7, .2, 1);
  --r: 4px; --focus: var(--ink); --gut: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15120F; --sheet: #1D1915; --ink: #EFE9E0; --muted: #ABA197; --line: #3D3630; --hair: #2B2622;
    --board: #0B0907; --boardline: #3D3630; --onink: #15120F; --amber-edge: #E9A21B;
    --c1: #6B5A33; --c2: #3F5E46; --c3: #3D5960; --c4: #574768; --c5: #6E4C3B; --c6: #4A4640; --c7: #6A4552; --c8: #56603A; --onfill: #EFE9E0;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--fb); font-feature-settings: 'lnum'; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, blockquote, table, figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, .link:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.vh-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* type: four sizes on a phone (14, 17, 21, 30) plus the opening title */
.h1 { font-family: var(--fd); font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.012em; text-wrap: balance; }
.h1.big { font-size: 36px; line-height: 1.06; letter-spacing: -.02em; }
.t20 { font-family: var(--fd); font-size: 21px; line-height: 1.22; font-weight: 700; letter-spacing: -.005em; 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; }
.lede { font-size: 17px; color: var(--muted); max-width: 34em; }

/* frame */
.top, main, .foot { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fd); font-weight: 700; font-size: 21px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; min-height: 44px; }
.logo { width: 27px; height: 11px; fill: currentColor; stroke: currentColor; flex: none; }
.logo circle + circle { fill: transparent; transition: fill var(--quick); }
a.mark:hover .logo circle + circle, a.mark:focus-visible .logo circle + circle { fill: currentColor; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--onink); padding: 12px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
main { padding-top: 8px; padding-bottom: 40px; }
main > * + *, .issec > * + *, .mapsec > * + *, .preview > * + *, .how > * + *, .ask > * + * { margin-top: 16px; }
.after { margin-top: 16px; }
.rule { border-top: 1px solid var(--line); padding-top: 16px; }
main { min-height: calc(100vh - 60px); }
.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 { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tab::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--ink); transform: scaleX(0); transition: transform var(--quick); }
.tab[aria-current="page"]::before, .tab:hover::before, .tab:focus-visible::before { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.tab:active { transform: translateY(1px); }
@media (max-width: 759px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--line); padding: 0 4px env(safe-area-inset-bottom); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}
.loc-chip { font: 600 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; }

/* controls: one filled ink button per screen, everything else outlined or a plain link */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px 18px; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 17px/1.2 var(--fb); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--quick), color var(--quick), transform var(--quick); }
.btn:hover { background: var(--ink); color: var(--onink); }
.btn:active { transform: scale(.98); }
.btn.fill { background: var(--ink); border-color: var(--ink); color: var(--onink); }
.btn.fill:hover { background: transparent; color: var(--ink); }
.btn.sm { min-height: 46px; font-size: 16px; padding: 8px 12px; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--onink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.btn[aria-disabled="true"] { pointer-events: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
/* text links: the underline thickens and drops a little, like a mark being made */
a, .link { transition: text-decoration-thickness var(--quick), text-underline-offset var(--quick); }
a:hover, .link:hover { text-decoration-thickness: 2.5px; text-underline-offset: 5px; }
.t14 a, .foot a, .crs a { display: inline-block; min-height: 24px; padding: 2px 0; }
p > .link, li > .link { padding: 4px 0; }
.crumb-who { margin-left: 14px; }
.loc .link, .crumb .link, .result a, .preview .link, .askpanel > p > .link, .what a { 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: 600; }
input[type=text], input[type=search], textarea { width: 100%; font: 400 17px var(--fb); color: var(--ink); background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px 14px; min-height: 52px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=text]:focus-visible, input[type=search]:focus-visible, textarea:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; }
input.zip { font: 600 26px/1 var(--fb); letter-spacing: .08em; min-height: 60px; font-variant-numeric: tabular-nums; }
input.zip::placeholder { font-size: 18px; font-weight: 400; letter-spacing: 0; }
.field > * + * { margin-top: 8px; }
.warn { border-left: 4px solid var(--amber); 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: 12px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rows button { position: relative; transition: padding-left var(--quick); }
.rows button::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform var(--quick); }
.rows button:hover, .rows button:focus-visible { padding-left: 20px; }
.rows button:hover::before, .rows button:focus-visible::before { transform: scale(1); }
.rows button:active { background: var(--hair); }
.grp-h { font-family: var(--fd); font-weight: 700; font-size: 19px; padding: 28px 0 10px; border-bottom: 1px solid var(--line); }
.rows li.grp { border-top: 0; }
.rows button::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-top: 1.5px solid var(--muted); transform: rotate(45deg); margin-right: 4px; }
.rows button > span:first-child { flex: 1; }
.rows button > .t14 { font-variant-numeric: tabular-nums; }
.rows .news b { display: block; font-family: var(--fd); font-size: 19px; line-height: 1.25; }
.rows .news .t14:first-child { display: block; }
.rows .dtile.on { font-weight: 700; }
.rows .mrow { padding: 14px 0; }
.rows .mrow .t14 a { display: inline-flex; align-items: center; min-height: 44px; }
.loc { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.loc b { font-family: var(--fd); font-size: 21px; line-height: 1.2; }

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

/* ---------- the board: a roll call drawn as its tally ---------- */
.board { background: var(--board); color: var(--lamp); border-radius: 6px; padding: 14px 14px 10px; border: 1px solid var(--boardline); }
.board figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.board figcaption .ch { font-family: var(--fd); font-size: 21px; font-weight: 700; }
.field { display: block; width: 100%; height: auto; overflow: visible; }
.field .mk-y { fill: var(--lamp); }
.field .mk-n { fill: none; stroke: var(--lamp); stroke-width: 1.5; }
.field .mk-p { fill: var(--lampdim); stroke: var(--lamp); stroke-width: 1.5; }
.field .mk-x { fill: var(--amber); }
.field .ring { fill: none; stroke: var(--lamp); stroke-width: 2; }
/* everyone else dims, except silence, which stays lit wherever it is */
.has-lit .field circle:not(.lit):not(.ring):not(.mk-x) { opacity: .5; }
.keys { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 10px; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.keys .k { display: inline-flex; align-items: center; min-height: 26px; white-space: nowrap; }
.mk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; flex: none; }
.mk.y { background: var(--lamp); }
.mk.n { border: 1.5px solid var(--lamp); }
.mk.p { border: 1.5px solid var(--lamp); background: var(--lampdim); }
.mk.x { background: var(--amber); }
.mk.ring-k { width: 14px; height: 14px; border: 1.5px solid var(--lamp); background: radial-gradient(circle, var(--lamp) 0 3px, transparent 3.5px); }
.board .t14, .board .t14 a { color: rgba(246, 240, 230, .78); }
.board .t14 a { color: var(--lamp); }
/* inside a bill, the board sits flush under the result line */
.vote .board { margin-top: 6px; padding: 8px 10px 4px; }
.vote .board figcaption { margin-bottom: 6px; }
.vote .board .keys { margin-top: 4px; gap: 0 14px; }

/* the home page's boards */
.boards > * + * { margin-top: 12px; }
.hero > .boards, .hero > .side { margin-top: 40px; }
.lower { margin-top: 32px; }
.lower > * + * { margin-top: 36px; }
.lower > .issec { border-top: 1px solid var(--line); padding-top: 20px; }
.boards:empty { min-height: 280px; }
.boards .how-read { max-width: 40em; }
.rollcall + .rollcall { margin-top: 20px; }
.rollcall .what { margin-top: 8px; }
.rollcall .what b { font-family: var(--fd); font-weight: 700; font-size: 17px; line-height: 1.3; }
.rollcall .what .t14 { display: block; }
.big.board { padding: 16px 16px 12px; }
/* The one orchestrated moment: the first time the page opens, the lamps come on in roll-call order. */
@keyframes lamp { from { opacity: 0; } }
.boards.ready:not(.seen) .rollcall:nth-of-type(1) .field circle { animation: lamp .35s ease-out both; animation-delay: calc(var(--i, 0) * 6ms); }
.boards.ready:not(.seen) .rollcall:nth-of-type(2) .field circle { animation: lamp .35s ease-out both; animation-delay: calc(var(--i, 0) * 1.4ms); }
.boards.ready:not(.seen) .field .ring { animation-delay: .8s; }
@media (prefers-reduced-motion: reduce) { .boards .field circle { animation: none !important; } }

/* the map */
.mapsec { padding-top: 20px; border-top: 1px solid var(--line); }
.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: 600 11px/1 var(--fb); letter-spacing: .02em; border-radius: 2px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; min-width: 0; transition: background-color .12s; }
.tile { transition: background-color var(--quick), border-color var(--quick), transform var(--quick); }
.tile:hover { border-color: var(--ink); background: var(--hair); }
.tile:active { transform: scale(.94); }
@media (min-width: 520px) { .tile { font-size: 13px; } .tile svg { width: 14px; height: 14px; } }
.tile.on { background: var(--ink); border-color: var(--ink); color: var(--onink); }
.tile.sel { outline: 2.5px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.tile[class*=" c"], .sw[class*=" c"] { border-color: transparent; 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, transparent 0 3px, var(--line) 3px 5px); color: var(--ink); border-color: var(--muted); }
.tile.nd, .sw.nd { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--muted); }
.sw { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 3px; flex: none; vertical-align: -5px; margin-right: 8px; border: 1px 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: 600 15px/1.15 var(--fb); background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--onink); }
.seg.sub { border-width: 1px; }
.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(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 16px; }
.preview > * + * { margin-top: 6px; }
.preview .two { margin-top: 12px; }
.preview b .sw { margin-left: 4px; }

/* ---------- the record ---------- */
.pagehead > * + * { margin-top: 4px; }
.pagehead .h1 { font-size: 38px; line-height: 1.02; letter-spacing: -.02em; margin-top: 2px; }
.missline { display: flex; align-items: center; gap: 8px; }
.bill { padding: 14px 0 26px; border-top: 1px solid var(--line); }
.bills { margin-top: 10px; }
.bills > .bill:first-child { border-top: 2px solid var(--ink); }
.bill-text > * + *, .bill-votes > * + * { margin-top: 8px; }
.bill-text .t20 { font-size: 23px; }
.sum { margin-top: 6px; }
.vote { margin-top: 18px; }
.vote > * + * { margin-top: 6px; }
.bill-votes > .vote:first-child { margin-top: 12px; }
.vote-row { padding-top: 12px; }
.vote-row + .vote-row { border-top: 1px solid var(--hair); margin-top: 14px; padding-top: 16px; }
.vote-row > * + * { margin-top: 10px; }
.who { font-weight: 600; }
.who .t14 { font-weight: 400; }
.vote-row .pos { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.vote-row .word { font-family: var(--fd); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.vote-row.compact .word { font-family: var(--fb); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.vote-row.pO .word { font-family: var(--fb); font-size: 17px; font-weight: 400; color: var(--muted); }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink); flex: none; }
.compact .dot { width: 13px; height: 13px; border-width: 2px; }
.pY .dot { background: var(--ink); }
.pP .dot { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.pX .dot, .dot.X { border: 1.5px solid var(--amber-edge); background: var(--amber); }
.pO .dot { border-color: var(--line); }
.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-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.qbtn[aria-pressed="true"] { font-weight: 700; text-decoration-thickness: 3px; }
.asked { font-size: 14px; color: var(--muted); }
.asked::first-line { color: var(--ink); }
.soon { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin-top: 20px; }
.vote.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--hair); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .vote.flash { animation: none; outline: 2.5px solid var(--focus); } }

/* the inline message and share card */
.askpanel > * + * { margin-top: 12px; }
.draft { border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px; background: var(--sheet); }
.draft > * + * { margin-top: 8px; }
.opener { font-family: var(--fd); font-size: 17px; line-height: 1.45; }
.addline { font-weight: 400; color: var(--muted); border-left: 2px solid var(--ink); padding-left: 10px; font-size: 16px; }
.draft textarea { scroll-margin-bottom: 120px; }
.script { border-left: 2px solid var(--ink); padding: 4px 0 4px 12px; }
.script > * + * { margin-top: 4px; }
.sharewrap { padding-top: 16px; 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: 8px; 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:hover { background: var(--hair); }
.sbtn.wide { grid-column: 1 / -1; background: var(--ink); color: var(--onink); }
.sbtn.wide.alt { background: transparent; color: var(--ink); }

/* folded sections */
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); margin: 0 12px 0 2px; transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg); }
.fold.small > summary { font-size: 14px; font-weight: 400; }
.fold > :not(summary) { margin-top: 10px; }
.more-body .vote { border-top: 1px solid var(--hair); padding-top: 10px; }
.between .intro { margin-top: 6px; }
.subh { font-weight: 700; margin-top: 16px; }
.vrow { border-top: 1px solid var(--hair); }
.vrow > summary { font-weight: 400; padding: 8px 0; align-items: flex-start; }
.vrow > summary::before { margin-top: 9px; }
.vrow > .vote { margin: 0 0 12px 20px; }
.plainbill { border-top: 1px solid var(--hair); padding: 10px 0; }

/* statements: testimony, set in the record's face, one card per member */
.mcard { border-top: 1px solid var(--line); padding: 14px 0 4px; 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: 14px; font-weight: 600; padding: 3px 9px; border-radius: 3px; border: 1px solid var(--ink); }
.badge.dodge { background: var(--amber); color: var(--onamber); border-color: var(--amber-edge); }
.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(--hair); 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.42; border-left: 2px solid var(--ink); padding-left: 14px; }
.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; }
th { font-weight: 600; }
td, thead th + th { text-align: right; }
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: 1px solid var(--line); padding-top: 4px; }
.sidetally > * + * { margin-top: 8px; }
.sidetally .bar { display: flex; height: 16px; 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 ink and greys; amber only where someone would not say. */
.s1 { background: var(--ink); } .s2 { background: var(--muted); } .s3 { background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px); border: 1px solid var(--ink); } .s5 { background: var(--line); border: 1px solid var(--muted); }
.s6 { background: var(--amber); } .s7 { background: repeating-linear-gradient(45deg, var(--amber) 0 3px, transparent 3px 6px); border: 1px solid var(--amber-edge); }
.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: 28px; }

/* a take someone shared */
.shared { border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px 16px; background: var(--sheet); }
.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; padding: 20px var(--gut) 24px; width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 12px 12px 0 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
dialog.sheet::backdrop { background: rgba(20, 16, 12, .6); }
@media (min-width: 700px) { dialog.sheet { max-width: 560px; margin: auto; border-radius: 10px; padding: 28px; } }
.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-left: 2px solid var(--ink); padding: 4px 0 4px 14px; max-height: 40vh; overflow-y: auto; 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; }
.found .cv li { border: 0; }
.found .cv button { min-height: 44px; padding: 6px 0; }

/* ---------- wider screens: the width is spent on the record, not on margins ---------- */
@media (min-width: 760px) {
  :root { --gut: 32px; }
  .top { min-height: 76px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .mark { font-size: 24px; }
  .tabbar { display: flex; gap: 2px; margin-left: auto; }
  .tab { flex-direction: row; gap: 8px; font-size: 15px; padding: 0 12px; min-height: 44px; }
  .tab svg { display: none; }
  .tab::before { top: auto; bottom: -16px; left: 12px; right: 12px; }
  .h1 { font-size: 44px; }
  .h1.big { font-size: 56px; }
  .pagehead .h1 { font-size: 64px; }
  .t20 { font-size: 24px; }
  .hero, .lower { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .lower { margin-top: 48px; }
  .hero + .lower { border-top: 1px solid var(--line); padding-top: 28px; }
  .lower .mapsec, .lower > .issec { border-top: 0; padding-top: 0; margin-top: 0; }
  .lower > * { margin-top: 0 !important; }
  .hero > .boards, .hero > .side { margin-top: 0; }
  .hero.located .side > * + * { margin-top: 32px; }
  .hero .ask { position: sticky; top: 24px; }
  .hero.located .ask { position: static; }
  .rollcall .what b { font-size: 19px; }
  /* reading pages: the title holds the left margin, the text keeps a readable measure */
  body:is([data-page="issues"], [data-page="news"], [data-page="how"]) main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  body:is([data-page="issues"], [data-page="news"], [data-page="how"]) main > * { grid-column: 2; max-width: 720px; }
  body:is([data-page="issues"], [data-page="news"], [data-page="how"]) main > .h1 { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 24px; margin-top: 0; }
  body:is([data-page="issues"], [data-page="news"], [data-page="how"]) main > .h1 + * { margin-top: 0; }
  .how > .t20 { margin-top: 32px; }
  .how > .t20:first-child { margin-top: 0; }
  /* the record: the measure on the left, its roll calls on the right */
  .pagehead { max-width: 900px; }
  .bill { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 32px 0 36px; }
  .bill-text { position: sticky; top: 20px; align-self: start; }
  .bill-votes > .vote:first-child { margin-top: 0; }
  .bill-votes > .vote:first-child > .lbl:first-child, .bill-votes > .vote:first-child > .result:first-child { margin-top: -10px; }
  .vote .board { padding: 14px 14px 8px; }
  .after.rule, .fold.before, .soon, .between { max-width: 760px; }
  .two { gap: 10px; }
}
@media (min-width: 1100px) {
  .h1.big { font-size: 64px; }
}
/* folded votes name your members with the same marks */
.said { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.said .dot { width: 11px; height: 11px; border-width: 1.75px; }
.said.pY .dot { background: var(--ink); }
.said.pX .dot { border-color: var(--amber-edge); background: var(--amber); }
.said + .vh-only + .said { margin-left: 16px; }
@media (min-width: 1000px) {
  /* the full issue list reads as two columns of rows on a wide screen */
  body[data-page="issues"] #irows { columns: 2; column-gap: 40px; border-top: 0; }
  body[data-page="issues"] #irows li { break-inside: avoid; border-top: 1px solid var(--line); border-bottom: 0; }
  body[data-page="issues"] main > * { max-width: 860px; }
}

/* ---------- the first screen before data: the real header, blank shapes at their final size ---------- */
.shell-other { display: none; }
[data-shell="record"] .shell-home, [data-shell="page"] .shell-home { display: none; }
[data-shell="record"] .shell-other, [data-shell="page"] .shell-other { display: block; }
.sk { display: block; background: var(--hair); border-radius: 3px; height: 15px; margin-top: 12px; }
.sk-t { height: 26px; width: 70%; margin-top: 0; }
.sk-h { display: inline-block; height: 40px; width: 60%; vertical-align: middle; }
.sk-s { width: 55%; }
.sk-board { height: 150px; background: var(--board); opacity: .14; border-radius: 6px; margin-top: 16px; }
.sk-row { height: 110px; }
.boards .sk-board.big-s { height: 190px; opacity: .14; }
.boards .sk-board.big-h { height: 250px; opacity: .14; }
.skel { pointer-events: none; }

/* the Senate gets taller columns on a phone so each of its 100 marks stays readable */
.field.narrow { display: none; }
@media (max-width: 479px) {
  .field.wide { display: none; }
  .field.narrow { display: block; }
}

/* ---------- My members: each record in marks ---------- */
.lead > * + *, .roster > * + * { margin-top: 14px; }
.roster { margin-top: 28px; }
.roster .t20 { margin-top: 28px; }
.roster .t20:first-child { margin-top: 0; }
.rows .mrow { padding: 18px 0 8px; }
.mrow > span b { font-family: var(--fd); font-size: 21px; font-weight: 700; }
.board.record { margin-top: 12px; padding: 10px 12px 6px; }
.board.record figcaption { margin-bottom: 8px; }
.contact { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 6px; }
.contact a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- the footer: the end of the record ---------- */
.foot { max-width: none; margin-top: 48px; padding: 36px var(--gut) 48px; background: var(--board); color: var(--lamp); }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; gap: 28px; }
.foot .mark { min-height: 0; font-size: 24px; color: var(--lamp); }
.foot p, .foot li { font-size: 15px; line-height: 1.5; color: rgba(246, 240, 230, .8); }
.foot a { color: var(--lamp); }
.foot-mark > * + *, .foot-data > * + * { margin-top: 8px; }
.foot-h { font-family: var(--fd); font-size: 19px; font-weight: 700; color: var(--lamp); margin-bottom: 10px; }
.key-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.key-list li { display: flex; align-items: center; }
.key-list .mk { width: 12px; height: 12px; margin-right: 12px; }
.key-list .mk.ring-k { width: 16px; height: 16px; margin-right: 10px; }
.foot :focus-visible { outline-color: var(--lamp); }
@media (max-width: 759px) { .foot { margin-bottom: 0; } }

@media (min-width: 760px) {
  .foot-in { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 56px; }
  .foot { padding-top: 48px; padding-bottom: 64px; margin-top: 72px; }
  body[data-page="members"] main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  body[data-page="members"] main > * { grid-column: auto; max-width: none; }
  body[data-page="members"] .lead { position: sticky; top: 24px; }
  body[data-page="members"] .roster { margin-top: 0; }
  .mrow { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
