/* Zelfde kleuren en toon als vibuddy-site. Lettertypes worden niet extern geladen; zie README. */
:root {
  --bg: #FFF7EC;
  --surface: #FFFFFF;
  --ink: #33291F;
  --muted: #7C6B57;
  --amber: #F2A03D;
  --amber-deep: #B85C12;
  --leaf: #2E8554;
  --leaf-soft: #E3F3E9;
  --red: #B3372B;
  --red-soft: #FBE4E0;
  --amber-soft: #FDEBD0;
  --line: #F0E2CD;
  --line-strong: #DCC5A4;
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241C14;
    --surface: #2F251A;
    --ink: #FBEFD9;
    --muted: #C3AC8E;
    --amber: #F6B056;
    --amber-deep: #F6B056;
    --leaf: #5FC184;
    --leaf-soft: #24392C;
    --red: #F08A7E;
    --red-soft: #4A2520;
    --amber-soft: #4A3620;
    --line: #43362A;
    --line-strong: #6E5B46;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--amber-deep); }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
h1, h2 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
code, pre, .mono { font-family: var(--font-mono); font-size: .88em; }
pre { overflow-x: auto; background: var(--bg); border-radius: 10px; padding: 14px; margin: 0 0 .6em; }

.top, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo { width: 26px; height: 30px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.sep { color: var(--line); margin: 0 8px; }
main { padding-bottom: 40px; }
main > section, main > details { margin-bottom: 28px; }
footer { color: var(--muted); font-size: .9rem; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); }

.hero { padding: 28px 24px; border-radius: 24px; background: var(--amber-soft); }
.hero.calm { background: var(--leaf-soft); }
.hero h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }

.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
main > .card { margin-bottom: 16px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list.compact { gap: 6px; }
.action { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); text-decoration: none; }
.action:hover { border-color: var(--amber); }
.action-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.compact .action { padding: 12px 16px; }
.compact strong { font-weight: 600; }

