@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
:root { color-scheme: light; font-family: 'DM Sans', sans-serif; color: #173a32; background: #f4f0e6; font-synthesis: none; text-rendering: optimizeLegibility; --ink: #173a32; --muted: #53685e; --paper: #fffdf7; --forest: #175c49; --line: #d2d6c8; --lime: #dce8c8; --coral: #bd3f2c; --cookie: #edbd51; scrollbar-color: #718779 #f4f0e6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
button, summary, select { touch-action: manipulation; }
button { cursor: pointer; }
button, select { color: var(--ink); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, [tabindex='-1']:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--lime); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
.skip-link { position: absolute; top: 10px; left: 16px; z-index: 5; padding: 12px 18px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.topbar { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; min-height: 44px; flex-shrink: 0; align-items: center; gap: 10px; color: var(--forest); font-size: 17px; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { display: grid; width: 26px; height: 26px; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { border-radius: 5px; background: var(--forest); }
.brand-mark span:nth-child(2) { background: #edbd51; }
.brand-mark span:nth-child(3) { background: #bd3f2c; }
.topbar-note { color: var(--muted); font-size: 13px; font-weight: 700; text-align: right; }
.page-shell { width: min(1160px, calc(100% - 64px)); margin: auto; padding: 28px 0 36px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 22px; }
h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.07; }
h1 em { color: var(--coral); font-style: normal; }
.intro p { margin-top: 12px; color: var(--muted); }
.intro .mission { max-width: 32ch; margin: 0 0 2px; font-size: 15px; }
.mission strong { display: block; color: var(--ink); margin-bottom: 5px; }
.workshop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 38px; align-items: start; }
.maze-panel { min-width: 0; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; margin-bottom: 15px; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
#board-state { color: var(--muted); font-size: 12px; }
.board-wrap { padding: 14px; background: #e5e9d8; border-radius: 14px; scroll-margin-top: 20px; }
.maze { display: grid; grid-template-rows: repeat(6, 1fr); gap: 5px; width: min(100%, 400px); margin: auto; aspect-ratio: 1; }
.maze-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; min-height: 0; }
.cell { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0; background: var(--paper); border: 0; border-radius: 6px; isolation: isolate; }
.cell:focus-visible { z-index: 2; outline-offset: 0; outline-width: 4px; }
.cell.wall { background: #456354; color: #dce3cf; }
.cell.wall::before, .cell.wall::after { content: ''; position: absolute; background: #5f7b69; }
.cell.wall::before { width: 100%; height: 2px; top: 48%; }
.cell.wall::after { width: 2px; height: 48%; top: 0; left: 45%; }
.cell.cookie svg { width: 45%; height: 45%; }
.cell.exit { color: var(--forest); background: var(--lime); }
.cell.exit svg { width: 46%; height: 46%; }
.cell.start { background: #e9e7f3; }
.cell.start .start-letter { position: absolute; bottom: 2px; left: 5px; font-size: 10px; font-weight: 700; color: #4c4763; }
.cell.visited::after { content: ''; position: absolute; z-index: -1; inset: 32%; border-radius: 50%; background: #718767; }
.cell.spent > svg { opacity: .22; }
.robot-piece { position: absolute; inset: 13%; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 10px; box-shadow: 0 3px 7px #173a3226; animation: arrive 160ms cubic-bezier(.16, 1, .3, 1); }
.robot-piece svg { width: 76% !important; height: 76% !important; }
@keyframes arrive { from { clip-path: inset(0 0 16% 0 round 10px); transform: translateY(-3px); } to { clip-path: inset(0 round 10px); transform: translateY(0); } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 12px 0 16px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend svg { width: 19px; height: 19px; }
.trail-key::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #718767; }
.run-readout { display: flex; justify-content: center; gap: 32px; padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.run-readout strong { font-size: 20px; font-variant-numeric: tabular-nums; margin-right: 3px; }
.run-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 17px; border-radius: 9px; font-weight: 700; font-size: 15px; }
.primary { border: 0; color: var(--paper); background: var(--forest); flex: 1; }
.primary:hover:enabled { background: #104534; }
.secondary { border: 1px solid #879a88; background: transparent; }
.secondary:hover:enabled { background: #e5e9d8; }
.stop { color: var(--coral); border-color: var(--coral); }
.feedback { min-height: 64px; padding: 14px 0 10px; font-size: 14px; max-width: 70ch; }
.feedback.error { color: #923724; font-weight: 700; }
summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 700; font-size: 14px; }
summary::marker { color: var(--forest); }
.builder { padding: 4px 0; border-top: 1px solid var(--line); }
.builder p { color: var(--muted); font-size: 13px; margin: 8px 0; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tools button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 8px 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; font-size: 13px; }
.tools svg { width: 20px; height: 20px; }
.tools button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.board-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.text-button { min-height: 44px; border: 0; padding: 8px 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.rules { padding-top: 2px; min-width: 0; }
.rules h2 { max-width: 18ch; font-size: 25px; }
.rules-intro { margin-top: 10px; font-size: 14px; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.preset-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-buttons button { min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 12px; }
.preset-buttons button:hover { border-color: var(--forest); }
.preset-buttons button[aria-pressed='true'] { background: var(--lime); border-color: #6a803b; font-weight: 700; }
.reward-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.reward-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.reward-row label span { display: flex; }
.reward-row select { width: 112px; min-height: 44px; padding: 9px 7px; border: 1px solid #879a88; border-radius: 8px; font-size: 14px; background: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; }
.repeat-rule { display: flex; align-items: start; gap: 10px; padding: 15px 0 10px; cursor: pointer; font-size: 14px; }
.repeat-rule input { width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--forest); }
.repeat-rule small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.rule-note { color: var(--muted); font-size: 12px; padding-bottom: 20px; }
.learning { padding: 20px; background: #e5e9d8; border-radius: 12px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; font-size: 13px; }
#training-total { font-variant-numeric: tabular-nums; font-weight: 700; }
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 3px; overflow: hidden; margin: 9px 0 13px; accent-color: var(--forest); background: #c6ceba; }
progress::-webkit-progress-bar { background: #c6ceba; }
progress::-webkit-progress-value { background: var(--forest); }
progress::-moz-progress-bar { background: var(--forest); }
.learning p { font-size: 13px; }
.explanation { padding-top: 12px; }
.explanation p { margin: 8px 0; font-size: 13px; color: var(--muted); }
.results { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.results .section-heading p { font-size: 13px; color: var(--muted); }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.result { padding: 20px; background: var(--paper); border-radius: 12px; }
.result.current { background: #e5e9d8; }
.result h3 { margin-bottom: 6px; }
.result p { font-size: 14px; margin: 7px 0; }
.result .result-rules { color: var(--muted); font-size: 12px; }
.result strong { font-variant-numeric: tabular-nums; }
.history { margin-top: 12px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); padding: 10px 0; font-size: 12px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.reflection { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; background: #e9e7f3; border-radius: 12px; padding: 28px; margin-top: 28px; }
.reflection h2 { font-family: Fraunces, Georgia, serif; font-size: 30px; font-weight: 600; }
.reflection p { margin-top: 12px; font-size: 14px; }
.answers { display: grid; gap: 8px; margin-top: 16px; }
.answers button { text-align: left; min-height: 46px; padding: 10px 14px; border: 1px solid #a8a3bb; background: var(--paper); border-radius: 8px; font-size: 14px; }
.answers button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.answers button:hover:enabled { border-color: var(--ink); }
.takeaway { padding-top: 4px; }
#compare-reminder { font-weight: 700; }
.stamp { font-size: 24px !important; font-family: Fraunces, Georgia, serif; color: var(--forest); }
.stamp small { display: block; font: 14px/1.5 'DM Sans', sans-serif; color: var(--ink); margin-top: 8px; }
.local-note { color: var(--muted); font-size: 12px; margin-top: 28px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0 clamp(20px, 5vw, 76px); padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 1050px) { .workshop { grid-template-columns: minmax(0, 1fr) 305px; gap: 26px; } .page-shell { width: calc(100% - 48px); } .board-wrap { padding: 12px; } .reward-row label { font-size: 13px; gap: 5px; } .reward-row svg { width: 20px; } .reward-row { gap: 6px; } .run-actions button { font-size: 13px; padding-inline: 12px; } }
@media (max-width: 760px) { .page-shell { width: calc(100% - 36px); padding-top: 24px; } .intro { gap: 18px; margin-bottom: 24px; } .intro .mission { display: none; } h1 { font-size: 38px; } .intro p { font-size: 14px; } .workshop { grid-template-columns: 1fr; gap: 24px; } .maze { max-width: 480px; } .rules { border-top: 1px solid var(--line); padding-top: 24px; } .rules h2 { max-width: none; } .preset-buttons button { font-size: 13px; } .reward-row label { font-size: 15px; } .comparison, .reflection { grid-template-columns: 1fr; gap: 16px; } .reflection { padding: 22px; } .feedback { min-height: 0; padding-bottom: 16px; } }
@media (max-width: 420px) { .page-shell { width: calc(100% - 24px); padding-top: 20px; } .intro { margin-bottom: 20px; } h1 { font-size: 34px; } .topbar { padding-inline: 16px; gap: 12px; } .topbar-note { font-size: 12px; max-width: 15ch; } h2 { font-size: 21px; } .board-wrap { padding: 5px; border-radius: 10px; } .maze, .maze-row { gap: 3px; } .cell { border-radius: 4px; } .cell.start .start-letter { font-size: 8px; bottom: 0; left: 3px; } .robot-piece { border-radius: 7px; } .legend { gap: 8px 12px; font-size: 11px; margin-bottom: 12px; } .legend svg { width: 16px; height: 16px; } .run-readout { gap: 20px; padding: 9px 0; font-size: 12px; } .run-readout strong { font-size: 18px; } .run-actions { gap: 8px; margin-top: 12px; } .primary, .secondary { padding: 11px 12px; font-size: 13px; } .run-actions svg { width: 18px; } .rules h2 { font-size: 23px; } .tools { gap: 5px; } .tools button { padding-inline: 8px; } th, td { padding-inline: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Partnerlogo's in de gedeelde activiteitenheader */
.brand { gap: clamp(8px, 1vw, 14px); min-width: 0; flex-shrink: 1; }
.brand img { display: block; max-height: 46px; height: auto; object-fit: contain; }
.brand .brand-btxt { width: clamp(74px, 16vw, 152px); }
.brand .brand-maakbib { width: clamp(78px, 14vw, 124px); }

.instructions { margin-bottom: 28px; max-width: 75ch; }
.instructions h2 { font-size: 20px; }
.instructions ol { padding-left: 23px; margin: 12px 0; }
.instructions li { padding-left: 4px; margin: 8px 0; font-size: 15px; }
.instructions p { color: var(--muted); font-size: 14px; }
.training-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.preview-maze { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 2px; width: 132px; height: 132px; flex-shrink: 0; }
.preview-maze .cell { border-radius: 2px; }
.preview-maze .robot-piece { border-radius: 3px; animation: none; box-shadow: none; }
.training-preview p { flex: 1 1 100px; }

.maze-panel > .learning { margin: 0 0 20px; }
.task-panel { display: grid; grid-template-columns: minmax(140px, .4fr) minmax(0, 1.6fr); gap: 30px; align-items: baseline; margin: 0 0 28px; padding: 26px 30px; background: var(--lime); border-radius: 12px; }
.task-panel h2 { font: 600 clamp(27px, 3vw, 36px)/1.15 Fraunces, Georgia, serif; }
.task-panel p { max-width: 65ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; }
@media (max-width: 760px) { .task-panel { grid-template-columns: 1fr; gap: 7px; padding: 22px; } }
