:root {
  --bg: #f7f6f3; --card: #fff; --fg: #1c1917; --muted: #6b645e; --rule: #e7e4df; --rule-strong: #d6d2cb;
  --accent: #0f3d73; --body: var(--accent);
  --pass: #1f7a4d; --refer: #1d5fb0; --file: #6b645e; --fail: #b8324f; --neutral: #6d45b8; --live: #15803d;
  --shadow: 0 1px 2px rgb(28 25 23 / .04), 0 10px 30px -16px rgb(28 25 23 / .22);
  --header-h: 60px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0c; --card: #1a1817; --fg: #f5f5f4; --muted: #a8a29e; --rule: #2b2826; --rule-strong: #3b3734;
    --accent: #93c5fd;
    --pass: #6fcf9b; --refer: #7fb0f0; --file: #a8a29e; --fail: #f08aa0; --neutral: #b99af0; --live: #6fcf9b;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -16px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---- site header ------------------------------------------------------ */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; color: var(--accent); stroke-width: 2; }
.brand b { font-weight: 700; }
.bar nav { display: flex; gap: 4px; }
.bar nav a {
  padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
}
.bar nav a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.bar nav a[aria-current] { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.search { margin-left: auto; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input {
  width: 220px; padding: 7px 12px 7px 34px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card); color: var(--fg); font: inherit; font-size: 14px; transition: width .2s ease, border-color .15s ease;
}
.search input:focus { outline: none; border-color: var(--accent); width: 280px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search.big { margin: 20px 0 0; gap: 8px; }
.search.big input { width: 100%; max-width: 520px; padding: 12px 16px; font-size: 16px; border-radius: 12px; }
.search.big input:focus { width: 100%; }

/* ---- hero ------------------------------------------------------------- */
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: 38px; font-weight: 700; letter-spacing: -.025em; }
.hero p { margin-top: 10px; font-size: 18px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

/* ---- filter chips ------------------------------------------------------ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 20px; }
.chips a {
  padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
  font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--muted); white-space: nowrap;
}
.chips a:hover { color: var(--fg); border-color: var(--rule-strong); }
.chips a[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

[hidden] { display: none !important; }
mark { background: color-mix(in srgb, #f5c242 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (prefers-color-scheme: dark) { mark { background: color-mix(in srgb, #f5c242 30%, transparent); } }

/* ---- day groups -------------------------------------------------------- */
.day { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.day:last-of-type { padding-bottom: 56px; }
.date { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; line-height: 1; gap: 2px; }
.date .dow { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.date .num { font-size: 44px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.date .mon { font-size: 14px; color: var(--muted); }
.date .rel { margin-top: 10px; justify-self: start; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 12px; font-weight: 600; }
.date[data-today] .num { color: var(--accent); }
.meetings { display: grid; gap: 14px; min-width: 0; }

/* ---- meeting card -------------------------------------------------------- */
.meeting {
  position: relative; display: grid; gap: 10px; padding: 18px 20px 18px 24px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 1px 2px rgb(28 25 23 / .03);
  overflow: hidden;
}
.meeting::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--body); }
.meeting header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.meeting h2 { font-size: 19px; font-weight: 650; }
.meeting h2 a { text-decoration: none; }
.meeting h2 a:hover { color: var(--body); }
.meeting .time { flex: none; font-size: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.meeting.compact { gap: 8px; }
.status-cancelled h2, .status-cancelled .time, .status-cancelled .where { color: var(--muted); }
.status-cancelled h2 a { text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.status-cancelled::before { background: var(--rule-strong); }
.status-live { box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }

.pill { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.cancelled { background: color-mix(in srgb, var(--fail) 12%, transparent); color: var(--fail); }
.pill.live { background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live); }
.pill.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14.5px; color: var(--muted); }
.where svg { width: 16px; height: 16px; flex: none; }
.where .note { font-style: italic; }
.where .note:not(:first-child)::before { content: "·"; margin-right: 8px; font-style: normal; }

.summary { font-size: 15.5px; line-height: 1.55; text-wrap: pretty; max-width: 72ch; }
.summary.lede { font-size: 17px; line-height: 1.55; }
.preview { display: grid; gap: 6px; margin-top: 2px; }
.preview li { font-size: 14.5px; line-height: 1.45; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.file {
  display: inline-block; padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--muted); text-decoration: none; vertical-align: 1px;
}
a.file:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 10%, transparent); }
.preview .file { margin-right: 4px; }
.meeting .more { font-size: 14px; font-weight: 500; justify-self: start; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--card); color: var(--fg); font-size: 13.5px; font-weight: 500; text-decoration: none; line-height: 1.2; cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.btn:hover { border-color: var(--fg); }
.btn small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.btn.primary { background: var(--body); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.quiet { border-color: transparent; color: var(--muted); background: transparent; }
.btn.quiet:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0f0d0c; } }

/* ---- outcome tallies ---------------------------------------------------- */
.tally { display: flex; flex-wrap: wrap; gap: 6px; }
.tally li { padding: 4px 10px; border-radius: 999px; font-size: 13px; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--muted); }
.tally li b { font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.tally .tone-pass { background: color-mix(in srgb, var(--pass) 13%, transparent); color: var(--pass); }
.tally .tone-pass b { color: var(--pass); }
.tally .tone-refer { background: color-mix(in srgb, var(--refer) 13%, transparent); color: var(--refer); }
.tally .tone-refer b { color: var(--refer); }
.tally .tone-fail { background: color-mix(in srgb, var(--fail) 13%, transparent); color: var(--fail); }
.tally .tone-fail b { color: var(--fail); }
.tally .more { background: transparent; }

.result { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--muted); }
.result.tone-pass { background: color-mix(in srgb, var(--pass) 13%, transparent); color: var(--pass); }
.result.tone-refer { background: color-mix(in srgb, var(--refer) 13%, transparent); color: var(--refer); }
.result.tone-fail { background: color-mix(in srgb, var(--fail) 13%, transparent); color: var(--fail); }
.result.tone-neutral { background: color-mix(in srgb, var(--neutral) 13%, transparent); color: var(--neutral); }
.type { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---- detail pages -------------------------------------------------------- */
.detail { padding-bottom: 64px; }
.meeting-hero { padding: 28px 0 24px; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; justify-items: start; }
.crumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.body-chip { padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--body) 13%, transparent); color: var(--body); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.meeting-hero h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.meeting-hero h1 .at { font-weight: 400; color: var(--muted); }
.meeting-hero .where { font-size: 15.5px; }
.statusline { font-size: 14.5px; max-width: 70ch; }
.meeting-hero .actions { margin-top: 6px; }
.meeting-hero .actions .btn { padding: 9px 15px; font-size: 14px; }
.matter-title { font-size: 24px !important; font-weight: 600 !important; line-height: 1.3 !important; letter-spacing: -.01em !important; text-wrap: pretty; max-width: 48em; }
@media (prefers-color-scheme: dark) { .body-chip { color: color-mix(in srgb, var(--body) 60%, white); } }

.happened { margin-top: 28px; padding: 20px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); display: grid; gap: 10px; }
.happened h2 { font-size: 17px; }
.happened .muted { font-size: 14px; }

