/* Subpages in the Zipchat-style design (src/site/ui.mjs helpers, src/platform-pages.mjs). Loaded on every
   rebuilt route except the homepage. Shared parts stay in components.css and sims.css; colours come from
   tokens.css only. Every example surface has a fixed size, so nothing moves while it plays. */

/* ── Page hero: the warm gradient, a glass eyebrow, a compact title and the page's own example ── */
.page-hero { padding: 140px 0 64px; background: var(--grad-top); }
.page-hero-inner { display: grid; justify-items: center; gap: 24px; text-align: center; }
.page-hero-copy { display: grid; justify-items: center; gap: 20px; max-width: 760px; }
.page-hero h1 { font-size: 52px; line-height: 1.06; }
.page-hero .stop { color: var(--accent); }
.page-hero .lead { max-width: 600px; }
.page-hero .actions { margin-top: 4px; }
.page-hero .btn-glass { border-color: var(--line-ink); }
.page-hero--split .page-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: center; justify-items: stretch; gap: 56px; text-align: left; }
.page-hero--split .page-hero-copy { justify-items: start; }
.page-hero--split .actions { justify-content: flex-start; }
.page-hero-visual { min-width: 0; }
.page-hero-visual .sim-caption { justify-content: flex-start; }

/* The hero card floats on the gradient and builds itself once: the card, then its rows. */
.mk--hero { border-color: var(--glass-border); box-shadow: var(--shadow-frame); animation: mk-in .6s var(--enter) both; }
.mk--hero [style*="--d:"] { animation: mk-in .5s var(--enter) both; animation-delay: calc(var(--d) * 1s + .1s); }
@keyframes mk-in { from { opacity: 0; transform: translateY(10px); } }
/* Once it is built, the black pointer presses its approve button once (site.js): "Wacht op jou" becomes "Goedgekeurd"
   in the same cell, so nothing moves. */
.hero-card { position: relative; }
.hero-say { display: inline-grid; justify-items: end; }
.hero-say > * { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hero-say .hero-done { visibility: hidden; color: var(--green); font-weight: 500; }
.hero-card:has(.mk-btn--ink.is-clicked) .hero-ask { visibility: hidden; }
.hero-card:has(.mk-btn--ink.is-clicked) .hero-done { visibility: visible; }
.mk-propose .mk-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
/* Narrow: the buttons stay side by side and the status drops under them. */
.hero-card .mk-foot { flex-wrap: wrap; row-gap: 8px; }
.hero-card .mk-actions { flex-wrap: nowrap; }

/* ── Example windows: never the real dashboard, always labelled as an example ── */
.mk { width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--canvas); box-shadow: var(--shadow-sim); font-size: 14px; line-height: 1.4; text-align: left; }
.mk-head { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.mk-head > b { min-width: 0; font-weight: 500; line-height: 1.3; }
.mk-meta { flex: none; margin-left: auto; color: var(--ink-subtle); font-size: 13px; white-space: nowrap; }
.mk-body { display: grid; gap: 10px; padding: 6px 16px 16px; }
.mk-body > :first-child:not(.mk-rows) { margin-top: 8px; }
.mk-group { display: grid; gap: 6px; }
.mk-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--hue-soft, var(--wash)); color: var(--hue, var(--ink)); }
.mk-logo { flex: none; height: auto; aspect-ratio: 1; object-fit: contain; }
.mk-logo--picqer { object-fit: cover; object-position: 0 50%; }
.mk-tag {
  display: inline-flex; align-items: center; flex: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--wash); color: var(--ink-muted);
  font-size: 12.5px; font-weight: 500; line-height: 1.4; white-space: nowrap;
}
.mk-tag--hue { background: var(--hue-soft); color: var(--hue); }
.mk-tag--ok { background: var(--green-soft); color: var(--green); }
.mk-tag--wait { background: var(--ochre-soft); color: var(--ochre); }
.mk-tag--warn { background: var(--orange-soft); color: var(--orange); }

