/* Tiffin Civic Chronicle: the one stylesheet of the public site (docs/SITE.md "Design tokens").
   "The minute book" (UI_REVIEW stage 5): Public Sans for the interface and body, with tabular lining figures for every
   number, and Source Serif 4 for headings and quoted record text. Fonts are self-hosted (static/fonts, SIL OFL 1.1); no
   request leaves www.tiffin.cc. Colours are tokens on :root with a full dark set; the islands' original chart tokens keep
   their old names (--fg, --line, --s1 …) so the charts did not have to change. Use the tokens, never a raw colour. */
@font-face { font-family:"Public Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/public-sans-latin-400.woff2?v=5.3.0") format("woff2"); }
@font-face { font-family:"Public Sans"; font-style:italic; font-weight:400; font-display:swap; src:url("/static/fonts/public-sans-latin-400-italic.woff2?v=5.3.0") format("woff2"); }
@font-face { font-family:"Public Sans"; font-style:normal; font-weight:600; font-display:swap; src:url("/static/fonts/public-sans-latin-600.woff2?v=5.3.0") format("woff2"); }
@font-face { font-family:"Public Sans"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/public-sans-latin-700.woff2?v=5.3.0") format("woff2"); }
@font-face { font-family:"Source Serif 4"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/source-serif-4-latin-400.woff2?v=5.3.0") format("woff2"); }
@font-face { font-family:"Source Serif 4"; font-style:italic; font-weight:400; font-display:swap; src:url("/static/fonts/source-serif-4-latin-400-italic.woff2?v=5.3.0") format("woff2"); }
@font-face { font-family:"Source Serif 4"; font-style:normal; font-weight:600; font-display:swap; src:url("/static/fonts/source-serif-4-latin-600.woff2?v=5.3.0") format("woff2"); }
@font-face { font-family:"Source Serif 4"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/source-serif-4-latin-700.woff2?v=5.3.0") format("woff2"); }

/* Fallbacks sized to the web fonts' metrics, so text keeps its place when the fonts arrive (UI_REVIEW P-6): size-adjust is
   the ratio of the letter-frequency-weighted average advance width (web font / Arial or Times New Roman, which Liberation
   Sans and Serif match), and ascent/descent are the web font's (hhea = typo) metrics divided by it. One face per weight. */
@font-face { font-family:"Public Sans fallback"; font-style:normal; font-weight:300 500; src:local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); size-adjust:105.20%; ascent-override:90.30%; descent-override:21.39%; line-gap-override:0%; }
@font-face { font-family:"Public Sans fallback"; font-style:italic; font-weight:300 500; src:local("Arial Italic"), local("Arial-ItalicMT"), local("Helvetica Oblique"), local("Liberation Sans Italic"); size-adjust:101.87%; ascent-override:93.26%; descent-override:22.09%; line-gap-override:0%; }
@font-face { font-family:"Public Sans fallback"; font-style:normal; font-weight:501 650; src:local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"); size-adjust:98.44%; ascent-override:96.51%; descent-override:22.86%; line-gap-override:0%; }
@font-face { font-family:"Public Sans fallback"; font-style:normal; font-weight:651 900; src:local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"); size-adjust:99.40%; ascent-override:95.57%; descent-override:22.64%; line-gap-override:0%; }
@font-face { font-family:"Serif fallback"; font-style:normal; font-weight:300 500; src:local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust:118.97%; ascent-override:87.08%; descent-override:28.16%; line-gap-override:0%; }
@font-face { font-family:"Serif fallback"; font-style:italic; font-weight:300 500; src:local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"); size-adjust:108.36%; ascent-override:95.61%; descent-override:30.92%; line-gap-override:0%; }
@font-face { font-family:"Serif fallback"; font-style:normal; font-weight:501 650; src:local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"); size-adjust:113.34%; ascent-override:91.41%; descent-override:29.56%; line-gap-override:0%; }
@font-face { font-family:"Serif fallback"; font-style:normal; font-weight:651 900; src:local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"); size-adjust:115.10%; ascent-override:90.01%; descent-override:29.11%; line-gap-override:0%; }

:root {
  color-scheme: light;
  --ink:#1C2733;
  --text:#1C2733;
  --muted:#56606B;
  --bg:#FAFAF7;
  --card:#FFFFFF;
  --surface:#F3F4F5;
  --surface-2:#E6E9EC;
  --rule:#848C95;
  --hairline:#D9DDE1;
  --border:#D9DDE1;
  --border-strong:#848C95;
  --accent:#2E6B4E;
  --accent-ink:#245740;
  --accent-soft:#E4EFE8;
  --aye:#2E6B4E;
  --nay:#A8322A;
  --abstain:#56606B;
  --absent:#56606B;
  --attention:#7A5A00;
  --attention-soft:#F3F4F5;
  --attention-border:#C9B26A;
  --link:#2B5C8A;
  --link-hover:#1C2733;
  --focus:#2B5C8A;
  --on-link:#FFFFFF;
  --hero-bg:#FAFAF7;
  --hero-text:#1C2733;
  --hero-muted:#56606B;
  --hero-kicker:#56606B;
  --hero-line:#848C95;
  --on-ink:#FFFFFF;
  --fg:var(--text);
  --line:var(--border);
  --mark:#F3DE8A;
  --on-mark:#1C2733;
  --ok:var(--accent);
  --shadow:0 1px 2px rgba(28,39,51,.12), 0 6px 16px rgba(28,39,51,.10);
  --g-mayor:#7B4FA8;
  --g-council:#3B6FA6;
  --g-mpt:#1F3F66;
  --g-staff:#2E7D5B;
  --g-board:#9A6512;
  --g-external:#6B7480;
  --g-orgs:#7D6B4A;
  --gap:#7A828B;
  --serve:#A8322A;
  --rowhl:#E8EFF6;
  --s1:#3B6FA6;
  --s2:#B5562B;
  --s3:#2E7D5B;
  --track:#E6E9EC;
  --grid:#E6E9EC;
  --l1:#3B6FA6;
  --l2:#B5562B;
  --l3:#2E7D5B;
  --l4:#8A6A10;
  --l5:#A34D7A;
  --laneb:#F1F3F5;
  --st-done:#2E6B4E;
  --st-active:#2B5C8A;
  --st-plan:#7A5A00;
  --st-stop:#A8322A;
  --orig:#7A828B;
  --cur:#5F6770;
  --fam1:#3B6FA6;
  --fam2:#B5562B;
  --fam3:#2E7D5B;
  --fam4:#8A6A10;
  --fam5:#A34D7A;
  --fam6:#1F7A80;
  --fam7:#6A55B0;
  --fam8:#B03A3A;
  --fam0:#7A828B;
}
/* Dark theme: the same block twice, for the system setting (unless the reader chose light) and for
   the manual choice (theme toggle, remembered in localStorage). tests/test_site.py checks they match. */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --ink:#E7EBEF;
  --text:#E7EBEF;
  --muted:#A7B0BA;
  --bg:#141B23;
  --card:#1A222C;
  --surface:#1C242E;
  --surface-2:#252F3A;
  --rule:#66717C;
  --hairline:#2C3642;
  --border:#2C3642;
  --border-strong:#66717C;
  --accent:#74C39A;
  --accent-ink:#9AD6B4;
  --accent-soft:#183427;
  --aye:#74C39A;
  --nay:#F2948A;
  --abstain:#A7B0BA;
  --absent:#A7B0BA;
  --attention:#E3C25E;
  --attention-soft:#1C242E;
  --attention-border:#6B5A2A;
  --link:#93BCE6;
  --link-hover:#E7EBEF;
  --focus:#93BCE6;
  --on-link:#141B23;
  --hero-bg:#141B23;
  --hero-text:#E7EBEF;
  --hero-muted:#A7B0BA;
  --hero-kicker:#A7B0BA;
  --hero-line:#66717C;
  --on-ink:#141B23;
  --fg:var(--text);
  --line:var(--border);
  --mark:#F3DE8A;
  --on-mark:#1C2733;
  --ok:var(--accent);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.35);
  --g-mayor:#B99BE0;
  --g-council:#6F9FD8;
  --g-mpt:#B6D2F2;
  --g-staff:#5DB88A;
  --g-board:#E0A85A;
  --g-external:#95A1AD;
  --g-orgs:#B3A281;
  --gap:#7E8893;
  --serve:#F2948A;
  --rowhl:#22303F;
  --s1:#6F9FD8;
  --s2:#E08A5C;
  --s3:#5DB88A;
  --track:#26303B;
  --grid:#232C37;
  --l1:#6F9FD8;
  --l2:#E08A5C;
  --l3:#5DB88A;
  --l4:#D1A93F;
  --l5:#D987B4;
  --laneb:#1A222C;
  --st-done:#74C39A;
  --st-active:#93BCE6;
  --st-plan:#E3C25E;
  --st-stop:#F2948A;
  --orig:#7E8893;
  --cur:#9AA3AD;
  --fam1:#6F9FD8;
  --fam2:#E08A5C;
  --fam3:#5DB88A;
  --fam4:#D1A93F;
  --fam5:#D987B4;
  --fam6:#4FB3B8;
  --fam7:#A193E6;
  --fam8:#E8837A;
  --fam0:#7E8893;
}
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink:#E7EBEF;
  --text:#E7EBEF;
  --muted:#A7B0BA;
  --bg:#141B23;
  --card:#1A222C;
  --surface:#1C242E;
  --surface-2:#252F3A;
  --rule:#66717C;
  --hairline:#2C3642;
  --border:#2C3642;
  --border-strong:#66717C;
  --accent:#74C39A;
  --accent-ink:#9AD6B4;
  --accent-soft:#183427;
  --aye:#74C39A;
  --nay:#F2948A;
  --abstain:#A7B0BA;
  --absent:#A7B0BA;
  --attention:#E3C25E;
  --attention-soft:#1C242E;
  --attention-border:#6B5A2A;
  --link:#93BCE6;
  --link-hover:#E7EBEF;
  --focus:#93BCE6;
  --on-link:#141B23;
  --hero-bg:#141B23;
  --hero-text:#E7EBEF;
  --hero-muted:#A7B0BA;
  --hero-kicker:#A7B0BA;
  --hero-line:#66717C;
  --on-ink:#141B23;
  --fg:var(--text);
  --line:var(--border);
  --mark:#F3DE8A;
  --on-mark:#1C2733;
  --ok:var(--accent);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.35);
  --g-mayor:#B99BE0;
  --g-council:#6F9FD8;
  --g-mpt:#B6D2F2;
  --g-staff:#5DB88A;
  --g-board:#E0A85A;
  --g-external:#95A1AD;
  --g-orgs:#B3A281;
  --gap:#7E8893;
  --serve:#F2948A;
  --rowhl:#22303F;
  --s1:#6F9FD8;
  --s2:#E08A5C;
  --s3:#5DB88A;
  --track:#26303B;
  --grid:#232C37;
  --l1:#6F9FD8;
  --l2:#E08A5C;
  --l3:#5DB88A;
  --l4:#D1A93F;
  --l5:#D987B4;
  --laneb:#1A222C;
  --st-done:#74C39A;
  --st-active:#93BCE6;
  --st-plan:#E3C25E;
  --st-stop:#F2948A;
  --orig:#7E8893;
  --cur:#9AA3AD;
  --fam1:#6F9FD8;
  --fam2:#E08A5C;
  --fam3:#5DB88A;
  --fam4:#D1A93F;
  --fam5:#D987B4;
  --fam6:#4FB3B8;
  --fam7:#A193E6;
  --fam8:#E8837A;
  --fam0:#7E8893;
}
/* scales that do not change with the theme: type (7 sizes, a 12 px floor), radius (2 data, 6 controls, pill for tags
   only), the reading measure, the font stacks */
:root {
  --fs-12:12px; --fs-14:14px; --fs-16:16px; --fs-18:18px; --fs-22:22px; --fs-28:28px; --fs-38:38px;
  --radius-data:2px; --radius-ctl:6px; --radius-pill:999px;
  --measure:72ch;
  --font-sans:"Public Sans", "Public Sans fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:"Source Serif 4", "Serif fallback", Georgia, "Times New Roman", serif;
  --font-mono:ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;   /* code and raw page text only, never numbers */
  --gutter:24px; --maxw:1280px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:var(--fs-16)/1.55 var(--font-sans);
       font-variant-numeric:tabular-nums lining-nums;   /* every number lines up in columns (V-2: no monospace figures) */
       min-height:100vh; display:flex; flex-direction:column; }   /* the footer at the bottom of short pages (UI_REVIEW L-12);
       no overflow-x:hidden, which hid pages wider than the phone (L-8) */
body > main { flex:1 0 auto; }
@media (max-width:600px) { :root { --gutter:16px; } }
a { color:var(--link); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
a:hover { color:var(--link-hover); text-decoration-thickness:2px; }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; border-radius:var(--radius-data); }
h1, h2, h3 { color:var(--ink); line-height:1.2; }
h1 { font-family:var(--font-serif); font-weight:600; font-size:var(--fs-28); line-height:1.2; margin:4px 0 10px; }
h2 { font-family:var(--font-serif); font-weight:600; font-size:var(--fs-22); margin:28px 0 10px; }
@media (min-width:601px) { h1 { font-size:var(--fs-38); line-height:1.15; } h2 { font-size:var(--fs-28); } }
h3 { font-size:var(--fs-18); font-weight:600; margin:16px 0 6px; }
p { margin:0 0 10px; }
img, svg { max-width:100%; }
code, kbd { font-family:var(--font-mono); font-size:.92em; }
mark { background:var(--mark); color:var(--on-mark); padding:0 1px; } mark * { color:inherit; }   /* Docket yellow takes ink in both themes (UI_REVIEW A-44) */
blockquote { font-family:var(--font-serif); font-size:var(--fs-18); line-height:1.6; max-width:var(--measure); }   /* quoted record text */
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip { position:absolute; left:8px; top:-60px; z-index:100; background:var(--ink); color:var(--on-ink); padding:10px 14px; border-radius:var(--radius-ctl); font-weight:600; }
.skip:focus { top:8px; color:var(--on-ink); }
.container { max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
.measure { max-width:var(--measure); }
.figure, .num, .fig { font-variant-numeric:tabular-nums lining-nums; }
.fig { font-weight:600; }   /* figures are the text face's tabular lining numerals, not a monospace (V-2) */

/* ------------------------------------------------------------------ header */
.site-header { border-bottom:1px solid var(--rule); background:var(--bg); }
.header-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px 28px; padding-top:14px; padding-bottom:14px; }
.brand { display:flex; align-items:baseline; gap:10px; text-decoration:none; color:var(--ink); }
.brand:hover { color:var(--ink); }
.brand-name { font-family:var(--font-serif); font-weight:600; font-size:var(--fs-22); line-height:1.2; }
.brand-domain { font-size:var(--fs-14); color:var(--muted); }
.primary-nav { order:5; flex:1 1 100%; margin-top:-4px; }
.primary-nav ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:2px 20px; }
.primary-nav a { display:inline-block; padding:10px 0; color:var(--ink); text-decoration:none; font-weight:400; font-size:var(--fs-14); border-bottom:3px solid transparent; }
.primary-nav a:hover { border-bottom-color:var(--border-strong); color:var(--ink); }
.primary-nav a[aria-current] { border-bottom-color:var(--ink); font-weight:600; }
.site-search { position:relative; display:flex; gap:8px; flex:1 1 280px; max-width:420px; margin-left:auto; }
.site-search input { flex:1; min-width:0; height:44px; padding:0 12px; border:1px solid var(--rule); border-radius:var(--radius-ctl); font:inherit; font-size:var(--fs-16); color:var(--text); background:var(--card); }
.site-search button { height:44px; padding:0 16px; border:0; border-radius:var(--radius-ctl); background:var(--link); color:var(--on-link); font:inherit; font-weight:600; cursor:pointer; }
.utility { display:flex; align-items:center; gap:14px; font-size:var(--fs-14); }
.utility a { color:var(--muted); }
.theme-toggle { font:inherit; font-size:var(--fs-14); color:var(--muted); background:none; border:1px solid var(--border-strong); border-radius:var(--radius-ctl); padding:4px 12px; cursor:pointer; min-height:32px; }
.theme-toggle:hover { color:var(--ink); border-color:var(--ink); }
.menu-toggle, .search-toggle { display:none; font:inherit; font-weight:600; color:var(--ink); background:var(--bg); border:1px solid var(--border-strong); border-radius:var(--radius-ctl); padding:0 14px; height:44px; cursor:pointer; }
.search-toggle { width:44px; padding:0; margin-left:auto; place-items:center; }
html:not(.js) .theme-toggle { display:none; }   /* run by theme.js (UI_REVIEW P-8: shown by CSS, so no reflow) */
/* Phones: one header row, brand + Search + Menu (UI_REVIEW L-2). The search field and the menu (with Feedback and the
   theme) open below it; both start closed in CSS: base.js is deferred, so a menu that waited for it painted open and
   then collapsed, shifting the whole page (CLS 0.5-0.8, L-1). Without scripts everything shows, as before. */
@media (max-width:860px) {
  .header-row { gap:10px; padding-top:10px; padding-bottom:10px; }
  .brand-domain { display:none; }
  .js .menu-toggle { display:inline-block; }
  .js .search-toggle { display:inline-grid; }
  .js .search-toggle[aria-expanded="true"], .js .menu-toggle[aria-expanded="true"] { background:var(--ink); color:var(--on-ink); border-color:var(--ink); }
  .js .primary-nav { flex-basis:100%; order:4; margin-top:0; }
  .js .primary-nav:not([data-open="true"]), .js .primary-nav:not([data-open="true"]) ~ .utility { display:none; }
  .js .site-search:not([data-open="true"]) { display:none; }
  .primary-nav ul { flex-direction:column; gap:0; }
  .primary-nav li { border-top:1px solid var(--border); }
  .primary-nav a { display:block; padding:12px 0; border-bottom:0; }
  .primary-nav a[aria-current] { border-left:4px solid var(--accent); padding-left:10px; border-bottom:0; }
  .site-search { order:3; flex-basis:100%; max-width:none; }
  .utility { order:5; flex-basis:100%; padding:4px 0 6px; border-top:1px solid var(--border); }
  .js .menu-toggle { margin-left:0; }
  html:not(.js) .site-search { margin-left:0; }
}
@media (max-width:600px) { .brand-name { font-size:var(--fs-18); } }
/* quick results under the header search box (js/base.js) */
.quick { position:absolute; top:48px; left:0; right:0; z-index:40; background:var(--card); border:1px solid var(--border-strong); border-radius:var(--radius-ctl);
         box-shadow:var(--shadow); padding:6px 0; max-height:70vh; overflow:auto; }
.quick .qh { font-size:var(--fs-14); color:var(--muted); margin:8px 14px 2px; font-family:var(--font-sans); font-weight:600; }
.quick ul { list-style:none; margin:0; padding:0; }
.quick a { display:block; padding:7px 14px; text-decoration:none; color:var(--text); }
.quick a:hover, .quick a:focus { background:var(--surface); }
.quick .sub { display:block; font-size:var(--fs-14); color:var(--muted); }
.quick .all { border-top:1px solid var(--border); margin-top:4px; font-weight:600; color:var(--link); }

/* ------------------------------------------------------------------ breadcrumbs, page head */
.crumbs { font-size:var(--fs-14); color:var(--muted); margin:18px 0 0; }
.crumbs ol { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px; }
.crumbs li + li::before { content:"/"; margin:0 6px 0 2px; color:var(--muted); }
.crumbs a { color:var(--muted); }
.crumbs [aria-current] { color:var(--text); }
main { display:block; padding-bottom:56px; }
main p:not([class]), main li:not([class]) { max-width:var(--measure); }
.ycols li { max-width:none; }   /* year bar columns, not prose */   /* the measure of prose in cards and sections too (L-14) */
main:focus { outline:none; }
.page-head { padding:8px 0 4px; }
.page-head .lede { font-size:var(--fs-18); color:var(--muted); max-width:var(--measure); }
.facts-row { display:flex; flex-wrap:wrap; gap:8px 22px; margin:10px 0 4px; font-size:var(--fs-14); color:var(--muted); }
.facts-row b { color:var(--ink); font-weight:600; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.section-head h2 { margin-bottom:6px; }
.section-head a { font-weight:600; font-size:var(--fs-14); }
.sublinks { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 4px; padding:0; list-style:none; }
.sublinks a { display:inline-block; padding:7px 14px; border:1px solid var(--rule); border-radius:var(--radius-ctl); text-decoration:none; color:var(--ink); font-size:var(--fs-14); font-weight:400; }
.sublinks a:hover { border-color:var(--border-strong); background:var(--surface); }
.sublinks a[aria-current] { background:var(--ink); color:var(--on-ink); border-color:var(--ink); }
.updated { font-size:var(--fs-14); color:var(--muted); margin-top:24px; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top:1px solid var(--rule); background:var(--bg); color:var(--muted); font-size:var(--fs-14); line-height:1.55; }
.footer-grid { display:flex; flex-wrap:wrap; gap:16px 40px; padding-top:28px; padding-bottom:28px; }
.footer-grid > div:first-child { flex:999 1 480px; min-width:0; }
.footer-grid nav { flex:1 1 200px; }
.site-footer h2 { font-family:var(--font-sans); font-size:var(--fs-14); font-weight:600; color:var(--ink); margin:0 0 6px; }
.site-footer ul { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.site-footer .disclaimer-text { color:var(--ink); }
.site-footer a { color:var(--link); }

/* ------------------------------------------------------------------ components */
.card { border-top:1px solid var(--hairline); padding:14px 0 4px; margin:12px 0; }   /* a rule, not a boxed card (V-4) */
.card > h2:first-child, .card > h3:first-child { margin-top:0; }
.split { display:flex; flex-wrap:wrap; gap:24px; }
.split > .main-col { flex:999 1 560px; min-width:0; }
.split > .side-col { flex:1 1 300px; min-width:0; }
.badge { display:inline-block; font-size:var(--fs-12); font-weight:600; border:1px solid currentColor; border-radius:var(--radius-pill); padding:1px 9px; white-space:nowrap; line-height:1.35; }
.pill { display:inline-block; font-size:var(--fs-14); font-weight:600; padding:2px 10px; border-radius:var(--radius-pill); border:1px solid var(--rule); color:var(--ink); white-space:nowrap; }
.pill.ok { border-color:var(--accent); color:var(--accent); }
.pill.attn { border-color:var(--attention); color:var(--attention); }
.basis { display:inline-block; font-size:var(--fs-12); font-weight:600; border-radius:var(--radius-data); padding:0 6px; vertical-align:1px; }
.basis.printed { background:var(--ink); color:var(--on-ink); }
.basis.derived, .basis.estimate { border:1px dashed var(--muted); color:var(--text); }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border-radius:var(--radius-ctl); font-weight:600; text-decoration:none; border:1px solid var(--border-strong); color:var(--ink); background:var(--bg); cursor:pointer; font:inherit; }
.btn:hover { background:var(--surface); color:var(--ink); }
.btn.primary { background:var(--link); color:var(--on-link); border-color:var(--link); }
.btn.primary:hover { background:var(--link); color:var(--on-link); text-decoration:underline; }
.list-rows { list-style:none; margin:0; padding:0; border-top:1px solid var(--border); }
.list-rows > li { display:flex; gap:8px 16px; padding:12px 0; border-bottom:1px solid var(--border); align-items:baseline; flex-wrap:wrap; }
.list-rows .when { width:96px; flex:none; font-size:var(--fs-14); color:var(--muted); }
.list-rows .no { font-size:var(--fs-14); font-weight:600; color:var(--ink); width:84px; flex:none; }
.list-rows .what { flex:1 1 220px; min-width:0; }
.empty { color:var(--muted); font-style:italic; }
.timeline-list { list-style:none; margin:0; padding:0 0 0 18px; border-left:2px solid var(--border); }
.timeline-list li { position:relative; padding:4px 0 12px 8px; }
.timeline-list li::before { content:""; position:absolute; left:-25px; top:10px; width:10px; height:10px; border-radius:50%; background:var(--bg); border:2px solid var(--accent); }
.timeline-list .when { font-size:var(--fs-14); color:var(--muted); display:block; }
.sources { font-size:var(--fs-14); }
.sources li { margin:3px 0; }
.dl-facts { display:grid; grid-template-columns:max-content 1fr; gap:4px 16px; margin:8px 0; font-size:var(--fs-16); }
.dl-facts dt { color:var(--muted); } .dl-facts dd { margin:0; min-width:0; overflow-wrap:anywhere; }
@media (max-width:600px) { .dl-facts { grid-template-columns:1fr; } .dl-facts dd { margin-bottom:6px; } }
.notice { border-left:3px solid var(--attention); background:var(--attention-soft); padding:10px 14px; border-radius:0 var(--radius-data) var(--radius-data) 0; margin:12px 0; font-size:var(--fs-14); max-width:var(--measure); }
.pagetext { white-space:pre-wrap; overflow-wrap:anywhere; font-family:var(--font-mono); font-size:var(--fs-14); line-height:1.55; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-data); padding:14px 16px; max-height:none; }

/* ------------------------------------------------------------------ home */
.hero { background:var(--hero-bg); color:var(--hero-text); }
.hero h1 { color:var(--hero-text); margin:6px 0 12px; }
.hero p { color:var(--hero-text); font-size:var(--fs-18); max-width:var(--measure); }
.hero ul.hero-items { margin:8px 0 0; padding-left:20px; color:var(--hero-text); }
.hero ul.hero-items li { margin:4px 0; }
.home main { padding-top:32px; display:flex; flex-direction:column; gap:40px; }
.home section h2 { margin:0; }
.home .section-head { margin-bottom:16px; }
.pcards { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.pc { display:flex; flex-direction:column; gap:10px; padding:14px 0; border-top:1px solid var(--hairline); text-decoration:none; color:var(--text); }
.pc:hover { color:var(--text); } .pc:hover .nm { text-decoration:underline; }
.pc .top { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 8px; align-items:flex-start; }
.pc .nm { font-weight:600; font-size:var(--fs-18); color:var(--ink); line-height:1.35; }
.pc .cost { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.pc .cost .fig { font-size:var(--fs-22); color:var(--ink); }
.pc .cost .basis-label { font-size:var(--fs-14); color:var(--muted); }
.pc > span { display:block; }
.meter { display:block; height:8px; border-radius:var(--radius-data); background:var(--track); overflow:hidden; }
.meter > span { display:block; height:100%; background:var(--accent); border-radius:var(--radius-data); }
.pc .meta-row { display:flex; justify-content:space-between; gap:8px; font-size:var(--fs-14); color:var(--muted); flex-wrap:wrap; }
.co-up { color:var(--attention); font-weight:600; } .co-down { color:var(--accent-ink); font-weight:600; }
.hbars { display:flex; flex-direction:column; gap:10px; }
.hbars .r { display:flex; align-items:center; gap:12px; }
.hbars .n { width:170px; flex:none; font-size:var(--fs-14); }
.hbars .b { flex:1; height:14px; background:var(--track); border-radius:var(--radius-data); overflow:hidden; }
.hbars .b > span { display:block; height:100%; background:var(--accent); }
.hbars .v { width:78px; text-align:right; font-size:var(--fs-14); }
@media (max-width:600px) { .hbars .n { width:110px; } }
.svote { padding:12px 0; border-top:1px solid var(--hairline); display:flex; flex-direction:column; gap:6px; }
.svote .when { font-size:var(--fs-14); color:var(--muted); }
.svote .what { font-weight:600; color:var(--ink); }
.svote .tally { font-size:var(--fs-14); color:var(--attention); font-weight:600; }
.asks { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; }
.asks a { padding:12px 0; border-top:1px solid var(--hairline); text-decoration:none; color:var(--link); font-weight:600; }
.asks a:hover { color:var(--link-hover); text-decoration:underline; }
.asks a > span { font-weight:400; color:var(--muted); display:block; font-size:var(--fs-14); margin-top:4px; }

/* ------------------------------------------------------------------ search page */
.searchform { display:grid; gap:10px; margin:12px 0 16px; }
.searchform .row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.searchform input[type=search] { flex:1 1 320px; min-width:0; height:44px; }
.qgroups { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:12px; margin:12px 0; }
.qgroup { border-top:1px solid var(--hairline); padding:10px 0; }
.qgroup h3 { margin:0 0 6px; font-size:var(--fs-14); color:var(--muted); }
.qgroup ul { list-style:none; margin:0; padding:0; }
.qgroup li { padding:4px 0; }
.res { border-top:1px solid var(--hairline); padding:12px 0; margin:0; }
.res h3 { font-size:var(--fs-16); margin:0 0 4px; font-weight:600; overflow-wrap:anywhere; font-family:var(--font-sans); }
.hit { margin:6px 0 0; font-size:var(--fs-14); overflow-wrap:anywhere; }
.hit .pg { font-size:var(--fs-12); color:var(--muted); margin-right:6px; white-space:nowrap; }
.help { font-size:var(--fs-14); color:var(--muted); }

/* ------------------------------------------------------------------ the archive's original classes (islands) */
.meta, .muted { color:var(--muted); font-size:var(--fs-14); }
.res.exact { border-left:3px solid var(--attention); padding-left:12px; }
.tag.docnum, .docnum { font-variant-numeric:tabular-nums; }
.tag { display:inline-block; font-size:var(--fs-12); border:1px solid var(--rule); border-radius:var(--radius-pill); padding:0 8px; margin-right:4px; color:var(--muted); }
.wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
table { border-collapse:collapse; width:100%; font-size:var(--fs-14); }
th, td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--border); vertical-align:top; }
th { color:var(--muted); font-weight:600; font-size:var(--fs-14); }
caption { text-align:left; color:var(--muted); font-size:var(--fs-14); padding:4px 0; }
.nay, .failed { color:var(--nay); font-weight:600; } .aye, .carried, .adopted { color:var(--ok); }
.small { font-size:var(--fs-14); } .warn { color:var(--nay); }
select, input, button, textarea { font:inherit; color:var(--text); background:var(--card); border:1px solid var(--rule); border-radius:var(--radius-ctl); padding:5px 8px; }
button { cursor:pointer; }
button[disabled] { opacity:.45; cursor:default; }
label { color:var(--text); }
.chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.chip { display:inline-flex; align-items:center; gap:5px; font-size:var(--fs-14); border:1px solid var(--rule); border-radius:var(--radius-ctl);
        padding:2px 10px 2px 6px; background:var(--card); cursor:pointer; user-select:none; }
.chip input { margin:0; }
.sw { display:inline-block; width:14px; height:10px; border-radius:var(--radius-data); vertical-align:middle; }
.sw.mayor { background:var(--g-mayor); } .sw.council { background:var(--g-council); } .sw.mpt { background:var(--g-mpt); }
.sw.staff { background:var(--g-staff); } .sw.board { background:var(--g-board); } .sw.external { background:var(--g-external); } .sw.orgs { background:var(--g-orgs); }
.sw.gap { background:repeating-linear-gradient(135deg, var(--gap) 0 2px, transparent 2px 5px); border:1px solid var(--gap); }
.controls { display:grid; gap:8px; }
.controls .row { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; font-size:var(--fs-14); }
.legend { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:var(--fs-12); color:var(--muted); margin:6px 0; }
.tl { border:1px solid var(--border); border-radius:var(--radius-data); background:var(--bg); }
#tl { min-height:80vh; }   /* drawn by timeline.js: room held so the page below does not jump (UI_REVIEW P-7) */
/* fixed-height charts the page scripts draw into empty slots: the slot holds the chart's height (UI_REVIEW P-7) */
.js .isl-funds #total:empty, .js .isl-funds #fbal:empty { display:block; min-height:227px; }
.js .isl-votes #chart:empty, .js .isl-spending #years:empty { display:block; min-height:197px; }
.js .isl-ordinances #chart:empty { display:block; min-height:177px; }
.js .isl-cashflow #chart { min-height:560px; }
.js .isl-projects .filters select, .js .isl-spending .filters select { width:13em; max-width:100%; }   /* options added by the script do not widen them */
.tl-head { position:sticky; top:0; z-index:3; display:flex; background:var(--bg); border-bottom:1px solid var(--border); border-radius:var(--radius-data) var(--radius-data) 0 0; }
.tl-corner { flex:0 0 var(--namew); font-size:var(--fs-12); color:var(--muted); padding:4px 8px; }
.tl-axiswrap { flex:1; min-width:0; overflow:hidden; }
.tl-body { display:flex; }
.tl-names { flex:0 0 var(--namew); width:var(--namew); border-right:1px solid var(--border); font-size:var(--fs-12); }
.tl-names div { height:var(--rowh); line-height:var(--rowh); padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tl-names .grp { font-weight:600; font-size:var(--fs-12); color:var(--muted); }
.tl-names .cur a { font-weight:600; }
.tl-names .cur a::after { content:" ●"; color:var(--ok); font-size:var(--fs-12); }
.tl-names .hl { background:var(--rowhl); }
.tl-names .dim { opacity:var(--dim); }
.tl-scroll { flex:1; min-width:0; overflow-x:auto; overflow-y:hidden; cursor:grab; -webkit-overflow-scrolling:touch; }
.tl-scroll.drag { cursor:grabbing; }
.tl svg text { fill:var(--muted); font-size:var(--fs-12); font-family:inherit; }
.tl .grid { stroke:var(--border); }
.tl .bar { cursor:pointer; }
.tl .bar:hover { stroke:var(--fg); stroke-width:1.5; } .tl .bar-a:focus-visible .bar { stroke:var(--focus); stroke-width:3; }
.tl .g-mayor { fill:var(--g-mayor); } .tl .g-council { fill:var(--g-council); } .tl .g-mpt { fill:var(--g-mpt); }
.tl .g-staff { fill:var(--g-staff); } .tl .g-board { fill:var(--g-board); } .tl .g-external { fill:var(--g-external); } .tl .g-orgs { fill:var(--g-orgs); }
.tl .approx { stroke-dasharray:3 2; stroke:var(--fg); stroke-opacity:.45; }
.tl .rowhl { fill:var(--rowhl); }
.tl .dim { opacity:var(--dim); }
.tl .serve { stroke:var(--serve); stroke-width:2; }
.tl .now { stroke:var(--muted); stroke-dasharray:2 3; }
:root { --dim:.4; }
.tip { position:fixed; z-index:50; max-width:320px; background:var(--card); color:var(--fg); border:1px solid var(--border-strong);
       border-radius:var(--radius-ctl); padding:8px 10px; font-size:var(--fs-14); box-shadow:var(--shadow); pointer-events:auto; display:none; }
.tip b { font-weight:600; } .tip .muted { font-size:var(--fs-12); }
.mini { width:100%; height:auto; display:block; }
.mini text { fill:var(--muted); font-size:var(--fs-12); }
.mini .g-mayor { fill:var(--g-mayor); } .mini .g-council { fill:var(--g-council); } .mini .g-mpt { fill:var(--g-mpt); }
.mini .g-staff { fill:var(--g-staff); } .mini .g-board { fill:var(--g-board); } .mini .g-external { fill:var(--g-external); } .mini .g-orgs { fill:var(--g-orgs); }
.mini .grid { stroke:var(--border); }
.viz text { fill:var(--muted); font-size:var(--fs-12); font-family:inherit; }
.viz .grid { stroke:var(--grid); } .viz .axis { stroke:var(--border); }
.viz .bar { fill:var(--s1); } .viz .bar:hover, .viz g:focus .bar { opacity:.8; }
.viz .line { fill:none; stroke:var(--s1); stroke-width:2; } .viz .dot { fill:var(--s1); stroke:var(--c-halo); stroke-width:2; }
.viz .zero { stroke:var(--muted); stroke-dasharray:3 3; }
.viz .hit { fill:transparent; cursor:pointer; }
.viz g:focus-visible { outline:2px solid var(--focus); }
.num { text-align:right; font-variant-numeric:tabular-nums lining-nums; white-space:nowrap; }
.hbar { display:flex; align-items:center; gap:6px; }
.hbar i { display:inline-block; height:8px; border-radius:0 var(--radius-data) var(--radius-data) 0; background:var(--s1); min-width:2px; }
.costbar { display:flex; height:14px; border-radius:var(--radius-data); overflow:hidden; background:var(--track); gap:2px; }
.costbar span { display:block; height:100%; }
.k1 { background:var(--s1); } .k2 { background:var(--s2); } .k3 { background:var(--s3); }
.filters { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; font-size:var(--fs-14); }
.filters input[type=search] { min-width:200px; }
@media (max-width:860px) {  /* a long option (the cash-flow periods) must not widen the page */
  .filters label { display:flex; align-items:center; gap:6px; max-width:100%; }
  .filters select { min-width:0; max-width:100%; flex:1 1 auto; }
  .filters form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; min-width:0; max-width:100%; }   /* reconciliation (L-8) */
}
.pager { display:flex; gap:8px; align-items:center; margin:10px 0; font-size:var(--fs-14); flex-wrap:wrap; }
.lowcov { color:var(--nay); font-size:var(--fs-12); }
@media (max-width:600px) { .hide-sm { display:none; } }
/* phones: list tables marked .stack read as one block per row, each cell labelled with its column (base.js copies the
   header into data-label), instead of dropping columns with .hide-sm (UI_REVIEW L-4). The first cell heads the block. */
@media (max-width:600px) {
  table.stack, table.stack tbody, table.stack tfoot, table.stack tr { display:block; width:auto; }
  table.stack thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  table.stack tr { padding:8px 0; border-bottom:1px solid var(--border); }
  table.stack td, table.stack tbody th { display:block; position:relative; padding:2px 0 2px calc(32% + 10px); border:0; text-align:left; min-height:1.4em; }
  table.stack td::before, table.stack tbody th::before { content:attr(data-label); position:absolute; left:0; top:2px; width:32%; color:var(--muted); font-size:var(--fs-14); font-weight:400; }
  table.stack td.hide-sm, table.stack tbody th.hide-sm { display:block; }
  table.stack .show-sm { display:none; }   /* a phone summary of the hidden columns: the columns show here */
  table.stack tr > :first-child, table.stack td:not([data-label]), table.stack td[data-label=""], table.stack td[colspan] { padding-left:0; }
  table.stack tr > :first-child { font-size:var(--fs-16); font-weight:600; padding-bottom:4px; }
  table.stack tr > :first-child::before, table.stack td:not([data-label])::before, table.stack td[data-label=""]::before, table.stack td[colspan]::before { content:none; }
  table.stack td:empty, table.stack td.hide-sm:empty { display:none; }
}
.st-done { color:var(--st-done); } .st-active { color:var(--st-active); } .st-plan { color:var(--st-plan); }
.st-stop { color:var(--st-stop); } .st-unknown { color:var(--muted); }
.tl-zoom { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:4px 0; }
.tl-zoom button { padding:2px 9px; font-size:var(--fs-14); cursor:pointer; min-height:30px; }
.tl-wrap { touch-action:pan-y; }
.tlc { cursor:grab; user-select:none; }
.tl-wrap.dragging .tlc { cursor:grabbing; }
.tlc .lbl { fill:var(--fg); font-size:var(--fs-12); }
.tlc .lanebg { fill:var(--laneb); }
.tlc .band { fill:var(--muted); opacity:.35; }
.tlc .band.st-done { fill:var(--st-done); opacity:.45; } .tlc .band.st-active { fill:var(--st-active); opacity:.5; }
.tlc .band.st-plan { fill:var(--st-plan); opacity:.45; }
.tlc .now { stroke:var(--nay); stroke-dasharray:3 3; stroke-width:1.5; } .tlc .nowlbl { fill:var(--nay); font-size:var(--fs-12); }
.tlc .dot { stroke:var(--c-halo); stroke-width:2; } .tlc .dot.minor { opacity:.55; }
.tlc .xmark { stroke-width:2.5; fill:none; }
.tlc .mk { cursor:pointer; } .tlc .mk:focus .dot, .tlc .mk:hover .dot { stroke:var(--fg); }
.tlc .hit { fill:transparent; }
.ln1 { fill:var(--l1); stroke:var(--l1); } .ln2 { fill:var(--l2); stroke:var(--l2); } .ln3 { fill:var(--l3); stroke:var(--l3); }
.ln4 { fill:var(--l4); stroke:var(--l4); } .ln5 { fill:var(--l5); stroke:var(--l5); }
.tlc .dot.ln1 { fill:var(--l1); } .tlc .dot.ln2 { fill:var(--l2); } .tlc .dot.ln3 { fill:var(--l3); }
.tlc .dot.ln4 { fill:var(--l4); } .tlc .dot.ln5 { fill:var(--l5); }
.tlc .xmark.ln1 { stroke:var(--l1); } .tlc .xmark.ln2 { stroke:var(--l2); } .tlc .xmark.ln3 { stroke:var(--l3); }
.tlc .xmark.ln4 { stroke:var(--l4); } .tlc .xmark.ln5 { stroke:var(--l5); }
.sw.ln1 { background:var(--l1); } .sw.ln2 { background:var(--l2); } .sw.ln3 { background:var(--l3); }
.sw.ln4 { background:var(--l4); } .sw.ln5 { background:var(--l5); }
.viz .mline { fill:none; stroke-width:2; } .viz .mline.k1 { stroke:var(--s1); } .viz .mline.k2 { stroke:var(--s2); }
.viz .mline.k3 { stroke:var(--s3); } .viz .mdot { stroke:var(--c-halo); stroke-width:1.5; }
.viz .mdot.k1 { fill:var(--s1); } .viz .mdot.k2 { fill:var(--s2); } .viz .mdot.k3 { fill:var(--s3); }
.viz .dlabel { fill:var(--fg); font-size:var(--fs-12); }
.sw.k1 { background:var(--s1); } .sw.k2 { background:var(--s2); } .sw.k3 { background:var(--s3); }
.evrow.hl td { background:var(--rowhl); }
.span { width:100%; height:10px; display:block; }
.span rect.bg { fill:var(--track); } .span rect.on { fill:var(--muted); opacity:.6; }
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.pcard { border-top:1px solid var(--hairline); padding:10px 0; display:flex; flex-direction:column; gap:4px; }
.pcard h3 { font-size:var(--fs-16); margin:0; font-weight:600; font-family:var(--font-sans); }
.pcard .row { display:flex; justify-content:space-between; gap:8px; font-size:var(--fs-14); }
.toggle { display:inline-flex; border:1px solid var(--border-strong); border-radius:var(--radius-ctl); overflow:hidden; }
.toggle button { border:0; border-radius:0; cursor:pointer; } .toggle button[aria-pressed="true"] { background:var(--ink); color:var(--on-ink); }
.panel-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:12px; }
.plist { list-style:none; margin:0; padding:0; } .plist li { padding:5px 0; border-bottom:1px solid var(--border); font-size:var(--fs-14); }
.plist li:last-child { border-bottom:0; }
details > summary { cursor:pointer; }
th.sortable { cursor:pointer; } th.sortable:hover { color:var(--fg); }
.wf .wf-orig { fill:var(--orig); } .wf .wf-cur { fill:var(--cur); } .wf .wf-up { fill:var(--s2); } .wf .wf-down { fill:var(--s1); }
.wf .wf-bar { stroke:var(--c-halo); stroke-width:1; } .wf .wf-bgfill { fill:var(--c-halo); }
.wf .hatchline { stroke-width:2.5; } .hatchline.wf-up { stroke:var(--s2); } .hatchline.wf-down { stroke:var(--s1); } .hatchline.wf-na { stroke:var(--muted); }
.wf .paidline { fill:none; stroke:var(--fg); stroke-width:2; } .wf .paiddot { fill:var(--fg); stroke:var(--c-halo); stroke-width:1.5; }
.wf .refline { stroke:var(--fg); stroke-dasharray:5 4; opacity:.6; }
.sw.orig { background:var(--orig); } .sw.up { background:var(--s2); } .sw.down { background:var(--s1); }
.sw.hup { background:repeating-linear-gradient(135deg, var(--s2) 0 2px, transparent 2px 5px); border:1px solid var(--s2); }
.sw.paid { background:var(--fg); height:3px; }
.growbar { display:flex; height:8px; border-radius:var(--radius-data); overflow:hidden; background:var(--track); gap:1px; min-width:60px; }
.growbar span { display:block; height:100%; } .growbar .o { background:var(--orig); } .growbar .u { background:var(--s2); } .growbar .d { background:var(--s1); }
.co-pos, .co-neg { font-weight:600; font-variant-numeric:tabular-nums; }
/* fund-family colours (Eric, 2026-11-06): water blue, sewer amber-brown, capital green, General Fund violet, debt deep red;
   TIF takes plum (freed by water) so it no longer sits next to debt's red */
.fam-water { --c:var(--fam1); } .fam-sewer { --c:var(--fam2); } .fam-capital { --c:var(--fam6); } .fam-general { --c:var(--fam7); }
.fam-debt { --c:var(--c-debt); } .fam-tif { --c:var(--fam3); } .fam-road_use { --c:var(--fam4); } .fam-special { --c:var(--fam8); }
.fam-unassigned, .fam-neutral, .fam-other { --c:var(--fam0); }
.sk-frame { overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:var(--radius-data); background:var(--bg); }
.sk { display:block; width:100%; min-width:760px; height:auto; }
.sk-link { fill:none; stroke:var(--c); stroke-opacity:.6; transition:stroke-opacity .12s; }   /* was .38 (UI_REVIEW A-23) */
.sk-link.sk-res { stroke-dasharray:4 3; stroke-opacity:.5; }
.sk-link.sk-attr { stroke-dasharray:9 3; }   /* attributed by fund revenue mix: the fund's colour, long dashes */
.sk-node { fill:var(--c); stroke:var(--c-halo); stroke-width:1; }
.sk-nodeg.sk-res .sk-node { fill:var(--fam0); }
.sk-nodeg:focus .sk-node, .sk-nodeg:hover .sk-node { stroke:var(--fg); stroke-width:1.5; } .sk-nodeg:focus-visible .sk-node { stroke:var(--focus); stroke-width:3; }
.sk-label { fill:var(--fg); font-size:var(--fs-12); font-family:inherit; pointer-events:none; }
.sk-halo { paint-order:stroke; stroke:var(--c-halo); stroke-width:3px; stroke-linejoin:round; }
.sk.sk-dim .sk-link { stroke-opacity:.1; } .sk.sk-dim .sk-link.sk-on { stroke-opacity:.85; }
.sk.sk-dim .sk-nodeg { opacity:.35; } .sk.sk-dim .sk-nodeg.sk-on { opacity:1; }
.skw { background:var(--c); } .sk-resw { background:repeating-linear-gradient(135deg, var(--fam0) 0 2px, transparent 2px 5px); border:1px solid var(--fam0); }
.sk-attrw { background:repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 9px); border:1px solid var(--muted); }
.sk-total { font-variant-numeric:tabular-nums; }
.vendor-only { border-left:3px solid var(--s1); padding:6px 10px; font-size:var(--fs-14); margin:8px 0; font-weight:600; }
.sk-hint { display:none; }
/* the chart pages: on phones the ranked lists and the table come before the chart, which is behind "Show diagram", a closed control above the long table so it can be found (UI_REVIEW L-9). The chart is drawn
   by script, so no script means no diagram and no control; from 601 px the control goes and the chart stays open. A browser
   without ::details-content (Firefox before 143, Safari before 18.4) keeps the working control at every width. */
