/* What Are You Actually Assessing? — shares the companion family's tokens.
   Paper / card / ink as in purpose, learning-types, frame-factors. The one
   addition is --box, the graphite used for the black-box motif. */

:root {
  /* text-only shades of the accent colours, 4.5:1 or better on every course background (30 Sep 2026) */
  --text-ochre: #855c15; --text-green: #4c6a3a; --text-brown: #8e4f22;
  --paper: #f5f2ea;
  --card: #fcfaf4;
  --inset: #efeadd;
  --ink: #23261f;
  --ink-soft: #474b40;
  --muted: #6b6557;
  --hair: #ddd6c4;
  --hair-strong: #c9c1ab;
  --danger: #a8442c;
  --danger-soft: #f4e6df;
  --ok: #587d4b;
  --ok-soft: #e9eedd;
  --warn: #b7822f;
  --warn-soft: #f5ecd8;
  --ai: #6c58a8;
  --ai-soft: #ece7f4;
  --box: #2f3436;
  --font-ui: "Schibsted Grotesk", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.app { max-width: 1240px; margin: 0 auto; padding: 0 26px 72px; }

/* ---- masthead ---------------------------------------------------------- */
.masthead { padding: 44px 0 18px; }
.masthead-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.masthead-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 22px; text-wrap: balance;
}
.lens-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--hair); padding-bottom: 14px; }
.lens-tab {
  display: flex; align-items: baseline; gap: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--hair); color: var(--ink-soft);
  font-family: var(--font-ui); font-size: 14px; padding: 9px 14px; border-radius: 2px;
}
.lens-tab:hover { border-color: var(--hair-strong); color: var(--ink); }
.lens-tab.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lens-tab-num { font-family: var(--font-mono); font-size: 11px; }
.lens-tab:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
@media (max-width: 900px) {
  .lens-tabs { gap: 6px; }
  .lens-tab { font-size: 13px; padding: 7px 10px; gap: 7px; }
}

/* ---- layout ------------------------------------------------------------ */
.layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; margin-top: 30px; align-items: start; }
.stage { position: sticky; top: 26px; background: var(--box); border-radius: 3px; padding: 22px 20px 18px; }
.panel { min-width: 0; }

