/* 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; }
.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; }
.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); }

/* ---------- The start page (templates/tool/page.html, static/js/zoek.js) ----------
   One search field over the law's words, then the thirteen groups as legend rows: the group's
   letter in a square, its name, and the short names of what is in it. A row of the list (and a
   hit) is the number in a fixed column and the law's words beside it. */
.field input[type="search"] { 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; }
.find { margin: 0; }
.find .field { margin: 0; }
.find-row { display: flex; gap: 0.5rem; }
.find-row input { flex: 1 1 auto; min-width: 0; }
.find-row .btn { flex: none; padding-inline: 1.6rem; }
.found { margin: 1.4rem 0 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.found-count { margin: 0 0 0.35rem; font-weight: 650; }
.found-note { max-width: 40rem; margin: 0 0 0.75rem; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.hits, .rows { list-style: none; border-top: 1px solid var(--line-2); }
.hits li, .rows li { border-bottom: 1px solid var(--line); }
.hit { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: 0 0.6rem; align-items: baseline; min-height: 44px; padding: 0.6rem 0.4rem 0.62rem 0.2rem; color: var(--ink); text-decoration: none; transition: background-color 0.2s; }
.hit:hover, .hit:focus-visible { background: var(--ground); }
.hit:hover .hit-name, .hit:focus-visible .hit-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--signal); text-underline-offset: 0.18em; }
.nr { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.hit-text { min-width: 0; }
.hit-name { display: block; font-weight: 600; line-height: 1.3; }
.hit-title { display: -webkit-box; margin-top: 0.12rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.hit-title.is-window { display: block; overflow: visible; -webkit-line-clamp: none; line-clamp: none; } /* the law's words around a hit: never cut */
.hit-where { display: block; margin-top: 0.22rem; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }
.hit-kolom { font-weight: 650; color: var(--ink); }
mark { background: rgba(22, 32, 26, 0.1); border-radius: 2px; color: inherit; font-weight: 650; }
.hits:empty { border-top: 0; }

.groups { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.groups h2 { margin-bottom: 0.3rem; font-size: clamp(1.3rem, 2vw, 1.55rem); }
.groups-lead { margin: 0 0 1.1rem; font-size: 0.95rem; color: var(--ink-2); }
.group { border-top: 1px solid var(--line-2); }
.group:last-of-type { border-bottom: 1px solid var(--line-2); }
.group > summary { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1rem; gap: 0.85rem; align-items: start; min-height: 44px; padding: 0.8rem 0.2rem 0.85rem; cursor: pointer; list-style: none; transition: background-color 0.2s; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after { content: ""; width: 0.5rem; height: 0.5rem; margin-top: 0.55rem; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.group[open] > summary::after { margin-top: 0.75rem; transform: rotate(-135deg); }
.group > summary:hover { background: var(--ground); }
.group > summary:hover .group-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--signal); text-underline-offset: 0.18em; }
.group-letter { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--ground); font-size: 0.95rem; font-weight: 700; line-height: 1; }
.group-head { min-width: 0; }
.group-name { display: block; font-size: 1.05rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; }
.group-count { margin-left: 0.3rem; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.group-what { display: -webkit-box; margin-top: 0.2rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 0.88rem; line-height: 1.45; color: var(--ink-2); }
.group[open] .group-what { display: none; }
.rows { margin: 0 0 1rem calc(2rem + 0.85rem); }
.rows li:last-child { border-bottom: 0; }

/* ---------- The row page (templates/tool/project.html) ----------
   The four columns of the annex read top down as the company's route: numbered stations on a
   dashed line, each with a plain heading, the law's own column heading and the cell. A column
   with "Niet van toepassing" keeps its station, dashed. */
.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); }
.row-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.row-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin-bottom: 0.45rem; }
.row-nr { display: inline-grid; place-items: center; min-width: 2.6em; padding: 0.12em 0.4em 0.16em; border: 2px solid var(--ink); border-radius: 4px; background: var(--ground); font-size: 0.72em; line-height: 1.1; letter-spacing: -0.01em; transform: translateY(-0.12em); }
.row-group { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.law-title { margin-bottom: 1.1rem; font-size: clamp(1.25rem, 2vw, 1.45rem); }
.steps { list-style: none; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0 1rem; padding-bottom: 1.6rem; }
.step::before { content: ""; position: absolute; left: calc(0.875rem - 1px); top: 1.9rem; bottom: 0.25rem; border-left: 2px dashed var(--line-2); }
.step:last-child::before { display: none; }
.station { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 0.8rem; font-weight: 700; line-height: 1; }
.step.is-na .station { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.step-body { min-width: 0; padding-top: 0.12rem; }
.step-body h3 { margin: 0 0 0.15rem; font-size: 1.12rem; line-height: 1.3; }
.step.is-na h3 { color: var(--ink-2); }
.law-head { margin: 0 0 0.55rem; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.law-text { max-width: 44rem; }
.law-line { margin: 0 0 0.3rem; line-height: 1.5; }
.law-item { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); margin: 0; padding: 0.12rem 0 0.12rem 0.75rem; border-left: 1px solid var(--line-2); }
.law-item.law-deep { margin-left: 3.05rem; grid-template-columns: 2.1rem minmax(0, 1fr); }
.law-stem + .law-item { margin-top: 0.25rem; }
.law-item + .law-stem, .law-item + .law-tail { margin-top: 0.45rem; }
.law-marker { font-weight: 650; color: var(--ink-2); }
.law-words { min-width: 0; }
.law-join { display: block; margin: 0.15rem 0 0.05rem; font-weight: 700; color: var(--ink); }
.law-join.is-out { margin-left: -2.85rem; } /* back to the text of the outer items (J7) */
.step.is-na .law-text { color: var(--ink-2); }
.step-both { max-width: 44rem; margin: 0.8rem 0 0; padding: 0.6rem 0.85rem; background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--r); font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.both-key { font-weight: 650; color: var(--ink); }
.ref { color: var(--muted); white-space: nowrap; }
.note-mark { font-size: 0.75em; }
.notes { list-style: none; display: grid; gap: 0.3rem; margin: 0 0 0 2.75rem; font-size: 0.85rem; color: var(--muted); }
.explain { margin-top: 0.8rem; }
.explain summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
/* The folds' marker: the groups' chevron, small, instead of the browser's triangle */
.explain > summary, .source > summary { display: flex; align-items: center; gap: 0.55rem; list-style: none; }
.explain > summary::-webkit-details-marker, .source > summary::-webkit-details-marker { display: none; }
.explain > summary::before, .source > summary::before { content: ""; flex: none; width: 0.42rem; height: 0.42rem; margin: 0 0.1rem 0.15rem 0.05rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s var(--ease); }
.explain[open] > summary::before, .source[open] > summary::before { margin-bottom: 0.3rem; transform: rotate(45deg); }
.law-quote { margin: 0.8rem 0 0; padding: 0.4rem 0 0.4rem 1rem; border-left: 1px solid var(--line-2); font-size: 0.95rem; color: var(--ink-2); }
.law-quote p { margin: 0 0 0.2em; }
.law-quote footer { font-size: 0.82rem; color: var(--muted); }

/* The number: fields first, one per quantity the cells name, then one scale per quantity. */
.numbers { margin-top: clamp(2rem, 5vw, 2.75rem); padding-top: 1.4rem; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 1rem); }
.numbers h2, .unsettled h2 { margin-bottom: 0.35rem; font-size: clamp(1.25rem, 2vw, 1.45rem); }
.numbers-lead { max-width: 40rem; margin: 0 0 1.1rem; font-size: 0.95rem; color: var(--ink-2); }
.qty-fields { display: grid; gap: 0 1.5rem; }
.qty-fields.is-several { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.num { display: flex; align-items: center; gap: 0.55rem; }
.field input.num-input { width: 11rem; max-width: 100%; padding: 0.72rem 0.85rem; font: inherit; font-size: 1rem; text-align: right; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.num-unit { font-weight: 500; color: var(--ink-2); }
.field-error input.num-input { border-color: var(--signal); }
.numbers .form-actions { margin: 0.4rem 0 0; justify-items: start; }
.scales { display: grid; gap: 1.6rem 2rem; margin-top: 1.6rem; }
.scales.is-several { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.qty-name { margin: 0 0 0.3rem; font-size: 1.02rem; }
.k3-note { max-width: 44rem; margin: 1.4rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }

/* The scale (apps/tool/scale.py, templates/tool/_scale.html). Drawn like the company's map: ink
   on paper, the stretch a column names as an ink wash (kolom 3 light with a dashed edge, kolom 2
   darker with a solid edge), the visitor's number in Signal Brick as the parcel on the company's
   map, whichever side it lies on. No green or red for a side. */
.scale { margin: 0; }
.scale-svg { display: block; overflow: visible; font-family: var(--font); }
.scale-axis { stroke: var(--ink); stroke-width: 2; }
.scale-band.band-k3 { fill: rgba(22, 32, 26, 0.07); }
.scale-band.band-k2 { fill: rgba(22, 32, 26, 0.17); }
.scale-band-edge { stroke: var(--ink); stroke-width: 1.25; }
.scale-band-edge.band-k3 { stroke: var(--ink-2); stroke-dasharray: 4 3; }
.scale-tick { stroke: var(--ink); stroke-width: 1.25; }
.scale-tick.tick-k3 { stroke: var(--ink-2); stroke-dasharray: 3 2; }
.scale-dot { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.scale-dot.is-open { fill: var(--paper); }
.scale-label { fill: var(--ink); font-size: 13px; font-weight: 600; }
.scale-zero { fill: var(--muted); font-size: 12px; }
.scale-break { stroke: var(--ink); stroke-width: 1.5; }
.scale-marker { fill: var(--signal); }
.scale-own { fill: var(--signal-2); font-weight: 650; }
.scale-legend { list-style: none; margin: 0.7rem 0 0; border-top: 1px solid var(--line); }
.scale-legend li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0.65rem; align-items: start; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; line-height: 1.45; color: var(--ink-2); }
.swatch { display: block; margin-top: 0.15rem; }
.swatch-band { fill: var(--paper); stroke: var(--line-2); stroke-width: 1; }
.swatch-band.band-k3 { fill: rgba(22, 32, 26, 0.07); stroke: var(--ink-2); stroke-dasharray: 4 3; }
.swatch-band.band-k2 { fill: rgba(22, 32, 26, 0.17); stroke: var(--ink); }
.legend-words { color: var(--ink); }
.legend-kolom { margin-left: 0.25rem; font-weight: 650; color: var(--ink); white-space: nowrap; }
.legend-kolom::before { content: "\00b7"; margin-right: 0.4rem; font-weight: 400; color: var(--muted); }
.legend-here { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 0.45rem; font-weight: 650; color: var(--signal-2); white-space: nowrap; }
.legend-here::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--signal); }
.scale-legend li.is-here .legend-words { font-weight: 650; }
.legend-zin { display: block; margin-top: 0.15rem; color: var(--ink-2); }
.scale-key { margin: 0.55rem 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }

/* What the list does not settle, and the source */
.unsettled { margin-top: clamp(2rem, 5vw, 2.75rem); padding-top: 1.4rem; border-top: 1px solid var(--line-2); }
.unsettled .notice { margin-top: 0.6rem; }
.unsettled-lines { list-style: none; max-width: 44rem; margin: 0.9rem 0 0; }
.unsettled-lines li { position: relative; padding: 0.45rem 0 0.45rem 1.15rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.unsettled-lines li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.5rem; height: 0.5rem; border: 1.25px dashed var(--muted); border-radius: 1px; }
.source { margin-top: 2rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.source summary { cursor: pointer; color: var(--muted); }
.source p { max-width: 44rem; margin: 0.6rem 0 0; }

/* ---------- 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 page was 425 px wide); the
   footer holds it too. The same rule as the sister tools. */
@media (max-width: 480px) {
  .nav-links a:nth-child(2) { display: none; }
}
