/* Fonts: Overpass, Overpass Mono and Source Serif 4, SIL Open Font License, self-hosted. */
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/overpass-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00B6, U+00B8-FFFF; }
@font-face { font-family: 'Overpass'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/overpass-latin-wght-italic.woff2') format('woff2'); unicode-range: U+0000-00B6, U+00B8-FFFF; }
@font-face { font-family: 'Overpass Mono'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/overpass-mono-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/assets/fonts/source-serif-4-latin-opsz-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url('/assets/fonts/source-serif-4-latin-opsz-italic.woff2') format('woff2'); }
/*
 * site.css
 * The stylesheet for cordgrassdata.com: tokens, type, layout, components,
 * drawings and the status page. See DESIGN.md for the reasoning. The
 * build prepends the @font-face rules.
 *
 * Created: 2026-11-04
 * Last modified: 2026-11-04
 */

:root {
  --paper: #F5F6F2;
  --concrete: #E8EAE4;
  --concrete-2: #DADDD5;
  --rule: #C3C8BE;
  --rule-strong: #8C9488;
  --ink: #121C1A;
  --ink-soft: #46524E;
  --peat: #17302B;
  --peat-2: #21403A;
  --on-peat: #F5F6F2;
  --on-peat-soft: #B9C6C0;
  --straw: #D9A836;
  --straw-deep: #7E5C12;
  --water: #1D5C8C;
  --water-tint: #D3E2EC;
  --alarm: #A8341C;
  --caution: #8A5A00;
  --ok: #2B6636;

  --sans: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Overpass Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --gutter: 24px;
  --side: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: 'kern' 1;
}

img, svg { max-width: 100%; }

a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--straw);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--peat);
}

h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 2.75rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.wrap { max-width: calc(var(--max) + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--straw); color: var(--peat); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { top: 8px; }

.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.num, .figure { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.figure { font-weight: 600; }

.eyebrow { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--straw-deep); margin-bottom: 0.9em; }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 40em; }
.lead-small { font-size: 1.125rem; line-height: 1.5; max-width: 42em; }

.arrow-link { font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--straw); color: var(--ink); padding-bottom: 1px; }
.arrow-link::after { content: ' →'; }
.arrow-link:hover { border-bottom-color: var(--water); color: var(--water); }

