/* site.css - rijbewijzen.org, theme v1 "Rijbaan" (29-11-2026)
   The road: royal blue, a dashed yellow centre line under the header, a route of stops on the home page and listing,
   sign-like cards with square corners and a yellow edge. Exo 2 headings, Encode Sans text. Fonts self-hosted, OFL. */
@font-face { font-family: "Exo 2"; src: url(/assets/fonts/exo-2-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Encode Sans"; src: url(/assets/fonts/encode-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --blue: #0b3d91; --blue-2: #154fb0; --blue-d: #072a66; --blue-l: #e3ebf8; --yellow: #ffcc00; --yellow-l: #fff4c2;
  --bg: #f5f7fa; --card: #ffffff; --ink: #1a2333; --muted: #5a6577; --line: #dde3ec; --asphalt: #2c3440;
  --head: "Exo 2", "Segoe UI", sans-serif; --sans: "Encode Sans", system-ui, sans-serif;
  --r: 6px; --w: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.04rem/1.7 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--blue-2); text-underline-offset: .18em; }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 6px var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--blue-d); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: .5rem 0 .8rem; font-weight: 800; font-style: italic; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 42rem; }
.eyebrow { margin: 1rem 0 0; font: 700 .8rem var(--head); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow a { color: var(--blue-2); text-decoration: none; border-bottom: 3px solid var(--yellow); }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.15em; fill: currentColor; }
.btn { display: inline-block; font: 700 1rem var(--head); padding: .7rem 1.3rem; border-radius: var(--r); background: var(--yellow); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.btn:hover { background: #ffd83d; color: var(--ink); }
.btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn--line:hover { background: rgba(255,255,255,.1); color: #fff; }

/* header */
.road { background: var(--blue); position: relative; z-index: 5; }
.road__inner { max-width: var(--w); margin: 0 auto; padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.road__brand img { display: block; height: 32px; width: auto; }
.road__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.road__nav a { color: #dce6f7; text-decoration: none; font: 700 .88rem var(--head); text-transform: uppercase; letter-spacing: .08em; padding: .3rem 0; }
.road__nav a:hover, .road__nav a[aria-current] { color: var(--yellow); }
.road__toggle { display: none; background: var(--yellow); color: var(--ink); border: 0; border-radius: var(--r); font: 700 .85rem var(--head); text-transform: uppercase; padding: .45rem .9rem; cursor: pointer; }
.road__line { height: 6px; background: var(--asphalt) repeating-linear-gradient(90deg, var(--yellow) 0 38px, transparent 38px 64px) center / 100% 2px no-repeat; }
@media (max-width: 50rem) {
  .js .road__toggle { display: inline-block; }
  .road__brand img { height: 26px; }
  .js .road__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue-d); padding: .6rem 1.25rem 1.1rem; }
  .js .road__nav.is-open { display: block; }
  .js .road__nav ul { flex-direction: column; gap: .6rem; }
  html:not(.js) .road__inner { flex-wrap: wrap; }
  html:not(.js) .road__nav ul { flex-wrap: wrap; gap: .4rem 1.2rem; }
}

/* home */
.hero { background: var(--blue); color: #dce6f7; padding: 3.2rem 0 3.4rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #c7d5ef; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.route { list-style: none; margin: 0; padding: 0 0 0 2.4rem; position: relative; counter-reset: r; }
.route::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 14px; background: var(--asphalt) repeating-linear-gradient(180deg, var(--yellow) 0 12px, transparent 12px 22px) center / 2px 100% no-repeat; border-radius: 3px; }
.route li { position: relative; counter-increment: r; margin: 0 0 .8rem; }
.route li::before { content: counter(r); position: absolute; left: -2.55rem; top: .45rem; width: 2.3rem; height: 2.3rem; background: var(--yellow); color: var(--ink); font: 800 1rem/2.3rem var(--head); text-align: center; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.route a { display: block; background: rgba(255,255,255,.08); border-left: 4px solid var(--yellow); border-radius: 0 var(--r) var(--r) 0; padding: .6rem 1rem; color: #dce6f7; text-decoration: none; font-size: .95rem; }
.route a:hover { background: rgba(255,255,255,.15); }
.route b { display: block; font: 700 1.1rem var(--head); color: #fff; }
.home-body { padding-top: 2.2rem; }
.wrap.prose--wide { max-width: var(--w); }
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.lane { display: block; background: var(--card); border-top: 6px solid var(--yellow); border-radius: var(--r); padding: 1.2rem 1.4rem; text-decoration: none; color: var(--muted); box-shadow: 0 1px 3px rgba(11,61,145,.1); }
.lane:hover { border-top-color: var(--blue); color: var(--muted); }
.lane__k { display: block; font: 700 .78rem var(--head); color: var(--blue-2); text-transform: uppercase; letter-spacing: .08em; }
.lane strong { display: block; font: 700 1.35rem var(--head); color: var(--blue-d); margin: .2rem 0 .1rem; }
.prose ul.signs, ul.signs, ul.arrows, ul.qgrid { padding-left: 0; }
.prose .signs li, .prose .arrows li { max-width: none; }
.signs { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.signs li { margin: 0; }
.signs a { display: block; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--blue); color: #c7d5ef; text-decoration: none; font-size: .93rem; box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 5px #fff; }
.signs a:hover { background: var(--blue-2); box-shadow: inset 0 0 0 3px var(--blue-2), inset 0 0 0 5px var(--yellow); }
.signs strong { display: block; font: 700 1.12rem var(--head); color: #fff; margin-bottom: .2rem; }

/* crumbs */
.crumbs ol { list-style: none; padding: 0; margin: 1.2rem 0 .3rem; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "→"; margin-right: .5rem; color: var(--blue-2); }
.crumbs a { color: var(--muted); }

/* listing: stops on one road */
.stops { position: relative; margin: 2rem 0 0; padding-left: 3rem; }
.stops::before { content: ""; position: absolute; left: .6rem; top: 0; bottom: 0; width: 16px; background: var(--asphalt) repeating-linear-gradient(180deg, var(--yellow) 0 14px, transparent 14px 26px) center / 2px 100% no-repeat; border-radius: 4px; }
.stop { position: relative; background: var(--card); border-radius: var(--r); padding: 1.3rem 1.5rem; margin-bottom: 1.4rem; box-shadow: 0 1px 3px rgba(11,61,145,.08); }
.stop::before { content: ""; position: absolute; left: -2.85rem; top: 1.5rem; width: 1.5rem; height: 1.5rem; background: var(--yellow); border: 3px solid var(--blue); border-radius: 50%; }
.stop h2 { margin: 0 0 .3rem; font-size: 1.4rem; }
.stop h2 a { color: var(--blue-d); text-decoration: none; }
.stop__intro { color: var(--muted); font-size: .97rem; margin: 0 0 .7rem; }
.arrows { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; }
.arrows li { position: relative; padding: .35rem 0 .35rem 1.4rem; border-top: 1px solid var(--line); }
.arrows li::before { content: "›"; position: absolute; left: .2rem; top: .2rem; font: 800 1.2rem var(--head); color: var(--blue-2); }
.arrows a { color: var(--ink); text-decoration: none; }
.arrows a:hover { color: var(--blue-2); text-decoration: underline; }

/* category */
.qgrid { list-style: none; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.qgrid a { display: block; height: 100%; background: var(--card); border-top: 5px solid var(--yellow); border-radius: var(--r); padding: 1.1rem 1.3rem; text-decoration: none; color: var(--muted); font-size: .96rem; box-shadow: 0 1px 3px rgba(11,61,145,.08); }
.qgrid strong { display: block; font: 700 1.15rem/1.3 var(--head); color: var(--blue-d); margin-bottom: .3rem; }
.qgrid a:hover { border-top-color: var(--blue); }

/* columns + aside */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; margin-top: 1rem; }
.cols__side { display: grid; gap: 1rem; align-content: start; padding-top: 1.4rem; }
.sign { background: var(--blue); color: #dce6f7; border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 5px #fff; }
.sign__head { font: 700 1.05rem var(--head); color: #fff; margin: 0 0 .5rem; }
.sign__head .ic { color: var(--yellow); }
.sign dl { margin: 0; font-size: .93rem; }
.sign dl div { display: flex; justify-content: space-between; gap: .8rem; padding: .35rem 0; border-top: 1px dashed rgba(255,255,255,.25); }
.sign dd { margin: 0; font-weight: 700; color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sign__foot { margin: .5rem 0 0; font-size: .85rem; color: #c7d5ef; }
.side { background: var(--card); border-radius: var(--r); padding: 1.1rem 1.2rem; border-left: 4px solid var(--yellow); }
.side__head { font: 700 1rem var(--head); color: var(--blue-d); margin: 0 0 .3rem; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { padding: .35rem 0; font-size: .95rem; line-height: 1.45; border-top: 1px solid var(--line); }
.side a { text-decoration: none; color: var(--ink); }
.side a:hover { color: var(--blue-2); text-decoration: underline; }

/* prose + answer */
.prose { max-width: 44rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--blue-2); font-weight: 700; }
.prose--answer > p:first-child { background: var(--yellow-l); border-left: 6px solid var(--yellow); border-radius: 0 var(--r) var(--r) 0; padding: 1.1rem 1.3rem; font-size: 1.13rem; line-height: 1.6; color: var(--ink); margin-top: 1.2rem; }
.prose--answer > p:first-child::before { content: "Kort antwoord"; display: block; font: 800 .8rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--blue-d); margin-bottom: .25rem; }
.prose--answer > p:last-child { font-size: .88rem; color: var(--muted); }

/* tool: rijbewijs-hulp */
.tool-block { margin: 2rem 0; }
.rb { background: var(--card); border-radius: var(--r); border-top: 6px solid var(--blue); padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 2px 6px rgba(11,61,145,.1); }
.rb__title { font: 800 1.35rem var(--head); color: var(--blue-d); margin: 0 0 .15rem; font-style: italic; }
.rb__intro { margin: 0 0 1.1rem; color: var(--muted); font-size: .97rem; }
.rb__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .9rem 1.2rem; }
.rb label { display: block; font: 700 .9rem var(--head); color: var(--blue-d); margin-bottom: .25rem; }
.rb select, .rb input[type=text], .rb input[type=date] { width: 100%; font: 500 1rem var(--sans); padding: .6rem .8rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.rb select:focus, .rb input:focus { border-color: var(--blue-2); outline: none; }
.rb__out { margin: 1.3rem 0 .3rem; background: var(--blue-l); border-radius: var(--r); padding: .9rem 1.1rem; }
.rb__row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid rgba(11,61,145,.12); font-variant-numeric: tabular-nums; font-size: .97rem; }
.rb__row span:last-child { white-space: nowrap; font-weight: 700; color: var(--blue-d); }
.rb__row--total { border-bottom: 0; padding-top: .6rem; }
.rb__row--total span { font: 800 1.25rem var(--head) !important; color: var(--blue-d) !important; }
.rb__steps { list-style: none; margin: 0; padding: 0; }
.rb__steps li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(11,61,145,.12); }
.rb__steps li:last-child { border-bottom: 0; }
.rb__steps b { font-family: var(--head); color: var(--blue-d); white-space: nowrap; }
.rb__steps .is-past { color: var(--muted); }
.rb__verdict { margin: .7rem 0 0; font-size: .95rem; }
.rb__note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }

/* books, share, disclosure */
.bcm-books { border-top: 3px solid var(--blue-l); padding-top: .4rem; }
.bcm-books__title { font-family: var(--head); font-size: 1.25rem; }
.share { margin: 2rem 0; padding: 1.1rem 1.3rem; background: var(--card); border-radius: var(--r); border-left: 4px solid var(--blue); }
.share__title { margin: 0 0 .3rem; font-size: 1.15rem; }
.disclosure-slot { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; margin: 2.4rem 0 1rem; }

/* footer */
.foot { margin-top: 3rem; background: #e8edf4; border-top: 6px solid var(--yellow); color: var(--muted); }
.foot__inner { max-width: var(--w); margin: 0 auto; padding: 2.4rem 1.25rem 1.4rem; display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 2rem; }
.foot__about img { height: 30px; width: auto; display: block; margin-bottom: .9rem; }
.foot__about p { font-size: .95rem; max-width: 30rem; }
.foot__head { font: 700 .85rem var(--head); color: var(--blue-d); margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: .2rem 0; }
.foot a { color: var(--blue-d); }
.foot__small { max-width: var(--w); margin: 0 auto; padding: .8rem 1.25rem 1.6rem; font-size: .82rem; border-top: 1px solid var(--line); }

@media (max-width: 58rem) {
  .hero__grid, .cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .signs { grid-template-columns: 1fr 1fr; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .lanes, .qgrid, .arrows, .signs { grid-template-columns: 1fr; }
  .stops { padding-left: 2.4rem; }
  .stops::before { left: .3rem; }
  .stop { padding: 1.1rem 1.1rem; }
  .stop::before { left: -2.4rem; }
  .hero { padding: 2.2rem 0 2.4rem; }
}
@media print { .road, .foot, .share, .tool-block, .cols__side { display: none; } .cols { display: block; } }
