/* nieuwbouwcijfers.nl - theme v1 "bouwtekening" (23-11-2026)
   Drawing paper with a faint millimetre grid, ink-blue lines and text, three stage colours used ONLY for the stages:
   steel (met vergunning), brick (in aanbouw), sage (opgeleverd). Space Grotesk for headings and figures, Source Sans 3
   for text. Signature elements: the titelblok (title block of a drawing), the pipeline strip with arrows, the ruler
   under the header, the dashed "under construction" outlines. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #f5f2ea;
  --sheet: #fffdf8;
  --grid: rgba(23, 50, 77, .055);
  --ink: #17324d;
  --ink-2: #4a6178;
  --line: #c9d1d8;
  --planned: #6b8aa6;
  --planned-bg: #e7eef4;
  --building: #b9502b;
  --building-bg: #f6e4dc;
  --done: #4f7f52;
  --done-bg: #e3eedf;
  --focus: #f0a500;
  --head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 1.0625rem/1.6 var(--text);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--building); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); margin-top: 2rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--sheet); padding: .5rem 1rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem 3rem; }
.kicker { font: 500 .8rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: .6rem; }
.kicker a { color: inherit; }
.lead { font-size: 1.2rem; max-width: 40rem; }
.note { font-size: .92rem; color: var(--ink-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--head); font-weight: 500; }

/* header: white strip, tabs, ruler -------------------------------------------------------------------------- */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--ink); }
.site-header__inner { max-width: 72rem; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.brand__logo { display: block; width: 220px; height: auto; }
.tabs { max-width: 100%; overflow-x: auto; }
.tabs__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; white-space: nowrap; }
.tabs__link { display: block; padding: .45rem .8rem; font: 500 .95rem/1 var(--head); text-decoration: none; border: 1px solid transparent; border-radius: var(--r) var(--r) 0 0; }
.tabs__link:hover { border-color: var(--line); color: var(--ink); }
.tabs__link.is-current { border-color: var(--ink); border-bottom-color: var(--sheet); background: var(--sheet); position: relative; top: 1px; }
.ruler { height: 10px; background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px);
  background-size: 100% 4px, 100% 9px; background-repeat: no-repeat; background-position: 0 0, 0 0; opacity: .35; }

/* crumbs (platform kit markup) */
.crumbs, nav[aria-label="Kruimelpad"] { font-size: .88rem; margin: 1rem 0 .5rem; color: var(--ink-2); }
.crumbs ol, nav[aria-label="Kruimelpad"] ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before, nav[aria-label="Kruimelpad"] li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }

/* the sheet: a drawing on the paper ------------------------------------------------------------------------- */
.sheet { background: var(--sheet); border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(23, 50, 77, .08); padding: 1.5rem; margin: 1.5rem 0 2rem; position: relative; }
.sheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.sheet > * { position: relative; }
.sheet__head { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 52rem) { .sheet__head { grid-template-columns: 1fr 17rem; } }
.sheet__more { margin: .75rem 0 0; }

.titleblock { margin: 0; border: 1.5px solid var(--ink); font-size: .9rem; background: var(--sheet); }
.titleblock div { display: grid; grid-template-columns: 6.5rem 1fr; border-top: 1px solid var(--ink); }
.titleblock div:first-child { border-top: 0; }
.titleblock dt { font: 500 .72rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; padding: .45rem .55rem; border-right: 1px solid var(--ink); color: var(--ink-2); }
.titleblock dd { margin: 0; padding: .45rem .55rem; font-weight: 600; }

