/* buildingplans.co.za
   The world is the drawing sheet: cool drafting paper, graphite ink, hairline
   rules, a title block in the corner and the council's rubber stamp. Facts that
   are measurements (m², rands, days, erf numbers) are set in mono because on a
   drawing they are dimensions; everything spoken is in the sans. One authored
   motion: the floor plan on the home page draws itself once. */

@font-face { font-family: "Archivo SE"; src: url("/fonts/ArchivoSemiExp-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo SE"; src: url("/fonts/ArchivoSemiExp-750.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/PlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3f5f2;      /* drafting paper, cool, never cream */
  --sheet: #ffffff;
  --ink: #15202a;        /* graphite */
  --ink-2: #46545e;      /* secondary text, 7:1 on paper */
  --ink-3: #5c6870;      /* captions only, 5:1 on paper */
  --rule: #cdd5d7;
  --rule-2: #9fabb0;
  --stamp: #2a43a6;      /* rubber-stamp ink: actions */
  --stamp-ink: #ffffff;
  --stamp-dk: #1f3384;
  --stamp-wash: #e8ecf8;
  --red: #b3261b;        /* the plan examiner's redline */
  --red-wash: #fbecea;
  --green: #1d6a45;      /* approved */
  --green-wash: #e7f2ec;
  --amber: #85560a;      /* depends */
  --amber-wash: #f8f0e0;
  --wa: #1f7a4d;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo SE", "Instrument Sans", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --measure: 68ch;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  font-kerning: normal; text-rendering: optimizeLegibility;
}
::selection { background: var(--stamp); color: var(--stamp-ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp-dk); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 1px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.012em; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.35rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); margin-top: 2.6em; margin-bottom: .55em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.9em; margin-bottom: .4em; }
p { margin: 0 0 1em; }
.num, .mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 58ch; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 0; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; margin-right: 10px; }
.brand span { color: var(--ink-3); font-weight: 600; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 8px 11px; border-radius: var(--r); }
.nav a:hover, .nav a[aria-current] { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.top .btn { padding: 9px 14px; font-size: .95rem; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: var(--r); font-weight: 600; font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu__panel { display: grid; }
.menu__panel { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--paper); border-bottom: 1px solid var(--rule-2); padding: 8px var(--gut) 18px; }
.menu__panel a { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 1020px) { .nav { display: none; } .menu { display: block; } .top .btn--wa-top { display: none; } }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 600 1rem/1.2 var(--sans); padding: 14px 20px; border-radius: var(--r); border: 1px solid transparent; background: var(--stamp); color: var(--stamp-ink); text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s; min-height: 48px; }
.btn:hover { background: var(--stamp-dk); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: #17603c; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }

/* ── the sheet: hero with title block ──────────────────────────────────── */
.crumbs { font-size: .88rem; color: var(--ink-3); padding-top: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--rule-2); }

.hero { padding: 34px 0 54px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 18px; }
.hero--plain .hero__grid { grid-template-columns: minmax(0, 1fr) 330px; }
@media (max-width: 900px) { .hero__grid, .hero--plain .hero__grid { grid-template-columns: 1fr; } }

/* Title block: the corner of every architectural drawing. Each field is a
   real fact about the page, never decoration. */
.tblock { background: var(--sheet); border: 1.5px solid var(--ink); font-size: .9rem; }
.tblock__row { display: grid; grid-template-columns: 112px 1fr; border-top: 1px solid var(--ink); }
.tblock__row:first-child { border-top: 0; }
.tblock dt { padding: 9px 10px; color: var(--ink-3); font-size: .8rem; border-right: 1px solid var(--rule); line-height: 1.35; }
.tblock dd { margin: 0; padding: 9px 12px; line-height: 1.4; }
.tblock__head { padding: 12px 12px 10px; border-bottom: 1.5px solid var(--ink); display: flex; gap: 12px; align-items: center; }
.tblock__head svg { width: 38px; height: 38px; flex: none; }
.tblock__head b { font-family: var(--display); font-size: 1.02rem; display: block; line-height: 1.2; }
.tblock__head small { color: var(--ink-3); font-size: .8rem; }

