@import url("/css/tokens.css");
@import url("/css/text-action.css");
@import url("/css/sidebar-toggle.css");
@import url("/css/layered-hero.css");

/* IBM Plex Sans, the product face — the same self-hosted files the administrator SPA uses (fonts/README.md). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: optional; src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: optional; src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: optional; src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: optional; src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: optional; src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: optional; src: url("/fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* The same foundations and light roles as the console; only learner placement aliases live here.
 * Brand properties are set on :root by the existing server/SPA palette, so derived roles resolve on that element. */
:root {
  color-scheme: light; font-family: var(--font-sans); font-synthesis: none;
  color: var(--text-2); background: var(--surface); -webkit-tap-highlight-color: transparent;
  --brand-primary: var(--boit-primary); --brand-ink: #fefefe;
  --brand-primary-ink: var(--brand-ink);
  --brand-secondary: var(--boit-secondary); --brand-secondary-ink: #fefefe;
  --brand-dark-accent: color-mix(in srgb, var(--brand-secondary) 28%, #fff); --brand-dark-ink: #14171c;
  --holder: #fefefe; --holder-below: var(--bg);
  --attention-tint: var(--status-behind-tint);
  --on-track-fg: var(--status-on-track-fg); --on-track-tint: var(--status-on-track-tint);
  --serious-fg: var(--status-serious-fg); --serious-tint: var(--status-serious-tint);
  --legend-focus: var(--focused-label-ink);
  --elev-1-accent: var(--elev-1-fill); --elev-2-accent: var(--elev-2-fill);
  --scrollbar-thumb: #7c8595; --scrollbar-thumb-hover: #6b7382; --scrollbar-thumb-active: #4a5363;
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(100%, 760px); margin: 0 auto; padding: 32px 16px 64px; }
/* The native pages' eyebrow is the UI label role (13/18, 500, secondary ink). */
.eyebrow { color: var(--text-2); font: var(--type-label); }
h1 { color: #12161a; font-size: 28px; font-weight: 600; line-height: 1.15; margin: 16px 0 24px; }
h2 { color: #12161a; font-size: 20px; font-weight: 600; line-height: 1.2; }
p { line-height: 1.6; }
.block { display: block; padding: var(--space-6); margin: 0 0 var(--space-6); background: #f4f6f8; border: 0; border-radius: var(--radius-md); }
/* Tones are tints, never a rule along an edge. A browser without color-mix keeps the block's own surface. */
.tone-callout, .learn-page .step .block.tone-callout { background: color-mix(in srgb, var(--brand-secondary) var(--tint-soft), var(--holder, #fefefe)); }
.tone-example, .learn-page .step .block.tone-example { background: color-mix(in srgb, var(--text-1) var(--tint-neutral), var(--holder, #fefefe)); }
.tone-warning, .learn-page .step .block.tone-warning { background: var(--attention-tint); }
.tone-takeaway, .learn-page .step .block.tone-takeaway { background: color-mix(in srgb, var(--brand-secondary) var(--tint-strong), var(--holder, #fefefe)); }
/* The stronger tint uses secondary ink for muted captions too, preserving text contrast. */
.tone-takeaway { --text-3: var(--text-2); }
.block strong { color: var(--text-1); }
.block.continues { margin-top: -24px; padding-top: 0; }
.reveal { margin-top: 16px; }
.reveal summary { position: relative; display: list-item; list-style-position: inside; min-height: 40px; padding: 8px; margin: 0 -8px; border-radius: var(--radius-sm); color: var(--text-1); font-weight: 600; cursor: pointer; transition: color var(--dur-fast) var(--ease-standard); }
.reveal summary::marker { color: var(--brand-primary); }
.reveal[open] summary { margin-bottom: 4px; }
.reveal > p { margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand-secondary) 6%, var(--surface)); }
/* A legend straddles the fieldset's top edge unless floated; floated, it sits inside the block like a heading. */
.block legend { float: left; width: 100%; padding: 0; font-weight: 600; margin-bottom: 12px; }
.block legend + * { clear: left; }
/* A choice row (an answer, a checklist item, a habit): the whole row is the hit area, 44 px for one line on every
   pointer, its text body copy at the lesson's 24 px line. */
.answer { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; line-height: 24px; }
/* A checkbox or radio is a filled check well (L0 check recipe): no stroke, >= 3:1 against the block holding
   it; checked is the accent fill with the tick or dot in accent ink. Forced colours and print fall back to the native control. */
.answer input { --well: color-mix(in srgb, var(--holder) var(--well-mix), var(--well-toward)); --well-hover: color-mix(in srgb, var(--holder) var(--well-mix-hover), var(--well-toward));
  appearance: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 5px 0 0; border: 0; border-radius: var(--radius-xs); background-color: var(--well); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.answer input[type="radio"] { border-radius: var(--radius-full); }
@media (hover: hover) { .answer:hover > input:not(:checked):not(:disabled) { background-color: var(--well-hover); } }
.answer input:checked { background-color: var(--brand-primary); }
.answer input:disabled { background-color: color-mix(in srgb, var(--holder) var(--well-mix-disabled), var(--well-toward)); cursor: default; }
.answer input[type="checkbox"]:checked::after { content: ''; display: block; width: 5px; height: 9px; margin: 1px 0 0 5px; border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.answer input[type="radio"]:checked::after { content: ''; display: block; width: 6px; height: 6px; margin: 4px; border-radius: var(--radius-full); background: var(--brand-ink); }
.control-box { position: relative; display: block; }
/* The input floor stays one rung below its holder in every state; only the top-lit inset deepens on hover/focus.
   Read-only fields retain the rest recess. No external shadow or geometry change. */
.block { --holder: #f4f6f8; --holder-below: var(--chrome); }
textarea { display: block; width: 100%; min-height: 120px; margin-top: 12px; padding: 12px; border: 0; border-radius: var(--radius-sm); background-color: var(--holder-below); box-shadow: var(--inset-rest); color: var(--text-1); font: inherit; transition: background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
@media (hover: hover) { textarea:hover:not(:disabled):not(:read-only):not(:focus) { background-color: var(--holder-below); box-shadow: var(--inset-hover); } }
textarea:is(:focus, :active):not(:disabled):not(:read-only) { background-color: var(--holder-below); box-shadow: var(--inset-focus); }
textarea:disabled { background-color: var(--holder-below); box-shadow: var(--inset-disabled); color: var(--text-3); cursor: not-allowed; }
textarea::placeholder { color: var(--text-3); opacity: 1; }
textarea:-webkit-autofill { -webkit-text-fill-color: var(--text-1); box-shadow: var(--inset-rest), inset 0 0 0 100px var(--holder-below); }
textarea:-webkit-autofill:is(:focus, :active):not(:disabled):not(:read-only) { box-shadow: var(--inset-focus), inset 0 0 0 100px var(--holder-below); }
/* The question's legend is the text area's label: while the text area has focus it takes the brand ink measured on the
   block (--legend-focus), not the raw brand, which is validated on white only. */
.block:has(textarea:focus:not(:read-only)) legend { color: var(--legend-focus); }
.block legend { transition: color var(--dur-fast) var(--ease-standard); }
button { position: relative; min-height: 40px; padding: 8px 24px; border: 0; border-radius: var(--radius-sm); color: var(--brand-ink); background: var(--brand-primary); box-shadow: var(--elev-1-accent); font: inherit; font-weight: 500; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
a { color: var(--brand-secondary); }
@media (hover: hover) { button:hover { background: var(--accent-hover); } .reveal summary:hover { color: var(--text-hover); } }
button:active { background: var(--accent-pressed); box-shadow: var(--elev-1-accent); transition-duration: var(--dur-instant); }
/* Keyboard focus: a lift, a surface shift, a restrained glow and a dash detached from the control's edges. No ring, no outline. */
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
button:focus-visible { background: var(--accent-hover); box-shadow: var(--elev-2-accent), var(--focus-glow); }
.answer input:focus-visible { box-shadow: var(--elev-1), var(--focus-glow); }
a:focus-visible { text-decoration-thickness: 2px; text-decoration-color: var(--brand-primary); text-underline-offset: 3px; }
button:focus-visible::after, .reveal summary:focus-visible::after { content: ''; position: absolute; width: 16px; height: 2px; border-radius: 1px; background: var(--brand-primary); pointer-events: none; animation: focus-dash var(--dur-fast) var(--ease-out); }
/* :has() rules stand alone, so an engine without it drops only these dashes, never the others. */
.answer:has(input:focus-visible)::after { content: ''; position: absolute; left: 2px; top: 34px; width: 12px; height: 2px; border-radius: 1px; background: var(--brand-primary); pointer-events: none; animation: focus-dash var(--dur-fast) var(--ease-out); }
button:focus-visible::after { left: calc(50% - 8px); bottom: 5px; background: var(--brand-ink); }
.reveal summary:focus-visible::after { left: 8px; bottom: 4px; }
@keyframes focus-dash { from { opacity: 0; transform: scaleX(.4); } }
img, iframe { display: block; max-width: 100%; }
iframe { width: 100%; min-height: 220px; border: 0; background: #0c0e12; }
.neutral { background: var(--surface); }
/* A native document's own submit button (the start form, the certificate download) takes the lesson's primary
   button metrics; the global recipe above stays as it is for everything the learner application renders. */
.page:not(.learn-workspace) button:not(.button) {
  min-height: var(--control-h); padding: 0 14px; font: var(--type-body-strong);
}

/* Neutral recovery keeps the page-title role; learning/editorial titles retain their own composition. */
.page:not(.certificate, .verification, .learn-workspace) > h1,
.page:not(.certificate, .verification, .learn-workspace) > .step > h1:not(.step__title) {
  margin: 0 0 var(--space-6); color: var(--text-1); font: var(--type-title-1);
}
.page:not(.certificate, .verification, .learn-workspace) > h1 + p,
.page:not(.certificate, .verification, .learn-workspace) > .step > h1:not(.step__title) + p {
  margin: 0; font: var(--type-body-lg);
}

/* Standalone certificate documents use the shared reading and label roles without inheriting
   browser definition-list indentation. Dynamic facts wrap within the document at every width. */
.page:is(.certificate, .verification) {
  font: var(--type-body-lg); overflow-wrap: anywhere;
}
.page:is(.certificate, .verification) h1 {
  margin: 0 0 var(--space-6); color: var(--text-1); font: var(--type-title-1);
}
.page:is(.certificate, .verification) p { margin: 0 0 var(--space-3); line-height: var(--lh-16); }
.page:is(.certificate, .verification) .eyebrow { margin-bottom: var(--space-4); }
.page:is(.certificate, .verification) dl { margin: var(--space-6) 0; }
.page:is(.certificate, .verification) dt {
  color: var(--text-2); font: var(--type-label);
}
.page:is(.certificate, .verification) dd { margin: 0 0 var(--space-3); color: var(--text-1); }
@media (min-width: 600px) { .page { padding: 56px 24px 80px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, ::backdrop { transition-duration: 0ms !important; transition-delay: 0ms !important; animation-duration: 0ms !important; } }
@media print {
  :root { color: #0c0e12; background: #fefefe; }
  .page { width: 100%; padding: 0; }
  .block { color: #0c0e12; break-inside: avoid; }
  /* A tone keeps its tint on paper, since no rule stands in for it; plain blocks print on white. */
  .block:not(.tone-callout, .tone-example, .tone-warning, .tone-takeaway) { background: var(--surface); }
  .tone-callout, .tone-example, .tone-warning, .tone-takeaway, .reveal > p { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  button { color: #0c0e12; background: #fefefe; border: 1px solid #0c0e12; box-shadow: none; }
  a { color: #0c0e12; text-decoration: underline; }
  .reveal::details-content { content-visibility: visible; display: block; }
}
@media (forced-colors: active), print { .answer input { appearance: auto; } }

/* The lesson shell: the console's stable course sidebar, an inset level-1 header and the step as the scroller.
   The native checkbox works under the welcome/review policies; sibling selectors move both desktop surfaces.
   Narrow screens keep the document scroller and native popover drawer. No authored inline styles are needed. */
.learn-root { background: var(--bg); scrollbar-gutter: stable; scroll-padding-top: 64px; }
.learn-page {
  --accent-mark: color-mix(in srgb, var(--brand-primary) 32%, #fff);
  /* The reading ladder (rulebook §7): the display rungs the learning material uses and the UI never does, each
     declared once here and stepped up once from 640 px. Heading, reading body and reading small are the UI's
     title 3, body large and body tokens. Tracking has two values: titles at -0.02em, display at -0.035em. */
  --title-size: 24px; --title-line: 30px;
  --display-size: 32px; --display-line: 36px;
  --statement-size: 26px; --statement-line: 36px;
  --subhead-size: 20px; --subhead-line: 28px;
  --lead-size: 18px; --lead-line: 28px;
  --track-title: -0.02em; --track-display: -0.035em;
  margin: 0; background: var(--bg); color: var(--text-2); font: var(--type-body-lg); }
.learn-page .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.learn-page svg { flex: none; }
/* Quiet native scrollbars (rulebook §10); forced colours retain platform styling. */
@media not (forced-colors: active) {
  /* Modern engines retain the platform's overlay/classic policy. WebKit's custom scrollbar
     pseudo-elements can consume space only after overflow, even with a stable gutter. */
  @supports (scrollbar-width: thin) {
    .learn-root, .learn-page * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }
    .learn-root:hover, .learn-page :hover { scrollbar-color: var(--scrollbar-thumb-hover) transparent; }
  }
  @supports not (scrollbar-width: thin) {
    .learn-root::-webkit-scrollbar, .learn-page ::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
    .learn-root::-webkit-scrollbar-track, .learn-root::-webkit-scrollbar-corner,
    .learn-page ::-webkit-scrollbar-track, .learn-page ::-webkit-scrollbar-corner { background: transparent; }
    .learn-root::-webkit-scrollbar-thumb, .learn-page ::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: var(--radius-full); background: var(--scrollbar-thumb) padding-box; }
    .learn-root::-webkit-scrollbar-thumb:hover, .learn-page ::-webkit-scrollbar-thumb:hover { border-width: 1px; background-color: var(--scrollbar-thumb-hover); }
    .learn-root::-webkit-scrollbar-thumb:active, .learn-page ::-webkit-scrollbar-thumb:active { border-width: 1px; background-color: var(--scrollbar-thumb-active); }
  }
}

/* The skip link: out of sight until it takes keyboard focus, then a raised control over the bar. */
.skip-link { position: fixed; left: 8px; top: 8px; z-index: 20; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--elev-2), var(--focus-glow); color: var(--text-1); font: var(--type-body-strong); text-decoration: none; }
.skip-link:not(:focus) { width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; box-shadow: none; }
.skip-link:focus-visible { border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; }
.skip-link:focus-visible::after { content: ''; position: absolute; left: calc(50% - 8px); bottom: 5px; width: 16px; height: 2px; border-radius: 1px; background: var(--brand-primary); pointer-events: none; animation: focus-dash var(--dur-fast) var(--ease-out); }

/* The customer identity is shared by the desktop rail, the narrow drawer and the certificate page. */
.brand-logo { display: block; max-width: 100%; max-height: 32px; margin: 0; object-fit: contain; }
.learn-bar__name { margin: 0; overflow: hidden; color: var(--text-1); font: var(--type-name); text-overflow: ellipsis; white-space: nowrap; }
.learn-menu { display: none; }
.learn-rail, .learn-nav__toggle { display: none; }

/* The header and step share the same 720 px column and inset; the header is outside the desktop scroller. */
.learn-workspace { min-width: 0; background-color: var(--bg); }
.learn-header-zone { padding: 16px 16px 0; }
.learn-header { position: relative; width: min(100%, 720px); margin-inline: auto; padding: 12px 20px 8px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--elev-2); }
/* The title is the overview's trigger: a bare text button, the card's own ink, its focus the 16 px dash under it. */
.learn-header__module { display: block; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-1); font: inherit; text-align: start; cursor: pointer; anchor-name: --module-title; }
.learn-header__module:is(:hover, :active, :focus-visible) { background: none; box-shadow: none; }
/* Text-only lesson controls mirror the console's colour-only convention; sidebar rows retain their fill. */
:is(.learn-header__module, .skip-link) {
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard);
}
@media (hover: hover) {
  :is(.learn-header__module, .skip-link):hover { color: var(--text-hover); text-decoration: none; }
}
.learn-header__module:focus-visible::after { left: 0; bottom: -2px; background: var(--brand-primary); }
.learn-header__name { font: var(--type-title-3); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; }
.learn-main:focus { outline: none; }
/* Focus the shell moves to a step's heading, the error summary or a status is programmatic: no browser ring
 * (Safari drew one around step titles), and nothing that only a script focuses is ever boxed. Keyboard focus keeps
 * its elevation styling above; the transparent outline is for forced colours alone. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
:focus:not(:focus-visible) { outline: none; }
.learn-content { width: min(100% - 32px, 720px); margin-inline: auto; padding: 16px 0; }
/* The module's stored completion as the console's corner badge (`.link-tile__badge`): the tone's glyph on a 24 px
   surface disc, 8 px outside the card's upper-right corner, at J1 — round, the named exception class. */
.lesson-status { position: absolute; top: -8px; right: -8px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border-radius: var(--radius-full); background: var(--surface); box-shadow: var(--elev-1); color: var(--on-track-fg); }
/* The overview: a floating panel (lg, J3, the overlay surface) under the title, inside the viewport on every width.
   Without anchor positioning it keeps the platform's centred popover. */
.module-overview { width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 480px); overflow: auto; padding: var(--space-3) var(--space-4) var(--space-4); border: 0; border-radius: var(--radius-lg); background: var(--surface-overlay); box-shadow: var(--elev-3); color: var(--text-2); font: var(--type-body); }
@supports (anchor-name: --a) {
  .module-overview { position-anchor: --module-title; inset: auto; margin: 8px 16px 0 0; position-area: bottom span-right; justify-self: start; position-try-fallbacks: flip-inline; }
}
.module-overview::backdrop { background: transparent; }
.module-overview__head { display: flex; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-2); }
/* The title's first line centres on the 32 px close button beside it. */
.module-overview__title { flex: 1 1 auto; margin: var(--space-1) 0 0; color: var(--text-1); font: var(--type-title-3); overflow-wrap: anywhere; }
.module-overview__close { flex: none; display: grid; place-items: center; width: var(--icon-button); height: var(--icon-button); min-height: 0; margin: 0 -8px 0 0; padding: 0; border-radius: var(--radius-sm); background: none; box-shadow: none; color: var(--text-2); }
.module-overview__close:focus-visible { background: var(--surface-overlay-hover); box-shadow: none; }
.module-overview__close:focus-visible::after { width: 12px; left: calc(50% - 6px); bottom: 4px; background: var(--brand-primary); }
@media (hover: hover) { .module-overview__close:hover { background: var(--surface-overlay-hover); box-shadow: none; } }
.module-overview__close:active { background: var(--surface-pressed); box-shadow: none; }
.module-overview p { margin: 0 0 var(--space-2); }
/* The application renders the step list as an `ol`; the indent is the grid's, never the browser's 40 px. */
.module-overview :is(ul, ol) { margin: 0 0 var(--space-2); padding-left: var(--space-5); }
.module-overview li + li { margin-top: var(--space-1); }
.module-overview > :last-child { margin-bottom: 0; }

/* Lesson segments are positions — earlier, current, later — and never completion. The baseline's 4 px bars
   keep their 4 px visual gaps inside abutting hit targets. Unpositioned controls anchor tooltips to the card;
   grid layers keep the bar and the bottom focus dash inside each target without changing its dimensions. */
.stepper { margin-top: 8px; min-width: 0; }
.segments { display: flex; margin: 0 -2px; padding: 0; list-style: none; }
.segments > li { flex: 1 1 0; min-width: 0; }
.segment { display: grid; place-items: center; width: 100%; height: 28px; text-decoration: none; --segment-fill: var(--surface-3); }
.segment::before { content: ''; grid-area: 1 / 1; width: calc(100% - 4px); height: 4px; border-radius: var(--radius-xs); background: var(--segment-fill); transition: background-color var(--dur-fast) var(--ease-standard); }
.segment.is-before { --segment-fill: var(--accent-mark); }
.segment.is-later { --segment-fill: var(--surface-3); }
.segment.is-current { --segment-fill: var(--brand-primary); }
@media (hover: hover) { a.segment:hover::before { background: color-mix(in srgb, var(--segment-fill) 88%, #000); } }
a.segment:active::before { background: color-mix(in srgb, var(--segment-fill) 80%, #000); }
.learn-page a.segment:focus-visible { border-radius: 0; background: none; text-decoration: none; }
a.segment:focus-visible::after { content: ''; grid-area: 1 / 1; align-self: end; width: 16px; height: 2px; border-radius: 1px; background: var(--brand-primary); pointer-events: none; animation: focus-dash var(--dur-fast) var(--ease-out); }
@media (pointer: coarse) { .segment { height: 44px; } }
/* A tooltip is the console's (components.css, the hover card): the small role, 13/18 at 400, in an 8/12 inset. */
.step-tooltip, .rail-tooltip { display: none; position: absolute; z-index: 30; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-overlay); box-shadow: var(--elev-3); color: var(--text-1); font: var(--type-small); white-space: normal; pointer-events: none; }
.step-tooltip { opacity: 0; right: 8px; top: calc(100% + 8px); width: max-content; max-width: min(320px, 100% - 16px); transition: opacity var(--dur-base) var(--ease-out), display var(--dur-base) allow-discrete; }
.segment:focus-visible .step-tooltip { display: block; opacity: 1; }
@media (hover: hover) { .segment:hover .step-tooltip { display: block; opacity: 1; transition-delay: var(--delay-tooltip); } }
.segment:focus-visible .step-tooltip { transition-delay: 0s; }
/* One title at a time: they share one place under the card, so keyboard focus silences a hovered neighbour's. */
.segments:has(.segment:focus-visible) .segment:not(:focus-visible) .step-tooltip { display: none; transition: none; }
@starting-style { .segment:is(:hover, :focus-visible) .step-tooltip { opacity: 0; } }
@media (max-width: 639.98px) { .step-tooltip { left: 16px; right: 16px; width: auto; max-width: none; } }
/* Where anchor positioning exists the title stands under its own segment, centred on it and shifted only as far as
   keeps it 16 px inside the viewport. */
@supports (anchor-name: --a) and (anchor-scope: --a) {
  .segments > li { anchor-scope: --segment; }
  .segment { anchor-name: --segment; }
  .step-tooltip { position: fixed; position-anchor: --segment; inset: auto; margin: 8px 16px 0; position-area: bottom span-all; justify-self: anchor-center; width: max-content; max-width: min(320px, 100vw - 32px); }
}
/* Console geometry: one static header and heading, only the chronological list scrolls. The row marker's left
   edge stays at 20 px (its 24 px centre matches the console's 20 px icon at 22 px) through the width animation. */
/* The sidebar sits on the chrome, one step below the content card; its items hover one step darker still. */
.learn-nav { --rail-inset: 8px; --surface-hover: var(--chrome-hover); margin: 0; padding: 0; border: 0; background: var(--chrome); color: var(--text-2); }
.learn-nav__header { position: relative; display: flex; align-items: center; justify-content: flex-end; flex: none; height: 64px; padding: 8px var(--rail-inset) 0; }
/* The identity as the console wears it: the logo (at most 24 px tall, never cropped) and the caption on one line,
   centred on the same axis as the toggle throughout the width transition. */
.learn-nav__identity { position: absolute; top: 8px; bottom: 0; left: calc(var(--rail-inset) + 8px); right: calc(var(--rail-inset) + 56px); display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.learn-nav__identity .brand-logo { flex: 0 1 auto; min-width: 40px; max-height: 24px; object-fit: contain; }
/* Before the start the identity is text; it shares the logo row without loading an image. The name and the caption
   both shrink, each in proportion to its own length, and each ends in an ellipsis inside its own box: the caption is
   capped at half the row and keeps at least 3 characters, so neither text ever reaches the toggle or the other. */
.learn-nav__identity .learn-bar__name { flex: 0 1 auto; min-width: 0; }
.learn-nav__caption { flex: 0 1 auto; min-width: 3ch; max-width: 50%; margin: 0; overflow: hidden; color: var(--text-3); font: var(--type-caption); letter-spacing: var(--track-caption); text-overflow: ellipsis; white-space: nowrap; }
.learn-nav__history { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; padding: 8px 0; }
/* Where there is a pointer, the list's scrollbar shows only while it is over the sidebar or the keyboard is inside
   the list; at rest the gutter is reserved and empty, so a thumb appearing or going moves nothing. In an engine with
   classic scrollbars the reserved gutter lies beside the rows and takes its width from them once, constantly; the
   marks keep their place whether or not the list overflows. A touch device without hover keeps the thin scrollbar
   in view, as the one sign that the drawer's list scrolls. */
/* Safari supports `scrollbar-width` but keeps the platform's overlay scrollbar under it, which reserves no gutter
   and is painted over the rail markers' badges. There the list wears a 2 px WebKit scrollbar in the outermost part of
   the inset instead: the list gives up those 2 px of its end inset, so the rows keep their place and both insets
   stay equal, and the scroller always shows its track, so the rows do not move when the list starts to overflow.
   `hanging-punctuation` is implemented by WebKit alone, and names the engine. */
@media not (forced-colors: active) {
  @supports (scrollbar-width: thin) and (hanging-punctuation: first) {
    .learn-page .learn-nav__history, .learn-page .learn-nav__history:hover { overflow-y: scroll; scrollbar-width: auto; scrollbar-color: auto; }
    .learn-nav__history::-webkit-scrollbar { width: 2px; }
    .learn-nav__history::-webkit-scrollbar-track, .learn-nav__history::-webkit-scrollbar-corner { background: transparent; }
    .learn-nav__history::-webkit-scrollbar-thumb { border-radius: var(--radius-full); background: var(--scrollbar-thumb); }
    .learn-nav__history .module-list { padding-inline-end: calc(var(--rail-inset) - 2px); }
  }
}
@media (hover: hover) and (not (forced-colors: active)) {
  @supports (scrollbar-width: thin) and (not (hanging-punctuation: first)) {
    .learn-nav__history, .learn-nav__history:hover { scrollbar-color: transparent transparent; transition: scrollbar-color var(--dur-fast) var(--ease-standard); }
    .learn-nav:hover .learn-nav__history, .learn-nav:focus-within .learn-nav__history { scrollbar-color: var(--scrollbar-thumb) transparent; }
    .learn-nav .learn-nav__history:hover { scrollbar-color: var(--scrollbar-thumb-hover) transparent; }
  }
  @supports (not (scrollbar-width: thin)) or (hanging-punctuation: first) {
    .learn-nav__history::-webkit-scrollbar-thumb { background-color: transparent; }
    .learn-nav:hover .learn-nav__history::-webkit-scrollbar-thumb, .learn-nav:focus-within .learn-nav__history::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); }
    .learn-nav .learn-nav__history::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }
  }
}
/* The region takes keyboard focus so arrow keys can scroll it; focused, it wears the hover fill, never a ring. */
.learn-nav__history:focus-visible { outline: none; background: var(--surface-hover); }
/* Both rail insets live inside the scroller; the scrollbar's gutter, always reserved, lies beside the rows and never
   over them or their hit targets. */
.module-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0 var(--rail-inset); list-style: none; }
.module-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 12px; border-radius: var(--radius-md); color: var(--text-2); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-standard); }
/* On the e-mail welcome a row it may open is its own continue form (ADR-0052): the button wears the row. */
.module-item-form { margin: 0; }
button.module-item { width: 100%; margin: 0; border: 0; background: none; box-shadow: none; font: inherit; text-align: start; cursor: pointer; }
button.module-item:is(:active, :focus-visible) { box-shadow: none; }
button.module-item:active { background: var(--surface-hover); }
/* The marker is a 6 px rounded square (the small radius); its fill darkens on hover. */
.module-item__mark { --mark-fill: var(--surface-hover); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--mark-fill); font: var(--type-caption); letter-spacing: var(--track-caption); transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out), margin var(--dur-slow) var(--ease-out), border-radius var(--dur-slow) var(--ease-out); }
.module-item__mark.is-completed { --mark-fill: var(--on-track-tint); color: var(--on-track-fg); }
/* Every row wears its number; a state is a corner badge, never a replacement for it (revised 2026-10-14). A locked or
   expired module's marker is an available one's: the badge and the plain, inert row say it cannot be opened. */
.module-item__mark { position: relative; }
/* The badge is one SVG, its disc a circle in it (`corner-badge`); the shadow is the round box's, as the console's. */
.module-item__badge { position: absolute; top: -6px; right: -9px; display: block; width: 16px; height: 16px; overflow: visible; border-radius: var(--radius-full); box-shadow: var(--elev-1); color: var(--text-3); }
.module-item__badge-disc { fill: var(--surface); }
.module-item__mark.is-completed .module-item__badge { color: var(--on-track-fg); }
/* Selection is the marker's fill, never weight; a completed title is dimmed a step, selected or not. */
.module-item:has(.module-item__mark.is-completed) .module-item__name { color: var(--text-2); }
:is(a, button).module-item:focus-visible .module-item__mark { background: color-mix(in srgb, var(--mark-fill) 90%, var(--text-1)); }
@media (hover: hover) { :is(a, button).module-item:hover .module-item__mark { background: color-mix(in srgb, var(--mark-fill) 90%, var(--text-1)); } }
/* The 8% brand mix preserves the status ink's 4.5:1 floor even with black as the primary. */
:is(a, button).module-item:not([aria-current]):focus-visible .module-item__mark.is-completed { background: color-mix(in srgb, var(--mark-fill) 92%, var(--brand-primary)); }
@media (hover: hover) { :is(a, button).module-item:not([aria-current]):hover .module-item__mark.is-completed { background: color-mix(in srgb, var(--mark-fill) 92%, var(--brand-primary)); } }
.module-item__text { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
/* A module's name is a navigation item's label, body strong as the console's (backlog item 42). */
.module-item__name { display: block; overflow: hidden; color: var(--text-1); font: var(--type-body-strong); text-overflow: ellipsis; }
/* The state line and the marker's number are the caption role, as the console's sidebar caption. */
.module-item__state { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font: var(--type-caption); letter-spacing: var(--track-caption); }
/* The current module wears the header stepper's current segment: the brand fill, the marker its only layer. */
.module-item[aria-current] .module-item__mark { --mark-fill: var(--brand-primary); color: var(--brand-ink); }
/* Use the primary hover fill whose derived ink the shared contrast model checks. */
:is(a, button).module-item[aria-current]:focus-visible .module-item__mark { background: var(--accent-hover); }
@media (hover: hover) {
  :is(a, button).module-item[aria-current]:hover .module-item__mark { background: var(--accent-hover); }
  :is(a, button).module-item:hover { background: var(--surface-hover); }
}
/* The language switch: a module row's geometry below the list, never scrolling with it. Its flag is the switch's one
   visible surface, a disc on the rail's axis at every width, and only its label folds away with the rail. The row
   keeps the hit target but takes no fill: hover lifts the disc, a press darkens it in place, and keyboard focus lifts
   it with the glow and sets the focus dash under it. */
.learn-nav__footer { flex: none; padding: 8px var(--rail-inset); }
/* The flag beside its name is a marker's size, so the switch sits in the list's proportion (backlog item 42). */
.learn-lang { --flag-scale: .6; }
.learn-nav a.learn-lang:is(:hover, :focus-visible, :active) { background: none; }
.learn-nav a.learn-lang:focus-visible::after { content: none; }
.learn-lang:focus-visible .module-item__name { color: var(--text-1); }
@media (hover: hover) { .learn-lang:hover .module-item__name { color: var(--text-1); } }
/* A fixed slot owns layout; only the full-size vector artwork is composited during rail motion. */
.learn-lang__flag { position: relative; flex: none; width: 24px; height: 24px; }
.learn-lang__art { position: absolute; left: 50%; top: 50%; display: block; width: 40px; height: 40px; border-radius: 25%; box-shadow: var(--elev-1); transform: translate(-50%, -50%) scale(var(--flag-scale, .6)); transform-origin: center; will-change: transform; transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-fast) var(--ease-standard); }
.learn-lang__art > svg { display: block; width: 100%; height: 100%; border-radius: 25%; }
.learn-lang__art::before { content: ''; position: absolute; inset: 0; border-radius: 25%; background: transparent; pointer-events: none; transition: background-color var(--dur-fast) var(--ease-standard); }
@media (hover: hover) { .learn-lang:hover .learn-lang__art { box-shadow: var(--elev-2); } }
.learn-lang:focus-visible .learn-lang__art { box-shadow: var(--elev-2), var(--focus-glow); }
.learn-lang:focus-visible .learn-lang__art::after { content: ''; position: absolute; left: calc(50% - 6px); top: calc(100% + 4px); width: 12px; height: 2px; border-radius: 1px; background: var(--brand-primary); pointer-events: none; animation: focus-dash var(--dur-fast) var(--ease-out); }
.learn-lang:active .learn-lang__art { box-shadow: var(--elev-1); }
.learn-lang:active .learn-lang__art::before { background: rgba(16, 24, 40, 0.16); transition-duration: var(--dur-instant); }
/* The step: one white card at level 1 holding one authored section, its title the page's h1. Blocks inside it are
   not cards: plain content sits on the card, a tone keeps its tint as a notice does (rulebook §9, no card in a card). */
.step { --control-fill: var(--control-on-card); padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--elev-1); }
.step__title { margin: 0 0 var(--space-5); color: var(--text-1); font-size: var(--title-size); line-height: var(--title-line); font-weight: var(--weight-semibold); letter-spacing: var(--track-title); overflow-wrap: anywhere; }
.learn-page .step .block { --holder: #fefefe; --holder-below: var(--bg); margin: 0 0 var(--space-5); padding: 0; background: none; border-radius: 0; }
.learn-page .step .block:last-child { margin-bottom: 0; }
.learn-page .step .block.continues { margin-top: calc(-1 * var(--space-2)); padding-top: 0; }
/* Every tinted panel in the material — a tone block, the tip — takes one inset. */
.learn-page .step :is(.tone-callout, .tone-example, .tone-warning, .tone-takeaway) { padding: var(--space-5); border-radius: var(--radius-md); }
/* The card's plain-block reset must not erase a tone: the brand tints at the weights the contrast model measures. */
.learn-page .step :is(.tone-callout, .tone-example, .tone-warning, .tone-takeaway).continues { margin-top: calc(-1 * var(--space-5)); border-radius: 0 0 var(--radius-md) var(--radius-md); padding-top: 0; }
.learn-page .step :is(h2, h3) { margin: 0 0 var(--space-2); }
.learn-page .step p { margin: 0 0 12px; line-height: 24px; }
.learn-page .step p:last-child { margin-bottom: 0; }
/* One text list in every lesson place (an authored block, the welcome's contents, the practice areas): body copy on
   the 24 px line, 8 px between items. Lists that are components (feedback, the check's cards) set their own. */
.learn-page .step :is(ul, ol):not(.feedback-list, .feedback__items, .assessment-items, .points) { margin: 0 0 12px; padding-left: 24px; line-height: 24px; }
.learn-page .step :is(ul, ol):not(.feedback-list, .feedback__items, .assessment-items, .points) > li + li { margin-top: 8px; }
.learn-page .step .reveal { margin-top: var(--space-3); }
.learn-page .step .reveal > p { background: var(--surface); }
.learn-page .step .block strong { color: var(--text-1); }
/* The face has no 700: emphasis in the material is the semibold the type ladder uses. */
.learn-page .step strong { font-weight: var(--weight-semibold); }

/* THE LESSON'S TYPE SCALE: the reading ladder (rulebook §7), its display rungs declared once on `.learn-page`.
   Title — the step's h1 and the attention notice's heading (24/30, 30/36 from 640 px). Display — the field guide's
   and the video's headline (32/36, 40/44). Statement — the intro's lead (26/36, 30/40). Subhead — a field-guide
   point's label (20/28). Lead — the video's intro (18/28). Heading — every other heading inside a step: a block's,
   a callout's, a question's legend and prompt (16/24, 600). Body — inherited 16/24 at 400, 12 px between
   paragraphs. Small — a caption, the running time, a system status line, the draft notice (14/20, 400), and at 500
   the tip's label and a verdict. The opening's eyebrow (12/20, 600, uppercase) is the one uppercase exception. */
.learn-page .step :is(h2, h3, legend), .learn-page .notice__text > h2, .learn-page .assessment-card__prompt,
.learn-page .feedback__question { color: var(--text-1); font: var(--type-title-3); }
.learn-page .step :is(.draft-notice, p[role="status"]),
.learn-page .illustration > figcaption { font: var(--type-body); }
.learn-page .step .feedback__verdict { font: var(--type-body-strong); }
/* The tip's label is its card's heading (the material card header below). */
/* A tip is one line: its label runs into its words ("Tip: …"), the bulb on the right at the markers' 32 px. */
.learn-page .step .tip__label { display: inline; color: var(--text-1); font-weight: var(--weight-semibold); }
.learn-page .step .tip__label::after { content: ":\00a0"; }
.learn-page .step .tip__label + p { display: inline; }

/* THE LESSON'S MATERIAL, ONE HIERARCHY (operator 2026-10-20). Every step is headed by its title at the title
   role; nothing inside a step outranks it. Reading copy keeps the rulebook's measure. Structure, not lesson ids,
   selects the compositions below. */
/* Reading copy keeps its measure; lists of cards (the points, a quiz's items) run the card's full width. */
.learn-page .step :is(p, ul, ol):not(.points, .assessment-items) { max-width: 68ch; }
.learn-page .step .block > * + .notice--attention { margin-top: var(--space-5); }
/* A plain list in the material marks each item with a small square in the brand ink — the numbered points'
   marker in miniature — and gives items room to be scanned one by one. */
.learn-page .step .block ul:not(.feedback-list, .feedback__items, .assessment-items) { padding-left: 0; list-style: none; }
.learn-page .step .block ul:not(.feedback-list, .feedback__items, .assessment-items) > li { position: relative; padding-left: var(--space-6); }
.learn-page .step .block ul:not(.feedback-list, .feedback__items, .assessment-items) > li + li { margin-top: var(--space-3); }
.learn-page .step .block ul:not(.feedback-list, .feedback__items, .assessment-items) > li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 1px; background: var(--brand-primary); }

/* The attention callout: a block's warning and an incident block ("Už jste…?"). The serious status tint, flat
   on its holder like every tinted section, the triangle-alert glyph itself large in the dark serious red, without a
   tile, then the statement at the heading role over its explanation. */
.learn-page .step :is(.notice--attention, .callout) { margin: 0; padding: var(--space-5); border-radius: var(--radius-md); background: var(--serious-tint); color: var(--text-1); }
.learn-page .step :is(.notice--attention .notice__icon, .callout__icon) { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 0; background: none; color: var(--serious-fg); box-shadow: none; }
.learn-page .step :is(.notice--attention .notice__icon, .callout__icon) > svg { width: 36px; height: 36px; stroke-width: 2; }
/* An incident's action line ("Kam problém nahlásit: …") stands apart from its explanation: a white inset under its
   bold lead, the one place the card says where to turn. */
.learn-page .step .role-incident .callout__text > p:has(> strong:first-child) { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface); }

/* THE MATERIAL CARD HEADER (operator 2026-10-20). A card that carries a marker — a point's number, a callout's
   triangle, the tip's bulb — is headed by its title at the upper left with the marker at the upper right, and its
   body below at the full width. One two-column grid for every such card: the title's box is at least the marker's
   height and centres a one-line title on it, a long title wraps beside the marker, and the words' wrapper takes no
   box of its own so the title and the body are the grid's own rows. */
.learn-page .step :is(.notice--attention, .callout, .point, .step > .tip, .block > .tip, .editorial-art > .tip) { --marker: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); row-gap: var(--space-3); align-items: start; }
.learn-page .step .point { --marker: var(--point-chip); }
.learn-page .step :is(.step > .tip, .block > .tip, .editorial-art > .tip) { --marker: 32px; }
.learn-page .step :is(.step > .tip, .block > .tip, .editorial-art > .tip) .tip__text { display: block; grid-column: 1; grid-row: 1; align-self: center; }
.learn-page .step :is(.notice--attention .notice__text, .callout__text) { display: contents; }
.learn-page .step :is(.notice--attention .notice__icon, .callout__icon, .point__index, .step > .tip > svg, .block > .tip > svg, .editorial-art > .tip > svg) { grid-column: 2; grid-row: 1; }
.learn-page .step :is(.notice--attention .notice__text > h2, .callout__text > h2, .point__label) { display: flex; align-items: center; grid-column: 1; grid-row: 1; min-height: var(--marker); margin: 0; }
.learn-page .step :is(.notice--attention .notice__text > :not(h2), .callout__text > :not(h2), .point > :not(.point__index, .point__label)) { grid-column: 1 / -1; margin: 0; }

/* A scenario is one card with two faces, the situation and its solution, on the example tint. A compact switch —
   the console's segmented control: a quiet track, the chosen option a raised white thumb in primary ink — turns the
   card, which grows or shrinks to the face it shows; the face being left fades out as the other fades in. Native
   radios carry the choice: the stylesheet
   shows the face the checked one names, the situation when none is. */
.learn-page .step .scenario { padding: var(--space-5); border-radius: var(--radius-md); background: color-mix(in srgb, var(--text-1) var(--tint-neutral), var(--holder)); }
.scenario__switch { position: relative; display: inline-flex; gap: 2px; margin: 0 0 var(--space-4); padding: 2px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--text-1) var(--tint-soft), var(--holder)); }
.scenario__choice { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.scenario__option { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--text-2); font: var(--type-body-strong); cursor: pointer; transition: background-color var(--dur-slow) var(--ease-in-out), color var(--dur-slow) var(--ease-in-out), box-shadow var(--dur-slow) var(--ease-in-out); }
@media (hover: hover) { .scenario__option:hover { color: var(--text-1); transition-duration: var(--dur-fast); } }
.scenario:not(:has(.scenario__choice[value="solution"]:checked)) .scenario__option[for$="-situation"],
.scenario:has(.scenario__choice[value="solution"]:checked) .scenario__option[for$="-solution"] { background: var(--surface); color: var(--text-1); box-shadow: var(--elev-1); }
.scenario__choice:focus-visible + .scenario__option { box-shadow: var(--elev-2), var(--focus-glow); }
/* Only the shown face is in the layout, so the card is exactly as tall as what it holds and leaves no empty space
   under a short story; the other face lies over it, invisible, still measured, and `learner.scenario` animates the
   card's height from one to the other as it turns. */
.scenario__faces { position: relative; }
.scenario__face { transition: opacity var(--dur-base) var(--ease-out), visibility 0s; }
.scenario__face--solution, .scenario:has(.scenario__choice[value="solution"]:checked) .scenario__face--situation { position: absolute; inset: 0 0 auto; visibility: hidden; opacity: 0; transition-delay: 0s, var(--dur-base); }
.scenario:has(.scenario__choice[value="solution"]:checked) .scenario__face--solution { position: static; visibility: visible; opacity: 1; transition-delay: var(--dur-fast), 0s; }

/* Editorial art stands alone under the words it accompanies: no board, no caption, its box reserved by its size. */
.learn-page .step .editorial-art { margin: var(--space-6) 0; }
.learn-page .step .editorial-art > img { display: block; width: 100%; height: auto; }

/* An incident card — what to do when it already happened — is the attention callout in the behind (orange)
   status: its tint, and the same bare triangle in the solid orange. */
.learn-page .step .role-incident .callout { background: var(--status-behind-tint); }
.learn-page .step .role-incident .callout__icon { color: var(--status-behind-solid); }

/* On a phone the panels keep their words wide: one 16 px inset and a 12 px gap beside the marker or tile. */
@media (max-width: 639.98px) {
  .learn-page .step :is(.notice--attention, .callout, .point, .scenario) { padding: var(--space-4); }
  .learn-page .step :is(.notice--attention, .callout, .point) { column-gap: var(--space-3); }
  .learn-page .step .point { column-gap: var(--space-3); }
}

/* A tip that opens a block (the summary's takeaway) stands above the block's words. */
.learn-page .step .block > .tip { margin: 0 0 var(--space-5); }

/* Labelled paragraphs form a numbered sequence: each point a neutral-tint panel led by a compact square marker
   holding a plain figure, its label at the heading role. */
.points { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.point { --point-chip: 32px; padding: var(--space-5); border-radius: var(--radius-md); background: color-mix(in srgb, var(--text-1) var(--tint-neutral), var(--holder)); }
/* The marker's figure is part of the sequence, not a role: the reading small size at 600, tabular, centred. */
/* Words a block writes after its points (course version 10 on) stand under the list at the rhythm between blocks. */
.learn-page .step .points + p { margin-top: var(--space-5); }
.point__index { display: grid; place-items: center; width: var(--point-chip); height: var(--point-chip); border-radius: var(--radius-xs); background: var(--brand-primary); color: var(--brand-ink); font-size: var(--text-14); line-height: 1; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
/* The sequence's feature: the point carrying editorial art takes the callout tint, and its art stands alone just
   before it, outside the cards, with no board of its own. */
.learn-page .step .point--feature { background: color-mix(in srgb, var(--brand-secondary) var(--tint-soft), var(--holder)); }
.learn-page .step .points__art > .editorial-art { margin: 0; }
/* A version that draws a point shows the drawing under the point's words, inside its panel. */
.point > .illustration { margin: 0; }
.point > .illustration > svg { margin-inline: 0; }
.point > .illustration > figcaption { text-align: left; }

/* The video step: the video's title is the step's heading, its intro a short lead with the running time beneath as
   small print; the player and the still both keep a 16:9 box at every width. */
.learn-page .step--video .video__title { max-width: 560px; margin: 0 0 var(--space-4); }
.video__intro { max-width: 560px; }
.learn-page .step :is(iframe, .learner-media-placeholder) { min-height: 0; height: auto; aspect-ratio: 16 / 9; margin-top: var(--space-5); border-radius: var(--radius-md); }
.learn-page .step .video__actions { margin: var(--space-3) 0 0; font: var(--type-body); }
.learn-page .step .video__intro > p:first-child:not(.video__duration) { margin: 0; color: var(--text-1); font-size: var(--lead-size); line-height: var(--lead-line); }
/* A video step's headline carries the running time after its title, quieter than the words it follows. */
.learn-page .step .step__length { margin-left: .3em; color: var(--text-3); font-weight: var(--weight-regular); font-variant-numeric: tabular-nums; white-space: nowrap; }
.learn-page .step .video__duration { margin: var(--space-2) 0 0; color: var(--text-2); font: var(--type-body); font-variant-numeric: tabular-nums; }
.video-still { margin: var(--space-6) 0 0; padding: var(--space-2); border-radius: var(--radius-lg); background: var(--text-1); box-shadow: var(--elev-2); }
.video-still > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-md); object-fit: cover; }

/* The tip is the light counterweight to the warning: the tone blocks' tint and inset, its label in sentence case
   at the reading small role (14/20, 500, secondary ink, above), its body at the shared reading size. */
.learn-page .step :is(.step > .tip, .block > .tip, .editorial-art > .tip) { margin-top: 0; padding: var(--space-5); border-radius: var(--radius-md); background: color-mix(in srgb, var(--brand-secondary) var(--tint-soft), var(--surface)); color: var(--text-1); }
.learn-page .step :is(.step > .tip, .block > .tip, .editorial-art > .tip) > svg { box-sizing: content-box; margin: 0; padding: 6px; border-radius: var(--radius-xs); background: var(--brand-primary); color: var(--brand-ink); }
/* An editorial picture's tip stands directly beneath it. */
.learn-page .step .editorial-art > .tip { margin-top: var(--space-3); }

/* THE SUMMARY'S OWN ELEMENTS (course version 10 on; rulebook §7, decided 2026-10-30). Each is drawn only where a
   version writes it, so no earlier version shows any of them. The key takeaway is the tip itself on the strong tint,
   the rulebook's takeaway strength, raised one elevation, so it reads as the step's one summary above the step's
   own tip, which follows it on the tips' usual soft tint. */
.learn-page .step .block > .tip--key { background: color-mix(in srgb, var(--brand-secondary) var(--tint-strong), var(--surface)); box-shadow: var(--elev-1); }
/* A real story to listen to: a panel on the example tint with the material's one inset, composed as the video
   step — its label at the reading small role, its title at the heading role, why it belongs here, the 16:9 player,
   then its source as the running time is shown, and the note. */
.learn-page .step .story { margin: var(--space-6) 0 0; padding: var(--space-5); border-radius: var(--radius-md); background: color-mix(in srgb, var(--text-1) var(--tint-neutral), var(--holder)); color: var(--text-1); }
.learn-page .step .story > * { margin: 0; }
.learn-page .step .story__label { color: var(--text-2); font: var(--type-body-strong); }
.learn-page .step .story__title { margin-top: var(--space-2); }
.learn-page .step .story__body { margin-top: var(--space-2); }
.learn-page .step .story > iframe { margin-top: var(--space-5); }
.learn-page .step :is(.story__meta, .story__note) { margin-top: var(--space-3); color: var(--text-2); font: var(--type-body); }
/* The next lesson's teaser is the step's quiet ending, no panel: a forward arrow in the tips' own primary mark beside
   the words, just above the step's own navigation. */
.learn-page .step .next-lesson { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-6) 0 0; color: var(--text-1); }
.learn-page .step .next-lesson > svg { flex: none; box-sizing: content-box; padding: 6px; border-radius: var(--radius-xs); background: var(--brand-primary); color: var(--brand-ink); }
.learn-page .step .next-lesson__text > * { margin: 0; }
@media (max-width: 639.98px) { .learn-page .step .story { padding: var(--space-4); } }

/* Notices (rulebook §9): the tone's tint, a 20 px tone icon, the sentence. */
.notice { display: flex; align-items: flex-start; gap: var(--space-3); margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); color: var(--text-1); }
.notice p { margin: 0; }
.notice--serious { background: var(--serious-tint); } .notice--serious svg { color: var(--serious-fg); }
.notice--info { background: var(--info-tint); } .notice--info svg { color: var(--info-fg); }
/* A block's warning ("Pozor: …"): the attention tint, its glyph on a white disc — a panel that stops the eye
   without the alarm of an error (operator 2026-10-18). */
.notice--attention { gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--attention-tint); }
.notice--attention .notice__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-top: -2px; border-radius: var(--radius-full); background: var(--surface); color: var(--text-1); box-shadow: var(--elev-1); }
.notice__icon { display: flex; flex: none; margin-top: 2px; }
.notice > svg { flex: none; margin-top: 2px; }
/* A notice's words are one block beside its icon: the heading above the explanation (`server.employee-pages.html/notice`). */
.notice__text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.notice__text > h2 { margin: 0; }
/* The step's tip: a flex row of its glyph and its words; the lesson's own treatment is under the opening above. */
.tip { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-6); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--chrome); color: var(--text-1); }
.tip > svg { flex: none; margin-top: 2px; color: var(--text-2); }
.tip__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }


/* Feedback after the one submission: correct or incorrect each with its icon and its word, never colour alone. */
.feedback-list { display: grid; gap: var(--space-5); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.feedback__verdict { display: inline-flex; align-items: center; gap: var(--space-2); }
.feedback--correct .feedback__verdict, .feedback__verdict.is-correct, .feedback__items .is-correct svg { color: var(--on-track-fg); }
.feedback--incorrect .feedback__verdict, .feedback__verdict.is-incorrect, .feedback__items .is-incorrect svg { color: var(--serious-fg); }
.feedback__key { color: var(--text-1); font-weight: 500; }
.feedback__explanation { color: var(--text-2); }
.feedback__items { display: grid; gap: var(--space-1); margin: var(--space-1) 0 var(--space-2); padding: 0; list-style: none; }
.feedback__items li { display: flex; align-items: flex-start; gap: var(--space-2); }
.feedback__items svg { margin-top: 5px; }
.next-step { margin-top: var(--space-5); }

/* The way on: one row for every step. The way back opens it at the start edge; the step's own acts (a check's
   submission, a reflection's skip and save) and the way on close it at the end edge, the one primary act last; full
   width on a phone. A link that is an action wears the button recipe (rulebook §9). */
/* A lesson illustration (`shared.lesson-illustration`): one marker style on one board, inline, its box reserved by
   its viewBox. The lesson's ink draws it, the brand colour marks the one point it makes, a quiet fill holds a surface;
   the caption is the figure's small print. */
.illustration { margin: var(--space-5) 0 var(--space-1); }
.illustration > svg { display: block; width: 100%; max-width: 400px; height: auto; margin-inline: auto; overflow: visible; }
.illustration .ill-line { fill: none; stroke: var(--text-1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illustration .ill-soft { fill: var(--chrome); stroke: none; }
.illustration .ill-accent { fill: var(--brand-secondary); stroke: none; }
.illustration .ill-ink-on-accent { fill: none; stroke: var(--brand-secondary-ink); stroke-width: 3; stroke-linecap: round; }
.illustration > figcaption { margin-top: var(--space-2); color: var(--text-2); text-align: center; }
.step-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-4); }
.step-nav > .button--secondary:first-child { margin-inline-end: auto; }
.step-nav__status { align-self: center; margin: 0; color: var(--text-2); }
/* The way on is its own card, the header card's twin at the foot (operator 2026-10-18): sticky at the bottom of the one
   scroller, so it stays in view while the step scrolls beneath it, and at the step's end it rests in flow under the
   last line, so nothing is ever left behind it. The content column fills the scroller, so on a short step the card
   stands at the bottom with the space above it. It fades the step out exactly as the header card does, mirrored:
   behind the card's surface (`::after`) its own layer (`::before`) holds the ground for `--fade-gap` above the card,
   fades it out over `--fade` beyond that — the header zone's 8 px gap and the scroller's 16 px mask on a desktop, the
   narrow header zone's 8 px fade with no gap — and holds the ground through the gap beneath, so no line shows below;
   it runs 16 px past the column on each side, over the step card's own shadow, within the narrowest page gutter.
   Both are the card's own layers, beneath its buttons; the scrollers' bottom scroll padding keeps a focused control
   clear of it. Native CSS alone: no script moves it. */
.learn-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.learn-content, .learn-content > form:has(> .step-nav) { flex: 1 0 auto; display: flex; flex-direction: column; }
.learn-content :has(+ .step-nav) { margin-bottom: 24px; }
.learn-content .step-nav { --nav-gap: 16px; --fade-gap: 8px; --fade: 16px; --control-fill: var(--bg); position: sticky; bottom: var(--nav-gap); z-index: 1; margin-top: auto; padding: 8px; }
.learn-content .step-nav::after { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--elev-2); pointer-events: none; }
.learn-content .step-nav::before { content: ''; position: absolute; z-index: -2; inset: calc(-1 * (var(--fade-gap) + var(--fade))) -16px calc(-1 * var(--nav-gap)); background: linear-gradient(to bottom, transparent, var(--bg) var(--fade)); pointer-events: none; }
.learn-page .button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); font: var(--type-body-strong); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.learn-page .button--primary { color: var(--brand-ink); background: var(--brand-primary); box-shadow: var(--elev-1-accent); }
/* A raised button is never its holder's own white: on a near-white card it takes the page ground beneath that card,
   its J1 shadow still lifting it — the console's rule (tokens.css, `--control-on-card`). */