.agenda { margin-top: 36px; }
.agenda h2 { font-size: 22px; display: flex; align-items: baseline; gap: 10px; }
.agenda h2 .count { font-size: 14px; font-weight: 500; color: var(--muted); }
.preamble { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.preamble summary { cursor: pointer; font-weight: 500; }
.preamble p { margin: 8px 0 0; max-width: 80ch; }

.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.jump a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule-strong); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--muted); background: var(--card); }
.jump a:hover { color: var(--fg); border-color: var(--fg); }
.outline .heading { scroll-margin-top: calc(var(--header-h) + 16px); }

.outline { margin-top: 12px; }
.outline .heading { display: flex; gap: 12px; align-items: baseline; margin-top: 36px; padding-bottom: 8px; border-bottom: 2px solid var(--fg); }
.outline .heading .num { min-width: 48px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); }
.outline .heading .text { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.outline .heading.level-2 { margin-top: 24px; border-bottom: 1px solid var(--rule-strong); }
.outline .heading.level-2 .text { font-size: 14px; letter-spacing: .04em; }
.outline .heading.level-3 { margin-top: 16px; border-bottom: 1px dashed var(--rule); }
.outline .heading.level-3 .text { font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.outline .heading + .heading { margin-top: 18px; }

.item { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); }
.heading + .item { border-top: none; }
.item .num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); padding-top: 3px; }
.item .body { min-width: 0; display: grid; gap: 7px; }
.item .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item .title { font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.aside { font-size: 13.5px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--fg); }