.mk-rows { display: grid; }
.mk-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.mk-row:last-child { border-bottom: 0; }
.mk-row > :first-child { justify-self: center; }
.mk-row-text { display: grid; gap: 1px; min-width: 0; }
.mk-row-text b, .mk-row-text small { overflow-wrap: break-word; }
.mk-row-text b { font-weight: 500; }
.mk-row-text small { color: var(--ink-muted); font-size: 13px; }
.mk-row.is-on { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; border-bottom-color: transparent; background: var(--hue-soft); }
.mk-ok { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.mk-ok--warn { background: var(--orange-soft); color: var(--orange); }
.mk-radio { width: 18px; height: 18px; border: 1.5px solid var(--ink-subtle); border-radius: 50%; }
.mk-radio.is-on { border: 5px solid var(--hue, var(--ink)); }
/* A choice the black pointer makes (data-click, sims.js): it lights up as the pointer presses it; reduced motion
   shows it made. The negative margin keeps the text where it was. */
.mk-row.mk-pick { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; transition: background-color .2s var(--enter); }
.mk-row.mk-pick.is-clicked { border-bottom-color: transparent; background: var(--hue-soft); }
.mk-pick .mk-radio { transition: border-width .2s var(--enter), border-color .2s var(--enter); }
.mk-pick.is-clicked .mk-radio { border: 5px solid var(--hue, var(--ink)); }
@media (prefers-reduced-motion: reduce) {
  .mk-row.mk-pick { border-bottom-color: transparent; background: var(--hue-soft); }
  .mk-pick .mk-radio { border: 5px solid var(--hue, var(--ink)); }
}
.mk-num { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-thumb { width: 28px; height: 35px; border-radius: 6px; object-fit: cover; }

.mk-label { color: var(--ink-muted); font-size: 12.5px; font-weight: 500; }
.mk-text { font-size: 14.5px; line-height: 1.5; }
.mk-text b, .mk-answer b { font-weight: 600; }
.mk-hint { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-muted); font-size: 13px; }
.mk-hint .i { flex: none; margin-top: 2px; color: var(--hue, var(--ink-muted)); }
.mk-hint--ok, .mk-hint--ok .i { color: var(--green); }
.mk-flag { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); font-size: 13.5px; font-weight: 500; }
.mk-flag .i { flex: none; margin-top: 1px; }
.mk-bubble { display: flex; align-items: flex-start; gap: 8px; width: fit-content; max-width: 92%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--wash); font-size: 14px; line-height: 1.45; }
.mk-bubble .mk-logo { margin-top: 1px; }
.mk-q { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
.mk-q .i { flex: none; color: var(--hue); }
.mk-answer { padding: 12px 14px; border-radius: 12px; background: var(--hue-soft); line-height: 1.5; }
.mk-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-srcs li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; }
.mk-srcs li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-srcs .i { flex: none; color: var(--hue, var(--ink-muted)); }
.mk-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-ink); border-radius: 12px; }
.mk-file > .i { color: var(--orange); }
.mk-file > span { display: grid; min-width: 0; }
.mk-file b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mk-file small { color: var(--ink-muted); font-size: 12.5px; }
.mk-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mk-amount b { font-size: 26px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mk-amount span { color: var(--ink-muted); font-size: 13px; }
.mk-propose { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--hue-soft); }
.mk-propose p b { display: block; margin-bottom: 2px; color: var(--hue); font-size: 12.5px; font-weight: 500; }
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border: 1px solid var(--line-ink); border-radius: var(--r-pill); background: var(--canvas); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.mk-btn--ink { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.mk-foot .mk-meta { color: var(--ink-muted); }
.mk-done { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 12px; background: var(--green-soft); text-align: center; }
.mk-done-mark { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; background: var(--green); color: var(--on-ink); }
.mk-done b { font-size: 17px; font-weight: 500; }
.mk-done span { color: var(--ink-muted); font-size: 13.5px; }
.mk-log { display: grid; gap: 6px; }
.mk-log li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; color: var(--ink-muted); font-size: 13px; }
.mk-log time { color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.mk-log span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Figures, a week of bars and a share per size. Lopende periodes heten voorlopig. */
.mk-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-figures li { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--hue-soft, var(--wash)); }
.mk-figures b { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-figures small { color: var(--ink-muted); font-size: 12.5px; line-height: 1.3; }
.mk-delta { color: var(--green); font-size: 12px; font-weight: 500; line-height: 1.3; }
.mk-delta--warn { color: var(--orange); }
.mk-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-widget { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.mk-widget--hue { border-color: transparent; background: var(--hue-soft); }
.mk-widget--wide { grid-column: 1 / -1; gap: 8px; }
.mk-widget small, .mk-widget > span { color: var(--ink-muted); font-size: 12.5px; }
.mk-widget > b { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-widget .mk-log li { color: var(--ink); font-size: 13.5px; }
.mk-widget .mk-log span { overflow: visible; white-space: normal; }
.mk-chart { display: grid; gap: 6px; }
.mk-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.mk-bars i { flex: 1; height: calc(var(--v) * 1%); border-radius: 4px 4px 2px 2px; background: var(--hue-on-ink); }
.mk-bars .is-hi { background: var(--hue); }
.mk-axis { display: flex; gap: 8px; }
.mk-axis span { flex: 1; color: var(--ink-subtle); font-size: 11.5px; text-align: center; }
.mk-meter { display: grid; gap: 10px; }
.mk-meter li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13.5px; }
.mk-meter b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-meter i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--hue) calc(var(--v) * 2.5%), var(--wash) 0); }
.mk-meter li:first-child i { background: linear-gradient(90deg, var(--orange) calc(var(--v) * 2.5%), var(--wash) 0); }

