/* Publick town site styles.
   Mobile first. The colors below are the defaults; a town sets its own in
   [site.colors] and the build appends them (pipeline/config.py). Type is
   Public Sans, served from this site.
   Accessibility: sizes in rem so text scales; text and UI colors meet WCAG AA
   contrast; tap targets are at least 44px; focus is always visible. */

@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(/static/fonts/public-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(/static/fonts/public-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(/static/fonts/public-sans-700.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-display: swap; src: url(/static/fonts/public-sans-800.woff2) format("woff2"); }
/* Headlines: Source Serif 4 (SIL Open Font License), served from this site. */
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url(/static/fonts/source-serif-4-600.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-display: swap; src: url(/static/fonts/source-serif-4-700.woff2) format("woff2"); }

:root {
  --primary: #1e3e80;       /* town: links, buttons, map markers */
  --primary-dark: #011536;  /* town: headings, rules, masthead */
  --accent: #581824;        /* town: current page in the menu, flags, notices */
  --network: #2c4a63;       /* Publick slate: the network's name in the masthead */
  --primary-soft: #e8edf6;
  --ink: #1b1f24;
  --muted: #545c65;
  --ink-soft: #3d444c;      /* notes that carry meaning: darker than muted */
  --line: #d6dbe1;
  --line-strong: #6b7580;
  --soft: #f3f5f8;
  --bg: #ffffff;
  --focus: #b3450b;
  --warn-bg: #fff3d1;
  --warn-text: #5c3d00;
  --warn-line: #b88300;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --gutter: 1rem;
}

/* ---- Base ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { color: var(--primary-dark); }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem); line-height: 1.12; font-weight: 700; margin: 0 0 0.4rem; }
h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 700; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; margin: 2rem 0 0.5rem; }
/* Each section starts with a rule and space above, so a page reads as separate blocks. */
main h2 { margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.section-head { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.section-head h2, .toc h2, .callout h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.section-head > a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
p, main li { max-width: var(--measure); }
main li + li { margin-top: 0.3rem; }

a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -10rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--bg); color: var(--primary); font-weight: 700;
  border: 2px solid var(--primary);
}
.skip-link:focus { top: 0.5rem; }

/* Links that open a new tab: an arrow here, hidden text for screen readers. */
a.external::after { content: "\2009\2197"; font-size: 0.85em; }

/* ---- Header: a masthead and a section bar, like a paper's front page ---- */

.site-header { background: var(--bg); }
/* A strip above the name: the day's date, and the same page in the site's other language. */
.topline { font-size: 0.875rem; }
.topline .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; }
.topline-date { color: var(--muted); font-weight: 600; }
.language-switch { display: inline-flex; align-items: center; min-height: 2rem; margin-left: auto; color: var(--primary); font-weight: 600; }
.masthead { padding: 0.35rem var(--gutter) 0.6rem; text-align: center; }
.brand {
  display: inline-block; color: var(--primary-dark); text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
}
.brand span { color: var(--network); }
.brand:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.masthead-line { max-width: none; margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* The menu, centered under the name, with the page's group marked in the town's accent color. */
.site-nav { border-bottom: 4px double var(--primary-dark); }
.nav-list { display: flex; justify-content: center; column-gap: 0.85rem; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.nav-list a {
  display: flex; align-items: center; min-height: 2.5rem;
  color: var(--ink); font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--primary); border-bottom-color: var(--line-strong); }
.nav-list a[aria-current] { color: var(--accent); border-bottom-color: currentColor; }
@media (min-width: 40rem) { .nav-list { column-gap: 1.75rem; } .nav-list a { font-size: 0.95rem; } }
/* On a phone: the name on one line, without the line under it; the menu scrolls sideways if it must. */
@media (max-width: 39.99rem) {
  .masthead { padding: 0.25rem var(--gutter) 0.45rem; }
  .masthead-line { display: none; }
  .site-nav .wrap { overflow-x: auto; scrollbar-width: none; }
  .site-nav .wrap::-webkit-scrollbar { display: none; }
}

/* A group's pages, as tabs above the page's heading (base.html): smaller than the menu, marked in the same color */
.tabs { margin: 0 0 0.9rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs ul { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
main .tabs li + li { margin-top: 0; }
.tabs a {
  display: flex; align-items: center; min-height: 2.5rem; margin-bottom: -1px;
  color: var(--ink-soft); font-size: 0.875rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--primary); }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ---- Page ---- */

main { display: block; padding: 1rem 0 3rem; }
@media (min-width: 48rem) { main { padding-top: 1.4rem; } }
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 0.75rem; }
.page-head { margin-bottom: 0.9rem; }
.source-note { color: var(--muted); font-size: 0.875rem; }
.small { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }
.note {
  padding: 0.75rem 1rem; border-left: 4px solid var(--warn-line);
  background: var(--warn-bg); color: var(--warn-text);
}
.credit { margin: 1.25rem 0; padding-left: 0.75rem; border-left: 3px solid var(--line); color: var(--muted); font-size: 0.875rem; }
/* The credit line the About page asks reusers to copy. */
.credit-example { margin: 0.75rem 0 1rem; padding: 0.6rem 0.9rem; border-left: 3px solid var(--line-strong); background: var(--soft); }
.credit-example p { margin: 0; }
.credit p { margin: 0; }
.report-link {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; margin-top: 0.5rem; padding: 0 0.85rem;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.report-link svg { color: var(--accent); flex: none; }
.report-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: underline; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin: 2.25rem 0 0.5rem; }
.section-head h2 { margin: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0.6rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; }
main .link-row li + li { margin-top: 0; }
.link-row a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.more { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 1.1rem; border: 1.5px solid var(--primary); border-radius: 0;
  color: var(--primary); background: var(--bg); font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--primary-soft); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
@media (max-width: 30rem) { .actions .button { flex: 1 1 100%; } }

/* A form as one line: the label, then the field and button, wrapping on a phone (the digest's signup, digest_line.html,
   and the home page's street lookup) */
.line-form { margin: 1rem 0 0; }
.line-form .line-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.line-form label { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); }
.line-form .search-row { flex: 1 1 20rem; }
.line-form .small { margin: 0.4rem 0 0; }
/* The signup at the end of a meeting's page, set apart from the meeting as a section is */
.signup-after { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Meeting search */
.search-form { margin: 1.25rem 0 0; }
.search-form label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
/* The meetings search (macros.html search_form): a field of reading width, with a plain button, as a secondary action */
.site-search { max-width: 36rem; }
.site-search label { font-size: 0.95rem; font-weight: 600; }
.search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-row input {
  flex: 1 1 12rem; min-width: 0; min-height: 2.9rem; padding: 0 0.75rem;
  border: 1.5px solid var(--line-strong); border-radius: 0; font: inherit; color: var(--ink); background: var(--bg);
}
.search-results { padding-left: 0; list-style: none; }
.search-results > li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.search-results > li + li { margin-top: 0; }
.search-results .excerpt { margin: 0.35rem 0 0; font-size: 0.95rem; }
.search-results mark { background: #fff1a8; color: inherit; font-weight: 600; }

/* Status words: plain text with a marker, never color alone. */
.flag { font-weight: 700; color: var(--accent); }
.status { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--muted); }

/* ---- Headline numbers ---- */

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 0.5rem; padding: 0; list-style: none;
  border-top: 2px solid var(--primary-dark);
}
main .stats > li { max-width: none; margin: 0; }
.stat { border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat > a, .stat > div { display: block; height: 100%; padding: 1rem 0.75rem 1.1rem 0; color: inherit; text-decoration: none; }
.stat:nth-child(even) > a, .stat:nth-child(even) > div { padding-left: 0.85rem; }
.stat > a:hover .stat-value { text-decoration: underline; text-decoration-thickness: 2px; }
.stat-label { display: block; min-height: 2.6em; color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
.stat-value {
  display: block; margin: 0.25rem 0; color: var(--primary-dark); font-family: var(--serif); font-size: 2.1rem; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.01em;
}
/* A value in words ("Not enough data") rather than a number; long words wrap rather than widen the grid. */
.stat-value-text { font-size: 1.25rem; line-height: 1.25; }
.stat-label, .stat-value, .stat-change { overflow-wrap: break-word; hyphens: auto; }
.stat-change { display: block; font-size: 0.9rem; line-height: 1.4; }
.stat-source { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
/* A row's values on one line however its labels wrap: each number's label, value, and detail are rows of the grid. */
.stats-aligned .stat, .stats-aligned .stat > a { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.stats-aligned .stat > a { height: auto; }
.stats-aligned .stat-label { min-height: 0; }
.stats-aligned .stat-value { align-self: end; }
/* Under the numbers, their own bottom rules stand for the next section's. */
.stats + .section-head, .stats + h2 { border-top: 0; padding-top: 0; }
@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .stat > a, .stat > div { padding-left: 0.85rem; }
  .stat:first-child > a, .stat:first-child > div { padding-left: 0; }
}

/* ---- Meetings ---- */

.day-heading {
  margin: 1.75rem 0 0; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line);
  color: var(--accent); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.meeting-list { margin: 0; padding: 0; list-style: none; }
/* No rule under a list's last item where the next section's own rule follows */
.meeting-list:has(+ .section-head, + h2) > li:last-child, .decision-list:has(+ .section-head, + h2) > li:last-child { border-bottom: 0; }
main .meeting-list > li { max-width: none; margin: 0; }
.meeting-item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.1rem 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.meeting-when { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meeting-link { font-weight: 700; color: var(--primary-dark); text-decoration: none; }
.meeting-link:hover { text-decoration: underline; color: var(--primary); }
.meeting-main { min-width: 0; }
.meeting-preview {
  margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meeting-meta { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.875rem; }
.meeting-meta .flag { color: var(--accent); }
/* The home page's list isn't grouped by day: each meeting's day sits above its time. */
.meeting-day { display: block; color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }
/* The rest of the week's meetings, a tap away: one line each, the status after the board. */
.compact .meeting-item { padding: 0.55rem 0; }
.compact .meeting-meta { display: inline; margin: 0 0 0 0.4rem; }
details.more-meetings { margin: 0; border-top: 0; border-bottom: 1px solid var(--line); }
/* The home page's day above the time, in capitals ("MON, MAR 10"), is wider than any time. */
.meeting-item:has(.meeting-day) { grid-template-columns: 6.5rem 1fr; }
/* The column fits the longest time, "12:00 PM" ("12:00 p. m." in Spanish), with room to spare;
   "time to be announced" may wrap. */
:lang(es) .meeting-item { grid-template-columns: 6.75rem 1fr; }
.meeting-when .small { white-space: normal; }
@media (max-width: 22rem) { .meeting-item, :lang(es) .meeting-item { grid-template-columns: 1fr; } }

/* Decisions: one block per meeting, its votes as a plain list. */
.decision-list { margin: 0; padding: 0; list-style: none; }
/* An earlier month on Decisions, folded under its name */
details.month-fold { margin: 0; padding: 0; border-top: 1px solid var(--line); }
details.month-fold:last-of-type { border-bottom: 1px solid var(--line); }
.month-fold > summary { padding: 0.75rem 0; }
.month-fold .month-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); }
.month-fold > summary .item-detail { display: inline; margin-left: 0.5rem; font-size: 0.9rem; font-weight: 400; color: var(--muted); }
main .decision-list > li { max-width: none; margin: 0; }
.decision-meeting { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.decision-meeting h3 { margin: 0; }
.decision-meeting h3 a { color: var(--primary-dark); text-decoration: none; }
.decision-meeting h3 a:hover { text-decoration: underline; }
.decision-meeting > .item-detail { margin: 0.2rem 0 0.6rem; }
.decision-meeting ul { margin: 0; padding-left: 1.25rem; }
.decision-meeting details.expand { margin-top: 0.5rem; border-top: 0; padding: 0; }
/* A decision's page in its minutes, after it ("p. 3", macros.html cite): kept on one line. */
.cite { font-size: 0.875em; white-space: nowrap; }
.decision-label { margin: 0.9rem 0 0.2rem; color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

.board-list { margin: 0; padding: 0; list-style: none; columns: 1; }
@media (min-width: 48rem) { .board-list { columns: 2; column-gap: 2rem; } }
main .board-list > li { max-width: none; margin: 0; break-inside: avoid; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.board-list a { font-weight: 700; color: var(--primary-dark); }
.board-list .meta { display: block; color: var(--muted); font-size: 0.875rem; }

dl.facts { margin: 0.5rem 0 0; border-top: 1px solid var(--line); }
dl.facts > div { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
dl.facts dt { color: var(--ink-soft); font-size: 0.875rem; font-weight: 700; }
dl.facts dd { margin: 0.1rem 0 0; }
@media (min-width: 40rem) {
  dl.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
  dl.facts dd { margin: 0; }
}

.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0 0 0.6rem; padding: 0; list-style: none; font-size: 0.9rem; }
main .breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 0.45rem; color: var(--muted); }
.breadcrumb a { display: inline-block; padding: 0.3rem 0; font-weight: 600; }

details.expand { margin: 1rem 0 0; padding: 0.25rem 0; border-top: 1px solid var(--line); }
details.expand[open] { padding-bottom: 0.75rem; }
/* A chart's own links sit right under its table toggle, as one footer. */
details.expand + .link-row { margin-top: 0; }
details.expand > summary {
  display: flex; align-items: center; min-height: 2.75rem;
  color: var(--primary); font-weight: 700; cursor: pointer;
}
.transcript-body { padding-top: 0.25rem; }
.transcript-body h3, .transcript-body h4, .transcript-body h5 { font-size: 1rem; }

.timeline { margin: 0; padding: 0; list-style: none; }
main .timeline li + li { margin-top: 0.6rem; }
.timeline li { padding-left: 0.75rem; border-left: 3px solid var(--line); }
.timeline time { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.toc { margin: 1.25rem 0; padding: 0.75rem 1rem; background: var(--soft); }
.toc h2 { font-size: 1rem; margin: 0 0 0.25rem; }
.toc ul { margin: 0; padding-left: 1.2rem; }
.toc a { display: inline-block; padding: 0.15rem 0; }

/* ---- Charts and tables ---- */

figure.chart { margin: 0.75rem 0 0; }
.columns { display: flex; align-items: flex-end; gap: 4px; height: 10rem; border-bottom: 1px solid var(--ink); }
.columns .col { flex: 1; min-height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }
.columns .col.recent { background: repeating-linear-gradient(45deg, var(--primary), var(--primary) 3px, #6f86b8 3px, #6f86b8 6px); }
.columns .col.noted { background: var(--accent); }
.col-labels { display: flex; gap: 4px; margin-top: 0.3rem; overflow: hidden; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; }
/* As narrow as their columns however many months there are; on a phone, every other month is labeled,
   and the first and last keep to the chart's edges. */
.col-labels span { display: flex; flex: 1 1 0; justify-content: center; min-width: 0; white-space: nowrap; }
@media (max-width: 30rem) {
  .col-labels span:nth-child(even) { visibility: hidden; }
  .col-labels span:first-child { justify-content: flex-start; }
  .col-labels span:last-child { justify-content: flex-end; }
}
.chart-key { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }

.hbars { margin: 0.5rem 0 0; padding: 0; list-style: none; }
main .hbars > li { max-width: none; margin: 0; }
/* The label column is wide enough for a label's words, which wrap between them, never inside one. */
.hbar { display: grid; grid-template-columns: 7.5rem 1fr 3.5rem; align-items: center; gap: 0.6rem; padding: 0.3rem 0; font-size: 0.95rem; }
.hbar > span:first-child { overflow-wrap: normal; hyphens: manual; }
.hbar .bar { height: 0.85rem; min-width: 2px; background: var(--primary); border-radius: 2px; }
.hbar .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hbars.wide-n .hbar { grid-template-columns: 7.5rem 1fr auto; }
.hbars.wide-n .n { white-space: nowrap; }
.hbars.wide-l .hbar { grid-template-columns: 9rem 1fr auto; }
@media (min-width: 48rem) { .hbar, .hbars.wide-n .hbar, .hbars.wide-l .hbar { grid-template-columns: 14rem 1fr auto; } }
.hbar a { font-weight: 600; }

/* Positioned, so screen-reader-only text in a wide table is clipped with it rather than widening the page. */
.table-wrap { overflow-x: auto; position: relative; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 0.65rem 0.5rem 0.65rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th {
  border-bottom: 2px solid var(--primary-dark); color: var(--muted);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.data-table tbody th { font-weight: 600; }
.data-table .cell-note { font-weight: 400; font-size: 0.875rem; }
.data-table .moe { display: block; color: var(--muted); }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table thead th.num { white-space: normal; }
.data-table .wide { display: none; }
@media (min-width: 48rem) {
  .data-table .wide { display: table-cell; }
  .data-table th, .data-table td { padding-right: 0.75rem; }
}

.notes-list { padding-left: 1.4rem; font-size: 0.9rem; }
.note-ref {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; min-height: 1.5rem;
  margin-left: 0.2rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; text-decoration: none; vertical-align: middle;
}
.plain-list { padding-left: 1.4rem; }
main .plain-list > li + li { margin-top: 0.75rem; }
.item-detail { display: block; color: var(--ink-soft); font-size: 0.95rem; }

/* "On this page": a plain contents line under a long page's numbers. */

/* ---- Footer ---- */

.site-footer { border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 0.9rem; padding: 1.5rem 0 2rem; }
.site-footer .line-form { margin: 0 0 1.5rem; }
.footer-brand { margin: 0 0 0.25rem; color: var(--primary-dark); font-weight: 800; }
.site-footer p { max-width: 50rem; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---- Preferences and print ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  body { font-size: 11pt; }
  .topline, .site-nav, .skip-link, .actions, .link-row, .footer-links, .more { display: none !important; }
  .site-header { border: 0; }
  h2 { break-after: avoid; }
  figure.chart, .data-table tr { break-inside: avoid; }
  .columns .col, .hbar .bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  a.external::after { content: ""; }
}
.meeting-item.single { grid-template-columns: 1fr; }
dl.defs { margin: 0.5rem 0 1rem; }
dl.defs dt { margin-top: 0.9rem; font-weight: 700; color: var(--primary-dark); }
dl.defs dd { margin: 0.15rem 0 0; max-width: var(--measure); }
dl.glossary dt { scroll-margin-top: 1rem; }
dl.glossary dt:target { outline: 2px solid var(--primary); outline-offset: 2px; }
/* A term's first use on a page, linked to its definition (pipeline/glossary.py): underlined with dots, not by color alone. */
a.term { text-decoration-style: dotted; text-decoration-thickness: 1px; }
a.term:hover { text-decoration-style: solid; }
.stat a.external::after { content: none; }

/* ---- Maps ---- */
.map {
  height: 22rem; margin: 0.75rem 0 0; isolation: isolate;
  border: 1px solid var(--line); background: var(--primary-soft);
}
@media (max-width: 30rem) { .map { height: 18rem; } }
.map.leaflet-container { font: inherit; font-size: 0.9rem; }
.map .leaflet-popup-content { margin: 0.75rem 1rem; line-height: 1.4; }
.map .leaflet-popup-content p { margin: 0.25rem 0 0.4rem; }
.map .leaflet-popup-content a { color: var(--primary); }
.map .leaflet-control-attribution a { color: var(--primary); }

/* ---- Officials: the ward map and the list of wards ---- */
.ward-map .ward-label {
  padding: 0.1rem 0.4rem; border: 1px solid var(--line-strong); border-radius: 0; box-shadow: none;
  background: var(--bg); color: var(--ink); font-size: 0.8rem; font-weight: 700;
}
.ward-map .ward-label::before { display: none; }
.locate { margin: 1rem 0 0; }
.locate .button { margin: 0; font: inherit; font-weight: 700; cursor: pointer; }
.locate .button:disabled { cursor: progress; opacity: 0.7; }
.locate .small { margin: 0.5rem 0 0; max-width: var(--measure); }
.ward-result:not(:empty) { margin: 1rem 0 0; padding: 0.75rem 1rem; border-left: 4px solid var(--primary); background: var(--primary-soft); }
.ward-result p, .ward-result ul { margin: 0; }
.ward-result ul { padding-left: 1.25rem; }
.ward-result-head { font-weight: 700; }
/* The Officials page's address box: the answer reads like the map's, with room between its parts. */
.address-box .search-form { margin-top: 0.5rem; }
.address-box .search-form .small { margin: 0.5rem 0 0; max-width: var(--measure); }
.address-result:not(:empty) { margin: 1rem 0 0; padding: 0.75rem 1rem; border-left: 4px solid var(--primary); background: var(--primary-soft); }
.address-result > * { margin: 0; max-width: var(--measure); }
.address-result > * + * { margin-top: 0.5rem; }
.address-result ul { padding-left: 1.25rem; }
.address-result .choices { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.address-result .choices .button { margin: 0; font: inherit; cursor: pointer; }
.ward-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
main .ward-list > li + li { margin-top: 0; }
.ward-list > li { padding: 0.75rem 1rem; border: 1px solid var(--line); }
.ward-list > li.is-selected { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ward-list h3 { margin: 0 0 0.35rem; }
.ward-list ul { margin: 0; padding-left: 1.1rem; }
.ward-list p { margin: 0; }
.officials td:first-child, .officials a[href^="tel:"] { white-space: nowrap; }

/* ---- Notice: a public hearing or other chance to take part ---- */
.notice { margin: 1rem 0 0.5rem; padding: 0.9rem 1rem 0.6rem; border: 1px solid var(--accent); border-top-width: 4px; background: var(--bg); }
.notice h3 { margin: 0 0 0.25rem; color: var(--accent); }
.notice .plain-list { margin: 0.4rem 0 0; }
.notice > p { margin: 0 0 0.3rem; }

/* ---- Callout ---- */
.callout {
  margin: 1.25rem 0 1.5rem; padding: 1rem 1.1rem;
  border-left: 4px solid var(--primary);
  background: var(--soft);
}
.callout p { margin: 0; }
.callout .actions { margin: 0.8rem 0 0; }

/* Bangor Publick colors, from [site.colors] in config/bangor.toml. */
:root {
  --primary: #0058a4;
  --primary-dark: #014b8a;
  --primary-soft: #e6eef6;
  --accent: #d32101;
  --network: #2c4a63;
}
