/* example-petstore.com — een informatiepagina voor ontwikkelaars die hier per ongeluk uitkomen: rustig, technisch,
   duidelijk. Licht en donker volgen het systeem. Tokens hieronder; losse kleuren alleen in dit blok. */
:root {
    color-scheme: light dark;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --fg: #16181d;
    --muted: #5d6573;
    --accent: #0a62c9;
    --line: #e1e4ea;
    --code-bg: #f1f3f6;
    --code-fg: #1f2430;
    --ph-bg: #fff1c2;
    --ph-fg: #7a4a00;
    --ph-line: #d99a00;
    --warn-bg: #fff6ed;
    --warn-line: #f0a24a;
    --warn-fg: #8a3409;
    --ok: #16794a;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --radius: 12px;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1116;
        --surface: #151a21;
        --fg: #e7ebf0;
        --muted: #9aa4b1;
        --accent: #6cb2ff;
        --line: #262d37;
        --code-bg: #0a0d12;
        --code-fg: #d6dde6;
        --ph-bg: rgba(250, 204, 21, .16);
        --ph-fg: #fcd873;
        --ph-line: #b8911c;
        --warn-bg: #22170d;
        --warn-line: #b8621b;
        --warn-fg: #ffc08a;
        --ok: #4ccf8e;
        --shadow: none;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
    font: 16.5px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* schil */
.site-head, .site-main, .site-foot { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.site-head { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); font-weight: 600; text-decoration: none; user-select: none; }
.brand-mark { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 2px dashed var(--muted);
    border-radius: 7px; font: 700 .85rem/1 var(--mono); color: var(--muted); }
.site-main { flex: 1; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.site-foot { padding-top: 1.25rem; padding-bottom: 2rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); user-select: none; }

/* tekst */
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.01em; margin: 3rem 0 1rem; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0 0 .4rem; }
code { font: .88em/1.4 var(--mono); background: var(--code-bg); color: var(--code-fg); padding: .12em .38em; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem;
    overflow-x: auto; margin: 0 0 1rem; line-height: 1.55; }
pre code { background: none; padding: 0; font-size: .82rem; overflow-wrap: normal; white-space: pre; }
/* het stuk dat je moet vervangen */
mark.ph { background: var(--ph-bg); color: var(--ph-fg); border-bottom: 1.5px dashed var(--ph-line); border-radius: 3px; padding: 0 .1em; }

/* kop van de homepage */
.hero { padding-bottom: .5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; padding: .22rem .7rem; font-size: .8rem; font-weight: 600;
    color: var(--muted); border: 1px dashed var(--muted); border-radius: 999px; user-select: none; }
.eyebrow::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); }
.lead { font-size: 1.15rem; color: var(--fg); max-width: 38rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; user-select: none; }
.jump li { margin: 0; }
.jump a { display: inline-block; padding: .35rem .8rem; font-size: .88rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--fg); text-decoration: none; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.note { margin: 1.5rem 0 0; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: 8px; }

/* waarschuwing: sleutels vervangen */
.alert { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 2rem 0 0; padding: 1.25rem 1.25rem .5rem;
    background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); }
.alert-icon { width: 1.6rem; height: 1.6rem; color: var(--warn-fg); margin-top: .1rem; }
.alert h2 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--warn-fg); }
.alert ol { padding-left: 1.2rem; }
.alert li::marker { color: var(--warn-fg); font-weight: 700; }
@media (max-width: 520px) { .alert { grid-template-columns: 1fr; } }

/* kaarten: waar het domein opduikt */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }   /* minmax(0,…): lange code scrolt in de pre, niet de pagina */
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem .35rem; box-shadow: var(--shadow); }
.card-tag { display: inline-block; margin: 0 0 .5rem; font: 600 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); user-select: none; }
.card p:last-child { margin-bottom: 1rem; }
.section-intro { color: var(--muted); margin-top: -.4rem; }

/* checklist */
.checks { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.checks li { position: relative; margin: 0; padding: .8rem 1rem .8rem 2.9rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--ok); -webkit-mask: var(--check) center / 100% no-repeat; mask: var(--check) center / 100% no-repeat;
    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.3-5.5 5.6a1 1 0 0 1-1.4 0L5.3 10.4a1 1 0 1 1 1.4-1.4l1.8 1.8 4.8-4.9a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E"); }

/* bijgewerkt, vragen, bronnen */
.updated { margin: -.25rem 0 0; color: var(--muted); font-size: .88rem; }
.faq { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem .25rem; }
.faq-item h3 { margin-bottom: .35rem; }
.sources { padding-left: 1.2rem; }
.sources li { margin-bottom: .5rem; }
.src-pub { color: var(--muted); font-size: .88rem; }
.src-pub::before { content: "· "; }

/* 404 */
.notfound { text-align: left; padding-top: 2vh; }
.notfound .code { font: 700 .85rem/1 var(--mono); color: var(--muted); letter-spacing: .08em; margin: 0 0 .75rem; user-select: none; }

/* Statistieken (/stats, alleen eigen IP's) */
body.is-wide .site-head, body.is-wide .site-main, body.is-wide .site-foot { max-width: 76rem; }
body.is-wide .site-main { padding-top: 1rem; }
.st-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0 0 1.5rem; user-select: none; }
.st-bar a, .st-bar span { font-size: .9rem; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.st-bar a.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.st-bar .st-filter { color: var(--muted); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.st-tile { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; }
.st-tile b { display: block; font-size: 1.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.st-tile span { color: var(--muted); font-size: .85rem; user-select: none; }
.st-chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 160px; margin: 0 0 .4rem; border-bottom: 1px solid var(--line); }
.st-chart .col { flex: 1 1 0; min-width: 2px; height: 100%; display: flex; align-items: flex-end; position: relative; }
.st-chart .col i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 1px; }
.st-chart .col:hover i, .st-chart .col:focus i { opacity: .7; }
.st-chart .col .tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: var(--fg); color: var(--bg); font-size: .8rem; padding: .3rem .55rem; border-radius: 6px; z-index: 2; pointer-events: none; }
.st-chart .col:hover .tip, .st-chart .col:focus .tip { display: block; }
.st-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; margin: 0 0 2rem; user-select: none; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 2rem; }
.st-grid h2, .st-wide h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.st-wide { margin-top: 2rem; }
.st-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.st-table th { text-align: left; color: var(--muted); font-weight: 500; padding: .35rem .5rem; border-bottom: 1px solid var(--line); user-select: none; }
.st-table td { padding: .35rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.st-table td.num, .st-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-table td.nowrap { white-space: nowrap; }
.st-scroll { overflow-x: auto; }
.st-muted { color: var(--muted); }
.st-pre { background: var(--code-bg); border-radius: 8px; padding: .8rem 1rem; overflow-x: auto; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
details.st-data { margin: 0 0 2rem; }
details.st-data summary { cursor: pointer; color: var(--muted); font-size: .85rem; user-select: none; }
