/* Texas Appointments Tracker: the bill tracker's design system, applied here.
   The sidebar is how you get around; everything to its right is set like a
   document rather than a dashboard: ink on white, rules instead of boxes,
   square corners, no shadows. Color is spent in two places only. The
   highlighter marks what can be acted on now (an open seat, the figure worth
   repeating), and navy marks a term ending within the year. */
:root {
  color-scheme: light;
  --side: #13263a; --side-2: #1b3249; --side-3: #24405c; --side-ink: #eaf0f6; --side-muted: #8ea2b7;
  --side-foot: #0d1b2a;   /* the sidebar's footer: a shade darker than the menu above it */
  --side-mine: #f7f0dc; --side-mine-2: #ede2c2; --side-mine-ink: #13263a; --side-mine-soft: #4a4636;   /* the reader's own band: cream, with the site's navy */
  --paper: #ffffff; --wash: #f3f4f6; --ink: #142230; --pencil: #5b6675; --faint: #8c95a3;
  --body: #3c4756; --navy: #1a4470; --ochre: #76560d;
  --rule: #d5d9df; --rule-soft: #e8ebef;
  /* Chart marks (Parsel's chart guide). --rest is the gray for everything a chart is not about (terms ending later,
     filled seats, no set end date): 4.9:1 on white, so an outline in it passes 4.5:1. The highlighter can't reach
     4.5:1 as a fill on white (1.3:1), so by day its marks keep a same-hue ochre edge (6.8:1); by night the yellow
     alone is 13:1 and the edge goes. */
  --rest: #677180; --now-edge: var(--ochre);
  --marker: #ffe04a; --marker-soft: #fff2a8;
  --ts: .92;
  --hl: var(--marker); --on-marker: #142230; --inverse: #142230; --on-inverse: #ffffff;
  --text: "Ideal Sans SSm A", "Ideal Sans SSm B", "Archivo", system-ui, -apple-system, sans-serif;
  --head: "Ringside Narrow SSm A", "Ringside Narrow SSm B", "Archivo", system-ui, sans-serif;
  --cond: "Ringside Condensed SSm A", "Ringside Condensed SSm B", "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;   /* chart numbers only */
  --pad: clamp(20px, 3.4vw, 52px);
  --side-w: 304px;   /* the bill tracker's width */
}
html[data-size="s"] { --ts: .84; }
html[data-size="l"] { --ts: 1.04; }
html[data-size="xl"] { --ts: 1.16; }
html[data-theme="dark"] { color-scheme: dark;
  --side: #08121c; --side-2: #122131; --side-3: #1d3349; --side-ink: #e3eaf1; --side-muted: #8a9db1;
  --side-foot: #0e1a28;   /* by night the menu is near black, so the footer steps a touch lighter instead */
  --side-mine: #e8dfc4; --side-mine-2: #ddd1ae; --side-mine-ink: #13263a; --side-mine-soft: #45412f;   /* a little dimmer by night */
  --paper: #0f1a25; --wash: #172535; --ink: #edf2f6; --body: #c4ced8; --pencil: #97a6b5; --faint: #6f8092;
  --navy: #9cc1ea; --ochre: #e5bd5c; --rule: #2c3d50; --rule-soft: #1e2d3d;
  --rest: #8193a6; --now-edge: transparent;   /* 5.6:1 on the night page; the yellow needs no edge */
  --marker-soft: rgba(255, 224, 74, .17); --hl: rgba(255, 224, 74, .42); --inverse: #22405e; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] { color-scheme: dark;
  --side: #08121c; --side-2: #122131; --side-3: #1d3349; --side-ink: #e3eaf1; --side-muted: #8a9db1;
  --side-foot: #0e1a28;   /* by night the menu is near black, so the footer steps a touch lighter instead */
  --side-mine: #e8dfc4; --side-mine-2: #ddd1ae; --side-mine-ink: #13263a; --side-mine-soft: #45412f;   /* a little dimmer by night */
  --paper: #0f1a25; --wash: #172535; --ink: #edf2f6; --body: #c4ced8; --pencil: #97a6b5; --faint: #6f8092;
  --navy: #9cc1ea; --ochre: #e5bd5c; --rule: #2c3d50; --rule-soft: #1e2d3d;
  --rest: #8193a6; --now-edge: transparent;   /* 5.6:1 on the night page; the yellow needs no edge */
  --marker-soft: rgba(255, 224, 74, .17); --hl: rgba(255, 224, 74, .42); --inverse: #22405e; } }
html[data-font="atkinson"] { --text: "Atkinson Hyperlegible Next", system-ui, sans-serif; --head: "Atkinson Hyperlegible Next", system-ui, sans-serif;
                             --cond: "Atkinson Hyperlegible Next", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 calc(17px * var(--ts))/1.6 var(--text);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Ideal Sans ships in regular and italic only, so every bold on the page is Ringside. */
b, strong, h1, h2, h3, h4, th { font-family: var(--head); font-stretch: 80%; font-weight: 700; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--faint); }
main a:hover { background: var(--marker-soft); text-decoration-color: var(--ink); }
button, input, select { font: inherit; color: inherit; }
main { color: var(--body); }
main :is(h1, h2, h3, h4, b, strong, th) { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
/* Icons are plain line drawings beside a name, never a tinted tile of their own. */
.lucide, svg[viewBox="0 0 24 24"] { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 80; }
.skip:focus { left: 8px; }
mark { background: var(--marker-soft); color: inherit; padding: 0 .14em; margin: 0 -.06em;
       border-radius: 3px 6px 4px 7px / 7px 3px 6px 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--pencil); }
.small { font-size: calc(14px * var(--ts)); }
code { font: 400 .9em var(--mono); background: var(--wash); padding: 1px 5px; }

/* ---------- sidebar ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: var(--side-ink);
        display: flex; flex-direction: column; z-index: 40; font: 500 calc(15.5px * var(--ts))/1.3 var(--head); font-stretch: 80%; }
.side :focus-visible { outline-color: var(--marker); }
.side-top { padding: 22px 16px 12px; display: grid; gap: 15px; min-height: 0; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; padding: 0 6px; }
.brand-mark { width: 36px; height: 36px; background: var(--marker); display: grid; place-items: center; flex: none; }
.brand-mark .lucide { width: 20px; height: 20px; color: #13263a; }
.brand b { display: block; font-weight: 800; font-size: calc(19.5px * var(--ts)); line-height: 1.1; color: #fff; white-space: nowrap; }
.brand small { display: block; color: var(--side-muted); font-size: calc(15px * var(--ts)); font-weight: 500; margin-top: 3px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--side-2); border: 1px solid var(--side-3);
          padding: 0 10px; height: 38px; color: var(--side-muted); margin: 0; }
.search .lucide { width: 16px; height: 16px; }
.search:focus-within { border-color: var(--marker); }
.search input { all: unset; flex: 1; min-width: 0; color: #fff; font: 400 calc(14.5px * var(--ts)) var(--text); }
.search input::placeholder { color: var(--side-muted); }
.search kbd { font: 500 calc(12.5px * var(--ts)) var(--head); color: var(--side-muted); border: 1px solid var(--side-3); padding: 0 5px; }
.side-nav { display: grid; gap: 1px; }
/* The reader's own things, at the top and set apart in cream, so they read as "mine" at a glance, as My bills does on
   the bill tracker. Edge to edge, like the footer band. */
.side-mine { display: grid; gap: 1px; min-width: 0; margin: 0 -16px; padding: 6px 16px; background: var(--side-mine); }
.side .side-mine a.nav { color: var(--side-mine-ink); }
.side .side-mine a.nav .lucide, .side .side-mine .n { color: var(--side-mine-soft); }
.side .side-mine a.nav:hover { background: var(--side-mine-2); }
/* Where you are, in the band: the row in the highlighter itself, since a gold stroke would vanish on cream. */
.side .side-mine a.nav[aria-current="page"] { background: var(--marker); color: var(--side-mine-ink); box-shadow: inset 3px 0 0 var(--side-mine-ink); }
.side .side-mine a[aria-current="page"] .lucide, .side .side-mine a[aria-current="page"] .n { color: var(--side-mine-ink); }
.side-mine :focus-visible { outline: 2px solid var(--side-mine-ink); outline-offset: -2px; }
.side a.nav, .side-areas a { display: flex; align-items: center; gap: 10px; color: var(--side-ink); text-decoration: none; padding: 7px 10px; }
.side a.nav { font-size: calc(16.5px * var(--ts)); }
.side a.nav .lucide { color: var(--side-muted); width: 17px; height: 17px; }
.side a.nav:hover, .side-areas a:hover { background: var(--side-2); }
/* where you are: a lighter band and a stroke of the highlighter */
.side a[aria-current="page"] { background: var(--side-3); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--marker); }
.side a[aria-current="page"] .lucide { color: var(--marker); }
.side a[aria-current="page"] .n { color: var(--side-ink); }   /* the muted gray is 4.1:1 on this row's navy; AA asks 4.5 */
.side .n { margin-left: auto; color: var(--side-muted); font-size: calc(14px * var(--ts)); font-weight: 500; font-variant-numeric: tabular-nums; }
.side-areas { flex: 1; min-height: 76px; overflow-y: auto; padding: 6px 16px 16px; border-top: 1px solid var(--side-2); scrollbar-width: thin; scrollbar-color: var(--side-3) transparent; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 12px 4px 6px 10px; }
.side-label { color: var(--side-muted); font-size: calc(14px * var(--ts)); margin: 0; }
.side-areas ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.side-areas a { padding-top: 6px; padding-bottom: 6px; font-weight: 400; min-width: 0; }
.side-areas a .lucide { color: var(--side-muted); width: 17px; height: 17px; }
.side-areas a span.nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The Spanish page is drawn in English and put into Spanish as it goes; it stays hidden for that first moment. */
html.tr-wait body { visibility: hidden; }
/* The Spanish name is longer. */
html[lang="es"] .brand b { font-size: calc(17.5px * var(--ts)); white-space: normal; }
/* On a short window the busiest areas give way first, all the way, so the views at the top are never cut off; the
   same list is on the Overview and in All seats' filter. Squeezed that far, the list would show only a sliver of its
   heading above the footer's rule; with less room than its heading needs it shows nothing instead. */
