/* ============================================================
   Aburi Municipal Assembly — concept civic site
   Accessibility showpiece: every text pair below is WCAG AAA.
   Verified ratios (see #guide on the page for the full audit):
     ink    #1F2A22 on paper #FDFBF4  → 14.36
     ink    #1F2A22 on sand  #EFE7D8  → 12.10
     muted  #3C4740 on sand  #EFE7D8  →  7.89
     forest #1E4B38 on sand  #EFE7D8  →  8.07
     link   #124A70 on sand  #EFE7D8  →  7.63
     white  #FFFFFF on forest #1E4B38 →  9.91
     white  #FFFFFF on deep  #143427  → 13.55
     gold-text #F4DCA1 on forest      →  7.36 (small labels on dark)
     gold-deep #6E551F on white       →  7.04 (notice dates, log heads)
     gold-deep on sand → 5.73: list bullets only (non-text ≥ 3.0)
     gold-bright #EDCB79 — decorative + badge grounds (ink on it 10.45)
     gold   #8C6D2F — decorative strokes/rules only, never text
   ============================================================ */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Glyph supplement (9 KB): Google's Atkinson Next build lacks the Twi
   vowels (ɛ Ɛ ɔ Ɔ), the Ghana cedi sign (₵), and ≥ — so a six-glyph
   Noto Sans subset, scoped by unicode-range, supplies them instead of
   whatever system font happens to be installed. */
@font-face {
  font-family: "Twi Glyphs";
  src: url("../fonts/noto-glyphs.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+186, U+190, U+254, U+25B, U+20B5, U+2265;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #FDFBF4;
  --sand: #EFE7D8;
  --sand-line: #D9CDB4;
  --white: #FFFFFF;
  --forest: #1E4B38;
  --deep: #143427;
  --ink: #1F2A22;
  --muted: #3C4740;
  --link: #124A70;
  --gold: #8C6D2F;        /* decorative only */
  --gold-deep: #6E551F;   /* text on white only (7.04) */
  --gold-bright: #EDCB79; /* decorative + badge grounds only */
  --gold-text: #F4DCA1;   /* small text on forest/deep (7.36) */
  --focus-bg: #FCD879;
  --focus-ink: #271F04;

  --sans: "Atkinson Hyperlegible Next", "Twi Glyphs", "Atkinson Hyperlegible", system-ui, sans-serif;
  --serif: "Source Serif 4", "Twi Glyphs", Georgia, serif;

  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 3.9rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 4vw + 2.5rem, 7rem);

  --measure: 66ch;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 42, 34, 0.06), 0 6px 24px -8px rgba(31, 42, 34, 0.12);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--focus-bg); color: var(--focus-ink); }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; color: var(--forest); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.4em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--gold-deep); font-weight: 700; }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

/* ---------- Links: always underlined, AAA blue ---------- */
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }

/* GOV.UK-style link focus: gold wash + heavy ink underline — visible on any ground */
a:focus-visible {
  outline: 3px solid transparent;
  color: var(--focus-ink);
  background-color: var(--focus-bg);
  box-shadow: 0 -2px var(--focus-bg), 0 4px var(--focus-ink);
  text-decoration: none;
}

/* Non-link controls: two-colour ring (white inner, deep-blue outer) works on light and dark grounds */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-150%);
  background: var(--focus-bg);
  color: var(--focus-ink);
  font-weight: 700;
  padding: 0.9rem 1.4rem;
  z-index: 100;
  border-bottom-right-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus-visible, .skip-link:focus {
  transform: none;
  box-shadow: 0 4px var(--focus-ink);
}

/* ---------- Concept phase banner ---------- */
.phase-banner {
  background: var(--deep);
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.55rem 0;
  border-bottom: 3px solid var(--gold);
}
.phase-banner .wrap { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.phase-banner strong {
  background: var(--gold-bright);
  color: var(--focus-ink);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
}
.phase-banner a { color: var(--white); text-decoration-color: var(--gold-bright); }

/* ---------- Header ---------- */
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

.site-header {
  background: var(--forest);
  color: var(--white);
  padding: 1.1rem 0 0;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
}
.masthead svg { flex: none; }
.masthead .brand { text-decoration: none; color: var(--white); display: flex; align-items: center; gap: 1rem; }
.masthead .brand:focus-visible { box-shadow: 0 -2px var(--focus-bg), 0 4px var(--focus-ink); }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.7rem);
  line-height: 1.1;
  display: block;
}
.brand-sub {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: 0.3rem;
  font-weight: 500;
}