.learn-page .button--secondary { color: var(--text-1); background: var(--control-fill, var(--surface)); box-shadow: var(--elev-1); }
@media (hover: hover) { .learn-page .button--primary:hover { background: var(--accent-hover); box-shadow: var(--elev-2-accent); } .learn-page .button--secondary:hover { box-shadow: var(--elev-2); } }
.learn-page .button--primary:active { background: var(--accent-pressed); box-shadow: var(--elev-1-accent); transition-duration: var(--dur-instant); }
.learn-page .button--secondary:active { background: var(--control-fill-pressed); box-shadow: var(--elev-1); transition-duration: var(--dur-instant); }
@media (pointer: coarse) { .learn-page .button { min-height: 44px; } }
/* On a phone the row shares its width; a third control puts the primary act on a full row of its own beneath. */
@media (max-width: 639.98px) {
  .step-nav > .button { flex: 1 1 0; white-space: normal; text-align: center; }
  .step-nav > .button--secondary:first-child { margin-inline-end: 0; }
  .step-nav > .button:nth-child(3):last-child { flex-basis: 100%; }
}

/* Keyboard focus (rulebook §9): a lift, a fill, a restrained glow and the detached dash; never a ring. The
   transparent outline forced colours paint is the shared `a:focus-visible, summary:focus-visible` rule above; these
   keep each shape's own radius and drop that rule's link underline, which belongs to links in text. Rows take the
   item recipe: the hover fill and a centred dash; the selected pill keeps its tint and lifts to level 1. */