@media (min-width: 961px) { .side > .side-areas { min-height: 0; } }
.side > .side-areas { container-type: size; }
@container (max-height: 46px) { .side-areas > * { visibility: hidden; } }
/* One scroll for the whole sidebar, as on the bill tracker. The top (search and views) and the foot (sponsor, the
   tools, the terms) keep their full height; on a window too short for everything the areas give way first, and if that
   is not enough the sidebar itself scrolls, like a page, so every item can be reached. No part scrolls in a small box
   of its own. */
.side { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--side-3) transparent; }
.side-top { flex-shrink: 0; }
/* On a phone the menu is one sheet: the areas are listed in full and the sheet scrolls. */
@media (max-width: 960px) { .side > .side-areas { flex: none; min-height: 0; overflow: visible; container-type: normal; } }
/* The foot: its own shade and a rule above, so it reads as the footer, not more menu. Three groups, with a hairline
   between groups and none between items: one clear ask (sponsor), one list of things to do, and a quiet block of
   when, who and the terms. The sponsor button is the only bold thing. */
.side-bottom { flex: none; background: var(--side-foot); border-top: 1px solid var(--side-3); padding: 14px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
.sb-give { padding: 0 18px 14px; }
/* The one bold thing in the foot: a light button, in the highlighter's gold with navy text, so it is noticed. It
   opens the sponsor panel (app.js). */
.side-sponsor { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px;
                padding: 10px 12px; background: var(--marker); color: var(--on-marker); font: 700 calc(15.5px * var(--ts))/1.2 var(--head); font-stretch: 80%; }
.side-sponsor .lucide { width: 16px; height: 16px; color: var(--on-marker); }
.side-sponsor:hover { background: #fff1a6; }   /* a paler gold under the pointer */
.side-sponsor:hover .lucide { fill: currentColor; }   /* the heart fills when pressed */
.side-sponsor:focus-visible { outline: 2px solid var(--side-ink); outline-offset: 2px; }
.side-sponsor-note { margin: 7px 0 0; text-align: center; color: var(--side-muted); font: 400 calc(12.5px * var(--ts))/1.35 var(--text); }
/* Things to do, one to a row: Send feedback, Text & display, and the other edition (added by app.js, last). */
.side-tools { display: grid; padding: 8px 0; border-top: 1px solid var(--side-2); }
.side-tools > button, .side-tools > a { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 5px 18px; color: var(--side-ink); font: 500 calc(15px * var(--ts))/1.3 var(--head); font-stretch: 80%; text-decoration: none; }
.side-tools > :hover { background: var(--side-2); color: #fff; }
.side-tools > :focus-visible { outline: 2px solid var(--marker); outline-offset: -2px; }
.side-tools > [hidden] { display: none; }
.side-tools .lucide { width: 15px; height: 15px; flex: none; color: var(--side-muted); }
/* On a phone (under 960px) app.js moves the sponsor block, Text & display and the other edition to the top of the menu,
   under the masthead, as the bill tracker does above its Full menu; the foot then starts with its list. On a wide
   screen nothing moves and the row below stays empty, so none of this shows. */
.side-top > .sb-give { padding: 0; }
.side-top > .sb-give .side-sponsor-note { text-wrap: balance; }   /* two even lines on a narrow phone, not one word left over */
.side-bottom > .side-tools:first-child { border-top: 0; }
/* With Send feedback hidden (the published site, until its receiver is set up), the list has nothing left on a phone:
   it steps aside, and the block of when, who and the terms opens the foot without a second rule. */
.side-bottom > .side-tools:not(:has(> :not([hidden]))) { display: none; }
.side-bottom > .side-tools:not(:has(> :not([hidden]))) + .sb-meta { border-top: 0; padding-top: 0; }
.side-quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.side-quick:empty { display: none; }
.side-quick > button, .side-quick > a { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 6px 8px; border: 1px solid var(--side-3); color: var(--side-ink); text-align: center;
  font: 500 calc(15px * var(--ts))/1.2 var(--head); font-stretch: 80%; text-decoration: none; }
.side-quick .lucide { width: 15px; height: 15px; flex: none; color: var(--side-muted); }
.side-quick > :focus-visible { outline: 2px solid var(--marker); outline-offset: -2px; }
.side-quick > :active { background: var(--side-2); }
@media (hover: hover) { .side-quick > :hover { background: var(--side-2); color: #fff; } }
/* When the record was read, who made this, and the terms: small and quiet. */
.sb-meta { display: grid; gap: 7px; padding: 12px 18px 0; border-top: 1px solid var(--side-2); color: var(--side-muted); font: 400 calc(12.5px * var(--ts))/1.4 var(--text); }
.side-foot { display: flex; align-items: center; gap: 6px; }
.side-foot .lucide { width: 13px; height: 13px; flex: none; }
.side-foot a { color: var(--side-ink); text-decoration-color: var(--side-muted); text-underline-offset: 2px; }
/* Whose work this is: the studio's reversed logo, small. */
.maker { display: flex; align-items: center; gap: 8px; color: var(--side-muted); text-decoration: none; }
.maker img { display: block; width: 92px; height: auto; flex: none; }
.maker:hover span { color: #fff; }
/* The disclaimer, folded to its first sentence; the rest opens in place. The full text also stands at the foot of
   every view and in About. */
.side-disclaimer summary { cursor: pointer; list-style: none; }
.side-disclaimer summary::-webkit-details-marker { display: none; }
.side-disclaimer .disc-more { color: var(--side-ink); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.side-disclaimer[open] .disc-more { display: none; }
.side-disclaimer summary:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.side-disclaimer p { margin: 4px 0 0; }
@media (max-width: 960px) { .side-tools > button, .side-tools > a { padding-top: 11px; padding-bottom: 11px; } }   /* a finger's height on a phone */
.maker-sm { display: none; }
.side:focus { outline: none; }
.topbar, .tabbar, .side-close, .scrim { display: none; }

/* Text and display: a small panel over the page, beside the sidebar's button. */
#prefs { position: fixed; inset: auto auto 64px calc(var(--side-w) + 14px); margin: 0; width: min(350px, calc(100vw - 24px)); max-height: calc(100dvh - 90px);
         overflow: auto; padding: 0 0 6px; border: 0; border-top: 4px solid var(--marker); background: var(--paper); color: var(--body);
         box-shadow: 0 12px 36px rgba(4, 12, 20, .32); }
.prefs-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 2px 18px; }
#prefs h2 { font-size: calc(20px * var(--ts)); line-height: 1.2; color: var(--ink); }
.prefs-x { all: unset; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; color: var(--pencil); }
.prefs-x:hover { color: var(--ink); } .prefs-x:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.prefs-x .lucide { width: 20px; height: 20px; }
.prefs-row { padding: 10px 18px 12px; }
.prefs-l { font: 600 calc(14px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--pencil); margin-bottom: 7px; }
.prefs-pick { display: flex; border: 1px solid var(--rule); }
.prefs-pick button { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 0; min-height: 42px; display: flex; align-items: center; justify-content: center;
                     gap: 6px; padding: 6px 8px; text-align: center; color: var(--ink); font: 500 calc(15px * var(--ts))/1.15 var(--head); font-stretch: 80%; }
.prefs-pick button + button { border-left: 1px solid var(--rule); }
.prefs-pick button:hover { background: var(--marker-soft); }
.prefs-pick button[aria-pressed="true"] { background: var(--marker); color: var(--on-marker); font-weight: 700; }
.prefs-pick button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.prefs-pick .lucide { width: 16px; height: 16px; }
.prefs-pick .a1, .prefs-pick .a2, .prefs-pick .a3, .prefs-pick .a4 { font-family: var(--head); font-weight: 700; line-height: 1; }
.prefs-pick .a1 { font-size: 13px; } .prefs-pick .a2 { font-size: 16px; } .prefs-pick .a3 { font-size: 19px; } .prefs-pick .a4 { font-size: 23px; }
.prefs-pick [data-v="atkinson"] { font-family: "Atkinson Hyperlegible Next", var(--text); font-stretch: 100%; }
.prefs-note { font-size: calc(13.5px * var(--ts)); line-height: 1.45; color: var(--pencil); margin-top: 8px; }

/* ---------- shared page furniture ---------- */
main { display: block; margin-left: var(--side-w); min-height: 100vh; outline: none; }
.page { max-width: 1160px; padding: 0 var(--pad) 110px; display: flex; flex-direction: column; }
.head { padding: 30px 0 20px; display: grid; gap: 10px; }
.eyebrow, .dateline { font: 500 calc(15px * var(--ts))/1.3 var(--head); font-stretch: 80%; color: var(--pencil); }
.head h1, .lead h1 { font: 700 clamp(28px, 2.6vw, calc(38px * var(--ts)))/1.05 var(--cond); font-stretch: 68%; text-wrap: balance; max-width: 34ch; }
.head > p.lead { margin-top: 2px; max-width: 64ch; color: var(--pencil); font-size: calc(17px * var(--ts)); padding: 0; display: block; }
.back { display: inline-flex; align-items: center; gap: 6px; font: 500 calc(15px * var(--ts)) var(--head); font-stretch: 80%; margin-top: 26px; width: fit-content; }
.back svg { width: 15px; height: 15px; }
.note { font-size: calc(14.5px * var(--ts)); line-height: 1.5; color: var(--pencil); }
.notice { font-size: calc(15px * var(--ts)); background: var(--marker-soft); display: flex; gap: 10px; align-items: baseline; padding: 6px 12px; margin: 22px 0 0; color: var(--ink); }
.notice svg { width: 15px; height: 15px; align-self: center; }
.notice p { margin: 0; }
.sec { border-top: 3px solid var(--ink); padding-top: 14px; margin-top: 56px; display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 4px; }
.sec-head h2 { font-size: calc(27px * var(--ts)); line-height: 1.05; font-weight: 800; display: inline-flex; align-items: center; gap: 11px; }
.sec-head h2 .lucide { width: 22px; height: 22px; color: var(--pencil); }
.sec-head p { font-size: calc(15px * var(--ts)); line-height: 1.5; color: var(--pencil); max-width: 62ch; flex: 1 1 320px; }
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 700 calc(15.5px * var(--ts))/1 var(--head); font-stretch: 80%;
       color: var(--ink); border: 1px solid var(--ink); padding: 10px 14px; min-height: 42px; text-decoration: none; }
.btn:hover { background: var(--marker-soft); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.primary { background: var(--marker); color: var(--on-marker); border-color: var(--marker); }
.btn.primary:hover { background: var(--inverse); color: var(--marker); border-color: var(--inverse); }
.btn svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.toast { position: fixed; z-index: 60; left: calc(50% + var(--side-w) / 2); bottom: 26px; transform: translateX(-50%); max-width: calc(100vw - 32px); box-sizing: border-box;
         background: var(--inverse); color: var(--on-inverse); padding: 12px 16px; font: 500 calc(15.5px * var(--ts))/1.35 var(--head); font-stretch: 80%; display: flex; gap: 14px; align-items: baseline; }
.toast a, .toast button { all: unset; cursor: pointer; font-weight: 700; color: var(--marker); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.toast a:focus-visible, .toast button:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.print-only { display: none; }

/* Seat marks: one square per seat. The highlighter for a seat open now, navy for a term ending within a year, an
   outline for later, a hatched outline where the seat has no set end date. */
.marks { display: flex; flex-wrap: wrap; gap: 3px; align-self: center; }
.mk { display: inline-block; width: 10px; height: 10px; flex: none; }
.mk.now { background: var(--marker); box-shadow: inset 0 0 0 1px var(--now-edge); }
.mk.soon { background: var(--navy); }
.mk.later { box-shadow: inset 0 0 0 1.5px var(--rest); }
.mk.noterm { box-shadow: inset 0 0 0 1.5px var(--rest); background: repeating-linear-gradient(135deg, transparent 0 2px, var(--rule) 2px 3px); }
.key { display: flex; flex-wrap: wrap; gap: 2px 16px; font: 500 calc(14.5px * var(--ts))/1.3 var(--head); font-stretch: 80%; color: var(--ink); }
.key span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- the overview, set like the tracker's read ---------- */
.lead { padding: 26px 0 0; display: grid; gap: 8px; }
.lead h1 { max-width: 1000px; }
.viz { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink); }
.viz-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 28px; margin-bottom: 8px; }
.viz-head h2 { font-size: calc(21px * var(--ts)); font-weight: 800; line-height: 1.1; display: inline-flex; align-items: center; gap: 9px; }
.viz-head h2 .lucide { width: 19px; height: 19px; color: var(--pencil); }
.chart { min-height: 286px; }
/* Plot's hover tip shows a bar's month and count; it must never take the click meant for the bar under it. */
.chart g[aria-label="tip"] { pointer-events: none; }
/* An outline bar has no fill, and SVG takes a tap only on what is painted, so the whole bar is made the target. The
   words and rules drawn on the chart are part of the picture: a tap on them goes through to the bar beneath. */
.chart rect.bar-link { pointer-events: all; }
.chart svg text, .chart svg line { pointer-events: none; }
/* Every chart ends with its source: agency, dataset, "Updated <date>" (Parsel's chart guide). */
.chart-source { margin-top: 4px; font-size: calc(13.5px * var(--ts)); line-height: 1.45; color: var(--pencil); }
.chart svg { width: 100%; height: auto; fill: currentColor; stroke: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.bar-link { cursor: pointer; }
.bar-link:hover, .bar-link:focus { opacity: .8; outline: none; }
.bar-link:focus-visible { stroke: var(--ink); stroke-width: 2px; }
.viz .note { margin-top: 6px; }

/* ---------- every appointed seat: one square for every ten (seatWaffle in app.js) ---------- */
/* The share card's waffle in the tracker's own marks (.mk): highlighter with an ochre edge for seats that can be filled
   now, navy for terms ending within 12 months, an outline for the rest. The squares fill the chart's width in 26
   columns (20 on a phone); the key stands beside them, or under them where there is no room. */
.wf-body { display: grid; grid-template-columns: minmax(0, 560px) minmax(250px, 340px); gap: 16px 56px; align-items: start; margin-top: 4px; }
.wf-grid { --cols: 26; --g: 4px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--g); padding: 2px 0; }
.wf-t { aspect-ratio: 1; border-radius: 1.5px 2.5px 2px 3px / 2.5px 1.5px 3px 2px; }
.wf-t.now { background: var(--marker); box-shadow: inset 0 0 0 1px var(--now-edge); }
.wf-t.soon { background: var(--navy); }
.wf-t.filled { box-shadow: inset 0 0 0 1.5px var(--rest); }
/* Filled in by hand, as on the bill tracker: each square sits a little off true, the way boxes colored on a grid do.
   Half the bill tracker's lean, because these squares are about twice the size of its 8px tiles. */
.wf-t.j0 { transform: rotate(-2deg) scale(.96); }
.wf-t.j1 { transform: rotate(1.75deg) translate(.3px, -.2px); border-radius: 3px 1.5px 2.5px 2px / 2px 3px 1.5px 2.5px; }
.wf-t.j2 { transform: rotate(-1deg) scale(1.02, .95); }
.wf-t.j3 { transform: rotate(2.75deg) scale(.95, 1.02); border-radius: 2px 3px 1.5px 2.5px / 3px 2px 2.5px 1.5px; }
.wf-t.j4 { transform: rotate(.75deg) translate(.3px, .3px) scale(.98); }
.wf-t.j5 { transform: rotate(-3deg) scale(1.01, .95); }
.wf-t.j6 { transform: rotate(1.25deg) scale(.95, .99); border-radius: 2.5px 2px 3px 1.5px / 1.5px 2.5px 2px 3px; }
.wf-t.j7 { transform: rotate(-.5deg) scale(1.02); }
/* The key: a mark, a name and a count per kind of seat, set like the tables below (the open count in the highlighter). */
.wf-key { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.wf-k { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 10px 4px 11px; border-bottom: 1px solid var(--rule-soft);
        color: var(--ink); text-decoration: none; font: 500 calc(17px * var(--ts))/1.25 var(--head); font-stretch: 80%; }
.wf-k .mk { width: 14px; height: 14px; }
.wf-n { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.wf-n b { background: linear-gradient(transparent 56%, var(--hl) 56%); padding: 0 2px; }
a.wf-k:hover { background: var(--marker-soft); }
a.wf-k svg { width: 16px; height: 16px; color: var(--faint); }
.wf-side .note { margin-top: 10px; }
/* Pointing at a row of the key (or moving to it with the keyboard) lights its squares and lets the rest step back. */
.wf:has(.wf-k[data-k="now"]:is(:hover, :focus-visible)) .wf-t:not(.now),
.wf:has(.wf-k[data-k="soon"]:is(:hover, :focus-visible)) .wf-t:not(.soon),
.wf:has(.wf-k[data-k="filled"]:hover) .wf-t:not(.filled) { opacity: .18; }
/* What the tracker is for, under the two charts, on the waffle's two columns: the paragraph under the squares, the
   ways in under the key, so the overview keeps one grid from the waffle down. */
.about { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 560px) minmax(250px, 340px); gap: 18px 56px; align-items: start; }
.lede { font-size: calc(20.5px * var(--ts)); line-height: 1.5; max-width: 58ch; text-wrap: pretty; }
.runin { font-size: calc(16px * var(--ts)); line-height: 1.55; max-width: 64ch; }
.about-side { padding-top: 6px; }
@media (max-width: 1100px) { .wf-body, .about { grid-template-columns: minmax(0, 1fr); } .wf-grid { max-width: 640px; } .about-side { padding-top: 0; } }
@media (max-width: 700px) { .wf-grid { --cols: 20; --g: 3px; } .wf-k { font-size: calc(16.5px * var(--ts)); padding: 11px 2px 12px; } }
.runin svg { width: 15px; height: 15px; vertical-align: -2px; }
.try { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 14px; font: 500 calc(15px * var(--ts))/1.4 var(--head); font-stretch: 80%; color: var(--pencil); }
.try a { color: var(--ink); }

/* Lists of things to open (areas, boards): a name, a note under it, figures at the right. */
.rows { display: flex; flex-direction: column; }
.row-head { display: grid; grid-template-columns: minmax(0, 1fr) 7rem 9rem 1.2rem; gap: 0 22px; font: 500 calc(13.5px * var(--ts)) var(--head); font-stretch: 80%;
            color: var(--pencil); padding: 6px 4px; border-bottom: 1px solid var(--ink); }
.row-head span:nth-child(2), .row-head span:nth-child(3) { text-align: right; }
.row-link { display: grid; grid-template-columns: minmax(0, 1fr) 7rem 9rem 1.2rem; gap: 0 22px; align-items: center; padding: 10px 4px 11px;
            border-bottom: 1px solid var(--rule-soft); text-decoration: none; color: var(--body); }
.row-link:hover { background: var(--marker-soft); }
.row-link > svg { width: 16px; height: 16px; color: var(--faint); }
.row-title { font: 700 calc(16.5px * var(--ts))/1.3 var(--head); font-stretch: 80%; color: var(--ink); }
.row-sub { font-size: calc(14px * var(--ts)); color: var(--pencil); }
.row-who { display: flex; gap: 10px; align-items: flex-start; }
.row-who > svg { margin-top: 3px; color: var(--pencil); }
.row-n { font: 500 calc(16px * var(--ts))/1.3 var(--head); font-stretch: 80%; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.row-n b { background: linear-gradient(transparent 56%, var(--hl) 56%); padding: 0 2px; }

/* ---------- seat finder ---------- */
.filters { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--ink);
           display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: end; padding: 12px 0 14px; }
.field { display: grid; gap: 3px; min-width: 0; }
.field label, .field .label { font: 500 calc(13.5px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--pencil); }
.field.wide { flex: 1 1 100%; }
.filters .input, .filters .select { font: 400 calc(15.5px * var(--ts))/1.3 var(--text); color: var(--ink); border: 0; border-bottom: 1px solid var(--ink);
           border-radius: 0; background-color: transparent; padding: 3px 2px 4px; min-width: 190px; max-width: 100%; width: 100%; }
.filters .select { max-width: 260px; }
.filters .input::placeholder { color: var(--faint); }
.filters .input:focus, .filters .select:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.input-icon { position: relative; max-width: 560px; }
.input-icon > svg { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--pencil); }
.input-icon .input { padding-left: 24px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: end; flex: 1 1 100%; }
/* A choice of one, as the tracker draws it: words, and a stroke of highlighter under the one chosen. */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; padding: 3px 0 4px; }
.seg button { all: unset; cursor: pointer; font: 500 calc(15.5px * var(--ts))/1.3 var(--head); font-stretch: 80%; color: var(--ink); padding: 0 2px; }
.seg button[aria-pressed="true"] { font-weight: 700; background: linear-gradient(transparent 56%, var(--hl) 56%); }
.seg button:hover { background: var(--marker-soft); }
.seg button[aria-pressed="true"]:hover { background: linear-gradient(transparent 56%, var(--hl) 56%); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.filters-toggle { display: none; }
.result-line { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; justify-content: space-between; margin: 16px 0 6px; font-size: calc(15px * var(--ts)); color: var(--pencil); }
.result-line p { margin: 0; }
.result-line .num { font-family: var(--head); font-stretch: 80%; font-weight: 700; color: var(--ink); }
.now-n { background: linear-gradient(transparent 56%, var(--hl) 56%); padding: 0 2px; }
.small-btn { min-height: 34px; padding: 7px 11px; font-size: calc(14.5px * var(--ts)); }
.more { margin-top: 20px; align-self: flex-start; }
.empty { padding: 44px 4px; color: var(--pencil); display: grid; gap: 12px; justify-items: start; }
.empty h2 { font-size: calc(21px * var(--ts)); }
.empty p { max-width: 62ch; }

/* A board and its seats: the board's name and purpose, then its seats as rows under a rule. */
.board-group { margin-top: 30px; }
.bg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding-bottom: 8px; }
.bg-title { min-width: 0; }
.bg-head h3 { font-size: calc(20px * var(--ts)); line-height: 1.2; }
.bg-head h3 a { text-decoration: none; }
.bg-head h3 a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.bg-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font: 500 calc(14px * var(--ts))/1.4 var(--head); font-stretch: 80%; color: var(--pencil); margin-top: 2px; }
.bg-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.bg-meta a svg { width: 12px; height: 12px; }
.bg-purpose { grid-column: 1 / -1; font-size: calc(15px * var(--ts)); line-height: 1.5; max-width: 80ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seat { display: grid; grid-template-columns: 34px minmax(0, 2.3fr) minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 20px;
        align-items: start; padding: 11px 4px 12px 0; border-bottom: 1px solid var(--rule-soft); }
.seat:hover { background: var(--marker-soft); }
.seat.seat-head { font: 500 calc(13.5px * var(--ts)) var(--head); font-stretch: 80%; color: var(--pencil); padding: 6px 4px 6px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); align-items: end; }
.seat.seat-head:hover { background: none; }
.seat-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seat-role { font: 700 calc(16px * var(--ts))/1.35 var(--head); font-stretch: 80%; color: var(--ink); }
.seat-tags { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: calc(14px * var(--ts)); color: var(--pencil); }
.who { display: inline-flex; align-items: center; gap: 5px; }
.who svg { width: 14px; height: 14px; }
.seat-role .count { display: inline-block; margin-right: 7px; border: 0; padding: 0 2px; font: 700 calc(14px * var(--ts))/1.3 var(--head); font-stretch: 80%; color: var(--ink);
       background: linear-gradient(transparent 56%, var(--hl) 56%); }
.seat-when, .seat-by, .seat-who { display: flex; flex-direction: column; gap: 1px; font-size: calc(15px * var(--ts)); line-height: 1.4; }
.seat-who, .seat-by { color: var(--ink); }
/* Each row carries its own labels for screen readers; on a wide screen the heading row shows them. */
.seat-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 7px; font: 700 calc(15.5px * var(--ts))/1.35 var(--head); font-stretch: 80%; color: var(--ink); }
.st .mk { width: 9px; height: 9px; }
.st.soon { color: var(--navy); }
.st.later, .st.noterm { font-weight: 500; color: var(--pencil); }
.when-sub { font-size: calc(14px * var(--ts)); color: var(--pencil); }
.stale { display: inline-flex; gap: 5px; align-items: flex-start; font-size: calc(13.5px * var(--ts)); color: var(--ochre); margin-top: 2px; }
.stale svg { width: 13px; height: 13px; margin-top: 3px; }
.pend { font-size: calc(13.5px * var(--ts)); color: var(--ochre); }
.save { all: unset; box-sizing: border-box; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; color: var(--faint); margin-top: -4px; }
.save:hover { color: var(--ink); }
.save:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.save[aria-pressed="true"] { color: var(--ink); }
.save[aria-pressed="true"] svg { fill: var(--marker); stroke: var(--ink); }

/* ---------- a board's page ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 4px 0 0; padding: 0; list-style: none; font-size: calc(15px * var(--ts)); }
.facts li { display: inline-flex; gap: 7px; align-items: baseline; }
.facts b { font: 500 calc(13.5px * var(--ts)) var(--head); font-stretch: 80%; color: var(--pencil); }
.facts svg { width: 13px; height: 13px; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 380px); gap: 20px 60px; align-items: start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink); }
.summary p { font-size: calc(20.5px * var(--ts)); line-height: 1.45; max-width: 46ch; color: var(--body); }
.summary-text { display: grid; gap: 14px; justify-items: start; }
.summary-marks { border-left: 1px solid var(--ink); padding-left: 22px; display: grid; gap: 12px; }
.summary-marks .mk { width: 13px; height: 13px; }
.save-wide[aria-pressed="true"] { background: var(--marker-soft); }
.save-wide[aria-pressed="true"] svg { fill: var(--marker); }
.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: calc(15.5px * var(--ts)); color: var(--ink); }
.apply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 34px; }
.apply-card { border-top: 1px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.apply-card h3 { font-size: calc(19px * var(--ts)); }
.apply-card p { font-size: calc(15.5px * var(--ts)); line-height: 1.5; max-width: 52ch; }
.apply-card .btn { margin-top: auto; }

/* ---------- how to apply, and sources ---------- */
.prose { max-width: 70ch; display: grid; gap: 12px; }
.prose h2 { font-size: calc(21px * var(--ts)); margin-top: 14px; }
.prose p { font-size: calc(16.5px * var(--ts)); line-height: 1.6; }
.sources { margin-top: 64px; padding-top: 12px; border-top: 1px solid var(--rule); display: grid; gap: 6px; max-width: 86ch; font-size: calc(14.5px * var(--ts)); line-height: 1.5; color: var(--pencil); }
.sources .label { font: 700 calc(14.5px * var(--ts)) var(--head); font-stretch: 80%; color: var(--ink); }

/* Copy a link: a quiet text button beside the main action, as on the bill tracker. If copying fails it shows the link. */
.copylink { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
            font: 700 calc(14.5px * var(--ts))/1.25 var(--head); font-stretch: 80%; color: var(--pencil); }
.copylink span { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.copylink svg { width: 15px; height: 15px; }
.copylink:hover { color: var(--ink); }
.copylink:hover span { background: var(--marker-soft); }
.copylink:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.copylink.done { color: var(--ink); }
.copylink.done span { text-decoration: none; background: var(--marker-soft); word-break: break-all; }
.actions .copylink { align-self: center; padding: 0 4px; }
.result-acts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }

/* Sponsor. In the sidebar, the gold button at the head of the footer (see the sidebar's rules). At the end of the
   overview, a short signed note set like the rest of the page, under a rule rather than in a box. Its heart is the
   "open now" mark: highlighter, with an ochre edge. Both open the sponsor panel (app.js), which goes on to the shared
   Stripe links. */
.sponsor { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--ink); display: grid; gap: 12px; justify-items: start; max-width: 66ch; }
.sponsor h2 { font-size: calc(21px * var(--ts)); line-height: 1.15; font-weight: 800; }
.sponsor p { font-size: calc(17px * var(--ts)); line-height: 1.58; }
.sponsor-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 2px; }
.sponsor-act span { font-size: calc(14.5px * var(--ts)); color: var(--pencil); }
.sponsor .btn svg { fill: var(--marker); stroke: var(--ochre); stroke-width: 1.75; }
.sponsor p.sponsor-by { display: flex; align-items: center; gap: 10px; margin-top: 4px; font: 500 calc(14.5px * var(--ts))/1.3 var(--head); font-stretch: 80%; color: var(--pencil); }
.sponsor-by img { width: 24px; height: 24px; flex: none; }
.linkish { all: unset; cursor: pointer; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.linkish:hover { background: var(--marker-soft); text-decoration-color: var(--ink); }
.linkish:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* A picture with a cut for light ground and one for dark: the page shows the one that suits Day or Night. */
.on-dark { display: none !important; }
html[data-theme="dark"] .on-light { display: none !important; }
html[data-theme="dark"] .on-dark { display: block !important; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .on-light { display: none !important; } html[data-theme="auto"] .on-dark { display: block !important; } }

/* The disclaimer: small, muted, at the foot of every view and in About. */
.disclaimer { margin-top: 6px; font-size: calc(13px * var(--ts)); line-height: 1.5; color: var(--pencil); max-width: 86ch; }
.prose .disclaimer { margin-top: 18px; }

/* The sponsor panel: calm and small, over a dimmed page. The page's own pieces: a highlighter rule on top, square
   corners, choices set like the Text & display panel's, the one action in highlighter. */
.sp { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-top: 4px solid var(--marker);
      background: var(--paper); color: var(--body); box-shadow: 0 16px 48px rgba(4, 12, 20, .36); overflow: auto; }
.sp::backdrop { background: rgba(8, 18, 28, .55); }
.sp-in { padding: 14px 20px 18px; display: grid; gap: 14px; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-right: -8px; }
.sp h2 { font-size: calc(22px * var(--ts)); line-height: 1.15; font-weight: 800; color: var(--ink); }
.sp-x { all: unset; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; color: var(--pencil); }
.sp-x:hover { color: var(--ink); }
.sp-x:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.sp-x .lucide { width: 20px; height: 20px; }
.sp-lede { font-size: calc(16px * var(--ts)); line-height: 1.5; }
.sp fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 7px; }
.sp legend { padding: 0; margin-bottom: 7px; font: 600 calc(14px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--pencil); }
.sp input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
/* The tracker's masthead, as in the sidebar: the highlighter square with the armchair, then the name. */
.sp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sp-mark { width: 42px; height: 42px; background: var(--marker); color: #13263a; display: grid; place-items: center; flex: none; }
.sp-mark .lucide { width: 24px; height: 24px; }
.sp-name { margin-top: 3px; font: 500 calc(15px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--pencil); }
.sp-seg { display: flex; border: 1px solid var(--rule); }
.sp-seg label { flex: 1 1 0; cursor: pointer; }
.sp-seg label + label { border-left: 1px solid var(--rule); }
.sp-seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 6px; text-align: center;
               font: 500 calc(15.5px * var(--ts))/1.15 var(--head); font-stretch: 80%; color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-seg label:hover span { background: var(--marker-soft); }
.sp-seg input:checked + span { background: var(--marker); color: var(--on-marker); font-weight: 700; }
.sp-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -3px; }
.sp-per { font-size: calc(13.5px * var(--ts)); line-height: 1.4; color: var(--pencil); }
.sp-go { justify-content: center; margin-top: 2px; }
.sp-go svg { width: 16px; height: 16px; }
.sp-tax { font-size: calc(13px * var(--ts)); line-height: 1.4; color: var(--pencil); text-align: center; }

