:root {
  color-scheme: light;
  --ink: #242320;
  --muted: #625d57;
  --page: #f8f7f4;
  --paper: #fff;
  --line: #e9e3dc;
  --accent: #d31245;
  --tint: #fbe8ed;
  --radius: 14px;
  font: 16px/1.5 "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2 { line-height: 1.17; letter-spacing: -.035em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); margin: 16px 0 10px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; }
button:hover { background: var(--tint); }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 2px solid #315b83; outline-offset: 3px; }
input:not([type=checkbox]), textarea { width: 100%; padding: 9px 12px; border: 1px solid #ccc3bb; border-radius: 8px; background: var(--paper); }
input[type=checkbox] { width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
input[type=search] { min-width: 0; }
summary { font-weight: 650; }
details > summary :is(svg) { margin-right: 4px; }
details > summary::marker { color: var(--muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -.19em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1180px; min-height: 66px; padding: 0 26px; margin: auto; display: flex; gap: 18px; align-items: center; }
.header-inner > span { font-size: .875rem; color: var(--muted); }
.brand-logo { display: block; flex: none; object-fit: contain; }
main { max-width: 1180px; padding: clamp(16px, 4vw, 42px) 26px; margin: auto; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.primary { background: var(--accent); color: white; min-height: 44px; padding: 9px 16px; font-weight: 650; }
.primary:hover { background: #af0f39; }
.primary:disabled { color: #57514c; background: #ece7e2; opacity: 1; }
#gate { max-width: 470px; margin: 7vh auto 0; padding: clamp(22px, 5vw, 42px); }
#gate h1 { margin: 0 0 20px; }
#entry { display: grid; gap: 10px; }
#entry button { justify-self: start; }
#tracking-gate { max-width: 660px; margin: 3vh auto 0; padding: clamp(22px, 5vw, 40px); }
#tracking-gate h1 { margin: 0 0 20px; font-size: clamp(1.7rem, 4vw, 2.35rem); }
.consent-eyebrow { color: var(--accent); font-size: .85rem; font-weight: 650; }
.consent-check { display: flex; align-items: start; gap: 12px; margin: 24px 0 20px; padding: 16px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.consent-check input { margin: 4px 0 0; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.consent-footnote { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
#status:empty, #feedback:empty { display: none; }
#status { margin: 12px auto; color: var(--accent); }
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(20px, 4vw, 46px); align-items: start; }
.sidebar { padding: 4px 0; }
.identity { display: grid; margin: 0 0 18px; }
.sidebar summary { padding: 8px 0; font-size: .92rem; }
#menu { margin: 4px 0 12px; }
.lesson-group > summary {
  display: grid;
  grid-template-columns: 18px 1fr 16px;
  align-items: center;
  gap: 8px;
  padding-inline: 6px;
  border-radius: 6px;
}
.lesson-group > summary::-webkit-details-marker { display: none; }
.lesson-group > summary .icon { margin: 0; }
.lesson-group > summary .chevron { width: 16px; color: var(--muted); }
.lesson-group[open] > summary .chevron { transform: rotate(90deg); }
.lesson-group > summary:hover { background: #f3f1ee; }
.course-search { position: relative; margin-bottom: 10px; }
.course-search .icon { position: absolute; top: 14px; left: 11px; color: var(--muted); pointer-events: none; }
.course-search input[type=search] { min-height: 46px; padding-left: 36px; font-size: .84rem; }
#search-results { max-height: min(50vh, 420px); overflow: auto; margin: 0 0 12px; padding: 4px; font-size: .88rem; }
#search-results h2 { font-size: .84rem; margin: 10px 0 4px; }
#search-results ul { list-style: none; padding: 0; margin: 0; }
#search-results button { width: 100%; min-height: 44px; text-align: left; overflow-wrap: anywhere; }
#menu button { display: block; width: 100%; text-align: left; font-size: .88rem; line-height: 1.36; padding: 9px 10px; }
#menu button[aria-current] { color: var(--ink); background: var(--tint); font-weight: 700; }
.resources { border-top: 1px solid var(--line); }
.resources p, #skills { color: var(--muted); font-size: .86rem; margin: 4px 0; }
.resource-links { display: grid; margin: 5px 0; }
.resource-links :is(a,button) { text-align: left; font-size: .88rem; padding: 8px 0; }
.lesson { min-width: 0; padding: clamp(18px, 4vw, 40px); }
.lesson-top { display: flex; gap: 8px 20px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.progress { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; }
progress { width: 70px; height: 7px; accent-color: var(--accent); }
.intro { color: var(--muted); max-width: 63ch; }
video { display: block; width: 100%; max-height: 56vh; margin: 16px 0 6px; border-radius: 9px; background: #242320; }
#film:empty { display: none; }
#film p { font-size: .87rem; color: var(--muted); }
.video-chapters { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.video-chapters button { min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
#video-transcript:empty { display: none; }
#video-transcript details button { display: block; }
.practice, .check, .knowledge, .completion, .lesson-help { margin-top: 20px; }
.practice, .check, .knowledge, .completion, .lesson-help {
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.practice { background: #f8f7f4; }
:is(.practice, .check, .knowledge) .icon { color: var(--accent); }
.check p:last-child { margin-bottom: 0; }
.lesson-help .icon { color: var(--accent); }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; }
#request-call { display: inline-flex; align-items: center; min-height: 44px; }
.lesson-help label, #notes-label { display: block; margin: 0 0 6px; }
#where { color: var(--muted); font-size: .86rem; }
.test-environment { padding: 10px 14px; border-left: 3px solid var(--accent); background: #fbe8ed; font-size: .85rem; }
#task-reference { font-weight: 600; overflow-wrap: anywhere; }
#task-notice, #task-links { font-size: .86rem; }
#task-notice { border-left: 3px solid var(--accent); padding-left: 12px; }
#task-links { margin-top: 12px; }
#task-link-list a { display: inline-block; padding: 8px 0; }
#steps { list-style: none; padding: 0; margin: 12px 0; }
#steps label, .tick { display: flex; align-items: baseline; gap: 9px; padding: 5px 0; }
.practice-actions { margin-top: 8px; }
.practice-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
#stage { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; text-decoration: none; }
#stepcount, #saved, #feedback { color: var(--muted); font-size: .83rem; }
.term, #wegwijzer { margin-top: 12px; font-size: .88rem; }
.term p, #wegwijzer p { margin-top: 8px; }
#transfer { color: var(--muted); }
#quiz { min-width: 0; border: 0; margin: 0; padding: 0; }
#quiz-title { font-size: 1.25rem; font-weight: 700; padding: 0; margin-bottom: 12px; }
#question { margin-bottom: 8px; }
#answers { display: grid; gap: 5px; }
#answers button { background: #f6f4f1; text-align: left; }
#answers button:hover { background: var(--tint); }
#answers .correct { background: #eef6ed; box-shadow: inset 0 0 0 1px #62916c; opacity: 1; }
#feedback { margin: 8px 0 0; }
.phase-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 16px; }
#phase-practice .phase-actions { justify-content: flex-end; }
.phase-back { min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
#saved { margin: 6px 0 0; }
#paths section { border-top: 1px solid var(--line); padding: 8px 0; }
#paths h3 { font-size: .95rem; }
@media (max-width: 720px) {
  main, .header-inner { padding-inline: 14px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sidebar { padding: 0 4px; }
  .identity { margin-bottom: 3px; }
  .lesson { padding: 16px; }
  .header-inner { min-height: 54px; }
}

/* Keep the learning pages flat and leave room for enlarged text. */
:root {
  --page: #fff;
  --line: #d9d5d0;
  font-family: system-ui, sans-serif;
}
h1, h2 { letter-spacing: -.018em; }
.header-inner { min-height: 56px; }
.layout { grid-template-columns: 232px minmax(0,1fr); gap: 34px; }
.lesson { border-left: 1px solid var(--line); border-radius: 0; padding: 0 0 12px 34px; }
.lesson-group > summary, .resources summary, #menu button { min-height: 44px; }
#directory-link { display: block; margin-top: 8px; font-size: .88rem; }
#title, #practice-title { scroll-margin-top: 12px; }
#steps label, .tick { min-height: 38px; }
#answers button { min-height: 42px; }
#search-status { margin-top: 8px; }
#search-status:empty { margin: 0; }
.skip { position: absolute; z-index: 5; background: white; padding: 10px 14px; inset: 8px auto auto 8px; transform: translateY(-180%); }
.skip:focus { transform: none; }
@media (max-width: 720px) {
  .layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .lesson { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
