/* River Kindermaten: children's-clothing label meets tape measure.
   Sunny yellow and deep navy, thick ink outlines, sticker drawings with a hard offset shadow,
   Fredoka for display type and Figtree (tabular figures) for text and sizes.
   Fonts: Fredoka and Figtree, SIL Open Font License 1.1 (see /assets/fonts/). */

@font-face {
	font-family: "Fredoka";
	src: url("/assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	color-scheme: light dark;

	/* Brand colours: the same in light and dark mode (bands and stickers are "printed"). */
	--c-sun: #ffc83d;
	--c-tomato: #f2583e;
	--c-sky: #5bb8f5;
	--c-mint: #4cd4a4;
	--t-sun: #fff0c4;
	--t-tomato: #ffe0d9;
	--t-sky: #ddf0fd;
	--t-mint: #d7f6ea;
	--navy: #16213f;
	--illo-ink: var(--navy);
	--illo-paper: #ffffff;

	/* Page colours: these change in dark mode. */
	--paper: #ffffff;
	--paper-2: #f1f5fb;
	--text: var(--navy);
	--text-soft: #46516d;
	--edge: var(--navy);
	--shadow: var(--navy);
	--icon-ink: var(--navy);
	--focus: #1a5fd0;
	--box-sun: var(--t-sun);
	--box-sky: var(--t-sky);
	--box-tomato: var(--t-tomato);
	--box-mint: var(--t-mint);

	--font-display: "Fredoka", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
	--font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--measure: 42rem;
	--gutter: clamp(16px, 4vw, 40px);
	--line: 3px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #111a31;
		--paper-2: #18233f;
		--text: #eef2fb;
		--text-soft: #b7c1d9;
		--edge: #eef2fb;
		--shadow: #05091a;
		--icon-ink: #eef2fb;
		--focus: #ffc83d;
		--box-sun: #352d14;
		--box-sky: #13304a;
		--box-tomato: #3f201c;
		--box-mint: #103a2f;
	}
}

.tone-sun { --tone: var(--c-sun); --tint: var(--t-sun); }
.tone-tomato { --tone: var(--c-tomato); --tint: var(--t-tomato); }
.tone-sky { --tone: var(--c-sky); --tint: var(--t-sky); }
.tone-mint { --tone: var(--c-mint); --tint: var(--t-mint); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 1.125rem;
	line-height: 1.65;
	font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration-color: var(--c-sky); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--c-tomato); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--c-sun); color: var(--navy); padding: 0.5rem 1rem; font-weight: 800; }
.skip:focus { left: 1rem; top: 1rem; }

.icon { width: 1.3em; height: 1.3em; flex: none; vertical-align: -0.28em; overflow: visible; }

/* Sticker drawings: hard offset shadow, a little wiggle when their card is hovered. */
.illo { display: block; overflow: visible; filter: drop-shadow(5px 5px 0 var(--illo-ink)); }
.illo-text { font-family: var(--font-display); font-weight: 700; fill: var(--illo-ink); stroke: none; }

@keyframes wiggle {
	0%, 100% { transform: rotate(0); }
	30% { transform: rotate(-4deg); }
	65% { transform: rotate(3deg); }
}

/* ---------- Header and the tape-measure strip ---------- */
.site-header { background: var(--navy); color: #fff; --icon-ink: var(--navy); --focus: var(--c-sun); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding-block: 0.9rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }
.logo-mark { width: 3.1rem; height: auto; flex: none; overflow: visible; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1; letter-spacing: 0.005em; }
.logo:hover .logo-mark { animation: wiggle 0.5s ease-in-out; }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.98rem; padding: 0.35rem 0.85rem; border: var(--line) solid transparent; border-radius: 999px; }
.nav a:hover { border-color: var(--c-sun); }
.nav a[aria-current] { background: var(--c-sun); color: var(--navy); border-color: var(--c-sun); }