.sk-disc > summary { padding:10px 0; font-weight:600; color:var(--link); min-height:44px; box-sizing:border-box; }
.sk-disc-open, .sk-disc[open] .sk-disc-closed { display:none; }
.sk-disc[open] .sk-disc-open { display:inline; }
html:not(.js) .sk-disc { display:none; }
@supports selector(::details-content) {
  @media (min-width:601px) { .sk-disc > summary { display:none; } .sk-disc::details-content { content-visibility:visible; } }
  @media (max-width:600px) { .flow-tbl > summary { display:none; } .flow-tbl::details-content { content-visibility:visible; } }
}
@media (min-width:601px) { .flow-top.sm-only { display:none; } }
@media (max-width:600px) {
  #cfpart { display:flex; flex-direction:column; }
  /* the chart card's parts join the flow, so its long notes can follow the table: figures, heading, lists, control, table, notes */
  #cfpart > .cf-chart { display:contents; }
  #cfpart > #kpis { order:-7; } .cf-chart > h2 { order:-6; margin-top:12px; padding-top:14px; border-top:1px solid var(--hairline); }
  .cf-chart > .flow-top { order:-5; } .cf-chart > .sk-disc { order:-4; } #cfpart > .cf-table { order:-3; }
  .cf-chart > #inout { order:-2; } .cf-chart > #notes { order:-1; }
  #cfpart > .card { margin:6px 0; }   /* flex items do not collapse the margins of .card */
  /* the table is the main content here: small enough that the amounts, with cents, fit a 375 px phone without scrolling */
  .sk-table { font-size:var(--fs-14); }
  .sk-table th, .sk-table td { padding-left:4px; padding-right:4px; }
  .sk-table .num .small { white-space:normal; }
  #flowcard { display:flex; flex-direction:column; }
  #flowcard > h2 { order:-6; } #flowcard > p:first-of-type { order:-5; } #flowcard > .flow-top { order:-4; }
  #flowcard > .sk-disc { order:-3; } #flowcard > .flow-tbl { order:-2; }
}
/* narrow screens: the full chart scrolls sideways inside its frame at 1000 px, its layout width, so the 11-unit
   labels are 11 px (at the old 760 px minimum they were 8.4 px); the home card's chart is exempt (.flow-chart .sk) */
