/* Witch of Design · colour and interaction system. Loaded last on every page, after type.css.

   INKS (printing inks, each with one job)
   --k  #101214  black: text, lines, structure. Her body.
   --c  #00A7E1  cyan: measuring. Her lead while she measures, every dimension line.
   --m  #E5007E  magenta: correcting. Her lead while she corrects, the line through what was wrong.
   --y  #FFE600  yellow: right. Her lead when it's right, the button that matters most, the star when something lands.
   --paper #FFFFFF, --paper-warm #F7F5EE (episodes, covers, print).
   A plate is a whole ground in one ink. Ground or mark, never both: a yellow plate never has a yellow button on it.
   Overprint (multiply) only in her drawings and circles, never behind text.

   TEXT ON PLATES (measured contrast)
   paper  black 18.8 : 1      cyan    black 6.8 : 1      yellow  black 14.8 : 1
   black  white 18.8 : 1      magenta white 4.5 : 1      (black on magenta is 4.1 : 1, so magenta takes white text)

   INTERACTION (one set of states for everything you can press)
   hover   lifts 2 px and tilts −1.5° (her crooked hat); cards lift 6 px
   press   squishes to 97 %, 80 ms
   focus   3 px outline in the plate's text colour, 3 px away; yellow on black and magenta
   selected black fill, ground colour text
   MOTION  fast 150 ms (hover, press) · mid 300 ms (reveal) · slow 600 ms (plates, her flights) · one curve: cubic-bezier(.2,0,0,1)
   SOUND   only ever after a tap. hm = she noticed · measure = cyan · scratch = magenta · ping = yellow · cackle = delight · whoosh = she flies
   REDUCED MOTION: no lifting, tilting, flying or wobbling; states change instantly.                                                   */
:root{
  --k:#101214; --c:#00A7E1; --m:#E5007E; --y:#FFE600; --paper:#FFFFFF; --paper-warm:#F7F5EE;
  --ink-measure:var(--c); --ink-correct:var(--m); --ink-right:var(--y);
  --m-fast:150ms; --m-mid:300ms; --m-slow:600ms; --ease:cubic-bezier(.2,0,0,1);
  --focus:3px solid currentColor;
}

