/* JeffDavisEdu — site-wide styles. Mobile-first, no build step.
   Palette from the parish schools' colours. The site's logo is its own (images/brand/); the district emblem it used
   before is archived in images/archive/ and is not used as site branding. */
:root {
  --navy: #2b3a8c;        /* primary: header text, buttons, links */
  --navy-dark: #1f2b6b;
  --navy-soft: #e6e9f5;   /* navy at ~10%: hover/selected backgrounds */
  --red: #c0392b;         /* sparingly: brand accent, error banners */
  /* Colour-scheme roles (css/schemes.css overrides these per scheme; the defaults here are the Classic look).
     --navy is the text/link colour; --brand is the colour of big filled areas (hero, footer, active nav, primary
     buttons) and --on-brand the text on them; --gold is the accent (stripes, underlines, highlights). */
  --brand: var(--navy);
  --brand-dark: var(--navy-dark);
  --brand-light: #3b4fb3;
  --brand-light-2: #34479e; /* end of the candidate-page hero gradient */
  --on-brand: #fff;
  --on-brand-soft: #e8ecfa;
  --on-brand-faint: #c9d2f5;
  --on-brand-line: #dfe3f3;
  --on-brand-muted: #aeb6d6;
  --on-brand-accent: var(--gold);
  --gold-ink: #5c4300;    /* text on --gold-soft */
  --gold-ink-2: #7a5a00;
  --accent-tint: #fbfaf5; /* faint accent-tinted panel */
  --stripe: none;         /* optional multi-colour header/footer stripe (border-image) */
  --chart-0: #1f3a8a;     /* first band of the home page spending bar */
  --chart-1: var(--navy); --chart-2: #3a8ccc; --chart-3: #2e9e48; --chart-4: var(--gold);
  --gold: #e6b422;        /* accent: tile icons, active nav underline, chart highlight */
  --gold-soft: #fbf1d2;
  --tan: #c9b48a;         /* ring colour: borders */
  --tan-line: #e2d8c2;    /* tan at ~50%: card borders */
  --cream: #f3ead6;       /* ring highlight: section backgrounds */
  --page: #f6f3ec;        /* warm light page background */
  --surface: #ffffff;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok-bg: #e8f5ec; --ok-ink: #14532d;
  --warn-bg: #fff4e5; --warn-ink: #7c2d12;
  --err-bg: #fbe9e7; --err-ink: #7f1d1d;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 41, 55, .06), 0 4px 14px rgba(31, 41, 55, .06);
  --wrap: 1240px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--page);
}
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code { background: var(--cream); padding: 0 .3em; border-radius: 4px; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.period { color: var(--muted); font-size: .85em; white-space: nowrap; }
.poll-tally { display: block; font-size: .9em; margin-top: .2rem; }
.vbars { display: grid; gap: 8px; margin: 6px 0 4px; }
.vbar-row { display: grid; grid-template-columns: 6.2em 1fr 5.2em; gap: 10px; align-items: center; }
.vbar-label { font-weight: 700; }
.vbar-track { display: block; height: 22px; background: #e8ebf1; border-radius: 6px; overflow: hidden; }
.vbar-fill { display: block; height: 100%; min-width: 0; border-radius: 6px; }
.vbar-support { background: #1f7a4d; } .vbar-oppose { background: #b3372f; } .vbar-undecided { background: #7b8494; }
.vbar-val { text-align: right; white-space: nowrap; }
.vbars-total { margin: 2px 0 8px; color: var(--muted); }
.vsplit { display: flex; height: 8px; margin-top: 5px; border-radius: 4px; overflow: hidden; background: #e8ebf1; max-width: 320px; }
.vsplit span { display: block; height: 100%; }
.voice-rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.voice-row { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.voice-row-q { font-weight: 700; }
.voice-row .period, .item-voice .period { white-space: normal; }
.voice-row-btn { justify-self: start; margin-top: 4px; }
.item-voice { display: grid; gap: 4px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; background: var(--accent-tint); }
.item-voice-head { display: flex; align-items: center; gap: 6px; color: var(--navy); }
.item-voice .btn { justify-self: start; margin-top: 4px; }
.voice-home { margin: 18px 0; border-top: 4px solid var(--gold); }
.voice-home-group { display: grid; gap: 14px; margin-bottom: 12px; }
@media (min-width: 820px) { .voice-home-group { grid-template-columns: minmax(280px, 1fr) 2fr; align-items: start; } }
.voice-home-group p { margin: 0 0 6px; }
.voice-home-list { margin: 0; padding-left: 1.2em; }
.badge-test { background: #b45309; color: #fff; }
.voice-row-test { border-left: 4px solid #b45309; }
.poll-total { color: var(--navy); }
.poll-total-line { margin: 0 0 12px; }
.countdown strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.countdown-big { display: grid; gap: 2px; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--gold, #e0a800); border-radius: 8px; background: var(--accent-tint); }
.countdown-big .countdown-label { font-weight: 700; color: var(--navy); }
.countdown-big .countdown-out { font-size: 1.9rem; line-height: 1.15; }
.countdown-big .countdown-note { font-size: .85rem; color: var(--muted); }
.countdown-soon strong, .countdown-done strong { color: #b3372f; }
.meeting-group { margin: 14px 0 8px; font-size: 1.05rem; color: var(--ink); }
.meeting-group .muted { font-weight: 400; font-size: .9em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--navy); padding: 10px 14px; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.site-main { flex: 1 0 auto; padding-bottom: 36px; }
.site-main:focus { outline: none; }

.ico { width: 1.4em; height: 1.4em; flex: none; }
.ico-sm { width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: .3em; flex: none; }
.ico-xs { width: .85em; height: .85em; vertical-align: -.05em; margin-left: .2em; opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; border: 1px solid var(--navy); background: var(--surface); color: var(--navy);
}
.btn:hover { background: var(--navy-soft); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn-outline { background: var(--surface); }
.btn-soft { background: var(--navy-soft); border-color: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--navy) 18%, #fff); }
.btn-ghost { border-color: transparent; }
.btn-block { width: 100%; }
.btn-stack { display: flex; flex-direction: column; gap: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow.right { margin-left: auto; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 3px solid var(--gold); position: relative; z-index: 30; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: var(--header-h); padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; flex: 1 1 0; }
.logo { width: 44px; height: 44px; flex: none; }
.logo-sm { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.wm-tld { color: var(--gold); }
.brand-tag { font-size: .7rem; color: var(--ink-2); line-height: 1.25; }

.nav-toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 10px; border: 1px solid var(--tan-line); border-radius: 8px; background: var(--surface); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle-label { font-size: .9rem; }
.site-nav { display: none; flex: 1 1 100%; }
body.nav-open .site-nav { display: block; }
.nav-list { list-style: none; margin: 0; padding: 6px 0 10px; display: flex; flex-direction: column; }
.nav-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); }
.nav-link { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav-link:hover { background: var(--navy-soft); }
.nav-item.active > .nav-link { background: var(--brand); color: var(--on-brand); box-shadow: inset 0 -3px 0 var(--on-brand-accent); }
.sub-toggle { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.sub-toggle .ico-sm { margin: 0; transition: transform .15s; }
.nav-item.open > .sub-toggle .ico-sm { transform: rotate(180deg); }
.sub-menu { list-style: none; margin: 0; padding: 0 0 6px 14px; display: none; flex-basis: 100%; }
.nav-item.open > .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 10px; min-height: 40px; text-decoration: none; color: var(--ink); border-radius: 6px; }
.sub-menu a:hover { background: var(--cream); color: var(--navy); }
.sub-menu .sub-all a { font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); margin-top: 4px; }
.nav-search-link .ico { width: 1.3em; height: 1.3em; }
.header-search { background: var(--cream); border-top: 1px solid var(--tan-line); }
.search-row { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.search-row input { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 8px 12px; font: inherit; border: 1px solid var(--tan); border-radius: 8px; background: #fff; }

@media (min-width: 820px) {
  .header-row { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .brand { flex: 0 1 auto; }
  .site-nav { display: block; flex: 0 1 auto; }
  .nav-list { flex-direction: row; align-items: center; gap: 2px; padding: 0; }
  .nav-item { border-top: 0; flex-wrap: nowrap; }
  .nav-link { flex: 0 0 auto; min-height: 40px; padding: 6px 10px; font-size: .95rem; white-space: nowrap; }
  .sub-toggle { min-width: 28px; min-height: 40px; margin-left: -6px; }
  .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 230px; max-height: 70vh; overflow: auto;
    background: var(--surface); border: 1px solid var(--tan-line); border-top: 3px solid var(--gold); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); padding: 6px;
  }
  .nav-item.open > .sub-menu, .nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu { display: block; }
  .nav-search-text { display: none; }
  .nav-item-search .nav-link { min-width: 40px; padding: 6px 8px; }
}
@media (min-width: 1100px) {
  .nav-link { padding: 6px 13px; font-size: 1rem; }
  .brand-name { font-size: 1.6rem; }
  .brand-tag { font-size: .8rem; }
  .logo { width: 52px; height: 52px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%); color: var(--on-brand); }
.hero-photo { background-image: linear-gradient(100deg, color-mix(in srgb, var(--brand-dark) 92%, transparent) 0%, color-mix(in srgb, var(--brand) 75%, transparent) 50%, color-mix(in srgb, var(--brand) 35%, transparent) 100%), var(--hero-img); background-size: cover; background-position: center; }
.hero-art { position: absolute; right: -40px; bottom: 0; width: 60%; max-width: 560px; opacity: .55; pointer-events: none; }
.hero-inner { position: relative; padding-top: 30px; padding-bottom: 32px; }
.hero h1 { color: var(--on-brand); font-size: 2rem; margin-bottom: .2em; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.hero-sub { font-size: 1.05rem; max-width: 640px; color: var(--on-brand-soft); margin-bottom: 18px; }
.hero-search { display: flex; align-items: stretch; background: #fff; border-radius: 10px; padding: 5px; max-width: 760px; box-shadow: var(--shadow); border: 1px solid var(--tan-line); }
.hero-search-icon { display: none; align-items: center; padding: 0 6px 0 10px; color: var(--navy); }
.hero-search input { flex: 1 1 auto; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 8px 10px; min-height: 44px; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search input:focus-visible { outline: 3px solid var(--gold); border-radius: 6px; }
.hero-search .btn { flex: none; }
.hero-search.inline { margin: 8px 0 0; }
@media (min-width: 600px) { .hero-search-icon { display: inline-flex; } .hero h1 { font-size: 2.5rem; } .hero-inner { padding-top: 44px; padding-bottom: 48px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 2.9rem; } .hero-sub { font-size: 1.2rem; } }

/* ---------- stat tiles ---------- */
.stat-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0 22px; }
.stat-tile {
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  border: 1px solid var(--tan-line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 84px; overflow: hidden;
}
.tile-main { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: inherit; flex: 1 1 auto; }
a.tile-main:hover { background: #fffdf8; }
.tile-foot { padding: 6px 18px 10px; font-size: .8rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tile-foot .src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.tile-icon .ico { width: 28px; height: 28px; }
.tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.tile-value { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.tile-sub { font-size: .85rem; color: var(--ink-2); }
.tile-chev { color: var(--navy); margin-left: auto; opacity: .7; }
.tip { position: relative; display: inline-flex; color: var(--navy); cursor: help; margin-left: 4px; }
.tip .ico-sm { margin: 0; }
.tip::after {
  content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px; max-width: 80vw;
  background: var(--brand-dark); color: var(--on-brand); font-size: .8rem; line-height: 1.35; padding: 8px 10px; border-radius: 8px; box-shadow: var(--shadow);
  display: none;
}
.tip:hover::after, .tip:focus::after, .tip:focus-visible::after { display: block; }
@media (min-width: 600px) { .stat-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stat-row { grid-template-columns: repeat(4, 1fr); } .tile-value { font-size: 1.65rem; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--tan-line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 18px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; font-size: 1.15rem; background: var(--cream); color: var(--navy); border-bottom: 1px solid var(--tan-line); }
.card-head .ico { color: var(--navy); }
.card-navy .card-head { background: var(--brand); color: var(--on-brand); }
.card-navy .card-head .ico { color: var(--on-brand); }
.card-navy .card-head .ico { color: var(--gold); }
.card-body { padding: 16px 18px; }
.card-body > :last-child { margin-bottom: 0; }
.h-sm { font-size: 1rem; margin: 14px 0 8px; }
.h-section { font-size: 1.25rem; margin: 22px 0 12px; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }

.home-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.home-col { display: flex; flex-direction: column; }
@media (min-width: 820px) { .home-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .home-grid { grid-template-columns: 1fr 1.1fr 1.1fr; } }

/* schools list inside the card */
.school-list { list-style: none; margin: 0 0 10px; padding: 0; }
.school-list li { border-bottom: 1px solid var(--line); }
.school-list li:last-child { border-bottom: 0; }
.school-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ink); min-height: 56px; }
.school-row:hover strong { text-decoration: underline; }
.school-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.school-row-text strong { color: var(--navy); }
.school-row-text .muted { font-size: .85rem; }
.school-art { width: 64px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.school-art-svg .ico { width: 30px; height: 30px; }
.school-art-lg { width: 96px; height: 72px; }
.school-art-lg .ico { width: 40px; height: 40px; }
.school-art-xl { width: 120px; height: 90px; }
.school-art-xl .ico { width: 52px; height: 52px; }
.row-chev { color: var(--navy); opacity: .6; margin-left: auto; flex: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.badge-grade { background: var(--navy-soft); color: var(--navy); }
/* Letter grade colours: single-hue sequential ramp (A dark .. F light), colour-blind safe,
   independent of the brand palette, and the letter is always printed. Same ramp as the map. */
.grade-A { background: #082447; color: #fff; }
.grade-B { background: #1a5390; color: #fff; }
.grade-C { background: #3a8ccc; color: #fff; }
.grade-D { background: #86bfe9; color: #0f1e2e; }
.grade-F { background: #d9edfb; color: #0f1e2e; }
.badge-np { background: #fff; color: var(--ink-2); border: 1px dashed #9ca3af; font-weight: 500; }
.badge-soon { background: var(--gold-soft); color: var(--gold-ink-2); border: 1px solid var(--gold); font-size: .72rem; }
.badge-kind, .badge-cat { background: var(--cream); color: var(--ink-2); font-weight: 600; }
.badge-kind.kind-action { background: var(--navy-soft); color: var(--navy); }
.badge-money { background: var(--gold-soft); color: var(--gold-ink); }
.badge-status { background: var(--line); color: var(--ink-2); }
.status-scheduled { background: var(--navy-soft); color: var(--navy); }
.status-held { background: var(--ok-bg); color: var(--ok-ink); }
.status-cancelled { background: var(--err-bg); color: var(--err-ink); }
.badge-outcome { background: var(--line); color: var(--ink); }
.outcome-approved { background: var(--ok-bg); color: var(--ok-ink); }
.outcome-denied { background: var(--err-bg); color: var(--err-ink); }
.outcome-tabled, .outcome-withdrawn, .outcome-no_action { background: var(--warn-bg); color: var(--warn-ink); }

/* board / budget / meetings cards */
.board-card { display: flex; flex-direction: column; gap: 12px; }
.board-art { display: flex; align-items: center; justify-content: center; height: 110px; border-radius: 8px; background: linear-gradient(135deg, var(--cream), var(--tan-line)); color: var(--navy); }
.board-art .ico { width: 56px; height: 56px; }
.addr { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; }
.addr .ico-sm { margin-top: .25em; color: var(--navy); }
@media (min-width: 600px) { .board-card { flex-direction: row; } .board-art { width: 42%; height: auto; min-height: 120px; flex: none; } }
.next-meeting { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.next-meeting-text { display: flex; flex-direction: column; }
.next-date { font-size: 1.35rem; color: var(--navy); }
.next-time { font-size: 1.1rem; font-weight: 600; }
@media (min-width: 600px) { .next-meeting { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.agenda-list, .doc-list, .result-list, .plain, .year-list { list-style: none; margin: 0 0 10px; padding: 0; }
.agenda-list li, .doc-list li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.agenda-list li:last-child, .doc-list li:last-child { border-bottom: 0; }
.agenda-list .ico-sm, .doc-list .ico-sm { color: var(--navy); margin-top: .25em; }
.agenda-list a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.agenda-list a:hover strong { text-decoration: underline; }
.agenda-list strong { color: var(--navy); }
.agenda-list .muted { font-size: .85rem; }
.result-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.result-list li:last-child { border-bottom: 0; }
.year-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.plain.cols { columns: 2; margin-top: 14px; }
.plain li { padding: 4px 0; }

/* quick tiles */
.quick-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0 24px; }
.quick-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--tan-line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 72px; }
.quick-tile > .ico { width: 34px; height: 34px; color: var(--navy); }
.quick-tile > span { display: flex; flex-direction: column; }
.quick-tile strong { color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick-tile .muted { font-size: .85rem; }
a.quick-tile:hover { border-color: var(--tan); background: #fffdf8; }
.quick-soon { opacity: .8; background: var(--cream); }
@media (min-width: 600px) { .quick-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .quick-row { grid-template-columns: repeat(5, 1fr); } }

/* ---------- generic page parts ---------- */
.page-head { padding: 22px 0 10px; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 820px; }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 14px; }
.crumbs a { text-decoration: none; }
.school-head, .meeting-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.meeting-head { justify-content: space-between; }
.meeting-head .btn-stack { min-width: 240px; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }

.notice { background: var(--cream); border: 1px solid var(--tan-line); border-left: 4px solid var(--tan); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.notice-warn { background: var(--warn-bg); border-color: #f3d9b1; border-left-color: #d97706; color: var(--warn-ink); }
.notice-ok { background: var(--ok-bg); border-color: #bfe3c8; border-left-color: #16a34a; color: var(--ok-ink); }
.notice-err { background: var(--err-bg); border-color: #f1c2bd; border-left-color: var(--red); color: var(--err-ink); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--tan-line); background: var(--surface); color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 600; }
.pill:hover { background: var(--navy-soft); }
.pill.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: inset 0 -3px 0 var(--on-brand-accent); }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--cream); color: var(--navy); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--tan-line); }
table.data tbody th { font-weight: 600; }
table.data tr.row-np td, table.data tr.row-np th { color: var(--ink-2); }
table.data tr.row-np td:nth-child(2) { font-style: italic; }
table.data tr.row-district th, table.data tr.row-district td { background: var(--gold-soft); border-top: 2px solid var(--gold); font-weight: 700; }
.src { font-size: .88rem; }
.value-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.value-big { font-size: 1.6rem; font-weight: 800; color: var(--navy); }

/* chart on top, its table below it, at every screen width; minmax(0,1fr) keeps the column at page width */
.series-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.series-grid > * { min-width: 0; }
.breakdown-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.series-grid td, .series-grid th { overflow-wrap: anywhere; }
.chart { margin: 0; min-width: 0; }
.chart-title { font-size: .95rem; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.chart-canvas { position: relative; height: 220px; background: #fff; }
.chart-cap { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.notes { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.notes p { margin-bottom: .4em; }

.school-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .school-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .school-grid { grid-template-columns: repeat(3, 1fr); } }
.school-card { background: var(--surface); border: 1px solid var(--tan-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.school-card-link { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; color: var(--ink); height: 100%; }
.school-card-link:hover .school-card-name { text-decoration: underline; }
.school-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.school-card-name { color: var(--navy); font-size: 1.05rem; }
.school-card-stats { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; margin-top: 4px; }
.school-card-stats .ico-sm { color: var(--navy); }

.dataset-grid { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 820px) { .dataset-grid { grid-template-columns: 1fr 1fr; } .dataset-grid.planned { grid-template-columns: repeat(3, 1fr); } }
.dataset-card { margin: 0; display: flex; }
.dataset-link, .dataset-planned { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: var(--ink); width: 100%; }
.dataset-link > span:not(.tile-icon):not(.row-chev), .dataset-planned > span:not(.tile-icon) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dataset-link strong, .dataset-planned strong { color: var(--navy); font-size: 1.05rem; }
.dataset-planned { opacity: .85; }
.dataset-planned .tile-icon { background: var(--cream); color: var(--tan); }

/* filters */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-row label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--ink-2); flex: 1 1 140px; }
.filter-row label.grow { flex: 2 1 220px; }
.filter-row select, .filter-row input { min-height: 42px; padding: 6px 10px; font: inherit; color: var(--ink); border: 1px solid var(--tan); border-radius: 8px; background: #fff; }
.sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }

/* agenda items */
.section-title { margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--tan-line); }
.agenda-items { list-style: none; margin: 0; padding: 0; }
.agenda-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.agenda-item:target { background: var(--gold-soft); outline: 2px solid var(--gold); border-radius: 8px; padding: 12px; }
.item-head { display: flex; gap: 12px; }
.item-no { flex: none; min-width: 48px; font-weight: 700; color: var(--navy); background: var(--cream); border-radius: 6px; text-align: center; padding: 2px 6px; height: fit-content; }
.item-main { min-width: 0; flex: 1 1 auto; }
.item-title { font-size: 1.05rem; margin: 0 0 4px; color: var(--ink); }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.item-desc { margin-bottom: 6px; }
.item-plain { background: var(--cream); padding: 8px 10px; border-radius: 6px; }
.no-outcome { font-style: italic; }
.action { margin: 8px 0; padding: 10px 12px; background: #fafaf7; border: 1px solid var(--tan-line); border-radius: 8px; }
.action-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.action p { margin: 0 0 4px; }
.votes { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; }
.vote { font-weight: 700; }
.vote-yea { color: var(--ok-ink); }
.vote-nay { color: var(--err-ink); }
.vote-abstain, .vote-absent { color: var(--muted); }
.minutes-quote { margin: 6px 0 0; padding: 4px 0 4px 12px; border-left: 3px solid var(--tan); color: var(--ink-2); font-style: italic; }
.orig summary { cursor: pointer; color: var(--navy); }
.orig-text { white-space: pre-wrap; font-size: .82rem; background: var(--cream); padding: 8px 10px; border-radius: 6px; margin: 6px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-dark); color: var(--on-brand-line); border-top: 4px solid var(--gold); margin-top: auto; font-size: .9rem; }
.site-footer a { color: var(--on-brand); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: var(--on-brand); }
.footer-brand .wm-tld { color: var(--on-brand-accent); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-meta p { margin-bottom: 8px; }
.footer-meta .muted { color: var(--on-brand-muted); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .hero-search, .header-search, .nav-toggle, .pills, .filters, .btn, .skip, .row-chev, .tile-chev { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; text-shadow: none; }
  .hero-sub { color: #000; }
  .hero-art { display: none; }
  .card, .stat-tile, .quick-tile, .school-card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .card-head { background: none; border-bottom: 1px solid #999; }
  a { color: #000; text-decoration: none; }
  a.src::after, .doc-list a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .chart-canvas { height: auto; }
  .table-wrap { overflow: visible; }
}

/* Budget page */
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-track { display: inline-block; width: 90px; height: 10px; background: var(--line); border-radius: 5px; vertical-align: middle; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--navy); border-radius: 5px; }
details.parts { margin-top: 4px; font-weight: 400; }
details.parts summary { cursor: pointer; color: var(--navy); font-size: .85rem; }
details.parts ul { margin: 4px 0 0 18px; padding: 0; font-size: .85rem; }
@media print { details.parts { display: block; } details.parts > ul { display: block; } }

/* Community Voice and admin forms */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vote-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.vote-form legend { font-weight: 700; padding: 0 4px; }
.choice { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 600; }
.field-block { display: block; margin: 0 0 12px; font-weight: 600; }
.field-block input, .field-block textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.btn-row input[type=text] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; min-width: 220px; }
.wrap.narrow { max-width: 460px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; }

/* =====================================================================
   2026-11 look: closer to the owner's home-page mockup. Overrides above.
   ===================================================================== */
:root {
  --wrap: 1480px;
  --page: #f7f8fb;
  --card-line: #dfe3ea;
  --card-head: #eef1f6;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body { font-family: var(--font); background: var(--page); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.005em; }
.wrap { padding: 0 24px; }

/* header */
.site-header { border-bottom: 5px solid var(--gold); box-shadow: 0 2px 6px rgba(31, 41, 55, .06); }
.brand { gap: 14px; }
.logo { width: 56px; height: 56px; }
.logo { display: block; line-height: 0; }
.logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-sm { width: 34px; height: 34px; }
.brand-text { padding-left: 14px; border-left: 3px solid var(--gold); }
.brand-name { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.brand-tag { font-size: .82rem; color: var(--ink); font-weight: 500; line-height: 1.3; }
.brand-tag-2 { color: var(--ink-2); font-weight: 400; }
@media (min-width: 1100px) {
  .header-row { min-height: 112px; }
  .logo { width: 104px; height: 104px; margin: 4px 0; }
  .brand-name { font-size: 2.6rem; line-height: 1.05; }
  .brand-tag { font-size: 1.02rem; }
  .nav-link { font-size: 1.12rem; font-weight: 600; }
  .nav-item.active > .nav-link { border-radius: 10px; padding: 8px 18px; }
}
.footer-brand .logo-img { width: 32px; height: 32px; }

/* hero: navy text side, board office photo on the right behind a gold curve */
.hero { background: var(--brand-dark); }
.hero-split { min-height: 240px; }
.hero-photo-side { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; background-size: cover; background-position: center 40%; }
.hero-swoosh { position: absolute; top: 0; bottom: 0; right: calc(44% - 120px); width: 200px; height: 100%; }
.hero-split .hero-inner { z-index: 1; }
.hero-split .hero-sub, .hero-split .hero-search { max-width: 800px; }
.hero h1 { font-weight: 800; }
.hero-search { border: 2px solid var(--gold); border-radius: 12px; }
@media (max-width: 899px) {
  .hero-photo-side, .hero-swoosh { display: none; }
}
@media (min-width: 900px) { .hero-split .hero-inner { padding-right: calc(44% + 40px); padding-top: 40px; padding-bottom: 40px; } }
@media (min-width: 1100px) { .hero h1 { font-size: 2.6rem; } .hero-sub { font-size: 1.2rem; } }
@media (min-width: 1700px) { .hero h1 { font-size: 3.2rem; } }

/* stat tiles */
.stat-row { gap: 16px; margin: 16px 0 24px; }
.stat-tile { border-color: var(--card-line); border-radius: 12px; }
.tile-main { padding: 18px 20px; gap: 18px; }
a.tile-main:hover { background: #fafbfe; }
.tile-icon { background: none; width: auto; height: auto; color: var(--navy); }
.tile-icon .ico { width: 56px; height: 56px; }
.stat-row .stat-tile:nth-child(4) .tile-icon { color: var(--gold); }
.tile-value { font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.tile-sub { font-size: .98rem; color: var(--ink); }
.tile-foot { border-top-color: #eef0f4; font-size: .75rem; color: var(--muted); }
.tile-foot a { color: var(--ink-2); }

/* cards */
.card { border-color: var(--card-line); border-radius: 12px; }
.card-head { background: var(--card-head); border-bottom-color: var(--card-line); font-size: 1.45rem; padding: 14px 20px; }
.card-head .ico { width: 1.5em; height: 1.5em; }
.card-navy .card-head { background: var(--brand-dark); }
.card-body { padding: 16px 20px; }
@media (min-width: 1100px) { .home-grid { grid-template-columns: 1fr 1.05fr 1.05fr; gap: 20px; } }

/* school rows with photos */
.school-row { gap: 14px; padding: 9px 0; }
.school-art { width: 96px; height: 54px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.school-row-text strong { font-size: 1.08rem; }
.school-row-text .muted { color: var(--ink-2); }
.badge-grade { padding: 3px 12px; font-size: .88rem; }
.card-schools .btn-block { margin-top: 6px; font-size: 1.08rem; }

/* board card */
.board-photo { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
@media (min-width: 600px) { .board-photo { width: 48%; height: auto; min-height: 140px; flex: none; } }

/* budget card */
.budget-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.budget-label { display: block; font-weight: 500; }
.budget-total { display: block; font-size: 2.3rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.btn-stack-sm { gap: 6px; }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: .9rem; justify-content: flex-start; }
.share-bar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: var(--line); }
.share-bar span { display: block; height: 100%; }
.share-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 8px 0 6px; font-size: .85rem; }
.share-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* meetings card */
.next-date { font-size: 1.5rem; color: var(--ink); }
.agenda-list strong { color: var(--ink); }

/* quick tiles */
.quick-tile { border-color: var(--card-line); border-radius: 12px; padding: 16px 18px; gap: 14px; }
.quick-tile > .ico { width: 42px; height: 42px; }
.quick-tile strong { font-size: 1.12rem; color: var(--ink); }
a.quick-tile:hover { border-color: var(--navy); background: #fafbfe; }

/* softer neutral backgrounds where the warm cream was used */
.pill { border-color: var(--card-line); }
.notice { background: #f4f6fa; border-color: var(--card-line); border-left-color: var(--navy); }
.school-art, .board-art { background: var(--card-head); }

/* school page photo banner */
.school-banner { min-height: 300px; margin: 10px 0 18px; padding: 28px 28px; border-radius: 12px; background-size: cover; background-position: center 62%; color: var(--on-brand); align-items: flex-end; }
.school-banner h1 { color: var(--on-brand); font-size: 2.3rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.school-banner .lead { color: var(--on-brand-soft); margin: 0; }
.board-photo-wide { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
@media (max-width: 599px) {
  .logo { width: 44px; height: 44px; }
  .brand-text { padding-left: 10px; }
  .brand-name { font-size: 1.25rem; }
  .brand-tag-2 { display: none; }
  .school-art { width: 72px; height: 42px; }
  .school-banner { min-height: 170px; padding: 18px; }
  .school-banner h1 { font-size: 1.7rem; }
}

/* =====================================================================
   2026-11 fixes 2: stat tiles line up, budget tables, school page dashboard,
   candidate page, candidate notices, footer. Overrides above.
   ===================================================================== */
/* stat tiles: one layout for every tile (main area + footer strip), values on one line */
.stat-tile { display: grid; grid-template-rows: 1fr auto; overflow: visible; }
.tile-main { align-items: flex-start; padding: 18px 18px 12px; gap: 14px; border-radius: 12px 12px 0 0; }
.tile-icon { margin-top: 2px; }
.tile-icon .ico { width: 48px; height: 48px; }
.tile-text { gap: 2px; }
.tile-value { font-size: 1.8rem; white-space: nowrap; line-height: 1.15; }
.tile-sub { font-size: .92rem; line-height: 1.3; }
.tile-chev { margin-top: 9px; }
.tile-foot { min-height: 38px; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 6px 18px 8px; border-top: 1px solid #eef0f4; overflow: hidden; }
.tile-foot .src { flex: 0 1 auto; min-width: 0; }
.tile-foot .src .ico-xs { vertical-align: -.1em; }
.tile-foot-empty { border-top-color: transparent; }
.tile-foot .tip { flex: none; }
.tile-foot .tip::after { right: auto; left: 0; }
@media (min-width: 1024px) and (max-width: 1299px) {
  .tile-icon .ico { width: 40px; height: 40px; }
  .tile-value { font-size: 1.55rem; }
  .tile-sub { font-size: .86rem; }
  .tile-main { gap: 12px; padding: 16px 14px 10px; }
  .tile-foot { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 1300px) { .tile-value { font-size: 1.9rem; } }
/* header: the big brand only when there is room for it beside the menu */
.brand-tag, .brand-name { white-space: nowrap; }
@media (min-width: 1100px) {
  .header-row { min-height: 96px; }
  .logo { width: 72px; height: 72px; }
  .brand-name { font-size: 1.9rem; }
  .brand-tag { font-size: .9rem; }
  .nav-link { font-size: 1rem; padding: 6px 11px; }
  .nav-item.active > .nav-link { padding: 8px 14px; }
}
@media (min-width: 1380px) {
  .header-row { min-height: 112px; }
  .logo { width: 104px; height: 104px; }
  .brand-name { font-size: 2.6rem; }
  .brand-tag { font-size: 1.02rem; }
  .nav-link { font-size: 1.12rem; padding: 6px 13px; }
  .nav-item.active > .nav-link { padding: 8px 18px; }
}
@media (min-width: 820px) {
  .site-nav { flex: 0 1 auto; min-width: 0; }
  .nav-list { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
}
@media (min-width: 1100px) and (max-width: 1379px) {
  .logo { width: 60px; height: 60px; }
  .brand-name { font-size: 1.6rem; }
  .brand-tag { font-size: .82rem; }
  .nav-link { font-size: .95rem; padding: 6px 8px; }
  .nav-item.active > .nav-link { padding: 7px 11px; }
}
@media (min-width: 820px) { .brand { margin-right: 16px; } }

/* budget tables: give the description column the room, keep amount and share on one line */
table.fin th[scope=row] { width: auto; font-weight: 600; }
table.fin th[scope=row] .muted { font-weight: 400; display: block; max-width: 46ch; }
table.fin td.num { width: 1%; }
table.fin td.share { width: 1%; white-space: nowrap; }
table.fin .bar-track { width: 110px; }
/* Detail lines: one per row, name on the left and the amount on the right, so nothing is squeezed into a narrow
   column. Two columns only when each column can be at least 16em wide (wide screens, wide cards). */
table.fin details.parts ul { list-style: none; margin: 6px 0 0; padding: 0; columns: 16em 2; column-gap: 32px; }
/* the Details list has its own full-width row under its category, so it uses the whole table width */
table.fin tr.has-parts > th, table.fin tr.has-parts > td { border-bottom: 0; }
table.fin tr.parts-row > td { padding-top: 0; }
@media (min-width: 600px) and (max-width: 1279px) { table.fin .bar-track { width: 56px; } }
table.fin tr.parts-row summary { font-weight: 400; }
table.fin details.parts li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
                             padding: 3px 0; border-bottom: 1px dotted #d6d9e0; }
table.fin details.parts .part-name { min-width: 0; }
table.fin details.parts .part-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { table.fin .bar-track { width: 70px; } }
.fin-grid { gap: 20px; }

.tile-foot-empty { min-height: 0; padding: 0 0 8px; border-top: 0; }

/* school page: jump links, at-a-glance tiles, two-column board list */
.jump-nav { align-items: center; margin: 0 0 16px; }
.jump-label { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.jump-nav .pill { min-height: 32px; padding: 2px 11px; font-size: .85rem; }
.stat-row-school { margin-top: 0; }
@media (min-width: 1024px) { .stat-row-school { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1380px) { .stat-row-school { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.card-head-link { margin-left: auto; font-size: .8rem; font-weight: 500; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.card-head-link:hover { text-decoration: underline; color: var(--navy); }
.project-name { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 18px; }
.project-name:first-of-type { margin-top: 6px; }
table.projects th[scope=row] { white-space: nowrap; }
@media (min-width: 900px) {
  .agenda-cols { columns: 2; column-gap: 32px; }
  .agenda-cols li { break-inside: avoid; }
}
.card:target, .series:target { scroll-margin-top: 16px; }
section[id] { scroll-margin-top: 16px; }

/* ---------- candidate notice (home page) and nav/footer entries ---------- */
.cand-notice { display: flex; gap: 18px; align-items: flex-start; margin: 4px 0 24px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--card-line); border-left: 6px solid var(--navy); border-radius: 12px; box-shadow: var(--shadow); }
.cand-notice-photo { width: 72px; height: 86px; object-fit: cover; border-radius: 8px; flex: none; border: 2px solid var(--gold); }
.cand-notice-text { min-width: 0; }
.cand-notice-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8a1c1c; font-weight: 700; margin: 0 0 2px; }
.cand-notice h2 { font-size: 1.15rem; margin: 0 0 6px; }
.cand-notice p { margin: 0 0 6px; max-width: 78ch; }
.btn-cand-notice { background: var(--brand); border-color: var(--brand); color: var(--on-brand); min-height: 38px; margin-top: 6px; }
.btn-cand-notice:hover { background: var(--brand-dark); color: var(--on-brand); }
@media (max-width: 599px) { .cand-notice { flex-direction: column; gap: 10px; } }
.nav-item-candidate .nav-link { color: var(--ink-2); font-weight: 500; }
.nav-item-candidate.active > .nav-link { background: var(--brand-dark); }
@media (min-width: 820px) {
  .nav-item-candidate { margin-left: 4px; padding-left: 6px; border-left: 1px solid var(--card-line); }
}
.footer-candidate a { color: var(--on-brand); font-weight: 600; }

/* ---------- candidate page ---------- */
.page-candidate { --cand-red: #b3261e; --cand-red-soft: #fbeae8; }
.cand-notice-bar { background: var(--cand-red-soft); border-bottom: 1px solid #f1c9c4; color: #5c1a14; font-size: .9rem; }
.cand-notice-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.cand-notice-bar .ico-sm { color: var(--cand-red); margin: 0; }
.cand-notice-bar a { color: #5c1a14; }
.cand-hero { background: linear-gradient(110deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light-2) 100%); color: var(--on-brand); border-bottom: 6px solid var(--cand-red); }
.cand-hero-inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.cand-eyebrow { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-brand-faint); margin: 0 0 4px; font-weight: 600; }
.cand-hero h1 { color: var(--on-brand); font-size: 2.6rem; margin: 0 0 6px; line-height: 1.05; }
.cand-tagline { font-size: 1.25rem; font-weight: 700; color: var(--on-brand); margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--cand-red); }
.cand-intro { font-size: 1.05rem; color: var(--on-brand-soft); max-width: 64ch; }
.cand-election-line { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy-dark); border-radius: 999px; padding: 6px 14px 6px 10px; font-size: .95rem; margin: 4px 0 16px; }
.cand-election-line .ico-sm { color: var(--cand-red); margin: 0; }
.cand-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-cand { background: var(--cand-red); border-color: var(--cand-red); color: #fff; }
.btn-cand:hover { background: #8f1d17; border-color: #8f1d17; color: #fff; }
.btn-cand-outline { background: transparent; border-color: var(--on-brand); color: var(--on-brand); }
.btn-cand-outline:hover { background: color-mix(in srgb, var(--on-brand) 12%, transparent); color: var(--on-brand); }
.cand-portrait { margin: 0; justify-self: center; }
.cand-portrait img { display: block; width: 240px; height: auto; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@media (min-width: 760px) {
  .cand-hero-inner { grid-template-columns: 1fr 300px; padding-top: 44px; padding-bottom: 44px; }
  .cand-portrait img { width: 300px; }
}
@media (min-width: 1100px) { .cand-hero h1 { font-size: 3.2rem; } .cand-hero-inner { grid-template-columns: 1fr 340px; } .cand-portrait img { width: 340px; } }
.cand-body { padding-top: 18px; }
.cand-card .card-head { background: var(--card-head); }
.cand-card .card-head .ico { color: var(--cand-red); }
.cand-prose { max-width: 80ch; font-size: 1.02rem; }
.cand-prose p { margin-bottom: 1em; }
.cand-quote { margin: 18px 0 4px; padding: 14px 20px; border-left: 5px solid var(--cand-red); background: var(--cand-red-soft); border-radius: 0 10px 10px 0; }
.cand-quote p { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--navy-dark); }
.cand-qual-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 10px; }
@media (min-width: 820px) { .cand-qual-grid { grid-template-columns: repeat(3, 1fr); } }
.cand-qual { background: #f7f8fb; border: 1px solid var(--card-line); border-radius: 10px; padding: 14px 16px; }
.cand-qual h3 { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--cand-red); }
.cand-qual h3 .ico-sm { color: var(--cand-red); margin: 0; }
.cand-list { list-style: none; margin: 0; padding: 0; }
.cand-list li { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cand-list li:last-child { border-bottom: 0; }
.cand-list strong { color: var(--navy-dark); }
.cand-list span { font-size: .92rem; color: var(--ink-2); }
.cand-h3 { display: flex; align-items: center; gap: 6px; font-size: 1.2rem; margin: 22px 0 6px; }
.cand-h3 .ico-sm { color: var(--cand-red); margin: 0; }
.cand-h4 { font-size: .95rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 8px; }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cert { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 10px; background: var(--surface); border: 1px solid var(--card-line); border-radius: 10px; }
.cert img { width: 110px; height: 110px; object-fit: contain; }
.cert-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); }
.cert-mark .ico-sm { margin: 0; width: 1.4em; height: 1.4em; }
.cert-name { font-size: .88rem; font-weight: 600; color: var(--navy-dark); line-height: 1.3; }
.cert-text { flex-direction: row; text-align: left; padding: 10px 12px; }
.priority-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: none; }
@media (min-width: 700px) { .priority-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .priority-grid { grid-template-columns: repeat(5, 1fr); } }
.priority { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; background: #f7f8fb; border: 1px solid var(--card-line); border-top: 5px solid var(--navy); border-radius: 10px; }
.priority:nth-child(even) { border-top-color: var(--cand-red); }
.priority-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.priority:nth-child(even) .priority-icon { background: var(--cand-red); }
.priority-icon .ico { width: 30px; height: 30px; }
.priority-no { position: absolute; top: 10px; right: 12px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.priority h3 { font-size: 1.05rem; margin: 0; color: var(--navy-dark); }
.priority p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.cand-checklist { list-style: none; margin: 0 0 1em; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 700px) { .cand-checklist { grid-template-columns: 1fr 1fr; } }
.cand-checklist li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; background: #f7f8fb; border: 1px solid var(--card-line); border-radius: 8px; }
.cand-checklist .ico-sm { color: var(--cand-red); margin-top: .2em; flex: none; }
.cand-facts { max-width: 520px; }
.cand-facts dd strong { color: var(--cand-red); }
.cand-contact { list-style: none; margin: 0 0 1em; padding: 0; }
.cand-contact li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cand-contact .ico-sm { color: var(--navy); margin: 0; }
@media print { .cand-hero { background: none; color: #000; border-bottom: 2px solid #000; } .cand-hero h1, .cand-tagline, .cand-intro, .cand-eyebrow { color: #000; } .cand-cta { display: none; } }
@media (min-width: 1380px) { .nav-link { font-size: 1.04rem; padding: 6px 10px; } .nav-item.active > .nav-link { padding: 8px 14px; } }
@media (max-width: 759px) { .cand-portrait { order: -1; } .cand-portrait img { width: 200px; } .cand-hero h1 { font-size: 2.2rem; } }
@media (max-width: 599px) { .brand-tag { overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .brand-text { min-width: 0; overflow: hidden; } }

/* ---- 2026-11 certificate gallery + viewer (candidate page) ---- */
.cert-hint { margin: 4px 0 0; }
.cert-grid:has(.cert-photo) { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cert-photo { padding: 0; overflow: hidden; transition: box-shadow .15s, transform .15s, border-color .15s; }
.cert-photo:hover, .cert-photo:focus-within { border-color: var(--gold, #c9a227); box-shadow: 0 6px 18px rgba(16, 32, 72, .14); transform: translateY(-2px); }
.cert-open { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; height: 100%; padding: 10px 10px 12px; color: inherit; text-decoration: none; }
.cert-open:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; border-radius: 10px; }
.cert-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--card-line); border-radius: 6px; overflow: hidden; }
.cert-photo .cert-frame img { width: 100%; height: 100%; object-fit: contain; }
.cert-photo .cert-name { text-align: center; }
.cert-view { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--navy); }
.cert-view .ico-xs { margin: 0; }

.cert-viewer { width: min(1100px, 96vw); max-width: 96vw; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #0f1b33; color: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.cert-viewer::backdrop { background: rgba(8, 14, 30, .78); }
.cert-viewer[open] { display: flex; flex-direction: column; }
.cv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 3px solid var(--gold, #c9a227); }
.cv-title { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.cv-count { color: #b9c3d9; font-weight: 400; font-size: .9rem; }
.cv-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px 56px; min-height: 0; flex: 1 1 auto; }
.cv-img { display: block; max-width: 100%; max-height: calc(94vh - 130px); object-fit: contain; background: #fff; border-radius: 6px; }
.cv-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cv-btn:hover, .cv-btn:focus-visible { background: var(--gold, #c9a227); color: #0f1b33; }
.cv-close { font-size: 1.6rem; flex: none; }
.cv-prev, .cv-next { position: absolute; top: 50%; transform: translateY(-50%); }
.cv-prev { left: 8px; }
.cv-next { right: 8px; }
.cv-btn[hidden] { display: none; }
.cv-foot { margin: 0; padding: 0 16px 12px; text-align: center; font-size: .85rem; }
.cv-foot a { color: #e7d27a; }
@media (max-width: 640px) {
  .cert-grid:has(.cert-photo) { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cert-open { padding: 8px; }
  .cv-stage { padding: 10px 8px 52px; }
  .cv-prev, .cv-next { top: auto; bottom: 6px; transform: none; }
  .cv-prev { left: calc(50% - 50px); }
  .cv-next { right: calc(50% - 50px); }
  .cv-img { max-height: calc(94vh - 170px); }
}
.cert-grid:has(.cert-photo) .cert-text { flex-direction: column; justify-content: center; text-align: center; }
/* school logos beside degrees */
.cand-list li.edu-item { flex-direction: row; align-items: center; gap: 12px; }
.edu-logo { flex: none; width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--card-line); border-radius: 8px; padding: 4px; }
.edu-text { display: flex; flex-direction: column; gap: 1px; }
.cand-list .edu-text span { font-size: .92rem; color: var(--ink-2); }
.cand-list .edu-text strong { color: var(--navy-dark); }

/* label cells added by js/site.js: hidden except in the phone layout below */
.cell-l { display: none; }

/* ---- 2026-11 phones: data tables become stacked cards (no sideways scrolling) ----
   js/site.js labels each cell with its column heading and adds .stack. Desktop is unchanged. */
@media (max-width: 720px) {
  .table-wrap:has(> table.data.stack) { overflow: visible; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack th, table.data.stack td { display: block; width: auto; }
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.data.stack tbody tr { margin: 0 0 10px; padding: 8px 12px; background: var(--surface, #fff); border: 1px solid var(--card-line, var(--line)); border-radius: 10px; }
  table.data.stack tbody th, table.data.stack tbody td { border: 0; padding: 5px 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  table.data.stack tbody .cell-first { font-size: 1rem; font-weight: 700; color: var(--navy-dark, var(--navy)); padding: 2px 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  table.data.stack tbody .cell-first .muted, table.data.stack tbody .cell-first details { font-weight: 400; }
  table.data.stack tbody .cell-lv { display: flex; gap: 10px; align-items: baseline; }
  table.data.stack .cell-l { display: block; flex: 0 0 36%; font-size: .75rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; color: var(--ink-2); text-transform: uppercase; overflow-wrap: anywhere; }
  table.data.stack .cell-v { flex: 1 1 auto; min-width: 0; }
  table.data.stack tbody tr.has-parts { margin-bottom: 0; border-bottom: 0; border-radius: 10px 10px 0 0; }
  table.data.stack tbody tr.parts-row { margin-top: 0; border-top: 0; border-radius: 0 0 10px 10px; padding-top: 0; }
  table.data.stack tbody tr.parts-row .cell-first { font-size: inherit; font-weight: 400; color: inherit; border-bottom: 0; padding: 0; margin: 0; }
  table.data.stack tbody .cell-empty { display: none; }
  table.data.stack td.num, table.data.stack th.num { text-align: left; }
  table.data.stack td.share { width: auto; }
  table.data.stack .bar-track { width: 110px; }
  table.data.stack tr.row-district { background: var(--gold-soft); border-color: var(--gold); }
  table.data.stack tr.row-district th, table.data.stack tr.row-district td { background: none; border-top: 0; }
  table.data.stack tr.row-district .cell-first { border-bottom-color: var(--gold); }
  table.data.stack details.parts ul { margin-left: 16px; }
}

/* folded long tables (js/site.js, data-show) */
table.rows-folded tr.row-more { display: none !important; }
.btn-more { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 12px; padding: 6px 14px; border: 1px solid var(--tan-line, var(--line)); border-radius: 999px; background: var(--cream, #fff); color: var(--navy); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.btn-more::after { content: "\25BE"; font-size: .8em; }
.btn-more[aria-expanded="true"]::after { content: "\25B4"; }
.btn-more:hover, .btn-more:focus-visible { background: var(--gold-soft, #fbf1d2); }

/* school cards: principal + front-office phone strip */
.school-card { display: flex; flex-direction: column; }
.school-card-link { flex: 1 1 auto; }
.school-card-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 9px 14px 11px; border-top: 1px solid var(--line); font-size: .88rem; }
.sc-contact-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.sc-contact-item .ico-sm { color: var(--navy); margin: 0; flex: none; }
.sc-lbl { font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); margin-right: 2px; }
.school-card-contact a { font-weight: 600; white-space: nowrap; }

/* Dataset pages: all-schools chart, legend and one small chart per school */
.trend-chart { min-width: 0; }
.trend-canvas { height: 340px; }
@media (max-width: 720px) { .trend-canvas { height: 280px; } }
.trend-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.trend-key { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: .85rem; line-height: 1.3; color: inherit; cursor: pointer; max-width: 100%; text-align: left; }
.trend-key.off { opacity: .45; text-decoration: line-through; }
.trend-sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; flex: none; }
.trend-key-district .trend-sw { height: 0; border-radius: 0; }
.trend-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .trend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trend-small { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.trend-small .chart-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.trend-small .chart-title a { overflow-wrap: anywhere; }
.trend-latest { font-weight: 400; color: var(--muted); font-size: .85rem; }
.trend-small-canvas { height: 170px; }
nav.pills-folded .pill-more { display: none !important; }
table.data tr.row-state th, table.data tr.row-state td { background: #f3f4f6; font-weight: 600; border-top: 1px dashed #9ca3af; }
@media (max-width: 720px) {
  table.data.stack tr.row-state { background: #f3f4f6; border-color: #9ca3af; }
  table.data.stack tr.row-state th, table.data.stack tr.row-state td { background: none; border-top: 0; }
}
.chart-compare-note { margin-top: 2px; }

/* At-a-glance tiles: a long value ("13.3 students per teacher") must wrap, not widen every tile past the screen */
.stat-row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile-value { white-space: normal; overflow-wrap: anywhere; }


/* First-visit notice (partials/footer.php, js/site.js) */
dialog.site-notice { max-width: 34rem; width: calc(100% - 32px); border: 0; border-top: 5px solid var(--gold, #e8b33a); border-radius: 12px;
                     padding: 22px 24px 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, .35); color: var(--ink, #1f2937); }
dialog.site-notice::backdrop { background: rgba(15, 23, 42, .55); }
dialog.site-notice h2 { margin: 0 0 10px; font-size: 1.3rem; color: var(--navy-dark, var(--navy)); }
dialog.site-notice p { margin: 0 0 10px; line-height: 1.5; }
.site-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.site-notice-actions .btn { display: inline-block; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer;
                            border: 2px solid var(--brand); background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; }
.site-notice-actions .btn-ghost { background: #fff; color: var(--navy); }
@media (max-width: 480px) { .site-notice-actions .btn { flex: 1 1 100%; text-align: center; } }


/* Facility records (budget page filters, school page tables) */
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 8px 0 12px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 700; color: var(--ink-2); min-width: 0; }
.filters select, .filters input { font: inherit; font-weight: 400; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; max-width: 16rem; }
.filters input[type="search"] { min-width: 12rem; }
table.facilities td, table.facilities th { vertical-align: top; }
table.facility-matrix td.num, table.facility-matrix th.num { white-space: nowrap; }
@media (max-width: 599px) { .filters label { flex: 1 1 45%; } .filters select, .filters input { max-width: none; width: 100%; } }
@media (max-width: 599px) {
  table.data.stack.facility-years tbody .cell-l, table.data.stack.facility-matrix tbody .cell-l { flex-basis: 50%; }
  table.data.stack.facility-years tbody td.num, table.data.stack.facility-matrix tbody td.num { text-align: left; }
  table.data.stack.facility-matrix tbody td.cell-empty { display: none; }
}

/* ---- 2026-11 header subtitle "Independent School Data & Transparency": wraps on phones instead of being cut off ---- */
@media (max-width: 1099px) { .brand-tag { white-space: normal; max-width: 15em; line-height: 1.2; } }
@media (min-width: 600px) { .brand, .brand-text { flex-shrink: 0; } }
@media (max-width: 599px) {
  .brand-text { overflow: visible; }
  .brand-tag { white-space: normal; overflow: visible; text-overflow: clip; max-width: 15em; font-size: .74rem; line-height: 1.2; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.12rem; }
  .brand-text { padding-left: 8px; }
  .logo { width: 40px; height: 40px; }
}
@media (max-width: 374px) { .brand-name { font-size: 1.02rem; } }
@media (max-width: 350px) {
  .brand-name { font-size: 1rem; }
  .nav-toggle-label { display: none; }
}

/* ---- footer logo: fixed size at every width (the larger header .logo sizes were stretching it) ---- */
.footer-brand .logo, .footer-brand .logo.logo-sm { width: 56px; height: 56px; flex: none; }
.footer-brand .logo-img { width: 100%; height: 100%; }
.footer-brand { gap: 12px; }

/* ---- 2026-11 meetings: scheduled-but-no-agenda state, removed items, admin sync panel ---- */
.next-meeting-text .agenda-pending { margin-top: 6px; align-self: flex-start; white-space: normal; text-align: left; line-height: 1.3; }
.removed-items { margin-top: 14px; }
.removed-items summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.next-committee { margin-top: 8px; color: var(--ink-2); }

/* small figure row used inside summary cards (budget page) */
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.mini-stats div { display: grid; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.mini-stats strong { font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.mini-stats span { font-size: .85rem; color: var(--ink-2); }
.budget-mini-list { margin: 0 0 12px; padding-left: 1.2em; font-size: .93rem; } .budget-mini-list li { margin-bottom: 6px; } .budget-mini-list strong { white-space: nowrap; }
.budget-ct .ct-bar-row { grid-template-columns: 1fr; } @media (min-width: 560px) { .budget-ct .ct-bar-row { grid-template-columns: minmax(120px, 42%) 1fr 7.5em; } }

/* optional multi-colour stripe under the header and above the footer (set by a colour scheme) */
.site-header, .site-footer { border-image: var(--stripe) 1; }

/* Admin → Data integrity (pages/admin_qa.php) and the document record page (pages/document.php) */
.qa-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 10px 0 14px; }
.qa-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.qa-num { font-size: 1.45rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.qa-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-bottom: 12px; font-size: .9rem; }
.qa-filters label { display: grid; gap: 2px; }
.qa-finding { border: 1px solid var(--line); border-left: 5px solid #9ca3af; border-radius: 8px; margin: 8px 0; background: var(--surface); }
.qa-finding.sev-high { border-left-color: #b91c1c; }
.qa-finding.sev-medium { border-left-color: #d97706; }
.qa-finding > summary { cursor: pointer; padding: 10px 12px; list-style-position: inside; }
.qa-sev { display: inline-block; min-width: 4.2em; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #374151; }
.sev-high .qa-sev { color: #b91c1c; } .sev-medium .qa-sev { color: #92400e; }
.qa-body { padding: 0 12px 12px; }
.qa-dl { display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0 0 10px; }
.qa-dl dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.qa-dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.qa-dl .qa-wide { grid-column: 1 / -1; }
.qa-actions { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.qa-act { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; }
.qa-act .qa-note { flex: 1 1 260px; min-width: 0; }
.qa-act .qa-val { width: 13em; }
.btn-danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.doc-dl { margin-top: 14px; }
.qa-cells { margin: 6px 0; font-size: .85rem; max-width: 640px; }
.qa-cells td, .qa-cells th { padding: 2px 8px; }

/* Admin -> Traffic */
.traffic-chart { margin: 14px 0 0; }
.traffic-canvas { position: relative; height: 300px; }
.traffic-wide .traffic-canvas { height: 320px; }
.traffic-grid { display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-top: 8px; }
.traffic-grid .traffic-canvas { height: 340px; }
.traffic-schools .traffic-canvas { height: 460px; }
