/* Schibsted Grotesk (SIL Open Font License, zie vendor/fonts/OFL.txt), lokaal meegeleverd */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(vendor/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(vendor/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f3f5f4; --panel: #ffffff; --fg: #1b2423; --muted: #56655f;
  --line: #d7dedb; --accent: #0f766e; --route: #0f766e;
  --brand-dark: #0d1411; --brand-mint: #87e2c6;
  --back: #b45309; --warn-bg: #fff4e0; --warn-fg: #6b4300; --err: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121817; --panel: #1b2321; --fg: #e8eeec; --muted: #9db0a9;
    --line: #2f3b38; --accent: #87e2c6; --route: #87e2c6;
    --back: #fbbf24; --warn-bg: #3a2d12; --warn-fg: #f5d28a; --err: #ff8a80; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font: 14px/1.45 var(--font); display: flex; flex-direction: column; }

/* Kopbalk met logo, in de donkere kleur van het logo zelf */
.top { flex: none; background: var(--brand-dark); padding: 6px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top a.logo { display: block; line-height: 0; border-radius: 4px; }
.top img { height: 40px; width: auto; display: block; }
.top nav a { color: var(--brand-mint); text-decoration: none; font-size: 13px; padding: 6px 2px; border-bottom: 1px solid transparent; }
.top nav a:hover { border-bottom-color: var(--brand-mint); }
.top a:focus-visible { outline: 2px solid var(--brand-mint); outline-offset: 3px; }

.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px 1fr; }
aside { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
#map { height: 100%; min-height: 320px; }
h1 { font-size: 21px; margin: 0; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
form { display: flex; flex-direction: column; gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin: 0; display: grid; gap: 10px; }
legend { padding: 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); min-width: 0; }
input, select { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 8px 9px; width: 100%; min-width: 0; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.check input { width: auto; }
button { font: inherit; cursor: pointer; border-radius: 5px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 7px 10px; }
button.primary { background: var(--brand-mint); color: var(--brand-dark); border-color: #5fc7a8; font-weight: 600; padding: 11px; }
button.primary:hover:not(:disabled) { background: #9ceacf; }
button.link { border: none; background: none; color: var(--accent); padding: 2px 0; text-align: left; }
button:disabled { opacity: .6; cursor: progress; }
a { color: var(--accent); }
.msg { padding: 9px 11px; border-radius: 5px; font-size: 13px; }
.msg.err { color: var(--err); border: 1px solid var(--err); }
.msg.warn { background: var(--warn-bg); color: var(--warn-fg); }
.summary b { font-size: 28px; display: block; line-height: 1.15; }
.summary span { color: var(--muted); font-size: 12.5px; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; margin: 8px 0 0; color: var(--muted); }
.stats b { color: var(--fg); }
table.toll { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font-size: 13px; }
table.toll th, table.toll td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: right; font-weight: normal; }
table.toll th:first-child, table.toll td:first-child { text-align: left; }
table.toll.kosten { margin-top: 12px; }
table.toll thead th { color: var(--muted); font-size: 11.5px; }
table.toll tfoot th, table.toll tfoot td { font-weight: 700; border-bottom: none; }
details { border-top: 1px solid var(--line); padding-top: 8px; }
details summary { cursor: pointer; color: var(--accent); font-size: 13px; margin-bottom: 6px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; margin-top: 8px; }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 4px solid var(--route); vertical-align: middle; margin-right: 6px; }
.legend i.back { border-top: 3px dashed var(--back); }
.foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pagina "Over deze site" */
body.doc { height: auto; min-height: 100%; }
.page { width: 100%; max-width: 720px; margin: 24px auto; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.page h1 { margin-bottom: 8px; }
.page h2 { font-size: 16px; margin: 24px 0 6px; }
.page p, .page li { font-size: 14.5px; line-height: 1.55; }
.page p { margin: 6px 0; }
.page ul { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; }
.page .back { margin-top: 24px; }

@media (max-width: 780px) {
  body, html { height: auto; }
  body { display: block; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 55vh; }
  aside { border-right: none; border-bottom: 1px solid var(--line); overflow: visible; }
  .page { margin: 12px; width: auto; padding: 18px; }
}

#out .hint + .hint { margin-top: 8px; }