/* Send feedback: the sponsor panel's frame, with the bill tracker's short box and optional email. */
.fb-note { padding: 8px 12px; background: var(--marker-soft); color: var(--ink); font-size: calc(14.5px * var(--ts)); line-height: 1.45; }
.fb-form { display: grid; }
.fb-l { display: block; margin: 0 0 6px; font: 700 calc(15px * var(--ts))/1.25 var(--head); font-stretch: 80%; color: var(--ink); }
.fb-l small { font: 400 calc(14px * var(--ts))/1.25 var(--text); color: var(--pencil); margin-left: 4px; }
.fb-form textarea, .fb-form input[type="email"] { box-sizing: border-box; width: 100%; margin: 0 0 16px; padding: 9px 11px; border: 1px solid var(--pencil); border-radius: 0;
  background: var(--paper); color: var(--ink); font: 400 calc(16px * var(--ts))/1.45 var(--text); }
.fb-form textarea { min-height: 104px; resize: vertical; }
.fb-form textarea:focus-visible, .fb-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.fb-form ::placeholder { color: var(--pencil); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-send { justify-content: center; width: 100%; margin-top: 4px; }
.fb-send[disabled] { opacity: .6; cursor: default; }
.fb-err { margin: 10px 0 0; padding-left: 9px; border-left: 3px solid var(--ochre); color: var(--ink); font-size: calc(15px * var(--ts)); font-weight: 700; }
.fb-err:empty { display: none; }
.fb-thanks { margin: 4px 0 14px; font-size: calc(18px * var(--ts)); line-height: 1.5; color: var(--ink); outline: none; }
.sponsor + .sources { margin-top: 44px; }

/* ---------- small screens ---------- */
/* Under 960px the sidebar becomes a sheet, and the main views move to a bar along the bottom edge, drawn the way the
   sidebar is: navy, the same icons, a stroke of highlighter on the view you're in. */
@media (max-width: 960px) {
  .side { width: min(88vw, 340px); transform: translateX(-102%); visibility: hidden; overscroll-behavior: contain;
          transition: transform .2s ease-out, visibility 0s .2s; }
  body.side-open { overflow: hidden; }
  body.side-open .side { transform: none; visibility: visible; transition: transform .2s ease-out; box-shadow: 20px 0 50px rgba(0, 0, 0, .25); }
  body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(19, 38, 58, .45); z-index: 35; }
  .side-close { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; position: absolute; top: 14px; right: 6px;
                width: 44px; height: 44px; color: var(--side-muted); }
  .side-close .lucide { width: 22px; height: 22px; }
  .side .brand { padding-right: 40px; }
  .search { height: 44px; }
  .search input { font-size: calc(16px * var(--ts)); }
  .search kbd { display: none; }
  .side a.nav, .side-areas a { padding-top: 11px; padding-bottom: 11px; }
  #prefs { inset: auto 12px 74px 12px; width: auto; }

  main { margin-left: 0; }
  .page { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; background: var(--side); padding: 9px var(--pad); }
  .topbar :focus-visible { outline-color: var(--marker); }
  .topbar .brand { padding: 0; gap: 10px; }
  .topbar .brand-mark { width: 30px; height: 30px; }
  .topbar .brand-mark .lucide { width: 17px; height: 17px; }
  .topbar .brand b { font-size: calc(18px * var(--ts)); white-space: nowrap; }
  .maker-sm { display: flex; align-items: center; gap: 6px; color: var(--side-muted); text-decoration: none;
              font: 500 calc(14px * var(--ts))/1.2 var(--head); font-stretch: 80%; white-space: nowrap; }
  .maker-sm img { width: 19px; height: 19px; flex: none; }
  .maker-sm b { color: var(--side-ink); }
  /* Equal tabs when the names fit; a longer name takes the room it needs from the shorter ones instead of running into
     its neighbor or off the screen (plain 1fr keeps each tab at least as wide as its name). */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30;
            background: var(--side); padding-bottom: env(safe-area-inset-bottom, 0px); font: 500 calc(12.5px * var(--ts))/1.1 var(--head); font-stretch: 80%; }
  .tabbar a, .tabbar button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; align-content: center; gap: 5px;
            min-height: 58px; padding: 6px 3px; text-align: center; white-space: nowrap; color: var(--side-ink); }
  .tabbar button { border-right: 1px solid var(--side-3); }
  .tabbar .lucide { width: 20px; height: 20px; color: var(--side-muted); }
  .tabbar a[aria-current="page"] { background: var(--side-3); color: #fff; box-shadow: inset 0 3px 0 var(--marker); }
  .tabbar a[aria-current="page"] .lucide { color: var(--marker); }
  .tabbar :focus-visible { outline: 2px solid var(--marker); outline-offset: -3px; }
  .toast { left: 50%; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  .summary { grid-template-columns: 1fr; }
  .summary-marks { border-left: 0; padding-left: 0; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
  .filters .filter-row { display: none; }
  .filters.open .filter-row { display: flex; }
  .filters .select { max-width: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; white-space: nowrap; }
  .bg-head { grid-template-columns: minmax(0, 1fr); }
  .bg-head .marks { order: 2; }
  .bg-purpose { order: 3; }
  .seat.seat-head { display: none; }
  .seat { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 8px; }
  .seat > :nth-child(n + 3) { grid-column: 2; }
  .seat-when { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .seat-when .stale { flex-basis: 100%; }
  .seat-by, .seat-who { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: calc(14.5px * var(--ts)); }
  .seat-k { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; color: var(--pencil); font-size: calc(14px * var(--ts)); }
  .seat-when .seat-k { display: none; }
  .seat-who .when-sub::before { content: "· "; }
  /* One count column on a phone, sized to its heading rather than a desktop's, so a name keeps the width it needs
     instead of folding onto four lines beside an empty gap. */
  .row-link, .row-head { grid-template-columns: minmax(0, 1fr) 4.5rem 1rem; column-gap: 12px; }
  .row-link > :nth-child(3), .row-head > :nth-child(3) { display: none; }
  .row-link > span:first-child { line-height: 1.35; }   /* a name and its note read as one entry, not spaced like running text */
  .row-head span { line-height: 1.2; }
}
@media (max-width: 960px) and (max-height: 480px) {
  .tabbar a, .tabbar button { min-height: 44px; }
  .tabbar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 700px) { :root { --pad: 18px; } }

/* ---------- phones: fixes from a pass at 320 to 430px wide, in English and Spanish ---------- */
/* The sidebar's column is the sheet's width, never the masthead's: on the narrowest phones the tracker's name takes two
   lines beside the close button instead of pushing the search box and the counts past the sheet's edge. */
.side-top { grid-template-columns: minmax(0, 1fr); }
.search input { align-self: stretch; }   /* the whole height of the box takes a tap, not only the line of text */
@media (max-width: 960px) {
  .side .brand b { white-space: normal; }
  /* When the term ends: each choice a finger's height; the highlighter stays on the words, not the padding. */
  .seg { padding: 0; }
  .seg button, .seg button:hover, .seg button[aria-pressed="true"], .seg button[aria-pressed="true"]:hover {
    padding: 10px 2px; background-clip: content-box; background-origin: content-box; }
  /* The filters stack, so each takes the full width and their rules line up. */
  .filters .filter-row .field { flex: 1 1 100%; }
  /* Who holds a seat reads as one line of text that wraps where it must, so "· since 2023" never starts a line. */
  .seat-who { display: block; }
  .seat-who .seat-k { margin-right: .4em; }
  .seat-who .when-sub { white-space: nowrap; }   /* "since 2023" stays together; a line may break only after the dot */
  .seat-who .when-sub::before { content: "\00a0· "; white-space: normal; }
}
/* Your list on a narrow phone: the three ways to send it on stack as one even column instead of a ragged one; Clear
   list keeps its own width, so it stays the quietest of the four. */
@media (max-width: 560px) { .actions [data-act]:not([data-act="clear"]) { flex: 1 1 100%; } }
/* Where there is no pointer, small links get a taller target without moving the line they sit on, as on the bill
   tracker; and a hover color would stick to whatever was tapped last, so a press shows instead. */
@media (hover: none) {
  html { -webkit-tap-highlight-color: transparent; }
  .maker-sm, .bg-meta a, .back, .toast a, .toast button { position: relative; }
  .maker-sm::after, .bg-meta a::after, .back::after, .toast a::after, .toast button::after { content: ""; position: absolute; inset: -10px -6px; }
  .try { row-gap: 0; }
  .try a { padding: 6px 0; }
  .side a.nav:hover:not([aria-current]), .side-areas a:hover:not([aria-current]), .side-tools > :hover, .row-link:hover { background: none; }
  .side .side-mine a.nav:hover:not([aria-current]) { background: none; }
  .side a.nav:active, .side-areas a:active, .side-tools > :active, .tabbar a:active, .tabbar button:active { background: var(--side-2); }
  .side .side-mine a.nav:active { background: var(--side-mine-2); }
  .row-link:active { background: var(--marker-soft); }
  a.wf-k:hover { background: none; }
  a.wf-k:active { background: var(--marker-soft); }
  .side-sponsor:hover { background: var(--marker); }
  .side-sponsor:hover .lucide { fill: none; }
  .side-sponsor:active { background: #fff1a6; }
}

/* ---------- print: the list as a brief ---------- */
@media print {
  @page { margin: 0.5in; }
  :root { --ts: .78; }
  body { background: #fff; color: #142230; }
  .side, .topbar, .tabbar, .scrim, .no-print, .save, .toast, .skip, #prefs, .sources, .notice { display: none !important; }
  main { margin-left: 0; }
  .page { padding: 0; max-width: none; }
  .page > .head .eyebrow, .page > .head h1, .page > .head > p { display: none; }
  .print-only { display: block !important; }
  .print-only h1 { font: 700 22pt/1.1 var(--cond); font-stretch: 68%; }
  .print-only p { margin: 4px 0 0; font-size: 9.5pt; color: #5b6675; }
  .board-group { break-inside: avoid; margin-top: 16px; }
  .bg-purpose { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .seat { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 2px 14px; padding: 6px 0; break-inside: avoid; }
  .seat > * { grid-column: auto !important; }
  .seat.seat-head > span:first-child { display: none; }
  .seat-k { display: none !important; }
  .seat-when, .seat-by, .seat-who { flex-direction: column; }
  .apply-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .apply-card { break-inside: avoid; }
  .apply-card .btn { border: 0; padding: 0; min-height: 0; font-weight: 400; }
  .apply-card .btn::after { content: " " attr(href); word-break: break-all; }
  .apply-card .btn svg { display: none; }
  a { text-decoration: none; }
}
.results { display: flex; flex-direction: column; }
@media (max-width: 700px) { .chart { min-height: 236px; } }
@media print { .seat.seat-head { display: grid !important; font-size: 8pt; padding: 4px 0; } }
