/* Modern Prompting - styles based on the Werknaam design system */
:root {
  --groen-900: #1E3D33;
  --groen-600: #4A6158;
  --groen-400: #7F948A;
  --groen-100: #D5DDD3;
  --framboos-600: #B8325F;
  --lila-300: #C9B8EE;
  --salie-100: #E3EDE0;
  --creme-50: #FAF7F2;
  --wit: #FFFFFF;
  --display: Fraunces, Georgia, serif;
  --sans: Outfit, Arial, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme-50); color: var(--groen-900); font-family: var(--sans); font-size: 17px; line-height: 28px; }
a { color: var(--groen-900); }
a:hover { color: var(--framboos-600); }
:focus-visible { outline: 2px solid var(--framboos-600); outline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.display { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.01em; }
.h1 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(23px, 4vw, 28px); line-height: 1.22; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 26px; }
.accent { font-style: italic; font-weight: 600; color: var(--framboos-600); }
.on-dark .accent { color: var(--lila-300); }
.intro { font-size: 20px; line-height: 30px; color: var(--groen-600); }
.small { font-size: 15px; line-height: 24px; }
.muted { color: var(--groen-600); }
.label { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--groen-600); }
.on-dark .label { color: var(--lila-300); }
.pre { white-space: pre-line; }