.chip { flex: none; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.sev-critical, .chip.sev-high { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip.sev-medium { background: var(--amber-soft); color: var(--amber-deep); border-color: transparent; }
.chip.ok { background: var(--leaf-soft); color: var(--leaf); border-color: transparent; }

.coverage { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cov-scanned > span:first-child { color: var(--leaf); font-weight: 800; }
.cov-failed > span:first-child { color: var(--red); font-weight: 800; }
.scan p { margin-bottom: .6em; }
.notice { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--red-soft); }

.trend { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 8px; }
.trend text { fill: var(--ink); font-size: 12px; font-family: var(--font-body); font-weight: 700; }
.trend .axis { fill: var(--muted); font-weight: 400; font-size: 11px; }
.bar { fill: var(--amber); }
.bar.partial { fill: var(--line); stroke: var(--muted); stroke-dasharray: 3 3; }

.steps { margin: 0 0 .8em; padding-left: 1.3em; }
.steps li { margin-bottom: .4em; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; margin-bottom: .3em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tab { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; }
.tabs.small .tab { font-size: .88rem; font-weight: 600; }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

details summary { cursor: pointer; font-weight: 700; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 12px 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }

.controls { margin: 8px 0 0; }
.reason { color: var(--muted); font-size: .9rem; }
.trend-title { margin: 14px 0 0; }
.cov-none > span:first-child { color: var(--muted); }
.chain { border-top: 1px solid var(--line); padding-top: 14px; }

/* Etiketten naast elkaar, kenmerk "taalmodel" */
.chips { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chip.review { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.eyebrow .chip.review { margin-left: -4px; }
.tag { font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--muted); color: var(--muted); white-space: nowrap; }
.card.attention { border-color: var(--ink); border-width: 2px; }
.model-note { margin: 0 0 .8em; padding: 10px 14px; border-left: 3px solid var(--muted); background: var(--bg); border-radius: 0 10px 10px 0; }

/* Codefragment met regelnummers en markering */
pre.code { padding: 10px 0; line-height: 1.5; }
.line { display: grid; grid-template-columns: 4ch 7ch 1fr; column-gap: 8px; padding: 0 14px 0 8px; border-left: 4px solid transparent; }
.line code { white-space: pre; font-size: 1em; }
.ln { text-align: right; color: var(--muted); user-select: none; }
.mk { color: var(--muted); font-size: .85em; font-weight: 700; user-select: none; }
.line.ev { background: var(--leaf-soft); border-left-color: var(--leaf); }
.line.ev .mk { color: var(--leaf); }
.line.hit { background: var(--amber-soft); border-left-color: var(--amber-deep); }
.line.hit .mk { color: var(--amber-deep); }
.cut { color: var(--muted); font-style: italic; }
.legend { margin-bottom: .4em; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 2px; }
.swatch.hit { background: var(--amber-soft); border: 1px solid var(--amber-deep); }
.swatch.ev { background: var(--leaf-soft); border: 1px solid var(--leaf); margin-left: 12px; }
details.more { margin-top: 6px; }
details.more pre { margin-top: 10px; }

/* Het spoor van de invoer */
.trace { margin: 0; padding-left: 1.3em; }
.trace li { margin-bottom: .7em; }
.trace pre { margin: 6px 0 0; padding: 8px 12px; }

/* Kop: wie is er ingelogd */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 2; }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.who form { margin: 0; }
button { font: inherit; cursor: pointer; }
button.link { background: none; border: 0; padding: 0; color: var(--amber-deep); text-decoration: underline; }
.button { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none; }
.button:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.button.small { padding: 5px 14px; font-size: .9rem; }
.button.secondary { background: transparent; color: var(--ink); }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .4em; }
.lead { font-size: 1.1rem; }
.notice.calm { background: var(--leaf-soft); }
.card.here { border: 2px solid var(--amber); }

/* De route: een lijn met haltes */
.route { margin: 0 0 22px; display: flex; flex-direction: column; }
.route ol { list-style: none; margin: 0; padding: 4px 2px 6px; display: flex; gap: 0; }
.halte { position: relative; flex: 1 1 0; min-width: 0; text-align: center; }
.halte::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line-strong); }
.halte:first-child::before { display: none; }
.halte.done::before, .halte.current::before { background: var(--leaf); }
.halte a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0 6px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.halte .dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); color: var(--muted); font-weight: 800; line-height: 1; }
.halte.done .dot { background: var(--leaf); border-color: var(--leaf); color: var(--surface); }
.halte.current .dot { border-color: var(--amber-deep); color: var(--amber-deep); background: var(--amber-soft); }
.halte .name { font-size: .82rem; font-weight: 700; line-height: 1.25; max-width: 12ch; overflow-wrap: anywhere; hyphens: auto; }
.halte .state { font-size: .72rem; color: var(--muted); }
.halte.active a { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.halte a:hover .name { text-decoration: underline; }
.route-now { display: none; order: 1; margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.route-now strong { color: var(--ink); }
/* Smal scherm: alleen de bolletjes, zodat de lijn niet hoeft te schuiven. */
@media (max-width: 640px) {
  .halte a { padding: 6px 2px; }
  .halte::before { top: 21px; }
  .halte .name, .halte .state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .route-now { display: block; }
}
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; }

/* Welkom */
.stations { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 8px; counter-reset: station; }
.stations li { counter-increment: station; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.stations li::before { content: counter(station); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-deep); font-weight: 800; }

/* Wizard */
.wizard h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.wizard.celebrate { background: var(--leaf-soft); border-color: transparent; }
.choices { display: grid; gap: 10px; margin: 0 0 1em; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: 14px; cursor: pointer; }
.choice:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.choice input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--amber-deep); }
.choice span { display: grid; gap: 2px; }
.choice .chip { justify-self: start; }
.field { display: block; font-weight: 800; margin-bottom: 6px; }
input[type=url], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--muted); border-radius: 10px; padding: 10px 12px; }
textarea { font-family: var(--font-mono); font-size: .88rem; line-height: 1.5; resize: vertical; }
input[aria-invalid=true] { border-color: var(--red); }
.error { color: var(--red); font-weight: 700; margin-top: 6px; }
.wizard-nav { display: flex; align-items: center; gap: 18px; margin-top: 1.2em; }
.achieved li { margin-bottom: .4em; }

/* Formulieren en besluiten */
input[type=text], input[type=date] { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--muted); border-radius: 10px; padding: 10px 12px; }
input[type=date] { width: auto; }
.wizard .field { margin-top: 14px; }
.decisions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }
.decision { margin: 0; }
.decision .field { margin-top: 12px; }
.decision textarea { font-family: var(--font-body); font-size: 1rem; }
.decision .button { margin-top: 12px; }
.decisions .decision .button { margin-top: 0; }
details > .decision, details > p { margin-top: 10px; }

/* Werkruimten */
.workspace-now { border-left: 4px solid var(--amber); padding-left: 14px; margin: 0 0 1.4em; }
.workspace-now h2 { margin: 0; }
.workspace-choice { border: 0; padding: 0; margin: 14px 0 0; }