/* ---- the spine --------------------------------------------------------- */
.spine { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; height: 250px; align-items: end; }
.spine-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.spine-bar {
  position: relative; width: 100%; flex: 1; min-height: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 2px; cursor: ns-resize; display: flex; align-items: flex-end;
  touch-action: none;
}
.spine-bar:focus-visible { outline: 2px solid #d8c98c; outline-offset: 2px; }
.spine-fill { width: 100%; background: #6f7d63; border-radius: 1px; transition: height .12s ease; }
.has-window .spine-fill { background: #8fa07d; }
.spine-val {
  position: absolute; top: 6px; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; color: #e8e4d8;
}
.spine-name {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255,255,255,.55); text-align: center;
}
.has-marks .spine-name { color: rgba(255,255,255,.85); }
.spine-window {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .07em;
  text-transform: uppercase; color: #d8c98c; border: 1px solid rgba(216,201,140,.45);
  padding: 1px 4px; border-radius: 2px;
}
.stage-caption {
  margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px;
}
.stage-caption b { color: #fff; }

/* ---- panel prose ------------------------------------------------------- */
.lens-intro { font-size: 18px; line-height: 1.55; margin: 0 0 26px; max-width: 62ch; }
.lens h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; margin: 0 0 8px; }
.lens h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin: 18px 0 8px; }
.lens p { max-width: 64ch; }
.note { margin: 30px 0; }
.note-after { color: var(--ink-soft); }
.after, .src { max-width: 64ch; }
.src { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: -4px; }
.lead { margin: 0 0 4px; }
.hint { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.closing { color: var(--ink-soft); font-size: 16.5px; }
.caution { font-size: 14.5px; color: var(--ink-soft); border-left: 2px solid var(--warn); padding-left: 14px; }

.quote { margin: 20px 0; padding: 0 0 0 18px; border-left: 3px solid var(--hair-strong); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.45; }
.quote figcaption { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 8px; }
.quote-small blockquote { font-size: 16px; }

/* ---- exercises --------------------------------------------------------- */
.exercise, .bench, .moves, .commit {
  margin: 34px 0; background: var(--card); border: 1px solid var(--hair);
  border-radius: 3px; padding: 22px 22px 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip {
  cursor: pointer; background: var(--paper); border: 1px solid var(--hair-strong);
  color: var(--ink-soft); font-family: var(--font-ui); font-size: 14px;
  padding: 8px 12px; border-radius: 2px; text-align: left; display: flex;
  flex-direction: column; gap: 3px;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.chip-sub { font-family: var(--font-mono); font-size: 10px; opacity: .68; max-width: 30ch; }

.verdict { margin-top: 16px; }
.verdict-empty { background: var(--inset); border-radius: 2px; padding: 14px 16px; }
.verdict-empty b { display: block; margin-bottom: 4px; }
.verdict-empty p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.verdict-lead { font-weight: 600; margin: 0 0 8px; }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.paths li { background: var(--inset); border-radius: 2px; padding: 12px 14px; display: grid; gap: 4px; }
.path-label { font-weight: 700; font-size: 13.5px; }
.path-route { font-family: var(--font-mono); font-size: 12.5px; color: var(--danger); }
.path-exposes { font-size: 13.5px; color: var(--ink-soft); }
.verdict-time { font-family: var(--font-mono); font-size: 13px; margin-top: 12px; }

.ledger-readout { margin: 8px 0 16px; }
.readout-total { font-family: var(--font-mono); font-size: 14px; margin: 0 0 10px; }
.readout-warn { padding: 10px 14px; border-radius: 2px; font-size: 14.5px; margin-bottom: 8px; }
.readout-warn.bad { background: var(--danger-soft); color: var(--danger); }
.readout-warn.warn { background: var(--warn-soft); color: var(--text-ochre); }
.readout-warn.ok { background: var(--ok-soft); color: var(--text-green); }
.visible-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.visible-list li { display: grid; gap: 2px; font-size: 14px; }
.visible-list b { font-size: 13px; }
.visible-list span { color: var(--ink-soft); }
.visible-empty { color: var(--ink-soft); font-size: 14.5px; }

.btn, .btn-quiet {
  cursor: pointer; font-family: var(--font-ui); font-size: 13.5px;
  padding: 9px 15px; border-radius: 2px;
}
.btn { background: var(--ink); border: 1px solid var(--ink); color: var(--paper); }
.btn-quiet { background: transparent; border: 1px solid var(--hair-strong); color: var(--ink-soft); }
.btn:hover, .btn-quiet:hover { border-color: var(--ink); color: var(--ink); background: var(--inset); }
.btn:focus-visible, .btn-quiet:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }

.bench-card { border-top: 1px solid var(--hair); padding-top: 16px; margin-top: 16px; }
.bench-card:first-of-type { border-top: 0; padding-top: 4px; margin-top: 8px; }
.bench-card h4 { margin: 0 0 2px; font-size: 15px; font-family: var(--font-display); font-weight: 600; }
.bench-who { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }

.principles { margin: 10px 0 6px; padding-left: 20px; }
.principles li { margin-bottom: 5px; max-width: 62ch; }

.field { display: grid; gap: 5px; margin: 14px 0; }
.field > span { font-size: 14px; font-weight: 700; }
.field input {
  font-family: var(--font-ui); font-size: 14.5px; padding: 9px 11px;
  border: 1px solid var(--hair-strong); border-radius: 2px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus-visible { outline: 2px solid var(--ai); outline-offset: 1px; }
.field em { font-size: 12.5px; color: var(--muted); font-style: normal; }

/* ---- moves ------------------------------------------------------------- */
.move { border-top: 1px solid var(--hair); padding: 18px 0 4px; }
.move:first-of-type { border-top: 0; }
.move.on { background: var(--ok-soft); margin: 0 -12px; padding: 18px 12px 6px; border-radius: 2px; }
.move-pick {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: none; border: 0; padding: 0; text-align: left; font-family: var(--font-ui);
}
.move-check {
  width: 17px; height: 17px; border: 1.5px solid var(--hair-strong);
  border-radius: 2px; flex: 0 0 auto; background: var(--paper);
}
.move.on .move-check { background: var(--ok); border-color: var(--ok); }
.move-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.move-pick:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; }
.move-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; }
.tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid;
}
.t-process { color: var(--text-green); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.t-critical { color: var(--ai); border-color: color-mix(in srgb, var(--ai) 40%, transparent); }
.t-ethics { color: var(--text-ochre); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.t-integrity { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.move-meta { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14.5px; }
.move-meta dt { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.move-meta dd { margin: 0; color: var(--ink-soft); }

/* ---- commit ------------------------------------------------------------ */
.plan { background: var(--inset); border-radius: 2px; padding: 14px 16px; }
.plan-task, .plan-marks { margin: 0 0 6px; font-size: 14px; }
.plan-moves { margin: 8px 0 0; padding-left: 20px; }
.plan-moves li { font-size: 14px; margin-bottom: 3px; }
.commit-actions { margin: 14px 0 10px; }

/* ---- colophon ---------------------------------------------------------- */
.colophon { margin-top: 56px; border-top: 1px solid var(--hair); padding-top: 22px; }
.colophon h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
.colophon p { max-width: 72ch; font-size: 14px; color: var(--ink-soft); }
.refs { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 7px; }
.refs li { font-size: 14px; color: var(--ink-soft); max-width: 76ch; padding-left: 14px; border-left: 2px solid var(--hair); }
.colophon-links { display: flex; flex-wrap: wrap; gap: 8px; }
.colophon-links a {
  font-family: var(--font-mono); font-size: 13px; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--hair-strong); padding: 5px 10px; border-radius: 2px;
}
.colophon-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; gap: 26px; }
  .stage { position: static; }
  .spine { height: 190px; }
}
@media (max-width: 560px) {
  .app { padding: 0 16px 56px; }
  .move-meta { grid-template-columns: 1fr; gap: 1px; }
  .move-meta dt { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- the two-concept framework ----------------------------------------- */
.framework { margin: 34px 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 14px; }
.pair-card { background: var(--card); border: 1px solid var(--hair); border-radius: 3px; padding: 16px 18px; }
.pair-q {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ai); margin: 0 0 4px;
}
.pair-card h4 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.pair-card p { font-size: 14.5px; }
.pair-gives { color: var(--ink-soft); }
.pair-together {
  background: var(--inset); border-left: 3px solid var(--ok);
  padding: 12px 16px; border-radius: 2px; font-size: 15px;
}
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }

/* ---- programme-level assurance ------------------------------------------ */
.system { margin: 34px 0; }
.pathways { display: grid; gap: 8px; margin: 12px 0 8px; }
.pathway {
  display: flex; gap: 12px; align-items: baseline;
  background: var(--inset); border-radius: 2px; padding: 11px 14px;
}
.pathway-n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--ai); flex: 0 0 auto;
}
.pathway div { display: grid; gap: 2px; }
.pathway b { font-size: 14px; }
.pathway span { font-size: 14.5px; color: var(--ink-soft); }