@media (max-width:860px) { .sk-hint { display:block; } .sk { min-width:1000px; } }

/* home page: the featured cash-flow Sankey (js/home.js draws it when scrolled to; the text summary is the no-JS
   version and the screen-reader text). Up to 860 px it draws the payload's phone-size chart (chart_narrow):
   the box reserves that drawing's shape (--ar-n) and stays at most 440 px wide, so labels are 11–16 px. */
.home-flow h3 { margin-top:0; }
.flow-chart { display:none; width:100%; margin:10px 0 4px; border-radius:var(--radius-data); background:var(--surface); cursor:pointer;
              aspect-ratio:var(--ar, auto); }
.js .flow-chart { display:block; }
.flow-chart.loaded { background:none; }
.js .flow-chart:not(.loaded) { display:grid; place-items:center; }
.js .flow-chart:not(.loaded)::before { content:"Loading the diagram…"; color:var(--muted); font-size:var(--fs-14); }
/* phones: the figures and the largest sources and uses first, the diagram after them (L-11) */
@media (max-width:600px) { .home-flow { display:flex; flex-direction:column; } .home-flow .flow-summary { order:1; } .home-flow .flow-chart, .home-flow .flow-legend { order:2; } .home-flow .flow-cta { order:3; } }
.flow-chart .sk-frame { border:0; background:none; overflow:visible; }
.flow-chart .sk { min-width:0; }
.flow-chart .sk-hint { display:none; }
.flow-chart:focus-visible { outline:2px solid var(--link); outline-offset:3px; }
.flow-legend .k { display:inline-flex; gap:5px; align-items:center; }
.flow-legend:empty { display:none; }
.flow-summary p { margin:8px 0; }
.flow-top { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:4px 24px; }
.flow-top h3, .flow-top h4 { margin:6px 0 4px; font-size:var(--fs-14); font-weight:600; color:var(--muted); }
.flow-top ol { margin:0; padding-left:20px; font-size:var(--fs-14); }
.flow-top li { margin:2px 0; } .flow-top .v { color:var(--ink); }
.flow-cta { margin:12px 0 0; font-weight:600; font-size:var(--fs-16); }
.flow-bands { display:none; } .js .flow-bands { display:inline; }
.sk-label-n { font-size:var(--fs-12); }
.sk-label-n .sk-amt { fill:var(--muted); font-variant-numeric:tabular-nums; }
@media (max-width:860px) {
  .flow-chart { aspect-ratio:var(--ar-n, auto); max-width:440px; margin-left:auto; margin-right:auto; }
  .flow-legend { font-size:var(--fs-14); }
}

