/* Public site: easy to read on a phone, high contrast, large text. Light and dark. */
:root {
  color-scheme: light;
  --bg: #f4f5f3; --surface: #fcfcfb; --line: #e4e5e1;
  --text: #0b0b0b; --text-2: #3f3e3b; --text-3: #6b6a65;
  --accent: #2a78d6; --accent-ink: #1d5aa6;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #121211; --surface: #1a1a19; --line: #2e2e2b;
    --text: #f0efec; --text-2: #d6d5ce; --text-3: #a3a29a;
    --accent: #3987e5; --accent-ink: #8ab8f1;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --line: #2e2e2b;
  --text: #f0efec; --text-2: #d6d5ce; --text-3: #a3a29a;
  --accent: #3987e5; --accent-ink: #8ab8f1;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
a { color: var(--accent-ink); }
.site-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 18px; }
.mark { width: 30px; height: 30px; display: block; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; }
.langs a { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: 15px; }
.langs a.on { background: var(--bg); color: var(--text); font-weight: 600; }
.site-main { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; }
.hero h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 28px; }
.section-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 0 0 16px; }
.quiet { color: var(--text-3); }
.meetings { list-style: none; margin: 0 0 28px; padding: 0; }
.meetings li { padding: 0; }
.meetings a { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; color: var(--text); text-decoration: none; }
.meetings a:hover .title { text-decoration: underline; }
.date { color: var(--text-3); font-size: 15px; }
.title { font-size: 20px; font-weight: 650; line-height: 1.3; }
.count { color: var(--text-2); font-size: 16px; }
.digest h2 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.digest h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin: 28px 0 8px; }
.digest p { margin: 0 0 12px; }
.digest strong { font-size: 19px; }
.notice { border-left: 4px solid var(--accent); }
.subscribe h2 { margin-top: 0; }
.subscribe form { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 460px; }
.subscribe label { display: grid; gap: 4px; font-size: 15px; color: var(--text-2); }
.subscribe .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
input, select, button { font: inherit; color: var(--text); }
input, select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-height: 48px; }
button { min-height: 48px; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--text); color: var(--surface); font-weight: 600; cursor: pointer; }
.message { font-weight: 600; }
.narrow { max-width: 620px; }
.prose h2 { font-size: 20px; margin: 24px 0 6px; }
.site-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; color: var(--text-3); font-size: 15px; }
.label { color: var(--text-3); font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.sources { list-style: none; margin: 0; padding: 0; }
.sources li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.sources li:first-child { border-top: 0; padding-top: 0; }
.sources a { font-size: 16px; }
.report form, .search { display: grid; gap: 12px; }
.report label { display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.report .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
textarea { font: inherit; color: var(--text); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); width: 100%; }
.search { grid-template-columns: 1fr auto; margin-bottom: 20px; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 0; margin-bottom: 10px; }
.docs a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; color: var(--text); text-decoration: none; }
.docs .title { font-size: 17px; }
.doc h1 { font-size: 24px; line-height: 1.3; margin: 4px 0 8px; }
.doc .summary { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.doc .summary h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin: 0 0 8px; }
.doc dl.fields dt { font-weight: 650; margin-top: 16px; font-size: 15px; color: var(--text-3); }
.doc dl.fields dd { margin: 4px 0 0; white-space: pre-wrap; }
.fulltext { white-space: pre-wrap; font-size: 16px; margin-top: 10px; }
details summary { cursor: pointer; color: var(--accent-ink); margin-top: 16px; }

/* Header navigation */
.brand-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.main-nav { display: flex; gap: 14px; font-size: 16px; }
.main-nav a { color: var(--text-2); text-decoration: none; }
.main-nav a:hover { color: var(--text); text-decoration: underline; }