.tape-strip {
	display: flex;
	overflow: hidden;
	height: 30px;
	color: var(--navy);
	border-block: var(--line) solid var(--navy);
	background:
		repeating-linear-gradient(90deg, var(--navy) 0 2.5px, transparent 2.5px 60px) 0 0 / 100% 14px no-repeat,
		repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 30px) 0 0 / 100% 10px no-repeat,
		repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px 6px) 0 0 / 100% 6px no-repeat,
		var(--c-sun);
}
.tape-strip span { flex: none; width: 60px; text-align: right; font-size: 0.68rem; font-weight: 800; line-height: 1; padding-top: 14px; transform: translateX(0.85ch); }
.site-footer .tape-strip { background-position: 0 100%, 0 100%, 0 100%, 0 0; }
.site-footer .tape-strip span { padding-top: 5px; }

/* ---------- Buttons, chips, size badges ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.1;
	color: var(--navy); background: var(--c-sun); text-decoration: none;
	padding: 0.7rem 1.25rem; border: var(--line) solid var(--navy); border-radius: 999px;
	box-shadow: 4px 4px 0 var(--navy);
	--icon-ink: var(--navy);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-small { font-size: 1rem; padding: 0.5rem 1rem; }
.btn-light { background: #fff; }

.card-cat { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.85rem; font-weight: 800; color: var(--text-soft); }

/* A size on a piece of tape measure: ticks along the top edge, tabular figures. */
.size-badge, .size-chip {
	display: inline-flex; align-items: baseline; justify-content: center; gap: 0.35em;
	color: var(--navy); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1;
	background:
		repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 7px) 3px 0 / calc(100% - 6px) 6px no-repeat,
		var(--c-sun);
	border: var(--line) solid var(--navy); border-radius: 6px;
}
.size-chip { min-width: 3.3em; padding: 0.55rem 0.4rem 0.3rem; font-size: 0.95rem; border-width: 2.5px; }
.size-badge-xl { padding: 0.95rem 1rem 0.55rem; box-shadow: 5px 5px 0 var(--navy); transform: rotate(-2deg); }
.size-badge-word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.size-badge-num { font-size: 2.6rem; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero {
	color: var(--navy);
	--icon-ink: var(--navy);
	--focus: var(--navy);
	background: linear-gradient(var(--c-sun) calc(100% - 7rem), var(--paper) 0);
	padding-top: clamp(2rem, 5vw, 3.75rem);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.5rem 3rem; align-items: center; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1; letter-spacing: -0.015em; margin: 0 0 1.1rem; }
.hero-lede { font-size: 1.2rem; line-height: 1.55; font-weight: 500; max-width: 34rem; margin: 0; }
.hero-art .illo { width: 100%; height: auto; }
/* The one moment of motion: the clothes swing once on their line when the page opens. */
.illo-hero .swing { transform-box: fill-box; transform-origin: 50% 0; animation: swing 1.6s cubic-bezier(0.3, 0.6, 0.4, 1) 0.2s both; }
.illo-hero .swing:nth-of-type(2) { animation-delay: 0.3s; }
.illo-hero .swing:nth-of-type(3) { animation-delay: 0.4s; }
.illo-hero .swing:nth-of-type(4) { animation-delay: 0.5s; }
@keyframes swing {
	0% { transform: rotate(7deg); }
	35% { transform: rotate(-4deg); }
	65% { transform: rotate(2deg); }
	100% { transform: rotate(0); }
}
.hero-tool { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- Maatwijzer ---------- */
.maatwijzer {
	container-type: inline-size;
	color: var(--text);
	--icon-ink: var(--text);
	background: var(--paper);
	border: var(--line) solid var(--edge);
	border-radius: 22px;
	box-shadow: 8px 8px 0 var(--shadow);
	padding: clamp(1.1rem, 3vw, 1.75rem);
}
.hero .maatwijzer { --edge: var(--navy); --shadow: var(--navy); }
.mw-top { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.2fr); gap: 1.25rem 2rem; align-items: center; }
.mw-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; margin: 0 0 0.4rem; }
.mw-title .icon { width: 1.5em; height: 1.5em; }
.mw-intro p { margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.5; }
.mw-form label { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.mw-input { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.mw-input input {
	width: 5.2ch; font: 900 2.2rem/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--navy);
	background: #fff; border: var(--line) solid var(--edge); border-radius: 12px; padding: 0.4rem 0.5rem; text-align: center;
	box-shadow: inset 0 4px 0 rgb(22 33 63 / 0.12);
}
.mw-input input::placeholder { color: #a9b1c3; font-weight: 700; }
.mw-input input:focus-visible { outline-offset: 2px; }
.mw-result { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; min-height: 5rem; }
.mw-result:empty { display: none; }
.mw-hint { color: var(--text-soft); font-weight: 600; }
.mw-facts { display: grid; gap: 0.1rem; font-size: 1rem; line-height: 1.4; }
.mw-gift { flex-basis: 100%; font-size: 0.95rem; color: var(--text-soft); }
.mw-gift a { font-weight: 800; color: var(--text); }

.mw-tape {
	position: relative;
	height: 58px;
	margin-top: 1.25rem;
	color: var(--navy);
	border: var(--line) solid var(--navy);
	border-radius: 6px;
	background:
		repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px 8px) 0 0 / 100% 7px no-repeat,
		var(--c-sun);
}
.mw-mark { position: absolute; top: 0; bottom: 0; width: 0; }
.mw-mark::before { content: ""; position: absolute; top: 0; left: -1.5px; width: 3px; height: 17px; background: var(--navy); }
.mw-mark span { position: absolute; bottom: 7px; left: 0; transform: translateX(-50%); font-size: 0.8rem; font-weight: 800; line-height: 1; padding: 0.2rem 0.25rem; border-radius: 4px; }
.mw-mark.is-active span { background: var(--navy); color: var(--c-sun); }
.mw-pointer { position: absolute; top: -12px; bottom: -12px; width: 0; transition: left 0.25s cubic-bezier(0.3, 1.4, 0.5, 1); }
.mw-pointer::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2.5px; width: 5px; background: var(--c-tomato); border: 2px solid var(--navy); border-radius: 3px; }
.mw-foot { margin: 1.25rem 0 0; }
/* On a narrow tape only every other size (or every fourth) gets a number, plus the selected one. */
@container (max-width: 760px) {
	.mw-mark:nth-child(even) span { display: none; }
	.mw-mark:nth-child(even)::before { height: 11px; }
}
@container (max-width: 440px) {
	.mw-mark:not(:nth-child(4n+1)) span { display: none; }
	.mw-mark:nth-child(odd):not(:nth-child(4n+1))::before { height: 14px; }
}
.mw-tape .mw-mark.is-active span { display: block; z-index: 1; }

