/* streekdokter.nl — stylesheet. One calm column under a wide northern sky: left aligned, a dienstregeling (timetable)
   as the one subject detail, the sign-up form as the destination. Design by Rolf (Streekdokter.html, 11 Nov 2026).
   Fonts self-hosted, no requests to third parties: Bricolage Grotesque and Public Sans, both SIL OFL 1.1. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 500 700; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #eef3f4; --surface: #ffffff; --ink: #12333b; --muted: #4d6a70; --line: #c9d7da;
  --accent: #f2c230;      /* koolzaadgeel */
  --accent-ink: #1d2a12;
  --deep: #0f4a57;        /* wadblauw */
  --deep-ink: #eef7f8;
  --ok: #1f7a4d; --err: #b3341f;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1f24; --surface: #132c33; --ink: #e6f0f1; --muted: #9db6bb; --line: #27464e;
    --accent: #f2c230; --accent-ink: #1d2a12; --deep: #08343e; --deep-ink: #e6f0f1;
    --ok: #6fd3a0; --err: #ff9a85; color-scheme: dark;
  }
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 880px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* --- top ------------------------------------------------------------------------------------ */
.top { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--deep); display: inline-block; margin-left: 4px; }
.tag { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* --- hero ----------------------------------------------------------------------------------- */
.hero { padding-block: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero h1 { font-size: clamp(2.2rem, 7.5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 span, .page h1 span { background: linear-gradient(transparent 62%, var(--accent) 62%); }
@media (prefers-color-scheme: dark) { .hero h1 span, .page h1 span { background: none; color: var(--accent); } }
.lead { font-size: 1.15rem; max-width: 60ch; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: 600 1rem var(--body); border: 2px solid var(--deep); border-radius: 10px; padding: 13px 20px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(0.96); }
.btn[disabled] { opacity: 0.6; cursor: default; }

.sky { margin: 0; background: var(--deep); }
.sky img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; max-height: 520px; }
figcaption, .credit { font-size: 0.8rem; color: var(--muted); }
.sky figcaption { color: var(--deep-ink); opacity: 0.85; padding-block: 8px; }
.sky figcaption a, .band a { text-decoration-color: currentColor; }

/* --- bands and sections ----------------------------------------------------------------------- */
.band { background: var(--deep); color: var(--deep-ink); }
.band .wrap { padding-block: 44px; display: grid; gap: 28px; }
.band h2, .section h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.services h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--accent); }
.services p { opacity: 0.92; }
.services a { font-weight: 600; display: inline-block; margin-top: 10px; }

.section { padding-block: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.section > .facts, .section > .regions { max-width: none; }
.section > p, .section > ul, .section > ol:not(.rit) { max-width: 62ch; }
.section > p { color: var(--muted); }
.section + .section { border-top: 1px solid var(--line); }

/* the dienstregeling */
.rit { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--deep); max-width: 560px; }
.rit li { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 10px 0 10px 18px; position: relative; }
.rit li::before { content: ""; position: absolute; left: -9px; top: 17px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--deep); }
.rit time, .rit b { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.rit span { min-width: 0; }
.note { font-size: 0.9rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { .rit { border-left-color: var(--line); } .rit li::before { border-color: var(--line); } }

/* regions */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.regions li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.regions img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.regions .swatch { aspect-ratio: 16 / 10; background: var(--deep); color: var(--deep-ink); display: grid; align-content: end; padding: 16px; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.regions .swatch span { color: var(--accent); }
.regions div.txt { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; }
.regions h3 { font-size: 1.15rem; }
.regions h3 a { text-decoration: none; }
.regions h3 a::after { content: " →"; color: var(--muted); }
.regions p { font-size: 0.95rem; color: var(--muted); }

/* facts with a source */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { border-top: 3px solid var(--deep); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.facts b { font-family: var(--display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.95rem; }
.facts cite, .src { font-size: 0.8rem; color: var(--muted); font-style: normal; }
@media (prefers-color-scheme: dark) { .facts li { border-top-color: var(--accent); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 720px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.faq summary { font-weight: 600; cursor: pointer; padding: 14px 0; list-style-position: outside; }
.faq details p { padding-bottom: 14px; color: var(--muted); max-width: 62ch; }
.faq details p + p { margin-top: -4px; }

/* --- form ----------------------------------------------------------------------------------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tabs button { font: 600 1rem var(--body); padding: 12px 10px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); }
form { display: grid; gap: 14px; }
form[hidden] { display: none; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; min-width: 0; }
input, select, textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* --- article pages ---------------------------------------------------------------------------- */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 4px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.page { padding-block: 28px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.page h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
.prose { padding-block: 20px 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.prose > * { max-width: 66ch; }
.prose h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-top: 22px; }
.prose h3 { font-size: 1.15rem; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--deep); font-weight: 700; }
.prose figure { margin: 8px 0; max-width: none; }
.prose figure img { border-radius: 14px; width: 100%; }
.prose figcaption { padding-top: 8px; }
.prose .facts, .prose .faq, .prose .rit, .prose .regions, .prose .tablewrap, .prose .callout { max-width: none; }
.prose .facts, .prose .regions { padding-left: 0; }
.prose .rit { padding-left: 0; gap: 0; max-width: 560px; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 700; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 10px; padding: 16px 18px; display: grid; gap: 8px; }
.callout.urgent { border-left-color: var(--err); }
.sources { font-size: 0.9rem; color: var(--muted); }
.sources ol { gap: 6px; }
.sources a { overflow-wrap: anywhere; }
.next { background: var(--deep); color: var(--deep-ink); border-radius: 14px; padding: 24px; display: grid; gap: 14px; max-width: none; }
.next h2 { margin: 0; font-size: 1.5rem; }
.next .btn.ghost { color: var(--deep-ink); border-color: rgba(255,255,255,.35); }
.related { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.related a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 0.95rem; background: var(--surface); }
.related a:hover { border-color: var(--deep); }

/* --- footer --------------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); margin-top: 24px; }
footer .wrap { padding-block: 26px 40px; display: grid; gap: 12px; font-size: 0.9rem; color: var(--muted); }
footer strong { color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
