/* Level X demo — Padplanner, groene campus */
:root {
  --ink: #1f2421;
  --muted: #4a504c;
  --white: #fff;
  --paper: #eef5ef;
  --green-deep: #0b4d3b;
  --green: #1b4332;
  --tint: #e3f0e6;
  --line: #d5e3d8;
  --amber: #eca526;
  --yellow: #fccc00;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: Inter, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
a { color: var(--green-deep); }
h1, h2, h3, .h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); color: var(--green); }
h2 { font-size: 1.7rem; }
.h3 { font-size: 1.15rem; }

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -4rem;
  z-index: 80;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}
.skip:focus { top: 0.5rem; }
.skip-map { left: 14rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-banner {
  margin: 0;
  background: var(--amber);
  color: var(--ink);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 0.45rem 1rem;
}
.demo-banner a { color: var(--ink); font-weight: 800; }
.variant-switch a { font-weight: 650; text-decoration: none; }
.demo-banner a[aria-current="page"] { font-weight: 800; text-decoration: underline; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { width: 56px; height: 56px; display: block; border-radius: 12px; }
.pad-nav { display: flex; gap: 22px; font-weight: 700; }
.pad-nav a { color: var(--ink); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--green-deep);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-deep);
  position: relative;
}
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }

.intro { padding: 36px 0 8px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.fine { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 22px 28px;
  align-items: start;
  padding-bottom: 48px;
}
.planner { grid-column: 1; grid-row: 1; min-width: 0; }
.summary { grid-column: 1; grid-row: 2; min-width: 0; }
.map-panel { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }

.mode { display: flex; gap: 8px; margin: 18px 0; }
.mode button {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--green-deep);
  background: var(--white);
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mode button[aria-pressed="true"] { background: var(--green-deep); color: var(--white); }

.step { margin: 0 0 22px; padding: 0; }
.step h2 { font-size: 1.35rem; margin-bottom: 6px; }
.step-help { color: var(--muted); margin: 0 0 10px; }
.choices, .domains, .goal-list, .route-list { display: flex; flex-direction: column; gap: 8px; }
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.choice, .domain, .goal, .route {
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
}
.choice[aria-checked="true"], .domain[aria-checked="true"], .goal[aria-pressed="true"] {
  border-color: var(--green-deep);
  background: var(--paper);
  box-shadow: inset 4px 0 0 var(--green-deep);
}
.choice:disabled, .domain:disabled {
  cursor: not-allowed;
  background: #f7f7f5;
  color: var(--muted);
}
.choice-top, .domain {
  display: flex;
  align-items: center;
  gap: 10px;
}
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.choice-name, .domain-name { font-weight: 700; }
.domain img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--tint); }
.domain { align-items: flex-start; }
.domain span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.why { font-size: 0.86rem; color: var(--muted); }
.more-link { margin: 0 0 8px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-fin { background: var(--tint); color: var(--green-deep); }
.badge-duaal { background: var(--green-deep); color: var(--white); }
.badge-new { background: var(--tint); color: var(--green); }
.badge-flex { background: #e7f3ed; color: var(--green); }
.badge-tbc { background: #fff6d6; color: var(--ink); border: 1px solid var(--amber); font-weight: 650; }

.group-label {
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.summary, .map-panel, .planner {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px;
}
.summary { background: var(--white); border: 1px solid var(--line); }
.summary ol { margin: 8px 0 12px; padding-left: 1.2rem; }
.summary li { margin: 0.25rem 0; }
.summary-actions, .cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-green { background: var(--green-deep); color: var(--white); border: 0; }
.btn-line { background: var(--white); color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.share-label { display: block; }
#share-url { width: 100%; margin-top: 4px; min-height: 44px; font: inherit; }

.map-panel { background: var(--paper); }
.map-panel summary {
  font-family: var(--font-display);
  font-size: 1.35rem;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 12px; }
.legend p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.92rem; }
.leg { width: 36px; height: 0; border-top: 3px solid var(--green-deep); display: inline-block; }
.leg.dash { border-top-style: dashed; }
.leg.dot { border-top-style: dotted; border-top-width: 4px; }
.leg.collector { height: 8px; border: 0; border-radius: 8px; background: var(--green); }
.map-scroll {
  overflow: auto;
  max-height: 72vh;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.map-host, #map-host { min-width: 0; }
.station { cursor: pointer; pointer-events: bounding-box; scroll-margin: 96px; }
.edge, .collector-line { pointer-events: none; }
.station .ring { fill: none; stroke: transparent; stroke-width: 3; }
.station.is-on .ring { stroke: var(--green-deep); }
.station.is-on .dot { stroke: var(--ink); stroke-width: 2; }
.edge { fill: none; stroke-linecap: round; }
.collector-line { stroke: var(--green); stroke-width: 10; stroke-linecap: round; opacity: 0.35; }
#map-words { margin-top: 12px; }
#map-text { margin: 8px 0 0; padding-left: 1.2rem; }

.site-footer { background: var(--green-deep); color: var(--white); padding: 28px 0; }
.site-footer a { color: var(--white); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

@media (max-width: 959px) {
  .layout { grid-template-columns: 1fr; }
  .planner, .summary, .map-panel { grid-column: 1; grid-row: auto; }
  .domains { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pad-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .pad-nav.is-open { display: flex; }
  .pad-nav a { min-height: 48px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-row { position: relative; }
  .skip-map { left: 12px; top: -4rem; }
  .skip-map:focus { top: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .demo-banner, .site-header, .mode, .map-panel, .summary-actions, .cta, .nav-toggle, .skip { display: none !important; }
  .layout { display: block; }
  .planner { display: none; }
  .summary { border: 0; }
  body { background: white; }
}