/* ---------- Featured article ---------- */
.feature { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.feature-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature-art, .post-head-art {
	position: relative;
	display: grid; place-items: center;
	background: var(--tint);
	border: var(--line) solid var(--illo-ink);
	border-radius: 26px;
	box-shadow: 8px 8px 0 var(--illo-ink);
	padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3rem);
}
.feature-art .illo { width: min(100%, 22rem); height: auto; }
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.08; margin: 0.5rem 0 0.75rem; }
.feature-title a { text-decoration: none; }
.feature-title a:hover { text-decoration: underline wavy var(--c-tomato) 3px; text-underline-offset: 0.18em; }
.feature-desc { color: var(--text-soft); margin: 0 0 1.5rem; max-width: 32rem; }

/* A woven label sewn onto a drawing: stitched edge, slightly crooked. Decorative only. */
.sewn-label {
	position: absolute; top: 1rem; right: 1rem;
	font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1;
	color: var(--illo-ink); background: var(--illo-paper);
	padding: 0.6rem 0.9rem;
	border: var(--line) solid var(--illo-ink); border-radius: 5px;
	outline: 2px dashed var(--illo-ink); outline-offset: -7px;
	transform: rotate(4deg);
}

/* ---------- Categories on the home page ---------- */
.rubrieken { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem) 0; }
.rubriek {
	display: flex; flex-direction: column; align-items: flex-start;
	background: var(--paper);
	border: var(--line) solid var(--edge);
	border-radius: 26px;
	box-shadow: 8px 8px 0 var(--shadow);
	overflow: hidden;
	padding-bottom: 1.5rem;
}
.rubriek-head { align-self: stretch; position: relative; background: var(--tone); color: var(--navy); --icon-ink: var(--navy); --focus: var(--navy); padding: 1.5rem 1.5rem 1.25rem 6.5rem; border-bottom: var(--line) solid var(--edge); min-height: 7.5rem; }
.rubriek-sticker { position: absolute; left: 1.25rem; top: 1.25rem; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; background: #fff; border: var(--line) solid var(--navy); border-radius: 50%; box-shadow: 3px 3px 0 var(--navy); transform: rotate(-8deg); }
.rubriek-sticker .icon { width: 2.6rem; height: 2.6rem; }
.rubriek-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.1; margin: 0 0 0.35rem; }
.rubriek-title a { text-decoration: none; }
.rubriek-title a:hover { text-decoration: underline; text-decoration-color: var(--navy); }
.rubriek-intro { margin: 0; font-size: 1rem; line-height: 1.45; font-weight: 500; }
.mini-list { list-style: none; margin: 0; padding: 1rem 1.5rem 1.25rem; display: grid; gap: 0.25rem; align-self: stretch; }
.mini { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0.25rem; text-decoration: none; border-radius: 14px; }
.mini-art { flex: none; display: grid; place-items: center; width: 5.5rem; height: 4.25rem; background: var(--tint); border: var(--line) solid var(--illo-ink); border-radius: 14px; padding: 0.35rem 0.6rem; }
.mini-art .illo { width: 100%; height: 100%; filter: drop-shadow(3px 3px 0 var(--illo-ink)); }
.mini-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.mini:hover .mini-title { text-decoration: underline; text-decoration-color: var(--c-tomato); text-decoration-thickness: 3px; }
.mini:hover .illo { animation: wiggle 0.5s ease-in-out; }
.rubriek > .btn { margin-left: 1.5rem; }

