/* ============================================================
   City of Tema Digital Services — concept civic site
   Palette: harbour blue #0E5A8A · white · container red #D64B33 ·
            crane yellow #F2B705 · steel #DEE7EC
   Verified contrast ratios (WCAG 2.x relative luminance — see #guide):
     ink   #0A2F42 on white  → 14.02   muted #3E5A6B on white → 7.29
     ink   #0A2F42 on steel  → 11.18   muted #3E5A6B on steel → 5.82
     harbour #0E5A8A on white → 7.37 (AAA)   white on harbour → 7.37
     white on harbour-deep #082C43 → 14.47
     red-deep #B8391F on white → 5.76 (critical text, small)
     yellow-deep #8A6404 on white → 5.38 (warning text, small)
     ink on yellow #F2B705 → 7.71 (large text / UI only)
   ============================================================ */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --paper: #F5F9FB;
  --steel: #DEE7EC;
  --steel-line: #C3D2DA;
  --ink: #0A2F42;
  --muted: #3E5A6B;

  --harbour: #0E5A8A;
  --harbour-mid: #12659C;
  --harbour-deep: #082C43;
  --harbour-deeper: #061F30;

  --red: #D64B33;
  --red-deep: #B8391F;
  --red-bg: #FBE7E2;

  --yellow: #F2B705;
  --yellow-deep: #8A6404;
  --yellow-bg: #FDF3D6;

  --info-bg: #E7F1F7;
  --info-deep: #0A5075;

  --focus-ring: #F2B705;
  --focus-ink: #0A2F42;

  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step-0: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.05rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 4.6rem);

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

  --measure: 64ch;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 47, 66, 0.06), 0 10px 30px -12px rgba(10, 47, 66, 0.18);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5.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.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.55em; font-family: var(--sans); }
h1, h2 { font-weight: 700; letter-spacing: -0.015em; color: var(--harbour-deep); }
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.35em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; }
a { color: var(--harbour); text-underline-offset: 0.15em; }
a:not(.btn):not(.service-card):not(.brand):not(.tile-link) { text-decoration-thickness: 0.06em; }
code, .mono {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--steel);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
  padding: 0.08em 0.4em;
}

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.prose { max-width: 76ch; }

/* ---------- Focus & accessibility ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(10, 47, 66, 0.85);
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--harbour-deep);
  color: var(--white);
  padding: 0.75em 1.2em;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 700;
  transition: top 150ms ease;
}
.skip-link:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--harbour-mid);
  margin: 0 0 0.6em;
}

/* ---------- Concept ribbon ---------- */
.phase-banner {
  background: var(--harbour-deeper);
  color: var(--steel);
  font-size: 0.9rem;
  padding: 0.6em 0;
}
.phase-banner .wrap { display: flex; flex-wrap: wrap; gap: 0.4em 0.8em; align-items: baseline; }
.phase-banner strong { color: var(--yellow); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82em; }
.phase-banner a { color: var(--white); text-decoration-color: rgba(255,255,255,0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 249, 251, 0.92);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--steel-line);
}
.masthead { display: flex; align-items: center; justify-content: space-between; padding-block: 0.9rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); transition: opacity 150ms ease; }
.brand:hover { opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .brand { transition: none; } }
.brand-name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--harbour-deep); }
.brand-sub { display: block; font-size: 0.76rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }
.site-nav {
  border-top: none;
}
.site-nav .wrap { padding-block: 0; }
.site-nav ul {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  list-style: none;
  margin: 0; padding: 0.15rem 0 0.7rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.3em 0.1em;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--harbour); border-color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.96rem;
  background: var(--harbour);
  color: var(--white);
  border: 2px solid var(--harbour);
  border-radius: 999px;
  padding: 0.7em 1.5em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.btn:hover { background: var(--harbour-deep); border-color: var(--harbour-deep); transform: translateY(-1px); }
.btn.btn-ghost { background: transparent; color: var(--harbour-deep); }
.btn.btn-ghost:hover { background: var(--steel); }
.btn.btn-red { background: var(--red); border-color: var(--red); }
.btn.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ============================================================
   HERO — isometric build-in scene
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  background: linear-gradient(180deg, #EEF5F9 0%, var(--paper) 72%);
}
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red-deep);
  background: var(--red-bg);
  display: inline-block;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  margin-bottom: 1em;
}
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.hero-fact {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--steel-line);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44ch;
}
.hero-fact strong { color: var(--harbour-deep); }

.iso-stage { position: relative; }
.iso-stage svg { width: 100%; height: auto; display: block; overflow: visible; }

.iso-layer {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  animation: iso-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 130ms + 120ms);
  transform-origin: center bottom;
}
@keyframes iso-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .iso-layer { animation: none !important; opacity: 1; transform: none; }
}