/* ---- the backwash flip -------------------------------------------------- */
.flipwrap .lead { margin-bottom: 14px; }
.flip-toggle { display: inline-flex; border: 1px solid var(--hair-strong); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.flip-btn {
  cursor: pointer; background: var(--paper); border: 0; color: var(--ink-soft);
  font-family: var(--font-ui); padding: 9px 16px; display: grid; gap: 1px; text-align: left;
}
.flip-btn + .flip-btn { border-left: 1px solid var(--hair-strong); }
.flip-btn:hover { background: var(--inset); color: var(--ink); }
.flip-btn.on { background: var(--ink); color: var(--paper); }
.flip-btn:focus-visible { outline: 2px solid var(--ai); outline-offset: -2px; }
.flip-btn-name { font-size: 14px; font-weight: 600; }
.flip-btn-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }  /* inherits the button colour: light on the dark active button */

/* three nodes, fixed frame, moved by transform so the swap is legible */
.flip-stack { --flip-step: 84px; position: relative; height: 252px; margin: 4px 0 16px; }
.flip-node {
  position: absolute; left: 0; right: 0; top: 0; height: 74px;
  display: grid; align-content: center; gap: 2px;
  background: var(--inset); border: 1px solid var(--hair);
  border-left: 3px solid var(--hair-strong);
  border-radius: 2px; padding: 10px 16px;
  transition: transform .52s cubic-bezier(.65,.02,.28,1), border-color .52s, background .52s;
}
.flip-node-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; }
.flip-node-note { font-size: 14px; color: var(--ink-soft); }
/* whichever element comes first is the one setting the direction */
.flip-node.is-first { background: var(--card); border-left-color: var(--ok); }
.flip-stack[data-view="student"] .flip-node.is-first { border-left-color: var(--danger); }
.n-assessment .flip-node-name { color: var(--ink); }