.learn-page a.button:focus-visible { border-radius: var(--radius-sm); text-decoration: none; }
.learn-page .button--primary:focus-visible { background: var(--accent-hover); box-shadow: var(--elev-2-accent), var(--focus-glow); }
.learn-page .button--secondary:focus-visible { box-shadow: var(--elev-2), var(--focus-glow); }
:is(a, button).module-item:focus-visible { border-radius: var(--radius-md); background: var(--surface-hover); text-decoration: none; }
.learn-page .button:focus-visible::after, :is(a, button).module-item:focus-visible::after,
.learn-rail:focus-visible ~ .learn-nav .learn-nav__toggle::after { content: ''; position: absolute; left: calc(50% - 8px); bottom: 4px; width: 16px; height: 2px; border-radius: 1px; background: var(--brand-primary); pointer-events: none; animation: focus-dash var(--dur-fast) var(--ease-out); }
.learn-page .button--primary:focus-visible::after { background: var(--brand-ink); bottom: 5px; }
.learn-page .button--secondary:focus-visible::after { bottom: 5px; }

/* Disabled controls keep their dimensions and never gain hover/press/lift feedback. Busy controls keep the
   existing fill while their command is in flight; a disabled-with-reason control retains only its keyboard dash. */
.learn-page .button:is(:disabled, [aria-disabled="true"]):is(:hover, :active, :focus-visible),
.learn-page .button:is(:disabled, [aria-disabled="true"]) { cursor: default; box-shadow: none; }
.learn-page .button--primary:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]):is(:hover, :active, :focus-visible),
.learn-page .button--primary:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) { background: var(--surface-2); color: var(--text-disabled); }
.learn-page .button--secondary:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]):is(:hover, :active, :focus-visible),
.learn-page .button--secondary:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) { background: var(--control-fill, var(--surface)); color: var(--text-disabled); }
/* Existing learner commands expose busy on their form or main region; navigation controls may submit that
   sibling form through `form=step-check`. Read that existing semantic state without altering command behavior. */
