@font-face {
  font-family: "Figtree";
  src: url("/static/font.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/font-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Young Serif";
  src: url("/static/display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Palette: herbarium paper, forest green and terracotta. */
:root {
  --bg: #f3f0e6;
  --surface: #fffdf6;
  --text: #1d2a22;
  --muted: #5e6a61;
  --line: #e0dacb;
  --ink: #173a2c;          /* dark panels */
  --ink-text: #f1efe4;
  --ink-muted: #b4c2b6;
  --accent: #2c6a4c;
  --terra: #b85c38;
  --ok: #2f7d4f; --ok-bg: #e2f1e6;
  --bad: #b2452b; --bad-bg: #f8e2da;
  --unk: #6b6f66; --unk-bg: #ebe9e1;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(29 42 34 / .05), 0 8px 24px -12px rgb(29 42 34 / .18);
  --shadow-lift: 0 2px 4px rgb(29 42 34 / .06), 0 18px 40px -14px rgb(29 42 34 / .3);
  --serif: "Young Serif", Georgia, serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1511; --surface: #16201a; --text: #e7eadf; --muted: #9ba89e; --line: #26342b;
  --ink: #12291f; --accent: #8fd0a4; --terra: #e58f69;
  --ok: #8fd0a4; --ok-bg: #173325; --bad: #f09a7c; --bad-bg: #3a1f17; --unk: #a9ada3; --unk-bg: #23281f;
  --shadow: 0 1px 2px rgb(0 0 0 / .3); --shadow-lift: 0 18px 40px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1511; --surface: #16201a; --text: #e7eadf; --muted: #9ba89e; --line: #26342b;
    --ink: #12291f; --accent: #8fd0a4; --terra: #e58f69;
    --ok: #8fd0a4; --ok-bg: #173325; --bad: #f09a7c; --bad-bg: #3a1f17; --unk: #a9ada3; --unk-bg: #23281f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3); --shadow-lift: 0 18px 40px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* Section colours: --c is the colour, --cs a soft tint behind icons. */
.c-kamer  { --c: #2c6a4c; --cs: #dcebdf; }
.c-tuin   { --c: #6b7f2a; --cs: #e8edd3; }
.c-gids   { --c: #9a5b13; --cs: #f3e4c9; }
.c-dokter { --c: #b85c38; --cs: #f6e0d6; }
.c-quiz   { --c: #5a5aa8; --cs: #e4e3f4; }
.c-pet    { --c: #2f7d4f; --cs: #e2f1e6; }
:root[data-theme="dark"] :is(.c-kamer, .c-pet) { --c: #8fd0a4; --cs: #173325; }
:root[data-theme="dark"] .c-tuin   { --c: #c3d27a; --cs: #262c14; }
:root[data-theme="dark"] .c-gids   { --c: #e3b766; --cs: #2f2412; }
:root[data-theme="dark"] .c-dokter { --c: #e58f69; --cs: #36201a; }
:root[data-theme="dark"] .c-quiz   { --c: #a9a8ec; --cs: #24243b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.c-kamer, .c-pet) { --c: #8fd0a4; --cs: #173325; }
  :root:not([data-theme="light"]) .c-tuin   { --c: #c3d27a; --cs: #262c14; }
  :root:not([data-theme="light"]) .c-gids   { --c: #e3b766; --cs: #2f2412; }
  :root:not([data-theme="light"]) .c-dokter { --c: #e58f69; --cs: #36201a; }
  :root:not([data-theme="light"]) .c-quiz   { --c: #a9a8ec; --cs: #24243b; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-spacing: .06em;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { color: var(--text); background: var(--surface); }
.top .right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--muted); background: transparent; border: 1.5px solid var(--line); border-radius: 12px;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); background: var(--surface); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show the moon in light mode, the sun in dark mode. */
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
@media (max-width: 720px) { .top nav { display: none; } }

main { padding-top: 8px; padding-bottom: 64px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: 1.45rem; margin: 40px 0 14px; }

/* Home hero */
.hero {
  position: relative; overflow: hidden;
  margin: 20px 0 8px; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 28px; color: #f7f4ec;
  background:
    radial-gradient(600px 300px at 90% 0%, rgb(250 204 21 / .32), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgb(16 185 129 / .38), transparent 60%),
    linear-gradient(135deg, #0b1f1a, #0f2f27);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: #bbf7d0; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; margin: 0 0 16px; letter-spacing: -.045em; line-height: 1; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #34d399, #facc15); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: #c9d2de; max-width: 620px; margin: 0 0 28px; }
.search { position: relative; max-width: 560px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: #a7b1bf; z-index: 1; }
.search input::placeholder { color: #a7b1bf; }
.search input:focus { background: rgb(255 255 255 / .14); border-color: transparent; }
input::placeholder { color: var(--muted); opacity: 1; }
.search input {
  width: 100%; min-height: 60px; padding: 0 20px 0 52px; border: 0; border-radius: 16px;
  font: inherit; font-size: 1.08rem; color: #f7f4ec; caret-color: #3fd0ae; color-scheme: dark;
  background: rgb(255 255 255 / .1); border: 1.5px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5);
}
.search input:focus { outline: 3px solid #3fd0ae; outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { color: #e4eaf2; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .14); }
.chips a:hover { background: rgb(255 255 255 / .18); }

.group h2 { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.noresult { text-align: center; color: var(--muted); padding: 40px 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--c); }
.card .txt { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.card strong { display: block; font-size: 1.04rem; margin: 2px 0 4px; }
.card .txt > span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cs); color: var(--c); }
.ico svg { width: 24px; height: 24px; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 56px; }
.why div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why h3 { margin: 0 0 6px; font-size: 1.08rem; }
.why p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Calculator page header */
.calc-head { padding: 28px 0 22px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.calc-title { display: flex; align-items: center; gap: 16px; }
.calc-title .ico { width: 58px; height: 58px; border-radius: 18px; }
.calc-title .ico svg { width: 30px; height: 30px; }
.calc-title h1 { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.calc-head h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 800; margin: 0; letter-spacing: -.04em; }
.calc-head .lead { color: var(--muted); font-size: 1.1rem; margin: 12px 0 0; }

/* Calculator */
.tool {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow);
  border-top: 4px solid var(--c);
}
/* Single-section calculators: inputs left, result right. */
@media (min-width: 880px) {
  .tool:not(:has(h2.sub)):has(> .result) { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .tool:not(:has(h2.sub)) > .result { margin-top: 0; position: sticky; top: 84px; }
  .tool:not(:has(h2.sub)) .fields { grid-template-columns: 1fr 1fr; }
}
.tool h2.sub { font-size: 1.1rem; margin: 32px 0 14px; }
.tool h2.sub:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-content: start; align-items: end; }
.fields > label, .field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 700; }
/* Label text and its hint ("optioneel") share one line; the field goes below. */
.fields > label:not(.check) { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 6px; align-items: baseline; align-content: end; }
.fields > label:not(.check) > :is(.in, input, select, textarea) { grid-column: 1 / -1; }
.fields > label:not(.check) > small { justify-self: start; }
.field.wide, .fields > label[data-show] { grid-column: 1 / -1; }
.flabel { display: block; }
.fields small { font-weight: 500; color: var(--muted); }
.fields label.check { flex-direction: row; align-items: center; gap: 10px; align-self: end; min-height: 52px; font-weight: 600; cursor: pointer; }

input, select {
  font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--text); background: var(--bg);
  caret-color: var(--c, var(--accent));
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 52px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 40%, var(--line)); }
input:focus, select:focus { outline: none; border-color: var(--c, var(--accent)); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
textarea {
  font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical;
  caret-color: var(--c, var(--accent)); font-variant-numeric: tabular-nums;
}
textarea:focus { outline: none; border-color: var(--c, var(--accent)); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
.fields > label.wide-label { grid-column: 1 / -1; }
.note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.today-week { grid-column: 1 / -1; margin: 0 0 18px; font-size: 1.15rem; }
.today-week strong { color: var(--c); }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--c); }
input[type=date] { font-variant-numeric: tabular-nums; }

/* Input with unit */
.in { position: relative; display: block; }
.in::after {
  content: attr(data-unit); position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; font-size: .95rem; pointer-events: none;
}
.in[data-unit="€"]::after { right: auto; left: 14px; }
.in[data-unit="€"] input { padding-left: 34px; }
.in:not([data-unit="€"]) input { padding-right: 76px; }

/* Segmented control */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; }
.seg label { flex: 1 1 auto; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: .93rem; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--surface); color: var(--c); box-shadow: 0 1px 3px rgb(16 24 40 / .14); }
.seg input:focus-visible + span { outline: 2px solid var(--c); }

/* Result panel */
.result {
  margin-top: 20px; padding: 24px; border-radius: 20px; color: var(--ink-text);
  background:
    radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
    var(--ink);
}
.result dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 20px; }
.result .main { order: -1; grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.result dt { font-size: .82rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.result dd { margin: 4px 0 0; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.result .main dd { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: #fff; }
.pop { animation: pop .35s ease; }
@keyframes pop { 0% { opacity: .4; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } .card { transition: none; } }
.result output { display: inline-block; }

.table-wrap { margin-top: 18px; overflow-x: auto; }
.table-wrap summary { cursor: pointer; font-weight: 700; color: #fff; }
.table-wrap table { color: var(--ink-text); }
.table-wrap th { color: var(--ink-muted); }
.table-wrap th, .table-wrap td { border-color: rgb(255 255 255 / .12); }

/* Percentages: sentence rows */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 4px; }
.row:last-child { border-bottom: 0; padding-bottom: 4px; }
.row label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.row input { width: 110px; text-align: center; }
.row output { font-weight: 800; font-size: 1.35rem; color: var(--c); font-variant-numeric: tabular-nums; padding: 6px 14px; background: var(--cs); border-radius: 12px; }

/* BMI scale */
.scale { position: relative; height: 12px; margin: 22px 0 6px; }
.scale span { position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(90deg, #60a5fa 0 14%, #22c55e 14% 40%, #f59e0b 40% 60%, #ef4444 60% 100%); }
.scale i { position: absolute; top: -6px; width: 6px; height: 24px; margin-left: -3px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 2px var(--ink); transition: left .3s ease; }

.share { display: flex; justify-content: flex-end; margin-top: 12px; }
.share button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  font: inherit; font-weight: 700; font-size: .93rem; color: var(--c); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.share button:hover { border-color: var(--c); background: var(--cs); }
.share button svg { width: 18px; height: 18px; }

/* Article */
.prose { max-width: 720px; margin-top: 16px; }
.prose h2 { margin-top: 44px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 14px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
td { font-variant-numeric: tabular-nums; }
.prose table { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; }
.related { margin-top: 56px; }

/* Back to top */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); transition: opacity .2s, transform .2s, border-color .15s;
}
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 22px; height: 22px; }
.to-top[hidden] { display: grid !important; opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Footer */
.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 40px 0 28px; }
.bottom a { color: var(--muted); text-decoration: none; }
.bottom a:hover { color: var(--text); }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: 24px; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2 180px; }
.foot-links li { margin: 0 0 6px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

/* ===== Koopeenfiets.eu components ===== */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 1.02rem;
  text-decoration: none; color: #fff; background: #059669; border: 0; box-shadow: 0 10px 24px -10px rgb(5 150 105 / .7); }
.btn:hover { background: #047857; }
.btn svg { width: 22px; height: 22px; }
.btn.ghost { background: rgb(255 255 255 / .1); border: 1.5px solid rgb(255 255 255 / .25); box-shadow: none; }
.btn.ghost:hover { background: rgb(255 255 255 / .18); }
.subhead { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin: 26px 0 12px; color: var(--muted); }
.summary-box { padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--c, var(--accent)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 28%, transparent); margin: 6px 0 10px; }
.summary-box p { margin: 0; }
.guide { --c: #9a5b13; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin: 10px 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #fff; background: var(--c); }
.updated { color: var(--muted); font-size: .88rem; margin-top: 28px; }
.note { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.result-note { margin: 14px 0 0; font-size: .9rem; color: var(--ink-muted); }
.result-note:empty { display: none; }
.quiz { display: flex; flex-direction: column; gap: 22px; }
.quiz .q .flabel { font-weight: 800; margin-bottom: 8px; display: block; }
.quiz .seg span { white-space: normal; }
.quiz-result .why-text { margin: 14px 0 6px; font-size: 1.05rem; color: var(--ink-text); }
.quiz-result .alt { margin: 0 0 18px; color: var(--ink-muted); }
.quiz-hint { margin: 0; color: var(--muted); text-align: center; }
@media (min-width: 880px) { .tool.quiz.quiz.quiz.quiz { display: flex; } }
/* Tables in articles must fit a phone: equal columns that wrap. */
.prose table { table-layout: fixed; }
.prose th, .prose td { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; vertical-align: top; }
@media (max-width: 520px) { .prose table { font-size: .86rem; } .prose th, .prose td { padding: 8px 6px; } }
.hero-compact { padding-top: clamp(26px, 4vw, 48px); padding-bottom: clamp(26px, 4vw, 44px); }
.hero-compact h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.hero-compact .lead { margin-bottom: 0; }
#berekenen { margin-top: 18px; }
.table-wrap td small { color: var(--ink-muted); font-weight: 500; }
.prose { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 16px; }
.checks label.check { min-height: 40px; font-weight: 600; }
.checks small { color: var(--muted); font-weight: 500; margin-left: 4px; }

dl.terms dt { font-weight: 700; margin-top: 18px; scroll-margin-top: 80px; }
dl.terms dd { margin: 4px 0 0; }
.source { font-size: .88rem; color: var(--muted); }


/* ===== Plantenexpert: herbarium look ===== */
h1, h2, h3, .logo, .card strong, .pc-name, .tile strong { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { letter-spacing: -.01em; }
h2 { font-size: 1.55rem; }
.logo { font-weight: 400; font-size: 1.3rem; letter-spacing: 0; }
.logo b { color: var(--terra); font-weight: 400; }
.calc-head h1 { font-weight: 400; letter-spacing: -.015em; }
.card strong { font-size: 1.08rem; }
.prose h2 { padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
::selection { background: rgb(44 106 76 / .25); }
a { color: var(--accent); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 12px;
  color: #f1efe4; border-radius: 28px;
  background:
    radial-gradient(520px 340px at 85% 30%, rgb(143 208 164 / .18), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgb(184 92 56 / .28), transparent 65%),
    linear-gradient(140deg, #133024, #1d4634);
}
.hero::after { background-image: radial-gradient(rgb(255 255 255 / .05) 1px, transparent 1px); mask-image: linear-gradient(to right, #000, transparent 60%); }
.eyebrow { color: #f0b48f; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.hero h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: #a9d9b4; background: none; -webkit-text-fill-color: currentColor; }
.hero .lead { color: #c9d6cc; }
.hero-art { align-self: stretch; min-height: 320px; margin: -40px -40px -40px 0;
  background: url("/static/leaf.svg") center / contain no-repeat; opacity: .9; }
.search input { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); }
.search input:focus { outline-color: #a9d9b4; }
.search svg { color: #b4c2b6; }
.chips a { background: rgb(255 255 255 / .08); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -90px; top: -60px; width: 300px; height: 300px; min-height: 0; margin: 0; opacity: .25; z-index: 0; }
}

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 22px; }
.tile { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 20px; border-radius: 20px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.tile .ico { grid-row: span 2; width: 52px; height: 52px; }
.tile strong { font-size: 1.2rem; line-height: 1.2; }
.tile > span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--c); }
.t-kamer { --c: #2c6a4c; --cs: #dcebdf; } .t-tuin { --c: #6b7f2a; --cs: #e8edd3; } .t-quiz { --c: #5a5aa8; --cs: #e4e3f4; }
.t-dokter { --c: #b85c38; --cs: #f6e0d6; } .t-pet { --c: #2f7d4f; --cs: #e2f1e6; } .t-cal { --c: #9a5b13; --cs: #f3e4c9; }
:root[data-theme="dark"] .tile { --cs: color-mix(in srgb, var(--c) 18%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { --cs: color-mix(in srgb, var(--c) 18%, transparent); } }
.more { margin-top: 18px; }
.btn { background: var(--accent); box-shadow: none; }
:root[data-theme="dark"] .btn { color: #0e1511; }

/* Plant cards: herbarium labels */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 14px; border-radius: 6px 22px 6px 22px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.pcard::before { content: ""; position: absolute; inset: 6px; border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--muted)); border-radius: 3px 18px 3px 18px; pointer-events: none; opacity: .7; }
.pcard:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.pc-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 8px; }
.pcard.g-tuin .pc-ico { color: #6b7f2a; background: color-mix(in srgb, #6b7f2a 14%, transparent); }
.pc-ico svg { width: 22px; height: 22px; }
.pc-name { font-size: 1.22rem; line-height: 1.2; }
.pc-sci { font-style: italic; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.pc-short { font-size: .9rem; color: color-mix(in srgb, var(--text) 80%, var(--muted)); margin: 8px 0 12px; line-height: 1.45; flex: 1; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.pips { display: inline-flex; align-items: center; gap: 10px; }
.pips svg { width: 17px; height: 17px; }
.pip-sun { color: #c98a12; display: inline-flex; }
.pip-sun.l1 { opacity: .35; } .pip-sun.l2 { opacity: .6; } .pip-sun.l3 { opacity: .85; }
.pip-drop { color: #3b82b8; display: inline-flex; gap: 0; }
.pip-drop svg { width: 14px; height: 14px; margin-right: -2px; }
:root[data-theme="dark"] .pip-drop { color: #7cb8e4; }
.pet { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; padding: 3px 8px 3px 6px; border-radius: 999px; }
.pet svg { width: 14px; height: 14px; }
.pet.ok { color: var(--ok); background: var(--ok-bg); }
.pet.bad { color: var(--bad); background: var(--bad-bg); }
.pet.unk { color: var(--unk); background: var(--unk-bg); }
.results { margin-top: 26px; }
.legend { color: var(--muted); font-size: .86rem; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.legend svg { width: 15px; height: 15px; vertical-align: -2px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; margin: 4px 0 20px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.filters .field { gap: 6px; font-size: .85rem; }
.filters .seg span { padding: 7px 10px; font-size: .86rem; }
.filters .check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; min-height: 44px; cursor: pointer; }
.filters .count { margin: 0 0 0 auto; color: var(--muted); font-weight: 600; align-self: center; }
@media (max-width: 640px) { .filters .seg span { white-space: normal; } .filters .count { margin-left: 0; } }

/* Plant page */
.plant-head { padding: 24px 0 12px; }
.label { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 8px 28px 8px 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.label::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--line); border-radius: 4px 22px 4px 22px; pointer-events: none; }
.label-ico { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: var(--cs); }
.label-ico svg { width: 40px; height: 40px; }
.label h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0; line-height: 1.05; }
.label-kind { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--terra); }
.label-sci { margin: 6px 0 0; color: var(--muted); }
.plant-head .lead { color: var(--muted); font-size: 1.12rem; margin: 16px 4px 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.fact { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fact .ico { grid-row: span 2; width: 42px; height: 42px; }
.fact dl { margin: 0; }
.fact dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.fact dd { margin: 0; font-weight: 700; line-height: 1.3; }
.fact .meter { grid-column: 2; display: flex; gap: 4px; margin-top: 6px; }
.meter i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.f-light { --c: #c98a12; --cs: #f7ebcf; } .f-water { --c: #3b82b8; --cs: #ddebf6; } .f-care { --c: #2c6a4c; --cs: #dcebdf; } .f-temp { --c: #b85c38; --cs: #f6e0d6; }
:root[data-theme="dark"] .fact { --cs: color-mix(in srgb, var(--c) 20%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact { --cs: color-mix(in srgb, var(--c) 20%, transparent); } }
.meter i.on { background: var(--c); }
.tox { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid; }
.tox .ico { flex: none; width: 42px; height: 42px; background: transparent; box-shadow: none; }
.tox strong { font-size: 1.05rem; }
.tox p { margin: 4px 0 0; font-size: .93rem; }
.tox-ok { color: var(--text); background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 35%, transparent); --c: var(--ok); }
.tox-bad { color: var(--text); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, transparent); --c: var(--bad); }
.tox-unk { color: var(--text); background: var(--unk-bg); border-color: var(--line); --c: var(--unk); }
.tox .ico { color: var(--c); }
.season { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.mo { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mo-name { font-size: .78rem; font-weight: 700; color: var(--muted); }
.mo i { display: block; width: 100%; height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--line) 60%, transparent); }
.mo i:empty:not([class]) { opacity: .5; }
.m-plant { background: #6b7f2a !important; } .m-bloei { background: #c45f8f !important; } .m-oogst { background: #c98a12 !important; }
.season-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: .9rem; }
.season-key span::before, .cal-row > span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k-plant::before { background: #6b7f2a; } .k-bloei::before { background: #c45f8f; } .k-oogst::before { background: #c98a12; }
.prose .problems { table-layout: auto; }

/* Plant doctor */
.causes { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.cause { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.cause summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; font-size: 1.05rem; }
.cause summary::-webkit-details-marker { display: none; }
.cause .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; color: #fff; background: var(--terra); }
.cause-body p { margin: 0 0 12px; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cal-month { padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cal-month h2 { margin: 0 0 10px; font-size: 1.3rem; text-transform: capitalize; }
.cal-month.now { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.cal-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0; font-size: .93rem; }
.cal-row > span { font-weight: 700; min-width: 76px; }
.cal-row.empty { color: var(--muted); }

/* Quiz */
.quiz-out h2 { margin-top: 8px; }
.subhead.ok { color: var(--ok); } .subhead.bad { color: var(--bad); }
.switch { margin: 0 0 8px; color: var(--muted); }
.ico { border-radius: 50%; }
.label > div { min-width: 0; }
.label h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 520px) {
  .label { padding: 18px; gap: 12px; }
  .label-ico { width: 52px; height: 52px; }
  .label-ico svg { width: 28px; height: 28px; }
  .label h1 { font-size: 1.85rem; }
}

/* Photos */
.pc-img { display: block; margin: -6px -6px 12px; border-radius: 3px 16px 3px 3px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pcard:hover .pc-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .pcard:hover .pc-img img { transform: none; } }
.plant-top.has-photo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.plant-photo { margin: 0; position: relative; }
.plant-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 6px 28px 6px 28px; box-shadow: var(--shadow-lift);
  border: 8px solid var(--surface); }
.plant-photo::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, #e8dcc0 80%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / .12); z-index: 1; }
:root[data-theme="dark"] .plant-photo::before { background: rgb(232 220 192 / .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plant-photo::before { background: rgb(232 220 192 / .35); } }
.plant-photo figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; text-align: right; line-height: 1.4; }
.plant-photo figcaption a { color: var(--muted); }
@media (max-width: 760px) {
  .plant-top.has-photo { grid-template-columns: 1fr; }
  .plant-photo { order: -1; }
  .plant-photo img { max-height: 340px; width: 100%; }
}
@media (max-width: 520px) {
  .fact { grid-template-columns: 1fr; padding: 12px 14px; }
  .fact .ico { display: none; }
  .fact .meter { grid-column: 1; }
  .fact dd { font-size: .95rem; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
}
.prose a { overflow-wrap: anywhere; } /* long URLs */