/* ---------- Article cards ---------- */
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.card-link {
	display: flex; flex-direction: column; height: 100%;
	text-decoration: none;
	background: var(--paper);
	border: var(--line) solid var(--edge);
	border-radius: 20px;
	box-shadow: 6px 6px 0 var(--shadow);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow); }
.card-link:hover .illo { animation: wiggle 0.5s ease-in-out; }
.card-art { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--tint); border-bottom: var(--line) solid var(--edge); padding: 1.1rem 1.5rem; }
.card-art .illo { width: auto; height: 100%; max-width: 100%; }
.card-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.25rem 1.35rem; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; line-height: 1.18; }
.card-link:hover .card-title { text-decoration: underline wavy var(--c-tomato) 2px; text-underline-offset: 0.2em; }
.card-desc { color: var(--text-soft); font-size: 0.97rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--text-soft); }

/* ---------- Category pages and 404 ---------- */
.category-head, .not-found { background: var(--tint, var(--t-sky)); color: var(--navy); --icon-ink: var(--navy); --focus: var(--navy); border-bottom: var(--line) solid var(--navy); padding-block: clamp(2rem, 5vw, 3.5rem); }
.category-head-grid, .not-found-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
.category-lede { font-size: 1.2rem; line-height: 1.55; font-weight: 500; max-width: 36rem; margin: 0 0 1.25rem; }
.category-art .illo, .not-found-art .illo { width: min(100%, 20rem); height: auto; margin-inline: auto; }
.not-found-art { display: block; }
.category-tool { margin-top: clamp(2rem, 5vw, 3rem); }
.category-list { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }

/* ---------- Article header ---------- */
/* The article's own colour as a printed band; text stays navy in dark mode too. */
.post-head { background: var(--tint, var(--t-sun)); color: var(--navy); --icon-ink: var(--navy); --focus: var(--navy); border-bottom: var(--line) solid var(--navy); padding-block: clamp(1.5rem, 4vw, 3rem); }
.post-head .post-meta { color: #3b4562; }
.post-head .post-head-art { background: var(--illo-paper); }
.post-head-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.75rem clamp(2rem, 5vw, 4rem); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.crumbs a { text-decoration-thickness: 2px; }
.crumb-cat { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 1.1rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text-soft); }
.post-meta > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-head-art { transform: rotate(1.5deg); }
.post-head-art .illo { width: min(100%, 17rem); height: auto; }

