﻿@font-face{font-family:Montserrat;src:url('/shell/6794b49fdd658fab/assets/montserrat.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Urbanist;src:url('/shell/6794b49fdd658fab/assets/urbanist.woff2') format('woff2');font-weight:100 900;font-display:swap}
/* The latin subsets have no arrows (→ ↗); a subset of the static Urbanist 700 file (U+2190-2199, 0.8 KB; GO-75) supplies only those. */
@font-face{font-family:Urbanist;src:url('/shell/6794b49fdd658fab/assets/urbanist-arrows.woff2') format('woff2');font-weight:100 900;unicode-range:U+2190-21FF;font-display:swap}
/* GO-69: metric-matched Arial fallbacks, so text keeps its width and line count while the woff2 files load (no layout shift on swap).
   From the hhea tables and the advance widths of a weighted English lowercase sample (capsize/Next.js method), read with fontkit:
   size-adjust = font average width / Arial average width; ascent/descent/line-gap override = font hhea value / unitsPerEm / size-adjust.
   Montserrat 800 .5716em vs Arial Bold .5026em, ascent .968, descent .251. Urbanist 400 .4667em vs Arial .4611em; 700 .4861em vs
   Arial Bold .5026em; ascent .95, descent .25. Montserrat is only used at 600-800, so one bold face covers it. */
@font-face{font-family:'Montserrat Fallback';src:local('Arial Bold'),local('Arial-BoldMT');font-weight:100 900;size-adjust:113.73%;ascent-override:85.11%;descent-override:22.07%;line-gap-override:0%}
@font-face{font-family:'Urbanist Fallback';src:local('Arial'),local('ArialMT');font-weight:100 600;size-adjust:101.21%;ascent-override:93.86%;descent-override:24.70%;line-gap-override:0%}
@font-face{font-family:'Urbanist Fallback';src:local('Arial Bold'),local('Arial-BoldMT');font-weight:700 900;size-adjust:96.72%;ascent-override:98.22%;descent-override:25.85%;line-gap-override:0%}

.delivery-choice{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:0 0 16px;padding:0;border:0}.delivery-choice legend{width:100%;font-weight:700;margin-bottom:8px}.delivery-choice label{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:400;cursor:pointer}.delivery-choice input[type=radio]{width:20px;min-height:20px;margin:0;accent-color:var(--color-role-action)}
:root{font-family:var(--font-family-body);color:var(--color-role-ink);background:var(--color-role-canvas);line-height:var(--font-leading-body);--surface:var(--color-role-surface);--ink:var(--color-role-ink);--muted:var(--color-role-ink-muted);--line:var(--color-role-border);--accent:var(--color-role-mark);--radius:var(--radius-panel);color-scheme:light}
*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,summary{touch-action:manipulation}[hidden]{display:none!important}.open-access #request,.open-access:not(.scripts-ready) #access,.open-access #access:has(#status:empty){display:none}p{max-width:65ch;text-wrap:pretty}h1,h2,h3{font-family:var(--font-family-display);font-weight:var(--font-weight-display);line-height:var(--font-leading-tight);text-wrap:balance;letter-spacing:var(--font-tracking-display)}h1{font-size:var(--font-size-display);margin:12px 0 16px}h2{font-size:1.25rem;margin:0 0 12px}p{margin:0 0 16px}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.site-header{background:var(--color-role-chrome);color:var(--color-role-on-chrome)}.header-inner{max-width:1120px;margin:auto;min-height:82px;display:flex;align-items:center;gap:24px;padding:16px 20px}.brand{display:flex;align-items:center;min-height:44px;flex:none}.brand img{display:block;height:28px;width:auto}.header-label{display:none;color:var(--color-role-on-chrome-muted)}.help-link{margin-left:auto;text-decoration:none;font-family:var(--font-family-action);font-weight:var(--font-weight-semibold);font-size:.875rem;padding:12px 0}.help-link span{margin-left:8px}
main{max-width:1120px;margin:auto;padding:24px 20px 0}
.learning-layout{display:grid;gap:20px}.access-panel{background:var(--surface);border:1px solid transparent;box-shadow:var(--shadow-panel);border-radius:var(--radius);padding:24px;min-width:0}.access-panel>p{color:var(--muted);font-size:1rem}.access-panel h2:focus{outline:none}form{margin-top:24px}label{display:block;font-weight:700;margin-bottom:10px}.check{display:flex;align-items:center;gap:12px;font-weight:400;min-height:52px;margin:0 0 20px;cursor:pointer}.check input{width:22px;height:22px;accent-color:var(--color-role-ink);flex:none;margin:0}.phone-input{display:flex;align-items:center;border:1px solid var(--color-role-border-strong);background:var(--color-role-surface);border-radius:var(--radius-input);overflow:hidden}.country{display:flex;align-items:center;align-self:stretch;min-height:0;padding:0;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);transition:background .16s}.country:hover{background:var(--color-neutral-50)}.country:disabled,.country:disabled:hover{background:transparent;color:var(--ink);cursor:default}.country:focus-visible{outline:2px solid var(--color-role-focus);outline-offset:-2px}.country:not(:disabled) .country-label::after{content:'';display:inline-block;width:6px;height:6px;margin:0 0 3px 8px;border:solid var(--color-neutral-500);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}.country-label{display:flex;align-items:center;white-space:nowrap;padding:0 14px;font-weight:700}input:not([type=checkbox]){width:100%;min-width:0;min-height:54px;font-size:1.125rem;line-height:1.4;padding:12px 16px;border:1px solid var(--color-role-border-strong);border-radius:var(--radius-input);background:var(--color-role-surface);color:var(--color-role-ink)}.phone-input input{border:0;border-radius:0}.phone-input:focus-within{outline:2px solid var(--color-role-focus);outline-offset:3px}.phone-input input:focus-visible{outline:none}input::placeholder{color:var(--color-role-placeholder);opacity:1}#code{letter-spacing:.35em;font-size:1.5rem;font-variant-numeric:tabular-nums}button{border:1px solid var(--color-role-action);border-radius:var(--radius-pill);min-height:48px;padding:11px 24px;cursor:pointer;background:var(--color-role-action);color:var(--color-role-on-action);font-family:var(--font-family-action);font-weight:var(--font-weight-semibold);display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:background .16s ease-out,transform .16s ease-out}button:hover{background:var(--color-role-action-hover)}button:active{transform:translateY(1px)}button:disabled{background:var(--color-neutral-200);color:var(--color-neutral-600);border-color:var(--color-neutral-200);cursor:not-allowed;transform:none}.wide{width:100%}.primary{justify-content:space-between;padding-right:10px;min-height:54px;text-align:left}.button-arrow{font-family:var(--font-family-body);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--color-role-ink);font-size:1.25rem;flex:none}.primary:disabled .button-arrow{background:var(--color-neutral-300);color:var(--color-neutral-600)}.secondary{background:var(--color-role-surface);color:var(--color-role-ink);border-color:var(--color-role-border-strong)}.secondary:hover{background:var(--color-neutral-200)}.profile-cta span{font-family:var(--font-family-body)}.text-button{border-color:transparent;background:transparent;color:var(--muted);padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px;font-size:.875rem}.text-button:hover{background:transparent;color:var(--color-role-ink)}.text-button:disabled{background:transparent;color:var(--color-neutral-600)}.hint{font-size:.875rem;color:var(--muted);margin:8px 0 20px}.status-message{font-size:.875rem!important;margin:16px 0 0}.status-message:empty{display:none}.notice{background:var(--color-neutral-50);border:1px dashed var(--color-neutral-500);border-radius:var(--radius-input);padding:14px;font-size:.875rem;margin-top:16px}
.course-panel{min-width:0;border:1px solid var(--color-neutral-200);border-radius:var(--radius);background:var(--color-role-surface);overflow:hidden}.save-status{font-size:.8125rem!important;margin:12px 0 0!important}iframe{display:block;border:0;border-top:1px solid var(--color-neutral-300);background:var(--color-role-surface);width:100%;height:76svh;min-height:480px;max-height:900px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.75rem}.is-learning .course-panel{grid-column:1/-1}.is-learning .access-panel[data-verified=true]{display:none}.is-learning .learning-layout{gap:0}
.help-section{margin:48px 0 32px}.help-section>div>p{color:var(--muted);font-size:.9375rem}.help-questions details{border-bottom:1px solid var(--line)}summary{cursor:pointer;min-height:52px;padding:16px 0;font-weight:700}summary::marker{color:var(--color-role-ink-muted)}.help-questions summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px}.help-questions summary::-webkit-details-marker{display:none}.help-questions summary::after{content:'';flex:none;width:28px;height:28px;border-radius:50%;background:linear-gradient(var(--color-role-ink),var(--color-role-ink)) center/10px 1.6px no-repeat,linear-gradient(var(--color-role-ink),var(--color-role-ink)) center/1.6px 10px no-repeat var(--color-neutral-150);transition:transform .25s ease,background-color .25s ease}.help-questions details[open] summary::after{background-color:var(--color-neutral-200);transform:rotate(45deg)}.help-questions details p{color:var(--muted);font-size:.9375rem;padding:0 44px 8px 0}.site-footer{max-width:1120px;margin:24px auto 0;padding:24px 20px 32px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);font-size:.75rem;color:var(--muted)}.site-footer span:first-child{font-weight:700;color:var(--color-role-ink)}:focus-visible{outline:2px solid var(--color-role-focus);outline-offset:4px}.site-header :focus-visible{outline-color:var(--color-role-on-chrome)}.skip-link{position:fixed;top:10px;left:16px;padding:12px 20px;background:var(--accent);transform:translateY(-150%);z-index:2}.skip-link:focus{transform:translateY(0)}
@media(min-width:760px){.header-inner{min-height:96px;padding-inline:32px}.header-label{display:block}main{padding:36px 32px 0}.learning-layout{grid-template-columns:1fr 1fr;gap:32px;align-items:start}.access-panel{grid-column:2;grid-row:1;padding:32px}.course-panel{grid-column:1;grid-row:1}.help-section{margin-top:56px}.site-footer{padding-inline:32px}.is-learning .course-panel{grid-row:auto}.is-learning .access-panel:not([data-verified=true]){grid-column:1/-1;grid-row:auto;max-width:480px;margin-bottom:24px}.is-learning .learning-layout{grid-template-columns:1fr}.is-learning iframe{height:75svh}}
.site-footer{flex-wrap:wrap}.footer-support{flex-basis:100%;max-width:none;margin:0;font-size:.875rem}.footer-support a{display:inline-block;padding:12px 0;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media(max-width:360px){main{padding-inline:16px}.access-panel{padding:20px}.site-footer{flex-direction:column;gap:4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.certificate-summary{margin:28px 0;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.certificate-summary h2{margin:0;font-size:1rem}.certificate-count{margin:8px 0;font-size:3rem;font-weight:700;line-height:1.1}
/* Course path (sequential courses): compact summary, stats and episode cards. */

/* While learning, the course body keeps only save feedback (and the stuck-save exit). */

#save-status{margin:8px 0 0;font-size:.875rem;color:var(--muted)}
#access[data-verified=true]{display:none}
/* GO-74: the course shows only in learning mode; the course entry page never shows it, even with an episode open behind it. */
body:not(.is-learning) .course-panel{display:none}
/* Focused learning: the episode gets the whole screen under one slim bar. */
.player-bar{display:none}
.is-learning{overflow:hidden}
.is-learning .path,.is-learning .site-header,.is-learning .site-footer,.is-learning #help,.is-learning #access,.is-learning .skip-link{display:none}
.is-learning .course-panel{position:fixed;inset:0;z-index:20;display:flex!important;flex-direction:column;height:100dvh;margin:0;padding:0;max-width:none;border:0;border-radius:0;background:var(--color-role-surface)}

.is-learning .player-bar{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:48px;padding:calc(6px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));border-bottom:1px solid var(--color-neutral-150)}
.player-bar .back-to-path{white-space:nowrap}
.player-title{flex:1;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-status{display:contents}.player-status #save-status{margin:0;font-size:.8125rem;color:var(--muted);white-space:nowrap}
.player-status #discard-save,.player-status #go-hub-anyway{flex-basis:100%;text-align:left}
.is-learning #player-frame{flex:1;width:100%;height:auto;min-height:0;max-height:none;border:0;display:block}

@media (max-width:420px){.player-status #save-status{max-width:9em;overflow:hidden;text-overflow:ellipsis}}
.learning-layout{grid-template-columns:1fr}
.path{background:var(--surface);border:1px solid transparent;box-shadow:var(--shadow-panel);border-radius:var(--radius);padding:20px 16px;container-type:inline-size}
.path-head{display:flex;align-items:center;gap:16px;margin-bottom:14px}.path-head h1{margin:0;font-size:var(--font-size-display)}.path-head p{margin:2px 0 0;color:var(--muted);font-size:.9375rem}
.ring{position:relative;display:grid;place-items:center;flex:none}
@property --value{syntax:'<number>';inherits:true;initial-value:0}
progress.progress-ring{--size:56px;--thickness:7px;appearance:none;width:var(--size);height:var(--size);border:0;border-radius:50%;
  background:conic-gradient(var(--ink) calc(var(--value)*1%),var(--color-neutral-150) 0);mask-image:radial-gradient(farthest-side,transparent calc(100% - var(--thickness)),#000 calc(100% - var(--thickness) + .5px));transition:--value 0s}
@media (prefers-reduced-motion:no-preference){progress.progress-ring{transition-duration:var(--motion-duration-progress)}}
progress.progress-ring::-webkit-progress-bar,progress.progress-ring::-webkit-progress-value{background:none}progress.progress-ring::-moz-progress-bar{background:none}
progress.progress-ring[value="100"]{--ink:var(--color-status-success)}
.ring-label{position:absolute;font-weight:700;font-size:var(--font-size-small)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 14px}.stats div{background:var(--color-neutral-50);border-radius:var(--radius-tile);padding:8px 10px}
.stats dt{color:var(--muted)}.stats dd{margin:0;font-weight:700}
.cards{--card-height:66px;--card-gap:8px;list-style:none;margin:0;padding:0;display:grid;gap:var(--card-gap)}
/* GO-69: without a course path (or without JavaScript) the section stays hidden, as before. */
:root:not(.has-path) #path{display:none}
/* GO-69: until path.js fills the list, hold the space its cards will take (mode.js sets --path-cards and --path-rows-2 from africaConfig.coursePath). */
.cards:empty{min-height:calc(var(--path-cards) * (var(--card-height) + var(--card-gap)) - var(--card-gap))}
@container (min-width:560px){.cards:empty{min-height:calc(var(--path-rows-2) * (var(--card-height) + var(--card-gap)) - var(--card-gap))}}
@container (min-width:560px){.cards{grid-template-columns:1fr 1fr}}
.card-button{font-family:var(--font-family-body);font-weight:var(--font-weight-regular);width:100%;display:flex;align-items:center;gap:12px;min-height:var(--card-height);padding:12px 14px;text-align:left;background:var(--surface);border:1px solid var(--color-neutral-200);border-radius:var(--radius-card);box-shadow:var(--shadow-card);cursor:pointer;color:var(--ink)}
.card-button:not(:disabled):hover,.card-button:focus-visible{border-color:var(--ink);background:var(--surface);color:var(--ink)}
.card[data-state=locked] .card-button:hover{background:var(--color-status-locked-surface);color:var(--color-status-locked-text)}
.card-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--color-neutral-100);font-weight:700;flex:none}
.card-text{display:grid;flex:1;min-width:0}.card-title{font-weight:700;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Owner decision on #178: on the open stage a long title shows in full on two lines, in a card that reserves them; the
   sign-in stages keep one line in 66 px cards. */
.open-access .cards{--card-height:86px}.open-access .card-title{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.card-meta{font-size:.8125rem;color:var(--muted)}.card-action{font-family:var(--font-family-action);font-weight:var(--font-weight-semibold);font-size:.875rem}
/* GO-64: an episode not yet started asks for attention; Continue stays quiet text. */
.card-action.cta{flex:none;padding:6px 14px;border-radius:var(--radius-pill);background:var(--color-neutral-100);color:var(--ink)}.card.next .card-action.cta{background:var(--accent)}
.card.next .card-mark{background:var(--accent)}
.card[data-state=completed] .card-mark{background:var(--color-status-success);color:var(--color-brand-white)}.card[data-state=completed] .card-action{color:var(--color-status-success)}
.card[data-state=locked] .card-button{background:var(--color-status-locked-surface);color:var(--color-status-locked-text);box-shadow:none;cursor:not-allowed}.card[data-state=locked] .card-meta{color:var(--color-status-locked-text)}
/* Before sign-in every card is disabled; an available one keeps its look instead of the global disabled grey. */
.card-button:disabled{opacity:1;background:var(--surface);color:var(--ink);border-color:var(--color-neutral-200);cursor:default}
.card-button:disabled .card-action{flex:none;max-width:6.5em;text-align:right;font-size:.8125rem;line-height:1.25}
/* QA, 28 Oct (#168): mode.js marks a returning open-stage learner who had finished, so the done box holds its place from first paint. */
.path-was-done #path-done{display:block!important}
.path-done{background:var(--color-status-success-soft);border-radius:var(--radius-tile);padding:14px;margin:0 0 12px}.path-done p{margin:0 0 10px}.path-done p:empty::before{content:"\a0"}
.hold-cta{margin:0 0 12px} /* GO-219: the profile button above My Courses while course 2 waits for it */
.path-links{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
@media (max-height:500px){.is-learning .icon-button{width:40px;height:40px}.is-learning .player-bar{min-height:36px;padding-top:calc(2px + env(safe-area-inset-top));padding-bottom:2px}.is-learning .player-bar,.player-title{font-size:.875rem}}
/* Learning bar: icon buttons, two-line heading, quiet save indicator. */
.icon-button{display:grid;place-items:center;width:var(--size-touch);height:var(--size-touch);padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer;flex:none}
.icon-button:hover,.icon-button:focus-visible{background:var(--color-neutral-100);color:var(--ink)}
.is-learning .player-bar{flex-wrap:nowrap;gap:8px;padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right))}
.player-heading{display:grid;flex:1;min-width:0;line-height:1.2}
.player-episode,.header-label,.stats dt,.tour-count{font-family:var(--font-family-action);font-weight:var(--font-weight-semibold);font-size:var(--font-size-label);letter-spacing:var(--font-tracking-label);text-transform:uppercase}.player-episode{color:var(--muted)}
.player-heading .player-title{font-size:.9375rem}
.player-status{display:flex;align-items:center;gap:6px;font-size:.8125rem;color:var(--muted);white-space:nowrap}
.player-status::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--color-neutral-400)}
.player-status[data-state=saved]::before{background:var(--color-status-success)}.player-status[data-state=attention]::before{background:var(--color-status-attention)}

.player-status[data-state=attention]{white-space:normal;color:var(--color-status-attention-text);max-width:min(60vw,22em)}
.player-status #discard-save,.player-status #go-hub-anyway{flex-basis:auto}
/* Recovery uses its own row, keeping the lesson title and exit controls usable. */
.is-learning .player-bar{flex-shrink:0;max-height:45dvh;overflow:auto}
.is-learning .player-bar:has(.player-status[data-state=attention]){display:grid;grid-template-columns:40px minmax(0,1fr) 40px}
.player-bar:has(.player-status[data-state=attention]) .player-heading{grid-column:2;grid-row:1}
.player-bar:has(.player-status[data-state=attention]) #player-fullscreen{grid-column:3;grid-row:1}
/* The lesson is paused while a save needs attention; the Lessons button waits too. */
.player-bar:has(.player-status[data-state=attention]) #player-outline{display:none}
.player-bar .player-status[data-state=attention]{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:8px minmax(0,1fr);max-width:none;padding:4px 8px 8px;overflow-wrap:anywhere}
.player-status[data-state=attention] #discard-save,.player-status[data-state=attention] #go-hub-anyway{grid-column:2;white-space:normal;text-align:left}
/* End-of-episode sheet: slides up from the bottom over the player. */
.sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:none;max-height:85dvh;border:0;border-radius:24px 24px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sheet);text-align:center}
.sheet::backdrop{background:var(--color-role-scrim)}
.sheet h2{margin:8px 0 4px}.sheet p{margin:0 auto 16px;color:var(--muted)}
.sheet .wide{width:100%;margin-bottom:10px;justify-content:center}
.sheet .sheet-reward{color:var(--ink)}
.sheet-mark{display:grid;place-items:center;width:52px;height:52px;margin:0 auto;border-radius:50%;background:var(--color-status-success);color:var(--color-brand-white)}.sheet-mark svg{width:28px;height:28px;stroke-width:2.4}
@media (prefers-reduced-motion:no-preference){.sheet[open]{animation:sheet-in .28s cubic-bezier(.2,.8,.2,1)}.sheet[open]::backdrop{animation:fade-in .28s}}
@keyframes sheet-in{from{transform:translateY(100%)}}@keyframes fade-in{from{opacity:0}}
/* GO-64 (audit G-S3): on a laptop or tablet the sheet is a centred dialog, not a bottom sheet; landscape phones keep the sheet. */
@media (min-width:768px) and (min-height:600px){.sheet{inset:0;margin:auto;height:fit-content;max-height:85dvh;border-radius:var(--radius-panel);padding:28px 28px 24px;box-shadow:var(--shadow-panel)}}
@media (min-width:768px) and (min-height:600px) and (prefers-reduced-motion:no-preference){.sheet[open]{animation:dialog-in var(--motion-duration-base) cubic-bezier(.2,.8,.2,1)}}
@keyframes dialog-in{from{opacity:0;transform:scale(.98)}}
/* GO-76: the sheet leaves the way it came (down on a phone, a fade on a laptop), staying in the top layer until it has gone.
   Only where overlay transitions and the sheet can be made inert (PR #139 reviews): elsewhere a held display would show it outside the
   top layer, or leave its buttons focusable while it leaves, so those
   browsers close it at once. While it leaves, neither it nor its backdrop takes taps, focus or the accessibility tree. */
@supports (overlay:auto) and (interactivity:inert){
@media (prefers-reduced-motion:no-preference){
.sheet{transition:transform var(--motion-duration-base) cubic-bezier(.4,0,1,1),display var(--motion-duration-base) allow-discrete,overlay var(--motion-duration-base) allow-discrete}
.sheet:not([open]){transform:translateY(100%);pointer-events:none;interactivity:inert}
.sheet::backdrop{transition:opacity var(--motion-duration-base),display var(--motion-duration-base) allow-discrete,overlay var(--motion-duration-base) allow-discrete}
.sheet:not([open])::backdrop{opacity:0;pointer-events:none}
}
@media (min-width:768px) and (min-height:600px) and (prefers-reduced-motion:no-preference){.sheet{transition:opacity var(--motion-duration-base),transform var(--motion-duration-base),display var(--motion-duration-base) allow-discrete,overlay var(--motion-duration-base) allow-discrete}.sheet:not([open]){opacity:0;transform:scale(.98)}}
}
/* A button the hold just released plays the list's unlock ring. */
@media (prefers-reduced-motion:no-preference){.sheet[open] .released{animation:unlock 1.6s ease-out .3s}}

/* Save text stays for assistive tech; the bar shows the short label. */
.player-status #save-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sheet{overflow-y:auto;overscroll-behavior:contain}
@media (max-height:520px){.sheet{max-height:92dvh;padding-top:14px}.sheet-mark{width:36px;height:36px}.sheet-mark svg{width:20px;height:20px}.sheet h2{margin:6px 0 2px;font-size:1.125rem}.sheet p{margin-bottom:10px}.sheet .wide{min-height:44px;margin-bottom:8px}.sheet .text-button{min-height:44px;padding:4px 0}}
.region-menu{position:fixed;inset:auto;margin:0;padding:6px;border:1px solid var(--color-neutral-150);border-radius:var(--radius-tile);background:var(--color-role-surface);color:var(--ink);box-shadow:var(--shadow-menu)}
.region-menu:not([hidden]):not([popover]),.region-menu:popover-open{display:grid;gap:2px}
.choice{width:100%;justify-content:flex-start;gap:10px;min-height:48px;padding:10px 12px;border:0;border-radius:var(--radius-input);background:transparent;color:var(--ink);font-weight:600}
.choice:hover,.choice:focus-visible{background:var(--color-neutral-50);color:var(--ink)}.choice[aria-pressed=true]{background:var(--color-neutral-50)}
@media (prefers-reduced-motion:no-preference){.region-menu:popover-open{animation:menu-in .16s ease-out}}@keyframes menu-in{from{opacity:0;transform:translateY(-4px)}}
.choice-code{margin-left:auto;color:var(--muted);font-weight:400}.choice[aria-pressed=true]::after{content:'';width:6px;height:11px;margin:0 4px 3px 14px;border:solid var(--color-role-ink);border-width:0 2px 2px 0;transform:rotate(45deg)}
html{scrollbar-width:thin;scrollbar-color:var(--color-neutral-400) transparent}
/* Course card life: one line drawing with the alulu lime accent, and quiet motion. */
/* Owner illustrations: start, in progress, done (path.js swaps them); multiply drops their white ground. */
.path-frame{position:relative;display:block;max-width:300px;margin:-4px auto 14px}
.path-art{display:block;width:100%;height:auto;mix-blend-mode:multiply}
/* Option D (owner, 28 Oct): on done the lime dot sits in the sprout's small ring, measured in path-done.webp (720x240):
   centre 631,100, hole about 12px. */
/* Owner, 28 Oct: the stats keep their space from first paint, so the course card never shifts when the catalogue answers.
   Owner, 29 Oct: on the open stage the labels show from first paint with dashes (mode.js sets .open-access before render);
   only the signed-out sign-in stages hide the boxes until there is data (path.js sets .stats-ready with the first summary).
   visibility:hidden also keeps hidden boxes from assistive tech; with no inert, the open stage's labels are reachable at once. */
:root:not(.open-access):not(.stats-ready) .stats{visibility:hidden;opacity:0}
/* GO-86 owner spec: one-line label, bold value, one muted sub-line (reserved from first paint, so no state shifts the card). */
.stats dt{white-space:nowrap}.stats dd b{display:block}
.stats dd small{display:block;min-height:1.25em;font-size:.8125rem;line-height:1.25;font-weight:400;color:var(--muted)}
/* GO-86: the line under the heading is only the sign-in hint; the open stage starts by itself, so it never shows there (no shift). */
.open-access #path-progress-label{display:none}
/* Owner, 29 Oct: one entrance on first paint. The heading and ring rise in as the illustration starts its draw; the three boxes
   follow at 120/180/240 ms, all settled by about 600 ms. path.js drops .entering after the last box, so coming back from a
   course (display:none) never replays it. When the data arrives only the changed values crossfade (.swap, .outgoing). */
.stats dd{position:relative}.stats dd .outgoing{position:absolute;inset:0;pointer-events:none}
@media (prefers-reduced-motion:no-preference){
.stats{transition:opacity .32s ease-out,translate .32s ease-out}:root:not(.open-access):not(.stats-ready) .stats{translate:0 4px;transition:none}
.path.entering .path-head,.path.entering .stats>div{animation:hero-in .32s ease-out both}
.path.entering .stats>div:nth-child(1){animation-delay:.12s}.path.entering .stats>div:nth-child(2){animation-delay:.18s}.path.entering .stats>div:nth-child(3){animation-delay:.24s}
.stats dd.swap>:not(.outgoing){animation:fade-in .2s ease-out}.stats dd .outgoing{animation:fade-out .2s ease-out forwards}
@keyframes fade-out{to{opacity:0}}
}
@keyframes hero-in{from{opacity:0;translate:0 6px}}
.path-frame.done::after{content:'';position:absolute;left:87.64%;top:41.67%;width:1.7%;aspect-ratio:1;border-radius:50%;background:var(--accent);translate:-50% -50%}
/* Owner, 28 Oct: one lime mark per view, so on the done view the dot is the acknowledgement and the profile arrow chip is grey. */
.path-done .button-arrow{background:var(--color-neutral-150)}
@media (prefers-reduced-motion:no-preference){.card-button{transition:transform var(--motion-duration-fast) ease-out,box-shadow var(--motion-duration-fast) ease-out,border-color var(--motion-duration-fast) ease-out}}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.card:not([data-state=locked]) .card-button:not(:disabled):hover{transform:translateY(-2px);box-shadow:var(--shadow-card-hover)}}
@media (prefers-reduced-motion:no-preference){.card:not([data-state=locked]) .card-button:not(:disabled):active{transform:scale(.98);box-shadow:none}}
@media (prefers-reduced-motion:no-preference){
.path-frame.draw .path-art{mask-image:linear-gradient(90deg,#000 40%,transparent 50%);mask-size:250% 100%;mask-repeat:no-repeat;animation:draw-on 1.1s cubic-bezier(.3,.7,.2,1) both}
.path-frame.draw.done::after{animation:mark-in var(--motion-duration-base) ease-out 1s both}
.card.first.next .card-mark{animation:nudge 2.4s ease-out 1s}
.card.changed[data-state=completed] .card-mark{animation:pop .5s cubic-bezier(.2,.8,.2,1)}
.card.changed[data-state=available] .card-button{animation:unlock 1.6s ease-out}.card.changed[data-state=available] .card-mark{animation:pop .5s cubic-bezier(.2,.8,.2,1),nudge 2.4s ease-out .4s}
.player-status[data-state=saved]::before{animation:saved .7s ease-out}
.is-learning #course{view-transition-name:episode}
::view-transition-group(episode){animation-duration:.32s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes pop{from{opacity:0;transform:scale(.6)}}
@keyframes nudge{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 70%,transparent)}70%,100%{box-shadow:0 0 0 10px transparent}}
@keyframes unlock{0%{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 45%,transparent)}100%{box-shadow:0 0 0 0 transparent}}
@keyframes saved{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--color-status-success) 50%,transparent)}100%{box-shadow:0 0 0 6px transparent}}
/* Help answers ease open where the browser can size to auto; elsewhere they open instantly. */
@media (prefers-reduced-motion:no-preference){.help-questions{interpolate-size:allow-keywords}.help-questions details::details-content{block-size:0;overflow:hidden;transition:block-size .25s ease,content-visibility .25s allow-discrete}.help-questions details[open]::details-content{block-size:auto}}
.path-status{margin:14px 2px 0;font-size:var(--font-size-small);color:var(--ink)}.path-status:empty{display:none}
/* End of an episode: a slim bar docked below the content (its own row, never over it) opens the sheet. */
.next-bar{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin:0;padding:10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border:0;border-top:1px solid var(--color-neutral-150);border-radius:0;background:var(--color-role-surface);color:var(--ink);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.next-bar[hidden]{display:none}
.next-bar:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
@media (prefers-reduced-motion:no-preference){.next-bar:not([hidden]){animation:fade-in .28s}}
/* GO-81: the open stage has no start card (it shows only to explain a failed start), so the courses take the full width. */
@media(min-width:760px){
.open-access .learning-layout{grid-template-columns:1fr}
.open-access body:not(.is-learning) #access:not([data-verified=true]){grid-column:1;grid-row:auto}
.open-access .path{grid-column:1}
}

/* GO-64 P1 motion: three calm moments, all off under reduced motion. Episode and course complete: the tick draws, then
   the lime dot (the alulu mark) settles beside it as the acknowledgement. The hand-off says "Opening alulu…" in the bar. */
.sheet-mark{position:relative}
.sheet-mark::after{content:'';position:absolute;right:-2px;bottom:2px;width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--surface)}
@media (prefers-reduced-motion:no-preference){
.sheet[open] .sheet-mark path{stroke-dasharray:1;stroke-dashoffset:1;animation:draw .4s cubic-bezier(.3,.7,.2,1) .2s forwards}
.sheet[open] .sheet-mark::after{animation:mark-in var(--motion-duration-base) ease-out .55s both}
}
@keyframes mark-in{from{opacity:0;transform:scale(.4)}}
/* GO-64 P1 booth view (open stage, 1024 px and wider): start card (only for a failed start, #178 review) and a black "Take it with you" QR card on the left,
   every episode in one column on the right. Phones and tablets are unchanged. */