.flip-caption {
  background: var(--inset); border-left: 3px solid var(--hair-strong);
  padding: 12px 16px; border-radius: 2px; font-size: 15.5px; margin: 0 0 10px;
}
.flip-stack[data-view="student"] ~ .flip-caption { border-left-color: var(--danger); }
.flip-swapnote { font-size: 15px; color: var(--ink-soft); margin: 0; }

@media (prefers-reduced-motion: reduce) { .flip-node { transition: none; } }
@media (max-width: 560px) {
  .flip-stack { --flip-step: 100px; height: 300px; }
  .flip-node { height: 90px; }
  .flip-toggle { display: grid; grid-template-columns: 1fr 1fr; }
  .flip-btn + .flip-btn { border-left: 0; border-top: 0; }
}

/* ---- the connection between the elements -------------------------------- */
.flip-frame { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: stretch; }
.flip-frame .flip-stack { margin: 4px 0 0; }
.flip-gutter {
  height: 252px; margin: 4px 0 0; color: var(--hair-strong);
  /* explicit identity so the flip interpolates transform-to-transform;
     animating from `none` is the edge case browsers handle least predictably */
  transform: rotate(0deg);
  transition: transform .52s cubic-bezier(.65,.02,.28,1), color .52s;
}
.flip-gutter svg { width: 100%; height: 100%; display: block; overflow: visible; }
.flip-gutter line { stroke: currentColor; stroke-width: 1.6; }
/* the student view reverses the direction of reference */
.flip-gutter.up { transform: rotate(180deg); color: var(--danger); }
.flip-arrowlabel {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em;
  color: var(--muted); margin: 8px 0 12px 50px;
}
@media (prefers-reduced-motion: reduce) { .flip-gutter { transition: none; } }
@media (max-width: 560px) {
  .flip-gutter { height: 300px; }
  .flip-frame { grid-template-columns: 30px 1fr; gap: 8px; }
  .flip-arrowlabel { margin-left: 38px; }
}

.flip-caveat {
  font-size: 15px; color: var(--ink-soft); margin: 10px 0 0;
  padding-left: 14px; border-left: 2px solid var(--hair);
}
.flip-caveat a { color: var(--ai); text-decoration: none; border-bottom: 1px solid currentColor; }
.flip-caveat a:hover { background: var(--ai-soft); }

/* ---- detection: the arithmetic and the alternatives --------------------- */
.arith {
  font-family: var(--font-mono); font-size: 14.5px; line-height: 1.55;
  background: var(--danger-soft); color: var(--danger);
  padding: 12px 16px; border-radius: 2px; max-width: 62ch;
}
.instead { margin: 34px 0; background: var(--card); border: 1px solid var(--hair); border-radius: 3px; padding: 22px 22px 24px; }
.instead-list { list-style: none; counter-reset: ins; margin: 14px 0; padding: 0; display: grid; gap: 11px; }
.instead-list li {
  counter-increment: ins; display: grid; gap: 3px;
  padding-left: 34px; position: relative;
}
.instead-list li::before {
  content: counter(ins, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ai);
}
.instead-list b { font-size: 14.5px; }
.instead-list span { font-size: 14.5px; color: var(--ink-soft); }