/* ============================================================
   ALERTS — dismissible three-severity demo
   ============================================================ */
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.alert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease;
}
.alert-card.is-dismissed {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  max-height: 0;
  padding-block: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .alert-card { transition: none; }
  .alert-card.is-dismissed { display: none; }
}
.alert-card[data-severity="info"] { background: var(--info-bg); border-color: #BEDCEC; }
.alert-card[data-severity="warning"] { background: var(--yellow-bg); border-color: #F0DC9C; }
.alert-card[data-severity="critical"] { background: var(--red-bg); border-color: #F0C3B7; }
.alert-icon { flex-shrink: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; }
.alert-card[data-severity="info"] .alert-icon { background: var(--info-deep); color: var(--white); }
.alert-card[data-severity="warning"] .alert-icon { background: var(--yellow-deep); color: var(--white); }
.alert-card[data-severity="critical"] .alert-icon { background: var(--red-deep); color: var(--white); }
.alert-icon svg { width: 1.15rem; height: 1.15rem; }
.alert-body .sev-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3em;
}
.alert-card[data-severity="info"] .sev-label { color: var(--info-deep); }
.alert-card[data-severity="warning"] .sev-label { color: var(--yellow-deep); }
.alert-card[data-severity="critical"] .sev-label { color: var(--red-deep); }
.alert-body h3 { margin-bottom: 0.25em; font-size: 1.05rem; }
.alert-body p { margin-bottom: 0; font-size: 0.94rem; color: var(--ink); }
.alert-dismiss {
  background: rgba(10,47,66,0.06);
  border: none;
  border-radius: 50%;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.alert-dismiss:hover { background: rgba(10,47,66,0.14); }
.alert-dismiss svg { width: 1rem; height: 1rem; }
.alert-restore {
  margin-top: 1rem;
  display: none;
  align-items: center;
  gap: 0.6em;
}
.alert-restore.is-visible { display: inline-flex; }
.alert-note { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; }

/* ============================================================
   SERVICE TILES — flat isometric
   ============================================================ */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: minmax(0, 1fr); } }
.tile {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    transform: translateY(-3px);
    border-color: var(--harbour);
    box-shadow: 0 4px 8px rgba(10,47,66,0.08), 0 18px 34px -14px rgba(14,90,138,0.28);
  }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
.tile-icon { width: 60px; height: 52px; margin-bottom: 0.9rem; }
.tile h3 { margin-bottom: 0.3em; font-size: 1.1rem; }
.tile > p { font-size: 0.94rem; color: var(--muted); margin-bottom: 0.9rem; }
.tile details { border-top: 1px dashed var(--steel-line); padding-top: 0.7rem; }
.tile summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--harbour);
  list-style: none;
  display: flex; align-items: center; gap: 0.4em;
}
.tile summary::-webkit-details-marker { display: none; }
.tile summary::before {
  content: "";
  width: 0.55em; height: 0.55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 150ms ease;
}
.tile details[open] summary::before { transform: rotate(45deg); }
.tile-detail { margin-top: 0.8rem; font-size: 0.9rem; }
.tile-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.8rem; margin: 0 0 0.7em; }
.tile-detail dt { color: var(--muted); }
.tile-detail dd { margin: 0; font-weight: 600; }
.concept-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red-deep);
  background: var(--red-bg);
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.6em;
}