/* ---------- Article body ---------- */
.post-body { max-width: var(--measure); padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.post-body > * { max-width: var(--measure); }
.post-body > .maatwijzer { margin-bottom: 2.5rem; }
.post-body .mw-top { grid-template-columns: minmax(0, 1fr) auto; }
.post-body .mw-result { grid-column: 1 / -1; min-height: 0; }

.summary {
	position: relative;
	background:
		repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 9px) 22px 0 / calc(100% - 44px) 9px no-repeat,
		var(--box-sun);
	border: var(--line) solid var(--edge);
	border-radius: 20px;
	box-shadow: 6px 6px 0 var(--shadow);
	padding: 1.6rem 1.5rem 1.35rem;
	margin-bottom: 2.25rem;
}
.summary-label { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; margin: 0 0 0.6rem; }
.summary-label .icon { width: 1.5em; height: 1.5em; }
.summary p { margin: 0; font-size: 1.12rem; line-height: 1.6; font-weight: 500; }

.prose { overflow-wrap: break-word; }
.prose > p:first-child { font-size: 1.22rem; line-height: 1.6; font-weight: 500; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.55rem, 3vw, 1.95rem); line-height: 1.15; margin: 2.75rem 0 0.9rem; }
/* A little piece of tape measure under each section heading. */
.prose h2::after {
	content: ""; display: block; width: 4.5rem; height: 12px; margin-top: 0.55rem;
	border: 2.5px solid var(--navy); border-radius: 3px;
	background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 7px) 3px 0 / calc(100% - 6px) 6px no-repeat, var(--c-sun);
}
.step-tag { display: inline-block; vertical-align: 0.12em; margin-right: 0.45rem; font-size: 0.75em; color: var(--navy); background: var(--c-mint); border: 2.5px solid var(--navy); border-radius: 8px; padding: 0.2rem 0.6rem; box-shadow: 3px 3px 0 var(--navy); transform: rotate(-3deg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prose h3 { font-weight: 800; font-size: 1.2rem; line-height: 1.3; margin: 1.9rem 0 0.4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose strong { font-weight: 800; }
.prose a { font-weight: 600; }

/* Lists of items: check boxes instead of bullets. */
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 2.1rem; margin-bottom: 0.55rem; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; background: var(--c-mint); border: 2.5px solid var(--navy); border-radius: 6px; }
.prose ul > li::after { content: ""; position: absolute; left: 0.47rem; top: 0.38em; width: 0.36rem; height: 0.66rem; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
/* Steps: big numbered dots. */
.prose ol { list-style: none; padding: 0; counter-reset: step; }
.prose ol > li { position: relative; padding-left: 2.6rem; margin-bottom: 0.7rem; counter-increment: step; min-height: 1.9rem; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -0.05em; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; font: 700 1.05rem/1 var(--font-display); color: var(--navy); background: var(--c-sun); border: 2.5px solid var(--navy); border-radius: 50%; }

/* Tables: a ruler along the left edge, zebra rows, header that sticks while you scroll. */
.table-wrap {
	margin: 1.5rem 0 1.75rem;
	border: var(--line) solid var(--edge);
	border-radius: 16px;
	box-shadow: 6px 6px 0 var(--shadow);
	overflow: clip;
	padding-left: 16px;
	background:
		repeating-linear-gradient(180deg, var(--navy) 0 2px, transparent 2px 10px) 0 0 / 9px 100% no-repeat,
		repeating-linear-gradient(180deg, var(--navy) 0 2px, transparent 2px 50px) 0 0 / 14px 100% no-repeat,
		var(--c-sun);
}
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; line-height: 1.35; background: var(--paper); border-left: var(--line) solid var(--navy); }
.prose th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; text-align: left; padding: 0.75rem 0.9rem; }
.prose td { padding: 0.55rem 0.9rem; vertical-align: middle; border-top: 1.5px solid color-mix(in srgb, var(--text) 14%, transparent); }
.prose tbody tr:nth-child(even) td { background: var(--paper-2); }
.prose tbody tr:hover td { background: var(--box-sun); }
.prose td:first-child { width: 1%; white-space: nowrap; }

/* Callouts and sections with their own look. */
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start; background: var(--box-sky); border: var(--line) solid var(--edge); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.callout p { margin: 0; font-size: 1rem; line-height: 1.6; }
.callout-icon { width: 2.2rem; height: 2.2rem; }

.part { margin: 2.75rem 0; }
.part > h2 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.part > h2 .h-icon { width: 1.6em; height: 1.6em; }
.part > h2::after { display: none; }
.part-warn, .part-measure { border: var(--line) solid var(--edge); border-radius: 22px; box-shadow: 6px 6px 0 var(--shadow); padding: 0.25rem clamp(1.1rem, 3vw, 1.75rem) 0.5rem; }
.part-warn { background: var(--box-tomato); }
.part-measure {
	background:
		repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 9px) 22px 0 / calc(100% - 44px) 10px no-repeat,
		var(--box-sun);
}
.part-warn > h2, .part-measure > h2 { margin-top: 1.4rem; }
.part-faq h3 { display: flex; align-items: flex-start; gap: 0.6rem; }
.part-faq h3 .q-icon { width: 1.45em; height: 1.45em; margin-top: -0.05em; }
.part-faq h3 + p { padding-left: 2.35rem; }
.part-sources { font-size: 0.95rem; }
.part-sources > h2 { font-size: 1.35rem; }
.part-sources ul > li { padding-left: 1.4rem; margin-bottom: 0.4rem; }
.part-sources ul > li::before { top: 0.5em; width: 0.65rem; height: 0.65rem; border-width: 2px; border-radius: 2px; background: var(--c-sky); }
.part-sources ul > li::after { display: none; }

