/* Opmaak van de uitlegpagina's. Zelfde kleuren en lettertypes als de tool op de homepage. */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --ink: #14212b;
  --muted: #5a6772;
  --line: #d6dde3;
  --accent: #23439a;
  --accent-ink: #ffffff;
  --tint: #dde6fb;
  --tint-t: #22408f;
  --warn-bg: #fbe8c8;
  --warn-t: #6b4100;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151b; --surface: #17202a; --surface-2: #1d2833; --ink: #e6ecf1; --muted: #9aa8b4; --line: #2a3744;
    --accent: #8fa8ff; --accent-ink: #0f151b; --tint: #1f2f55; --tint-t: #a9bfff;
    --warn-bg: #3d2e14; --warn-t: #f4c674;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f151b; --surface: #17202a; --surface-2: #1d2833; --ink: #e6ecf1; --muted: #9aa8b4; --line: #2a3744;
  --accent: #8fa8ff; --accent-ink: #0f151b; --tint: #1f2f55; --tint-t: #a9bfff;
  --warn-bg: #3d2e14; --warn-t: #f4c674;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--f-body);
  padding-inline: 16px;
  padding-block: 28px 48px;
}
.wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
a { color: var(--accent); }

header { display: flex; flex-direction: column; gap: 10px; }
.brand { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand a { color: var(--ink); text-decoration: none; }
.brand .dot { color: var(--accent); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.lede { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.updated { margin: 0; font-size: 13px; color: var(--muted); }

/* mini-invoer die doorstuurt naar de tool */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta p { margin: 0; font-weight: 600; }
.cta form { display: flex; gap: 8px; flex-wrap: wrap; }
.cta input {
  flex: 1 1 260px;
  min-width: 0;
  font: 500 1.15rem/1 var(--f-mono);
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 13px 14px;
  outline: none;
}
.cta input:focus { border-color: var(--accent); }
.cta button {
  font: 600 15px var(--f-body);
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--r);
  padding: 0 22px;
  min-height: 48px;
  cursor: pointer;
}
.cta button:hover { filter: brightness(1.08); }
.cta small { color: var(--muted); font-size: 13px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cta small.fout { color: var(--bad, #b3261e); font-weight: 600; }
.uitkomst { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.uitkomst .label { font: 600 11.5px var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.uitkomst .rij { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.uitkomst code.groot { font-size: clamp(18px, 4.6vw, 24px); font-weight: 600; background: none; border: 0; padding: 0; }
.uitkomst .sub { color: var(--muted); font-size: 13.5px; }
.cta button.kopieer, .cta button.knop2, .knop2 { width: auto; min-height: 0; font: 600 13px var(--f-body); background: transparent; color: var(--accent); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; cursor: pointer; }
.cta button.kopieer:hover, .cta button.knop2:hover, .knop2:hover { border-color: var(--accent); }

/* artikel */
article { display: flex; flex-direction: column; gap: 26px; }
article section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
article h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
article h3 { margin: 6px 0 0; font-size: 1.05rem; }
article p, article ul, article ol { margin: 0; max-width: 68ch; }
article ul, article ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
code { font-family: var(--f-mono); font-size: .92em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { background: var(--warn-bg); color: var(--warn-t); border-radius: var(--r); padding: 12px 16px; }
.note p { color: inherit; }
.ex { font-family: var(--f-mono); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; }

/* meer uitleg */
.more { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.more h2 { margin: 0; font: 600 13px var(--f-body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.links a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
}
.links a:hover { border-color: var(--accent); }
.links a span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.links a[aria-current] { border-color: var(--accent); background: var(--tint); color: var(--tint-t); }

footer { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; max-width: 68ch; }
footer p { margin: 0; }

@media (max-width: 560px) {
  .cta button { width: 100%; }
  /* tabellen met een lange eerste kolom: cellen onder elkaar */
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; border-bottom: 0; padding-block: 3px; }
  table.stack td:first-child { font-weight: 600; }
}