/* layout */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--groen-100); }
.brand { font-family: var(--display); font-weight: 900; font-size: 22px; text-decoration: none; color: var(--groen-900); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { font-weight: 600; border-bottom: 2px solid var(--groen-900); }
.nav .linkbtn { padding: 10px 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--salie-100); font-weight: 600; font-size: 14px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.page { max-width: 1040px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 24px) 64px; display: flex; flex-direction: column; gap: 48px; }
.page.narrow { max-width: 800px; gap: 32px; }
.page.wide { max-width: 1200px; gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.s16 { gap: 16px; } .stack.s20 { gap: 20px; } .stack.s24 { gap: 24px; } .stack.s32 { gap: 32px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.row.between { justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid.g16 { gap: 16px; }
.footnav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--groen-100); padding-top: 32px; }

/* surfaces */
.card { background: var(--wit); border-radius: var(--r-md); padding: 24px; }
.card.lg { border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); }
.card.salie { background: var(--salie-100); }
.card.line { border: 1.5px solid var(--groen-900); }
.card.dark, .dark { background: var(--groen-900); color: var(--creme-50); }
.tag { display: inline-block; align-self: flex-start; transform: rotate(-2deg); background: var(--lila-300); color: var(--groen-900); border-radius: var(--r-pill); padding: 6px 14px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.banner { background: var(--lila-300); color: var(--groen-900); padding: 8px 16px; text-align: center; font-size: 15px; line-height: 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 26px; border-radius: var(--r-pill); border: 1.5px solid var(--groen-900); background: transparent; color: var(--groen-900); font-weight: 600; text-decoration: none; }
.btn:hover { color: var(--groen-900); background: var(--salie-100); }
.btn.primary { border-color: var(--framboos-600); background: var(--framboos-600); color: #fff; }
.btn.primary:hover { background: #9f2950; border-color: #9f2950; color: #fff; }
.btn.sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn.on-dark { border-color: var(--creme-50); color: var(--creme-50); }
.btn.on-dark:hover { background: rgba(255,255,255,.12); color: var(--creme-50); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { border: none; background: transparent; padding: 0; min-height: 44px; text-decoration: underline; font-weight: 600; color: var(--groen-900); }
.linkbtn:hover { color: var(--framboos-600); }
.ico { width: 18px; height: 18px; flex: none; }
.ico.s { width: 14px; height: 14px; }

/* progress */
.bar { height: 10px; border-radius: var(--r-pill); background: var(--salie-100); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--groen-900); border-radius: var(--r-pill); transition: width .2s ease-out; }
.progress { flex: 1 1 240px; max-width: 420px; display: flex; align-items: center; gap: 12px; }
.progress .bar { flex: 1; }
.saved { display: inline-flex; align-items: center; gap: 6px; color: var(--groen-600); font-size: 15px; }
.saved.err { color: var(--framboos-600); font-weight: 600; }
.big { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 44px; }

/* pills & badges */
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 14px; border-radius: var(--r-pill); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.pill.done { background: var(--groen-900); color: var(--creme-50); }
.pill.now { background: var(--lila-300); }
.pill.track { background: var(--salie-100); }
.pill.locked { border: 1.5px solid var(--groen-400); color: var(--groen-600); }
.pill.action { background: var(--framboos-600); color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-pill); font-family: var(--display); font-weight: 700; font-size: 17px; border: 1.5px dashed var(--groen-400); color: var(--groen-600); }
.badge.on { border: none; background: var(--lila-300); color: var(--groen-900); transform: rotate(12deg); }
.on-dark .badge { border-color: var(--creme-50); color: var(--creme-50); }
.on-dark .badge.on { color: var(--groen-900); }
.sticker { flex: none; width: 168px; height: 168px; border-radius: var(--r-pill); background: var(--framboos-600); color: #fff; transform: rotate(12deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.sticker b { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 60px; }
.sticker span { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; }

/* sign in */
.split { min-height: 100vh; display: flex; flex-wrap: wrap; }
.split > .left { flex: 1 1 520px; min-width: 0; padding: clamp(32px, 6vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.split > .right { flex: 1 1 420px; min-width: 0; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 48px); display: flex; align-items: center; justify-content: center; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 32px; flex: 999 1 280px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts span { font-size: 15px; line-height: 24px; }
.info { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-md); padding: 16px; background: var(--salie-100); font-size: 15px; line-height: 24px; }
.info.white { background: var(--wit); }
.info svg { flex: none; margin-top: 2px; width: 22px; height: 22px; }
.gdot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: #fff; color: var(--groen-900); font-weight: 700; font-size: 16px; }
.mascot { flex: 0 1 220px; width: 220px; max-width: 60%; height: auto; overflow: visible; }

/* dashboard */
.path { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.path > li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--r-md); background: var(--wit); }
.path > li.now { background: var(--salie-100); }
.num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); font-family: var(--display); font-weight: 700; font-size: 20px; background: var(--salie-100); color: var(--groen-600); }
.num.done { background: var(--groen-900); color: var(--creme-50); }
.num.now { background: var(--wit); color: var(--groen-900); }
.path .body { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.path .title { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 26px; text-decoration: none; }
.path span.title { color: var(--groen-600); }
.chips { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 14px; line-height: 20px; background: var(--wit); border: 1.5px solid var(--groen-400); text-decoration: none; }
.chip.done { background: var(--groen-900); color: var(--creme-50); border-color: var(--groen-900); }
.chip.now { background: var(--lila-300); border-color: var(--lila-300); font-weight: 600; }
.chip.plain { border: none; background: var(--salie-100); }

/* session */
.session { max-width: 1120px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 24px) 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.side ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 22px; }
.side a, .side .off { display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.side a[aria-current] { background: var(--salie-100); font-weight: 600; }
.side .off { color: var(--groen-600); }
.side .meta { color: var(--groen-600); font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.main { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 32px; }
.main.full { max-width: 1120px; }
.blocks { display: flex; flex-direction: column; gap: 20px; }
.blocks ul, .blocks ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prompt { background: var(--wit); border-radius: var(--r-md); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.prompt.hi { border: 1.5px solid var(--groen-900); }
.prompt p { white-space: pre-line; }
.note { border-radius: var(--r-md); padding: 16px 20px; background: var(--salie-100); display: flex; flex-direction: column; gap: 4px; }
.note.warn { background: var(--wit); border: 2px dashed var(--framboos-600); }
.tablewrap { overflow-x: auto; background: var(--wit); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; text-align: left; }
thead tr { background: var(--groen-900); color: var(--creme-50); font-size: 13px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
th, td { padding: 14px 18px; vertical-align: top; }
thead th { font-weight: 600; }
tbody tr { border-top: 1px solid var(--groen-100); }
tbody th { font-weight: 600; }
.videobox { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.videobox video { width: 100%; border-radius: var(--r-lg); background: var(--groen-900); aspect-ratio: 16 / 9; }
details.fold { background: var(--wit); border-radius: var(--r-md); padding: 16px 20px; }
details.fold.salie { background: var(--salie-100); }
details.fold summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details.fold > *:not(summary) { margin-top: 12px; }
details.q summary { font-family: var(--display); font-size: 20px; line-height: 28px; }

/* exercises */
.ex { background: var(--wit); border: 1.5px solid var(--groen-900); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.ex.plain { border: none; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; text-align: left; border-radius: var(--r-md); background: var(--creme-50); border: 1.5px solid var(--groen-400); }
.opt .dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--salie-100); font-size: 14px; font-weight: 700; }
.opt .txt { flex: 1; }
.opt .mk { flex: none; font-size: 15px; font-weight: 600; }
.opt.right { background: var(--salie-100); border: 2px solid var(--groen-900); }
.opt.right .dot { background: var(--groen-900); color: var(--creme-50); }
.opt.wrong { border: 2px dashed var(--framboos-600); }
.opt.wrong .dot { background: var(--framboos-600); color: #fff; }
.opt[disabled] { cursor: default; opacity: 1; }
.fb { background: var(--salie-100); border-radius: var(--r-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.pool { display: flex; flex-wrap: wrap; gap: 12px; min-height: 56px; }
.cardbtn { display: flex; align-items: center; min-height: 52px; max-width: 420px; padding: 12px 16px; border-radius: var(--r-md); font-size: 15px; line-height: 22px; text-align: left; background: var(--wit); border: 1.5px solid var(--groen-400); }
.cardbtn[aria-pressed="true"] { background: var(--lila-300); border: 2px solid var(--groen-900); }
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.bucket { background: var(--creme-50); border-radius: var(--r-lg); padding: 12px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; }
.bucket > button { display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 110px; padding: 16px; text-align: left; border-radius: var(--r-md); background: transparent; border: 1.5px dashed var(--groen-400); cursor: default; }
.bucket.active > button { background: var(--salie-100); border: 2px dashed var(--groen-900); cursor: pointer; }
.placed { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: var(--r-md); font-size: 15px; line-height: 22px; background: var(--wit); border: 1.5px solid var(--groen-100); }
.placed.ok { background: var(--salie-100); border: 2px solid var(--groen-900); }
.placed.no { border: 2px dashed var(--framboos-600); }
.placed .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.verdict { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.verdict.no { color: var(--framboos-600); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .lbl { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 26px; }
textarea, input[type="email"], input[type="text"], select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--groen-400); border-radius: var(--r-sm); background: var(--creme-50); color: var(--groen-900); font-size: 16px; line-height: 24px; }
textarea { resize: vertical; }
select { width: auto; min-height: 44px; background: var(--wit); }
.card textarea, .ex textarea { background: var(--creme-50); }
.salie textarea { background: var(--wit); }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 32px; font-size: 15px; line-height: 24px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--groen-900); }
.two { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.two > .a { flex: 999 1 420px; min-width: 0; }
.two > .b { flex: 1 1 320px; min-width: 0; }
.preview { background: var(--groen-900); color: var(--creme-50); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.preview p { white-space: pre-line; font-size: 15px; line-height: 24px; min-height: 96px; }

/* certificate */
.cert { position: relative; background: var(--wit); border: 1.5px solid var(--groen-900); border-radius: var(--r-lg); padding: 56px clamp(20px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cert .sticker { position: absolute; top: -20px; right: 24px; width: 104px; height: 104px; }
.cert .sticker b { font-size: 32px; line-height: 34px; }
.cert .sticker span { font-size: 11px; line-height: 14px; }
.cert .meta { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; border-top: 1px solid var(--groen-100); padding-top: 24px; margin-top: 16px; text-align: left; font-size: 15px; line-height: 24px; }
.cert .meta div { display: flex; flex-direction: column; }

/* trainer */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; background: transparent; border: 1.5px solid var(--groen-400); }
.filters button[aria-pressed="true"] { background: var(--groen-900); color: var(--creme-50); border-color: var(--groen-900); }
.inviterow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--wit); border-radius: var(--r-md); padding: 8px 16px; }
.skel { background: var(--salie-100); border-radius: var(--r-sm); height: 16px; }

@media (max-width: 640px) {
  .page { padding-top: 32px; gap: 36px; }
  .session { padding-top: 32px; gap: 28px; }
  .side ol { flex-direction: row; overflow-x: auto; }
  .side a, .side .off { min-width: 180px; }
  .sticker { width: 128px; height: 128px; }
  .sticker b { font-size: 48px; line-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar, .footnav, .banner, .noprint { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
}