/* Calendar slots, a comparison, the access table and three ad formats. */
.mk-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-slots li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.mk-slots b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-slots span { color: var(--green); font-size: 13px; font-weight: 500; }
.mk-slots .is-busy { border-color: transparent; background: var(--wash); }
.mk-slots .is-busy span { color: var(--ink-muted); }
.mk-slots .is-pick { border-color: var(--hue); background: var(--hue-soft); box-shadow: inset 0 0 0 1px var(--hue); }
.mk-slots .is-pick span { color: var(--hue); }
.mk-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-compare > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--wash); }
.mk-compare > div:first-child { background: var(--orange-soft); }
.mk-compare small { color: var(--ink-muted); font-size: 12.5px; }
.mk-compare b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.mk-compare > div:first-child b { color: var(--orange); }
.mk-matrix { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); align-items: stretch; }
.mk-matrix > * { padding: 9px 4px; border-bottom: 1px solid var(--line-soft); }
.mk-matrix > small { padding-top: 2px; color: var(--ink-muted); font-size: 12px; font-weight: 500; text-align: center; }
.mk-matrix-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-weight: 500; white-space: nowrap; }
.mk-cell { display: grid; place-items: center; color: var(--ink-subtle); }
.mk-cell.is-on { color: var(--green); }
.mk-cell.is-wait { color: var(--ochre); }
.mk-ads { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 6px 0 4px; }
.mk-ads .mk-thumb { width: auto; border-radius: 10px; box-shadow: var(--shadow-sim); }
.mk-ads .is-feed { height: 120px; aspect-ratio: 4 / 5; }
.mk-ads .is-story { height: 140px; aspect-ratio: 9 / 16; }
.mk-ads .is-square { height: 96px; aspect-ratio: 1; }