/* tab 04: the short answer, four reasons, then the full case folded */
.reasons { list-style: none; counter-reset: rs; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; }
.reasons li {
  counter-increment: rs; display: grid; gap: 4px; position: relative;
  background: var(--inset); border-left: 3px solid var(--hair-strong); border-radius: 2px;
  padding: 12px 16px 12px 48px; max-width: 66ch;
}
.reasons li::before {
  content: counter(rs, decimal-leading-zero); position: absolute; left: 16px; top: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.reasons b { font-size: 15px; }
.reasons span { font-size: 14.5px; color: var(--ink-soft); }
.reasons em { font-style: normal; }
.evidence { margin: 34px 0 10px; border: 1px solid var(--hair); border-radius: 3px; background: var(--card); }
.evidence > summary {
  cursor: pointer; list-style: none; display: grid; gap: 4px;
  padding: 16px 20px 16px 44px; position: relative;
}
.evidence > summary::-webkit-details-marker { display: none; }
.evidence > summary::before {
  content: '+'; position: absolute; left: 18px; top: 13px;
  font-family: var(--font-mono); font-size: 18px; color: var(--muted);
}
.evidence[open] > summary::before { content: '−'; }
.evidence > summary:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.evidence-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.evidence-hint { font-size: 14.5px; color: var(--ink-soft); max-width: 64ch; }
.evidence-body { padding: 0 20px 18px; border-top: 1px solid var(--hair); }

/* ---- AI literacy as an assessment job ----------------------------------- */
.literacy { margin: 34px 0; }
.cap-head {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  margin: 26px 0 6px; letter-spacing: -.01em;
}
.caps { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 9px; }
.caps li {
  display: grid; gap: 3px; background: var(--inset);
  border-left: 3px solid var(--hair-strong); border-radius: 2px; padding: 11px 15px;
}
.caps li.starred { border-left-color: var(--ai); background: var(--ai-soft); }
.caps b { font-size: 14.5px; }
.caps span { font-size: 14.5px; color: var(--ink-soft); }
.qs { margin: 10px 0; padding-left: 22px; display: grid; gap: 5px; }
.qs li { font-family: var(--font-display); font-size: 17px; line-height: 1.35; max-width: 58ch; }
.src-inline { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ---- MGMT8005 weighted flow --------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 14px 0 8px; align-items: end; }
.flow-step { display: grid; gap: 3px; justify-items: center; text-align: center; align-content: end; }
.flow-bar { width: 100%; background: var(--hair-strong); border-radius: 1px; min-height: 4px; }
.flow-step.weighted .flow-bar { background: var(--ok); }
.flow-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.flow-w { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.flow-step.weighted .flow-w { color: var(--text-green); }
.flow-note { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

/* ---- a real journal entry ----------------------------------------------- */
.jrn { background: var(--inset); border-radius: 2px; padding: 14px 16px; margin: 12px 0; }
.jrn-lead { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; }
.jrn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jrn-cell { display: grid; gap: 4px; align-content: start; }
.jrn-col {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ai);
  border-bottom: 1px solid var(--hair); padding-bottom: 4px;
}
.jrn-val { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.jrn-note { font-size: 14.5px; margin: 10px 0 6px; }
.jrn-link { font-family: var(--font-mono); font-size: 11.5px; color: var(--ai); }

/* ---- the wicked problem and its permissions ----------------------------- */
.wicked { margin: 34px 0; background: var(--card); border: 1px solid var(--hair); border-radius: 3px; padding: 22px 22px 24px; }
.perms { display: grid; gap: 9px; margin: 12px 0; }
.perm { display: flex; gap: 13px; align-items: baseline; background: var(--inset); border-radius: 2px; padding: 12px 15px; }
.perm-n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-green); flex: 0 0 auto; }
.perm div { display: grid; gap: 3px; }
.perm b { font-size: 14.5px; }
.perm span { font-size: 14.5px; color: var(--ink-soft); }

.stress { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 9px; }
.stress li { display: grid; gap: 3px; border-left: 2px solid var(--warn); padding-left: 13px; }
.stress b { font-size: 14px; }
.stress span { font-size: 13.5px; color: var(--ink-soft); }
.handout { font-size: 14.5px; color: var(--ink-soft); }
.handout a { color: var(--ai); }

@media (max-width: 640px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .jrn-grid { grid-template-columns: 1fr; }
}
.perm-q {
  font-family: var(--font-display); font-size: 15px; font-style: normal;
  line-height: 1.4; border-left: 2px solid var(--hair-strong);
  padding-left: 11px; margin: 5px 0 3px; display: block;
}
.perm-close { font-size: 14.5px; color: var(--muted); }

/* ---- LED1001 triangulation ---------------------------------------------- */
.tri { margin: 14px 0 8px; }
.tri-lead { font-size: 14.5px; margin: 0 0 10px; }
.tri-fig { max-width: 360px; margin: 0 auto 14px; }
.tri-fig svg { width: 100%; height: auto; display: block; }
.tri-w { font-family: var(--font-mono); font-size: 13px; font-weight: 600; fill: var(--ok); }
.tri-lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  fill: var(--ink-soft);
}
.tri-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tri-list li { display: grid; gap: 3px; background: var(--inset); border-radius: 2px; padding: 10px 14px; }
.tri-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.tri-top b { font-size: 14px; }
.tri-mode { font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tri-pct { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-green); margin-left: auto; }
.tri-gives { font-size: 14.5px; color: var(--ink-soft); }
.tri-note { font-size: 14.5px; margin: 10px 0 8px; }