/* District map: neutral districts labelled in text, one accent for places. */
:root { --district: #e9eae6; --district-on: #cfe0f5; --dot: #2a78d6; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --district: #2a2a28; --district-on: #1f3a5c; --dot: #3987e5; } }
:root[data-theme="dark"] { --district: #2a2a28; --district-on: #1f3a5c; --dot: #3987e5; }
.map svg { display: block; width: 100%; height: auto; }
.map .district { fill: var(--district); stroke: var(--surface); stroke-width: 2; fill-rule: evenodd; }
.map a:hover .district, .map .district.on { fill: var(--district-on); }
.map .dot { fill: var(--dot); stroke: var(--surface); stroke-width: 2; }
.map a:hover .dot, .map a:focus .dot { r: 8; }
.map .district-label { font-size: 15px; font-weight: 650; fill: var(--text); pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.map .district-count { font-size: 13px; fill: var(--text-2); pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); margin: 10px 0 0; }
.dot-key { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px var(--surface); }
.district-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.district-tabs a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: 15px; }
.district-tabs a.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.small { font-size: 14px; }

/* Reference lines: rivers in a soft water blue (not the place-dot blue), roads in gray. */
:root { --water: #b7d0e2; --road: #a3a29a; --freeway: #6b6a65; --you: var(--text); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --water: #2b4a66; --road: #5f5e58; --freeway: #8f8e86; } }
:root[data-theme="dark"] { --water: #2b4a66; --road: #5f5e58; --freeway: #8f8e86; }
.map .reference { pointer-events: none; }
.map .ref { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .ref.river { stroke: var(--water); stroke-width: 5; }
.map .ref.street { stroke: var(--road); stroke-width: 1.2; }
.map .ref.freeway { stroke: var(--freeway); stroke-width: 2; }
.map .ref-label { font-size: 11px; fill: var(--text-2); font-style: italic; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.map .ref-label.river { fill: #3b6c90; font-size: 12px; }
.map .shield rect { fill: var(--surface); stroke: var(--freeway); stroke-width: 1.2; }
.map .shield text { font-size: 10.5px; font-weight: 700; fill: var(--text); }
.map .shield { pointer-events: none; }
.map .you circle { fill: none; stroke: var(--you); stroke-width: 3; }
.map .you circle.core { fill: var(--you); stroke: var(--surface); stroke-width: 2; }
.you-key { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--you); margin-left: 12px; }
.attribution { margin-left: auto; font-size: 12px; }
.find .search { grid-template-columns: 1fr auto; }
@media (max-width: 520px) { .find .search { grid-template-columns: 1fr; } }

/* Topics and search */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.chips a { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: 15px; }
.chips a span { color: var(--text-3); font-size: 13px; margin-left: 2px; }
.chips a.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.chips a.on span { color: var(--surface); opacity: 0.8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.tags a { font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--text-2); text-decoration: none; border: 1px solid var(--line); }
.decisions { list-style: none; margin: 0; padding: 0; }
.decisions li { padding: 16px 20px; }
.decisions .title { display: block; font-size: 18px; font-weight: 650; line-height: 1.3; color: var(--text); text-decoration: none; }
.decisions .title:hover { text-decoration: underline; }
.decisions p { margin: 6px 0 0; }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.topic-list li { margin: 0; padding: 0; }
.topic-list a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; color: var(--text); text-decoration: none; }
.topic-list .title { font-weight: 650; }
.hero + .search { margin-top: 4px; }

/* School tracker */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.scenario-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.scenario-cols h3 { margin: 0 0 8px; }
.scenario-cols h4 { margin: 14px 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.scenario-cols ul { margin: 4px 0 0; padding-left: 18px; }
.names { margin: 0; line-height: 1.6; }
.result h2 { margin-top: 0; }
.result li.closes { font-weight: 600; }
.table-card { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.compare th, table.compare td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
table.compare th[scope="row"], table.compare thead th:first-child { text-align: left; font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0 0 20px; border-left: 2px solid var(--line); }
.timeline li { padding: 6px 0 6px 16px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--text)); }
.timeline li.past { color: var(--text-3); }
.timeline li.past::before { background: var(--line); }
.timeline .date { font-weight: 650; margin-right: 6px; }
.sources { padding-left: 18px; }

/* Votes and long lists */
.month { margin: 24px 0 8px; font-size: 15px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.more { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.more .button { padding: 8px 14px; border-radius: 10px; background: var(--text); color: var(--surface); text-decoration: none; font-weight: 600; }
.votes { display: block; color: var(--text-2); line-height: 1.5; }
.votes a { color: inherit; }
.vote-mark { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 6px; }
.vote-mark.yes::before { content: '✓ '; }
.vote-mark.no::before { content: '✕ '; }

/* Sections by public body */
.sub-nav { order: 3; flex-basis: 100%; display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 0 0; border-top: 1px solid var(--line); }
.langs { order: 2; }
.sub-nav a { padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.sub-nav a.on { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: inset 0 -2px 0 var(--text); }
.main-nav a.on { color: var(--text); font-weight: 650; }
.body-cards { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.body-cards li { margin: 0; padding: 0; }
.body-cards a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; color: var(--text); text-decoration: none; height: 100%; box-sizing: border-box; }
.body-cards .title { font-size: 19px; font-weight: 700; }
.hero p { margin: 6px 0 16px; }
.main-nav { flex-wrap: wrap; }
.main-nav a { white-space: nowrap; }

/* Compact meeting digest */
.digest .decision { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.digest .decision h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; text-transform: none; letter-spacing: 0; color: var(--text); }
.digest .decision p { margin: 0 0 6px; }
.digest .decision .result { color: var(--text-2); }
.digest .decision details { margin: 4px 0 8px; }
.digest .decision summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.digest .decision details[open] summary { margin-bottom: 8px; }
.digest .steps { color: var(--text-2); }
.help h2 { margin-top: 0; font-size: 18px; }
.help ol { margin: 0; padding-left: 20px; }
.help li { margin: 4px 0; }
.snapshot h2 { margin-top: 0; font-size: 20px; }
.snapshot ul { margin: 0 0 8px; padding-left: 20px; }
.snapshot li { margin: 8px 0; line-height: 1.45; }
.snapshot li a { white-space: nowrap; }
.digest .votes strong, .digest .steps strong { font-size: inherit; }

/* Brand: the city code in forest green (lighter in dark mode, for contrast). */
:root { --brand-city: #1f7a35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-city: #5cc072; } }
:root[data-theme="dark"] { --brand-city: #5cc072; }
.brand-city { color: var(--brand-city); font-weight: 800; font-size: 0.6em; letter-spacing: 0.05em; margin-left: 0.22em; vertical-align: super; line-height: 0; }
.snapshot .sources-of { color: var(--text-3); white-space: nowrap; margin-left: 4px; }

/* Languages: a list on wide screens, a menu button on tablets and phones (no script needed). */
.lang-menu { display: none; order: 2; position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; color: var(--text); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; display: flex; flex-direction: column; min-width: 170px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.lang-menu nav a { padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--text); }
.lang-menu nav a.on { background: var(--bg); font-weight: 650; }
@media (max-width: 900px) {
  .site-top { position: relative; }
  .site-top > .langs { display: none; }
  .lang-menu { display: block; position: absolute; top: 12px; right: 16px; }
  .brand-nav { padding-right: 110px; }
}

/* Clickable cards and buttons: a slight shade on hover, a clear ring for keyboard focus. */
:root { --hover: #eef0ec; --focus: #2a78d6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hover: #23231f; --focus: #8ab8f1; } }
:root[data-theme="dark"] { --hover: #23231f; --focus: #8ab8f1; }
.meetings li.card, .body-cards li.card, .topic-list li.card, .docs li.card { transition: background-color 0.12s, border-color 0.12s; }
.meetings li.card:hover, .body-cards li.card:hover, .topic-list li.card:hover, .docs li.card:hover { background: var(--hover); border-color: var(--text-3); }
.chips a:hover, .tags a:hover, .district-tabs a:hover, .sub-nav a:hover, .langs a:hover, .lang-menu nav a:hover, .lang-menu summary:hover { background: var(--hover); color: var(--text); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.digest h1.m-title { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.digest h2.m-section { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin: 28px 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Space between a card grid and the next section heading (councilors by district, topics). */
.topic-list { margin-bottom: 28px; }
.topic-list + .section-title, .topic-list + h2 { margin-top: 8px; }
/* The logo's dark square needs an outline on dark backgrounds. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark, :root:not([data-theme="light"]) .brand-mark { border-radius: 7px; box-shadow: 0 0 0 1px #4a4a45; } }
:root[data-theme="dark"] .mark, :root[data-theme="dark"] .brand-mark { border-radius: 7px; box-shadow: 0 0 0 1px #4a4a45; }