/* The council stamp. Rubber stamps really are set in capitals. */
.stamp { display: inline-grid; place-items: center; text-align: center; padding: 10px 18px 9px; border: 3px double currentColor; border-radius: 5px; transform: rotate(-3.5deg); font: 700 1.02rem/1.15 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--red); background: color-mix(in srgb, currentColor 6%, transparent); mix-blend-mode: multiply; }
.stamp small { display: block; font: 500 .68rem/1.3 var(--mono); letter-spacing: .02em; text-transform: none; margin-top: 3px; }
.stamp--yes { color: var(--red); }
.stamp--no { color: var(--green); }
.stamp--depends { color: var(--amber); }
.verdict { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.verdict p { margin: 0; max-width: 48ch; color: var(--ink-2); }

/* ── home: checker + plan drawing ──────────────────────────────────────── */
.home-hero { padding: 40px 0 30px; }
.home-hero .lede { margin-top: 18px; }
.home-hero .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); }
.home-hero .plan { position: sticky; top: 90px; }
@media (max-width: 900px) { .home-hero .hero__grid { grid-template-columns: 1fr; } .home-hero .plan { position: static; } }
.home-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); max-width: 13ch; }
.plan { position: relative; background: var(--sheet); border: 1.5px solid var(--ink); padding: 18px; }
.plan svg { width: 100%; height: auto; }
.plan .bnd { fill: none; stroke: var(--ink); stroke-width: 2; }
.plan .bl { fill: none; stroke: var(--ink-3); stroke-width: 1.1; stroke-dasharray: 7 4; }
.plan .house { fill: var(--sheet); stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: miter; }
.plan .iw { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.plan .new rect { stroke: none; }
.plan .new path { stroke: var(--red); stroke-width: 2.6; }
.plan .dim, .plan .kerb, .plan .drive { fill: none; stroke: var(--ink-3); stroke-width: .9; }
.plan .north path { fill: var(--ink); }
.plan text { font: 500 11.5px var(--mono); fill: var(--ink-2); }
.plan text.rm { font: 600 12.5px var(--sans); fill: var(--ink); }
.plan .lbl--new { fill: var(--red); font-weight: 600; }
.plan .lbl--bl { fill: var(--ink-3); }
.plan .stampmark rect { fill: color-mix(in srgb, var(--stamp) 7%, transparent); stroke: var(--stamp); stroke-width: 3; }
.plan .stampmark rect.in { fill: none; stroke-width: 1.2; }
.plan .stampmark text.st1 { font: 700 21px var(--display); letter-spacing: .08em; fill: var(--stamp); }
.plan .stampmark text.st2 { font: 500 10px var(--mono); fill: var(--stamp); }
.plan .stampmark { mix-blend-mode: multiply; }
.plan__cap { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ink); margin: 14px -18px -18px; padding: 9px 14px; font-size: .8rem; color: var(--ink-3); }
.plan__cap span:last-child { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .plan.is-drawing [data-draw] { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s cubic-bezier(.16, 1, .3, 1) forwards; }
  .plan.is-drawing .house { animation-delay: .45s; fill-opacity: 0; animation-name: draw, fillin; }
  .plan.is-drawing .bl, .plan.is-drawing .iw, .plan.is-drawing .dim, .plan.is-drawing .drive, .plan.is-drawing text, .plan.is-drawing .north { opacity: 0; animation: ink .5s ease-out .9s forwards; }
  .plan.is-drawing .new, .plan.is-drawing .lbl--new { opacity: 0; animation: ink .5s ease-out 1.35s forwards; }
  .plan.is-drawing .stampmark { opacity: 0; transform-origin: 0 0; animation: thump .42s cubic-bezier(.2, .9, .3, 1.25) 1.9s forwards; }
  .plan.is-drawing .stampmark text { opacity: 1; animation: none; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fillin { to { fill-opacity: 1; } }
  @keyframes ink { to { opacity: 1; } }
  @keyframes thump { 0% { opacity: 0; transform: rotate(-6deg) scale(1.5); } 70% { opacity: .95; transform: rotate(1deg) scale(.97); } 100% { opacity: .92; transform: none; } }
}
.checker { margin-top: 30px; background: var(--sheet); border: 1px solid var(--rule-2); padding: 18px 18px 20px; }
.checker h2 { font-size: 1.08rem; margin: 0 0 12px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .95rem/1.2 var(--sans); padding: 9px 13px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); border-radius: 100px; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.checker__out { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 16px; display: none; gap: 18px; grid-template-columns: auto 1fr; align-items: center; }
.checker__out.is-on { display: grid; }
.checker__out p { margin: 0 0 8px; }
.checker__out .stamp { font-size: .86rem; }
@media (max-width: 560px) { .checker__out.is-on { grid-template-columns: 1fr; } }

/* ── sections ──────────────────────────────────────────────────────────── */
.band { padding: 64px 0; border-top: 1px solid var(--rule); }
.band--sheet { background: var(--sheet); }
.band > .wrap > h2:first-child, .band h2.first { margin-top: 0; }
.band__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.band__head h2 { margin: 0; }
.band__head p { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* Schedule: the drawing's legend table. Used for services, councils, items. */
.sched { border-top: 1.5px solid var(--ink); }
.sched a.row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 8px 28px; padding: 17px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; align-items: baseline; }
.sched a.row:hover { background: var(--sheet); }
.sched a.row:hover b { color: var(--stamp); }
.sched b { font-family: var(--display); font-weight: 600; font-size: 1.06rem; line-height: 1.25; }
.sched span { color: var(--ink-2); }
.sched i { font-style: normal; color: var(--ink-3); font-size: .85rem; white-space: nowrap; }
@media (max-width: 720px) { .sched a.row { grid-template-columns: 1fr; gap: 3px; } .sched i { white-space: normal; } }
.sched--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
.sched--2 a.row { grid-template-columns: minmax(0, 1fr) auto; }
.sched--2 a.row span { grid-column: 1 / -1; }
.sched--2::before { content: ""; grid-column: 1 / -1; border-top: 1.5px solid var(--ink); }
@media (max-width: 820px) { .sched--2 { grid-template-columns: 1fr; } }
.tag { display: inline-block; font: 600 .74rem/1 var(--sans); padding: 5px 8px; border-radius: 100px; white-space: nowrap; }
.tag--yes { color: var(--red); background: var(--red-wash); }
.tag--no { color: var(--green); background: var(--green-wash); }
.tag--depends { color: var(--amber); background: var(--amber-wash); }

/* Steps really are a sequence, so they are numbered. */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.steps li { counter-increment: s; padding: 20px 22px 6px 0; border-right: 1px solid var(--rule); padding-left: 0; }
.steps li + li { padding-left: 22px; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s); display: block; font: 500 .85rem var(--mono); color: var(--ink-3); margin-bottom: 10px; }
.steps b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(2) { border-right: 0; } .steps li:nth-child(3) { padding-left: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--rule); } }