/* ---- the two lanes ------------------------------------------------------ */
/* the lanes drawn as lanes: two long bands, the non-lane between them */
.lv { margin: 22px 0 8px; }
.lv-lane { display: grid; grid-template-columns: 150px 1fr; align-items: stretch; }
.lv-label {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 14px 14px 14px 0;
}
.lv-label b { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; }
.lv-label span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.lv-track {
  list-style: none; margin: 0; padding: 14px 12px;
  display: flex; flex-wrap: wrap; gap: 8px; position: relative;
  /* a faint centre marking, like paint on a road */
  background-image: repeating-linear-gradient(90deg, var(--hair-strong) 0 18px, transparent 18px 34px);
  background-size: 100% 1.5px; background-position: 0 50%; background-repeat: no-repeat;
}
.lv-secured .lv-track { background-color: var(--card); border-top: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); }
.lv-open .lv-track { background-color: var(--ai-soft); border-top: 2px dashed var(--ai); border-bottom: 2px dashed var(--ai); }
.lv-open .lv-label b { color: var(--ai); }
.lv-tok {
  position: relative; flex: 1 1 150px; max-width: 220px;
  background: var(--paper); border: 1px solid var(--hair-strong); border-radius: 2px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 3px;
  transition: border-color .25s, background-color .25s;
}
.lv-tok b, .lv-tok span { transition: color .25s; }
.lv-open .lv-tok { border-style: dashed; border-color: var(--ai); background: var(--card); }
.lv-tok b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.lv-tok span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.lv-pair-tag {
  display: none; position: absolute; top: -9px; right: 8px;
  font-family: var(--font-mono); font-style: normal; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--warn); color: var(--card); padding: 1px 6px; border-radius: 2px;
}
.lv-gap {
  margin: 0 0 0 150px; padding: 10px 14px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  background: repeating-linear-gradient(135deg, var(--danger-soft) 0 8px, transparent 8px 16px);
  border-left: 3px solid var(--danger);
}
.lv-gap-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--danger); font-weight: 600; }
.lv-struck { font-size: 14.5px; color: var(--danger); text-decoration-thickness: 1.5px; }
.lv-gap-note { flex-basis: 100%; font-size: 14.5px; color: var(--ink-soft); }
.lv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 0 150px; }
.lv-pair-note { font-size: 13.5px; color: var(--ink-soft); flex: 1 1 260px; }
/* the optional pairing */
.lv.pair-on .lv-tok:not(.lv-pair) { border-color: var(--hair); background: var(--card); }
.lv.pair-on .lv-tok:not(.lv-pair) b,
.lv.pair-on .lv-tok:not(.lv-pair) span { color: var(--hair-strong); }
.lv.pair-on .lv-pair { border: 1.5px solid var(--warn); background: var(--warn-soft); }
.lv.pair-on .lv-pair-tag { display: block; }
@media (max-width: 640px) {
  .lv-lane { grid-template-columns: 1fr; }
  .lv-label { padding: 12px 0 8px; flex-direction: row; align-items: baseline; gap: 10px; }
  .lv-gap, .lv-foot { margin-left: 0; }
  .lv-gap { margin-top: 10px; }
  .lv-tok { max-width: none; }
}
/* the compact version in tab 02's benchmark card */
.lv-mini { margin: 14px 0 8px; }
.lv-mini .lv-lane { grid-template-columns: 104px 1fr; }
.lv-mini .lv-lane + .lv-lane { margin-top: 6px; }
.lv-mini .lv-label { padding: 10px 10px 10px 0; }
.lv-mini .lv-label b { font-size: 17px; }
.lv-mini .lv-label span { font-family: var(--font-ui); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.lv-mini .lv-track { padding: 10px 8px; gap: 6px; }
.lv-mini .lv-tok { flex: 1 1 110px; max-width: none; padding: 7px 9px; }
.lv-mini .lv-tok b { font-size: 12.5px; }
.lv-mini .tri-note { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; }
/* the column rule above outranks the generic stacking rule, so stack the mini one explicitly */
@media (max-width: 640px) {
  .lv-mini .lv-lane { grid-template-columns: 1fr; }
  .lv-mini .lv-label { padding: 8px 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .lv-tok { transition: none; } }

.lanes { margin: 20px 0 30px; }
.lane-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.lane { border-radius: 3px; padding: 16px 18px; background: var(--card); }
.lane-secured { border: 1.5px solid var(--ink-soft); }
.lane-open { border: 1.5px dashed var(--ai); background: var(--ai-soft); }
.lane-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; }
.lane-head b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.lane-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lane-asks { font-family: var(--font-display); font-size: 16px; margin: 0 0 8px; }
.lane-cond { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 10px; }
.lane-ex { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 5px; }
.lane-ex li {
  font-size: 13px; padding: 5px 10px; border-radius: 2px;
  background: var(--paper); border: 1px solid var(--hair);
}
.lane-open .lane-ex li { border-style: dashed; }
.lane-good { font-size: 14.5px; font-weight: 600; margin: 0 0 3px; }
.lane-cost { font-size: 14.5px; color: var(--muted); margin: 0; }
.lane-middle {
  background: var(--danger-soft); color: var(--danger); border-radius: 2px;
  padding: 11px 15px; font-size: 13.5px; margin: 0 0 10px; max-width: none;
}
.lane-note { font-size: 14.5px; }
@media (max-width: 640px) { .lane-grid { grid-template-columns: 1fr; } }
.optional {
  border: 1px dashed var(--hair-strong); border-radius: 3px;
  padding: 14px 16px 12px; margin-top: 16px; background: var(--paper);
}
.optional .field { margin-top: 0; }
.optional-note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; max-width: 62ch; }