.booth-qr{display:none}
/* Outside the media query so it holds at every width: the QR must not inherit the icon rule (svg{fill:none;stroke:currentColor}, line 16), which left a blank square, and stays black on white under forced colours. */
.booth-qr svg{flex:none;width:160px;height:160px;border-radius:var(--radius-tile);background:var(--color-brand-white);fill:var(--color-brand-black);stroke:none;forced-color-adjust:none}
@media (min-width:1024px){
.open-access body:not(.is-learning) .learning-layout{grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:start}
.open-access body:not(.is-learning) #access:not([data-verified=true]){grid-column:1;grid-row:auto;padding:40px}
.open-access body:not(.is-learning) .booth-qr{display:flex;grid-column:1;align-items:center;gap:28px;padding:32px;border-radius:var(--radius-shell);background:var(--color-role-chrome);color:var(--color-role-on-chrome)}
.booth-qr h2{font-size:var(--font-size-title);margin:0 0 8px}.booth-qr p{margin:0 0 8px;color:var(--color-role-on-chrome-muted);font-size:1.0625rem}
.booth-qr .booth-url{margin:0;color:var(--color-role-on-chrome);font-family:var(--font-family-action);font-weight:var(--font-weight-semibold);font-size:var(--font-size-heading);overflow-wrap:anywhere}
.open-access body:not(.is-learning) .path{grid-column:2;grid-row:1/span 2}
.open-access body:not(.is-learning) .path .cards{grid-template-columns:1fr;--card-height:94px}
/* GO-69 reserved space, one column here whatever the container width. */
.open-access body:not(.is-learning) .path .cards:empty{min-height:calc(var(--path-cards) * (var(--card-height) + var(--card-gap)) - var(--card-gap))}
.open-access .card-title{font-size:1.1875rem}
}
/* GO-75 audit: Help is one column at every width (the heading no longer sits alone beside the answers), kept to a reading width. */
.help-questions{max-width:720px}
/* GO-75: a held "Start episode N" says why, right under it. */
.sheet .sheet-hold{margin:-2px auto 12px;font-size:var(--font-size-small)}
@keyframes draw-on{from{mask-position:100% 0}to{mask-position:0 0}}
/* First-visit tour: one small non-modal tip beside its anchor (path.js places it) and a quiet ink outline on the anchor. */
/* Hidden unless open as a popover: a browser without popover support never shows the tour (it ignores :popover-open). */
.tour{display:none}.tour:popover-open{display:flex;flex-direction:column}
.tour{position:fixed;inset:auto;margin:0;overflow-y:auto;width:min(320px,calc(100vw - 32px));padding:16px;border:1px solid var(--color-neutral-150);border-radius:var(--radius-tile);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-menu)}
.tour p{margin:0 0 12px}
/* Read by screen readers, not shown: the tour's live announcement. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* A shortened tip (short screens) scrolls its text; the count and buttons stay in view. */
.tour #tour-text{overflow-y:auto}.tour .tour-count{margin-bottom:4px;color:var(--muted)}
.tour-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.tour .text-button{min-height:44px}.tour #tour-skip{min-width:44px;justify-content:flex-start}.tour-actions #tour-next{min-height:44px;padding:8px 20px}
.tour-target{outline:2px solid var(--ink);outline-offset:4px}.stats.tour-target,.cards.tour-target{border-radius:var(--radius-tile)}
@media (prefers-reduced-motion:no-preference){.tour:popover-open{animation:menu-in var(--motion-duration-fast) ease-out}}
/* Critique, 29 Oct (scoped to loading in the #178 review): the course frame is dark while the course loads (no white flash before dark course content). */
#player-frame:not(.loaded){background:var(--color-role-chrome)}
/* Critique, 29 Oct: on the open stage the profile link row holds its height from first paint, so Help and the footer don't move
   when the link appears with the summary. */
.open-access .path-links{min-height:44px}
/* Critique, 29 Oct: Help shows the stage's own questions from first paint (mode.js classes), so Help and the footer don't move
   when the scripts run: the open stage drops the sign-in question and shows what it keeps; a linked stage shows "What is alulu?". */
.open-access .help-questions details[data-access-help]{display:none}
.open-access .help-questions details[data-help=privacy],.alulu-linked .help-questions details[data-help=alulu]{display:block!important}
/* GO-200: an org with an entry rule. A progressive org's anonymous learner keeps the sign-in offer (not while learning); :has() outranks the open stage's :has(#status:empty). */
.entry-progressive #request{display:block}.entry-progressive #access[data-verified=anonymous]:has(#request){display:block;order:1}.is-learning #access[data-verified=anonymous]:has(#request){display:none}.open-whatsapp{display:block;margin:0 0 16px;font-weight:700;color:var(--color-role-ink)}.alulu-offer{margin:0 0 16px}.alulu-offer p{color:var(--muted);font-size:.9375rem;margin:0 0 8px}
