/* LB Omgevingsadvies: site styles.
   World: the Dutch topographic map (Kadaster BRT) as ground, legend cards as panels,
   one signal colour for the action. 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;
}

@property --rise { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f6f2;
  --ground: #ffffff;
  --ink: #16201a;
  --ink-2: #3d4a42;
  --muted: #5f6c65;
  --line: #dcdfd8;
  --line-2: #c3c9c0;
  --n2k: #2f7d4f;
  --n2k-deep: #1f5c38;
  --n2k-soft: #e3efe6;
  --water: #7fb7d8;
  --field: #e3ead0;
  --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);
  --shadow-label: 0 6px 14px -8px rgba(22, 32, 26, 0.4), 0 1px 2px rgba(22, 32, 26, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --container: 1240px;
  --atlas-h: clamp(640px, calc(100svh - var(--header-h)), 940px);
  --space-section: clamp(4rem, 8vw, 7rem);
}

/* ---------- 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); }
.site-header.is-scrolled { box-shadow: 0 10px 24px -22px rgba(22, 32, 26, 0.5); }
.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; }
.nav-links .nav-out { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.nav-out svg { width: 0.72em; height: 0.72em; 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-sm { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
.nav-cta { display: inline-block; }
.nav-here { margin-left: 0.5rem; font-size: 0.95rem; font-weight: 650; color: var(--ink); text-decoration: none; padding: 0.3rem 0; border-bottom: 1.5px solid var(--signal); }
.site-tools .nav-here { display: none; } /* the menu already marks "Gratis check"; shown where the menu is hidden */
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Atlas: the map as first viewport ---------- */
.atlas { position: relative; height: var(--atlas-h); overflow: hidden; background: var(--ground); border-bottom: 1px solid var(--line); }
.atlas-view { position: absolute; inset: 0; overflow: hidden; }
.atlas-stage {
  --s: max(calc(100vw / 1440px), calc(var(--atlas-h) / 900px));
  position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--s)); transform-origin: 50% 50%;
}
.atlas-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.n2k-area { fill: url(#n2k-hatch); stroke: var(--n2k); stroke-width: 2; stroke-linejoin: round; transition: fill-opacity 0.4s, stroke-width 0.3s; }
.n2k-hatch-line { stroke: var(--n2k); stroke-width: 1.2; opacity: 0.42; }
.hex { fill: var(--n2k); fill-opacity: 0.1; stroke: var(--n2k); stroke-opacity: 0.55; stroke-width: 1; transition: fill-opacity 0.5s var(--ease), stroke-opacity 0.3s; }
.distance-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 9 7; stroke-linecap: round; }
.distance-tick { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.distance-reveal { fill: none; stroke: #fff; stroke-width: 24; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 0; }
.parcel { fill: var(--signal); fill-opacity: 0.16; stroke: var(--signal); stroke-width: 2.5; stroke-linejoin: round; }
.parcel-pin { fill: var(--signal); stroke: #fff; stroke-width: 2; }

.map-label { --lift: 0px; --rise: 0px; position: absolute; transform: scale(calc(1 / var(--s))) translate(-50%, calc(-100% - var(--lift) + var(--rise))); transform-origin: 0 0; padding: 5px 9px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow-label); font-size: 14px; line-height: 1.25; font-weight: 500; white-space: nowrap; letter-spacing: 0.005em; }
.map-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: #fff; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: translateX(-50%) rotate(45deg); }
.map-label-parcel { --lift: 8px; }
.map-label-key { display: block; font-weight: 650; color: var(--signal-2); }
.map-label-note { display: block; font-size: 12px; color: var(--muted); }
.map-label-distance { --lift: 6px; font-size: 15px; }
.map-label-distance strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-right: 0.35em; }
.ml-short { display: none; }
.map-label-n2k { color: var(--n2k-deep); font-weight: 600; border-color: rgba(47, 125, 79, 0.5); }
.map-label-n2k::after { border-color: rgba(47, 125, 79, 0.5); }
.scale-bar { position: absolute; width: 132px; }
.scale-bar-rule { display: block; height: 6px; border: 2px solid var(--ink); border-top: 0; background: linear-gradient(90deg, var(--ink) 0 50%, #fff 50% 100%) top / 100% 2px no-repeat; }
.scale-bar-label { position: absolute; left: 0; top: 8px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink); text-shadow: 0 0 4px #fff, 0 0 8px #fff; transform: scale(calc(1 / var(--s))); transform-origin: 0 0; }

/* Legend panel: the message and the action */
.legend { position: absolute; left: clamp(1rem, 3vw, 3rem); top: clamp(1.25rem, 4vh, 3.25rem); z-index: 2; width: min(460px, 44vw); padding: clamp(1.4rem, 2.2vw, 2rem); background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel); }
.legend h1 { margin-bottom: 0.55em; }
.legend .lead { font-size: 1.02rem; margin-bottom: 1.25rem; }
.legend-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.35rem; }
.legend-actions .btn { flex: 1 1 auto; padding-inline: 0.9rem; font-size: 0.97rem; }
.legend-list { list-style: none; border-top: 1px solid var(--line); }
.legend-row { display: grid; grid-template-columns: 22px 1fr; gap: 0.75rem; align-items: start; padding: 0.7rem 0.4rem 0.7rem 0.2rem; margin: 0 -0.4rem 0 -0.2rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); border-radius: 3px; transition: background 0.2s; }
.legend-row:hover { background: var(--paper); }
.legend-symbol, .fact-symbol { width: 22px; height: 22px; margin-top: 0.1rem; fill: none; overflow: visible; }
.ls-hex { fill: var(--n2k); fill-opacity: 0.18; stroke: var(--n2k); stroke-width: 1.4; stroke-linejoin: round; }
.ls-line { stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 3 2.4; stroke-linecap: round; }
.ls-tick { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.ls-parcel { fill: var(--signal); fill-opacity: 0.16; stroke: var(--signal); stroke-width: 1.5; }
.ls-pin { fill: var(--signal); }

/* Hover on a legend row lights its map feature */
.atlas:has(.legend-row[data-feature="hexes"]:hover) .hex { fill-opacity: 0.32; stroke-opacity: 1; }
.atlas:has(.legend-row[data-feature="hexes"]:hover) .n2k-area { stroke-width: 3; }
.atlas:has(.legend-row[data-feature="distance"]:hover) .distance-line { stroke-width: 4; }
.atlas:has(.legend-row[data-feature="distance"]:hover) .map-label-distance { border-color: var(--ink); }
.atlas:has(.legend-row[data-feature="parcel"]:hover) .parcel { fill-opacity: 0.35; stroke-width: 4; }

/* Result panel: the AERIUS document */
.result { position: absolute; right: clamp(1rem, 3vw, 3rem); bottom: clamp(1rem, 3vh, 2.5rem); z-index: 2; width: min(380px, 34vw); margin: 0; }
.doc { background: #fff; border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--shadow-panel); color: #1d2327; overflow: hidden; }
.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.15rem 0.7rem; border-bottom: 1px solid #e6e9ec; }
.doc-logo { color: #1f6fb2; font-weight: 700; font-size: 0.8rem; }
.doc-title { color: #1f6fb2; font-size: 1.05rem; font-weight: 500; }
.doc-body { padding: 0.7rem 1.15rem 0.9rem; display: grid; gap: 0.75rem; }
.doc-h { display: block; margin: 0 0 0.25rem; font-size: 0.74rem; font-weight: 700; color: #1d2327; }
.kv { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.6rem; font-size: 0.72rem; padding: 0.1rem 0; }
.kv > span:first-child { color: #66727a; }
.ph { display: inline-block; height: 0.55rem; border-radius: 2px; background: #e6e9ec; align-self: center; }
.ph-sm { width: 5rem; } .ph-md { width: 7.5rem; } .ph-lg { width: 10rem; }
.src { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; padding: 0.15rem 0; }
.badge { display: inline-grid; place-items: center; width: 1.1rem; height: 0.9rem; border-radius: 2px; color: #fff; font-style: normal; font-size: 0.58rem; font-weight: 700; }
.b-red { background: #c0392b; } .b-orange { background: #e07b1a; } .b-blue { background: #2a6f97; }
.doc-result { border-top: 1px solid #e6e9ec; padding-top: 0.6rem; }
.res-head, .res-row { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 0.6rem; font-size: 0.72rem; padding: 0.2rem 0.4rem; }
.res-head { background: #f1f3f5; color: #55606a; }
.res-row strong { color: var(--n2k-deep); font-weight: 700; border-radius: 2px; padding: 0 0.2rem; margin-left: -0.2rem; }
.result figcaption { margin-top: 0.5rem; padding: 0.4rem 0.6rem; font-size: 0.8rem; line-height: 1.4; color: var(--ink-2); background: rgba(255, 255, 255, 0.88); border-radius: 3px; }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section h2 { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }

/* Facts: a legend table, not cards */
.section-facts { background: var(--paper); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.fact { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem) 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2.5vw, 2rem); }
.fact dt { display: flex; align-items: center; gap: 0.6rem; font-size: 1.18rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.fact dd { margin: 0; color: var(--ink-2); font-size: 0.98rem; max-width: 30rem; }
.fact-link { display: block; width: fit-content; margin-top: 0.7rem; font-weight: 600; }

/* Route: four stations on one line */
.section-route { background: var(--ground); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: station; }
.route::before { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; top: 0.7rem; border-top: 2px dashed var(--line-2); }
.route::after { content: ""; position: absolute; left: 0.7rem; top: 0.65rem; height: 3px; width: calc(100% - 1.4rem); background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.route.is-drawn::after { transform: scaleX(1); }
.station { position: relative; padding-top: 2.6rem; counter-increment: station; }
.station-mark { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-size: 0.72rem; font-weight: 700; color: var(--ink); transition: background 0.3s, color 0.3s; }
.station-mark::after { content: counter(station); }
.route.is-drawn .station-mark { background: var(--ink); color: #fff; }
.station h3 { margin-bottom: 0.4rem; }
.station p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Vision */
.section-vision { background: var(--paper); }
.vision { max-width: 46rem; }
.vision h2 { margin-bottom: 0.6em; }
.vision .lead { max-width: 42rem; }

/* Pilot: a light panel, the page's close */
.section-pilot { background: var(--paper); padding-top: 0; }
.pilot { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 2rem 3rem; align-items: center; padding: clamp(1.75rem, 4vw, 3.25rem); background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel); }
.pilot h2 { margin-bottom: 0.5em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.pilot .lead { margin: 0; font-size: 1.05rem; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stamp { position: absolute; top: -1rem; right: clamp(1rem, 3vw, 2.5rem); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-label); }
.stamp-key { font-weight: 650; color: var(--signal-2); }
.stamp-sep { width: 1px; height: 0.9em; background: var(--line-2); }

/* ---------- Blog: the index (/blog/) and the newest article on the homepage ----------
   A contents page in the legend language: a rail of dates, hairlines between the rows, and the
   newest article's row open with a plate from the article. A row is one link. */
.blog { padding: clamp(2.25rem, 4vw, 3.25rem) 0 var(--space-section); }
.blog h1 { margin-bottom: clamp(1.25rem, 2.4vw, 1.9rem); }
.posts { list-style: none; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.post { position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr) 9rem; gap: 0.5rem clamp(1.5rem, 3vw, 2.5rem); align-items: baseline; padding: 1.5rem 0; }
.post + .post { border-top: 1px solid var(--line); }
.post-date { font-size: 0.95rem; font-weight: 500; line-height: 1.4; color: var(--muted); }
.post-text h2, .post-text h3 { margin: 0 0 0.45em; font-size: 1.3rem; letter-spacing: -0.01em; }
.post-text a { text-decoration: none; }
.post-text a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post:hover .post-text a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.16em; text-decoration-color: var(--signal); }
.post-text p { max-width: 34rem; margin: 0; font-size: 0.98rem; color: var(--ink-2); text-wrap-style: pretty; }
.post-more { display: block; width: fit-content; margin-top: 1rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--line-2); }
/* A plate is a framed sheet, 4:3 in every row: the drawings sit on the page's own paper, so
   without the hairline they float and no two rows line up. The frames share the table's right
   edge. */
.post-plate { position: relative; align-self: start; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.post-plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-label { display: none; }
/* The open row: the newest article, with its plate at full size and a map label on it */
.post-open { grid-template-columns: 9rem minmax(0, 1.08fr) minmax(0, 1fr); padding: clamp(1.75rem, 3vw, 2.5rem) 0; }
.post-open h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.008em; }
.post-open .post-text p { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.55; }
.post-open .post-label, .post-home .post-label { position: absolute; left: 0.85rem; bottom: 0.85rem; display: block; padding: 5px 9px; background: #fff; border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow-label); font-size: 14px; font-weight: 500; line-height: 1.25; letter-spacing: 0.005em; }
.post-label .map-label-key { color: var(--ink); }
/* On the homepage: one white band between the vision and the closing panel */
.section-blog { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--ground); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-blog + .section-pilot { padding-top: var(--space-section); }
.post-home { grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 20rem); padding: 0; }
.post-rail h2 { margin: 0 0 0.2rem; }
.post-home .post-date { display: block; }
.post-home h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); letter-spacing: -0.008em; font-variation-settings: "opsz" 96; }
@media (max-width: 1000px) {
  .post { grid-template-columns: minmax(0, 1fr) 9rem; }
  .post-open, .post-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .post-date, .post-rail { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .post { grid-template-columns: minmax(0, 1fr) 5.5rem; gap: 0.4rem 1rem; }
  .post-open, .post-home { grid-template-columns: 1fr; gap: 0.9rem; }
  .post-open .post-plate, .post-home .post-plate { order: 1; }
  .post-open .post-text, .post-home .post-text { order: 2; }
  .post-text h2 { font-size: 1.15rem; }
  .post-open h2 { font-size: 1.6rem; }
}

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

/* ---------- Over (/over/): a reading page; its lists are rows in the legend language ---------- */
.about .lead { max-width: none; text-wrap: pretty; }
.about h2 { margin: 2.4em 0 0.7em; font-size: clamp(1.35rem, 1.9vw, 1.6rem); }
.about-rows { margin: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); list-style: none; counter-reset: step; }
.about-rows > * { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.2rem 2rem; padding: 1rem 0; }
.about-rows > * + * { border-top: 1px solid var(--line); }
.about-rows dt { font-weight: 650; }
.about-rows dd { margin: 0; color: var(--ink-2); }
.about-rows dd a { display: block; width: fit-content; margin-top: 0.45rem; font-weight: 600; color: var(--ink); }
.about-steps > li { counter-increment: step; }
.about-steps > li::before { content: counter(step); grid-row: 1 / span 2; font-weight: 650; color: var(--muted); }
.about-steps h3 { grid-column: 2; margin: 0; font-size: 1rem; font-weight: 650; line-height: inherit; letter-spacing: 0; }
.about-steps p { grid-column: 2; margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .about-rows > * { grid-template-columns: 1fr; }
  .about-steps > li { grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.2rem 0.6rem; }
}

/* ---------- Forms (intake, contact) ---------- */
.form-section { background: var(--paper); }
.form-head { max-width: 40rem; margin-bottom: 2rem; }
.intake-form fieldset { border: 1px solid var(--line-2); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); margin: 0 0 1.5rem; background: #fff; }
.intake-form legend { font-size: 1.2rem; font-weight: 650; padding: 0 0.4rem; color: var(--ink); }
.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); }
.optional { font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-left: 0.3rem; }
.step-intro { color: var(--muted); font-size: 0.95rem; margin: -0.25rem 0 1.4rem; }
.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; }
.ref { font-weight: 700; letter-spacing: 0.03em; background: var(--n2k-soft); padding: 0.1rem 0.4rem; border-radius: 3px; }
.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; }

/* Intake uploads (file list behaviour in static/js/intake.js) */
.field input[type="file"] { width: 100%; padding: 0.6rem 0.85rem; font: inherit; font-size: 0.95rem; color: var(--ink); border: 1px dashed var(--line-2); border-radius: var(--r); background: #fff; }
.file-list { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 0.9rem; color: var(--ink-2); }
.file-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.file-list li.is-problem { color: var(--signal-2); font-weight: 600; }

/* ---------- Motion: one authored sequence, the calculation arriving on the map ---------- */
.js-motion .atlas:not(.atlas-play) .parcel, .js-motion .atlas:not(.atlas-play) .parcel-pin { opacity: 0; }
.js-motion .atlas:not(.atlas-play) .distance-reveal { stroke-dashoffset: 1; }
.js-motion .atlas:not(.atlas-play) .distance-tick { opacity: 0; }
.js-motion .atlas:not(.atlas-play) .hex { fill-opacity: 0; stroke-opacity: 0; }
.js-motion .atlas:not(.atlas-play) .map-label { opacity: 0; --rise: 6px; }
.js-motion .atlas:not(.atlas-play) .scale-bar { opacity: 0; }
.js-motion .atlas:not(.atlas-play) .doc-section { opacity: 0; transform: translateY(6px); }
.js-motion .atlas:not(.atlas-play) .result figcaption { opacity: 0; }
.js-motion .parcel, .js-motion .parcel-pin { transition: opacity 0.5s var(--ease) 0.25s, fill-opacity 0.3s, stroke-width 0.3s; }
.js-motion .distance-reveal { transition: stroke-dashoffset 1.1s var(--ease) 0.7s; }
.js-motion .distance-tick { transition: opacity 0.3s ease; }
.js-motion .atlas-play .distance-tick:first-of-type { transition-delay: 0.7s; }
.js-motion .atlas-play .distance-tick:last-of-type { transition-delay: 1.7s; }
.js-motion .scale-bar { transition: opacity 0.6s ease 2.3s; }
.js-motion .hex { transition: fill-opacity 0.6s var(--ease), stroke-opacity 0.6s var(--ease); }
.js-motion .atlas-play .hex:nth-child(3n + 1) { transition-delay: 2.05s; }
.js-motion .atlas-play .hex:nth-child(3n + 2) { transition-delay: 2.2s; }
.js-motion .atlas-play .hex:nth-child(3n) { transition-delay: 2.35s; }
.js-motion .map-label { transition: opacity 0.6s var(--ease), --rise 0.6s var(--ease), border-color 0.2s; }
.js-motion .map-label-parcel { transition-delay: 0.35s; }
.js-motion .map-label-distance { transition-delay: 1.75s; }
.js-motion .map-label-n2k { transition-delay: 2.1s; }
.js-motion .doc-section { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-motion .atlas-play .doc-section:nth-child(1) { transition-delay: 2.4s; }
.js-motion .atlas-play .doc-section:nth-child(2) { transition-delay: 2.6s; }
.js-motion .atlas-play .doc-section:nth-child(3) { transition-delay: 2.8s; }
.js-motion .atlas-play .doc-section:nth-child(4) { transition-delay: 3.05s; }
.js-motion .result figcaption { transition: opacity 0.6s ease 3.4s; }
.js-motion .atlas-play .res-row strong { animation: result-in 1.6s var(--ease) 3.3s both; }
@keyframes result-in { 0% { background: transparent; } 30% { background: var(--n2k-soft); } 100% { background: transparent; } }
.js-motion .station { opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-motion .route.is-drawn .station { opacity: 1; transform: none; }
.js-motion .route.is-drawn .station:nth-child(2) { transition-delay: 0.35s; }
.js-motion .route.is-drawn .station:nth-child(3) { transition-delay: 0.7s; }
.js-motion .route.is-drawn .station:nth-child(4) { transition-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-links a, .map-label, .hex, .parcel, .distance-reveal, .distance-tick, .scale-bar, .route::after, .station-mark, .cluster-marks { transition: none !important; }
}

/* ---------- Tools: the key sheet (/tools/) and the band on the homepage ----------
   The tools grouped by subject. On top an index: per subject a cluster of the tools' own marks,
   set like the cells of a honeycomb, with the subject and its count under it; each cluster is
   one link to its section. Under it a legend table: a strong hairline above every subject, the
   subject in a rail on the left, a row per tool with its mark, name, sentence, what it needs and
   the way in. A row is one link. The marks are the only pictograms (tools.py, DESIGN.md). */
.tools { padding: clamp(2.25rem, 4vw, 3.25rem) 0 var(--space-section); }
.tools-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.tools-intro { flex: 1 1 22rem; max-width: 36rem; }
.tools h1 { margin-bottom: 0.45rem; }
.tools-intro .lead { margin: 0; text-wrap: pretty; }
/* up to four subjects the index stands beside the intro; from five it takes its own row */
.tools-head.is-wide { display: block; }
.tools-head.is-wide .tool-index { margin-top: clamp(1.75rem, 3vw, 2.25rem); }

/* The tool that leads (the Locatiescan): a white panel of its own between the intro and the
   index, the entrance to the tools rather than one of them. Text, three steps on a dashed line
   and the one action on the left; on the right the drawing: the address as the homepage's
   parcel, the marks of the tools the scan asks around it as one comb. The panel is one link. */
.tool-lead {
  position: relative; flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text drawing" "steps drawing" "go drawing"; align-items: start; gap: 0 clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel);
  transition: border-color 0.2s;
}
.tools-head.is-wide .tool-lead { margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.tools-head.is-wide .tool-lead + .tool-index { margin-top: clamp(2.25rem, 4vw, 3rem); }
.tool-lead:hover, .tool-lead:focus-within { border-color: var(--ink); }
.tool-lead-text { grid-area: text; max-width: 36rem; }
.tool-lead h2 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.6rem; }
.tool-lead h2 img { width: 44px; height: 44px; flex: none; }
.tool-lead-text p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tool-lead-drawing { grid-area: drawing; align-self: center; display: block; width: clamp(210px, 22vw, 268px); height: auto; }
.tool-lead-parcel { fill: var(--signal); fill-opacity: 0.16; stroke: var(--signal); stroke-width: 2.5; stroke-linejoin: round; transition: fill-opacity 0.3s var(--ease); }
.tool-lead-pin { fill: var(--signal); stroke: #fff; stroke-width: 1.6; }
.tool-lead:hover .tool-lead-parcel, .tool-lead:focus-within .tool-lead-parcel { fill-opacity: 0.32; }
/* the steps: numbered marks on a dashed line, as "Zo werken wij" on the homepage at rest */
.tool-lead-steps { grid-area: steps; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 1.6rem 0 1.75rem; max-width: 46rem; counter-reset: step; }
.tool-lead-steps li { position: relative; padding-top: 2.25rem; counter-increment: step; font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.tool-lead-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-size: 0.72rem; font-weight: 700; line-height: 1; color: var(--ink); }
.tool-lead-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.5rem; right: -1.25rem; top: calc(0.75rem - 1px); border-top: 2px dashed var(--line-2); }
.tool-lead-steps strong { display: block; margin-bottom: 0.1rem; font-size: 1rem; color: var(--ink); }
.tool-lead-go { grid-area: go; justify-self: start; }
.tool-lead-go::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 6px; }
/* the stretched link must keep the panel as its box: no lift on hover */
.tool-lead-go:hover { transform: none; }

/* The index: clusters on one line, their names under them */
.tool-index { --s: 60px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.6rem clamp(1.75rem, 3.5vw, 3rem); list-style: none; }
.tool-cluster { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.cluster-marks {
  /* a frame is 3/4 of its file wide and its rows nest at 3/4 of its height; the 0.15 between
     outlines is one stroke (half of each neighbour's lies outside its outline) and a hair */
  --px: calc(var(--s) * 0.9); --py: calc(var(--s) * 0.786);
  position: relative; display: block; margin-bottom: 0.55rem;
  width: calc((var(--cols) - 1) * var(--px) + var(--s)); height: calc((var(--rows) - 1) * var(--py) + var(--s));
  transition: transform 0.25s var(--ease);
}
.cluster-marks img { position: absolute; left: calc(var(--x) * var(--px)); top: calc(var(--y) * var(--py)); width: var(--s); height: var(--s); }
.cluster-name { font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: transparent; transition: text-decoration-color 0.2s; }
.cluster-count { margin-top: 0.15rem; font-size: 0.85rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.tool-cluster:hover .cluster-name, .tool-cluster:focus-visible .cluster-name { text-decoration-color: var(--signal); }
.tool-cluster:hover .cluster-marks { transform: translateY(-2px); }

/* The table: one section per subject */
.tool-table { border-bottom: 1px solid var(--line-2); }
.tool-group { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 0.75rem); }
.tool-group h2 { margin: 0; padding: 1.55rem 0; font-size: clamp(1.3rem, 1.8vw, 1.5rem); }
.tool-rows { list-style: none; }
.tool { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(12rem, 16rem); gap: 0.35rem clamp(1rem, 2vw, 1.5rem); align-items: start; padding: 1.5rem 0; }
.tool + .tool { border-top: 1px solid var(--line); }
.tool-mark { display: block; width: 48px; height: 48px; margin-top: -0.2rem; }
.tool-text h3 { margin: 0 0 0.4rem; font-size: 1.22rem; letter-spacing: -0.01em; }
.tool-text a { text-decoration: none; }
.tool-text a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tool:hover .tool-text a, .tool:focus-within .tool-text a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.16em; text-decoration-color: var(--signal); }
.tool-text p { max-width: 34rem; margin: 0; font-size: 0.98rem; color: var(--ink-2); text-wrap-style: pretty; }
.tool-needs { margin: 0.1rem 0 0.75rem; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.tool-needs-key { font-weight: 650; color: var(--ink); }
.tool-go { display: inline-block; font-size: 0.95rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--line-2); transition: text-decoration-color 0.2s; }
.tool-host { font-weight: 400; color: var(--muted); }
.tool:hover .tool-go, .tool:focus-within .tool-go { text-decoration-color: var(--signal); }

/* On the homepage: a white band right under the map, its index linking into the list */
.tools-band { background: var(--ground); border-bottom: 1px solid var(--line); padding: clamp(2rem, 4vw, 3rem) 0; }
.tools-band-inner { display: grid; grid-template-columns: minmax(0, 30rem) auto; grid-template-areas: "text index" "go index"; justify-content: space-between; align-items: end; gap: 1.1rem 4rem; }
.tools-band-text { grid-area: text; }
.tools-band h2 { margin: 0 0 0.4rem; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.tools-band p { margin: 0; color: var(--ink-2); font-size: 0.98rem; text-wrap: pretty; }
.tools-band-go { grid-area: go; justify-self: start; }
/* the tool that leads, as one quiet line: its mark, then a link that names it */
.tools-band p.tools-band-lead { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.85rem; }
.tools-band-lead img { width: 22px; height: 22px; flex: none; margin-top: 0.1rem; }
.tools-band-lead a { font-weight: 600; }
.tools-band .tool-index { --s: 50px; grid-area: index; justify-content: flex-end; }
/* more than four subjects do not fit beside the text: the index takes its own row */
.tools-band-inner.is-wide { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text go" "index index"; row-gap: 2rem; }
.tools-band-inner.is-wide .tools-band-text { max-width: 30rem; }
.tools-band-inner.is-wide .tools-band-go { justify-self: end; }
.tools-band-inner.is-wide .tool-index { justify-content: flex-start; }
/* the way to the list in the homepage's first screen: on a tablet or desktop a line in the
   legend under its buttons; on a phone, where the menu is hidden and the legend starts below the
   map, a stamp on the map right under the header */
.legend-more { margin: -0.45rem 0 1.2rem; font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.legend-more a { font-weight: 600; }
/* a link, not a map label: the family's mark in front, an Ink underline and a 44 px target */
.atlas-tools { display: none; position: absolute; left: clamp(1.25rem, 4vw, 2.5rem); top: 0.75rem; z-index: 3; align-items: center; gap: 0.45rem; min-height: 44px; padding: 6px 12px 6px 9px; background: #fff; border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow-label); font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.atlas-tools img { width: 22px; height: 22px; flex: none; }
.atlas-tools span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-decoration-color: var(--ink); }
.atlas-tools:hover span { text-decoration-color: var(--signal); }

@media (max-width: 1000px) {
  .tool { grid-template-columns: 48px minmax(0, 1fr); }
  .tool-use { grid-column: 2; }
  .tool-needs { margin-top: 0.5rem; }
  /* the steps stand under each other, their dashed line running down */
  .tool-lead-steps { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .tool-lead-steps li { padding: 0 0 0 2.3rem; }
  .tool-lead-steps li:not(:last-child)::after { left: calc(0.75rem - 1px); right: auto; top: 1.5rem; bottom: -0.85rem; border-top: 0; border-left: 2px dashed var(--line-2); }
}
@media (max-width: 760px) {
  .tools-head { gap: 1.75rem; }
  .tool-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "drawing" "steps" "go"; padding: 1.35rem 1.25rem 1.5rem; }
  .tool-lead h2 img { width: 38px; height: 38px; }
  .tool-lead-drawing { justify-self: center; width: 172px; margin-top: 1.1rem; }
  .tool-lead-steps { margin: 1.4rem 0 1.5rem; }
  .tool-lead-go { justify-self: stretch; }
  .tool-index, .tools-band .tool-index { --s: 40px; gap: 1.25rem 1.6rem; }
  .cluster-name { font-size: 0.95rem; }
  .tool-group { display: block; }
  .tool-group h2 { padding: 1.35rem 0 0.15rem; font-size: 1.3rem; }
  .tool { grid-template-columns: 40px minmax(0, 1fr); gap: 0.3rem 0.9rem; padding: 1.2rem 0; }
  .tool-mark { width: 40px; height: 40px; margin-top: -0.1rem; }
  .tool-text h3 { font-size: 1.12rem; }
  .tools-band-inner, .tools-band-inner.is-wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "index" "go"; gap: 1.6rem; }
  .tools-band-inner.is-wide .tools-band-go { justify-self: start; }
  .tools-band .tool-index { justify-content: flex-start; }
  .legend-more { display: none; }
  .atlas-tools { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-cluster:hover .cluster-marks { transform: none; }
  .tool-lead, .tool-lead-parcel { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .legend { width: min(400px, 48vw); }
  .kv { grid-template-columns: 7rem 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 1.5rem 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .route { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .route::before, .route::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
/* Tablet: the company menu stays on one line: tighter gaps, and the button says "Stikstoftool" */
@media (max-width: 940px) and (min-width: 761px) {
  body:not(.site-tools) .nav { gap: 1.25rem; }
  body:not(.site-tools) .nav-links { gap: 1.15rem; }
  body:not(.site-tools) .nav-links a { font-size: 0.92rem; }
  body:not(.site-tools) .nav-cta-long { display: none; }
}
/* Tablet: the map keeps the legend, the document moves below the map so the line and labels stay readable */
@media (max-width: 1100px) and (min-width: 761px) {
  .atlas { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; padding: 0 clamp(1.25rem, 4vw, 2.5rem) 2rem; }
  .atlas-view { --atlas-h: 560px; grid-column: 1 / -1; position: relative; height: 560px; margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); }
  .legend, .result { position: static; width: auto; margin: 0; }
  .legend { margin-top: -2.5rem; }
}
/* A tablet header holds the brand, the menu and the button on one line: the tools domain drops
   its quiet link to the company site, which the footer repeats */
@media (max-width: 1000px) {
  .nav { gap: 1.25rem; }
  .nav-links { gap: 1.15rem; }
  .site-tools .nav-out { display: none; }
  .nav-cta-long { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .nav { gap: 1rem; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .site-tools .nav-here { display: inline-block; }
  .atlas { height: auto; }
  .atlas-view { position: relative; height: 440px; }
  .atlas-stage { --s: 0.6; left: 0; top: 0; transform: translate(calc(50vw - 456px), -96px) scale(var(--s)); transform-origin: 0 0; }
  .scale-bar { left: 470px !important; }
  .map-label-n2k { left: 640px !important; top: 800px !important; }
  .ml-long { display: none; }
  .ml-short { display: inline; }
  .legend, .result { position: static; width: auto; }
  .legend { margin: -1.25rem 1rem 0; }
  .result { margin: 1.25rem 1rem 1.5rem; }
  .route { grid-template-columns: 1fr; gap: 1.6rem; }
  .pilot { grid-template-columns: 1fr; padding-top: 2.75rem; }
  .stamp { right: 1rem; white-space: nowrap; }
  .stamp-more { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-about { grid-column: auto; }
  .wn-hint { display: none; }
}

/* One-click questions of the intake form (2026-10-12): radio and checkbox groups as a list */
.field-choices > div, .field-choices ul { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.field-choices label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.field-choices input { margin-top: 0.3rem; accent-color: var(--signal); }

/* ---------- Stikstofcheck (apps/check, templates/check/) ----------
   One screen: the client's map as the ground (16:9, no taller than the window) and a dossier
   panel with four tabs over its left part (PANEL_SHARE in apps/check/location.py). Without
   JavaScript the four panes stack inside the panel; check.js shows one at a time. */
.ck { background: var(--paper); }
.ck-stage { position: relative; width: min(100%, calc((100svh - var(--header-h)) * 16 / 9)); aspect-ratio: 16 / 9; max-height: calc(100svh - var(--header-h)); margin: 0 auto; min-height: 560px; }
.ck-map { position: absolute; inset: 0; z-index: 0; isolation: isolate; overflow: hidden; background: #eef0ea; }
.ck-map { --s: 1; }
/* isolate: Leaflet's panes and controls stack inside the sheet, so the attribution stays on top */
.ck-sheet { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.ck-svg { display: block; width: 100%; height: 100%; }
.ck-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* The live map (Leaflet) takes the SVG's place once check.js has built it */
.ck-live { position: absolute; inset: 0; }
.ck .leaflet-container { background: #eef0ea; font-family: var(--font); }
.ck .leaflet-top.leaflet-right { top: 0.4rem; right: 0.4rem; }
.ck .leaflet-bar, .ck .leaflet-touch .leaflet-bar { border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-label); background-clip: border-box; }
.ck .leaflet-bar a, .ck .leaflet-touch .leaflet-bar a { width: 34px; height: 34px; line-height: 32px; color: var(--ink); font: 600 18px/32px var(--font); border-bottom-color: var(--line); }
.ck .leaflet-bar a:hover { background: var(--paper); color: var(--ink); }
.ck .leaflet-bar a:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.ck .leaflet-control-scale-line { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.8); font: 600 11px/1.3 var(--font); }
.ck .leaflet-bottom.leaflet-right { bottom: 1.6rem; }
.ck-n2k-live { fill: url(#ck-hatch); stroke-linejoin: round; transition: stroke-width 0.2s; }
/* multiply: the place names of the grey map stay ink under the green of an area */
.ck-n2k-nl { mix-blend-mode: multiply; stroke-linejoin: round; transition: fill-opacity 0.2s, stroke-width 0.2s; }
.ck-route-live { cursor: default; }
/* Leaflet lifts the page's svg max-width only in its own overlay pane; the route has its own pane */
.ck .leaflet-pane > svg { max-width: none; max-height: none; }
/* The key of the country map: what the green is, and that it answers */
.ck-key { position: absolute; z-index: 500; left: max(calc(37% + 0.25rem), calc(380px + 2.75rem)); bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 5px 9px; background: #fff; color: var(--n2k-deep); border: 1px solid rgba(47, 125, 79, 0.5); border-radius: 3px; box-shadow: var(--shadow-label); font: 500 14px/1.25 var(--font); pointer-events: none; }
.ck-key-swatch { width: 14px; height: 14px; flex: none; background: rgba(47, 125, 79, 0.3); border: 1px solid var(--n2k); border-radius: 2px; }
.ck-key-hint { padding-left: 0.5rem; border-left: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
@media (hover: none) { .ck-key-hint { display: none; } }
.ck-dot-live { cursor: default; }
.leaflet-tooltip.ck-tip { display: grid; gap: 1px; width: max-content; max-width: 15rem; padding: 7px 10px; white-space: normal; background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow-label); font: 500 13px/1.35 var(--font); }
.leaflet-tooltip.ck-tip strong { color: var(--ink); font-weight: 650; font-size: 14px; }
.leaflet-tooltip.ck-tip .ck-tip-note { margin-top: 3px; color: var(--muted); font-size: 12px; }
.leaflet-tooltip.ck-label { padding: 5px 9px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow-label); font: 500 14px/1.25 var(--font); white-space: nowrap; }
.leaflet-tooltip.ck-label-site { color: var(--signal-2); font-weight: 650; }
.leaflet-tooltip.ck-label-route { padding: 3px 7px; font-size: 12px; color: var(--ink-2); }
.leaflet-tooltip-right.ck-label::before { border-right-color: var(--line-2); }
.leaflet-tooltip.ck-label-distance strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-right: 0.3em; }
.leaflet-tooltip-top.ck-label::before { border-top-color: var(--line-2); }
.leaflet-tooltip-right.ck-tip::before { border-right-color: var(--line-2); }
.leaflet-tooltip-left.ck-tip::before { border-left-color: var(--line-2); }
.leaflet-tooltip-bottom.ck-label::before { border-bottom-color: var(--line-2); }
.leaflet-tooltip-center.ck-label::before { display: none; }
.ck-ground { fill: #eef0ea; }
.ck .n2k-area { fill-rule: evenodd; }
.distance-halo { stroke: #fff; stroke-width: 9; stroke-linecap: round; opacity: 0.85; }
.site-ring { fill: var(--signal); fill-opacity: 0.14; stroke: var(--signal); stroke-width: 2.5; }
.ck-dot { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.ck-dot.is-zero { fill: var(--n2k); stroke: #fff; stroke-width: 2; }
.ck .map-label-parcel { --lift: 24px; }
.ck .map-label-below { transform: translate(-50%, 24px); }
.ck .map-label-below::after { top: -5px; bottom: auto; transform: translateX(-50%) rotate(225deg); }
.ck-scale { position: absolute; right: 1.25rem; bottom: 2.4rem; min-width: 48px; }
.ck-scale-label { position: absolute; left: 0; top: 8px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink); text-shadow: 0 0 4px #fff, 0 0 8px #fff; white-space: nowrap; }
.ck-attrib { position: absolute; right: 0; bottom: 0; margin: 0; padding: 3px 8px; font-size: 0.72rem; color: var(--ink-2); background: rgba(255, 255, 255, 0.86); border-top-left-radius: 3px; }

.ck-panel { container-type: inline-size; position: absolute; z-index: 2; left: 1.25rem; top: 1.25rem; max-height: calc(100% - 2.5rem); width: calc(37% - 2.5rem); min-width: 380px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel); overflow: hidden; }
.ck-head { padding: 1.15rem 1.35rem 0.85rem; }
.ck-head h1 { margin: 0 0 0.25rem; font-size: clamp(1.45rem, 1.9vw, 1.8rem); }
.ck-head p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.ck-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; gap: 0.15rem; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.ck-tab { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.4rem 0.55rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.ck-tab span { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border: 1.5px solid currentColor; border-radius: 50%; font-size: 0.68rem; font-weight: 700; }
.ck-tab:hover { color: var(--ink); }
.ck-tab[aria-current="step"] { color: var(--ink); border-color: var(--ink); }
.ck-tab.is-done span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ck-tab[aria-disabled="true"] { color: var(--muted); pointer-events: none; }
.ck-tab[aria-disabled="true"] span { border-style: dashed; }
@container (max-width: 440px) { .ck-tab span { display: none; } .ck-tab { padding-inline: 0.25rem; } }
.ck-has-place .ck-head p { display: none; }
.ck-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.1rem 1.35rem 1.35rem; scrollbar-width: thin; }
.ck-pane + .ck-pane, .ck-figures .ck-pane + .ck-pane, .ck-pane + .ck-figures { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ck-js .ck-pane:not(.is-active) { display: none; }
.ck-js .ck-pane, .ck-js .ck-pane + .ck-pane, .ck-js .ck-figures .ck-pane + .ck-pane, .ck-js .ck-pane + .ck-figures { margin-top: 0; padding-top: 0; border-top: 0; }
.ck-js .ck-pane-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ck-pane-title { font-size: 1.15rem; margin: 0 0 0.6rem; }
.ck-status .ck-pane-title { position: static; width: auto; height: auto; clip: auto; font-size: clamp(1.45rem, 1.9vw, 1.8rem); margin-bottom: 0.7rem; }
.ck-lead { margin: 0 0 0.9rem; font-size: 0.93rem; color: var(--ink-2); }
.ck-wait { margin: 0; color: var(--muted); font-size: 0.93rem; }
.ck-foot { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.35rem; background: #fff; border-top: 1px solid var(--line); }
.ck-foot[hidden] { display: none; }
.ck-foot-step { margin-right: auto; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.ck-foot-step strong { color: var(--ink); }
.ck-foot .btn[hidden] { display: none; }
.ck-foot .btn-primary svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2; }
.ck-address-line { margin: 0 0 0.2rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.ck-aside { margin: 0 auto; padding-top: 1rem; padding-bottom: 1.5rem; font-size: 0.9rem; color: var(--ink-2); }
.note { font-size: 0.82rem; color: var(--muted); margin: 0.55rem 0 0; }

/* Plek */
.ck-address label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.ck-address-row { display: flex; gap: 0.5rem; }
.ck-address-row input { flex: 1; min-width: 0; 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; }
.ck-address-row input:focus, .q-number input:focus, .kg input:focus, .kg select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 32, 26, 0.12); }
.check-error { margin: 0.5rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--signal-2); }
.check-error[hidden] { display: none; }
.ck-facts, .ck-offer { margin-top: 1rem; }
.ck-offer .legend-row { font-size: 0.88rem; }
.ls-ring { fill: var(--signal); fill-opacity: 0.14; stroke: var(--signal); stroke-width: 1.5; }
.ls-route { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 0.1 3.6; stroke-linecap: round; }
.legend-row[hidden] { display: none; }
.ls-dot { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.ls-dot.is-zero { fill: var(--n2k); stroke: var(--n2k); }

/* Project: one click per answer, the chosen chip carries the hexagon */
.q { margin: 0 0 0.95rem; padding: 0; border: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.88rem; font-weight: 650; color: var(--ink); }
.q-row { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.q-row .q[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.35rem 0.75rem; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 0.9rem; font-weight: 500; color: var(--ink-2); transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s; }
.chips-tight .chip span { min-width: 2.6rem; justify-content: center; }
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--paper); color: var(--ink); font-weight: 650; box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span::before { content: ""; flex: none; width: 0.55rem; height: 0.6rem; margin-right: 0.45rem; background: var(--ink); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.q-number { display: inline-flex; align-items: center; gap: 0.5rem; }
.q-number input { width: 6.5rem; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.unit { color: var(--muted); font-size: 0.88rem; }
.q .help { font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 0; }

/* Kengetallen: compact rows; a changed row says "Uw getal" */
.changed-note { margin: 0 0 0.8rem; padding: 0.5rem 0.75rem; background: var(--n2k-soft); color: var(--n2k-deep); border: 1px solid #bcd9c6; border-radius: var(--r); font-size: 0.85rem; font-weight: 500; }
.changed-note[hidden] { display: none; }
.kg { border-top: 1px solid var(--line-2); }
.kg + .note + .kg, .kg-traffic { margin-top: 1rem; }
.kg-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.4rem 4.4rem 6.6rem 2.1rem; gap: 0.4rem; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.kg-traffic .kg-row { grid-template-columns: minmax(0, 1fr) 5.4rem; }
.kg-row[hidden] { display: none; }
.kg-head { padding: 0.35rem 0; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.kg-row.is-changed { background: var(--paper); }
.kg input, .kg select { width: 100%; min-width: 0; font: inherit; font-size: 0.88rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0.35rem 0.45rem; transition: border-color 0.2s, box-shadow 0.2s; }
.kg input[type="number"] { text-align: right; }
.kg-name { min-width: 0; font-size: 0.88rem; }
.kg .in-name { padding-left: 0.3rem; font-weight: 650; background: transparent; border-color: transparent; }
.kg .in-name:hover { border-color: var(--line-2); }
.kg .in-name::placeholder { font-weight: 500; color: var(--muted); }
.kg-src { display: block; padding-left: 0.35rem; font-size: 0.78rem; color: var(--muted); }
.kg-traffic .kg-src { padding-left: 0; }
.kg-src summary { display: inline; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.18em; }
.kg-src summary::-webkit-details-marker { display: none; }
.kg-src summary:hover { color: var(--ink); text-decoration-color: var(--signal); }
.kg-src details p { margin: 0.3rem 0 0.2rem; font-size: 0.76rem; line-height: 1.45; }
.mine[hidden], .kg-src details[hidden] { display: none; }
.mine { display: inline-block; padding: 0 6px; background: var(--n2k-soft); color: var(--n2k-deep); border-radius: 3px; font-size: 0.75rem; font-weight: 650; }
.row-remove { font: inherit; font-size: 0.78rem; color: var(--muted); background: none; border: 0; padding: 0.2rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.18em; }
.row-remove:hover { color: var(--signal-2); text-decoration-color: currentColor; }
.kg-add { margin-top: 0.5rem; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.2em; }
.kg-add:hover { text-decoration-color: var(--signal); }
.kg-add[hidden] { display: none; }
.ck-ctx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; margin: 1rem 0 0; }
.ck-ctx div { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.ck-ctx dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.ck-ctx dd { margin: 0.1rem 0 0; font-size: 0.88rem; color: var(--ink); }

/* Berekenen */
.ck-summary { margin: 0 0 1rem; }
.ck-figures .field { margin-bottom: 0.8rem; }
.ck-figures .field label { font-size: 0.88rem; }
.ck-start { width: 100%; margin: 0.2rem 0 0.6rem; }
.ck-start.is-busy { cursor: progress; pointer-events: none; }
.ck-start.is-busy::after { content: ""; flex: none; width: 0.95em; height: 0.95em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ck-spin 0.8s linear infinite; }
@keyframes ck-spin { to { transform: rotate(360deg); } }
.ck-fine { margin: 0; }

/* Progress, result and order */
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0.6rem 0 0.4rem; }
.progress-eta { font-size: 0.88rem; color: var(--ink-2); min-height: 1.3em; }
.progress-pct { font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.progress-track { height: 6px; margin: 0 0 1.1rem; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: var(--signal); border-radius: 3px; transition: width 0.8s var(--ease); }
.progress.is-live .progress-fill { transition: none; }
.progress-steps { list-style: none; }
.progress-steps li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.7rem; padding: 0.45rem 0; font-size: 0.93rem; color: var(--muted); }
.progress-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(0.5rem - 1px); top: calc(50% + 0.65rem); height: calc(100% - 1.3rem); border-left: 2px dashed var(--line-2); }
.progress-steps li.is-done:not(:last-child)::after { border-left-style: solid; border-color: var(--ink); }
.progress-mark { flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; transition: background 0.3s, border-color 0.3s; }
.progress-steps .is-done { color: var(--ink-2); }
.progress-steps .is-done .progress-mark { background: var(--ink); border-color: var(--ink); }
.progress-steps .is-current { color: var(--ink); font-weight: 650; }
.progress-steps .is-current .progress-mark { border-color: var(--ink); animation: ck-pulse 1.8s var(--ease) infinite; }
.progress-detail { margin-left: auto; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
@keyframes ck-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(22, 32, 26, 0.1); } 50% { box-shadow: 0 0 0 6px rgba(22, 32, 26, 0.06); } }
.verdict { --lvl: var(--n2k); --lvl-ink: var(--n2k-deep); --lvl-soft: var(--n2k-soft); margin: 0 0 0.6rem; }
.verdict.is-geel { --lvl: #e0a100; --lvl-ink: #7a5600; --lvl-soft: #fdf3d6; }
.verdict.is-rood { --lvl: #c23b22; --lvl-ink: #9a2c17; --lvl-soft: #fbe6e1; }
.light { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 0.9rem; }
.light li { padding: 0.4rem 0.5rem 0.35rem; border-top: 5px solid var(--line); font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
.light li span { display: block; font-size: 0.85rem; font-weight: 650; color: var(--ink-2); }
.light .light-groen.is-on { border-color: var(--n2k); }
.light .light-geel.is-on { border-color: #e0a100; }
.light .light-rood.is-on { border-color: #c23b22; }
.light li.is-on { background: var(--lvl-soft); color: var(--lvl-ink); }
.light li.is-on span { color: var(--lvl-ink); }
.verdict-figure { margin: 0 0 0.5rem; line-height: 1; }
.verdict-figure strong { font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 650; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
.verdict .verdict-figure strong { color: var(--lvl-ink); }
.verdict-figure span { margin-left: 0.35rem; font-size: 1rem; color: var(--ink-2); }
.verdict-text { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.order-box { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.order-box h2 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.order-box > p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.order-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem; }
/* The request for a custom calculation in the same box (apps/check/custom.py): a short form under the lead text. */
.custom-details { margin-top: 0.9rem; }
.custom-details > summary { display: inline-flex; list-style: none; cursor: pointer; }
.custom-details > summary::-webkit-details-marker { display: none; }
.custom-details[open] > summary { display: none; }
.order-box > .custom-note { margin-top: 0.6rem; font-size: 0.85rem; }
.custom-form { margin-top: 0.2rem; }
.custom-form .field { margin-bottom: 0.8rem; }
.custom-form .field-checkbox label { font-size: 0.9rem; }
.custom-form .form-actions { margin-top: 0.4rem; }
.price { margin: 0; }
.price strong { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; }
.price span { margin-left: 0.3rem; color: var(--ink-2); }
.price-large strong { font-size: 2.4rem; }
.price-large.is-free strong { font-size: 1.55rem; }
.checkout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; margin-bottom: 1.5rem; }
.checkout-summary { padding: clamp(1.25rem, 2.6vw, 1.75rem); background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel); }
.checkout-list { list-style: none; margin: 1rem 0; border-top: 1px solid var(--line); }
.checkout-list li { position: relative; padding: 0.6rem 0 0.6rem 1.5rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); }
.checkout-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.95rem; width: 0.66rem; height: 0.72rem; background: var(--n2k); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.checkout-form fieldset { margin: 0 0 1rem; }
@media (prefers-reduced-motion: reduce) {
  .progress-fill, .chip span, .progress-mark, .ck-tab { transition: none; }
  .progress-steps .is-current .progress-mark { animation: none; box-shadow: 0 0 0 3px rgba(22, 32, 26, 0.1); }
}
/* Narrow screens: the map on top, the panel below it */
@media (max-width: 900px) {
  .ck-stage { width: 100%; aspect-ratio: auto; max-height: none; min-height: 0; }
  .ck-map { position: relative; overflow: visible; background: var(--paper); }
  .ck-sheet { position: relative; aspect-ratio: 16 / 9; }
  .ck-attrib { position: static; padding: 0.35rem 0.75rem 0; background: none; }
  .ck-foot { position: sticky; bottom: 0; z-index: 3; }
  .ck-panel { position: static; width: auto; min-width: 0; margin: 0.75rem 0.75rem 0; }
  .ck-body { overflow: visible; }
  .ck .map-label { font-size: 12px; }
  .ck .map-label-n2k { font-size: 11px; padding: 3px 6px; }
  .ck .map-label-distance strong { font-size: 16px; }
  .ck-attrib { font-size: 0.65rem; }
  .ck-scale { right: 0.6rem; bottom: 0.9rem; }
  .checkout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ck-tabs { grid-template-columns: repeat(4, 1fr); padding: 0 0.6rem; }
  .ck-tab { justify-content: center; padding-inline: 0.15rem; font-size: 0.8rem; }
  .ck-tab span { display: none; }
  .kg-row { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr) auto; }
  .kg-row > :first-child { grid-column: 1 / -1; }
  .kg-traffic .kg-row { grid-template-columns: minmax(0, 1fr) 5rem; }
  .kg-traffic .kg-row > :first-child { grid-column: auto; }
}
/* The live check map on narrow screens: the panel lies under the map, so the map is its own
   frame. Phones get a frame taller than 16:9 so the whole country fits (check.js fits the
   Dutch land on it); the zoom buttons move to the bottom right corner, away from the place
   names at the top and with room kept for the labels, and the scale bar goes. The taller
   frame is for the live map only: the drawn map of a page without JavaScript keeps its 16:9
   sheet. */
@media (max-width: 900px) {
  .ck .leaflet-bottom.leaflet-right { bottom: 0; }
  .leaflet-tooltip.ck-label { padding: 4px 8px; font-size: 12px; } /* the drawn map's step */
  .leaflet-tooltip.ck-label-distance strong { font-size: 16px; }
}
@media (max-width: 760px) {
  .ck .leaflet-control-scale { display: none; }
}
@media (max-width: 760px) and (scripting: enabled) {
  .ck-sheet { aspect-ratio: auto; height: clamp(220px, 36svh, 360px); }
}
@media (pointer: coarse) {
  .ck .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 38px; }
}
/* On narrow screens the panel clips instead of hiding its overflow: overflow hidden made the
   panel the scroll container of its sticky footer, so the footer never stuck. Now it stays at
   the bottom of the screen and the step's button stays in view under the taller map. */
@media (max-width: 900px) {
  .ck-key { left: 0.6rem; top: 0.6rem; bottom: auto; padding: 4px 8px; font-size: 12px; } /* the sea corner, clear of Limburg */
  .ck-key-swatch { width: 12px; height: 12px; }
  .ck-panel { overflow: clip; }
}
/* ---------- Stikstofoverzicht (/stikstofoverzicht/): every project as its own point on a zoomable sheet ---------- */
.om { background: var(--paper); }
/* One screen, as on the homepage and the stikstofcheck: the map fills a 16:9 stage no taller
   than the window and a white legend panel lies over its left part. */
.om-stage { position: relative; width: min(100%, calc((100svh - var(--header-h)) * 16 / 9)); aspect-ratio: 16 / 9; max-height: calc(100svh - var(--header-h)); min-height: 560px; margin: 0 auto; }
.om-panel { position: absolute; z-index: 2; left: 1.25rem; top: 1.25rem; max-height: calc(100% - 2.5rem); width: calc(37% - 2.5rem); min-width: 380px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-panel); overflow: hidden; }
.om-head { padding: 1.15rem 1.35rem 0.6rem; }
.om-head h1 { margin: 0 0 0.25rem; font-size: clamp(1.45rem, 1.9vw, 1.8rem); }
.om-line { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
/* Once a project or an area is chosen the card needs the room: the explanation steps aside, as on the check */
.om.has-pick .om-line { display: none; }
.om-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; padding: 0.4rem 1.35rem 0.85rem; }
.om-search { position: relative; display: flex; flex-wrap: wrap; align-items: center; flex: 1 1 100%; }
.om-search svg { position: absolute; left: 0.7rem; top: 14.5px; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.om-search input { width: 100%; padding: 0.55rem 0.8rem 0.55rem 2.1rem; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.om-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 32, 26, 0.12); }
/* One flow of chips (results with their dots, then the kinds), with the check's 4px corners */
.om-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.om-chip { display: inline-flex; align-items: center; gap: 0.38rem; min-height: 2rem; padding: 0.25rem 0.5rem; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 0.82rem; font-weight: 500; line-height: 1.25; color: var(--ink); cursor: pointer; transition: border-color 0.15s, opacity 0.15s, background 0.15s; }
.om-chip:hover { border-color: var(--ink); }
.om-chip[aria-pressed="false"] { background: transparent; color: var(--muted); opacity: 0.7; text-decoration: line-through; text-decoration-color: var(--line-2); }
.om-count { margin: 0; width: 100%; font-size: 0.82rem; color: var(--muted); }
.om-count:empty { display: none; }
.om-tabs { display: flex; gap: 1.1rem; padding: 0 1.35rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.om-tab { padding: 0.6rem 0 0.55rem; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.om-tab:hover { color: var(--ink); }
.om-tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.om-tab span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.om-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.35rem 1.25rem; scrollbar-width: thin; }
.om-body [hidden] { display: none; }
.om-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(22, 32, 26, 0.18); }
.om-dot-zero { background: var(--n2k); }
.om-dot-above { background: var(--ink); }
.om-dot-unknown { background: #9aa59e; }
.om-dot-approx { background: #fff; border: 1.5px solid var(--ink-2); box-shadow: none; width: 9px; height: 9px; }
.om-dot-ring { background: #fff !important; border-width: 2px; }
.om-dot-zero.om-dot-ring { border-color: var(--n2k); } .om-dot-above.om-dot-ring { border-color: var(--ink); } .om-dot-unknown.om-dot-ring { border-color: #9aa59e; }

.om-sheet { position: absolute; inset: 0; z-index: 0; overflow: hidden; isolation: isolate; background: var(--paper); }
.om-map { position: absolute; inset: 0; background: var(--paper); }
.om .leaflet-container { font-family: var(--font); background: var(--paper); }
.om .leaflet-container:focus, .om .leaflet-container:focus-visible { outline: none; }
/* .leaflet-touch is on desktops too and leaflet.css loads after this file, so name it to win */
.om .leaflet-bar, .om .leaflet-touch .leaflet-bar { border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-label); background-clip: border-box; }
.om .leaflet-bar a, .om .leaflet-touch .leaflet-bar a { width: 34px; height: 34px; color: var(--ink); font: 500 18px/32px var(--font); border-bottom-color: var(--line); }
.om .leaflet-bar a:hover { background: var(--paper); }
.om-check { margin: 1rem 0 0; font-size: 0.92rem; }
.om-check a { color: var(--ink-2); }
.om-check a:hover { color: var(--ink); }
.om .leaflet-top.leaflet-right { top: 6px; right: 6px; }
.om .leaflet-control-attribution { font: 10.5px/1.5 var(--font); background: rgba(255, 255, 255, 0.85); color: var(--muted); }
.om .leaflet-control-attribution a { color: var(--ink-2); }
/* wraps like the check's tooltip: area names run to 46 characters */
.om .om-tip { width: max-content; max-width: 16rem; padding: 5px 9px; background: #fff; border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow-label); font: 500 13px/1.4 var(--font); color: var(--ink); white-space: normal; }
.om .om-tip::before { border-top-color: var(--line-2); }
.om .om-tip strong { font-weight: 650; }
.om-tiles { filter: saturate(0.6); transition: opacity 0.6s var(--ease); }
.om .om-tip-note { color: var(--muted); }
.om-n2k { display: inline-block; width: 12px; height: 10px; border-radius: 2px; background: #cfe3d5; border: 1.5px solid var(--n2k); }
/* in the flow under the field, so a failed search pushes the chips down instead of covering them */
.om-search-msg { flex: 1 1 100%; margin: 0.3rem 0 0 0.2rem; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.om-search-msg:empty { display: none; }
.om .om-pop .leaflet-popup-content-wrapper { padding: 0; border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--shadow-panel); }
.om .om-pop .leaflet-popup-content { display: grid; gap: 0.2rem; margin: 0.7rem 1.7rem 0.75rem 0.85rem; font: 400 0.88rem/1.35 var(--font); color: var(--ink-2); } /* right: room for the close button */
.om .om-pop strong { font-size: 0.98rem; font-weight: 650; color: var(--ink); }
.om .om-pop .leaflet-popup-tip { border: 1px solid var(--line-2); box-shadow: none; }
.om .om-pop a.leaflet-popup-close-button { color: var(--muted); font: 400 18px/22px var(--font); }
.om-pop-result { font-weight: 650; color: var(--ink); }
.om-pop-zero { color: var(--n2k-deep); }
.om-pop-more { justify-self: start; margin-top: 0.35rem; padding: 0.3rem 0.6rem; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.om-pop-more:hover { border-color: var(--ink); }
.om-topbar { position: absolute; top: 12px; right: 56px; z-index: 1000; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; pointer-events: none; }
.om-topbar > * { pointer-events: auto; }
.om-flows { position: absolute; top: 0; left: 0; pointer-events: none; }
.om-flows.is-zooming { visibility: hidden; }
.om-key { flex: none; width: 30px; height: 12px; stroke-linecap: round; }
.om-home { padding: 0.4rem 0.75rem; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-label); font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.om-home:hover { border-color: var(--ink); }
/* The legend is a tab of the panel, so the map itself stays clear. */
/* Legend rows and the area card's line keys share one symbol column, so their words line up */
.om-legend, .om-keys { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; line-height: 1.4; color: var(--ink-2); }
.om-legend li, .om-keys li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.om-legend li > i { justify-self: center; }
.om-keys { margin-top: 1rem; font-size: 0.85rem; }
.om-status { position: absolute; inset: 0; z-index: 1001; display: grid; place-items: center; margin: 0; pointer-events: none; }
.om-status[hidden] { display: none; }
.om-status span { padding: 0.5rem 0.85rem; background: #fff; border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow-label); font-size: 0.95rem; color: var(--ink-2); }
.om-noscript { margin: 1rem 0 0; color: var(--ink-2); }

.om-project { padding: 0; background: none; }
.om-project.is-empty { padding: 0; }
.om-empty { margin: 0; color: var(--muted); }
.om-project h2 { margin: 0; font-size: 1.25rem; }
.om-project h2:focus { outline: none; }
.om-project h2:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.om-place { margin: 0.2rem 0 0.9rem; color: var(--ink-2); }
.om-result { display: flex; align-items: baseline; gap: 0.9rem; margin: 0 0 0.9rem; padding: 0.75rem 1rem; border-radius: 4px; background: var(--paper); }
.om-result b { flex: none; font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
.om-result span { font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.om-result-zero { background: var(--n2k-soft); }
.om-result-zero b { color: var(--n2k-deep); }
/* The facts as legend rows: label left, value right, a hairline between, sentences get the width */
.om-facts { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.om-facts > div { display: grid; grid-template-columns: minmax(6.5rem, min(36%, 12rem)) minmax(0, 1fr); gap: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.om-facts > div:first-child { border-top: 1px solid var(--line); }
.om-facts dt { font-size: 0.82rem; line-height: 1.45rem; color: var(--muted); }
.om-facts dd { margin: 0; font-weight: 500; color: var(--ink); }
.om-approx { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--muted); }
.om-list-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 0.5rem; font-size: 1rem; font-weight: 650; font-variation-settings: normal; letter-spacing: -0.01em; }
.om-list-n { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.om-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
/* two lines per row (title, place) held tight; the dot sits on the title line, the year at the right */
.om-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 0.7rem; row-gap: 0.05rem; align-items: center; width: 100%; padding: 0.5rem 0.3rem; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 0.92rem; line-height: 1.35; color: var(--ink); text-align: left; cursor: pointer; transition: background 0.15s; }
.om-row:focus-visible { outline-offset: -2px; }
.om-row[aria-pressed="true"] { font-weight: 650; }
.om-row:hover, .om-row:focus-visible, .om-row[aria-pressed="true"] { background: var(--paper); }
.om-row-title, .om-row-place { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-row-place { grid-column: 2; grid-row: 2; font-size: 0.82rem; color: var(--ink-2); font-weight: 400; }
.om-row-year { grid-column: 3; grid-row: 1 / span 2; min-width: 2.6rem; text-align: right; color: var(--muted); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.om-more { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--muted); }
.om-note { margin-top: 1rem; margin-bottom: 1.5rem; font-size: 0.82rem; color: var(--muted); max-width: 44rem; }

/* Narrow screens: the map on top, the panel below it */
@media (max-width: 900px) {
  .om-stage { width: 100%; aspect-ratio: auto; max-height: none; min-height: 0; }
  .om-sheet { position: relative; height: min(62svh, 520px); min-height: 360px; }
  .om-panel { position: static; width: auto; min-width: 0; max-height: none; margin: 0.75rem 0.75rem 0; }
  .om-body { overflow: visible; }
  .om-topbar { right: 52px; }
}
/* Phones: the label sits over its value, so neither is squeezed into a narrow column */
@media (max-width: 520px) {
  .om-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.05rem; }
}
/* Touch: the map's controls and the panel's chips at the check's 40px */
@media (pointer: coarse) {
  .om .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 38px; }
  .om-topbar { right: 58px; }
  .om-home, .om-chip, .om-pop-more { min-height: 40px; }
  .om-chips { gap: 0.4rem; }
  .om .om-pop a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; line-height: 30px; }
  .om .om-pop .leaflet-popup-content { margin-right: 2.2rem; }
}