/* ------------------------------------------------------------------ page-scoped styles of the islands (formerly inline) */
.isl-cashflow .legend .k { display:inline-flex; gap:5px; align-items:center; }
.isl-cashflow #notes li, .isl-cashflow #more li { font-size:var(--fs-14); margin:3px 0; }
.isl-coverage .hm text { fill:var(--muted); font-size:var(--fs-12); } .isl-coverage .hm .c { fill:var(--s1); } .isl-coverage .hm .none { fill:var(--track); }
.isl-coverage .hm .nomin { fill:var(--s2); }
.isl-coverage .hm g:focus rect, .isl-coverage .hm g:hover rect { stroke:var(--fg); stroke-width:1.5; }
.isl-coverage .hm .gap { fill:var(--muted); font-size:var(--fs-12); } .isl-coverage #mt td { font-size:var(--fs-14); }
.isl-coverage .yes { color:var(--ok); } .isl-coverage .no { color:var(--muted); }
.isl-coverage .flag { color:var(--muted); font-size:var(--fs-12); } .isl-coverage .legend .sw { width:12px; height:10px; }
.sw.cov-s1 { background:var(--s1); } .sw.cov-s2 { background:var(--s2); } .sw.cov-track { background:var(--track); }
.isl-debt { --dt-go:var(--s1); --dt-aa:var(--s3); --dt-rev:var(--s2); --dt-tif:var(--l4); --dt-lease:var(--l5); --dt-other:var(--gap); }
.isl-debt .dt-go { fill:var(--dt-go); background:var(--dt-go); } .isl-debt .dt-go_annual_appropriation { fill:var(--dt-aa); background:var(--dt-aa); }
.isl-debt .dt-srf_revenue, .isl-debt .dt-revenue { fill:var(--dt-rev); background:var(--dt-rev); } .isl-debt .dt-tif_revenue { fill:var(--dt-tif); background:var(--dt-tif); }
.isl-debt .dt-lease { fill:var(--dt-lease); background:var(--dt-lease); } .isl-debt .dt-other, .isl-debt .dt-short_term { fill:var(--dt-other); background:var(--dt-other); }
.isl-debt .viz .est { stroke:var(--fg); stroke-width:1; stroke-dasharray:3 2; }
.isl-debt .viz .seg:hover, .isl-debt .viz .seg:focus { opacity:.8; }
.isl-debt .viz .lim { fill:none; stroke:var(--s1); stroke-width:2; } .isl-debt .viz .proj { fill:none; stroke:var(--muted); stroke-width:2; stroke-dasharray:5 4; }
.isl-debt .viz .pt { fill:var(--s1); stroke:var(--c-halo); stroke-width:1.5; } .isl-debt .viz .pt.derived { fill:var(--c-halo); stroke:var(--s1); stroke-width:1.5; }
.isl-debt .viz .pt.projection { fill:var(--c-halo); stroke:var(--muted); } .isl-debt .viz .hundred { stroke:var(--nay); stroke-dasharray:4 3; }
.isl-debt .viz .pt:focus { stroke:var(--fg); stroke-width:2.5; }
.isl-debt .legend .k { display:inline-flex; gap:5px; align-items:center; }
.isl-debt .sw.hatch { background:repeating-linear-gradient(135deg, var(--fg) 0 1px, transparent 1px 4px); border:1px solid var(--muted); }
.isl-debt .sw.ring { background:var(--bg); border:2px solid var(--s1); border-radius:50%; width:10px; height:10px; }
.isl-debt .sw.dash { background:linear-gradient(90deg, var(--muted) 60%, transparent 60%) 0 50%/8px 2px repeat-x; height:8px; width:22px; }
.isl-debt #issues th button { all:unset; cursor:pointer; color:var(--muted); font:inherit; text-transform:inherit; letter-spacing:inherit; }
.isl-debt #issues th button:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.isl-debt #issues tbody tr { cursor:pointer; } .isl-debt #issues tbody tr.sel { background:var(--rowhl); }
.isl-debt #issues tbody tr:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }
.isl-debt #issues td { font-size:var(--fs-14); } .isl-debt .status-outstanding { color:var(--ok); }
.isl-debt .status-not_on_statement, .isl-debt .status-issued_after_statement { color:var(--st-plan); }
.isl-debt .status-retired, .isl-debt .status-refunded, .isl-debt .status-matured { color:var(--muted); }
.isl-debt .flag { color:var(--nay); font-size:var(--fs-12); font-weight:600; }
.isl-debt .facts { display:grid; grid-template-columns:max-content 1fr; gap:3px 12px; font-size:var(--fs-14); }
.isl-debt .facts dt { color:var(--muted); } .isl-debt .facts dd { margin:0; }
.isl-debt ul.plain { margin:4px 0; padding-left:18px; font-size:var(--fs-14); } .isl-debt ul.plain li { margin:3px 0; }
.isl-debt .filters label { font-size:var(--fs-14); }
.isl-debt .show-sm { display:none; }
@media (max-width:600px) { .isl-debt .show-sm { display:inline; } }
.isl-funds #list td { font-size:var(--fs-14); } .isl-funds #list tr.sel { background:var(--rowhl); } .isl-funds .neg { color:var(--nay); }
.isl-ordinances #t td { font-size:var(--fs-14); } .isl-ordinances .pending, .isl-ordinances .no_adoption { color:var(--st-plan); font-weight:600; }
.isl-ordinances .unknown { color:var(--muted); } .isl-ordinances .flag { color:var(--muted); font-size:var(--fs-12); }
.isl-ordinances .chip2 { font-size:var(--fs-12); border:1px solid var(--rule); border-radius:var(--radius-pill); padding:0 6px; margin-right:2px; white-space:nowrap; }
.isl-project td, .isl-project th { font-size:var(--fs-14); } .isl-project .tl-kind { white-space:nowrap; }
.isl-project .legend .k { display:inline-flex; gap:5px; align-items:center; }
.isl-project .costbar { height:18px; margin:6px 0; }
.isl-project .flag { color:var(--nay); font-size:var(--fs-12); }
.isl-project .summary { font-size:var(--fs-16); max-width:var(--measure); }
.isl-project .evfilters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:var(--fs-14); margin:6px 0; }
.isl-project .sub { font-size:var(--fs-12); color:var(--muted); }
.isl-projects #t td { font-size:var(--fs-14); } .isl-projects .costbar { min-width:70px; height:10px; } .isl-projects .nm small { color:var(--muted); }
.isl-spending .cols { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:860px) { .isl-spending .cols { grid-template-columns:1fr; } }
.isl-spending td.bar { width:30%; min-width:60px; }
.isl-spending #lines td { font-size:var(--fs-14); }
.isl-spending .chip-x { cursor:pointer; }
.isl-timeline { --namew:170px; --rowh:22px; }
@media (max-width:600px) { .isl-timeline { --namew:112px; } }
.isl-timeline #serving h3 { font-size:var(--fs-14); margin:10px 0 2px; }
.isl-timeline #serving ul { margin:0; padding-left:18px; }
.isl-timeline .k { display:inline-flex; gap:5px; align-items:center; }
.isl-votes #t td { font-size:var(--fs-14); } .isl-votes .who { white-space:nowrap; } .isl-votes .mx text { fill:var(--fg); font-size:var(--fs-12); }
.isl-votes .mx .lbl { fill:var(--muted); } .isl-votes .mx .cell { fill:var(--s1); } .isl-votes .mx .na { fill:var(--track); } .isl-votes .mx .diag { fill:var(--track); }
.isl-votes .mx g:focus rect, .isl-votes .mx g:hover rect { stroke:var(--fg); stroke-width:1.5; }
.isl-votes .mx .on { fill:var(--card); }
.isl-votes .rbar { display:inline-block; height:8px; background:var(--s1); border-radius:0 var(--radius-data) var(--radius-data) 0; vertical-align:middle; min-width:1px; }
.isl-votes .flag { color:var(--muted); font-size:var(--fs-12); } .isl-votes .show-sm { display:none; }
@media (max-width:600px) { .isl-votes .show-sm { display:block; font-size:var(--fs-12); margin-top:3px; } }
.flag { font-size:var(--fs-12); }