.site-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  max-width: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.9rem 1.05rem;   /* ≥ 44px tall targets */
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold-bright); }
.site-nav a:focus-visible {
  background: var(--focus-bg);
  color: var(--focus-ink);
  border-bottom-color: var(--focus-ink);
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(var(--sand), var(--paper) 88%);
  border-bottom: 1px solid var(--sand-line);
  overflow: hidden;
}
.hero .wrap { padding: var(--space-5) 0 0; position: relative; }
.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: var(--space-2);
}
.hero-kicker .twi { text-transform: none; letter-spacing: 0.02em; font-weight: 400; font-style: italic; color: var(--muted); }
.hero h1 { max-width: 22ch; margin-bottom: 0.4em; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; line-height: 1.5; }

.search-panel {
  background: var(--white);
  border: 1.5px solid var(--sand-line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
  max-width: 44rem;
  margin: var(--space-4) 0 var(--space-3);
  position: relative;
  z-index: 2;
}
.search-panel label { display: block; font-weight: 700; font-size: var(--step-1); margin-bottom: 0.15rem; }
.search-panel .hint { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.9rem; }
.search-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.search-row input {
  flex: 1 1 16rem;
  min-height: 3.25rem;
  font: inherit;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.search-row button { flex: 0 0 auto; }

.ridge {
  display: block;
  width: min(72rem, 100%);
  margin: -3.5rem auto 0;
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.55rem 1.6rem;
  font: inherit;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: var(--forest);
  color: var(--white);
}
.btn:hover { background: var(--deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white);
  background: var(--deep);
  color: var(--white);
}
a.btn:focus-visible { color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--sand); color: var(--deep); }
a.btn-secondary:focus-visible { color: var(--forest); background: var(--sand); }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--sand); border-block: 1px solid var(--sand-line); }
.section-forest { background: var(--forest); color: var(--white); }
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest .eyebrow { color: var(--gold-text); }
.section-forest p { color: var(--white); }
.section-forest a { color: var(--white); text-decoration-color: var(--gold-bright); }
.section-forest a:focus-visible { color: var(--focus-ink); }