/* ---- the Swiss cheese stack (tab 03, programme level) ------------------- */
.chz { margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--hair); }
.chz-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.chz-fig { background: var(--card); border: 1px solid var(--hair); border-radius: 3px; padding: 6px 6px 0; margin-top: 8px; }
.chz-fig svg { width: 100%; height: auto; display: block; }
.chz-shape { cursor: pointer; outline: none; }
.chz-body { fill: var(--warn-soft); stroke-width: 1.6; transition: fill .2s, stroke .2s; }
.chz-shape.secured .chz-body { stroke: var(--ink-soft); }
.chz-shape.open .chz-body { stroke: var(--ai); stroke-dasharray: 5 4; }
.chz-shape.out .chz-body { fill: transparent; stroke: var(--hair-strong); stroke-dasharray: 3 4; }
.chz-shape:hover .chz-body { stroke-width: 2.4; }
.chz-shape:focus-visible .chz-body { stroke: var(--ai); stroke-width: 3; }
.chz-num { font-family: var(--font-mono); font-size: 18px; text-anchor: middle; fill: var(--ink-soft); }
.chz-shape.out .chz-num { fill: var(--hair-strong); }
.chz-arrow { stroke-width: 2.4; }
.chz-arrow.stopped { stroke: var(--ok); }
.chz-arrow.through { stroke: var(--danger); }
.chz-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chz-btn {
  width: 100%; height: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink-soft); border-radius: 2px;
  padding: 9px 10px; display: flex; flex-direction: column; gap: 3px;
  transition: opacity .2s, background-color .2s;
}
.chz-btn.open { border: 1px dashed var(--ai); }
.chz-btn:hover { background: var(--inset); }
.chz-btn:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.chz-btn[aria-pressed="false"] { opacity: .45; background: transparent; }
.chz-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.chz-btn b { font-size: 13.5px; line-height: 1.25; }
.chz-mode { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chz-btn.open .chz-mode { color: var(--ai); }
.chz-sees { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.chz-readout { font-size: 14.5px; font-weight: 600; margin: 12px 0 4px; color: var(--text-green); }
.chz-readout.leak { color: var(--danger); }
.chz-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 14px; }
.chz-caption { font-size: 14px; color: var(--muted); flex: 1 1 260px; }
@media (max-width: 760px) { .chz-list { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .chz-body, .chz-btn { transition: none; } }

/* ---- tab 05: the reflection steps --------------------------------------- */
.field textarea {
  font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--ink);
  background: var(--card); border: 1px solid var(--hair-strong); border-radius: 2px;
  padding: 9px 11px; resize: vertical; min-height: 4.2em; width: 100%; box-sizing: border-box;
}
.field textarea:focus-visible { outline: 2px solid var(--ai); outline-offset: 1px; }
.rf-steps { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rf-stepbtn {
  width: 100%; height: 100%; font: inherit; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 7px 8px; background: transparent; border: 1px solid var(--hair); border-radius: 2px; color: var(--ink-soft);
}
.rf-stepbtn:hover { border-color: var(--hair-strong); color: var(--ink); }
.rf-stepbtn[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rf-stepbtn:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.rf-n { font-family: var(--font-mono); font-size: 10.5px; }
.rf-name { font-size: 12.5px; line-height: 1.25; }
.rf-bar { height: 3px; background: var(--hair); border-radius: 2px; margin: 0 0 18px; overflow: hidden; }
.rf-bar span { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.rf-panel { border-left: 2px solid var(--hair-strong); padding-left: 16px; }
.rf-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.rf-title:focus { outline: none; }
.rf-frame { font-size: 15px; line-height: 2.2; margin: 4px 0 0; }
/* .field input (0,1,1) outranks a bare .rf-blank (0,1,0), so scope it to the
   frame (0,2,0) and reset everything the general input rule sets. */
.rf-frame .rf-blank {
  display: inline-block; box-sizing: border-box; margin: 0; box-shadow: none;
  font: inherit; font-size: 14px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink-soft); border-radius: 0; padding: 1px 4px;
  width: 14em; max-width: 100%; min-width: 0; height: auto;
}
.rf-frame .rf-blank:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.rf-context { background: var(--inset); border-radius: 2px; padding: 10px 14px; margin: 12px 0; font-size: 14.5px; }
.rf-context p { margin: 0 0 4px; }
.rf-context-lead { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rf-nav { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; }
.rf-nav .btn { margin-left: auto; }
.rf-nav button:disabled { opacity: .4; cursor: default; }
.rf-count { font-size: 13px; color: var(--muted); }
.plan-sec { margin: 0 0 12px; }
.plan-sec:last-child { margin-bottom: 0; }
.plan-sec h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.plan-sec dl { margin: 0; }
.plan-sec dt { font-size: 13px; font-weight: 700; margin-top: 6px; }
.plan-sec dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; }
.commit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .rf-steps { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rf-bar span { transition: none; } }

/* ---- printing the plan (tab 05, "Print my plan") ------------------------ */
/* The button adds body.print-plan for the length of one print job, so a
   normal Ctrl+P still prints the page as it is. */
@media print {
  body.print-plan .masthead,
  body.print-plan .stage,
  body.print-plan .colophon,
  body.print-plan .lens > *:not(.commit),
  body.print-plan .commit > .field,
  body.print-plan .commit-actions,
  body.print-plan .commit .closing,
  body.print-plan .commit .handout { display: none !important; }
  body.print-plan, body.print-plan .app { background: #fff; }
  body.print-plan .layout { display: block; margin: 0; }
  body.print-plan .commit { border: 0; padding: 0; margin: 0; }
  body.print-plan .plan { background: none; padding: 0; }
  body.print-plan .plan-sec { break-inside: avoid; }
}

/* ---- mini-course: step 06 in the reflection, and AI as a design partner (tab 05) ---- */
.rf-context-06 { margin-top: 12px; }
.rf-outcomes { margin: 4px 0 6px 0; padding-left: 18px; }
.rf-outcomes li { margin-bottom: 4px; }
.rf-ai { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; color: var(--ai, #6c58a8); }
.partner { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--hair, #ddd6c4); border-left: 4px solid var(--ai, #6c58a8); border-radius: 8px; background: var(--card, #fcfaf4); }
.partner-kicker { margin: 0 0 6px 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ai, #6c58a8); }
.partner h3 { margin-top: 0; }
.partner-privacy { font-size: 14px; color: var(--ai, #6c58a8); }
.partner-prompt { margin: 12px 0 0 0; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--hair-strong, #c9c1ab); border-radius: 6px; padding: 14px 16px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.partner-checks { margin: 0; padding-left: 18px; }
.partner-checks li { margin-bottom: 5px; font-size: 14.5px; line-height: 1.5; }
