/* Site styles of the LB Omgevingsadvies tools, taken from the NIBM-check (2026-11-20) and trimmed
   to what the starter uses. Hand-written CSS, self-hosted variable font, no framework. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.477b564b86e0.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}


/* ---------- Tokens ---------- */
:root {
  --paper: #f6f6f2;
  --ground: #ffffff;
  --ink: #16201a;
  --ink-2: #3d4a42;
  --muted: #5f6c65;
  --line: #dcdfd8;
  --line-2: #c3c9c0;
  --n2k-deep: #1f5c38;
  --n2k-soft: #e3efe6;
  --signal: #bf3a1d;
  --signal-2: #a3301a;
  --signal-soft: #fbe9e4;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --r: 4px;
  --shadow-panel: 0 24px 48px -28px rgba(22, 32, 26, 0.38), 0 3px 8px -3px rgba(22, 32, 26, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --container: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line-2) var(--paper); }
body {
  margin: 0; font-family: var(--font); font-optical-sizing: auto; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; caret-color: var(--signal);
}
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1, h2 { font-stretch: 100%; letter-spacing: -0.008em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--line-2); transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: var(--signal); }
ol, ul { margin: 0; padding: 0; }
strong { font-weight: 650; }
img, svg { max-width: 100%; }
::selection { background: var(--signal-soft); color: var(--signal-2); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 38rem; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; }
.page-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 0.9rem; background: var(--ink); color: #fff; border-radius: var(--r); }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: rgba(246, 246, 242, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow 0.4s var(--ease); }
.nav { display: flex; align-items: center; gap: 2rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.brand-mark circle { fill: var(--signal); stroke: none; }
.brand-name { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; }
.brand-name span { font-weight: 400; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { white-space: nowrap; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 0.3rem 0; border-bottom: 1.5px solid transparent; transition: border-color 0.25s var(--ease), color 0.25s; }
.nav-links a:hover { color: var(--ink); border-color: var(--signal); }
.nav-links a[aria-current] { color: var(--ink); border-color: var(--signal); }
/* The tools domain (stikstoftool.nl): its own wordmark, the same system */
.brand-stack { display: flex; flex-direction: column; line-height: 1.05; }
.brand-tools .brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.025em; }
.brand-by { margin-top: 0.2rem; font-size: 0.72rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
/* A link that leaves for the company site: a small outward arrow after its text */
.link-out svg { width: 0.72em; height: 0.72em; margin-left: 0.3em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.35rem; border: 1px solid transparent; border-radius: var(--r); font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 8px 18px -12px rgba(191, 58, 29, 0.9); }
.btn-primary:hover { background: var(--signal-2); box-shadow: 0 12px 22px -12px rgba(163, 48, 26, 0.9); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-about p { margin: 1rem 0 0; font-size: 0.95rem; color: var(--ink-2); max-width: 36rem; }
.footer-title { font-size: 0.95rem; font-weight: 650; margin: 0 0 0.6rem; }
.footer-grid p { font-size: 0.95rem; color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-attrib { flex-basis: 100%; }
.site-footer-slim { padding-top: 2rem; }
.footer-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.footer-owner { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.footer-owner .brand-mark { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.95rem; }
.footer-links a { color: var(--ink-2); }
.site-footer-slim .footer-bottom { margin-top: 1.5rem; }

/* ---------- Forms ---------- */
.form-section { background: var(--paper); }
.form-head { max-width: 40rem; margin-bottom: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="url"], .field select, .field textarea { width: 100%; padding: 0.72rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 32, 26, 0.12); }
.field .help { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }
.field .error { font-size: 0.85rem; color: var(--signal-2); margin: 0.3rem 0 0; font-weight: 600; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--signal); }
.field-checkbox label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.field-checkbox input { margin-top: 0.3rem; accent-color: var(--signal); }
.form-actions { display: grid; gap: 0.75rem; }
.form-foot { margin-top: 2rem; }
.form-switch { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
.alert { padding: 1rem 1.25rem; border-radius: var(--r); margin-bottom: 1.5rem; border: 1px solid; }
.alert-error { background: var(--signal-soft); color: #7a2a1b; border-color: #efc6bb; }
.alert-success { background: var(--n2k-soft); color: var(--n2k-deep); border-color: #bcd9c6; }
.card { background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 1.5rem 1.75rem; margin: 1.5rem 0; }
.card ol { padding-left: 1.2rem; }
.card li { margin-bottom: 0.5rem; }


/* ---------- The tool page ---------- */
main > .form-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.field textarea { font-family: var(--font); }
.result { margin-top: 2.5rem; padding: 1.5rem clamp(1.25rem, 3vw, 2rem); background: var(--ground); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel); }
.result h2 { font-size: 1.2rem; }
.result-value { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--ink-2); }
.result-number { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.notice { margin: 1.25rem 0 0; padding: 0.8rem 1rem; border-left: 3px solid var(--signal); background: var(--signal-soft); border-radius: 0 var(--r) var(--r) 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Vergunningvrij-check ---------- */
.plain-list { list-style: disc; padding-left: 1.2rem; }
.plain-list li { margin-bottom: 0.6rem; }
.fold { margin: 1rem 0; padding: 0.6rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.fold > summary { cursor: pointer; font-weight: 600; }
.fold[open] > summary { margin-bottom: 0.8rem; }
.terms dt { font-weight: 600; margin-top: 0.7rem; }
.terms dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- The start page (templates/tool/page.html, apps/tool/picker.py) ----------
   The list is the control; the drawings above it are its key, numbered like the list, in the
   company's line style. Hovering a row fills its number on the drawing and the other way round,
   with :has() only (no script), as the legend rows of the company's landing page light the map. */
.elsewhere { max-width: 44rem; margin: 0 0 2.5rem; padding: 0.85rem 1.1rem 0.95rem; background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--r); }
.elsewhere h2 { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; }
.elsewhere p { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); }
.elsewhere a { white-space: nowrap; }
.pick-title { margin: 0 0 0.3rem; font-size: clamp(1.3rem, 2vw, 1.55rem); }
.pick-hint { margin: 0 0 1.25rem; font-size: 0.95rem; color: var(--ink-2); }
.picker { display: grid; gap: 2.25rem 1.75rem; align-items: start; }
.pick-part h3 { margin: 0 0 0.6rem; font-size: 1.12rem; }
.pick-svg { display: block; width: 100%; height: auto; margin: 0 0 1.1rem; background: var(--ground); border: 1px solid var(--line-2); border-radius: 6px; }
.work-group { margin: 0 0 1.1rem; }
.work-group h4 { margin: 0 0 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.work-list { list-style: none; border-top: 1px solid var(--line-2); }
.work-list li { border-bottom: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.75rem; align-items: start; min-height: 44px; padding: 0.6rem 0.5rem 0.62rem 0.15rem; color: var(--ink); text-decoration: none; transition: background-color 0.2s; }
.work-row:hover, .work-row:focus-visible { background: var(--ground); }
.work-row:hover .work-name, .work-row:focus-visible .work-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--signal); text-underline-offset: 0.18em; }
.mk-key { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 0.05rem; background: var(--ground); border: 1.5px solid var(--ink); border-radius: 50%; font-size: 0.7rem; font-weight: 700; line-height: 1; transition: background-color 0.2s, color 0.2s; }
.work-row:hover .mk-key, .work-row:focus-visible .mk-key { background: var(--ink); color: #fff; }
.work-name { display: block; font-weight: 600; line-height: 1.3; }
.work-law { display: block; margin-top: 0.12rem; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.page-note { max-width: 44rem; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.page-note h2 { margin: 0 0 0.5rem; font-size: 1.12rem; }
.page-note p, .page-note li { font-size: 0.95rem; color: var(--ink-2); }
.source-line { margin-top: 1rem; }
@media (min-width: 720px) { .picker { grid-template-columns: 1fr 1fr; } }

.pk-roof { fill: #f1f1ee; }
.pk-tiles { fill: none; stroke: var(--line); stroke-width: 1; }
.pk-ridge { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.pk-wall { fill: var(--ground); stroke: var(--ink); stroke-width: 1.25; }
.pk-wall-next { fill: var(--paper); stroke: var(--line-2); stroke-width: 1; }
.pk-party { stroke: var(--line-2); stroke-width: 1; }
.pk-gutter { fill: var(--ground); stroke: var(--ink); stroke-width: 1; }
.pk-thing { fill: var(--ground); stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; }
.pk-edge { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.pk-glass { fill: rgba(22, 32, 26, 0.07); stroke: var(--ink-2); stroke-width: 1; }
.pk-thin { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.pk-panel { fill: rgba(22, 32, 26, 0.16); stroke: var(--ink); stroke-width: 1; }
.pk-slab { fill: var(--ink-2); }
.pk-rail { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.pk-screen { fill: var(--paper); }
.pk-awning { fill: var(--ground); stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; }
.pk-ground { stroke: var(--ink); stroke-width: 1.5; }
.pk-water { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.pk-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pk-mast { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.pk-flag { fill: var(--ground); stroke: var(--ink); stroke-width: 1.25; }
.pk-fence { fill: var(--ground); stroke: var(--ink); stroke-width: 1.1; }
.mk { cursor: pointer; text-decoration: none; }
.mk-dot { fill: var(--ground); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.2s; }
.mk-n { font-size: 11px; font-weight: 700; fill: var(--ink); pointer-events: none; transition: fill 0.2s; }
.mk:hover .mk-dot { fill: var(--ink); }
.mk:hover .mk-n { fill: #fff; }
.picker:has(.work-row[data-n="1"]:is(:hover, :focus-visible)) .mk[data-n="1"] .mk-dot,
.picker:has(.work-row[data-n="2"]:is(:hover, :focus-visible)) .mk[data-n="2"] .mk-dot,
.picker:has(.work-row[data-n="3"]:is(:hover, :focus-visible)) .mk[data-n="3"] .mk-dot,
.picker:has(.work-row[data-n="4"]:is(:hover, :focus-visible)) .mk[data-n="4"] .mk-dot,
.picker:has(.work-row[data-n="5"]:is(:hover, :focus-visible)) .mk[data-n="5"] .mk-dot,
.picker:has(.work-row[data-n="6"]:is(:hover, :focus-visible)) .mk[data-n="6"] .mk-dot,
.picker:has(.work-row[data-n="7"]:is(:hover, :focus-visible)) .mk[data-n="7"] .mk-dot,
.picker:has(.work-row[data-n="8"]:is(:hover, :focus-visible)) .mk[data-n="8"] .mk-dot,
.picker:has(.work-row[data-n="9"]:is(:hover, :focus-visible)) .mk[data-n="9"] .mk-dot,
.picker:has(.work-row[data-n="10"]:is(:hover, :focus-visible)) .mk[data-n="10"] .mk-dot,
.picker:has(.work-row[data-n="11"]:is(:hover, :focus-visible)) .mk[data-n="11"] .mk-dot,
.picker:has(.work-row[data-n="12"]:is(:hover, :focus-visible)) .mk[data-n="12"] .mk-dot,
.picker:has(.work-row[data-n="13"]:is(:hover, :focus-visible)) .mk[data-n="13"] .mk-dot,
.picker:has(.work-row[data-n="14"]:is(:hover, :focus-visible)) .mk[data-n="14"] .mk-dot,
.picker:has(.work-row[data-n="15"]:is(:hover, :focus-visible)) .mk[data-n="15"] .mk-dot,
.picker:has(.work-row[data-n="16"]:is(:hover, :focus-visible)) .mk[data-n="16"] .mk-dot { fill: var(--ink); }
.picker:has(.work-row[data-n="1"]:is(:hover, :focus-visible)) .mk[data-n="1"] .mk-n,
.picker:has(.work-row[data-n="2"]:is(:hover, :focus-visible)) .mk[data-n="2"] .mk-n,
.picker:has(.work-row[data-n="3"]:is(:hover, :focus-visible)) .mk[data-n="3"] .mk-n,
.picker:has(.work-row[data-n="4"]:is(:hover, :focus-visible)) .mk[data-n="4"] .mk-n,
.picker:has(.work-row[data-n="5"]:is(:hover, :focus-visible)) .mk[data-n="5"] .mk-n,
.picker:has(.work-row[data-n="6"]:is(:hover, :focus-visible)) .mk[data-n="6"] .mk-n,
.picker:has(.work-row[data-n="7"]:is(:hover, :focus-visible)) .mk[data-n="7"] .mk-n,
.picker:has(.work-row[data-n="8"]:is(:hover, :focus-visible)) .mk[data-n="8"] .mk-n,
.picker:has(.work-row[data-n="9"]:is(:hover, :focus-visible)) .mk[data-n="9"] .mk-n,
.picker:has(.work-row[data-n="10"]:is(:hover, :focus-visible)) .mk[data-n="10"] .mk-n,
.picker:has(.work-row[data-n="11"]:is(:hover, :focus-visible)) .mk[data-n="11"] .mk-n,
.picker:has(.work-row[data-n="12"]:is(:hover, :focus-visible)) .mk[data-n="12"] .mk-n,
.picker:has(.work-row[data-n="13"]:is(:hover, :focus-visible)) .mk[data-n="13"] .mk-n,
.picker:has(.work-row[data-n="14"]:is(:hover, :focus-visible)) .mk[data-n="14"] .mk-n,
.picker:has(.work-row[data-n="15"]:is(:hover, :focus-visible)) .mk[data-n="15"] .mk-n,
.picker:has(.work-row[data-n="16"]:is(:hover, :focus-visible)) .mk[data-n="16"] .mk-n { fill: #fff; }
.picker:has(.mk[data-n="1"]:hover) .work-row[data-n="1"] .mk-key,
.picker:has(.mk[data-n="2"]:hover) .work-row[data-n="2"] .mk-key,
.picker:has(.mk[data-n="3"]:hover) .work-row[data-n="3"] .mk-key,
.picker:has(.mk[data-n="4"]:hover) .work-row[data-n="4"] .mk-key,
.picker:has(.mk[data-n="5"]:hover) .work-row[data-n="5"] .mk-key,
.picker:has(.mk[data-n="6"]:hover) .work-row[data-n="6"] .mk-key,
.picker:has(.mk[data-n="7"]:hover) .work-row[data-n="7"] .mk-key,
.picker:has(.mk[data-n="8"]:hover) .work-row[data-n="8"] .mk-key,
.picker:has(.mk[data-n="9"]:hover) .work-row[data-n="9"] .mk-key,
.picker:has(.mk[data-n="10"]:hover) .work-row[data-n="10"] .mk-key,
.picker:has(.mk[data-n="11"]:hover) .work-row[data-n="11"] .mk-key,
.picker:has(.mk[data-n="12"]:hover) .work-row[data-n="12"] .mk-key,
.picker:has(.mk[data-n="13"]:hover) .work-row[data-n="13"] .mk-key,
.picker:has(.mk[data-n="14"]:hover) .work-row[data-n="14"] .mk-key,
.picker:has(.mk[data-n="15"]:hover) .work-row[data-n="15"] .mk-key,
.picker:has(.mk[data-n="16"]:hover) .work-row[data-n="16"] .mk-key { background: var(--ink); color: #fff; }

/* ---------- The questions (templates/tool/_field.html) ----------
   A choice is a set of radio buttons drawn as white rows (or side by side when the options are
   short, "Ja" and "Nee"): one tap answers it, and none is checked until the visitor picks one.
   A number is a narrow input with its unit beside it. */
.back-link { margin: 0 0 0.9rem; font-size: 0.92rem; }
.back-link a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-2); }
.back-link a::before { content: ""; width: 0.45rem; height: 0.45rem; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.form-head .lead { margin-bottom: 0.4rem; }
.law-words { margin: 0; font-size: 0.92rem; color: var(--muted); }
.ask { margin-top: 0.5rem; }
.q-group { display: grid; gap: 0.1rem; }
.q-heritage { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line-2); }
.q-heritage .fold { margin-top: 0; }
.field-choice { min-width: 0; margin: 0 0 1.25rem; padding: 0; border: 0; }
.field-choice legend { padding: 0; margin-bottom: 0.45rem; font-weight: 600; font-size: 0.93rem; line-height: 1.4; }
.field-choice .help { margin: -0.15rem 0 0.55rem; max-width: 44rem; }
.choices { display: grid; gap: 0.4rem; }
.is-inline .choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.field .choice label { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 44px; margin: 0; padding: 0.62rem 0.9rem; background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--r); font-size: 0.97rem; font-weight: 500; line-height: 1.35; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.is-inline .choice label { min-width: 6.5rem; padding-right: 1.2rem; }
.choice label::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; background: var(--ground); border: 1.5px solid var(--line-2); border-radius: 50%; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.choice input:hover + label { border-color: var(--ink); }
.choice input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + label::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--ground); }
.choice input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }
.field-error .choice label { border-color: var(--signal); }
.field .help-when { margin: -0.2rem 0 0.45rem; }
.field-error input.num-input { border-color: var(--signal); }
.num { display: flex; align-items: center; gap: 0.55rem; }
.field input.num-input { width: 7.5rem; text-align: right; }
.num-unit { font-weight: 500; color: var(--ink-2); }
.form-actions { margin-top: 1.5rem; }
.form-actions .btn { justify-self: stretch; } /* full width, as the sister tools' button */
.form-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.form-note a { color: var(--ink-2); white-space: nowrap; }

/* ---------- The result (templates/tool/_result.html) ----------
   Not a panel on a panel: the result lies on the paper. On top two answers of equal weight, one
   per track, each with what stays open beside it, then the municipality's plan as the third part
   (dashed: the tool does not test it). Below, per track, the conditions as legend rows between
   hairlines. The side of a condition differs in form only (where the dot lies, the weight of the
   words), never in a warning colour or a tick. */
.result { margin-top: clamp(2.5rem, 6vw, 3.75rem); padding: 0; background: none; border: 0; box-shadow: none; scroll-margin-top: calc(var(--header-h) + 1rem); }
.result > h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 0.4rem; }
.result-lead { max-width: 42rem; color: var(--ink-2); }
.answers { display: grid; gap: 1rem; margin-top: 1.5rem; }
.answer { display: flex; flex-direction: column; padding: 1.2rem 1.3rem 1.1rem; background: var(--ground); border: 1px solid var(--line-2); border-radius: 6px; }
.answer h3, .answer-plan h3, .track > h3 { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-size: 1.12rem; line-height: 1.25; }
.station { flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 2px solid var(--ink); border-radius: 50%; font-size: 0.72rem; font-weight: 700; line-height: 1; letter-spacing: 0; }
.station-open { border-style: dashed; border-color: var(--ink-2); color: var(--ink-2); }
.answer-what { margin: 0.2rem 0 0.9rem 2.1rem; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.answer-state { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; font-size: 1.02rem; font-weight: 650; line-height: 1.3; }
.answer-niet_ingevuld .answer-state, .answer-niet_getoetst .answer-state { font-weight: 550; color: var(--ink-2); }
.answer-text { margin: 0 0 0.5rem; font-size: 0.94rem; line-height: 1.5; color: var(--ink-2); }
.answer-tally { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--muted); }
.answer-note { margin: 0 0 0.5rem; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }
.answer-open { display: grid; gap: 0.35rem; margin: 0.35rem 0 0; padding: 0.75rem 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 0.86rem; line-height: 1.4; color: var(--ink-2); }
.answer-open li { position: relative; padding-left: 1.15rem; }
.answer-open li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.6rem; height: 0.6rem; border: 1.25px dashed var(--muted); border-radius: 1px; }
.answer-open li.end-binnen::before, .answer-open li.end-geen::before, .answer-open li.end-beperkt::before { border-style: solid; border-color: var(--ink-2); background: var(--line); }
.answer-open li.end-buiten::before, .answer-open li.end-uitgezet::before { border-style: solid; border-color: var(--ink); background: var(--ink); }
.answer-open a, .cond-answer a, .route-state a { font-weight: 600; white-space: nowrap; }
.answer-more { margin: 0.85rem 0 0; font-size: 0.9rem; font-weight: 600; }
.answer-plan { margin-top: 1rem; padding: 1rem 1.3rem 1.05rem; border: 1.5px dashed var(--line-2); border-radius: 6px; }
.answer-plan p { margin: 0.35rem 0 0 2.1rem; font-size: 0.94rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 760px) { .answers { grid-template-columns: 1fr 1fr; } }

.track { margin-top: clamp(2.25rem, 5vw, 3rem); padding-top: 1.1rem; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 1rem); }
.track > h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.route { margin-top: 1.4rem; }
.route h4 { margin: 0 0 0.35rem; font-size: 0.98rem; }
.route .fold.quote { margin: 0 0 0.6rem; }
.route-state { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.route-state.is-open { color: var(--ink-2); }
.route.is-off .cond-list { opacity: 0.55; }
.route-skip { margin: 1.2rem 0 0; font-size: 0.88rem; color: var(--muted); }
.track-note { margin: 1.3rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.cond-list { list-style: none; border-top: 1px solid var(--line-2); }
.cond { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem); gap: 0.45rem 1.75rem; padding: 0.85rem 0 0.9rem; border-bottom: 1px solid var(--line); }
.cond-ref { margin: 0; font-size: 0.8rem; color: var(--muted); }
.cond-text { margin: 0.1rem 0 0; font-size: 0.97rem; line-height: 1.45; }
.cond-you p { margin: 0; }
.cond-side { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.cond.is-buiten .cond-side { font-weight: 700; color: var(--ink); }
.cond.is-open .cond-side { color: var(--muted); }
.cond-answer { margin-top: 0.15rem; font-size: 0.9rem; color: var(--ink-2); }
.cond-answer strong { font-weight: 650; color: var(--ink); }
.cond-cmp { margin-top: 0.15rem; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
.cond.is-none .cond-text, .cond.is-none .cond-side { color: var(--muted); }
.cond > .scale { grid-column: 1 / -1; }
.side-glyph { flex: none; width: 30px; height: 16px; overflow: visible; }
.side-zone { fill: var(--line); stroke: var(--ink-2); stroke-width: 1; }
.is-open > .side-zone, .side-glyph.is-open .side-zone { fill: none; stroke: var(--muted); stroke-dasharray: 2.5 2; }
.side-dot { fill: var(--ink); }
.not-here { margin-top: 2rem; }
.result-again { margin: 1rem 0 0; font-size: 0.92rem; font-weight: 600; }
@media (max-width: 640px) { .cond { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The drawings (apps/tool/figures.py, templates/tool/_figure.html, _scale.html) ----------
   Drawn like the company's map: ink lines on paper, the article's stretch as a grey wash with a
   dashed edge, the visitor's own thing in Signal Brick (as the parcel on the company map), the
   measures as dimension lines with ticks. The red marks what is the visitor's, whichever side it
   lies on; the side is in the words beside the drawing. */
.figure { margin: 1.5rem 0 0; display: grid; gap: 0.9rem 1.75rem; align-items: start; }
.figure-svg { display: block; width: 100%; max-width: 460px; height: auto; overflow: visible; background: var(--ground); border: 1px solid var(--line-2); border-radius: 6px; }
.figure figcaption { min-width: 0; }
.figure-key { margin: 0 0 0.6rem; font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); }
.figure-rows { list-style: none; border-top: 1px solid var(--line-2); }
.figure-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; line-height: 1.45; }
.figure-tag { display: inline-flex; align-items: flex-start; gap: 0.3rem; padding-top: 0.05rem; }
.figure-words { color: var(--ink-2); }
.figure-ref { color: var(--muted); }
.figure-side { grid-column: 2; display: flex; align-items: center; gap: 0.45rem; font-weight: 500; color: var(--ink-2); }
.figure-rows li.is-open .figure-side { color: var(--muted); }
.figure-letter { display: inline-grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; margin-right: 0.45rem; border-radius: 3px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 650; line-height: 1; vertical-align: 0.05em; }
.figure-tag .figure-letter { margin-right: 0; }
.station-sm { width: 1.25rem; height: 1.25rem; border-width: 1.5px; font-size: 0.68rem; }
.ask .figure { margin: 0 0 1.4rem; }
@media (min-width: 760px) { .figure { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } }

.fig-ground { stroke: var(--ink); stroke-width: 1.5; }
.fig-roof { fill: #f1f1ee; stroke: var(--ink); stroke-width: 1.25; }
.fig-tiles { stroke: var(--line); stroke-width: 1; }
.fig-ridge { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fig-gutter { fill: var(--ground); stroke: var(--ink); stroke-width: 1; }
.fig-wall { fill: var(--ground); stroke: var(--line-2); stroke-width: 1; }
.fig-section { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.fig-section-under { stroke: var(--ink-2); stroke-width: 1; }
.fig-zone { fill: rgba(22, 32, 26, 0.08); }
.fig-zone-framed { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 3; }
.fig-band { fill: rgba(22, 32, 26, 0.2); }
.fig-zone-edge { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 3; }
.fig-own, .fig-own-fill { fill: rgba(191, 58, 29, 0.16); }
.fig-own { stroke: var(--signal); stroke-width: 1.75; stroke-linejoin: round; }
.fig-own.is-open { stroke-dasharray: 5 4; }
.fig-own-edge { stroke: var(--signal); stroke-width: 1.75; stroke-linecap: square; }
.fig-own-edge.is-open { stroke-dasharray: 5 4; stroke-linecap: butt; }
.fig-own-window { fill: var(--ground); stroke: var(--signal); stroke-width: 1; }
.fig-own-line { stroke: var(--signal); stroke-width: 2; }
.fig-mast { stroke-width: 3.5; stroke-linecap: round; }
.fig-own-top { stroke: var(--signal); stroke-width: 1; stroke-dasharray: 4 3; }
.fig-own-label { font-size: 13px; font-weight: 650; fill: var(--signal-2); }
.fig-break { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.fig-station { fill: var(--ground); stroke: var(--ink); stroke-width: 2; }
.fig-station-n { font-size: 11px; font-weight: 700; fill: var(--ink); }
.fig-bracket { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig-limit-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 4; }
.fig-limit { font-size: 12.5px; font-weight: 650; fill: var(--ink); }
/* labels keep a ground-coloured halo, so a line through them does not strike them out */
.fig-limit, .fig-dim-label, .fig-own-label, .fig-ref, .fig-note, .scale-limit-label, .scale-value-label { paint-order: stroke; stroke: var(--ground); stroke-width: 3px; stroke-linejoin: round; }
.fig-ref { font-size: 11px; fill: var(--muted); }
.fig-note { font-size: 11px; fill: var(--muted); }
.fig-dim { stroke: var(--ink); stroke-width: 1; }
.fig-dim.is-open { stroke: var(--muted); stroke-dasharray: 3 3; }
.fig-dim-tick { stroke: var(--ink); stroke-width: 1.25; }
.fig-dim-label { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.fig-ext { stroke: var(--line-2); stroke-width: 1; }

.scale { margin: 0.2rem 0 0; }
.scale-svg { display: block; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.scale-axis { stroke: var(--ink-2); stroke-width: 1.5; }
.scale-zone { fill: rgba(22, 32, 26, 0.1); stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 3; }
.scale-limit { stroke: var(--ink); stroke-width: 2; }
.scale-limit-label, .scale-end { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.scale-end { font-weight: 500; fill: var(--muted); }
.scale-value-label { font-size: 12.5px; font-weight: 650; fill: var(--signal-2); }
.scale-marker { fill: var(--signal); }
.scale figcaption { margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { gap: 1.25rem; }
  .nav-links { gap: 1.15rem; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .nav { gap: 1rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.88rem; }
  .nav-links a:last-child { display: none; } /* the footer holds the company link too */
  .brand-by { display: none; }
}
/* A phone: "Bureaus vergelijken" ran off the screen at 390 px; the footer holds it too */
@media (max-width: 480px) {
  .nav-links a:nth-child(2) { display: none; }
}