.page-updated { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Lees ook ---------- */
.related { margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); background: var(--paper-2); border-top: var(--line) solid var(--edge); }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.1; margin: 0 0 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--navy); color: #fff; --icon-ink: var(--navy); --focus: var(--c-sun); }
main:has(> .related) + .site-footer { margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 3rem; padding-block: 2.5rem 2rem; font-size: 1rem; }
.footer-about p { margin: 0 0 0.75rem; color: #d8deec; max-width: 30rem; }
.footer-logo { color: #fff; margin-bottom: 1rem !important; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-nav a { color: #fff; font-weight: 700; text-decoration-color: var(--c-sun); }
.footer-small { grid-column: 1 / -1; color: #c3cbe0; font-size: 0.9rem; margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
	.hero-grid, .feature-card, .post-head-grid, .category-head-grid, .not-found-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-art { margin-inline: -0.5rem; }
	.mw-top, .post-body .mw-top { grid-template-columns: minmax(0, 1fr); }
	.post-head-art { max-width: 24rem; padding: 1.25rem 1.5rem; }
	.post-head-art .illo { width: min(100%, 13rem); }
	.category-art .illo, .not-found-art .illo { width: min(70%, 15rem); margin-inline: 0; }
	.footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	body { font-size: 1.0625rem; }
	.logo-name { font-size: 1.35rem; }
	.logo-mark { width: 2.6rem; }
	.nav a { font-size: 0.92rem; padding: 0.3rem 0.7rem; }
	.hero { background: linear-gradient(var(--c-sun) calc(100% - 5rem), var(--paper) 0); }
	.hero-lede, .category-lede { font-size: 1.08rem; }
	.size-badge-num { font-size: 2.2rem; }
	.rubriek-head { padding: 5.75rem 1.25rem 1.1rem; }
	.rubriek-sticker { left: 1.25rem; top: 1rem; }
	.mini-list { padding-inline: 1rem; }
	.rubriek > .btn { margin-left: 1.25rem; }
	.prose > p:first-child { font-size: 1.12rem; }
	.prose table { font-size: 0.93rem; }
	.prose th { padding: 0.6rem 0.6rem; font-size: 0.95rem; }
	.prose td { padding: 0.45rem 0.6rem; }
	.table-wrap { padding-left: 12px; }
	.sewn-label { font-size: 0.92rem; top: 0.7rem; right: 0.7rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.btn:hover, .card-link:hover { transform: none; }
}