/* ── long-form (guides, items, councils) ───────────────────────────────── */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); padding-top: 6px; padding-bottom: 70px; align-items: start; }
.doc__aside { position: sticky; top: 90px; display: grid; gap: 18px; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; } .doc__aside { position: static; } }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; margin: 6px 0 1.4em; font-size: .95rem; }
.prose th { text-align: left; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding: 8px 10px 8px 0; vertical-align: bottom; }
.prose td { border-bottom: 1px solid var(--rule); padding: 9px 10px 9px 0; vertical-align: top; }
.prose td.num, .prose th.num { text-align: right; white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.note { background: var(--sheet); border: 1px solid var(--rule-2); padding: 14px 16px; margin: 1.2em 0; font-size: .97rem; }
.note--warn { background: var(--red-wash); border-color: color-mix(in srgb, var(--red) 35%, white); }
.note p:last-child { margin: 0; }
.sources { margin-top: 2.4em; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--ink-2); }
.sources h2 { font-size: 1rem; font-family: var(--sans); font-weight: 600; margin: 0 0 8px; letter-spacing: 0; }
.sources ol { padding-left: 1.3em; margin: 0; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.checked { font-size: .88rem; color: var(--ink-3); }

.card { background: var(--sheet); border: 1px solid var(--rule-2); padding: 18px; }
.card h2, .card h3 { font-size: 1.08rem; margin: 0 0 8px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.card p { font-size: .97rem; color: var(--ink-2); }
.card .btn { width: 100%; }
.card ul { padding-left: 1.1em; margin: 0; font-size: .95rem; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 36px 17px 2px; position: relative; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font: 400 1.5rem var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 2px 14px; color: var(--ink-2); max-width: var(--measure); }

/* ── form ──────────────────────────────────────────────────────────────── */
.form { background: var(--sheet); border: 1.5px solid var(--ink); padding: 20px; }
.form h2 { font-size: 1.2rem; margin: 0 0 4px; }
.form > p { color: var(--ink-2); font-size: .95rem; margin-bottom: 14px; }
.field { display: grid; gap: 5px; margin-bottom: 13px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 11px 12px; width: 100%; min-height: 46px; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--stamp); outline-offset: 0; border-color: var(--stamp); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.form .btn { width: 100%; }
.form__fine { font-size: .82rem; color: var(--ink-3); margin: 10px 0 0; }
.hp { position: absolute; left: -5000px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.err { color: var(--red); font-size: .9rem; margin: 0 0 10px; }

/* ── tools ─────────────────────────────────────────────────────────────── */
.tool { background: var(--sheet); border: 1.5px solid var(--ink); padding: 22px; max-width: 860px; }
.tool__out { margin-top: 18px; border-top: 1.5px solid var(--ink); padding-top: 16px; }
.tool__big { font: 500 clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem)/1.1 var(--mono); letter-spacing: -0.02em; }
.tool__rows { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
.tool__rows td { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.tool__rows td:last-child { text-align: right; font-family: var(--mono); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--ink); margin-top: 4px; }
.checklist small { display: block; color: var(--ink-3); }

/* ── areas map ─────────────────────────────────────────────────────────── */
.gmap { background: var(--sheet); border: 1.5px solid var(--ink); padding: 10px; }
.gmap svg { width: 100%; height: auto; }
.gmap .muni { fill: var(--paper); stroke: var(--rule-2); stroke-width: .6; }
.gmap a circle { fill: var(--ink); }
.gmap a:hover circle, .gmap a:focus circle { fill: var(--stamp); }
.gmap text { font: 600 8.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 3px; }
.gmap .mtext { font: 500 8px var(--mono); fill: var(--ink-3); stroke: none; }
.towns { columns: 3 220px; column-gap: 32px; }
.towns section { break-inside: avoid; margin-bottom: 22px; }
.towns h2 { margin: 0 0 6px; font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.towns ul { list-style: none; padding: 0; margin: 0; }
.towns li { padding: 3px 0; }
.sublist { columns: 4 160px; column-gap: 24px; font-size: .93rem; color: var(--ink-2); padding: 0; list-style: none; margin: 0; }
.sublist li { padding: 2px 0; break-inside: avoid; }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #c7d0d4; padding: 52px 0 30px; margin-top: 0; font-size: .94rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font: 600 .95rem var(--sans); color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 4px 0; }
.foot__legal { border-top: 1px solid #2f3c46; margin-top: 34px; padding-top: 18px; color: #9aa7ae; font-size: .85rem; }
.foot__legal p { max-width: 90ch; }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* Phone dock: the action stays in reach without covering content. */
.dock { display: none; }
@media (max-width: 720px) {
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 96%, transparent); border-top: 1px solid var(--rule-2); }
  .dock .btn { flex: 1; }
  body { padding-bottom: 78px; }
}

@media print {
  .top, .foot, .dock, .acts, .form, .crumbs, .doc__aside { display: none !important; }
  body { background: #fff; }
  .tool { border: 0; padding: 0; }
}

/* utilities (inline style attributes are blocked by the CSP) */
.pb70 { padding-bottom: 70px; } .pb30 { padding-bottom: 30px; } .pt40 { padding-top: 40px; }
.mt22 { margin-top: 22px; } .mt20 { margin-top: 20px; } .mt12 { margin-top: 12px; } .mb2 { margin-bottom: 2em; }
.mt-form { margin-top: 2.4em; } .m0 { margin: 0; }
.tool__label { margin: 0; color: var(--ink-2); }
.brand--foot { color: #fff; } .brand--foot:hover { color: #fff; } .brand--foot span { color: #9aa7ae; }
.gmap a circle.on { fill: var(--red); }
.tblock dl { margin: 0; }