:is(.learn-page .button[aria-busy="true"], .learn-page [aria-busy="true"] .button:disabled,
    .learn-content:has(#step-check[aria-busy="true"]) .step-nav .button:disabled) { cursor: progress; background: var(--brand-primary); color: var(--brand-ink); box-shadow: var(--elev-1-accent); }
:is(.learn-page .button[aria-busy="true"], .learn-page [aria-busy="true"] .button:disabled,
    .learn-content:has(#step-check[aria-busy="true"]) .step-nav .button:disabled).button--secondary { background: var(--control-fill, var(--surface)); color: var(--text-1); box-shadow: var(--elev-1); }
.learn-page .button:is(:disabled, [aria-busy="true"])::after { content: none; }
.learn-page .button[aria-disabled="true"]:not([aria-busy="true"]):focus-visible::after { background: var(--focus-color); }

@media (min-width: 640px) {
  .learn-header-zone { padding-inline: 24px; }
  .learn-content { width: min(100% - 48px, 720px); }
  .step { padding: var(--space-6); }
  .learn-page { --title-size: 30px; --title-line: 36px; --display-size: 40px; --display-line: 44px;
    --statement-size: 30px; --statement-line: 40px; }
}

/* The desktop workspace pushes with the console's 256/64 px rail. Labels keep their layout, fade, then clip;
   the checkbox stays focusable and its visible face draws the console's dash. No :has dependency. */
@media (min-width: 1024px) {
  .learn-rail { display: block; position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  /* 320 px expanded (backlog item 42): the course's name and the modules' titles need the room the console's 256 px
     left them; collapsed it is the console's 64 px rail. */
  .learn-nav { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 15; width: 320px; height: 100vh; height: 100dvh; max-height: none; overflow: visible; box-shadow: none; transition: width var(--dur-slow) var(--ease-out); }
  /* The workspace is the content card floating over the chrome: inset 8 px, rounded, its shadow cast onto the
     sidebar, which is transparent here so that nothing covers it. */
  body.learn-page { display: flow-root; background: var(--chrome); }
  .learn-nav { background: transparent; }
  .learn-workspace { margin: 0 0 0 320px; display: flex; flex-direction: column; border-radius: var(--radius-xl) 0 0 var(--radius-xl); box-shadow: var(--elev-1); overflow: clip; transition: margin-left var(--dur-slow) var(--ease-out); }
  /* The zone stands above the scroller and ends 8 px under the card, so the step scrolls out of sight on the ground,
     never flush against the card, and the card's shadow always falls over what passes beneath it. */
  /* The card's title line (12 px padding, half its 24 px line) centres on the sidebar header's axis. */
  /* A zero-height native track contributes its intrinsic gutter width to the second grid column.
     It matches main's thin classic gutter (zero for overlays) without clipping header shadows/tooltips,
     a guessed width, or another scrolling content region. Only main owns desktop vertical scrolling. */
  .learn-header-zone { position: relative; z-index: 2; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: calc(var(--header-axis) - 20px) 32px 8px; }
  .learn-header-zone::after { content: ''; width: min-content; height: 0; overflow-y: scroll; scrollbar-width: inherit; scrollbar-gutter: stable; }
  .learn-content { width: min(100% - 64px, 720px); padding-top: 8px; }
  .learn-main { min-height: 0; min-width: 0; flex: 1 1 auto; }
  .learn-nav__toggle { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); color: var(--text-2); cursor: pointer; }
  .learn-nav__monogram { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--brand-primary); color: var(--brand-ink); font-size: 20px; font-weight: 600; }
  /* The customer's logo icon as the console's rail logo tile: white, edge to edge, its corners clipped by the radius. */
  .learn-nav__monogram--logo { overflow: hidden; background: var(--logo-ground); }
  .learn-nav__monogram--logo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .learn-nav__monogram--logo > img.is-contained { padding: 3px; object-fit: contain; }
  .learn-nav__identity, .module-item__text { transition: opacity var(--dur-base) var(--ease-out); transition-delay: var(--delay-label-in); }
  .learn-rail:focus-visible ~ .learn-nav .learn-nav__toggle { background: var(--surface-hover); }
  @media (hover: hover) { .learn-nav__toggle:hover { background: var(--surface-hover); } }
  .learn-rail:checked ~ .learn-nav { width: 64px; }
  /* The console's 4 px rail scrollbar leaves room for every marker, even in a short window.
     Forced colours retain the platform's own scrollbar. */
  @media not (forced-colors: active) {
   @supports not (scrollbar-width: thin) {
    .learn-rail:checked ~ .learn-nav .learn-nav__history::-webkit-scrollbar { width: 4px; }
    .learn-rail:checked ~ .learn-nav .learn-nav__history::-webkit-scrollbar-thumb { background-clip: border-box; }
   }
  }
  .learn-rail:checked ~ .learn-workspace { margin-left: 64px; }
  .learn-rail:checked ~ .learn-nav .learn-nav__identity,
  .learn-rail:checked ~ .learn-nav .module-item__text { opacity: 0; transition-delay: 0s; pointer-events: none; }
  .learn-rail:checked ~ .learn-nav .module-item__text { flex: none; width: 244px; clip-path: inset(0 100% 0 0); }
  /* Collapsed, a row is the rail's square button and its marker grows to fill it: the state fill is the button's one
     surface, as a console rail item's is, with no row fill behind it. */
  .learn-rail:checked ~ .learn-nav .module-item { background: transparent; }
  /* Collapsed, the disc is the rail's button: it grows to the square markers' size less the focus dash's room. */
  .learn-rail:checked ~ .learn-nav .learn-lang { --flag-scale: 1; }
  .learn-rail:checked ~ .learn-nav .module-item__mark { width: 48px; height: 48px; margin: -4px -12px; border-radius: var(--radius-md); font: var(--type-body-strong); letter-spacing: normal; }
  .learn-rail:checked ~ .learn-nav .module-item__badge { top: -4px; right: -4px; }
  /* Fixed tooltips escape the history's scroll clip. Their static block position follows the row, even after scroll,
     and two lines at most (two 18 px lines in the 8 px inset) keep each one about its row's height, so it never
     leaves the viewport. */
  .learn-rail:checked ~ .learn-nav .rail-tooltip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; position: fixed; left: 68px; width: max-content; max-width: 240px; max-height: calc(2 * var(--lh-13) + 2 * var(--space-2)); overflow: hidden; visibility: hidden; opacity: 0; transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base); }
  @media (hover: hover) { .learn-rail:checked ~ .learn-nav :is(.module-item, .learn-nav__toggle):hover .rail-tooltip { visibility: visible; opacity: 1; transition-delay: var(--delay-tooltip); } }
  /* The tooltips exist only in the rail, so collapsing under the pointer would show one at once, with no delay to wait
     out, while the toggle slides away from the pointer. Entering from hidden keeps the hover pause. */
  @starting-style {
    .learn-rail:checked ~ .learn-nav :is(.module-item, .learn-nav__toggle):hover .rail-tooltip,
    .learn-rail:checked:focus-visible ~ .learn-nav .learn-nav__toggle .rail-tooltip { visibility: hidden; opacity: 0; }
  }
  .learn-rail:checked ~ .learn-nav .module-item:focus-visible .rail-tooltip,
  .learn-rail:checked:focus-visible ~ .learn-nav .learn-nav__toggle .rail-tooltip { visibility: visible; opacity: 1; transition-delay: 0s; }
  @supports (height: 100dvh) and selector(:popover-open) {
    html.learn-root { height: 100%; overflow: hidden; scrollbar-gutter: auto; }
    body.learn-page { height: 100dvh; }
    .learn-workspace { height: 100dvh; }
    /* The step fades over the scroller's top 16 px as it leaves under the header card, so no line is cut flush. */
    .learn-main { overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; scroll-padding-block: 16px 88px; mask-image: linear-gradient(to bottom, transparent, #000 16px); }
  }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .learn-nav { --rail-inset: 12px; }
  .learn-nav__header { height: 56px; }
  .module-item { min-height: 40px; padding: 2px 8px; }
  .learn-rail:checked ~ .learn-nav .module-item__mark { width: 40px; height: 40px; margin: -2px -8px; }
  .learn-rail:checked ~ .learn-nav .learn-lang { --flag-scale: .9; }
  .learn-nav__toggle, .learn-nav__monogram { width: 40px; height: 40px; }
  .learn-nav__identity { right: calc(var(--rail-inset) + 48px); }
  .learn-header-zone { padding-top: 12px; }
  .learn-header { padding-block: 10px 6px; }
}

/* Narrow pages keep document scrolling; the header card begins 8 px beyond the separate floating trigger. */
@media screen and (max-width: 1023.98px) {
  /* The header card is the floating trigger's twin: exactly its height, centred on the same axis, the title one line
     over the bar. A segment's hit target runs on past the card's lower edge, unseen, so it stays usable. */
  .learn-header { box-sizing: border-box; height: var(--header-h); padding: calc((var(--header-h) - 36px) / 2) 18px 0; }
  .learn-header__name { font: var(--type-name); display: block; white-space: nowrap; }
  .learn-header .stepper { margin-top: 6px; }
  .learn-header .segment { height: 28px; margin-bottom: -12px; }
  .learn-header .segment::before { align-self: start; margin-top: 6px; }
  .learn-header a.segment:focus-visible::after { align-self: start; margin-top: 12px; }
  /* The document never scrolls: the workspace is the content card, fixed to the viewport, and the one scroller, its
     scrollbar inside its own edges. So nothing about the page's width or scroll changes as the drawer opens. */
  html.learn-root { overflow: hidden; scrollbar-gutter: auto; }
  /* The drawer leaves exactly the 64 px strip of the surface on a phone, whatever its width; only a tablet caps it. */
  body.learn-page { --drawer-w: calc(100vw - 64px); --menu-size: 48px; --header-h: 60px; display: flex; flex-direction: column; background: var(--chrome); }
  /* A sideways swipe here moves between steps (learner.shell), so the page, not the browser, takes horizontal
     pans; vertical scrolling and pinch zoom stay the browser's. */
  .learn-workspace { position: fixed; inset: 0; scrollbar-gutter: stable; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 112px calc(88px + env(safe-area-inset-bottom)); touch-action: pan-y pinch-zoom; }
  .learn-header-zone { padding: calc(var(--header-axis) - var(--header-h) / 2 + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left)); }
  /* The card stays put while the step scrolls beneath it, fading out on the ground just above the step. */
  .learn-header-zone { position: sticky; top: 0; z-index: 2; padding-bottom: 8px; background: linear-gradient(to bottom, var(--bg) calc(100% - 8px), transparent); }
  /* Beside the trigger, but never wider than the step's 720 px column, whose edges it shares once there is room. */
  .learn-header { width: auto; margin-left: max(calc(var(--menu-size) + 4px), (100% - 720px) / 2); margin-right: max(0px, (100% - 720px) / 2); }
  .learn-content { width: min(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right), 720px); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .learn-content .step-nav { --nav-gap: calc(16px + env(safe-area-inset-bottom)); --fade-gap: 0px; --fade: 8px; }
  .learn-nav__identity { right: var(--rail-inset); }
  @media (min-width: 640px) {
    body.learn-page { --drawer-w: 340px; }
    .learn-header-zone { padding-inline: calc(24px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-right)); }
    .learn-header { margin-left: max(calc(var(--menu-size) - 4px), (100% - 720px) / 2); }
    .learn-content { width: min(100% - 48px - env(safe-area-inset-left) - env(safe-area-inset-right), 720px); }
  }
  @media (pointer: coarse) {
    body.learn-page { --menu-size: 52px; }
  }
}

/* The top-layer navigation is clipped to the exact width the surface vacates, with one timing for both.
   Transitions reverse from the current frame; display and overlay keep the drawer present through its exit.
   Opening uses slow enter, closing base exit (rulebook §3); reduced motion zeroes both globally. The drawer is
   transparent over the page's white surface, so the displaced surface's shadow, painted beneath the top layer, stays
   visible along the seam; its column layout holds in every state, so closing frames keep their structure. */
@supports selector(:popover-open) {
  @media screen and (max-width: 1023.98px) {
    .learn-workspace { transform: translateX(0); border-radius: 0; box-shadow: none;
      transition: transform var(--dur-base) var(--ease-in), border-radius var(--dur-base) var(--ease-in), box-shadow var(--dur-base) var(--ease-in); }
    /* The floating trigger is fixed over the surface and travels with it on the surface's own timing. */
    .learn-menu { position: fixed; top: calc(var(--header-axis) - var(--menu-size) / 2 + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); z-index: 20; display: grid; place-items: center; width: var(--menu-size); height: var(--menu-size); min-height: 0; padding: 0; margin: 0; border-radius: var(--radius-full); color: var(--text-2); background: var(--surface); box-shadow: var(--elev-2); transform: translateX(0);
      transition: transform var(--dur-base) var(--ease-in), background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
    .learn-menu:focus-visible { background: var(--surface-hover); box-shadow: var(--elev-2), var(--focus-glow); }
    @media (hover: hover) { .learn-menu:hover:not(:focus-visible) { background: var(--surface-hover); box-shadow: var(--elev-2); } }
    .learn-menu:active { background: var(--surface-pressed); box-shadow: var(--elev-2); }
    .learn-menu:focus-visible::after { background: var(--brand-primary); bottom: 4px; left: calc(50% - 8px); }
    .learn-nav { display: none; position: fixed; inset: 0 auto 0 0; width: var(--drawer-w); height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) env(safe-area-inset-left); overflow: visible; flex-direction: column; box-shadow: none; background: transparent; clip-path: inset(0 100% 0 0);
      transition: clip-path var(--dur-base) var(--ease-in), overlay var(--dur-base) var(--ease-in) allow-discrete, display var(--dur-base) var(--ease-in) allow-discrete; }
    .learn-nav > * { transform: translateX(-24px); transition: transform var(--dur-base) var(--ease-in); }
    .learn-nav:popover-open { display: flex; clip-path: inset(0); transition-duration: var(--dur-slow); transition-timing-function: var(--ease-out); }
    .learn-nav:popover-open > * { transform: none; transition-duration: var(--dur-slow); transition-timing-function: var(--ease-out); }
    /* The trigger rides along on the strip and stays live, so pressing it again closes the drawer. */
    .learn-page:has(#learn-nav:popover-open) .learn-menu { transform: translateX(var(--drawer-w)); transition-duration: var(--dur-slow), var(--dur-fast), var(--dur-fast); transition-timing-function: var(--ease-out), var(--ease-standard), var(--ease-standard); }
    /* The displaced surface overflows the viewport to the right. Clipped (overflow clip creates no scroll container),
       it can never make the page scroll sideways; unclipped, opening the drawer from its trigger reset the reader's
       scroll position to the top. */
    body.learn-page { overflow-x: clip; }
    .learn-page:has(#learn-nav:popover-open) .learn-workspace { transform: translateX(var(--drawer-w)); border-radius: var(--radius-xl) 0 0 var(--radius-xl); box-shadow: var(--elev-1); interactivity: inert; pointer-events: none; transition-duration: var(--dur-slow); transition-timing-function: var(--ease-out); }
    /* The header card fades out as the drawer opens and back as it closes, on the surface's timing; the trigger stays. */
    .learn-header { transition: opacity var(--dur-base) var(--ease-in); }
    .learn-page:has(#learn-nav:popover-open) .learn-header { opacity: 0; transition-duration: var(--dur-slow); transition-timing-function: var(--ease-out); }
    @starting-style {
      .learn-nav:popover-open { clip-path: inset(0 100% 0 0); }
      .learn-nav:popover-open > * { transform: translateX(-24px); }
    }
    .learn-nav::backdrop { background: transparent; }
  }
  @media (min-width: 1024px) { .learn-nav:popover-open::backdrop { display: none; } }
}

/* Forced colours retain boundaries and selection when the elevation and tint disappear. */
/* Engines predating scrollbar-gutter retain one native track on the actual scrollport.
   The transparent track has no thumb while the content fits; overlay scrollbars keep the OS policy. */
@supports (height: 100dvh) and selector(:popover-open) and (not (scrollbar-gutter: stable)) {
  @media (min-width: 1024px) {
    .learn-main { overflow-y: auto; }
    .learn-header-zone { padding-inline-end: calc(32px + var(--scrollbar-size)); }
    .learn-header-zone::after { content: none; }
  }
  @media (max-width: 1023.98px) { .learn-workspace { overflow-y: auto; } }
}
@media (forced-colors: active) {
  .learn-header, .learn-nav { border: 1px solid CanvasText; }
  .module-item[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; }
  .segment::before { background: none; outline: 1px solid CanvasText; outline-offset: -1px; }
  .segment[aria-current]::before { outline-color: Highlight; }
  .learn-rail:focus-visible ~ .learn-nav .learn-nav__toggle { outline: 2px solid Highlight; }
  .learn-lang:focus-visible .learn-lang__art::after { forced-color-adjust: none; background: Highlight; }
}
/* Printing restores the document flow and hides the screen-only shell. */
@media print {
  html.learn-root, body.learn-page, .learn-workspace { height: auto; overflow: visible; }
  body.learn-page { display: block; background: #fefefe; }
  .learn-workspace { position: static; display: block; margin-left: 0; }
  .learn-page .learn-main { overflow: visible; }
  .learn-content { width: 100%; }
  .skip-link, .learn-menu, .learn-nav, .learn-rail, .learn-header-zone, .step-nav { display: none; }
  .step { box-shadow: none; padding: 0; }
}
/* A question's legend and a field's label are what the learner answers: primary text (rulebook §9, the input rule). */
.learn-page .step .block legend, .learn-page .step .block > label { color: var(--text-1); }

/* Authored activities reuse the shell's controls and semantic feedback tokens. */
.assessment-items { padding: 0; list-style: none; display: grid; gap: var(--space-3); }
/* A quiz item is a panel on the neutral tint: its situation, then its answers as buttons. */
.learn-page .step .assessment-card { padding: var(--space-5); border-radius: var(--radius-md); background: color-mix(in srgb, var(--text-1) var(--tint-neutral), var(--holder)); }
.learn-page .step .assessment-card__prompt p { margin: 0; }
.learn-page .step .choices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
/* An answer is a raised button; the radio beneath it stays focusable but unseen. */
.learn-page .step .choices .choice { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-5);
  border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--elev-1); color: var(--text-1); font: var(--type-body-strong); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); }
.learn-page .step .choices .choice > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
@media (hover: hover) { .learn-page .step .choices .choice:not(:has(input:disabled)):hover { box-shadow: var(--elev-2); } }
/* Chosen: the button lights up in the brand fill. */
.learn-page .step .choices .choice:has(input:checked) { background: var(--brand-primary); color: var(--brand-ink); box-shadow: var(--elev-1-accent); }
.learn-page .step .choices .choice:has(input:focus-visible) { box-shadow: var(--elev-2), var(--focus-glow); }
.learn-page .step .choices .choice:has(input:disabled) { cursor: default; }
/* Evaluated: the chosen button glows green when right and red when wrong, with its check or cross; a glow and a fill, never a ring. */
.learn-page .step .choices .choice.is-correct:has(input) { background: var(--on-track-tint); color: var(--on-track-fg);
  box-shadow: 0 0 20px color-mix(in srgb, var(--status-on-track-solid) 50%, transparent); }
.learn-page .step .choices .choice.is-incorrect:has(input) { background: var(--serious-tint); color: var(--serious-fg);
  box-shadow: 0 0 20px color-mix(in srgb, var(--status-serious-solid) 50%, transparent); }
.assessment-card { min-width: 0; overflow-wrap: anywhere; }
.assessment-card fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.assessment-card legend { padding: 0; max-width: 100%; }
.assessment-card .button { margin: 4px; white-space: normal; }
.assessment-card .feedback { margin-top: 16px; }
/* The question above its choices reads as a legend does: primary text, weight 600, 12 px above the first row. */
.assessment-card__prompt { margin-bottom: 12px; }
.tip { break-inside: avoid; }
.learn-page .step .answer p { margin: 0; }
#error-summary { overflow-wrap: anywhere; }
@media (max-width: 639.98px) {
  .assessment-card .button { width: 100%; margin-inline: 0; }
}

/* The learner application owns lifecycle; the same lesson surfaces and controls remain canonical. */
#learner-app { min-height: 100dvh; }
#learner-app > .learn-workspace { min-height: 100dvh; }
.learn-page .assessment-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
@media (min-width: 640px) {
  .learn-page .assessment-card .button + .button { margin-inline-start: 8px; }
}
/* Its size is the reading small role, set with the lesson's type scale above. */
.draft-notice { color: var(--text-3); }

/* The application owns only the changing material layer; header, rail and navigation stay mounted.
   During a read an inert copy of the shown material keeps its place and geometry. The next screen commits
   with its images ready, its card at once and its contents held back; the copy, laid over that card where it
   was seen, fades out, and only then do the contents rise in. Old and new never share a frame, and the card
   surface never blinks. Compositor-only: opacity and transform, no layout animation. Under reduced motion
   the duration tokens are zero, so the change is immediate. */
.learning-layer { position: relative; min-width: 0; flex: none; }
.learning-snapshot { pointer-events: none; }
.learning-layer[data-presentation="entering"] > .learning-snapshot {
  position: absolute; z-index: 1; inset: 0 0 auto; animation: learner-material-out var(--dur-fast) var(--ease-in) forwards; }
.learning-layer[data-presentation="entering"] > .step > * {
  animation: learner-material-in var(--dur-base) var(--ease-out) var(--dur-fast) both; }
@keyframes learner-material-out { to { opacity: 0; } }
@keyframes learner-material-in { from { opacity: 0; transform: translateY(6px); } }
/* Pre-start identity composition. Terrain is measured from content in normal flow,
   never a reading ground; this entry-only exception does not colour lesson cards. */
/* Match the visible material, including its inert read snapshot until the next screen is presented over it, so
   that screen lays out as itself while the copy fades. CSS applies
   visibility and layout together even when React commits child replacements in
   separate phases. The mounted active header retains its own shell lifecycle. */
.learn-workspace:has(.module-entry:not([data-presentation="entering"] > .learning-snapshot *)) > .learn-header-zone { display: none; }
.learn-page .module-entry {
  position: relative; isolation: isolate; overflow: hidden; background: #fff;
  padding: 32px 0 0; animation: none;
}
/* The shell's existing column supplies the available height, including its own
   scrollbar and gutters. The final row remains the existing sticky action bar;
   only the material row grows, centring its intrinsic-height entry. A min-content
   floor naturally reverts to scrolling on short screens and with large text. */
.learn-content:has(.module-entry:not([data-presentation="entering"] > .learning-snapshot *)) { display: grid; grid-template-rows: minmax(min-content, 1fr) auto; row-gap: 24px; }
.learn-content > .module-entry,
.learn-content > .learning-layer:has(.module-entry:not([data-presentation="entering"] > .learning-snapshot *)) { align-self: center; margin-block: 24px; }
.learn-content:has(.module-entry:not([data-presentation="entering"] > .learning-snapshot *)) > form:has(> .step-nav) { display: block; }
.learn-content:has(.module-entry:not([data-presentation="entering"] > .learning-snapshot *)) .step-nav { margin-top: 0; }
.module-entry__masthead { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: 32px; position: relative; z-index: 1; }
.module-entry__identity { min-width: 0; min-height: 64px; max-width: 420px; padding-top: 4px; }
.module-entry__logo-slot { height: 48px; max-width: 200px; margin-bottom: 10px; }
.module-entry__logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; background: #fff; }
.module-entry__logo[hidden] { display: none; }
.learn-page .module-entry__organization { margin: 0; color: var(--text-1); font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.learn-page .module-entry__identity:has(.module-entry__logo-slot) .module-entry__organization { max-width: 320px; color: var(--text-2); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; }
.learn-page .module-entry__position { display: flex; align-items: baseline; margin: 0; padding-top: 2px; color: var(--text-1); font-size: 56px; line-height: 1; font-weight: 400; letter-spacing: -.05em; font-variant-numeric: lining-nums; }
.module-entry__denominator { font-size: .5em; letter-spacing: -.025em; margin-left: 5px; }
.module-entry__masthead:has(.module-entry__logo-slot) .module-entry__position { padding-top: 6px; }
.module-entry__reading { margin: 0; }
.learn-page .module-entry .step__title { margin: 0 0 20px; font-size: 36px; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.learn-page .module-entry__instruction { max-width: 440px; margin: 0; color: var(--text-2); font-size: 17px; line-height: 26px; }
@media (max-width: 639.98px) {
  .learn-page .module-entry { --hero-inset: 20px; padding-top: 24px; }
  /* The floating shell menu owns the top-left 40px. Keep that hit area clear
     inside the entry surface rather than resurrecting an empty lesson header. */
  .module-entry__masthead { gap: 16px; padding-top: calc(32px + env(safe-area-inset-top)); }
  .module-entry__identity { min-height: 44px; max-width: none; padding-top: 2px; }
  .module-entry__logo-slot { height: 44px; max-width: 144px; margin-bottom: 8px; }
  .learn-page .module-entry__organization { font-size: 21px; line-height: 27px; }
  .learn-page .module-entry__position { font-size: 42px; padding-top: 0; }
  .module-entry__masthead:has(.module-entry__logo-slot) .module-entry__position { padding-top: 4px; }
  .module-entry__denominator { margin-left: 3px; }
  .learn-page .module-entry .step__title { font-size: 28px; line-height: 32px; }
}
@media (max-width: 359.98px) {
  .module-entry__masthead { gap: 12px; }
  .module-entry__logo-slot { max-width: 120px; }
  .learn-page .module-entry__organization { font-size: 19px; line-height: 25px; }
  .learn-page .module-entry__position { font-size: 36px; }
}
@media (max-width: 639.98px) and (max-height: 700px) {
  /* Spend decorative space before asking a phone to scroll. Keep type, logo
     proportions, the menu clearance and the shell's action target unchanged.
     Intrinsic sizing still permits scrolling for long copy and enlarged text. */
  .learn-content:has(.module-entry:not([data-presentation="entering"] > .learning-snapshot *)) { row-gap: 16px; }
  .learn-content > .module-entry,
  .learn-content > .learning-layer:has(.module-entry:not([data-presentation="entering"] > .learning-snapshot *)) { margin-block: 8px; }
  .learn-page .module-entry { padding-top: 20px; }
  .module-entry .layered-hero__body { margin-top: 16px; }
  .learn-page .module-entry .step__title { margin-bottom: 16px; }
}
@media (forced-colors: active) {
  .learn-page .module-entry { background: Canvas; }
  .learn-page .module-entry :is(.module-entry__organization, .module-entry__position, .step__title, .module-entry__instruction) { color: CanvasText; }
  .module-entry__identity, .module-entry__logo { background: #fff; forced-color-adjust: none; }
  .module-entry__identity { color: #14171c; }
  .learn-page .module-entry__organization { color: #14171c; }
}
.learner-media-placeholder { width: 100%; background: #0c0e12; }
.learner-gutter-probe { position: fixed; visibility: hidden; inset: -200px auto auto -200px;
  width: 100px; height: 100px; overflow: scroll; pointer-events: none; }
@supports not (scrollbar-gutter: stable) {
  /* A full scroller width minus the measured native track determines both edges.
     Auto overflow may remove the track, but cannot recenter the reading column. */
  .learn-content { width: min(calc(var(--learner-inner-width, 100%) - 32px), 720px);
    margin-inline-start: max(16px, calc((var(--learner-inner-width, 100%) - 720px) / 2)); margin-inline-end: 0; }
  @media (min-width: 640px) {
    .learn-content { width: min(calc(var(--learner-inner-width, 100%) - 48px), 720px);
      margin-inline-start: max(24px, calc((var(--learner-inner-width, 100%) - 720px) / 2)); }
  }
  @media (min-width: 1024px) {
    .learn-content { width: min(calc(var(--learner-inner-width, 100%) - 64px), 720px);
      margin-inline-start: max(32px, calc((var(--learner-inner-width, 100%) - 720px) / 2)); }
    .learn-header-zone { padding-inline-end: calc(32px + var(--learner-native-gutter, 0px)); }
  }
}

/* EVERYTHING THAT ACTS ON A CLICK SHOWS THE POINTER (the apps' general rule). Links, enabled buttons and the
   switch's labels set it themselves; this covers the rest: a whole answer row, any label of an enabled control,
   a disclosure's summary. Disabled controls keep their own cursor. */
.learn-page :is(a[href], button:not(:disabled):not([aria-disabled="true"]), summary, [role="button"], [role="tab"],
  label:has(input:not(:disabled)), .answer:has(input:not(:disabled))) { cursor: pointer; }
/* The workspace surfaces that act on a click (`learner.core`, wide screens): the collapsed panel opens when clicked
   anywhere outside its own links, and with the panel open the main area closes it when clicked anywhere outside the
   learning card and the way-on bar. */
@media (min-width: 1024px) {
  .learn-rail:checked ~ .learn-nav { cursor: pointer; }
  .learn-rail:not(:checked) ~ .learn-workspace .learn-main { cursor: pointer; }
  /* The native confirmations' entry card and form are their learning surface. */
  .learn-rail:not(:checked) ~ .learn-workspace .learn-main :is([data-learning-surface], .module-entry, .step-nav) { cursor: auto; }
}

/* THE NARROW HEADER FOLDS WHILE THE LEARNER READS DOWN (`learner.header` sets `data-compact`). The card keeps its
   place in the layout, so the material never moves: its name row is clipped away and the card rises by the same
   amount, leaving a slim card of step bars at the card's own top edge; the name fades as it goes, and the zone's
   ground shortens with it so the step shows in the space freed. Compositor-friendly, instant under reduced motion. */
@media screen and (max-width: 1023.98px) {
  .learn-header-zone { --fold: calc((var(--header-h) - 36px) / 2 + 18px); background-repeat: no-repeat; background-size: 100% 100%;
    transition: background-size var(--dur-base) var(--ease-standard); }
  .learn-header { clip-path: inset(-12px -12px -16px -12px round 0);
    transition: transform var(--dur-base) var(--ease-standard), clip-path var(--dur-base) var(--ease-standard), opacity var(--dur-base) var(--ease-in); }
  .learn-header__name { transition: opacity var(--dur-fast) var(--ease-standard); }
  .learn-header-zone[data-compact] { background-size: 100% calc(100% - var(--fold)); }
  .learn-header-zone[data-compact] .learn-header { transform: translateY(calc(-1 * var(--fold)));
    clip-path: inset(var(--fold) 0 -16px 0 round var(--radius-lg) var(--radius-lg) 0 0); }
  .learn-header-zone[data-compact] .learn-header__name { opacity: 0; }
}

/* A wrong answer's explanation under its item: its short heading and the explanation; the square icon button to
   the place in the lesson that covers it stands in the item card's upper right corner, where every card keeps its
   marker, and the situation's words make room for it. */
.learn-page .step .assessment-card { position: relative; }
.learn-page .step .assessment-card:has(.feedback__source) .assessment-card__prompt { padding-right: calc(32px + var(--space-3)); }
.learn-page .step .assessment-card .feedback { margin-top: var(--space-4); }
.learn-page .step .assessment-card .feedback--correct { margin-top: 0; }
.learn-page .step .assessment-card .feedback > h3 { margin: 0 0 var(--space-2); }
.learn-page .step .assessment-card .feedback > p { margin: 0 0 var(--space-3); }
.learn-page .step .assessment-card .feedback > p:last-of-type { margin-bottom: 0; }
.learn-page .step .assessment-card .feedback > .feedback__source { position: absolute; top: var(--space-5); right: var(--space-5); display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--radius-xs); background: var(--surface); box-shadow: var(--elev-1); color: var(--text-1); text-decoration: none;
  transition: box-shadow var(--dur-fast) var(--ease-standard); }
@media (hover: hover) { .learn-page .step .assessment-card .feedback > .feedback__source:hover { box-shadow: var(--elev-2); } }
.learn-page .step .assessment-card .feedback > .feedback__source:focus-visible { box-shadow: var(--elev-2), var(--focus-glow); }

/* ONE RHYTHM BETWEEN A STEP'S PARTS. The heading, the blocks, a tip, a note, a closing section: the step lays its
   direct parts out in a column with one 20 px gap (rulebook: 20 px between blocks), so no part brings its own outer
   margin and none can end up flush against another. The module entry keeps its own composition. */
.learn-page .step:not(.module-entry) { display: flex; flex-direction: column; gap: var(--space-5); }
.learn-page .step:not(.module-entry) > * { min-width: 0; margin-block: 0; }
/* Two distances, nothing else: cards of one series (a block's points, the quiz's questions, the reflection's
   statements) stand 12 px apart, as parts of one thing; separate parts of a step (a block, the tip, an incident, a
   note) stand 20 px apart, the step's gap above. No part adds a margin at its own edges, so nothing a part contains
   can widen the gap to its neighbour. */
.learn-page .step:not(.module-entry) > * > :first-child,
.learn-page .step:not(.module-entry) > * > :first-child > :first-child { margin-top: 0; }
.learn-page .step:not(.module-entry) > * > :last-child,
.learn-page .step:not(.module-entry) > * > :last-child > :last-child { margin-bottom: 0; }
.learn-page .step .assessment-items { margin: 0; }