/* ============================================================
   REPORT-A-PROBLEM — 3-step mock with map pin
   ============================================================ */
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }
.report-screen {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen-bar {
  background: var(--harbour-deep);
  color: var(--white);
  padding: 0.75em 1em;
  display: flex; align-items: center; gap: 0.7em;
  font-weight: 700;
  font-size: 0.92rem;
}
.step-no {
  width: 1.6em; height: 1.6em;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--harbour-deeper);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.85em;
  flex-shrink: 0;
}
.screen-body { padding: 1.2rem; }
.pin-map {
  position: relative;
  background: var(--steel);
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.pin-map svg.map-base { width: 100%; height: 100%; display: block; }
.pin-drop { position: absolute; left: 58%; top: 40%; transform: translate(-50%, -100%); width: 34px; height: 40px; }
.mock-label { font-weight: 700; margin-bottom: 0.3em; }
.mock-hint { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.7em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.chip {
  font-size: 0.82rem;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  border: 1.5px solid var(--steel-line);
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 150ms ease, color 150ms ease;
}
.chip:hover { border-color: var(--harbour); color: var(--harbour); }
@media (prefers-reduced-motion: reduce) { .chip { transition: none; } }
.chip.is-selected { border-color: var(--harbour); color: var(--harbour); background: var(--info-bg); font-weight: 700; }
.mock-field {
  border: 1.5px solid var(--steel-line);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.8em;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.mock-btn {
  display: block;
  text-align: center;
  background: var(--harbour);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7em;
  font-size: 0.92rem;
}
.report-check { width: 48px; height: 48px; border-radius: 50%; background: var(--info-deep); color: var(--white); display: grid; place-items: center; margin: 0 auto 0.8rem; }
.report-check svg { width: 26px; height: 26px; }
.track-code {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--harbour-deep);
  background: var(--steel);
  border-radius: var(--radius-sm);
  padding: 0.6em;
  margin-bottom: 0.8em;
  letter-spacing: 0.03em;
}
.report-caption { margin-top: 1.1rem; font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   GIS MAP
   ============================================================ */
.map-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,0.9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 1.5rem; }
@media (max-width: 900px) { .map-layout { grid-template-columns: minmax(0, 1fr); } }
.map-figure {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.map-figure svg { width: 100%; height: auto; display: block; }
.map-figure figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }
.map-legend { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; }
.map-legend li { display: flex; align-items: center; gap: 0.7em; font-size: 0.92rem; margin: 0; }
.legend-swatch { width: 1.1em; height: 1.1em; border-radius: 4px; flex-shrink: 0; }
.zone-table-wrap { margin-top: 0; }

/* ============================================================
   TABLES (notices ledger / fees / audit)
   ============================================================ */
.table-scroll { overflow-x: auto; border: 1px solid var(--steel-line); border-radius: var(--radius-sm); margin: 1.2rem 0; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.92rem; }
caption { text-align: left; font-weight: 700; padding: 0.9em 1em 0.3em; color: var(--harbour-deep); }
.caption-note { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 0.2em; }
th, td { padding: 0.65em 1em; text-align: left; border-top: 1px solid var(--steel-line); }
thead th { background: var(--steel); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
td.num, th.num { text-align: right; font-family: var(--mono); }

/* ============================================================
   NOTICES
   ============================================================ */
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .notice-list { grid-template-columns: minmax(0, 1fr); } }
.notice {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  height: 100%;
  border-left: 3px solid var(--steel-line);
  transition: border-color 180ms ease, transform 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .notice:hover { border-left-color: var(--yellow); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .notice { transition: none; } .notice:hover { transform: none; } }
.notice time { font-family: var(--mono); font-size: 0.78rem; color: var(--harbour-mid); font-weight: 700; }
.notice h3 { margin-block: 0.4em 0.3em; font-size: 1.05rem; }
.notice p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: var(--space-6); }
.section-alt { background: var(--steel); }
.section-dark { background: var(--harbour-deep); color: var(--steel); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #C7D9E3; }
.section-head { max-width: 62ch; margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #C7D9E3; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); color: var(--ink); }
.field { margin-bottom: 1.2rem; }
fieldset.field { border: none; padding: 0; }
.field label, fieldset legend { display: block; font-weight: 700; margin-bottom: 0.35em; padding: 0; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--steel-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--harbour); }
.field textarea { min-height: 8em; resize: vertical; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.4em; }
.radio-row { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.5em; font-weight: 400; }
.radio-row input[type="radio"] { flex-shrink: 0; width: 1.1em; height: 1.1em; margin: 0; accent-color: var(--harbour); }
.radio-row label { display: inline; font-weight: 400; margin: 0; }
.form-success {
  background: var(--info-bg);
  border: 1px solid #BEDCEC;
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--info-deep);
}
.form-success h3 { color: var(--info-deep); }
.office-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.office-card h3 { color: var(--white); }
.office-card dl { margin: 0; }
.office-card dt { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--yellow); margin-top: 1em; }
.office-card dt:first-child { margin-top: 0; }
.office-card dd { margin: 0.25em 0 0; }
.office-card dd em { font-style: normal; color: #9DBACB; font-size: 0.88em; }

/* ============================================================
   PROCESS / GUIDE
   ============================================================ */
.callout {
  background: var(--info-bg);
  border-left: 4px solid var(--harbour);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.3rem;
  margin: 1.4rem 0;
}
.section-dark .callout { background: rgba(255,255,255,0.08); border-left-color: var(--yellow); }
.pass-log { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1.4rem; }
.pass-log h4 { font-family: var(--mono); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--yellow); margin-bottom: 0.5em; }
.pass-log ul { padding-left: 1.2em; }
.pass-log li { margin-bottom: 0.5em; }
.audit-table .swatch { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 3px; margin-right: 0.5em; vertical-align: -0.1em; border: 1px solid rgba(255,255,255,0.35); }
.code-block {
  background: var(--harbour-deeper);
  color: #DCEBF3;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.55;
}
.code-block .c { color: #7FB6D9; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--harbour-deeper); color: #A9C2D0; padding-block: var(--space-5) var(--space-4); }
.footer-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: var(--space-4); }
.footer-top svg { flex-shrink: 0; }
.footer-top p { margin: 0; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.14); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); margin-bottom: 0.8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55em; }
.site-footer a { color: #C7DAE5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4em 1.5em; justify-content: space-between; }
.footer-legal p { margin: 0; max-width: none; }
.footer-legal a { color: #C7DAE5; }

@media (max-width: 640px) {
  h1 { max-width: none !important; }
}