/* ── Journey row: the sibling pages as numbered steps, this page marked ── */
.journey { padding-top: 8px; }
.journey-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-bottom: 6px; }
.journey-label { color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.journey-all { font-size: 14px; }
.journey-list { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.journey-list > li { display: flex; }
.journey-step {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 14px 12px 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-tile); background: var(--panel); transition: background var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.journey-step:hover { border-color: var(--line); background: var(--canvas); box-shadow: var(--shadow-card-hover); }
.journey-step:focus-visible { outline: none; box-shadow: var(--focus); }
.journey-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hue-soft, var(--wash)); color: var(--hue, var(--ink));
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.journey-text { display: grid; gap: 1px; min-width: 0; }
.journey-text b { font-size: 15px; font-weight: 500; line-height: 1.3; }
.journey-text small { color: var(--ink-muted); font-size: 13px; line-height: 1.4; }
.journey-step.is-current { border-color: var(--line); background: var(--canvas); box-shadow: var(--shadow-tab); }
.journey-step.is-current .journey-num { background: var(--accent); color: var(--on-ink); }
.journey-step.is-current small { color: var(--accent); font-weight: 500; }
.journey-now { display: none; }
/* On the overview the row is the list of parts: each card carries its one-line summary. */
.journey--detail { padding-top: 0; }
.journey--detail .journey-head { justify-content: center; margin-bottom: 20px; }
.journey--detail .journey-label { color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.journey--detail .journey-step { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 14px; padding: 18px; }
.journey--detail .journey-text { gap: 4px; }
.journey--detail .journey-text b { font-size: 16px; }
.journey--detail .journey-text small { font-size: 14px; }

/* ── Stat tiles: a published figure, what it counts and where it comes from ── */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--panel); }
.stat-value { font-size: 44px; font-weight: 500; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-muted); font-size: 15px; }
.stat-source { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.stat-source .i { color: var(--accent); transition: transform var(--base) var(--enter); }
a.stat-source:hover .i { transform: translateX(3px); }

/* ── Tiles with a small proof; headings, texts and proofs line up across a row ── */
.tile-proof { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pf { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--canvas); color: var(--ink-muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pf .i { flex: none; color: var(--hue, var(--ink)); }
.pf--hue { background: var(--hue-soft); color: var(--hue); }
@media (min-width: 961px) {
  .page-tiles { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .page-tiles .tile { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; row-gap: 8px; }
}
.page-promises .sim-caption { margin-top: 20px; }

/* ── Chips: static labels, letter tiles, icons and a centred cloud ── */
.chip--static:hover { border-color: var(--line); box-shadow: none; }
.chip-letter { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 600; }
.chip-icon { display: grid; place-items: center; width: 20px; height: 20px; color: var(--ink-muted); }
a.chip { min-height: 44px; }
.brand-cloud .chips { justify-content: center; max-width: 880px; margin-inline: auto; }
.page-brands .actions { margin-top: 20px; }
.int-row { scroll-margin-top: 104px; }
.int-row-head { display: grid; gap: 4px; }
.int-row-head p { color: var(--ink-muted); font-size: 14px; }
.suite-tile .tile-icon { margin-bottom: 8px; }
/* Brand marks stand cut out, without a tile behind them. */
.suite-tile .tile-icon--logo { place-items: center start; border: 0; background: none; }
.suite-tile .tile-icon--logo img { width: 28px; height: 28px; }

/* ── Steps beside one light stage in the page's hue (sims.css drives the steps) ── */
.sim-steps .steps-stage { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; min-width: 0; height: 460px; padding: 28px 32px 32px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--hue-soft); }
.steps-stage .flow-screens { justify-self: center; width: 100%; max-width: 460px; }
/* The row above the screen: where the work is now, and the steps it already passed. */
.step-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step-node {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 40px; padding: 0 4px;
  color: var(--ink-muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color var(--base);
}
/* A quiet progress strip, not a row of buttons: the current step gets a bar in the area's colour. */
.step-node::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 2px; border-radius: 1px; background: transparent; transition: background var(--base); }
.step-node > span { display: grid; flex: none; place-items: center; color: var(--hue); }
.step-node + .step-node::before { content: ""; position: absolute; top: 50%; right: 100%; width: 12px; height: 1px; background: var(--line-ink); }
.sim-steps[data-active="1"] .step-node:nth-child(-n+1),
.sim-steps[data-active="2"] .step-node:nth-child(-n+2),
.sim-steps[data-active="3"] .step-node:nth-child(-n+3) { color: var(--ink); }
.sim-steps[data-active="0"] .step-node:nth-child(1),
.sim-steps[data-active="1"] .step-node:nth-child(2),
.sim-steps[data-active="2"] .step-node:nth-child(3),
.sim-steps[data-active="3"] .step-node:nth-child(4) { color: var(--ink); }
.sim-steps[data-active="0"] .step-node:nth-child(1)::after,
.sim-steps[data-active="1"] .step-node:nth-child(2)::after,
.sim-steps[data-active="2"] .step-node:nth-child(3)::after,
.sim-steps[data-active="3"] .step-node:nth-child(4)::after { background: var(--hue); }

/* ── The org chart: you, the Supervisor and four departments; the panel explains the chosen role ── */
.org { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: stretch; gap: 16px 32px; }
.org > .sim-foot { grid-column: 1 / -1; }
.org-chart { display: grid; align-content: center; justify-items: center; padding: 32px 24px; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--panel); }
.org-level { display: flex; justify-content: center; width: 100%; }
.org-line { display: block; width: 1px; height: 24px; background: var(--line-ink); }
.org-depts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; padding-top: 24px; }
.org-depts::before { content: ""; position: absolute; top: 0; left: calc((100% - 30px) / 8); right: calc((100% - 30px) / 8); height: 1px; background: var(--line-ink); }
.org-depts .org-node::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 24px; background: var(--line-ink); }
.org-node {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; width: 100%; min-height: 44px; padding: 14px 8px 16px;
  border: 1px solid var(--line-soft); border-radius: var(--r-tile); background: var(--canvas); color: var(--ink); font: inherit; text-align: center; cursor: pointer;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.org-node:hover { border-color: var(--line); box-shadow: var(--shadow-card-hover); }
.org-node[aria-selected="true"] { border-color: var(--hue, var(--ink)); box-shadow: inset 0 0 0 1px var(--hue, var(--ink)); }
.org-node:focus-visible { outline: none; box-shadow: var(--focus); }
.org-node--wide { grid-template-columns: auto auto; align-items: center; justify-content: center; justify-items: start; width: auto; min-width: 240px; padding: 12px 22px 14px 12px; text-align: left; }
.org-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--hue-soft, var(--wash)); color: var(--hue, var(--ink)); }
.org-node-text { display: grid; gap: 1px; min-width: 0; }
.org-node-text b { font-size: 15px; font-weight: 500; line-height: 1.3; }
.org-node-text small { color: var(--ink-muted); font-size: 13px; }
/* A two-line department name keeps the assistant count on the same line as its neighbours. */
.org-depts .org-node { grid-template-rows: auto 1fr; }
.org-depts .org-node-text { grid-template-rows: 1fr auto; }
.org-node .sim-tab-bar { left: 14px; right: 14px; bottom: 6px; }
.org-panels { display: grid; }
.org-panel { grid-area: 1 / 1; display: grid; align-content: start; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--canvas); box-shadow: var(--shadow-sim); }
.org.is-ready .org-panel[hidden] { display: grid; visibility: hidden; }
.org-panel-head { display: flex; align-items: center; gap: 14px; }
.org-panel-head .org-icon { width: 44px; height: 44px; border-radius: 12px; }
.org-panel-head > span + span { display: grid; gap: 2px; }
.org-panel h3 { font-size: 22px; }
.org-panel-head small { color: var(--ink-muted); font-size: 14px; }
.org-body { color: var(--ink-muted); }
.org-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.org-lists h4 { margin-bottom: 10px; color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.org-lists .check-list { gap: 8px; margin: 0; }
.org-lists li { font-size: 14.5px; }
.org-wait { display: grid; gap: 8px; }
.org-wait li { display: flex; align-items: flex-start; gap: 10px; }
.org-wait .i { flex: none; margin-top: 2px; color: var(--ochre); }
.org-example { padding: 14px 16px; border-radius: var(--r-tile); background: var(--hue-soft, var(--wash)); }
.org-example b { display: block; margin-bottom: 4px; color: var(--hue, var(--ink)); font-size: 13px; font-weight: 500; }
.org-example p { font-size: 14.5px; }

/* ── Questions without tabs ── */
.faq-list { border-top: 1px solid var(--line); }

/* ── From product photo to ad: a teaser with made-up brands ── */
.ad-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: center; gap: 32px 56px; padding: 40px; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--panel); }
.ad-teaser-copy { display: grid; justify-items: start; gap: 16px; }
.ad-teaser-copy .actions { margin-top: 4px; }
.ad-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ad-card { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-tile); background: var(--ink); box-shadow: var(--shadow-sim); }
.ad-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ad-card figcaption { position: absolute; inset: auto 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, var(--scrim) 70%); color: var(--on-ink); font-size: 13px; }
.ad-card b { font-weight: 600; }