.eyebrow {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section-head { max-width: var(--measure); margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section-forest .section-head p { color: var(--sand); }

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.service-grid li { margin: 0; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  background: var(--white);
  border: 1.5px solid var(--sand-line);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color 140ms ease, transform 140ms ease;
}
.service-card:hover { border-color: var(--forest); transform: translateY(-3px); }
.service-card:focus-visible {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--link);
  outline: 3px solid transparent;
  background: var(--white);
  color: var(--ink);
  border-color: var(--link);
}
.service-card .icon {
  width: 3rem; height: 3rem;
  color: var(--forest);
  background: var(--sand);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.service-card .icon svg { width: 1.75rem; height: 1.75rem; }
.service-card h3 { margin: 0; font-size: 1.18rem; }
.service-card h3 .link-text { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.service-card:hover h3 .link-text { text-decoration-thickness: 3px; }
.service-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.search-status { min-height: 1.6em; font-weight: 500; color: var(--muted); margin-bottom: var(--space-3); }

/* ---------- Portal mock ---------- */
.portal-figure { margin: 0; }
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}
.screen {
  background: var(--white);
  border: 1.5px solid var(--sand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.screen-bar {
  background: var(--forest);
  color: var(--white);
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}
.screen-bar .step-no {
  background: var(--gold-bright);
  color: var(--focus-ink);
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex: none;
}
.screen-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; gap: 0.9rem; }
.screen-body p { margin: 0; }
.mock-label { font-weight: 700; font-size: 0.98rem; }
.mock-hint { color: var(--muted); font-size: 0.92rem; }
.mock-input {
  border: 2px solid var(--ink);
  border-radius: 6px;
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  background: var(--paper);
}
.mock-btn {
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  border-radius: 6px;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}
.mock-rows { display: flex; flex-direction: column; border-top: 1px solid var(--sand-line); }
.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.15rem;
  border-bottom: 1px solid var(--sand-line);
  font-size: 0.98rem;
}
.mock-row dd, .mock-row dt { margin: 0; }
.mock-row dd { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.mock-row.total { font-weight: 700; background: var(--sand); padding-inline: 0.6rem; }
.receipt-check {
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
}
.receipt-check svg { width: 1.7rem; height: 1.7rem; }
.concept-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  background: var(--sand);
  border: 1.5px dashed var(--gold);
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
}
.portal-figure > figcaption {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 0.98rem;
  max-width: var(--measure);
}

/* ---------- Steps (permits) ---------- */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: var(--space-3) 0; }
.step-list > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 var(--space-3) 3.4rem;
  margin: 0;
}
.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.15rem;
  width: 2.35rem; height: 2.35rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step-list > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.5rem;
  bottom: 0.3rem;
  width: 3px;
  background: var(--sand-line);
  border-radius: 2px;
}
.step-list h3 { margin-bottom: 0.25em; }
.step-list p { margin: 0; color: var(--muted); }

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1.5px solid var(--sand-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.table-scroll:focus-visible { outline-offset: -3px; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 40rem;
  font-size: 1rem;
}
caption {
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--forest);
  padding: var(--space-3) var(--space-3) 0.4rem;
}
.caption-note { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.95rem; color: var(--muted); margin-top: 0.3rem; }
th, td { text-align: left; padding: 0.85rem 1.1rem; vertical-align: top; }
thead th {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 3px solid var(--forest);
  white-space: nowrap;
}
tbody th { font-weight: 700; }
tbody tr { border-bottom: 1px solid var(--sand-line); }
tbody tr:last-child { border-bottom: 0; }
tbody tr:nth-child(even) { background: #F7F1E4; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}
.status-adopted { background: var(--forest); color: var(--white); }
.status-draft { background: var(--sand); color: var(--ink); border: 1px solid var(--sand-line); }
.status-scheduled { background: var(--white); color: var(--link); border: 1.5px solid var(--link); }

/* ---------- Announcements ---------- */
.notice-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.notice-list li { margin: 0; }
.notice {
  height: 100%;
  background: var(--white);
  border: 1.5px solid var(--sand-line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.notice time {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.notice h3 { margin: 0; font-size: 1.2rem; }
.notice p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; }
.contact-form {
  color: var(--ink); /* the white card must reset the forest section's white text */
  background: var(--white);
  border: 1.5px solid var(--sand-line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
}
.contact-form p { color: var(--ink); }
.contact-form .hint { color: var(--muted); }
.contact-form a { color: var(--link); text-decoration-color: currentColor; }
.field { margin-bottom: var(--space-3); }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.3rem; padding: 0; }
.field .hint { color: var(--muted); font-size: 0.95rem; margin: -0.1rem 0 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  min-height: 3.25rem;
  padding: 0.6rem 0.9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.radio-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.45rem 0; }
.radio-row input[type="radio"] {
  width: 1.6rem; height: 1.6rem;
  min-height: 0;
  accent-color: var(--forest);
  margin-top: 0.15rem;
  flex: none;
}
.radio-row label { font-weight: 400; margin: 0; }
.form-success {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
.form-success h3 { color: var(--white); margin-bottom: 0.3em; }
.form-success p { color: var(--sand); margin: 0; }
[hidden] { display: none !important; }

.office-card { max-width: 34rem; }
.office-card dl { margin: var(--space-3) 0 0; }
.office-card dt {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: var(--space-3);
}
.office-card dd { margin: 0.25rem 0 0; }

/* ---------- Process & guide ---------- */
.prose { max-width: var(--measure); }
.prose h3 { margin-top: var(--space-4); }
.callout {
  background: var(--sand);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3);
  max-width: var(--measure);
  margin: var(--space-3) 0;
}
.callout p:last-child { margin-bottom: 0; }

.audit-table td:first-child, .audit-table th:first-child { white-space: nowrap; }
.swatch {
  display: inline-block;
  width: 1.05em; height: 1.05em;
  border-radius: 3px;
  border: 1px solid var(--sand-line);
  vertical-align: -0.18em;
  margin-right: 0.45em;
}
.pass-log { list-style: none; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); max-width: none; }
.pass-log > li {
  background: var(--white);
  border: 1.5px solid var(--sand-line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  margin: 0;
}
.pass-log h4 { font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.6rem; }
.pass-log ul { padding-left: 1.2em; margin: 0; }
.pass-log li { font-size: 0.98rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: var(--white);
  padding: var(--space-5) 0 var(--space-4);
  border-top: 5px solid var(--gold);
}
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-bottom: var(--space-4); }
.site-footer h2 { color: var(--white); font-size: 1.15rem; font-family: var(--sans); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--white); text-decoration-color: var(--gold-bright); }
.site-footer a:focus-visible { color: var(--focus-ink); }
.site-footer p { color: var(--sand); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--sand);
}
.footer-legal p { margin-bottom: 0.4em; }
.footer-seal { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--space-3); }

/* ---------- Motion ----------
   Deliberately calm: a civic site's content never hides behind
   scroll-reveal animation. Motion is limited to ≤140ms hovers. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 40rem) {
  .masthead { flex-wrap: wrap; }
  .ridge { margin-top: -1.5rem; }
  th, td { padding: 0.7rem 0.8rem; }
}

@media (forced-colors: active) {
  .service-card, .screen, .notice, .contact-form { border: 1px solid CanvasText; }
}

@media print {
  .site-nav, .skip-link, .phase-banner { display: none; }
  body { background: #fff; }
}