.votes { font-size: 13.5px; }
.votes summary { cursor: pointer; color: var(--muted); }
.votes summary b { color: var(--fg); }
.votes summary:hover { color: var(--fg); }
.votes ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 20px; margin-top: 10px; padding: 12px 14px; background: color-mix(in srgb, var(--fg) 4%, transparent); border-radius: 10px; }
.votes li { display: flex; justify-content: space-between; gap: 10px; }
.vote-aye, .vote-yes { color: var(--pass); font-weight: 600; }
.vote-nay, .vote-no { color: var(--fail); font-weight: 600; }
.vote-absent, .vote-abstain, .vote-recused { color: var(--muted); }

/* ---- committees ---------------------------------------------------------- */
h2.section { margin: 28px 0 12px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.body-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.body-card {
  position: relative; display: grid; gap: 4px; height: 100%; padding: 16px 18px 16px 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.body-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--body); }
.body-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.body-card b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.body-card span { font-size: 13.5px; color: var(--muted); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 28px; }
.columns:not(:has(aside)) { grid-template-columns: minmax(0, 1fr); }
.columns h2 { font-size: 17px; margin-bottom: 8px; }
.columns section h2 + h2, .columns h2:not(:first-child) { margin-top: 32px; }
.rows li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.rows .when { min-width: 170px; font-variant-numeric: tabular-nums; }
.rows a { font-size: 14px; color: var(--muted); }
.rows a:hover { color: var(--fg); }
.members li { display: grid; padding: 10px 0; border-top: 1px solid var(--rule); }
.members b { font-weight: 600; }
.members span { font-size: 13.5px; color: var(--muted); }
.members a { font-size: 13px; color: var(--muted); word-break: break-all; }

/* ---- matter ---------------------------------------------------------------- */
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.timeline .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.timeline div a { font-size: 14px; color: var(--muted); flex-basis: 100%; }
.timeline div a:hover { color: var(--fg); }
.timeline .aside { flex-basis: 100%; }
.prose { white-space: pre-wrap; font-size: 15.5px; line-height: 1.6; max-width: 70ch; text-wrap: pretty; }
.columns .links { display: grid; gap: 8px; }

/* ---- search ----------------------------------------------------------------- */
.results { margin: 12px 0 56px; }
.results li { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--rule); }
.results .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.results .title { font-size: 16px; line-height: 1.45; text-decoration: none; text-wrap: pretty; }
.results .title:hover { text-decoration: underline; }

/* ---- footer ------------------------------------------------------------------ */
footer.site { padding: 28px 20px 48px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
footer.site a { color: var(--fg); }

/* ---- responsive -------------------------------------------------------------- */
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; }
  .bar nav { order: 3; width: 100%; margin: 0 -10px; }
  .search { margin-left: auto; }
  .search input, .search input:focus { width: 160px; }
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .day { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .date { position: static; grid-template-columns: auto auto auto 1fr; align-items: baseline; gap: 8px; }
  .date .num { font-size: 26px; }
  .date .dow { order: 2; }
  .date .rel { margin: 0; justify-self: end; }
  .meeting { padding: 16px 16px 16px 20px; }
  .meeting header { flex-direction: column; gap: 2px; }
  .meeting-hero h1 { font-size: 28px; }
  .meeting-hero h1 .at { display: block; font-size: 20px; }
  .item { grid-template-columns: 1fr; gap: 4px; }
  .item .num { font-size: 12px; }
  .columns { grid-template-columns: 1fr; gap: 32px; }
  .body-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