/* ------------------------------------------------------------------ motion and preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
@media print {
  .site-header .primary-nav, .site-search, .utility, .menu-toggle, .site-footer nav, .skip { display:none !important; }
  .hero { background:none; color:#000; } .hero h1, .hero p { color:#000; }
  a { color:#000; }
}

/* ------------------------------------------------------------------ decisions tabs, resolutions */
.subnav { margin:14px 0 4px; border-bottom:1px solid var(--hairline); }
.subnav ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:0 22px; }
.subnav a { display:inline-block; padding:8px 0; color:var(--muted); text-decoration:none; font-weight:400; font-size:var(--fs-14); border-bottom:3px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.subnav a:hover { color:var(--ink); border-bottom-color:var(--border-strong); }
.subnav a[aria-current] { color:var(--ink); border-bottom-color:var(--ink); font-weight:600; }
/* phones: one scrolling row of tabs, faded at the edge, instead of "City Code" alone on a second line (UI_REVIEW L-7) */
@media (max-width:600px) {
  .subnav ul { flex-wrap:nowrap; overflow-x:auto; gap:0 18px; scrollbar-width:none; padding-right:28px;
               -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .subnav ul::-webkit-scrollbar { display:none; }
}
.ycols { display:flex; align-items:flex-end; gap:2px; height:140px; margin:8px 0 2px; padding:0; list-style:none; }
.ycols li { flex:1 1 0; min-width:2px; }
.ycols a { display:block; height:100%; background:var(--s1); border-radius:var(--radius-data) var(--radius-data) 0 0; }
.ycols a:hover, .ycols a:focus, .ycols a[aria-current] { background:var(--accent); }   /* focus keeps the outline (UI_REVIEW A-46) */
.ycols-axis { display:flex; justify-content:space-between; }
.res-table td { vertical-align:top; } .nowrap { white-space:nowrap; }

/* Consolidated City Code (docs/CODE.md) */
.code-asof { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:end; font-size:var(--fs-14); margin:8px 0 16px; }
.code-asof label { display:flex; flex-direction:column; gap:2px; }
.code-toc { columns:2 260px; column-gap:24px; font-size:var(--fs-14); list-style:none; padding:0; margin:8px 0 20px; }
.code-toc li { break-inside:avoid; padding:2px 0; }
.code-sec { border-top:1px solid var(--border); padding:14px 0 6px; scroll-margin-top:72px; }
.code-sec h2, .code-sec h3 { font-size:var(--fs-18); margin:0 0 6px; }
.code-sec h2 a.perma, .code-sec h3 a.perma { font-size:var(--fs-14); font-weight:400; margin-left:6px; }
.code-text p { margin:4px 0; line-height:1.55; max-width:var(--measure); }
.code-text p.l1 { padding-left:1.5em; } .code-text p.l2 { padding-left:3em; } .code-text p.l3 { padding-left:4.5em; }
.code-text p.cite { font-size:var(--fs-14); color:var(--muted); text-align:right; max-width:var(--measure); }
.code-note { font-size:var(--fs-14); background:var(--attention-soft); border:1px solid var(--attention-border); border-radius:var(--radius-data); padding:6px 10px; margin:6px 0; max-width:var(--measure); }
.code-note.attn { border-left:3px solid var(--attention); }
.code-text.superseded { border-left:3px dashed var(--attention-border); padding-left:10px; }
.code-gone { font-size:var(--fs-14); color:var(--muted); font-style:italic; }
.code-hist { font-size:var(--fs-14); margin:6px 0 4px; }
.code-hist summary { cursor:pointer; color:var(--link); }
.code-hist table { font-size:var(--fs-14); }
.code-meta { font-size:var(--fs-14); color:var(--muted); }
.code-diff { line-height:1.55; max-width:var(--measure); font-size:var(--fs-16); }
.code-diff del { background:var(--attention-soft); color:var(--attention); text-decoration:line-through; }
.code-diff ins { background:var(--accent-soft); color:var(--accent-ink); text-decoration:underline; }
/* the 2026 draft comparison (FUTURE_REVIEW C3) */
.code-memo { margin:.5rem 0 .75rem; padding:.25rem 0 .25rem .9rem; border-left:2px solid var(--rule); max-width:var(--measure); }
.code-memo p { margin:0 0 .25rem; }
.code-draft-g { padding:.4rem 0; border-bottom:1px solid var(--hairline); }
.code-draft-g p { margin:.2rem 0; }
.code-draft-g del, .plist del { background:var(--attention-soft); color:var(--attention); text-decoration:line-through; }
.code-draft-g ins, .plist ins { background:var(--accent-soft); color:var(--accent-ink); text-decoration:underline; }
.code-draft-cols { display:grid; grid-template-columns:1fr; gap:1rem; }
@media (min-width:861px) { .code-draft-cols { grid-template-columns:1fr 1fr; } }
.code-draft-table td.num, .code-draft-table th.num { width:4.5rem; }

/* Rates and fees (/money/rates) and the standing resolutions register (rates.html, standing.html) */
.rate-chart { width:100%; height:auto; max-height:200px; display:block; margin:6px 0 4px; }
.rate-chart .grid { stroke:var(--border); stroke-width:1; }
.rate-chart .ylab { fill:var(--muted); font-size:var(--fs-12); text-anchor:end; }
.rate-chart .xlab { fill:var(--muted); font-size:var(--fs-12); text-anchor:middle; }
.rate-chart .step { fill:none; stroke:var(--s1); stroke-width:2.5; }
.rate-chart .step.scheduled { stroke-dasharray:5 4; }
.rate-chart .pt { fill:var(--s1); }
.rate-chart .pt.scheduled { fill:var(--bg); stroke:var(--s1); stroke-width:1.5; }
.rate-chart .bar { fill:var(--s1); }
.rate-chart .bar.inc { fill:var(--s2); }
.sd-differ, .sd-state_suspect { border-color:var(--attention-border); color:var(--attention); }
.sd-state_only { border-style:dashed; }
.legend-sw { display:inline-block; width:10px; height:10px; margin:0 4px 0 8px; vertical-align:baseline; }
.legend-sw.reg { background:var(--s1); }
.legend-sw.inc { background:var(--s2); }
ul.gaps { margin:6px 0 0; padding-left:18px; color:var(--muted); }
ul.printed { margin:4px 0; padding-left:18px; }
article.standing { margin:10px 0; }
article.standing h4 { margin:2px 0 4px; font-size:var(--fs-16); }
article.standing.superseded { border-left:3px dashed var(--rule); padding-left:10px; }
table.compact td, table.compact th { padding:4px 8px; }
.standing-box { border-left:3px solid var(--accent); }

/* budget pages (templates/budget.html, budget_year.html): bars are plain CSS widths, no script */
.bud-chart td.bars { width:52%; min-width:140px; }
.bud-chart .bar { display:block; height:6px; margin:2px 0; border-radius:var(--radius-data); min-width:0; }
.b-ad { background:var(--s1); } .b-fin { background:var(--s2); } .b-act { background:var(--s3); }
.legend .sw.b-ad, .legend .sw.b-fin, .legend .sw.b-act { display:inline-block; width:14px; height:8px; border-radius:var(--radius-data); margin-right:6px; }
.bud-table tr.grp th { background:var(--surface); color:var(--ink); text-align:left; font-weight:600; }
.bud-table tr.tot th, .bud-table tr.tot td, table tr.tot th, table tr.tot td { font-weight:600; }
blockquote.quote { margin:8px 0; padding:2px 0 2px 14px; border-left:2px solid var(--rule); }
ul.quotes { padding-left:18px; } ul.quotes li { margin:6px 0; }
ol.srcs { padding-left:18px; }
/* drawing sheets and charts (app/drawings.py): the title block as the page heading, a document's sheet list */
.sheet-block { margin:0 0 10px; }
.sheet-head { margin:0 0 4px; }
.sheet-head b { font-size:var(--fs-14); }
.hit .sheet-head { font-size:var(--fs-14); margin-right:6px; }
.sheet-list { columns:2 24em; column-gap:28px; padding-left:18px; }
.sheet-list li { break-inside:avoid; margin:2px 0; }

/* ---------- the town biography (/history; app/site/history.py, history_macros.html) ---------- */
.history-note blockquote, .hrow blockquote, .fnlist blockquote { margin:6px 0; padding:2px 0 2px 14px; border-left:2px solid var(--rule); }
.history-external { margin:10px 0; padding:8px 12px; border:1px dashed var(--border-strong); border-radius:var(--radius-data); }
.history-external ul { margin:4px 0 0; padding-left:20px; }
.history-section { margin:28px 0; max-width:var(--measure); }
.history-section.gap { border-left:3px solid var(--attention); padding-left:14px; }
sup.fn { font-size:.72em; line-height:0; margin-left:1px; }
sup.fn a { text-decoration:none; font-variant-numeric:tabular-nums; }
sup.fn a:hover, sup.fn a:focus-visible { text-decoration:underline; }
.held { color:var(--muted); font-style:italic; font-size:.92em; }
.sources-list { margin-top:10px; }
.sources-list summary { cursor:pointer; font-weight:600; font-size:var(--fs-14); color:var(--muted); }
.fnlist { padding-left:28px; }
.fnlist li { margin:6px 0; }
.fnlist li:target { background:var(--mark); color:var(--on-mark); } .fnlist li:target * { color:inherit; }
.fnlist details summary { cursor:pointer; color:var(--link); font-size:var(--fs-14); }
.hlist { list-style:none; margin:8px 0; padding:0; }
.hrow { padding:10px 0; border-bottom:1px solid var(--border); }
.hrow:last-child { border-bottom:0; }
.hdate { font-variant-numeric:tabular-nums; font-weight:600; color:var(--ink); margin-right:4px; }
.badge.hkind { color:var(--muted); margin-right:4px; }
.hline { color:var(--text); }
.hlinks { display:block; color:var(--muted); margin-top:2px; }
.history-box .hlist { margin-top:4px; }
.history-people { display:grid; grid-template-columns:minmax(120px, max-content) 1fr; gap:6px 16px; margin:8px 0; }
.history-people dt { font-weight:600; color:var(--ink); }
.history-people dd { margin:0; }
.era-card h3, .theme-card h3 { margin:0 0 6px; }
.history-figures td.num, .history-figures th.num { text-align:right; white-space:nowrap; }
@media (max-width:600px) { .history-people { grid-template-columns:1fr; } .history-people dd { margin-bottom:6px; } }

/* ---- source line and "About these figures" (UI_REVIEW L-3): the quiet source line under a data page's H1 and
   the collapsed disclaimer/method block at the end of the page; page-specific caveats stay a .notice */
.source-line { font-size:var(--fs-14); color:var(--muted); margin:4px 0 10px; max-width:var(--measure); }
.source-line a { color:var(--link); white-space:nowrap; }
.about-figures { border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); margin:24px 0 0; max-width:var(--measure); }
.about-figures > summary { cursor:pointer; padding:8px 0; font-size:var(--fs-14); font-weight:600; color:var(--ink); }
.about-figures-body { padding:0 0 10px; font-size:var(--fs-14); color:var(--ink); }
.about-figures:target { border-color:var(--rule); }

/* ---- stage 2: charts ---- */
/* focus on the crosshair charts' plot and on SVG link marks (UI_REVIEW A-3, A-46): an outline plus a stroke, which also shows
   where a browser draws no outline on SVG */
.viz .hit:focus-visible { stroke:var(--focus); stroke-width:3; }
.mini a:focus-visible rect { stroke:var(--focus); stroke-width:3; }
.tlc .mk:focus-visible .dot, .tlc .band:focus-visible { stroke:var(--focus); stroke-width:3; }
.isl-coverage .hm g:focus-visible rect, .isl-votes .mx g:focus-visible rect { stroke:var(--focus); stroke-width:3; }
.viz g:focus-visible .bar, .isl-debt .viz .seg:focus-visible rect { stroke:var(--focus); stroke-width:3; }
.ycols a:focus-visible { outline:3px solid var(--focus); outline-offset:1px; position:relative; z-index:1; }

/* Windows High Contrast and other forced colours (UI_REVIEW A-45): background-only graphics get a system colour, the charts
   keep their own colours with system-colour text and lines, and the current tab or page keeps a visible marker. */
@media (forced-colors: active) {
  .meter, .costbar, .growbar, .span rect.bg { border:1px solid CanvasText; }
  .meter > span, .hbar i, .costbar span, .growbar span, .rbar, .sw, .isl-votes .rbar { forced-color-adjust:none; background:CanvasText; }
  /* the year bars are full-height links drawing their bar as a gradient to --h (A-33): the same in system colours */
  .ycols li a { forced-color-adjust:none; background:linear-gradient(to top, CanvasText var(--h, 0%), transparent var(--h, 0%)); }
  .ycols li a[aria-current], .ycols li a:hover { background:linear-gradient(to top, Highlight var(--h, 0%), transparent var(--h, 0%)); }
  .sw { border:1px solid CanvasText; }
  svg.viz, svg.sk, svg.mini, .tl svg, .tone-chart, .rate-chart, .sk-frame { forced-color-adjust:none; background:Canvas; }
  svg.viz text, svg.sk text, svg.mini text, .tl svg text, .tone-chart text, .rate-chart text { fill:CanvasText; }
  .sk-halo { stroke:Canvas; }
  .viz .grid, .viz .axis, .tl .grid, .mini .grid, .rate-chart .grid { stroke:GrayText; }
  .viz g:focus-visible, svg a:focus-visible, .viz .hit:focus-visible { outline:3px solid Highlight; }
  .tip { border:1px solid CanvasText; }
  [aria-current="page"], [aria-current="true"], .primary-nav a[aria-current], .subnav a[aria-current], .sublinks a[aria-current] {
    text-decoration:underline; text-decoration-thickness:3px; text-underline-offset:4px; }
  .toggle button[aria-pressed="true"], .sublinks a[aria-current] { forced-color-adjust:none; background:Highlight; color:HighlightText; }
  mark { forced-color-adjust:none; background:Mark; color:MarkText; }
}

/* Print (UI_REVIEW A-47): the light set even when the screen is dark, table headers on every page, rows kept whole,
   no footer navigation or feedback, and the address after each link that leaves the site. */
@media print {
  :root:root:root {
    color-scheme: light;
    --ink:#1C2733;
    --text:#1C2733;
    --muted:#56606B;
    --bg:#ffffff;
    --card:#ffffff;
    --surface:#F3F4F5;
    --surface-2:#E6E9EC;
    --rule:#848C95;
    --hairline:#D9DDE1;
    --border:#D9DDE1;
    --border-strong:#848C95;
    --accent:#2E6B4E;
    --accent-ink:#245740;
    --accent-soft:#E4EFE8;
    --aye:#2E6B4E;
    --nay:#A8322A;
    --abstain:#56606B;
    --absent:#56606B;
    --attention:#7A5A00;
    --attention-soft:#F3F4F5;
    --attention-border:#C9B26A;
    --link:#2B5C8A;
    --link-hover:#1C2733;
    --focus:#2B5C8A;
    --on-link:#FFFFFF;
    --hero-bg:#ffffff;
    --hero-text:#1C2733;
    --hero-muted:#56606B;
    --hero-kicker:#56606B;
    --hero-line:#848C95;
    --on-ink:#FFFFFF;
    --fg:var(--text);
    --line:var(--border);
    --mark:#F3DE8A;
    --on-mark:#1C2733;
    --ok:var(--accent);
    --shadow:0 1px 2px rgba(28,39,51,.12), 0 6px 16px rgba(28,39,51,.10);
    --g-mayor:#7B4FA8;
    --g-council:#3B6FA6;
    --g-mpt:#1F3F66;
    --g-staff:#2E7D5B;
    --g-board:#9A6512;
    --g-external:#6B7480;
    --g-orgs:#7D6B4A;
    --gap:#7A828B;
    --serve:#A8322A;
    --rowhl:#E8EFF6;
    --s1:#3B6FA6;
    --s2:#B5562B;
    --s3:#2E7D5B;
    --track:#E6E9EC;
    --grid:#E6E9EC;
    --l1:#3B6FA6;
    --l2:#B5562B;
    --l3:#2E7D5B;
    --l4:#8A6A10;
    --l5:#A34D7A;
    --laneb:#F1F3F5;
    --st-done:#2E6B4E;
    --st-active:#2B5C8A;
    --st-plan:#7A5A00;
    --st-stop:#A8322A;
    --orig:#7A828B;
    --cur:#5F6770;
    --fam1:#3B6FA6;
    --fam2:#B5562B;
    --fam3:#2E7D5B;
    --fam4:#8A6A10;
    --fam5:#A34D7A;
    --fam6:#1F7A80;
    --fam7:#6A55B0;
    --fam8:#B03A3A;
    --fam0:#7A828B;
  }
  body { background:#fff; color:#000; }
  thead { display:table-header-group; }
  tr, img, svg, figure { break-inside:avoid; }
  .site-footer, .feedback-link, .fb-dialog, .fb-banner, .tip, .tl-zoom, .sk-hint { display:none !important; }
  main a[href^="http"]::after { content:" (" attr(href) ")"; font-size:.85em; word-break:break-all; }
  .wrap { overflow:visible !important; }
}

/* ---- stage 2: interaction ---- */
/* header search: the active option of the combobox (the focus stays in the input; UI_REVIEW A-1) */
.quick [role="option"][aria-selected="true"] { background:var(--surface); outline:2px solid var(--focus); outline-offset:-2px; }
/* a button that reads as a link: in-page actions that were <a href="#"> (UI_REVIEW A-5) */
.linkbtn { all:unset; color:var(--link); text-decoration:underline; cursor:pointer; }
.linkbtn:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
/* sortable column headers: a button in the th, the order in aria-sort (UI_REVIEW A-4, the debt.html pattern) */
th.sortable button { all:unset; cursor:pointer; font:inherit; color:inherit; text-transform:inherit; letter-spacing:inherit; }
th.sortable button:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
th.sortable[aria-sort="ascending"] button::after { content:" ▲"; content:" ▲" / ""; font-size:.8em; }   /* empty alt: aria-sort says it */
th.sortable[aria-sort="descending"] button::after { content:" ▼"; content:" ▼" / ""; font-size:.8em; }
/* the payee filter chip is a button (UI_REVIEW A-6) */
button.chip-x { font:inherit; font-size:var(--fs-12); background:none; line-height:inherit; }
button.chip-x:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
/* pagers as named navs (UI_REVIEW A-10) */
.pager[hidden] { display:none; }
.filters .pager { margin:0; }
/* the theme toggle names what it does; the label for the theme in force, from the first paint (UI_REVIEW A-9) */
.theme-toggle .to-light, :root[data-theme="dark"] .theme-toggle .to-dark { display:none; }
:root[data-theme="dark"] .theme-toggle .to-light { display:inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .to-dark { display:none; }
  :root:not([data-theme="light"]) .theme-toggle .to-light { display:inline; }
}
/* an error inside the section that failed (UI_REVIEW A-49) */
.fail { margin:8px 0; }

/* ---- stage 2: tables, structure, forms ---- */
/* row headers (UI_REVIEW A-13): the identifying first cell of a body row is a <th scope="row"> that reads like a cell */
tbody th[scope=row] { color:inherit; font-weight:inherit; font-size:inherit; text-transform:none; letter-spacing:normal; }
tbody th[scope=row]:not(.num) { text-align:left; }
.isl-coverage #mt tbody th, .isl-debt #issues tbody th, .isl-funds #list tbody th, .isl-ordinances #t tbody th, .isl-projects #t tbody th,
.isl-spending #lines tbody th, .isl-votes #t tbody th { font-size:var(--fs-14); }
/* the table scroller is a focusable region (A-12) */
.wrap[role=region]:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
@media (max-width:600px) {
  table.stack tbody th[colspan], table.stack tbody th[data-label=""] { padding-left:0; }
  table.stack tbody th[colspan]::before, table.stack tbody th[data-label=""]::before { content:none; }
}
/* headings that were bold text or skipped a level (A-29, A-30) */
.motion-h { font-size:var(--fs-16); line-height:1.35; margin:0 0 6px; }
.motion-h .tag { font-weight:400; vertical-align:1px; }
.serving-h { font-size:var(--fs-16); margin:0 0 6px; }
/* targets of at least 24px (A-33): footnote marks, tag links, the "signed" link, the year bars (full-height columns) */
sup.fn a { padding:7px 5px; margin:0 -2px; }
a.tag { padding:3px 8px; line-height:16px; }
a.tgt { display:inline-block; min-height:24px; min-width:24px; padding:3px 4px; box-sizing:border-box; }
.ycols li { height:100%; }
.ycols a { background:linear-gradient(to top, var(--s1) var(--h, 0%), transparent var(--h, 0%)); }
.ycols a:hover, .ycols a:focus, .ycols a[aria-current] { background:linear-gradient(to top, var(--accent) var(--h, 0%), transparent var(--h, 0%)); }

/* ---- stage 2: merge fixes ---- */
/* the scrollers contain their screen-reader-only text: an absolutely positioned .sr-only (the "(PDF, opens in a new tab)"
   notices, "none" for "—") in a wide table otherwise escapes the overflow box and widens the page on phones */
.wrap, .sk-frame { position:relative; }
/* targets of at least 24px (A-33), found by ui-check on the merged preview: the timeline's name links fill a 24px row (the
   chart rows follow --rowh), the ordinance numbers in the row headers, the small "details" toggles in the committee tables */
.isl-timeline { --rowh:24px; }
.tl-names div > a { display:block; overflow:hidden; text-overflow:ellipsis; }
.isl-ordinances #t tbody th > a:first-child { display:inline-block; min-width:24px; min-height:24px; line-height:24px; }
td.small > details > summary { min-height:24px; line-height:24px; }

/* ---- stage 3: page and payload size ---- */
/* long pages: sections below the first screen skip layout and paint until they come near (UI_REVIEW P-5); the remembered
   intrinsic size keeps the scrollbar steady */
.history-section, .isl-coverage #quality, .isl-votes #mt, section:has(> #h-chapters), section:has(> #h-by-month),
section:has(> #h-explain), section:has(> #h-figures) { content-visibility:auto; contain-intrinsic-size:auto 600px; }
@media print { .history-section, .isl-coverage #quality, .isl-votes #mt, section:has(> #h-chapters), section:has(> #h-by-month),
  section:has(> #h-explain), section:has(> #h-figures) { content-visibility:visible; } }
/* a list being replaced (site.js livePart) and a section loading on open */
#olist[aria-busy="true"], #mlist[aria-busy="true"], #vlist[aria-busy="true"], #plist[aria-busy="true"],
.lazy-part[aria-busy="true"] { opacity:.6; }
/* targets of at least 24px (WCAG 2.5.8), found by ui-check on the stage 3 preview: the open "Sources" lists, the footer's
   links, a link alone on its line ("All N dated items", "Show the N items" of a lazy section, "Show all" of a list). Inline
   padding makes the box 24px tall without moving the line; a summary gets a 24px line. Pagers keep .pager .btn (44px). */
.sources-list > summary { min-height:24px; line-height:24px; }
.site-footer ul a, a.tgt-line, .lazy-part > a, p[data-count] > a { padding-block:4px; }

/* ---- stage 4: M ---- */
/* "On this page" (macros.on_this_page, UI_REVIEW L-5): one quiet box of section links under the page head */
.on-page { margin:12px 0 20px; padding:8px 0; border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); font-size:var(--fs-14); }
.on-page-h { margin:0 0 2px; font-weight:600; color:var(--muted); }
.on-page ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:0 18px; }
.on-page a { display:inline-block; min-height:24px; line-height:24px; }
/* the meeting agenda with each item's outcome (meeting.html, L-6) */
.agenda { list-style:none; padding:0; margin:8px 0 12px; }
.ag-item { padding:8px 0; border-top:1px solid var(--hairline); }
.ag-sub { padding-left:18px; }
.ag-sub2 { padding-left:36px; }
.ag-title { margin:0; }
.ag-label { font-weight:600; }
.ag-out { list-style:none; margin:4px 0 0; padding:0 0 0 12px; border-left:2px solid var(--hairline); }
.ag-out li { margin:2px 0; }
.ag-out a, .ag-title a { padding-block:4px; }
.ag-head > summary { min-height:24px; line-height:24px; }
.ag-head-text { white-space:pre-line; }
@media (max-width:600px) { .ag-sub { padding-left:10px; } .ag-sub2 { padding-left:20px; } }

/* ---- stage 4: W ---- */
/* abbreviations (UI_REVIEW A-51): the first use is spelled out; later ones keep a dotted underline and a title */
abbr[title] { text-decoration:underline dotted; text-underline-offset:2px; cursor:help; }
/* meeting attendance as a list (A-52): names in columns, each with its status */
.att-list { list-style:none; margin:4px 0 8px; padding:0; columns:16rem auto; column-gap:24px; }
.att-list li { break-inside:avoid; padding:2px 0; }
.att-list .att-absent { color:var(--nay); }
/* other spellings of a name (D-11) and technical details (D-13): closed disclosures, 24px summaries (WCAG 2.5.8) */
details.inline-more { display:inline; }
details.inline-more > summary, details.tech > summary { display:inline-block; min-height:24px; line-height:24px; cursor:pointer; color:var(--muted); }
details.inline-more[open] { display:block; }
details.tech { margin-top:8px; }

/* ---- stage 4: N ---- */
/* the filter forms' view choices are radio buttons (they submit without scripts), drawn as the old toggle buttons */
.toggle label { display:inline-flex; align-items:center; gap:4px; min-height:24px; padding:2px 10px; font-size:var(--fs-14); cursor:pointer; }
.toggle label:has(input:checked) { background:var(--ink); color:var(--on-ink); }
.toggle input[type="radio"] { margin:0; accent-color:currentColor; }
/* controls that only scripts can run (zoom, "today") are not shown without them */
html:not(.js) .js-only { display:none; }
/* a word on a chart's bar (an outlier's reason, a year with no lists: UI_REVIEW V-6, D-10) */
.viz text.bar-note { font-size:var(--fs-12); fill:var(--ink); font-weight:600; }
.chart-note { margin:4px 0 2px; }
.isl-project .evfilters .btn, .isl-project .evfilters input[type="search"] { min-height:24px; }
.home-flow .flow-how { margin:8px 0; } .home-flow .flow-how > summary { min-height:24px; line-height:24px; cursor:pointer; }
@media (forced-colors: active) { .toggle label:has(input:checked) { forced-color-adjust:none; background:Highlight; color:HighlightText; } }

/* ---- stage 4: fixes ---- */
/* the instrument history's source cell stacks "meeting of …" and "document" links in small text (WCAG 2.5.8) */
.ev-src a { display:inline-block; min-height:24px; line-height:24px; }

/* ---- stage 5: R ---- */
/* The roll-call strip (macros.html rollcall(), site.js rollCall()): one mark per seat, the initials always under it. Shape
   carries the vote (filled aye, open ring no, slashed ring abstained, dotted ring absent), so it reads without colour.
   role=img, not interactive: no target size. */
.rc { --rc-aye:var(--text); --rc-nay:var(--nay); --rc-abstain:var(--abstain, var(--muted)); --rc-absent:var(--absent, var(--muted));
  display:inline-flex; flex-wrap:wrap; gap:4px 6px; align-items:flex-start; vertical-align:top; line-height:1; }
.rc-seat { display:inline-flex; flex-direction:column; align-items:center; gap:2px; min-width:20px; }
.rc-m { display:block; box-sizing:border-box; width:14px; height:14px; margin:2px; border-radius:50%; }
.rc-sm .rc-m { width:12px; height:12px; margin:1px; }
.rc-aye .rc-m { background:var(--rc-aye); }
.rc-nay .rc-m { border:2.5px solid var(--rc-nay); }
.rc-sm.rc .rc-nay .rc-m { border-width:2px; }
.rc-abstain .rc-m { border:1.5px solid var(--rc-abstain);
  background:linear-gradient(to top right, transparent calc(50% - 1px), var(--rc-abstain) calc(50% - 1px), var(--rc-abstain) calc(50% + 1px), transparent calc(50% + 1px)); }
.rc-absent .rc-m { border:1.5px dotted var(--rc-absent); }
.rc-i { font-size:var(--fs-12); line-height:14px; color:var(--muted); font-weight:400; white-space:nowrap; }
@media (forced-colors: active) {
  .rc { forced-color-adjust:none; --rc-aye:CanvasText; --rc-nay:CanvasText; --rc-abstain:CanvasText; --rc-absent:CanvasText; }
  .rc-i { color:CanvasText; }
}
@media print { .rc-m { -webkit-print-color-adjust:exact; print-color-adjust:exact; } }

/* The meeting page's agenda (meeting.html): a reading column of at most 72ch and, per item, a right margin with the
   result, the strip, who moved and seconded and the page of the minutes (mockup Main). Up to 1100 px the margin folds
   under the item's text (MeetingMid-Fold, Eric's choice), the strip beside its words; on a phone the words wrap under it. */
.agenda .ag-item { display:grid; grid-template-columns:minmax(0, 1fr) 17rem; column-gap:2rem; align-items:start; padding:12px 0; }
.ag-text { min-width:0; max-width:var(--measure, 72ch); }
.ag-margin { display:flex; flex-direction:column; gap:16px; color:var(--muted); line-height:1.45; }
.ag-vote { display:flex; flex-direction:column; gap:4px; }
.ag-vtxt { display:contents; }
.ag-vote p { margin:0; max-width:none; }
.ag-vote .ag-mtext { order:-2; color:var(--text); }
.ag-vote .ag-res { order:-1; color:var(--text); }
.ag-vote .rc { order:0; margin:2px 0; }
.ag-vtxt > p { order:1; }
.ag-links a { display:inline-block; min-height:24px; line-height:24px; }
.mo-rc { margin:8px 0 0; }
.rc-help > summary { min-height:24px; line-height:24px; cursor:pointer; }
.rc-help p { margin:6px 0 10px; }
@media (max-width:1100px) {
  .agenda .ag-item { grid-template-columns:minmax(0, 1fr); }
  .ag-margin { margin-top:8px; gap:12px; }
  .ag-vote { flex-direction:row; flex-wrap:wrap; align-items:flex-start; gap:6px 20px; }
  .ag-vtxt { display:flex; flex-direction:column; gap:2px; flex:1 1 16rem; min-width:0; }
  .ag-vote .rc { margin:0; }
}

/* vote lists elsewhere with a strip: the split votes, a project's and an instrument's votes, a person's votes, home */
.vote-rc { display:block; margin-top:4px; }
/* on the home page's dark hero the marks take the hero's text colour; the shapes carry the vote */
.hero .rc { --rc-aye:var(--hero-text); --rc-nay:var(--hero-text); --rc-abstain:var(--hero-muted); --rc-absent:var(--hero-muted); }
.hero .rc-i { color:var(--hero-muted); }

/* ---- stage 5: C ---- */
/* Chart palette (UI_REVIEW A-23, V-6): eight categorical slots validated with the dataviz method in both themes (lightness
   band, chroma floor, adjacent-pair colour-vision-deficiency and normal-vision separation, 3:1 on page and card). Slots
   alternate a dark and a light step, so neighbouring series differ in lightness, not hue alone; the first three also pass
   all pairs. Order: blue, amber, plum, teal, brick, green, violet, ochre. Only the --c-* tokens hold chart colours; the
   charts' older token names point at them below. Ink, grid and axis come from the page tokens. */
:root {
  --c-1:#1e5ba1; --c-2:#b46d10; --c-3:#8e3665; --c-4:#0a938e; --c-5:#963828; --c-6:#47944c; --c-7:#674698; --c-8:#977e05;
  --c-1-deep:#113d70;   /* mayor pro tem: council's hue, a step apart in lightness; the year columns' hover */
  --c-orgs:#8d6cc2;     /* firms and agencies on the people timeline: violet's light step */
  --c-neutral:#7d8691; --c-neutral-strong:#56606b;   /* "other", original scope, gaps; the current contract */
  --c-track:#e6e9ec; --c-lane:#f3f4f5;               /* bar tracks; every other timeline lane (decorative) */
  --c-debt:#8c1c2b;     /* debt service on the cash-flow chart: deep red, apart from brick (--c-5) and the nay red */
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  --c-1:#447abe; --c-2:#c7843c; --c-3:#ac5983; --c-4:#0daba5; --c-5:#b55b4a; --c-6:#63a966; --c-7:#8467b5; --c-8:#ac942f;
  --c-1-deep:#9ec4f4; --c-orgs:#a183d4; --c-neutral:#737e8a; --c-neutral-strong:#a7b0ba; --c-track:#26303b; --c-lane:#18202a;
  --c-debt:#d4504c;
}
}
:root[data-theme="dark"] {
  --c-1:#447abe; --c-2:#c7843c; --c-3:#ac5983; --c-4:#0daba5; --c-5:#b55b4a; --c-6:#63a966; --c-7:#8467b5; --c-8:#ac942f;
  --c-1-deep:#9ec4f4; --c-orgs:#a183d4; --c-neutral:#737e8a; --c-neutral-strong:#a7b0ba; --c-track:#26303b; --c-lane:#18202a;
  --c-debt:#d4504c;
}
@media print {
:root:root:root {
  --c-1:#1e5ba1; --c-2:#b46d10; --c-3:#8e3665; --c-4:#0a938e; --c-5:#963828; --c-6:#47944c; --c-7:#674698; --c-8:#977e05;
  --c-1-deep:#113d70; --c-orgs:#8d6cc2; --c-neutral:#7d8691; --c-neutral-strong:#56606b; --c-track:#e6e9ec; --c-lane:#f3f4f5;
  --c-debt:#8c1c2b;
}
}
/* the charts' token names, pointed at the palette in every theme (the triple :root outranks the theme and print sets) */
:root:root:root {
  --c-grid:var(--hairline, var(--border)); --c-axis:var(--rule, var(--border-strong));
  --c-halo:var(--bg);   /* the ground behind marks and labels: charts sit on the page (no card fill since stage 5) */
  --s1:var(--c-1); --s2:var(--c-2); --s3:var(--c-3);
  --l1:var(--c-1); --l2:var(--c-2); --l3:var(--c-3); --l4:var(--c-4); --l5:var(--c-5);
  --fam1:var(--c-1); --fam2:var(--c-2); --fam3:var(--c-3); --fam4:var(--c-4); --fam5:var(--c-5); --fam6:var(--c-6);
  --fam7:var(--c-7); --fam8:var(--c-8); --fam0:var(--c-neutral);
  --g-mayor:var(--c-3); --g-council:var(--c-1); --g-mpt:var(--c-1-deep); --g-staff:var(--c-4); --g-board:var(--c-2);
  --g-external:var(--c-neutral); --g-orgs:var(--c-orgs);
  --gap:var(--c-neutral); --orig:var(--c-neutral); --cur:var(--c-neutral-strong);
  --track:var(--c-track); --grid:var(--c-grid); --laneb:var(--c-lane);
}
/* debt types in stack order take adjacent slots: a validated neighbour pair at every join */
.isl-debt { --dt-go:var(--c-1); --dt-aa:var(--c-2); --dt-rev:var(--c-3); --dt-tif:var(--c-4); --dt-lease:var(--c-5); --dt-other:var(--c-neutral); }
/* quiet chrome: hairline grid, rule-coloured axis and baseline, slate text at 12 px with tabular figures */
.viz text, .tl svg text, .mini text, .sk-label, .tone-chart text, .rate-chart text, .isl-coverage .hm text, .isl-votes .mx text {
  font-variant-numeric:tabular-nums lining-nums; }
.viz .grid, .tl .grid, .mini .grid, .rate-chart .grid { stroke:var(--c-grid); stroke-width:1; }
.viz .axis, .viz .grid.base { stroke:var(--c-axis); }
.viz .zero { stroke:var(--c-axis); stroke-dasharray:none; }
.tip { font-variant-numeric:tabular-nums lining-nums; }
.legend { font-size:var(--fs-12); color:var(--muted); }
.sw { border-radius:var(--radius-data); }
/* direct labels in ink (the mark beside each carries the colour), and the margin notes on bars */
.viz .dlabel { fill:var(--text); font-size:var(--fs-12); font-weight:600; }
.tlc .lbl { fill:var(--text); font-size:var(--fs-12); }
.viz .dlabel, .viz text.bar-note { paint-order:stroke; stroke:var(--c-halo); stroke-width:3px; stroke-linejoin:round; }
.viz .dleader { stroke:var(--muted); stroke-width:1; }
.viz text.bar-note { fill:var(--text); font-size:var(--fs-12); font-weight:600; font-style:italic; }
.tlc .dot.key { stroke:none; }
/* the project timeline names its lanes on the chart, each beside its mark: the legend above it is for the page without
   scripts (hidden from the first paint, so nothing moves when the chart arrives) */
.js #lanelegend { display:none; }
/* marks: a surface gap between stacked segments; single-series bars in slot 1 */
.isl-debt .viz .seg rect:not(.est) { stroke:var(--c-halo); stroke-width:1; }
.hbars .b { background:var(--c-track); border-radius:var(--radius-data); }
.hbars .b > span { background:var(--c-1); }
.ycols a:hover, .ycols a:focus, .ycols a[aria-current] { background:linear-gradient(to top, var(--c-1-deep) var(--h, 0%), transparent var(--h, 0%)); }
.rate-chart .pt.scheduled { fill:var(--c-halo); }
/* the server-drawn single-series lines (tone, pay in today's dollars) in slot 1, whatever their attributes say */
.tone-chart polyline, figure.chart svg polyline { stroke:var(--c-1); }
.tone-chart circle, figure.chart svg circle { fill:var(--c-1); }
/* forced colours (A-45): the rules above come after the stage 2 block, so its system colours are restated for them */
@media (forced-colors: active) {
  .viz .grid, .tl .grid, .mini .grid, .rate-chart .grid, .viz .axis, .viz .grid.base, .viz .zero, .viz .dleader { stroke:GrayText; }
  .viz .dlabel, .tlc .lbl, .viz text.bar-note { fill:CanvasText; stroke:Canvas; }
  .hbars .b { border:1px solid CanvasText; } .hbars .b > span { forced-color-adjust:none; background:CanvasText; }
  .ycols li a:focus { background:linear-gradient(to top, Highlight var(--h, 0%), transparent var(--h, 0%)); }
}

/* ---- stage 5: S ---- */
/* Sentences instead of tiles (UI_REVIEW V-1, L-10): a page opens with 1–3 sentences whose figures are bold tabular
   numerals linked to their source; numbers compared side by side sit in a ledger (label left, figure right, a rule
   between). A sentence-case type label under the H1 replaces the all-caps eyebrow (V-2). */
.lead-facts { font-size:var(--fs-18); line-height:1.55; max-width:var(--measure, 72ch); margin:12px 0 8px; color:var(--text); }
.lead-facts + .lead-facts { margin-top:0; }
.lead-facts .fig, .ledger .fig, .fig-link .fig { font-family:inherit; font-weight:700; font-variant-numeric:tabular-nums lining-nums; }
.fig-link { text-underline-offset:3px; }
.type-label { font-size:var(--fs-18); color:var(--muted); margin:6px 0 0; max-width:var(--measure, 72ch); }
.hero-label { font-size:var(--fs-16); font-weight:600; color:var(--hero-kicker, inherit); margin:0; }
.ledger { margin:12px 0 16px; max-width:640px; border-bottom:1px solid var(--hairline, var(--border)); }
.ledger-row { display:flex; justify-content:space-between; align-items:baseline; gap:8px 20px; padding:8px 0; border-top:1px solid var(--hairline, var(--border)); }
.ledger dt { flex:1 1 auto; min-width:0; }
.ledger dd { flex:0 0 auto; margin:0; text-align:right; white-space:nowrap; }
.ledger-note { display:block; font-size:var(--fs-14); color:var(--muted); }
.ledger-row.total { border-top-color:var(--text); font-weight:700; }
@media (max-width:600px) { .ledger-row { flex-wrap:wrap; } .ledger dd { margin-left:auto; } }

/* ---- stage 5: fixes ---- */
/* the split-votes rows list a motion's ordinances, resolutions and meeting as comma-joined links in small text (WCAG 2.5.8) */
td[data-label] > .small > a { display:inline-block; min-height:24px; line-height:24px; }
/* the last small targets found by ui-check (A-33): a board member's pay source links, the coverage page's small disclosures */
.src-links a { display:inline-block; min-height:24px; line-height:24px; }
.isl-coverage summary.small { min-height:24px; line-height:24px; }
/* A plain small disclosure (the state's-copy sections, statedata_macros.html and friends): 24px line for WCAG 2.5.8. */
details > summary.small { min-height:24px; line-height:24px; cursor:pointer; }

/* ---- stage 7: home ---- */
/* UI_REVIEW stage 7, option A: "This week" beside the next meeting (one column up to 1100 px), "Worth watching" as a
   full-width band with rules between entries (3 across above 1100 px, 2 down to 601 px, then 1), the other meetings in
   one "Also coming up" line, and "On this day" as date, quote, then one small line (B's format). */
.hero .hero-grid { padding-top:32px; padding-bottom:8px; display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:28px 56px; align-items:start; }
.hero .hero-main { min-width:0; }
.hero p.hero-bills { margin-top:0; }
.next-meet { border-top:2px solid var(--ink); padding-top:14px; min-width:0; }
.home .next-meet h2 { font-family:var(--font-sans); font-size:var(--fs-14); font-weight:600; color:var(--hero-muted); margin:0; line-height:1.4; }
.next-meet p { margin:0; font-size:var(--fs-16); max-width:none; }
.hero .next-meet .nm-date { margin-top:6px; font-family:var(--font-serif); font-size:var(--fs-28); line-height:1.15; font-weight:600; }
.hero .next-meet .nm-body { margin-top:6px; font-size:var(--fs-18); }
.hero .next-meet .nm-where { margin-top:4px; }
.hero .next-meet .nm-status { margin-top:10px; font-size:var(--fs-14); color:var(--hero-muted); }
.nm-items { list-style:none; margin:10px 0 0; padding:0; border-bottom:1px solid var(--hairline); }
.nm-items li { display:grid; grid-template-columns:40px minmax(0, 1fr); column-gap:10px; padding:7px 0; border-top:1px solid var(--hairline); font-size:var(--fs-14); }
.nm-items .lbl { font-weight:700; }
.nm-items .flagword { color:var(--attention); font-weight:600; white-space:nowrap; }
.hero .next-meet .nm-more { margin-top:4px; font-size:var(--fs-14); }
.nm-act { margin-top:14px; }
.btn.nm-feed { color:var(--link); border-color:var(--link); background:transparent; }
.btn.nm-feed:hover { color:var(--link-hover); background:var(--surface); }
.hero .next-meet .nm-links { margin-top:18px; padding-top:10px; border-top:1px solid var(--hairline); display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.nm-links a { display:inline-block; padding:4px 0; min-height:24px; }
.nm-links .nm-read { font-weight:600; }
.next-meet .nm-more a { display:inline-block; min-height:24px; }

.watch-band { margin-bottom:40px; }
.watch-band .section-head { margin-bottom:10px; }
.ww { display:grid; grid-template-columns:minmax(0, 1fr); border-top:2px solid var(--ink); }
.ww-item { padding:14px 0 16px; border-bottom:1px solid var(--hairline); min-width:0; }
.ww-item p { margin:0; }
.ww .w-title { font-weight:600; color:var(--ink); }
.ww .w-kind { margin-top:2px; font-size:var(--fs-14); color:var(--muted); }
.ww .w-text { margin-top:6px; font-size:var(--fs-14); color:var(--text); max-width:var(--measure); }
.also-coming { margin:12px 0 0; }
@media (min-width:601px) {
  .ww { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .ww-item { padding:14px 20px 16px; }
  .ww-item:nth-child(2n) { border-left:1px solid var(--hairline); }
}
@media (min-width:1101px) {
  .ww { grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .ww-item { padding:16px 24px 18px; }
  .ww-item:nth-child(2n) { border-left:0; }
  .ww-item:not(:nth-child(3n+1)) { border-left:1px solid var(--hairline); }
}
@media (max-width:1100px) {
  .hero .hero-grid { grid-template-columns:minmax(0, 1fr); }
}
@media (min-width:601px) and (max-width:1100px) {
  .next-meet { display:grid; grid-template-columns:minmax(0, 1fr) 240px; column-gap:32px; }
  .nm-act { margin-top:0; }
  .hero .next-meet .nm-links { margin-top:6px; padding-top:0; border-top:0; }
}
@media (max-width:600px) {
  .btn.nm-feed { display:flex; width:100%; }
}

.otd-list { list-style:none; margin:8px 0; padding:0; }
.otd { padding:12px 0; border-top:1px solid var(--hairline); }
.otd:last-child { border-bottom:1px solid var(--hairline); }
.otd p { margin:0; }
.otd .otd-date { font-size:var(--fs-14); color:var(--muted); }
.otd-quote { margin:6px 0 0; padding:0; border:0; font-family:var(--font-serif); font-size:var(--fs-18); line-height:1.6; font-style:italic; color:var(--text); max-width:var(--measure); }
.otd .otd-line { margin-top:6px; font-size:var(--fs-14); color:var(--muted); max-width:var(--measure); }

/* ---- home: cash flow full width, debt and change orders below (Eric, 2026-11-06) ---- */
.fin-grid { display:flex; flex-direction:column; gap:24px; margin-top:16px; }
.fin-more { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap:24px; }
.fin-more > .card { margin:0; }

/* Census pages (templates/census_population.html, census_boundaries.html; docs/CENSUS.md): server-side SVG, no script */
.census-chart { width:100%; height:auto; max-height:260px; display:block; margin:6px 0 4px; }
.census-chart .grid { stroke:var(--border); stroke-width:1; }
.census-chart .ylab { fill:var(--muted); font-size:var(--fs-12); text-anchor:end; }
.census-chart .xlab { fill:var(--muted); font-size:var(--fs-12); text-anchor:middle; }
.census-chart .est { fill:none; stroke:var(--s1); stroke-width:2; }
.census-chart .edot { fill:var(--s1); }
.census-chart .cdot { fill:var(--s2); stroke:var(--bg); stroke-width:1.5; }
.census-map { width:100%; max-width:640px; height:auto; display:block; margin:6px auto 4px; }
.census-map .lyr { fill:var(--s1); stroke:var(--s1); stroke-width:1; stroke-opacity:.7; }
.census-map .scale { stroke:var(--fg); stroke-width:2; }
.census-map .lab { fill:var(--muted); font-size:var(--fs-12); }
.legend .sw.cdot, .legend .sw.est, .legend .sw.lyr { display:inline-block; width:14px; height:10px; margin-right:6px; border-radius:var(--radius-data); }
.legend .sw.cdot { background:var(--s2); border-radius:50%; width:10px; } .legend .sw.est { background:var(--s1); height:3px; }
.legend .sw.lyr { background:var(--s1); }
article.boundary-change { margin:12px 0; }
article.boundary-change h3 { margin:2px 0 4px; font-size:var(--fs-16); }
@media (forced-colors: active) {
  .census-chart, .census-map { forced-color-adjust:none; background:Canvas; }
  .census-chart text, .census-map text { fill:CanvasText; }
}