/* ---------- plates: magenta and black take white text ---------- */
.p-door.m,.door.m,.band-m,.rcard.pm,.p-hero[style*="--plate:var(--m)"],.her-s[style*="--plate:var(--m)"],section[style*="--plate:var(--m)"]{color:#fff;--ink:#fff}
.p-door.m *,.door.m *,.rcard.pm *{color:inherit}
.p-hero[style*="--plate:var(--m)"] a:not(.btn):not(.cta),.her-s[style*="--plate:var(--m)"] a:not(.btn),.band-m a:not(.btn){color:#fff}
.p-hero[style*="--plate:var(--m)"] .seg a[aria-current="true"]{background:#fff;color:var(--m)}
.p-door.k,.door.k,.band-k,.her-s.dark{--ink:#fff}

/* ---------- focus: one outline, everywhere ---------- */
:focus-visible{outline:var(--focus);outline-offset:3px}
.band-k :focus-visible,.p-door.k:focus-visible,.p-door.m:focus-visible,.door.k:focus-visible,.door.m:focus-visible,.sfoot :focus-visible,.pbar :focus-visible,.her-s.dark :focus-visible,.band-m :focus-visible{outline-color:var(--y)}

/* ---------- buttons: lift and tilt on hover, squish on press ---------- */
.btn,.btn-k,.p-btn,.w-btn,.cta,.pbar nav a.help,.send,.rbtn,.p-time{transition:transform var(--m-fast) var(--ease),background-color var(--m-fast) var(--ease),color var(--m-fast) var(--ease)}
.btn:hover,.btn-k:hover,.p-btn:hover,.w-btn:hover,.cta:hover,.pbar nav a.help:hover,.send:hover,.rbtn:hover,.p-time:hover{transform:translateY(-2px) rotate(-1.5deg)}
.btn:active,.btn-k:active,.p-btn:active,.w-btn:active,.cta:active,.pbar nav a.help:active,.send:active,.rbtn:active,.p-time:active{transform:scale(.97);transition-duration:80ms}
/* a button keeps its colours on hover: the movement is the feedback */
.btn-k:hover{background:var(--k);color:#fff}
.cta:hover{background:var(--y);color:var(--k)}
.w-follow .w-btn:hover{background:var(--k)}
/* cards (doors): lift on hover, settle on press */
.p-door,.door{transition:transform var(--m-mid) var(--ease)}
.p-door:hover,.door:hover{transform:translateY(-6px)}
.p-door:active,.door:active{transform:translateY(-2px) scale(.99);transition-duration:80ms}
/* text links: the underline thickens */
a{text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
/* selected: black fill */
[aria-pressed="true"].gzleads button,.seg a[aria-current="true"]{transition:background-color var(--m-fast) var(--ease)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:0ms!important;animation-duration:0ms!important;animation-iteration-count:1!important}
  .btn:hover,.btn-k:hover,.p-btn:hover,.w-btn:hover,.cta:hover,.pbar nav a.help:hover,.send:hover,.rbtn:hover,.p-time:hover,.p-door:hover,.door:hover{transform:none}
}

/* ---------- HER GRID ----------
   One grid for every page: 12 columns, 24 px gutters, the page margin (16 → 72 px) on both sides, an 8 px step for every space.
   The grid button in the bar shows it in cyan, her measuring ink. Then whatever you point at, she measures:
   its size, the columns it sits on, and the space above it.                                                                     */
:root{--g-cols:12;--g-gutter:24px;--g-margin:clamp(16px,5vw,72px);--g-step:8px}
.wrap{max-width:none;padding-inline:var(--g-margin)}
.hergrid{position:fixed;left:0;right:0;top:56px;bottom:0;z-index:16;pointer-events:none;opacity:0;transition:opacity var(--m-mid) var(--ease);
  padding:0 var(--g-margin);display:grid;grid-template-columns:repeat(var(--g-cols),minmax(0,1fr));column-gap:var(--g-gutter);
  background-image:repeating-linear-gradient(to bottom,transparent 0 calc(var(--g-step) - 1px),rgba(0,167,225,.12) calc(var(--g-step) - 1px) var(--g-step))}
.hergrid i{display:block;background:rgba(0,167,225,.07);border-inline:1px solid rgba(0,167,225,.55);transform:scaleY(0);transform-origin:top;transition:background var(--m-fast) var(--ease),transform var(--m-slow) var(--ease)}
body.grid-on .hergrid i{transform:none}
.hergrid i:nth-child(1){transition-delay:0ms,0ms}.hergrid i:nth-child(2){transition-delay:0ms,45ms}.hergrid i:nth-child(3){transition-delay:0ms,90ms}.hergrid i:nth-child(4){transition-delay:0ms,135ms}.hergrid i:nth-child(5){transition-delay:0ms,180ms}.hergrid i:nth-child(6){transition-delay:0ms,225ms}.hergrid i:nth-child(7){transition-delay:0ms,270ms}.hergrid i:nth-child(8){transition-delay:0ms,315ms}.hergrid i:nth-child(9){transition-delay:0ms,360ms}.hergrid i:nth-child(10){transition-delay:0ms,405ms}.hergrid i:nth-child(11){transition-delay:0ms,450ms}.hergrid i:nth-child(12){transition-delay:0ms,495ms}
.hergrid i.on{background:rgba(0,167,225,.22)}
body.grid-on .hergrid{opacity:1}
@media (max-width:760px){:root{--g-cols:4;--g-gutter:16px}.hergrid i:nth-child(n+5){display:none}}
.hg-box{position:fixed;z-index:17;pointer-events:none;border:2px dashed var(--c);display:none}
.hg-lab{position:absolute;left:-2px;top:-30px;padding:3px 8px;background:var(--c);color:var(--k);font:400 12px/1.4 var(--f-num);white-space:nowrap}
.hg-gap{position:fixed;z-index:17;pointer-events:none;width:0;border-left:2px solid var(--m);display:none}
.hg-gap b{position:absolute;left:6px;top:50%;transform:translateY(-50%);padding:2px 6px;background:var(--m);color:#fff;font:400 12px/1.3 var(--f-num);white-space:nowrap}
body.grid-on .hg-box,body.grid-on .hg-gap.show{display:block}
body.grid-on,body.grid-on *{cursor:crosshair}
.pbar .gridbtn[aria-pressed="true"]{color:var(--y)}
@media (prefers-reduced-motion:reduce){.hergrid{transition:none}}
/* the lesson area sits on columns 2–11 of her grid, on wide screens the middle eight (3–10), on a phone all four */
:root{--g-colw:calc((100vw - 2 * var(--g-margin) - (var(--g-cols) - 1) * var(--g-gutter)) / var(--g-cols))}
.p-play{max-width:none;margin-inline:calc(var(--g-margin) + (100% - 2 * var(--g-margin) - 11 * var(--g-gutter)) / 12 + var(--g-gutter));padding-inline:0}
@media (min-width:1200px){.p-play{margin-inline:calc(var(--g-margin) + (100% - 2 * var(--g-margin) - 11 * var(--g-gutter)) / 6 + 2 * var(--g-gutter))}}
@media (max-width:760px){.p-play{margin-inline:var(--g-margin)}}

/* ---------- COLOUR ON THE GRID ----------
   A plate fills whole columns. The paper between two plates is a gutter. So the grid is always visible, in colour.
   Page headers are two real grid cells: the first plate on columns 1–8, a paper gutter, the second ink on 9–12 with her
   standing on the number. Widths come from the container (%), so it reflows at every size; on a phone it's one plate.     */
.p-hero.split{padding:0;background:var(--paper);display:grid;grid-template-columns:minmax(0,1fr)}
.p-hero.split .h-a{background:var(--plate);padding:clamp(18px,2.6vw,36px) var(--g-margin) clamp(16px,2.2vw,28px)}
.p-hero.split:not(.compact) .h-a{padding-block:clamp(36px,6vw,88px) clamp(32px,5vw,72px)}
.p-hero.split .h-b{display:none}
.p-hero.split[style*="--plate:var(--m)"] .h-a{color:#fff}
@media (min-width:761px){
  .p-hero.split{grid-template-columns:calc(var(--g-margin) + (100% - 2 * var(--g-margin) - 11 * var(--g-gutter)) * 8 / 12 + 7 * var(--g-gutter)) minmax(0,1fr);column-gap:var(--g-gutter)}
  .p-hero.split .h-a{padding-right:var(--g-gutter)}
  .p-hero.split .h-b{position:relative;display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;background:var(--plate2);padding:16px var(--g-margin) clamp(14px,2vw,28px) 16px;overflow:hidden;color:var(--k)}
  .p-hero.split[style*="--plate2:var(--m)"] .h-b{color:#fff}
  .h-no{font:400 clamp(56px,8vw,150px)/.8 var(--f-num);letter-spacing:-.04em;white-space:nowrap}
  .h-her{position:absolute;left:clamp(12px,2vw,28px);bottom:0;height:min(88%,240px);width:auto;overflow:visible;cursor:pointer}
  .p-hero.split[style*="--plate2:var(--m)"] .h-her [fill="#101214"],.p-hero.split.k .h-her [fill="#101214"]{fill:#101214}
}
@media (min-width:761px) and (max-width:1023px){.h-her{display:none}}
/* the lessons index: four cards a row, each on three columns, the gutter between them is the grid's */
@media (min-width:1100px){.p-doors.three{grid-template-columns:repeat(4,minmax(0,1fr))}}
.p-doors,.p-doors.three{gap:var(--g-gutter)}
.p-wrap{padding-inline:var(--g-margin)}
/* no grey text: secondary text is ink at the small size, not a lighter colour */
.small,.job,.sheet-no,.today .meta{color:inherit}

/* ---------- consistency pass, 4 October ----------
   BUTTONS: three kinds and nothing else.
   primary    52 px tall, 0 24 px, Plex Sans 500 17 px, a 2 px ink edge. Black (white text) or, for the one that matters most, yellow.
   secondary  the same size, paper or transparent, 2 px edge in the text colour.
   text       a link: Plex Sans 500 15 px, underlined, at least 44 px to tap.
   CHIPS (choices, language, tools): 44 px tall, 0 16 px, Plex Sans 500 15 px, 2 px edge; the chosen one is filled black.     */
.btn,.btn-k,.p-btn,.w-btn,.cta,.send,.her-acts .w-btn,.w-follow .w-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border:2px solid var(--k);border-radius:0;font:500 17px/1.2 var(--f-text);text-decoration:none;cursor:pointer}
.btn-k,.p-btn,.send,.w-follow .w-btn,.btn[style*="background:var(--k)"]{background:var(--k);color:#fff}
.cta,.btn{background:var(--y);color:var(--k)}
.band-k .btn,.her-s.dark .w-btn,.p-door.k .btn{border-color:var(--y)}
.p-btn.ghost,.btn.ghost{background:transparent;color:inherit;border-color:currentColor}
.linkbtn,.linkbtn2,.tools button,.gzbar button,.gzbar a,.sf-cols button{min-height:44px;padding:0;border:0;background:none;font:500 15px/1.2 var(--f-text);text-decoration:underline;text-underline-offset:3px;color:inherit;cursor:pointer}
.tools .skipbtn{padding:0 16px;background:var(--k);color:#fff;text-decoration:none}
.seg a,.pick label,.chip,.gzbar .gztog button,.yn button{min-height:44px;padding:0 16px;border-width:2px;font:500 15px/1.2 var(--f-text)}
.pick label{font-family:var(--f-text)}
/* the help bar button and the grid / sound icons keep the bar height */
.pbar nav a.help{min-height:44px;padding:0 16px;display:inline-flex;align-items:center;font:500 15px var(--f-text)}
/* LINES: 1 px hairline, 2 px line. Nothing heavier on the page (the lesson sheet draws its own frame). */
.p-time,.p-q button{border-width:2px!important}
/* the proof-sheet crop marks belonged to the first version; the grid replaces them */
.crop{display:none}
/* LABELS are Plex Sans 500, 13 px; numbers inside them stay mono where they're marked as numbers */
.p-door .top,.p-kick,.meta,.sheet-no,.kicker,.job,.today .meta,.letter{font:500 13px/1.3 var(--f-text);letter-spacing:0;text-transform:none}
/* one size per role, everywhere */
.door span,.b-more .aside,.rcard .rx,.mani .x,.prose p,.fcard dd + dd{font-size:var(--t-body)}
.fcard dd{font-family:var(--f-display);font-size:var(--t-d3)}
.card .line,.sent .big,.today .line,.corr .line,.answer{font-family:var(--f-display);font-size:var(--t-d3);line-height:1.08}
/* the paper plate in a header */
.p-hero.split[style*="--plate:#fff"] .h-a{border-bottom:2px solid var(--k)}

/* long German words break instead of pushing the page sideways */
.legal h2,.prow h2,.legal p{overflow-wrap:anywhere;hyphens:auto}
/* one Ms Gridzelda per screen: if she stands in the header, she doesn't also peek over the footer */
body:has(.h-her) .sf-peek{display:none}
.legal h2,.prow h2{hyphens:manual}
/* while she inspects, she's the only Ms Gridzelda on screen */
body.inspecting .h-her,body.inspecting #gzw,body.inspecting #fx #w,body.inspecting .sf-peek{visibility:hidden}

/* ---------- lessons + training: the task above the picture, the movable parts wiggle ---------- */
.ltask{scroll-margin-top:72px;margin-bottom:var(--s4);max-width:36em}
.ltask #prompt{font-family:var(--f-text);font-size:var(--t-lede);line-height:1.35;margin:0}
.ltask #prompt b{font-weight:600}
.lhow{margin:var(--s2) 0 0;font-family:var(--f-text);font-weight:500;font-size:15px;display:flex;align-items:center;gap:8px}
.lhow::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--c);border:2px solid var(--k);flex:none}
.lhow[hidden]{display:none}
@keyframes lwig{0%,100%{translate:0 0}25%{translate:-5px 0}75%{translate:5px 0}}
body.lhint .handle{animation:lwig .5s cubic-bezier(.2,0,0,1) 3;animation-delay:.4s;transform-box:fill-box}
@media (prefers-reduced-motion:reduce){body.lhint .handle{animation:none}}

/* ---------- we keep our own rules (self-audit 4 Oct) ----------
   every fluid space snaps to the 8 px step, every tap target is 44 px, no line runs past ~75 characters */
:root{--g-margin:round(clamp(16px,5vw,72px),8px);--pad:round(clamp(16px,5vw,72px),8px)}
.sf-cols{column-gap:round(clamp(16px,3vw,48px),8px);margin-top:round(clamp(40px,6vw,80px),8px)}
.sf-cols a,.sf-cols button{min-height:44px;display:flex;align-items:center;padding:0}
.sf-wm{padding-top:8px}
.wrow{gap:round(clamp(16px,1.6vw,24px),8px);margin-top:round(clamp(24px,3vw,40px),8px)}
.p-hero.split .h-a{padding:round(clamp(16px,2.6vw,40px),8px) var(--g-margin) round(clamp(16px,2.2vw,32px),8px)}
.p-hero.split:not(.compact) .h-a{padding-block:round(clamp(40px,6vw,88px),8px) round(clamp(32px,5vw,72px),8px)}
@media (max-width:760px){.p-hero.split .h-a{padding-right:var(--g-gutter)}}
.p-doors{gap:round(clamp(16px,2vw,24px),8px)}
.p-door{padding:round(clamp(24px,2.6vw,40px),8px)}
.bookgrid{gap:round(clamp(32px,6vw,96px),8px)}
.rules{padding-left:0}
.p-hero .p-lede{margin-top:round(clamp(16px,2.4vw,32px),8px);max-width:min(100%,60ch)}
.regcap,p.small,#main p{max-width:min(100%,68ch)}
.pbar .snd{width:44px;height:44px;margin-right:-10px}
.pbar .wm{display:inline-flex;align-items:center;min-height:44px;padding-block:0}
.sf-wm{padding-block:8px}
.door{padding:round(clamp(24px,2.6vw,40px),8px)}
.watch{padding-block:round(clamp(48px,7vw,112px),8px)}
.blk{padding-inline:var(--pad)}
main ol:not(.rules){padding-left:24px}
.w-btn ~ a,.w-btn + a{display:inline-flex;align-items:center;min-height:44px}

/* ---------- pressed and hovered states keep their contrast (4 Oct) ----------
   the old a:hover paints every link yellow; on yellow, the text must be black. Dark chrome keeps its own hover. */
.sfoot a:hover,.sfoot a:active,.sfoot a:focus{background:none}
.sfoot .sf-cols a:hover,.sfoot .sf-cols a:active{color:var(--wy)}
.sfoot .sf-wm:hover,.sfoot .sf-wm:active{color:#fff}
.pbar a:hover,.pbar a:active{background:none}
.pbar nav a:hover,.pbar nav a:active{color:var(--wy)}
.pbar .wm:hover,.pbar .wm:active{color:#fff}
.pbar nav a.help:hover,.pbar nav a.help:active{background:var(--wy);color:var(--wk)}
.pbar.lp:not(.fixed) nav a:not(.help):hover,.pbar.lp:not(.fixed) nav a:not(.help):active{color:var(--k);text-decoration:underline;text-underline-offset:4px}
.pbar.lp:not(.fixed) .wm:hover,.pbar.lp:not(.fixed) .wm:active{color:var(--k)}
.seg a:not([aria-current="true"]):hover,.seg a:not([aria-current="true"]):active{background:transparent;color:inherit;text-decoration:underline;text-underline-offset:4px}
.w-btn ~ a:not(.w-btn):hover,.w-btn ~ a:not(.w-btn):active{background:none;color:inherit;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

/* ---------- lessons: yours | hers, after she measures ---------- */
.yh{display:flex;flex-wrap:wrap;gap:8px;margin-top:var(--s4)}
.yh button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:2px solid var(--k);background:#fff;color:var(--k);font-family:var(--f-text);font-weight:500;font-size:15px;cursor:pointer}
.yh button[aria-pressed="true"]{background:var(--k);color:#fff}
.yh .dot{width:12px;height:12px;border-radius:50%;border:2px solid currentColor}
.yh .dot.m{background:var(--m)}.yh .dot.k{background:var(--k)}
.yh button[aria-pressed="true"] .dot.k{background:#fff}
.yh-ok{margin:0;font-family:var(--f-text);font-weight:500;font-size:15px;display:flex;align-items:center;gap:8px}
.yh-ok::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--y);border:2px solid var(--k)}
#svg .ghost{opacity:.28}
#svg .ghost *{fill-opacity:1}

/* ---------- audit 4 Oct: blockers ---------- */
/* the focus ring is black with a white band, so it shows on paper, on every ink and on black */
:focus-visible{outline:3px solid var(--k);outline-offset:3px;box-shadow:0 0 0 3px #fff}
.sfoot :focus-visible,.pbar :focus-visible{outline-color:var(--y);box-shadow:none}
.pbar.open nav :focus-visible{outline-color:var(--k);box-shadow:0 0 0 3px #fff}
/* the footer wordmark fits the smallest phones */
.sf-wm{font-size:clamp(40px,12.5vw,176px)}
/* Impressum and Privacy in the game's dock */
.dock-legal{display:flex;gap:16px;margin:0;font-family:var(--f-text);font-size:13px}
.dock-legal a{display:inline-flex;align-items:center;min-height:32px;color:inherit;text-decoration:underline;text-underline-offset:3px}
.dock{height:auto}
body[data-state="play"]{padding-bottom:var(--dock)}

/* she flies over the top bar when she fixes the name (and when she inspects); while the phone menu is open she steps aside */
#fx{z-index:25}
.meas{z-index:24}
body:has(.pbar.open) #fx,body:has(.pbar.open) .gz-inspect{visibility:hidden}
.meas.below b{top:calc(100% + 8px)}

/* ---------- training (4 Oct): three times in a row, a full-width timer bar in white on magenta, results from the top ---------- */
.p-times{display:grid;grid-template-columns:repeat(3,minmax(0,160px));gap:8px}
.p-time{min-width:0;padding:16px}
@media (max-width:520px){.p-time{padding:12px}.p-time b{font-size:48px}}
.p-hud{width:auto;max-width:none;margin:0;box-sizing:border-box;color:#fff;align-items:center;padding:8px var(--g-margin)}
.p-hud button{color:#fff;min-height:44px}
@media (max-width:520px){.p-hud{flex-wrap:nowrap;gap:16px;font-size:15px}.p-hud #clock{font-size:32px}}
#end{scroll-margin-top:72px}
.rules li .num{white-space:nowrap}

/* in training the timer bar sticks under the top bar, so a new round scrolls in below both */
body:has(#hud:not([hidden])) .ltask{scroll-margin-top:136px}
#main .p-hud{max-width:none}
.sp-clock{font-size:clamp(34px,4.4vw,56px);white-space:nowrap}
.sp-watch{display:block;width:clamp(64px,7vw,96px);height:auto}

/* 9 Oct · the training page is a poster on ONE centre axis: title, the giant 13 in a plate 8 columns wide, the line, the small 3.
   The numeral is centred by its ink, not by its line box (text-box trims the box to the figures), then nudged left: the 3 is heavier than the 1. */
.p-hero.t-poster{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;min-height:calc(100svh - 56px);padding:24px var(--g-margin)}
.p-hero.t-poster h1{font-size:clamp(28px,3.4vw,48px);line-height:1;max-width:none}
.t-poster .p-times{display:flex;flex-direction:column;align-items:center;gap:16px;flex:1;width:100%;margin:0}
.t-poster .p-time.big{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(16px,2.4vw,32px);width:100%;min-width:0;min-height:240px;padding:24px;background:var(--m);color:#fff;border:0!important}
.t-poster .p-time.big b{display:block;font-size:min(52vw,38svh);font-weight:500;line-height:.74;letter-spacing:-.06em;transform:translateX(-.05em);text-box:trim-both cap alphabetic}
.t-poster .p-time.big span{font-family:var(--f-text);font-size:clamp(22px,3vw,40px);font-weight:500;line-height:1}
.t-poster .t-side{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}
.t-poster .t-line{font-family:var(--f-display);font-size:clamp(28px,3.4vw,48px);line-height:1.05;text-wrap:balance}
.t-poster .p-lede{font-size:17px;line-height:1.4;margin:0;max-width:34em}
.t-poster .p-time.small{flex-direction:row;align-items:baseline;justify-content:center;gap:8px;min-width:0;padding:12px 24px;background:#fff;color:var(--k);border:2px solid var(--k)!important;font-size:17px;font-weight:500}
.t-poster .p-time.small b{font-size:32px;line-height:1}
.t-poster .seg{margin-top:0;align-self:center}
@media (min-width:900px){
  .t-poster .p-time.big,.t-poster .t-side{width:calc((100% - 11 * var(--g-gutter)) / 12 * 8 + 7 * var(--g-gutter))}
  .t-poster .p-time.big b{font-size:min(34vw,44svh)}
}
/* 9 Oct · index pages: the count stands alone in its plate, centred by its ink; paper between the header and the doors is one gutter */
.p-hero.split:not(.compact) .h-b{align-items:center;justify-content:center;padding:16px}
.p-hero.split:not(.compact) .h-no{font-size:clamp(96px,15vw,240px);line-height:.74;text-box:trim-both cap alphabetic}
.p-hero.split + .p-wrap{padding-top:var(--g-gutter)}
/* 9 Oct · lesson doors: one left edge per door (number, specimen, title, text), and every specimen fits inside its door */
.p-doors .p-door .spec{justify-content:flex-start;padding-inline:0}
.p-doors .sp-gap{font-size:60px}
.p-doors .on .sp-first span:nth-child(1){font-size:38px}.p-doors .on .sp-first span:nth-child(2){font-size:22px}
.p-doors .sp-edge span:nth-child(2){font-size:34px}
.p-doors .sp-edge span:nth-child(3){margin-left:12px}

/* 9 Oct · About: her headline, one sentence, then where she comes from */
.p-hero.about-top{background:#fff;padding:clamp(40px,6vw,88px) var(--g-margin) clamp(32px,5vw,64px)}
.about-top .about-what{margin-top:var(--s6);max-width:30em}
.story{display:flex;flex-direction:column;gap:var(--s5)}
.story-q{margin:0;font-family:var(--f-display);font-size:clamp(30px,4.4vw,68px);line-height:1.04;max-width:20em;text-wrap:balance}
.story .lede{max-width:34em;font-size:var(--t-lede);line-height:1.45}
.sheet.band-m .cform label,.sheet.band-m .small,.sheet.band-m .small a{color:#fff}
/* 9 Oct · the pumpkin on the training poster: five perfect circles, magenta over the yellow page prints orange. Press it and it gets a face. */
.t-pumpkin{position:absolute;left:var(--g-margin);bottom:24px;width:clamp(64px,13vw,200px);padding:0;border:0;background:none;cursor:pointer;transition:transform var(--m-fast) var(--ease)}
.p-hero.t-poster{position:relative}
.t-pumpkin svg{display:block;width:100%;height:auto;overflow:visible}
.t-pumpkin .lobes circle{fill:#E5007E;fill-opacity:.38;mix-blend-mode:multiply}
.t-pumpkin .face path{fill:#101214;opacity:0;transition:opacity var(--m-fast) var(--ease)}
.t-pumpkin[aria-pressed="true"] .face path{opacity:1}
.t-pumpkin:hover{transform:rotate(-4deg) scale(1.05)}
.t-pumpkin:active{transform:scale(.95)}
.t-pumpkin:focus-visible{outline:3px solid var(--k);outline-offset:6px}
@media (prefers-reduced-motion:reduce){.t-pumpkin,.t-pumpkin .face path{transition:none}.t-pumpkin:hover{transform:none}}

/* 9 Oct (Nina): her A0 sentence on About is set in italic; the number stays upright */
.story-q{font-style:italic}.story-q .num{font-style:normal}

/* 9 Oct (Nina): the big number beside the lesson titles said nothing and took half the first screen. Lessons get a slim title strip:
   title and one line on the left, the language switch on the right, and the doors / the exercise start right under it. */
.p-hero.split.slim{grid-template-columns:minmax(0,1fr);column-gap:0}
.p-hero.split.slim .h-a{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--g-gutter);align-items:end;padding:24px var(--g-margin)}
.p-hero.split.slim.compact .h-a{padding-block:16px}
.p-hero.split.slim .h-a > *{grid-column:1}
.p-hero.split.slim .h-a > .seg{grid-column:2;grid-row:1 / span 4;align-self:end;margin:0}
.p-hero.split.slim h1{font-size:clamp(34px,4.6vw,64px);line-height:1;max-width:none}
.p-hero.split.slim.compact h1{font-size:clamp(28px,3.4vw,48px)}
.p-hero.split.slim .p-lede{font-size:17px;line-height:1.4;margin-top:8px;max-width:72ch;display:block;overflow:visible}
.p-hero.split.slim.compact .p-lede{font-size:15px}
.p-hero.split.slim .p-kick{margin-bottom:4px}
@media (max-width:760px){.p-hero.split.slim .h-a{grid-template-columns:minmax(0,1fr);row-gap:0}.p-hero.split.slim .h-a > .seg{grid-column:1;grid-row:auto;margin-top:12px;justify-self:start}}

/* ---------- 9 Oct, evening: the lesson as a workbench (Nina: "redesign the whole thing in a way that it makes sense").
   One screen, two parts. Left: where you are, what to do, the one button, and after measuring her verdict and the rule.
   Right: the sheet, as big as the screen allows, with her on it. Nothing is said twice, nothing waits below the fold. */
.p-play.bench{max-width:none;margin-inline:var(--g-margin);padding:24px 0 clamp(32px,5vw,64px)}
.bench .ltask{max-width:none;margin:0}
.bench .ltask #prompt{font-family:var(--f-display);font-size:clamp(24px,2.3vw,36px);line-height:1.1;text-wrap:balance}
.bench .ltask #prompt b{font-weight:400;display:block;font-family:var(--f-text);font-size:15px;font-weight:600;margin-bottom:6px}
.bench .lhow{margin-top:12px}
.bench .lfoot{flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:flex-start;gap:16px;min-height:0;margin-top:0}
.bench .ltext{flex:none;max-width:none;gap:8px}
.bench .ltext:not(:has(> :not([hidden]):not(:empty))){display:none}
.bench #go{min-height:56px;padding:0 32px;font-size:19px}
.bench .verdict{font-size:clamp(26px,2.4vw,38px);line-height:1.05;text-wrap:balance}
.bench #why{font-size:16px;line-height:1.45}
.bench .yh{margin-top:0}
.bench .lctl{margin-top:0}
.bench .p-learn{margin-top:8px;font-size:15px}
.bench .p-learn p{margin:8px 0 12px}
.bench .tally{margin:0}
@media (min-width:1000px){
  .p-play.bench{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);grid-template-rows:repeat(5,auto) 1fr;column-gap:calc(var(--g-gutter) * 2);row-gap:20px;align-items:start}
  .bench > #play:not([hidden]){display:contents}
  .bench > .sent,.bench > #end{grid-column:1 / -1}
  .bench > .tally{grid-column:1;grid-row:1}
  .bench .ltask{grid-column:1;grid-row:2}
  .bench .lctl{grid-column:1;grid-row:3}
  .bench .lctl:empty{display:none}
  .bench .yh{grid-column:1;grid-row:4}
  .bench .lfoot{grid-column:1;grid-row:5}
  .bench > .p-learn{grid-column:1;grid-row:6;align-self:end}
  .bench .lstage{grid-column:2;grid-row:1 / 7;position:sticky;top:72px;max-height:calc(100svh - 96px);aspect-ratio:1000 / 600;width:100%;justify-self:end}
  .bench:has(> #play[hidden]) > .tally,.bench:has(> #play[hidden]) > .p-learn{grid-column:1 / -1;grid-row:auto}
}
@media (max-width:999px){.bench #play{display:flex;flex-direction:column;gap:16px}.bench .tally{margin-bottom:16px}.bench .lfoot{order:5}}

/* the left column closes up when a part is hidden: no row gaps, each part brings its own space */
@media (min-width:1000px){.p-play.bench{row-gap:0}.bench > .tally,.bench .ltask,.bench .lctl,.bench .yh{margin-bottom:20px}.bench .lfoot{margin-bottom:24px}}
.bench .ltask:not(:has(> :not([hidden]))){display:none}
/* the end of a lesson: your result on the left, the next lessons as doors on the right, not a long list */
.bench #end .coming{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:none}
.bench #end .coming li{border:0;padding:0;font-size:22px}
.bench #end .coming li:last-child{border:0}
.bench #end .coming a{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:88px;padding:12px 14px;border:2px solid var(--k);background:#fff;transition:transform .15s var(--e,ease),background-color .15s}
.bench #end .coming a:hover{background:var(--y);transform:translateY(-3px)}
.bench #end .coming li:last-child a{background:var(--k);color:#fff}
.bench #end .coming li:last-child a:hover{background:var(--m)}
@media (min-width:1000px){
  .bench > #end:not([hidden]){display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:calc(var(--g-gutter) * 2);row-gap:20px;align-items:start}
  .bench > #end > *{grid-column:1}
  .bench > #end > :last-child{grid-column:2;grid-row:1 / span 8}
  .bench #end .coming{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){.p-hero.split.slim.compact .h-a > .seg{margin-top:8px}.p-hero.split.slim.compact .seg a{min-height:36px;padding:0 12px;font-size:14px}}
.bench #end .coming li{display:flex}.bench #end .coming a{flex:1}

/* ---------- 22 Oct: door 12, the pumpkin party. Three house fonts on the invitation, then two (the door's .on state). */
.sp-party{display:flex;flex-direction:column;align-items:flex-start;line-height:1}
.sp-party b{font:400 34px/1 var(--f-display)}
.sp-party i{font:500 22px/1.1 var(--f-num);font-style:normal;transition:font-family 0s}
.sp-party u{text-decoration:none;font:italic 400 16px/1.3 var(--f-display)}
.p-door.on .sp-party i{font:500 22px/1.1 var(--f-text)}
.p-door.on .sp-party u{font:400 16px/1.3 var(--f-text)}

/* phones: small text links get a taller tap area without moving the text (23 Oct) */
.p-kick a,.pager a{display:inline-block;padding:6px 0;margin:-6px 0}

/* ---------- 2 Nov: under the lesson: what she measures, closed, then the next lesson. It sits below the game and never moves it. ---------- */
.l-below{margin:0 var(--g-margin);padding:0 0 clamp(40px,6vw,72px)}
.l-note{border-top:2px solid var(--k);border-bottom:2px solid var(--k);max-width:44em}
.l-note summary{display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 0;cursor:pointer;list-style:none}
.l-note summary::-webkit-details-marker{display:none}
.l-note summary::before{content:"+";flex:none;display:inline-grid;place-items:center;width:28px;height:28px;border:2px solid var(--k);font:500 18px/1 var(--f-num)}
.l-note[open] summary::before{content:"\2013"}
.l-note summary h2{margin:0;font-family:var(--f-display);font-weight:400;font-size:clamp(24px,2.3vw,32px);line-height:1.1}
.l-note summary:hover h2{box-shadow:inset 0 -.32em 0 var(--y)}
.l-note-in{display:grid;gap:14px;padding:6px 0 24px;font-family:var(--f-text);font-size:17px;line-height:1.55}
.l-note-in p{margin:0}
.l-note-in .num{font-size:.92em}
.l-next{margin:16px 0 0;font-weight:500;max-width:44em}
.l-next a{display:inline-flex;align-items:center;min-height:44px}
/* the end screen's small headings are filled by the script, so they are not empty headings in the page */
.endcol .ehead{font-family:var(--f-display);font-weight:400;font-size:32px;line-height:1.1}
/* tests: headings in order, with the look they had */
.sheet .prose h2.as-h3{font-family:var(--f-display);font-weight:400;font-size:32px;line-height:1.1}
.sheet .prose h2.as-h3:not([style]){margin-top:var(--s5)}
/* her page: what she is, in words, under the drawing sheet */
.her-def{padding:clamp(24px,4vw,48px) var(--g-margin);border-top:2px solid var(--k);background:var(--y)}
.her-def p{margin:0;max-width:38em;font-family:var(--f-text);font-size:clamp(18px,1.6vw,22px);line-height:1.4}
/* press */
.pr-rule{margin-top:var(--s4)}
.pr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--col-gap,24px);margin-top:var(--s6)}
@media (max-width:900px){.pr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pr-item{margin:0;min-width:0}
.pr-g{display:grid;place-items:center;aspect-ratio:1;padding:12%;border:2px solid var(--k);background:#fff}
.pr-g.y{background:var(--y)}
.pr-g svg{display:block;width:100%;height:100%}
.pr-item figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;margin-top:8px}
.pr-item figcaption b{flex:1 0 100%;font-weight:500}
.pr-item figcaption a{display:inline-flex;align-items:center;min-height:44px}

/* ---------- 3 Nov, round 2: running text at a measure she would pass (about 31em, under 75 characters) ---------- */
.l-note{max-width:44em}.l-note-in,.l-next{max-width:31em}
.p-hero .p-lede,.about-what,.her-def p,.prose,.why2t,.legal .plist p,.legal p,.pr-rule,.ss-intro{max-width:31em!important}   /* !important: older, more specific rules set wider measures */
.nojs{margin:12px 0;padding:12px 16px;border:2px solid var(--k);background:#fff;font-size:16px;line-height:1.45;max-width:31em}
.t-fail{margin-top:16px;padding:12px 16px;background:#fff;border:2px solid var(--k);max-width:31em;font-weight:500}
.p-door .for{display:block;font-size:14px;line-height:1.3;margin-top:6px;font-weight:500}
.pr-wide{grid-column:1 / -1;margin-top:var(--s6)}
.pr-wide img{display:block;width:100%;height:auto;max-width:900px;border:2px solid var(--k)}
.forget .btn{background:var(--k);color:#fff}
.l-note[open] summary::before{content:"\2212"}

/* ---------- round 12 (A): the people test ---------- */
/* the free places left, counted down in site_settings.py */
.left-n{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px;margin-top:var(--s4);padding:6px 12px;background:#fff;color:var(--k);border:2px solid var(--k);font:500 16px/1.3 var(--f-text)}
.left-n .num{font-family:var(--f-num);font-weight:400}.left-n b.num{font-size:1.25em}
.p-hero .left-n{margin-top:var(--s5)}.p-hero .left-n + .pc-cta{margin-top:var(--s4)}
.why2t .left-n{margin-top:var(--s4)}
/* prices: the text face, in one piece (the mono comma read as a gap) */
.price{font-family:var(--f-text);white-space:nowrap}
.nobr{white-space:nowrap}
/* the check form and the group form: the words beside the form, the form on the right */
.of-side{grid-column:1 / span 5}.of-main{grid-column:7 / -1;min-width:0}
@media (max-width:900px){.of-side,.of-main{grid-column:1 / -1}.of-main{margin-top:var(--s5)}}
.of-notes{margin-top:var(--s4)}
.ofm textarea{min-height:96px;overflow:hidden}
.ofm [aria-invalid="true"]{border-color:var(--m);box-shadow:0 0 0 3px var(--m)}
.sheet.band-c .cform label,.sheet.band-c .small,.sheet.band-c .small a{color:var(--k)}
/* a jump to a form or a heading stops below the sticky bar */
[id]{scroll-margin-top:72px}
/* every form control in the house colours: no default blue anywhere */
input[type=checkbox],input[type=radio],input[type=range],progress,meter{accent-color:var(--k)}
.band-m input[type=checkbox],.band-m input[type=radio]{accent-color:#fff}
select{-webkit-appearance:none;appearance:none;min-height:44px;padding:8px 40px 8px 12px;border:2px solid var(--k);border-radius:0;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23101214' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center/18px no-repeat;color:var(--k);font:inherit;cursor:pointer}
select:focus-visible{outline:3px solid var(--k);outline-offset:2px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea{border-radius:0}
input::placeholder,textarea::placeholder{color:#5b5e63;opacity:1}
/* phones: links in running text keep a large tap area without loosening the lines or breaking before a comma */
@media (max-width:760px){.lede a:not(.btn):not(.p-btn),.prose a:not(.btn):not(.p-btn){display:inline;padding-block:9px}}
/* the menu: Daily, the check, the group (and the teacher page). Phones: in the yellow panel, smaller. Wider: a second row that scrolls away. */
.pbar .n2{display:none}
.pbar2{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:0 clamp(16px,2.4vw,32px);padding:0 var(--wpad);background:var(--wk);border-top:1px solid rgba(255,255,255,.22);font:400 15px/1 var(--f-text)}
.pbar2 a{display:inline-flex;align-items:center;min-height:44px;color:#fff;text-decoration:none;white-space:nowrap}
.pbar2 a:hover,.pbar2 a[aria-current="page"]{color:var(--wy)}
.pbar2 :focus-visible{outline-color:var(--y)}
@media (max-width:760px){
  .pbar2{display:none}
  .pbar nav{overflow-y:auto}
  .pbar nav a.n2{display:block;font-size:26px;line-height:1.15;padding:6px 0}
  .pbar nav a.n2:first-of-type,.pbar nav a:not(.n2) + a.n2{margin-top:12px}
}
@media (max-width:760px) and (max-height:700px){.pbar nav{padding-block:20px}.pbar nav a:not(.n2):not(.help):not(.langt){font-size:34px}.pbar nav a.n2{font-size:22px;padding:4px 0}.pbar nav a.help{margin-top:10px;font-size:26px}}
/* a plate with no number shows her on tablets too (it stood empty on iPad portrait) */
@media (min-width:761px) and (max-width:1023px){.h-b.nono .h-her{display:block;left:50%;transform:translateX(-50%);height:min(84%,220px)}}
/* lesson engine (B) · 3 Nov, round 2: keyboard hint, still outlines, one quiet result line, pause, follow */
.lsr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.lkeys{display:none;margin:6px 0 0 20px;font-family:var(--f-text);font-size:14px;line-height:1.35;color:var(--k)}
@media (any-hover:hover) and (any-pointer:fine){.lkeys:not([hidden]){display:block}}
.ltask:has(.handle:focus-visible) .lkeys:not([hidden]),.p-play:has(.handle:focus-visible) .lkeys:not([hidden]){display:block}
#svg .lout{fill:none;stroke:var(--c);stroke-width:3;stroke-dasharray:10 7;vector-effect:non-scaling-stroke}
#svg:not(.ldrag) .lout{display:none}
#svg .handle[aria-disabled="true"]{cursor:default}
#prompt:focus,.ltext:focus,#svg:focus,.bigscore:focus,#verdict:focus{outline:none;box-shadow:none}
#play.lpaused .lstage,#play.lpaused .lctl{pointer-events:none}
.p-hud #pause{margin-left:auto}
.p-hud #pause + #stop{margin-left:0}
.p-hud #pause,.p-hud #stop{white-space:nowrap}
.p-hud #pause{min-width:44px}
@media (max-width:520px){.p-hud{gap:12px}.p-hud #tstat{min-width:0;flex:1 1 auto;font-size:14px;line-height:1.2}.p-hud #pause{margin-left:0}}
.lfollow{margin:0;font-family:var(--f-text);font-weight:500}
.lfollow a{display:inline-flex;align-items:center;min-height:44px}
/* 3 Nov: the four plates slide in from outside; they never widen the page */
.about-top{overflow-x:clip}
/* lesson engine (B) · round 3: touch screens get the tap lines as 44 px buttons, and nudge buttons after the first drag */
.lctl .ltog{display:flex;flex-direction:column;gap:8px;width:100%}
.lctl .ltog button{display:flex;align-items:center;gap:10px;min-height:44px;width:100%;padding:8px 14px;border:2px solid var(--k);background:#fff;color:var(--k);font:400 16px/1.25 var(--f-text);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lctl .ltog button::before{content:"";flex:none;width:14px;height:14px;border:2px solid currentColor;border-radius:50%}
.lctl .ltog button[aria-pressed="true"]{background:var(--k);color:#fff;font-weight:600}
.lctl .ltog button[aria-pressed="true"]::before{background:var(--y);border-color:var(--y)}
.lctl .ltog button:disabled{opacity:.55;cursor:default}
.lctl .lnudge{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;width:100%}
.lctl .lnudge[hidden],.lctl .lnudge.off,#play.lpaused .lnudge{display:none}
.lnudge-l{font:500 15px/1.3 var(--f-text)}
.lnudge-b{display:flex;gap:8px}
.lnudge-b button{min-width:52px;min-height:44px;border:2px solid var(--k);background:#fff;color:var(--k);font:500 22px/1 var(--f-num);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.lnudge-b button:active{background:var(--y)}

/* 3 Nov: the eye test's score card buttons */
.eye-card{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.eye-card .btn{background:var(--y);color:var(--k)}
.eye-card .note{flex-basis:100%;margin:0}
.her-visit{margin:12px 0 0}.her-visit a{display:inline-flex;align-items:center;min-height:44px;font-weight:500;color:inherit}

/* 4 Nov: the yellow story on /about at the same measure as the rest */
.story .lede,#who .lede{max-width:31em!important}
/* lesson engine (B) · round 4: nothing under 16 px; short screens (sideways at 200 % text) fit the drawing, the nudge row and Measure on one screen */
.lhow,.lkeys,.lnudge-l{font-size:16px}
@media (max-width:520px){.p-hud #tstat{font-size:16px}}
@media (max-width:700px) and (orientation:landscape){.lstage{aspect-ratio:1000 / 600}}
@media (max-width:760px) and (max-height:520px){
  .lstage{width:min(100%, calc((100svh - 196px) * 1000 / 600));margin-inline:auto}
  body:has(#hud:not([hidden])) .lstage{width:min(100%, calc((100svh - 256px) * 1000 / 600))}
}
/* lesson engine (B) · round 6: hard mode switch, hidden numbers, Measure always in reach, score on one line */
.lhard{display:flex;align-items:center;gap:10px;min-height:44px;margin:10px 0 0;padding:0;border:0;background:none;color:var(--k);font:400 16px/1.3 var(--f-text);text-align:left;cursor:pointer}
.lhard b{font-weight:600}
.lhard-k{flex:none;position:relative;width:40px;height:24px;border:2px solid var(--k);border-radius:12px;background:#fff}
.lhard-k::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--k);transition:left .15s}
.lhard[aria-checked="true"] .lhard-k{background:var(--m)}
.lhard[aria-checked="true"] .lhard-k::after{left:18px;background:#fff}
@media (prefers-reduced-motion:reduce){.lhard-k::after{transition:none}}
.lctl output.lhid{font-family:var(--f-text);font-style:italic;opacity:.7}
#end .bigscore #total{white-space:nowrap}
#end .bigscore #t-unit{display:block}
.lmail{display:block;margin-top:12px}
.lmail a{display:inline-flex;align-items:center;min-height:44px}
/* the button stays on screen while you set things (phones, and Practice at any width); it sits back in its place once she measures */
@media (max-width:999px){.bench #play.ldragph .lfoot{position:sticky;bottom:0;z-index:4;background:#fff;padding:8px 0 calc(8px + env(safe-area-inset-bottom));box-shadow:0 -2px 0 var(--k)}}
.p-play:not(.bench) #play.ldragph .lfoot{position:sticky;bottom:0;z-index:4;background:#fff;padding:8px 0 calc(8px + env(safe-area-inset-bottom));box-shadow:0 -2px 0 var(--k)}

/* ---------- 3 Nov, round 6 (A) ---------- */
.nb{white-space:nowrap}                                                   /* a bracket stays with its link */
.story-fig{margin:0}.story-by{margin-top:14px;font:500 15px/1.3 var(--f-text)}.story-by::before{content:"— "}
.beliefs{list-style:none;margin:var(--s5) 0 0;padding:0;display:grid;gap:var(--s5);max-width:40em}
.beliefs li{border-top:2px solid var(--k);padding-top:var(--s4)}.beliefs .rs{font:400 clamp(26px,3vw,40px)/1.05 var(--f-display);margin:0}.beliefs .rx{margin:8px 0 0;max-width:31em;font-size:17px;line-height:1.5}
.mk{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--s4) var(--s6);margin:var(--s5) 0 0}
.mk div{border-top:2px solid var(--k);padding-top:10px}.mk dt{font:500 14px var(--f-text)}.mk dd{margin:4px 0 0;font:400 clamp(22px,2.4vw,30px)/1.15 var(--f-display)}.mk .mk-d{display:block;font:400 13px var(--f-num)}
.ac-list{margin:0;padding-left:1.1em;display:grid;gap:10px;max-width:31em;font-size:17px;line-height:1.5}
.cg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--col-gap,24px);margin-top:var(--s5);max-width:900px}
@media (max-width:560px){.cg-grid{grid-template-columns:minmax(0,1fr)}}
.cg-pose .pr-g{aspect-ratio:4/5}.cg-note{flex:1 0 100%;font-size:15px;line-height:1.4;margin:4px 0 2px}
.l-note-in p,.prose p,.lede{text-wrap:pretty}
.p-door .p-done{background:#101214;color:#fff}                          /* readable on every card colour (was white on white on magenta) */
#eye-end .lede a{display:inline;padding:0}                               /* even leading around the link */

/* 3 Nov: the lesson 02 card sets YOGA as the lesson does now, in Plex Sans 500 */
.sp-gap{font-family:var(--f-text);font-weight:500;font-size:70px}

/* ---------- 3 Nov, round 7: the portfolio check and the group ---------- */
.pc-cta{margin-top:var(--s5)}.pc-cta .btn{background:var(--k);color:#fff}
.pc-steps{margin:0;padding-left:1.4em;display:grid;gap:10px;max-width:31em;font-size:17px;line-height:1.5}
.smp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.smp-grid{grid-template-columns:minmax(0,1fr)}}
.smp img{display:block;width:100%;height:auto;border:2px solid var(--k)}
.wdr h3{font:500 17px var(--f-text);margin:var(--s4) 0 6px}.wdr p,.wdr li{font-size:15px;line-height:1.5;max-width:40em}
/* round 8: the withdrawal text waits, closed, for paid checks and seats */
.wdr-box{margin-top:var(--s4);max-width:44em}.wdr-box summary{display:flex;align-items:center;min-height:44px;font:500 16px var(--f-text);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.wdr-box .p-h2{font-size:clamp(26px,3vw,36px);margin-top:var(--s4)}
/* lesson engine (B) · round 12: the counter never wraps; Practice in landscape keeps the sliders and the picture on one screen; the daily list says what she measured */
.tally .num{white-space:nowrap}
@media (orientation:landscape) and (max-height:900px){.p-play:not(.bench) .lstage{width:min(100%, max(360px, calc((100svh - 500px) * 1000 / 600)));margin-inline:auto}}
#end .rules li .dres-t{display:block}
#end .rules li .dres-r{display:block;font-family:var(--f-text);font-size:16px;line-height:1.35;opacity:.8}