/* pipeline: three stages with arrows ------------------------------------------------------------------------ */
.pipeline { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .pipeline { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
.pipeline__stage { position: relative; padding: 1rem 1.1rem 1.1rem; border: 2px solid currentColor; border-radius: var(--r); background: var(--sheet); display: flex; flex-direction: column; }
.pipeline__stage--planned { color: var(--planned); background: var(--planned-bg); border-style: dashed; }
.pipeline__stage--building { color: var(--building); background: var(--building-bg); border-style: dashed; }
.pipeline__stage--done { color: var(--done); background: var(--done-bg); }
@media (min-width: 44rem) {
  .pipeline__stage + .pipeline__stage::before { content: ""; position: absolute; left: -1.45rem; top: 50%; width: 1.1rem; height: 2px; background: var(--ink); }
  .pipeline__stage + .pipeline__stage::after { content: ""; position: absolute; left: -.5rem; top: calc(50% - 5px); border: 6px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }
}
.pipeline__k { font: 700 .78rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; }
.pipeline__v { font: 700 clamp(2rem, 5vw, 2.8rem)/1.1 var(--head); color: var(--ink); font-variant-numeric: tabular-nums; margin: .35rem 0 .2rem; }
.pipeline__s { color: var(--ink-2); font-size: .92rem; line-height: 1.35; }
.pipeline--mini { margin: .75rem 0; gap: .5rem; grid-template-columns: repeat(3, 1fr); }
.pipeline--mini .pipeline__stage { padding: .5rem .6rem; }
.pipeline--mini .pipeline__stage::before, .pipeline--mini .pipeline__stage::after { display: none; }
.pipeline--mini .pipeline__v { font-size: 1.5rem; }
.pipeline--mini .pipeline__k { font-size: .66rem; }

/* search ---------------------------------------------------------------------------------------------------- */
.search { margin: 1.25rem 0 .25rem; max-width: 36rem; }
.search__label { display: block; font: 500 .85rem/1.2 var(--head); margin-bottom: .35rem; }
.search__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.search input { flex: 1 1 14rem; font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--ink); border-radius: var(--r); background: #fff; min-width: 0; }
.search button, .btn { font: 700 .95rem/1 var(--head); padding: .8rem 1.1rem; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.search button:hover, .btn:hover { background: var(--building); border-color: var(--building); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.search__result { margin-top: 1rem; max-width: 40rem; }
.hit { border: 1.5px solid var(--ink); border-radius: var(--r); background: #fff; padding: 1rem; margin-bottom: .75rem; }
.hit__kicker { font: 500 .75rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .3rem; }
.hit__name { margin-bottom: .25rem; }
.hit__name span { font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.hit__msg { color: var(--ink-2); }
.hit__list { list-style: none; padding: 0; }
.hit__list span { color: var(--ink-2); font-size: .9rem; }
.more { font-family: var(--head); font-weight: 500; }
.more::after { content: " \2192"; }

/* rank lists ------------------------------------------------------------------------------------------------ */
.cols { display: grid; gap: 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .cols { grid-template-columns: 1fr 1fr; } .cols--wide { grid-template-columns: 1.15fr 1fr; } }
.rank { list-style: none; counter-reset: r; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.rank li { counter-increment: r; display: flex; gap: .6rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.rank li::before { content: counter(r, decimal-leading-zero); font: 500 .8rem/1 var(--head); color: var(--ink-2); width: 1.6rem; }
.rank a { font-weight: 600; }
.rank__v { margin-left: auto; color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.rank__v b { color: var(--building); font-family: var(--head); font-size: 1.05rem; }
.busy { margin: 0 0 2rem; }

/* panels, years --------------------------------------------------------------------------------------------- */
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; margin-top: 2rem; }
.panel > h2 { margin-top: 0; }
.years { margin: 0; }
.years__cap { font: 500 .8rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .5rem; }
.years__bars { display: flex; align-items: flex-end; gap: 3px; height: 11rem; border-bottom: 1.5px solid var(--ink); padding-top: 1.2rem; }
.years__bar { flex: 1 1 0; position: relative; height: calc(var(--h) * 1%); min-height: 2px; background: var(--done); }
.years__bar.is-now { background: repeating-linear-gradient(135deg, var(--done) 0 4px, var(--done-bg) 4px 8px); border: 1px solid var(--done); }
.years__n { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) rotate(-60deg); transform-origin: left bottom; font: 500 .62rem/1 var(--head); color: var(--ink-2); white-space: nowrap; margin-bottom: 2px; }
.years__y { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font: 500 .66rem/1.6 var(--head); color: var(--ink-2); }
.years__table { margin-top: 1.6rem; font-size: .92rem; }
.years__table summary { cursor: pointer; font-family: var(--head); }
@media (max-width: 30rem) { .years__n { display: none; } }

/* tables ---------------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.plain, table.areas { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--sheet); }
table.plain th, table.plain td, table.areas th, table.areas td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.plain thead th, table.areas thead th { font: 500 .78rem/1.25 var(--head); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1.5px solid var(--ink); color: var(--ink-2); }
table.areas td.num, table.plain td.num { text-align: right; }
table.areas th button { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }

/* streets, buurten, tags ------------------------------------------------------------------------------------ */
.streets { margin-top: 2rem; }
.streets__list, .buurten { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.street, .buurt { background: var(--sheet); border-left: 4px solid var(--building); padding: .6rem .8rem; border-radius: 0 var(--r) var(--r) 0; }
.buurt:target { outline: 3px solid var(--focus); }
.street__name, .buurt__name { font: 700 1rem/1.3 var(--head); margin: 0 0 .3rem; }
.street__name span { font: 400 .9rem var(--text); color: var(--ink-2); }
.street__nums { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.street__since { margin: .3rem 0 0; font-size: .85rem; color: var(--ink-2); }
.tag { font: 500 .8rem/1 var(--head); padding: .3rem .45rem; border-radius: 3px; white-space: nowrap; }
.tag--planned { background: var(--planned-bg); color: #3e5c78; }
.tag--building { background: var(--building-bg); color: #8f3a1c; }
.tag--done { background: var(--done-bg); color: #3a6340; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a { display: inline-block; padding: .35rem .6rem; border: 1px solid var(--ink); border-radius: 99px; text-decoration: none; background: var(--sheet); font-size: .92rem; }

/* A-Z ------------------------------------------------------------------------------------------------------- */
.filter span { font: 500 .85rem var(--head); margin-right: .4rem; }
.filter input { font: inherit; padding: .45rem .6rem; border: 1px solid var(--ink); border-radius: var(--r); }
.az { columns: 15rem; column-gap: 2rem; }
.az__group { break-inside: avoid; margin-bottom: 1rem; }
.az__letter { font: 700 1.2rem/1 var(--head); border-bottom: 1.5px solid var(--ink); padding-bottom: .2rem; margin-bottom: .3rem; }
.az ul { list-style: none; padding: 0; margin: 0; }
.az li { display: flex; justify-content: space-between; gap: .5rem; padding: .12rem 0; }
.az li span { font: 500 .85rem var(--head); color: var(--building); }

/* alert ----------------------------------------------------------------------------------------------------- */
.alert { margin: 2.5rem 0; background: var(--ink); color: #fff; border-radius: var(--r); padding: 1.4rem; }
.alert a { color: #fff; }
.alert__head { display: flex; gap: 1rem; align-items: flex-start; }
.alert__head h2 { margin-top: 0; color: #fff; }
.alert__stamp { flex: 0 0 auto; width: 4.6rem; height: 4.6rem; border: 2px dashed #f0c9b8; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font: 700 .78rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: #f0c9b8; transform: rotate(-8deg); margin: 0; }
.alert__example { margin: .25rem 0 1rem; }
.alert__example summary { cursor: pointer; font-family: var(--head); }
.mailx { background: #fff; color: var(--ink); border-radius: var(--r); padding: 1rem; margin-top: .6rem; max-width: 34rem; }
.mailx__from { font-size: .8rem; color: var(--ink-2); margin-bottom: .3rem; }
.mailx__subject { font: 700 1.05rem var(--head); }
.mailx__nums { display: flex; gap: 1rem; flex-wrap: wrap; }
.mailx__nums p { margin: 0 0 .6rem; }
.mailx__nums b { display: block; font: 700 1.5rem var(--head); color: var(--building); }
.mailx__cta { display: inline-block; background: var(--ink); color: #fff; padding: .5rem .8rem; border-radius: var(--r); font-family: var(--head); }
.mailx__small { font-size: .8rem; color: var(--ink-2); margin: 0; }
.alert__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: .75rem; }
.alert__field { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 9rem; font: 500 .85rem var(--head); }
.alert__field--wide { flex: 2 1 15rem; }
.alert__field input, .alert__field select { font: 400 1rem var(--text); padding: .65rem .7rem; border: 0; border-radius: var(--r); min-width: 0; }
.alert .btn { background: var(--building); border-color: var(--building); }
.alert .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.alert__area { font-size: .92rem; color: #d7e0e8; }
.alert__hp { position: absolute; left: -9999px; }
.alert__consent { font-size: .82rem; color: #c3cfda; margin: 0; }
.alert__msg { margin: .75rem 0 0; padding: .6rem .8rem; border-radius: var(--r); background: #fff; color: var(--ink); }
.alert__msg.is-err { background: #fde8e3; }
.alert__done { background: #fff; color: var(--ink); border-radius: var(--r); padding: 1rem; }
.alert__done-title { font: 700 1.3rem var(--head); }
.alert__done-small { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* pro, source ----------------------------------------------------------------------------------------------- */
.pro { border: 1.5px dashed var(--ink); border-radius: var(--r); padding: 1rem 1.1rem; margin: 2rem 0; background: var(--sheet); max-width: 46rem; }
.pro__k { font: 500 .75rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .3rem; }
.pro__t { font: 700 1.15rem var(--head); margin-bottom: .3rem; }
.source { font-size: .85rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 2rem; }

/* text pages ------------------------------------------------------------------------------------------------ */
.layout { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 56rem) { .layout { grid-template-columns: 15rem minmax(0, 44rem); } }
.layout__main { background: var(--sheet); border: 1px solid var(--line); padding: 1.5rem; border-radius: var(--r); }
@media (max-width: 55.99rem) { .layout__margin { order: 2; } }
.margin-card { border: 1.5px solid var(--ink); background: var(--sheet); padding: .9rem; border-radius: var(--r); }
.margin-card__head { font: 700 1rem var(--head); margin-bottom: .4rem; }
.margin-links { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--ink); }
.margin-links li { border-bottom: 1px dashed var(--line); }
.margin-links a { display: block; padding: .45rem 0; text-decoration: none; font-family: var(--head); font-weight: 500; }
.margin-links a[aria-current] { color: var(--building); }
.prose { max-width: 46rem; }
.prose--home { margin-top: 2rem; }
.prose h2 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose .callout { border-left: 4px solid var(--building); background: var(--sheet); padding: .8rem 1rem; }
.prose .steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: .75rem; }
.prose .steps li { counter-increment: s; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem .8rem 3.2rem; position: relative; }
.prose .steps li::before { content: counter(s); position: absolute; left: .9rem; top: .75rem; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--head); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: left; }

/* footer ---------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #dce4ec; margin-top: 3rem; }
.site-footer__inner { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 1rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer__logo { display: block; margin-bottom: .8rem; }
.site-footer__head { font: 700 .8rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: #9fb3c6; }
.site-footer__small { max-width: 72rem; margin: 0 auto; padding: 1rem; font-size: .82rem; color: #9fb3c6; border-top: 1px solid rgba(255, 255, 255, .15); }

@media print { body { background: #fff; } .alert, .share, .tabs, .search { display: none; } }