.tag { display: inline-block; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border: 1px solid currentColor; border-radius: 2px; color: var(--ink-soft); vertical-align: 0.1em; white-space: nowrap; }
.tag--caution { color: var(--caution); }
.tag--dry { color: var(--straw-deep); border-color: var(--straw); background: #F6EDD3; }

/* ---------- Utility bar and masthead ---------- */

.utility { background: var(--peat); color: var(--on-peat-soft); font-size: 0.8125rem; }
.utility__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-top: 7px; padding-bottom: 7px; }
.utility p { margin: 0; }
.utility a { color: var(--on-peat); text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--on-peat); }
.utility__noc { display: flex; flex-wrap: wrap; gap: 2px 16px; font-family: var(--mono); }
.utility__label { font-family: var(--sans); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--straw); }
.utility__links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.utility__status { display: inline-flex; align-items: center; gap: 7px; }
.utility__status .chip__dot { background: #6FBF7E; }
.utility__status--maintenance .chip__dot { background: var(--straw); }
.utility__status--minor .chip__dot, .utility__status--major .chip__dot { background: #F08A5D; }
.utility__status--critical .chip__dot { background: #FF6B4A; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule-strong); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 36px; height: 36px; color: var(--peat); flex: none; }
.wordmark { font-size: 1.125rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; padding-top: 3px; white-space: nowrap; }
.wordmark__name { font-weight: 760; }
.wordmark__data { font-weight: 380; }

.nav__list { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 25px 0 21px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.9875rem; border-bottom: 4px solid transparent; }
.nav__list a:hover { border-bottom-color: var(--rule-strong); }
.nav__list a[aria-current] { border-bottom-color: var(--straw); }
.nav--narrow { display: none; }
.nav__toggle { cursor: pointer; font-weight: 650; list-style: none; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 2px; }
.nav__toggle::-webkit-details-marker { display: none; }
.nav__toggle::after { content: ' ▾'; font-size: 0.8em; }
.nav--narrow[open] .nav__toggle::after { content: ' ▴'; }
.nav__list--stacked { flex-direction: column; }
.nav__list--stacked a { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.nav__extra { margin: 12px 0 0; font-size: 0.9375rem; }

@media (max-width: 420px) {
  .masthead__inner { gap: 12px; }
  .wordmark { font-size: 1rem; letter-spacing: 0.1em; }
  .brand .mark { width: 30px; height: 30px; }
}
@media (max-width: 1060px) {
  .nav--wide { display: none; }
  .nav--narrow { display: block; }
  .masthead__inner { flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .nav--narrow[open] { flex-basis: 100%; order: 3; }
  .nav--narrow[open] .nav__toggle { display: inline-block; margin-bottom: 8px; }
}

/* ---------- Breadcrumbs and page heads ---------- */

.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 14px 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: '/'; margin: 0 8px; color: var(--rule-strong); }
.breadcrumbs a { color: var(--ink-soft); }

.page-head { padding: 26px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.page-head h1 { margin-bottom: 0.25em; }
.h1--long { font-size: clamp(1.6rem, 3.4vw, 2.25rem); max-width: 30em; }
.page-head__code { font-family: var(--mono); font-weight: 600; color: var(--straw-deep); margin-right: 0.15em; }
.page-head__address { color: var(--ink-soft); margin-bottom: 20px; }
.key-figures { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-top: 3px solid var(--ink); }
.key-figures div { padding: 10px 14px 4px 0; border-right: 1px solid var(--rule); margin-right: 14px; }
.key-figures div:last-child { border-right: 0; }
.key-figures dt { font-size: 0.8125rem; color: var(--ink-soft); }
.key-figures dd { margin: 0; font-family: var(--mono); font-size: 1.375rem; font-weight: 600; }
@media (max-width: 760px) {
  .key-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-figures div { border-right: 0; border-bottom: 1px solid var(--rule); margin-right: 0; }
}

/* ---------- Layout ---------- */

.band { padding: 44px 0 40px; border-top: 1px solid var(--rule); }
.band--concrete { background: var(--concrete); }
.band--rule { border-top: 3px solid var(--ink); }
.section-label { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.section-label__number { font-family: var(--mono); color: var(--straw-deep); margin-right: 6px; }
.section-label__number::after { content: ' /'; color: var(--rule-strong); }

.split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px 48px; align-items: start; }
.split--reverse .split__main { order: 2; }
.split--reverse { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.split__rail { font-size: 0.9875rem; }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__main { order: 0; }
}

.with-rail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); gap: 32px 56px; align-items: start; padding-bottom: 56px; }
.with-rail__main > section { margin-top: 44px; }
.with-rail__main > section:first-of-type { margin-top: 32px; }
.with-rail__main > p, .with-rail__main > section > p { max-width: 44em; }
.with-rail__rail { position: sticky; top: 16px; font-size: 0.9375rem; }
@media (max-width: 960px) {
  .with-rail { grid-template-columns: minmax(0, 1fr); }
  .with-rail__rail { position: static; }
}

/* ---------- Opening ---------- */

.opening { padding: 40px 0 46px; }
.opening__grid { display: grid; grid-template-columns: minmax(0, 5.3fr) minmax(0, 6.7fr); gap: 32px 44px; align-items: start; }
.opening__title { font-size: clamp(2.3rem, 4.3vw, 3.6rem); font-weight: 780; line-height: 1.03; letter-spacing: -0.025em; margin-bottom: 0.45em; text-wrap: balance; }
.opening__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 24px; padding: 12px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.35; color: var(--ink-soft); }
.opening__facts strong { display: block; font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 980px) {
  .opening__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .opening__facts strong { font-size: 1.25rem; }
}

/* ---------- Drawings ---------- */

.drawing-sheet { margin: 0 0 24px; border: 1px solid var(--rule-strong); background: #FBFBF8; }
.drawing-scroll { overflow-x: auto; padding: 10px 10px 0; }
.section-drawing { display: block; width: 100%; min-width: 620px; height: auto; font-family: var(--sans); }
.drawing-sheet figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: end; padding: 10px 12px 12px; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--ink-soft); }
.drawing-sheet figcaption p { margin: 0; max-width: 36em; }
@media (max-width: 760px) { .drawing-sheet figcaption { grid-template-columns: minmax(0, 1fr); } }

.dw-water { fill: var(--water-tint); }
.dw-hatch-water { stroke: var(--water); stroke-width: 1; opacity: 0.55; }
.dw-hatch-earth { stroke: #9A9F92; stroke-width: 1; }
.dw-hatch-wet { stroke: var(--water); stroke-width: 0.8; opacity: 0.3; }
.dw-dry-ground { fill: #FBFBF8; }
.dw-ground { stroke: var(--ink); stroke-width: 2; }
.dw-concrete { fill: #C9CCC2; stroke: var(--ink); stroke-width: 1; }
.dw-fill { fill: #E3DDCB; stroke: var(--ink); stroke-width: 1; }
.dw-pile { stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 6 3; }
.dw-level { fill: #FBFBF8; stroke: var(--ink); stroke-width: 1.5; }
.dw-level--dry { fill: #F7EFD8; }
.dw-slab { stroke: var(--ink); stroke-width: 4; }
.dw-slab--dry { stroke: var(--straw-deep); }
.dw-roof { stroke: var(--ink); stroke-width: 4; }
.dw-plant { fill: var(--concrete-2); stroke: var(--ink); stroke-width: 1; }
.dw-line { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.dw-tick { stroke: var(--ink); stroke-width: 1; }
.dw-leader { stroke: var(--rule-strong); stroke-width: 1; fill: none; }
.dw-level-line { stroke-width: 1; fill: none; }
.dw-level-line--water { stroke: var(--water); stroke-dasharray: 8 4; }
.dw-level-line--design { stroke: var(--straw-deep); stroke-dasharray: 2 3; stroke-width: 1.4; }
.dw-level-line--superseded { stroke: var(--rule-strong); }
.dw-triangle { fill: var(--water); }
.dw-label { font-size: 15px; font-weight: 700; fill: var(--ink); }
.dw-note { font-size: 12px; fill: var(--ink-soft); }
.dw-scale { font-family: var(--mono); font-size: 12px; fill: var(--ink-soft); }
.dw-elev { font-size: 12.5px; fill: var(--ink); }
.dw-elev__value { font-family: var(--mono); font-weight: 600; }
.dw-elev--water { fill: var(--water); }
.dw-elev--design { fill: var(--straw-deep); }
.dw-elev--superseded { fill: var(--ink-soft); text-decoration: line-through; }

.title-block { display: grid; grid-template-columns: repeat(4, auto); margin: 0; border: 1px solid var(--ink); font-size: 0.6875rem; line-height: 1.2; background: var(--paper); }
.title-block div { padding: 3px 7px 4px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.title-block div:nth-child(4n) { border-right: 0; }
.title-block div:nth-last-child(-n+4) { border-bottom: 0; }
.title-block dt { text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-size: 0.625rem; }
.title-block dd { margin: 0; font-family: var(--mono); color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) {
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block div, .title-block div:nth-child(4n), .title-block div:nth-last-child(-n+4) { border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
  .title-block div:nth-child(2n) { border-right: 0; }
  .title-block div:nth-last-child(-n+2) { border-bottom: 0; }
  .title-block dd { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin-bottom: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
caption { text-align: left; font-weight: 650; padding: 0 0 8px; }
th, td { text-align: left; vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }

.compare { border-top: 3px solid var(--ink); }
.compare thead th { font-size: 1.125rem; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.compare thead a { font-family: var(--mono); color: var(--ink); }
.compare__town { font-weight: 400; color: var(--ink-soft); font-size: 0.9375rem; }
.compare tbody th { font-weight: 500; color: var(--ink-soft); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); width: 34%; }
.compare tbody td { font-family: var(--mono); font-size: 0.9375rem; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.table-note { font-size: 0.8125rem; color: var(--ink-soft); max-width: 52em; }

.data-table { min-width: 680px; border-top: 3px solid var(--ink); }
.data-table thead th { font-size: 0.8125rem; font-weight: 650; color: var(--ink-soft); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); }
.data-table tbody th, .data-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); }
.data-table tbody th { font-weight: 650; }

.spec { margin: 0 0 26px; }
.spec__title { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; padding: 8px 0 6px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.spec__table th { width: 30%; font-weight: 500; color: var(--ink-soft); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rule); }
.spec__table td { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.spec__notes { font-size: 0.8125rem; color: var(--ink-soft); padding-top: 8px; }
.spec__notes p { margin: 0 0 4px; max-width: 48em; }
@media (max-width: 600px) {
  .spec__table, .spec__table tbody, .spec__table tr, .spec__table th, .spec__table td { display: block; width: auto; }
  .spec__table th { padding: 10px 0 0; border-bottom: 0; font-size: 0.875rem; }
  .spec__table td { padding: 2px 0 10px; }
}

.elev-table { border-top: 3px solid var(--ink); margin-bottom: 8px; }
.elev-table thead th { font-size: 0.8125rem; font-weight: 650; color: var(--ink-soft); padding: 8px 0 6px; border-bottom: 1px solid var(--ink); }
.elev-table tbody th { font-weight: 500; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--rule); }
.elev-table td { font-family: var(--mono); padding: 7px 0 7px 12px; border-bottom: 1px solid var(--rule); }
.elev-row--water th { color: var(--water); }
.elev-row--design th { color: var(--straw-deep); }
.elev-row--superseded th, .elev-row--superseded td { color: var(--ink-soft); }
.elev-row--floor th { font-weight: 650; }
.elev-row__note { display: block; font-size: 0.8125rem; color: var(--ink-soft); font-weight: 400; }

.mini-table th { font-family: var(--mono); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); }
.mini-table td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); }

/* ---------- Panels and lists ---------- */

.today { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 980px) { .today { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border: 1px solid var(--rule-strong); border-top: 3px solid var(--ink); padding: 14px 16px 6px; margin-bottom: 18px; font-size: 0.9375rem; }
.band--concrete .panel { margin-bottom: 0; }
.panel__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.panel__note, .panel__recent { font-size: 0.875rem; color: var(--ink-soft); }
.panel__more { font-weight: 600; }
.panel--status { border-top-color: var(--ok); }

.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 0; }
.link-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: block; padding: 8px 0; font-weight: 600; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 650; padding: 2px 10px 1px 8px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.chip--operational { color: var(--ok); }
.chip--maintenance { color: var(--caution); }
.chip--minor { color: var(--caution); }
.chip--major, .chip--critical { color: var(--alarm); }
.chip--none { color: var(--ink-soft); }

.figures { margin: 0; border-top: 3px solid var(--ink); }
.figures div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.figures dt { font-size: 0.875rem; color: var(--ink-soft); }
.figures dd { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }
.figures .figure { display: block; font-size: 1.75rem; color: var(--ink); }

.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.service-list__item { padding: 14px 0 12px; border-top: 1px solid var(--rule); }
.service-list dt { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.service-list dt a { color: var(--ink); text-decoration-color: var(--straw); }
.service-list dd { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 900px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-list { grid-template-columns: minmax(0, 1fr); } }

.notices { list-style: none; padding: 0; margin: 0 0 18px; border-top: 3px solid var(--ink); }
.notice { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.notice p { margin: 0; }
.notice__meta { grid-row: span 2; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-soft); }
.notice__kind { display: block; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--straw-deep); margin-top: 2px; }
.notice__title { font-weight: 650; }
.notice__title a { color: var(--ink); }
.notice__summary { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 3px !important; }
@media (max-width: 600px) {
  .notice { grid-template-columns: minmax(0, 1fr); }
  .notice__meta { grid-row: auto; display: flex; gap: 10px; align-items: baseline; }
}

.definition-list { margin: 0 0 16px; border-top: 1px solid var(--rule); }
.definition-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.definition-list dt { font-weight: 650; }
.definition-list dd { margin: 0; }
@media (max-width: 600px) { .definition-list div { grid-template-columns: minmax(0, 1fr); } }

.toc { margin-bottom: 18px; }
.toc__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 3px solid var(--ink); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: 5px 0; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; color: var(--straw-deep); margin-right: 10px; }
.rail-link { font-weight: 650; }
.callout { border-left: 4px solid var(--straw); padding: 10px 14px; background: var(--concrete); font-weight: 650; }

/* ---------- Status ---------- */

.status-banner { padding: 16px 20px; margin: 0 0 8px; color: #fff; font-size: 1.25rem; font-weight: 700; border-radius: 2px; }
.status-banner p { margin: 0; }
.status-banner--operational { background: var(--ok); }
.status-banner--maintenance, .status-banner--minor { background: var(--caution); }
.status-banner--major, .status-banner--critical { background: var(--alarm); }
.page-status .with-rail__main > section { margin-top: 36px; }

.component-group { margin-bottom: 26px; }
.component-group__title { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 0 6px; margin: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.components { list-style: none; padding: 0; margin: 0; }
.component { padding: 12px 0 8px; border-bottom: 1px solid var(--rule); }
.component__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.component__name { margin: 0; font-weight: 650; }
.component__note { font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; margin-left: 4px; }
.day-bar { display: block; width: 100%; height: 26px; }
.bar--operational { fill: #7FA886; }
.bar--maintenance { fill: #6E93B3; }
.bar--minor { fill: #D9A836; }
.bar--major { fill: #D9733F; }
.bar--critical { fill: var(--alarm); }
.component__scale { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 0.75rem; color: var(--ink-soft); font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; color: var(--ink-soft); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { width: 12px; height: 12px; display: inline-block; }
.legend__swatch.bar--operational { background: #7FA886; }
.legend__swatch.bar--maintenance { background: #6E93B3; }
.legend__swatch.bar--minor { background: #D9A836; }
.legend__swatch.bar--major { background: #D9733F; }
.legend__swatch.bar--critical { background: var(--alarm); }

.past-day { padding: 14px 0 6px; border-top: 1px solid var(--rule); }
.past-day__date { font-size: 1rem; margin: 0 0 8px; }
.incident-card { border-left: 4px solid var(--rule-strong); padding: 2px 0 2px 14px; margin: 0 0 14px; }
.incident-card--maintenance { border-left-color: #6E93B3; }
.incident-card--minor { border-left-color: var(--straw); }
.incident-card--major, .incident-card--critical { border-left-color: var(--alarm); }
.incident-card__title { margin: 0 0 4px; font-size: 1.0625rem; }
.incident-card__latest { margin: 0 0 4px; font-size: 0.9375rem; max-width: 46em; }
.incident-card__time { margin: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-soft); }
.history-month { margin-top: 30px; }
.history-month h2 { font-size: 1.25rem; padding-bottom: 6px; border-bottom: 3px solid var(--ink); }

.updates { list-style: none; padding: 0; margin: 24px 0; border-top: 3px solid var(--ink); }
.update { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.update__state { margin: 0; font-weight: 700; }
.update__body p { margin: 0 0 6px; max-width: 46em; }
.update__time { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-soft); }
@media (max-width: 600px) { .update { grid-template-columns: minmax(0, 1fr); } }
.status-about { font-size: 0.875rem; color: var(--ink-soft); border-top: 3px solid var(--ink); padding-top: 10px; }

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

.footer { background: var(--peat); color: var(--on-peat-soft); font-size: 0.875rem; padding: 40px 0 28px; margin-top: 0; }
.footer a { color: var(--on-peat); }
.footer a:hover { color: var(--straw); }
.footer__top { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(5, minmax(0, 1fr)); gap: 28px 24px; padding-bottom: 28px; border-bottom: 1px solid var(--peat-2); }
.brand--footer { color: var(--on-peat); margin-bottom: 16px; }
.brand--footer:hover { color: var(--on-peat); }
.brand--footer .mark { color: var(--straw); }
.footer__addresses span { display: block; margin-bottom: 4px; }
.footer__addresses strong { font-family: var(--mono); color: var(--straw); margin-right: 6px; }
.footer__heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--straw); margin: 4px 0 10px; }
.footer__column ul { list-style: none; padding: 0; margin: 0; }
.footer__column li { margin-bottom: 6px; }
.footer__column a { text-decoration: none; }
.footer__column a:hover { text-decoration: underline; }
.footer__certs { padding: 16px 0; border-bottom: 1px solid var(--peat-2); }
.footer__certs p { margin: 0; }
.footer__small { padding-top: 16px; font-size: 0.8125rem; }
.footer__small p { max-width: 64em; margin-bottom: 8px; }
@media (max-width: 1060px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .utility, .masthead nav, .footer__top, .skip-link { display: none; }
  body { background: #fff; }
}

/* ---------- Schematics ---------- */

.schematic { display: block; width: 100%; height: auto; font-family: var(--sans); }
.schematic-figure { margin: 0 0 24px; border: 1px solid var(--rule-strong); background: #FBFBF8; padding: 10px; }
.schematic-figure figcaption { font-size: 0.8125rem; color: var(--ink-soft); padding-top: 8px; border-top: 1px solid var(--rule); margin-top: 8px; }
.sc-water { fill: var(--water-tint); }
.sc-river { fill: none; stroke: #9DBBD2; stroke-width: 14; stroke-linecap: round; }
.sc-river--thin { stroke-width: 8; }
.sc-land { fill: var(--concrete); stroke: var(--rule-strong); }
.sc-route { fill: none; stroke-width: 3; }
.sc-route--a { stroke: var(--straw-deep); }
.sc-route--b { stroke: var(--ink); stroke-dasharray: 9 5; }
.sc-route-label { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.sc-site { fill: var(--peat); }
.sc-site-code { font-family: var(--mono); font-size: 12px; font-weight: 700; fill: var(--straw); }
.sc-place { font-size: 14px; font-weight: 650; fill: var(--ink); }
.sc-place--small { font-size: 12px; font-weight: 400; fill: var(--ink-soft); }
.sc-water-label { font-size: 12px; font-style: italic; fill: var(--water); }
.sc-line { stroke: var(--rule-strong); stroke-dasharray: 3 3; }
.sc-note { font-size: 12px; fill: var(--ink-soft); }
.sc-berm { fill: #E3DDCB; stroke: #9A8F6E; stroke-width: 10; }
.sc-wall { fill: none; stroke: var(--ink); stroke-width: 10; }
.sc-building { fill: #FBFBF8; stroke: var(--ink); stroke-width: 2; }
.sc-yard { fill: var(--concrete-2); stroke: var(--ink); }
.sc-gate circle { fill: var(--straw); stroke: var(--peat); stroke-width: 2; }
.sc-gate text { font-family: var(--mono); font-size: 12px; font-weight: 700; fill: var(--peat); }

/* ---------- Prose, forms, people, misc ---------- */

.prose { font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }
.prose h2, .prose h3 { font-family: var(--sans); }
.prose p, .prose li { max-width: 38em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--straw); font-style: italic; }
.prose table { font-family: var(--sans); }
.with-rail--single { grid-template-columns: minmax(0, 1fr); }
.article-meta { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; margin-bottom: 24px; }
.article-end { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); border-top: 3px solid var(--ink); padding-top: 10px; margin-top: 32px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-family: var(--sans); font-size: 0.9375rem; margin-top: 24px; }
.prev-next a { display: block; border-top: 1px solid var(--rule); padding-top: 8px; }
.prev-next__next { text-align: right; }

.timeline { list-style: none; padding: 0; margin: 0 0 20px; border-top: 3px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.timeline__when { font-family: var(--mono); font-weight: 600; color: var(--straw-deep); }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.person { padding: 18px 0; border-top: 3px solid var(--ink); }
.person h2 { font-size: 1.375rem; margin-bottom: 2px; }
.person__role { color: var(--straw-deep); font-weight: 650; margin-bottom: 10px; }
.person__initials { float: right; width: 56px; height: 56px; margin: 0 0 8px 12px; border: 1px solid var(--rule-strong); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; color: var(--peat); background: var(--concrete); }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }

.form { max-width: 40em; border-top: 3px solid var(--ink); padding-top: 12px; }
.form__row { margin-bottom: 16px; }
.form label, .form legend { display: block; font-weight: 650; margin-bottom: 4px; }
.form .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form input[type="password"], .form select, .form textarea { width: 100%; max-width: 32em; font: inherit; padding: 8px 10px; border: 1px solid var(--rule-strong); border-radius: 2px; background: #fff; color: var(--ink); }
.form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.form__choice { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; }
.button { display: inline-block; font: inherit; font-weight: 700; padding: 10px 18px; border: 2px solid var(--peat); background: var(--peat); color: var(--on-peat); border-radius: 2px; cursor: pointer; text-decoration: none; }
.button:hover { background: var(--ink); color: #fff; }
.form__done { border: 1px solid var(--ok); border-left-width: 5px; padding: 12px 16px; background: #EEF4EE; }

.rate-table td.num { font-family: var(--mono); }
.rate-table th, .rate-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.rate-table thead th { font-size: 0.8125rem; color: var(--ink-soft); border-bottom: 1px solid var(--ink); }
.rate-table { border-top: 3px solid var(--ink); margin-bottom: 12px; }

.notice-box { border: 1px solid var(--caution); border-left-width: 5px; padding: 12px 16px; background: #FBF4E4; margin-bottom: 20px; }
.notice-box p:last-child { margin-bottom: 0; }
.error-page { padding: 60px 0 80px; }
.error-page .figure { font-size: 4rem; color: var(--straw-deep); display: block; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 700px) { .split--even { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Portal ---------- */

.portal-head { background: var(--peat); color: var(--on-peat); }
.portal-head__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 64px; }
.brand--portal { color: var(--on-peat); }
.brand--portal:hover { color: var(--on-peat); }
.brand--portal .mark { color: var(--straw); width: 32px; height: 32px; }
.portal-head__label { margin: 0; font-family: var(--mono); font-size: 0.875rem; color: var(--on-peat-soft); }
.portal-main { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }
.portal-signin { max-width: 34em; }
.portal-help { margin-top: 28px; font-size: 0.9375rem; border-top: 1px solid var(--rule); padding-top: 12px; }
.portal-error { border: 1px solid var(--alarm); border-left-width: 5px; padding: 10px 14px; color: var(--alarm); background: #FBEFEC; }
.portal-foot { border-top: 1px solid var(--rule-strong); font-size: 0.8125rem; color: var(--ink-soft); padding: 14px 0; }
.portal-foot p { margin: 0; }
.uat-stripe { margin: 0; padding: 6px 16px; background: repeating-linear-gradient(-45deg, #F2C94C 0 14px, #E9B93A 14px 28px); color: #1A1406; font-weight: 750; font-size: 0.875rem; text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }
.portal-page--uat .portal-head { background: #3A3A33; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--concrete); padding: 0 4px; border-radius: 2px; }
.portal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 8px 0 12px; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.portal-bar p { margin: 0; }
.portal-signout { font: inherit; font-weight: 650; padding: 4px 12px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); border-radius: 2px; cursor: pointer; }
.portal-tabs ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; padding: 0; margin: 0 0 20px; border-bottom: 3px solid var(--ink); }
.portal-tabs a { display: block; padding: 10px 0 8px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; margin-bottom: -3px; }
.portal-tabs a[aria-current] { border-bottom-color: var(--straw); }
.portal-view h1 { font-size: 1.75rem; }
.portal-view h1:focus { outline: none; }
.portal-view h2 { font-size: 1.125rem; margin-top: 22px; }
.portal-table caption { font-size: 0.875rem; color: var(--ink-soft); }
.portal-table { min-width: 720px; margin-bottom: 18px; }
.portal-figures { margin-bottom: 24px; }
.portal-record { border-top: 1px solid var(--rule); padding-top: 6px; margin-bottom: 18px; }
.portal-filter a[aria-current] { font-weight: 700; color: var(--ink); }
[aria-invalid="true"] { border-color: var(--alarm) !important; border-width: 2px !important; }
.community-notice { border-top: 1px solid var(--rule); padding-top: 12px; margin-bottom: 8px; }
.community-notice h3 { margin-bottom: 2px; }
.vacancy { border-top: 1px solid var(--rule); padding-top: 14px; margin-bottom: 10px; }
.site-summary { margin-bottom: 36px; }
.site-summary .key-figures { margin: 12px 0 14px; }
.news-year h2 { font-size: 1.25rem; margin-top: 28px; }
@media (max-width: 600px) {
  .rate-table td.num, .rate-table th.num { white-space: normal; }
  .rate-table { font-size: 0.875rem; }
  .rate-table th, .rate-table td { overflow-wrap: anywhere; }
}
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.portal-page--uat .form { margin-bottom: 32px; }
.prose .title-block, .prose .section-label, .prose .article-meta, .prose .callout { font-family: var(--sans); }
.prose .title-block { margin-bottom: 20px; max-width: 34em; }