/* ── Breakpoints ── */
@media (max-width: 1200px) {
  .org-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .page-hero h1 { font-size: 44px; }
  .page-hero--split .page-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; }
  .org { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 16px 24px; }
}
@media (max-width: 960px) {
  .page-hero { padding: 124px 0 48px; }
  .page-hero--split .page-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .page-hero-visual { width: 100%; max-width: 520px; }
  .journey-step { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; gap: 8px; padding: 12px 8px; text-align: center; }
  .journey-text b { font-size: 14px; }
  .journey--detail .journey-list { grid-template-columns: minmax(0, 1fr); }
  .journey--detail .journey-step { grid-template-columns: 32px minmax(0, 1fr); justify-items: start; gap: 14px; padding: 14px 16px; text-align: left; }
  .page-tiles.tile-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .page-tiles .tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: start; column-gap: 16px; row-gap: 4px; }
  .page-tiles .tile > .tile-icon { grid-row: span 3; margin: 0; }
  .page-tiles .tile-proof { grid-column: 2; }
  .org { grid-template-columns: minmax(0, 1fr); }
  .ad-teaser { grid-template-columns: minmax(0, 1fr); padding: 28px; }
}
@media (max-width: 899px) {
  .sim-steps .steps-stage { order: -1; height: 480px; gap: 16px; padding: 16px; }
  .step-nodes { gap: 10px; }
  .step-node { flex-direction: column; gap: 3px; height: 54px; padding: 0 2px; font-size: 11.5px; }
  .step-node + .step-node::before { width: 10px; }
}
@media (max-width: 767px) {
  .page-hero h1 { font-size: 38px; }
  .page-hero .actions { width: 100%; }
  .page-hero .actions .btn { flex: 1 1 100%; max-width: 360px; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stat { gap: 6px; padding: 20px; }
  .stat-value { font-size: 36px; }
  .stat-source { padding-top: 8px; }
  .org-chart { padding: 24px 14px; }
  .org-panel { padding: 22px; }
}
/* Phones: the journey folds into numbers on a line, with one sentence saying where you are. */
@media (max-width: 640px) {
  .journey:not(.journey--detail) .journey-list { position: relative; display: flex; justify-content: space-between; }
  .journey:not(.journey--detail) .journey-list::before { content: ""; position: absolute; top: 50%; left: 22px; right: 22px; height: 1px; background: var(--line); }
  .journey:not(.journey--detail) .journey-list > li { position: relative; }
  .journey:not(.journey--detail) .journey-step { place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; }
  .journey:not(.journey--detail) .journey-step:focus-visible { box-shadow: var(--focus); }
  .journey:not(.journey--detail) .journey-num { width: 36px; height: 36px; box-shadow: 0 0 0 4px var(--canvas); }
  .journey:not(.journey--detail) .is-current .journey-num { box-shadow: 0 0 0 4px var(--accent-soft); }
  .journey:not(.journey--detail) .journey-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .journey-now { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 8px; font-size: 14px; }
  .journey-count { color: var(--ink-muted); }
  .journey-now b { font-weight: 500; }
  .journey-next { margin-left: auto; font-size: 14px; }
  .org-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
  .org-depts::before, .org-depts .org-node::before { display: none; }
  .org-node--wide { min-width: 0; width: 100%; max-width: 300px; }
  .org-lists { grid-template-columns: minmax(0, 1fr); }
  .ad-teaser { padding: 20px; }
  .ad-row { gap: 8px; }
}
@media (max-width: 479px) {
  .page-hero h1 { font-size: 32px; }
  .mk-body { padding-inline: 14px; }
  .mk-head { padding-inline: 14px; }
  .mk-foot { margin-inline: -14px; padding-inline: 14px; }
  .mk-figures li { padding: 8px 10px; }
  .mk-figures b { font-size: 18px; }
  .mk-matrix { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .mk-matrix > * { padding-inline: 2px; }
  .mk-matrix > small { font-size: 11px; }
  .mk-matrix-name { gap: 6px; }
  .mk-ads .is-feed { height: 104px; }
  .mk-ads .is-story { height: 120px; }
  .mk-ads .is-square { height: 84px; }
  .step-nodes { gap: 6px; }
  .step-node { font-size: 11px; }
  .step-node + .step-node::before { width: 6px; }
}
@media (max-width: 379px) { .mk-matrix > small { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) {
  .mk--hero, .mk--hero [style*="--d:"] { animation: none; }
  .journey-step, .org-node, .step-node, .stat-source .i { transition: none; }
}

/* Step stages hold their tallest screen (measured from 320 px up, NL and EN), so a step never cuts its screen off. */
@media (min-width: 900px) and (max-width: 1100px) { .sim-steps .steps-stage { height: 500px; } }
@media (max-width: 479px) { .sim-steps .steps-stage { height: 492px; } }
@media (max-width: 379px) { .sim-steps .steps-stage { height: 552px; } }
@media (max-width: 339px) { .sim-steps .steps-stage { height: 572px; } }

/* Kantoor (/kantoor/): the framed office takes the wide container under a compact hero (src/pages/office.mjs). */
.kantoor-page { width: min(var(--w-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.kantoor-page .sim-caption { margin-top: 14px; }
.office-language-note { margin-top: 6px; color: var(--ink-muted); font-size: 14px; }
