/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dusk (by request) · redesign: full
 * nav: kept, a top bar with the chapter rail docked beside it on wide screens · signature: the drill card, a bone well on slate with the clock and the checklist · states: loading, full, done, not written, could not load · dusk: wing/periwinkle-apricot/well
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: none under 4; the gold accent, the mono caps labels and the boxed chips were cut to earn the restraint */
/* Hallmark · answered F7 · every pill listed is a button or a link styled as a button; the bars and tracks take a small radius */

/* The member area and the free sample. Colours, faces and spacing come from
   tokens.css, which every page links first; nothing here names a colour.

   What the drill needs from this file is written down in CLAUDE.md and is not
   decoration: the answer block keeps its space while hidden, the rating bar is
   sticky at the bottom, and .panel never gets overflow:hidden (it would make
   the panel a scroll container and the rating bar would stop sticking).
   overflow:clip is safe: it clips the corners and creates no scroll container. */

body{padding:var(--space-lg) var(--space-md) var(--space-2xl);}
.shell{max-width:760px;margin:0 auto;}
/* The two pages that carry the drill. On a desktop the column is wider, so a
   question and its answer sit side by side and the whole card fits one
   screen; the title and the tally share a row, because every row above the
   card pushes the card down. */
@media (min-width:700px){
  .shell-drill{display:grid;grid-template-columns:minmax(0, 1fr) auto;column-gap:var(--space-lg);align-items:end;}
  .shell-drill > *{grid-column:1 / -1;min-width:0;}
  .shell-drill > h1{grid-column:1;margin-bottom:var(--space-md);}
  .shell-drill > .stats{grid-column:2;margin-bottom:var(--space-md);}
  .shell-drill .stat{flex:none;display:flex;align-items:baseline;gap:var(--space-xs);}
  .shell-drill .stat b{font-size:var(--text-xl);margin:0;}
}
/* From 1000px the drill takes the member column (--member-w, tokens.css),
   the same as the Course page, the dashboard and the inside of the bar, so
   all of them share one left and one right edge. */
@media (min-width:1000px){
  .shell-drill{max-width:var(--member-w);}
}
.mono{font-variant-numeric:tabular-nums;}

/* ---- chapter head ---- */
.crumb{font-size:var(--text-sm);color:var(--dim);margin-bottom:var(--space-2xs);}
/* on a chapter: where it sits in the course, and the way up to the list */
.trail{display:flex;align-items:center;gap:var(--space-xs);}
.trail a{color:var(--dim-2);text-decoration:none;border-radius:var(--space-2xs);}
.trail a:hover{color:var(--paper);text-decoration:underline;}
.trail-sep{color:var(--dim);}
h1{font-size:var(--text-3xl);margin:0 0 var(--space-lg);}
.stats{display:flex;margin-bottom:var(--space-md);}
.stat{flex:1;padding:0 var(--space-md);border-left:1px solid var(--surface-3);}
.stat:first-child{padding-left:0;border-left:0;}
.stat:last-child{padding-right:0;}
.stat b{display:block;font-family:var(--font-display);font-size:var(--text-2xl);font-weight:500;line-height:1;
  margin-bottom:var(--space-2xs);font-variant-numeric:tabular-nums;color:var(--paper);}
.stat span{font-size:var(--text-sm);color:var(--dim);white-space:nowrap;}
.stat.g b{color:var(--green-hi);} .stat.a b{color:var(--warn-hi);} .stat.m b{color:var(--magenta-hi);}
.bar{position:relative;z-index:var(--z-dropdown);height:4px;background:var(--surface-2);border-radius:var(--space-3xs);display:flex;margin-bottom:var(--space-xs);}
/* Each colour glows a little under the mouse and says what it is, so pink
   reads as "your weak set" and not as a mystery. Not clipped by the bar (no
   overflow:hidden) so the label can hang below it; each piece rounds its own
   ends instead. A 4px bar is hard to hit, so ::before widens the target. */
.bar i{position:relative;height:100%;border-radius:var(--space-3xs);
  transition:box-shadow var(--dur-micro) var(--ease-out), filter var(--dur-micro) var(--ease-out);}
.bar i::before{content:"";position:absolute;left:0;right:0;top:calc(-1 * var(--space-xs));bottom:calc(-1 * var(--space-xs));}
.bar i::after{content:attr(data-tip);position:absolute;top:calc(100% + var(--space-sm));left:50%;translate:-50% 4px;z-index:var(--z-tooltip);
  width:max-content;max-width:min(32ch, 80vw);padding:var(--space-xs) var(--space-sm);border-radius:var(--radius-inner);
  background:var(--surface-2);color:var(--paper);border:1px solid var(--surface-3);box-shadow:var(--shadow-lift);
  font-size:var(--text-sm);font-style:normal;line-height:1.4;pointer-events:none;
  opacity:0;visibility:hidden;transition:opacity var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out), visibility 0s linear var(--dur-micro);}
.bar .g::after{left:0;translate:0 4px;}
.bar i:hover{filter:brightness(1.15);}
.bar i:hover::after{opacity:1;visibility:visible;translate:-50% 0;transition-delay:0s;}
.bar .g:hover::after{translate:0 0;}
.bar .g:hover{box-shadow:0 0 10px 1px color-mix(in oklab, var(--green-hi) 70%, transparent);}
.bar .a:hover{box-shadow:0 0 10px 1px color-mix(in oklab, var(--warn-hi) 70%, transparent);}
.bar .m:hover{box-shadow:0 0 10px 1px color-mix(in oklab, var(--magenta-hi) 70%, transparent);}
.bar i:not([style*="width"]), .bar i[style*="width: 0%"]{pointer-events:none;}
.bar .g{background:var(--green-hi);} .bar .a{background:var(--warn-hi);} .bar .m{background:var(--magenta-hi);}
/* the grey rest: "Not started", its label hung from the right end */
.bar i.n{flex:1;background:transparent;pointer-events:auto;}
.bar .n[hidden]{display:none;}
.bar .n:hover{background:var(--surface-3);filter:none;}
.bar .n::after{left:auto;right:0;translate:0 4px;}
.bar .n:hover::after{translate:0 0;}
/* Built by drill-engine.js, so every chapter gets it. Quiet on purpose: it
   wipes real work, so it should never be the easiest thing to hit. */
.chapctl{display:flex;justify-content:flex-end;margin-top:var(--space-sm);}
.resetlink{background:none;border:0;padding:var(--space-xs) 0;color:var(--dim);font-size:var(--text-sm);}
.resetlink:hover{color:var(--magenta-hi);}

/* ---- mode switch ----
   Three tabs in one row: an icon and a word each, a hairline between them,
   and the open one underlined in the signal colour. The owner asked for the
   dividers and the icons; a row of three bare words read as unfinished. The
   icons are drawn here as masks, so neither page carrying the tabs changed. */
.modes{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));
  border-top:1px solid var(--surface-3);border-bottom:1px solid var(--surface-3);margin-bottom:var(--space-sm);}
.modes button{position:relative;display:flex;align-items:center;justify-content:center;background:none;border:0;
  border-left:1px solid var(--surface-3);padding:0 var(--space-sm);min-height:48px;color:var(--dim);}
.modes button:first-child{border-left:0;}
.modes button b{display:flex;align-items:center;gap:var(--space-xs);font-size:var(--text-md);font-weight:500;color:inherit;white-space:nowrap;}
.modes button b::before{content:"";width:18px;height:18px;flex:0 0 auto;background:currentColor;
  -webkit-mask:var(--tab-icon) center / contain no-repeat;mask:var(--tab-icon) center / contain no-repeat;}
.modes [data-mode="ref"]{--tab-icon:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E");}
.modes [data-mode="drill"]{--tab-icon:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E");}
.modes [data-mode="test"]{--tab-icon:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 17 2 2 4-4'/%3E%3Cpath d='m3 7 2 2 4-4'/%3E%3Cpath d='M13 6h8'/%3E%3Cpath d='M13 12h8'/%3E%3Cpath d='M13 18h8'/%3E%3C/svg%3E");}
/* the line under each tab is gone from view: the hint below the tabs says the
   same thing about the mode that is open */
.modes button small{display:none;}
.modes button:hover{color:var(--paper);}
.modes button.on{color:var(--paper);}
.modes button.on b{font-weight:600;}
.modes button.on b::before{background:var(--brand);}
.modes button.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--brand);}
.crossnote{font-size:var(--text-sm);color:var(--dim);margin:0 0 var(--space-xs);line-height:1.5;max-width:65ch;}
/* On the drill pages it is not shown at all. It was two lines that existed in
   one mode only, so every change of tab moved the card by their height. */
.shell-drill .crossnote{display:none;}
/* the slot under the tabs: three hints stacked in one cell, one visible. It is
   as tall as the tallest, so changing tab does not move what is below it */
.modehint{display:grid;font-size:var(--text-sm);color:var(--dim);margin:0 0 var(--space-md);line-height:1.5;}
.mh{grid-area:1 / 1;align-self:center;visibility:hidden;min-height:44px;display:flex;align-items:center;}
.mh.on{visibility:visible;}
/* Drill is the mode people quietly cheat on by reading silently, so this one
   is allowed to be large. It spans the column: a headline with its mark, three
   reasons side by side, then the closing line with the button beside it. */
.mh > .loud{flex:1;}
.modehint .loud{display:grid;grid-template-columns:minmax(0, 1fr) auto;gap:var(--space-md) var(--space-lg);align-items:center;
  background:var(--surface-2);border-radius:var(--radius-card);padding:var(--space-lg);color:var(--paper);}
.modehint .loud p{margin:0;}
.loud-top{grid-column:1 / -1;display:flex;align-items:center;gap:var(--space-md);}
.loud-mark{flex:0 0 auto;display:grid;place-items:center;width:48px;height:48px;border-radius:var(--radius-pill);
  background:color-mix(in oklab, var(--brand) 22%, transparent);}
.loud-mark::before{content:"";width:24px;height:24px;background:var(--brand-bright);
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E") center / contain no-repeat;}
.modehint .loud .loud-head{font-family:var(--font-display);font-size:var(--text-2xl);font-weight:500;line-height:1.15;text-wrap:balance;
  letter-spacing:var(--tracking-display);color:var(--paper);}
.modehint .loud .loud-lead{margin-top:var(--space-2xs);font-size:var(--text-md);color:var(--dim-2);line-height:1.5;}
.modehint .loud .loud-lead b{color:var(--paper);font-weight:600;}
.loud-why{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:var(--space-lg);list-style:none;margin:0;
  padding:var(--space-md) 0;border-top:1px solid var(--surface-3);border-bottom:1px solid var(--surface-3);}
.loud-why li{position:relative;padding-left:var(--space-xl);font-size:var(--text-sm);line-height:1.5;color:var(--dim-2);}
.loud-why li::before{content:"";position:absolute;left:0;top:var(--space-3xs);width:20px;height:20px;background:var(--brand-bright);
  -webkit-mask:var(--ic) center / contain no-repeat;mask:var(--ic) center / contain no-repeat;}
.loud-why .w-say{--ic:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E");}
.loud-why .w-keep{--ic:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m17 2 4 4-4 4'/%3E%3Cpath d='M3 11v-1a4 4 0 0 1 4-4h14'/%3E%3Cpath d='m7 22-4-4 4-4'/%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");}
.loud-why .w-gap{--ic:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");}
.loud-why b{display:block;margin-bottom:var(--space-3xs);font-size:var(--text-md);font-weight:600;color:var(--paper);}
.modehint .loud .loud-contrast{grid-column:1;font-size:var(--text-sm);color:var(--dim-2);line-height:1.5;}
.modehint .loud .loud-contrast b{color:var(--warn-hi);font-weight:600;}
.modehint .loud .loud-ack{grid-column:2;min-height:44px;background:var(--brand);color:var(--brand-ink);border:0;
  padding:0 var(--space-lg);border-radius:var(--radius-pill);font-size:var(--text-sm);font-weight:600;white-space:nowrap;}
.modehint .loud .loud-ack:hover{background:var(--brand-bright);}
@media (max-width:760px){
  .modehint .loud{grid-template-columns:minmax(0, 1fr);padding:var(--space-md);}
  .loud-why{grid-template-columns:minmax(0, 1fr);gap:var(--space-md);}
  .modehint .loud .loud-head{font-size:var(--text-xl);}
  .modehint .loud .loud-ack{grid-column:1;width:100%;}
}
/* collapsed: the box gives its space back, one line stays as a reminder */
.loud-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm);
  min-height:44px;background:var(--surface-2);border:0;border-radius:var(--radius-inner);
  padding:var(--space-xs) var(--space-md);color:var(--dim-2);font-size:var(--text-sm);font-weight:500;text-align:left;}
.loud-toggle:hover{color:var(--paper);}
.loud-chev{font-size:var(--text-xs);color:var(--dim);}

/* ---- weak set: the door ---- */
.weak{background:var(--surface-2);border-radius:var(--radius-inner);padding:var(--space-md) var(--space-lg);
  margin-bottom:var(--space-lg);display:flex;align-items:center;gap:var(--space-md);flex-wrap:wrap;}
.weak p{margin:0;flex:1;font-size:var(--text-md);line-height:1.45;min-width:210px;}
.weak p b{color:var(--magenta-hi);}
.weak button{min-height:40px;background:none;border:1px solid var(--magenta-hi);color:var(--magenta-hi);
  padding:0 var(--space-lg);border-radius:var(--radius-pill);font-size:var(--text-sm);font-weight:600;white-space:nowrap;}
.weak button:hover{background:var(--magenta-hi);color:var(--surface);}

/* ---- the bone well ---- */
/* color-scheme:light so native controls (the checklist boxes) are drawn for a
   light surface; the page around the well is dark */
.panel{background:var(--paper);color:var(--ink);border-radius:var(--radius-card);overflow:clip;color-scheme:light;}
.panel > p, .panel .empty{padding:var(--space-lg);color:var(--ink-soft);}

/* ---- REFERENCE ---- */
/* The magnifier is drawn by CSS, not added to the markup, so every chapter
   page and the free sample get it without each one being edited. */
.search{width:100%;min-height:52px;padding:var(--space-sm) var(--space-md) var(--space-sm) var(--space-xl);border:0;
  border-bottom:1px solid var(--rule);background-color:var(--paper-3);font-size:var(--text-md);color:var(--ink);
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565c6b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:var(--space-md) 50%;background-size:16px 16px;}
.search:focus-visible{outline:2px solid var(--brand-deep);outline-offset:-2px;}
.search::placeholder{color:var(--ink-soft);}
.ritem{border-bottom:1px solid var(--rule);}
.ritem:last-child{border-bottom:0;}
.rhead{width:100%;background:none;border:0;padding:var(--space-md) var(--space-lg);text-align:left;display:flex;
  align-items:flex-start;gap:var(--space-sm);color:var(--ink);}
.rhead:hover{background:var(--paper-2);}
.rhead:focus-visible, .jump:focus-visible, .opt:focus-visible, .btn:focus-visible, .rate button:focus-visible,
.sc-pip:focus-visible, .deck button:focus-visible, .kwcheck-row input:focus-visible{
  outline:2px solid var(--brand-deep);outline-offset:-2px;}
.rdot{width:8px;height:8px;border-radius:50%;margin-top:var(--space-xs);flex:0 0 auto;background:var(--rule);}
.rdot.s2{background:var(--green);} .rdot.s1{background:var(--warn);} .rdot.s0{background:var(--magenta);}
.rq{flex:1;font-size:var(--text-md);font-weight:500;line-height:1.4;color:var(--ink);}
.rtag{font-size:var(--text-sm);color:var(--ink-soft);white-space:nowrap;font-variant-numeric:tabular-nums;}
.rbody{display:none;padding:0 var(--space-lg) var(--space-lg) var(--space-xl);}
.ritem.open .rbody{display:block;}

/* the two layers of an answer */
.lay{margin-bottom:var(--space-md);}
.lay:last-child{margin-bottom:0;}
.laylab{font-size:var(--text-sm);font-weight:600;color:var(--ink-soft);margin-bottom:var(--space-2xs);}
.laylab i{display:none;}
.lay ul{margin:0;padding:0;list-style:none;}
.lay li{font-size:var(--text-md);line-height:1.55;margin-bottom:var(--space-2xs);color:var(--ink-soft);}
.lay.say li{font-size:var(--text-lg);line-height:1.5;font-weight:500;color:var(--ink);}
.lay strong.kw{color:var(--ink);font-weight:600;}
/* the phrases a Captain listens for, marked the way you would mark a checklist */
.lay.say strong.kw{font-weight:600;background:var(--brand-soft);padding:0 var(--space-2xs);border-radius:var(--space-2xs);
  -webkit-box-decoration-break:clone;box-decoration-break:clone;}
.jump{min-height:36px;background:none;border:1px solid var(--rule);border-radius:var(--radius-pill);padding:0 var(--space-md);
  font-size:var(--text-sm);font-weight:500;color:var(--ink);margin-top:var(--space-sm);}
.jump:hover{border-color:var(--ink);}
mark{background:color-mix(in oklab, var(--warn-hi) 55%, var(--paper));color:inherit;border-radius:var(--space-3xs);}

/* ---- the question navigator ---- */
/* one row: the track */
.scrubber-wrap{position:relative;display:flex;align-items:center;gap:var(--space-md);padding:var(--space-xs) var(--space-lg);background:var(--paper-2);border-bottom:1px solid var(--rule);}
.scrubber-wrap:empty{display:none;}
.scrubber-track{order:2;flex:1;min-width:0;display:grid;grid-auto-flow:row;gap:var(--space-2xs) var(--space-3xs);
  padding:var(--space-2xs) 0;touch-action:none;}
/* The columns are set by drill-engine.js (layoutPips): as many as fit at
   6px a pip, then a second row. Every pip's colour is its rating; the
   current card is a ring drawn inside the pip, so it never covers the next
   one (it used to be a shadow 4px outside the pip, laid over a 2px gap). */
.sc-pip{position:relative;display:grid;place-items:center;min-width:0;height:20px;padding:0;border:1px solid var(--rule);
  border-radius:var(--space-2xs);background:var(--paper-3);color:var(--ink-soft);overflow:hidden;
  transition:transform var(--dur-micro) var(--ease-out);}
.scrubber-track.is-multi .sc-pip{height:16px;}
.scrubber-track.has-num .sc-pip{height:24px;}
.sc-num{display:none;font-size:var(--text-xs);font-weight:600;line-height:1;font-variant-numeric:tabular-nums;opacity:.6;pointer-events:none;}
.scrubber-track.has-num .sc-num{display:block;}
.sc-pip:hover, .sc-pip.is-scrub{transform:translateY(-2px);border-color:var(--ink);}
.sc-pip.sc-clean{background:var(--green);border-color:var(--green);color:var(--paper-3);}
.sc-pip.sc-fuzzy{background:var(--warn);border-color:var(--warn);color:var(--paper-3);}
.sc-pip.sc-fail{background:var(--magenta);border-color:var(--magenta);color:var(--paper-3);}
.sc-pip.is-active{border-color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink), inset 0 0 0 3px var(--paper-3);color:var(--ink);}
.sc-pip.is-active .sc-num{opacity:1;}
.sc-pip.is-active:is(.sc-clean, .sc-fuzzy, .sc-fail) .sc-num{color:var(--paper-3);}

/* the card that follows the pointer along the navigator */
.sc-tip{position:fixed;pointer-events:none;opacity:0;visibility:hidden;width:280px;max-width:calc(100vw - var(--space-xl));
  padding:var(--space-sm) var(--space-md);background:var(--surface-2);color:var(--paper);border:1px solid var(--surface-3);
  border-radius:var(--radius-inner);box-shadow:var(--shadow-lift);z-index:var(--z-tooltip);translate:0 4px;
  transition:opacity var(--dur-short) var(--ease-out), translate var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);}
/* fades in and out (it used to vanish in one frame); reduced motion makes it instant, tokens.css */
.sc-tip.show{opacity:1;visibility:visible;translate:0 0;transition-delay:0s;}
.sc-tip-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-2xs);font-size:var(--text-xs);
  font-variant-numeric:tabular-nums;}
.sc-tip-tag{color:var(--brand);font-weight:600;}
.sc-tip-budget{color:var(--dim);}
.sc-tip-q{font-size:var(--text-sm);line-height:1.35;font-weight:500;color:var(--paper);margin:0 0 var(--space-xs);}
.sc-tip-foot{display:flex;justify-content:space-between;align-items:center;font-size:var(--text-xs);}
.sc-tip-status{font-weight:600;}
.sc-tip-status.s2{color:var(--green-hi);} .sc-tip-status.s1{color:var(--warn-hi);} .sc-tip-status.s0{color:var(--magenta-hi);}
.sc-tip-status.sn{color:var(--dim);}
.sc-tip-hint{color:var(--dim);}

/* ---- diagrams (2026-11-22): one house style, on a light plate like the
   answer they explain. The SVGs in cards/ carry no colour at all: every mark
   has a class (.dg …), and the colours come from the tokens here. A diagram
   is 440 units wide so its 14px text stays readable on a phone. ---- */
.chart-lay{margin-top:var(--space-md);border-top:1px solid var(--rule);padding-top:var(--space-sm);}
.chart-box{background:var(--paper-3);border:1px solid var(--rule);border-radius:var(--radius-inner);padding:var(--space-sm);margin-top:var(--space-xs);
  overflow-x:auto;display:flex;justify-content:center;}
.chart-box svg{width:100%;max-width:560px;height:auto;display:block;}
.dg{fill:none;stroke-linecap:round;stroke-linejoin:round;}
.dg text{font-family:var(--font-body);font-size:14px;fill:var(--ink);stroke:none;user-select:none;}
.dg .tb{font-weight:600;}
.dg .ts{font-size:13px;fill:var(--ink-soft);}
.dg .ta{font-weight:600;fill:var(--brand-deep);}
.dg .tm{font-weight:600;fill:var(--magenta);}
.dg .tg{font-weight:600;fill:var(--green);}
.dg .tw{font-weight:600;fill:var(--warn);}
.dg .l{stroke:var(--ink);stroke-width:2;}
.dg .l2{stroke:var(--ink-soft);stroke-width:1.5;}
.dg .d{stroke:var(--ink-soft);stroke-width:1.2;stroke-dasharray:4 4;}
.dg .k{stroke:var(--brand-deep);stroke-width:1.5;stroke-dasharray:6 4;}
.dg .a{stroke:var(--brand-deep);stroke-width:3;}
.dg .ok{stroke:var(--green);stroke-width:3;}
.dg .warn{stroke:var(--warn);stroke-width:3;}
.dg .bad{stroke:var(--magenta);stroke-width:3;}
.dg .dash{stroke-dasharray:7 5;}
.dg .f{fill:var(--paper-2);stroke:var(--rule);stroke-width:1;}
.dg .f2{fill:var(--paper);stroke:var(--ink-soft);stroke-width:1;stroke-dasharray:3 3;}
.dg .cw{fill:var(--brand-soft);stroke:var(--brand-deep);stroke-width:1;stroke-dasharray:4 3;}
.dg .obs{fill:var(--paper-2);stroke:var(--ink);stroke-width:1.5;}
.dg .ac, .dg .ah, .dg .dot{fill:var(--ink);stroke:none;}
.dg .ah{fill:var(--brand-deep);}
.dg .axh{fill:var(--ink);}
.dg .acb{fill:var(--paper-2);stroke:var(--ink);stroke-width:1.5;}
.dg .dbar{fill:var(--brand-soft);stroke:var(--brand-deep);stroke-width:1.5;}
.dg .dbarw{fill:color-mix(in oklab, var(--magenta) 22%, transparent);stroke:var(--magenta);stroke-width:1.5;}
.dg .stall{fill:color-mix(in oklab, var(--magenta) 28%, transparent);stroke:var(--magenta);stroke-width:1.2;}
.dg .wake{fill:color-mix(in oklab, var(--ink-soft) 22%, transparent);stroke:none;}
.dg .lt-w{fill:var(--paper-3);stroke:var(--ink);stroke-width:1.5;}
.dg .lt-r{fill:var(--signal-red);stroke:var(--signal-red);stroke-width:1.5;}
.dg .ylw{stroke:var(--marking-yellow);stroke-width:3;}
.dg .sign{fill:var(--signal-red);stroke:none;}
.dg .tsign{fill:var(--paper-3);font-weight:600;}
.dg .cloud{fill:var(--paper-2);stroke:var(--ink-soft);stroke-width:1.5;}
.dg .rain{stroke:var(--brand-deep);stroke-width:1.5;stroke-dasharray:3 4;}
.dg .bolt{stroke:var(--warn);stroke-width:2.5;}
.dg .vort{fill:none;stroke:var(--brand-deep);stroke-width:1.5;}
.dg .dot{fill:var(--brand-deep);}

/* ---- DRILL ---- */
/* the drill header: which deck, where in it, how to leave. One element in
   both states (neutral for the full deck, rose with an exit for the weak set)
   so the mode is read from the same place every time. */
.deck{display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm);flex-wrap:wrap;
  padding:var(--space-sm) var(--space-lg);border-bottom:1px solid var(--rule);background:var(--paper-2);
  font-size:var(--text-sm);color:var(--ink-soft);font-variant-numeric:tabular-nums;}
.deck b{color:var(--ink);font-weight:600;}
/* "Chapter, 41 to go": the number rolls down when a card leaves the deck */
.deck-n{display:inline-block;font-weight:600;color:var(--ink);}
.deck-n.is-down{animation:deck-down var(--dur-long) var(--ease-out);}
@keyframes deck-down{0%{transform:translateY(-70%);opacity:0;color:var(--green);}55%{color:var(--green);}100%{transform:none;opacity:1;}}
.deck.weak{background:color-mix(in oklab, var(--magenta) 9%, var(--paper));color:var(--ink);
  /* the weak-set door is also class "weak": none of its box may reach the header,
     which kept a 24px margin and a taller padding in the weak set until 2026-11-20 */
  margin-bottom:0;border-radius:0;padding-top:var(--space-sm);padding-bottom:var(--space-sm);}
.deck.weak b{color:var(--magenta);}
/* "> button": the navigator's pips sit inside the deck on a wide screen and are buttons too */
.deck > button{min-height:32px;background:none;border:1px solid var(--magenta);color:var(--magenta);border-radius:var(--radius-pill);
  padding:0 var(--space-md);font-size:var(--text-sm);font-weight:500;white-space:nowrap;}
.deck > button:hover{background:var(--magenta);color:var(--paper-3);}
.deck-save{margin-left:auto;min-height:32px;display:inline-flex;align-items:center;padding:0 var(--space-md);
  border:1px solid var(--brand-deep);border-radius:var(--radius-pill);color:var(--brand-deep);font-weight:500;
  text-decoration:none;white-space:nowrap;}
.deck-save:hover{background:var(--brand-deep);color:var(--paper-3);}
.deck-save:focus-visible{outline:2px solid var(--brand-deep);outline-offset:2px;}
.meta{display:flex;flex-wrap:wrap;gap:var(--space-sm);align-items:center;justify-content:space-between;
  padding:var(--space-md) var(--space-lg) 0;}
.meta-chips{display:flex;flex-wrap:wrap;gap:var(--space-md);}
.chip{font-size:var(--text-sm);color:var(--ink-soft);font-variant-numeric:tabular-nums;}
.chip.ref{color:var(--ink);font-weight:600;}
/* the question read aloud (2026-11-23): a replay and an on/off switch,
   at the right of the chip row; drawn by the engine, only on voiced cards */
.voice{display:flex;flex-wrap:wrap;gap:var(--space-xs);align-items:center;}
.vbtn{display:inline-flex;align-items:center;gap:var(--space-xs);min-height:32px;
  padding:var(--space-2xs) var(--space-sm);background:none;border:1px solid var(--rule);
  border-radius:var(--radius-pill);font:inherit;font-size:var(--text-sm);color:var(--ink-soft);cursor:pointer;}
.vbtn::before{content:"";width:16px;height:16px;flex:none;background:currentColor;
  -webkit-mask:var(--vic) center / contain no-repeat;mask:var(--vic) center / contain no-repeat;}
.vbtn:hover{color:var(--brand-deep);border-color:var(--brand-deep);}
.vbtn:focus-visible{outline:2px solid var(--brand-deep);outline-offset:2px;}
.vbtn-hear{--vic:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E");}
.vbtn-toggle{--vic:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");color:var(--brand-deep);border-color:var(--brand-deep);background:var(--brand-soft);}
.vbtn-toggle.is-off{--vic:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='m22 9-6 6'/%3E%3Cpath d='m16 9 6 6'/%3E%3C/svg%3E");color:var(--ink-soft);border-color:var(--rule);background:none;}
.vbtn-hear.is-playing{color:var(--brand-deep);border-color:var(--brand-deep);}
.vbtn-hear{transition:opacity var(--dur-short) ease, visibility 0s;}
.vbtn-hear.is-hidden{opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity var(--dur-short) ease, visibility 0s linear var(--dur-short);}
/* both words in one grid cell: the switch is as wide as the wider one */
.vlab{display:inline-grid;}
.vlab > span{grid-area:1 / 1;}
.vbtn-toggle .vlab-off, .vbtn-toggle.is-off .vlab-on{visibility:hidden;}
.vbtn-toggle.is-off .vlab-off{visibility:visible;}
@media (prefers-reduced-motion: no-preference){
  .vbtn-hear.is-playing::before{animation:vbtn-pulse 0.9s ease-in-out infinite alternate;}
}
@keyframes vbtn-pulse{from{opacity:1}to{opacity:0.35}}
@media (pointer: coarse){ .vbtn{min-height:40px;} }
.dq{font-family:var(--font-display);font-weight:500;font-size:clamp(1.5rem, 4.4vw, 2.074rem);
  line-height:1.15;letter-spacing:var(--tracking-display);padding:var(--space-xs) var(--space-lg) var(--space-md);margin:0;max-width:none;}
/* The item's number, in front of the question rather than lost in the row
   above it: this is what someone quotes when they ask the Captain about one. */
.dq-id{display:inline-block;vertical-align:.28em;margin-right:var(--space-sm);padding:var(--space-3xs) var(--space-xs);
  border-radius:var(--space-2xs);background:var(--brand-soft);color:var(--brand-deep);box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--brand-deep) 22%, transparent);
  font-family:var(--font-body);font-size:var(--text-sm);font-weight:700;line-height:1.35;letter-spacing:0;
  white-space:nowrap;font-variant-numeric:tabular-nums;}

.gauge{padding:0 var(--space-lg);}
/* The clock is a stopwatch ring with the seconds in its middle: full at Start,
   empty when the answer's budget is spent (drill-engine.js tick() moves only
   stroke-dashoffset). It replaced a straight bar with the number at its end.
   One column: it sits where that number was, 48px, and the buttons come up
   to meet it, so the card is no taller than it was with the bar. Two columns
   (below, min-width:1000px): 64px, beside the buttons, and the row the bar
   used is given back. The ring is decoration (aria-hidden); the number is
   what a screen reader gets. */
.glegend{display:flex;justify-content:space-between;align-items:center;gap:var(--space-sm);font-size:var(--text-sm);color:var(--ink-soft);}
.gring{position:relative;flex:none;width:48px;height:48px;display:grid;place-items:center;}
.gring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible;}
.gring circle{fill:none;stroke-width:3px;}
.gtrack{stroke:var(--rule);}
.gfill{stroke:var(--brand-deep);stroke-linecap:round;stroke-dasharray:100 100;stroke-dashoffset:0;}
.gring:has(.gfill.over) .gtrack{stroke:var(--warn);}
.glegend b{position:relative;font-family:var(--font-display);font-size:var(--text-xs);font-weight:600;color:var(--ink);
  font-variant-numeric:tabular-nums;white-space:nowrap;}
.glegend b.over{color:var(--warn);}
/* The grace seconds past the budget, and past them. Calm on purpose (owner,
   2026-11-22: take the stress out of the clock): one quiet change of colour,
   no flashing, no red. Until that day the last five seconds flashed magenta. */
.glegend b.urgent{color:var(--warn);}
.gfill.urgent{stroke:var(--warn);}
.dfoot .ctrl{padding-top:var(--space-2xs);}

.ctrl{display:flex;gap:var(--space-xs);padding:var(--space-md) var(--space-lg) var(--space-lg);flex-wrap:wrap;align-items:stretch;}
.btn{min-height:44px;border:1px solid var(--ink);background:var(--ink);color:var(--paper-3);font-size:var(--text-sm);
  font-weight:600;padding:0 var(--space-lg);border-radius:var(--radius-pill);white-space:nowrap;}
.btn:hover{background:var(--brand-deep);border-color:var(--brand-deep);}
.btn.ghost{background:none;color:var(--ink);border-color:var(--rule);}
.btn.ghost:hover{background:var(--paper-2);border-color:var(--ink);}
.btn:disabled{opacity:.55;cursor:not-allowed;}
/* pressed: one pixel down, on everything that is a button */
.btn:active, .jump:active, .opt:active, .rate button:active, .loud-ack:active, .weak button:active,
.deck button:active, .upsell a:active, .appbar-out:active{transform:translateY(1px);}
/* Back and Skip are escapes; this is the thing to press. It is given the room
   to say so rather than sitting as one of three equal buttons. */
#dMain{flex:1;min-width:190px;min-height:52px;font-size:var(--text-md);background:var(--brand-deep);border-color:var(--brand-deep);}
#dMain:hover{background:var(--ink);border-color:var(--ink);}
/* "Drill it again": on a wide screen only after reveal, in the place of #dMain */
#dAgain{display:none;flex:1;min-width:190px;min-height:52px;}
#dAgain.is-revealed{display:inline-flex;align-items:center;justify-content:center;}
#dAgain{gap:var(--space-xs);}
#dAgain::before{content:"";width:18px;height:18px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4v6h6'/%3E%3Cpath d='M3.5 15a9 9 0 1 0 2.1-9.4L1 10'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4v6h6'/%3E%3Cpath d='M3.5 15a9 9 0 1 0 2.1-9.4L1 10'/%3E%3C/svg%3E") center / contain no-repeat;}
/* why this card came back: must read at a glance */
.prevflag{margin:var(--space-sm) var(--space-lg) 0;padding:var(--space-xs) var(--space-md);border-radius:var(--radius-inner);
  font-size:var(--text-sm);font-weight:600;line-height:1.4;}
.prevflag.prev0{background:color-mix(in oklab, var(--magenta) 10%, var(--paper));color:var(--magenta);}
.prevflag.prev1{background:color-mix(in oklab, var(--warn) 12%, var(--paper));color:var(--warn);}
.prevflag.prev2{background:color-mix(in oklab, var(--green) 11%, var(--paper));color:var(--green);}

/* the answer: always in the layout, only hidden, so revealing never jumps */
.dlayers{position:relative;border-top:1px solid var(--rule);padding:var(--space-lg);min-height:112px;}
.dlayers-inner{opacity:0;visibility:hidden;transition:opacity var(--dur-short) var(--ease-out);}
.dlayers.show .dlayers-inner{opacity:1;visibility:visible;}
/* the note sits at the top of the hidden block, not its centre: the block is
   as tall as the answer it is holding space for, and the centre of a long one
   is below the screen */
.dlayers-hint{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;
  background:var(--paper-3);font-size:var(--text-sm);color:var(--ink-soft);text-align:center;padding:var(--space-xl) var(--space-md) 0;}
.dlayers.show .dlayers-hint{display:none;}

/* the rating bar: sticky, so a long answer never pushes it off the screen */
.rate{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:1px;background:var(--rule);
  border-top:1px solid var(--rule);visibility:hidden;opacity:0;
  transition:opacity var(--dur-short) var(--ease-out), visibility var(--dur-short);
  position:sticky;bottom:0;z-index:var(--z-raised);}
.rate.show{visibility:visible;opacity:1;}
.rate button{border:0;background:var(--paper);padding:var(--space-sm) var(--space-xs);min-height:72px;
  font-size:var(--text-sm);color:var(--ink-soft);}
.rate button b{display:block;font-size:var(--text-md);font-weight:600;color:var(--ink);margin-bottom:var(--space-3xs);white-space:nowrap;}
.rate-ico{display:none;}
.rate-fuzzy b{color:var(--warn);}
.rate-clean b{color:var(--green);font-size:var(--text-lg);}
.rate-fail b{color:var(--magenta);}
.rate-fuzzy:hover{background:color-mix(in oklab, var(--warn) 8%, var(--paper));}
.rate-clean:hover{background:color-mix(in oklab, var(--green) 8%, var(--paper));}
.rate-fail:hover{background:color-mix(in oklab, var(--magenta) 7%, var(--paper));}

/* ---------- keyword checklist: "which of these did you say?" ----------
   Shown at reveal, above the full answer. The ticks only light a rating
   button (.suggest); the user still presses one. Rows are full-width labels
   so the hit target on a phone is the whole line, not an 18px box. */
.kwcheck{margin:0;}
/* Its own box since the card went to two columns. On a wide screen it keeps
   its space while hidden, so the left column and the rating bar under it do
   not move when the answer opens. On a narrow one it takes no space until
   then: everything under it is off the screen anyway. */
.dcheck{padding:0 var(--space-lg) var(--space-md);visibility:hidden;opacity:0;transition:opacity var(--dur-short) var(--ease-out);}
.dcheck.show{visibility:visible;opacity:1;}
.dcheck:empty{display:none;}
.kwcheck-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-sm);margin-bottom:var(--space-2xs);
  font-family:var(--font-display);font-size:var(--text-lg);font-weight:500;letter-spacing:var(--tracking-display);color:var(--ink);}
.kwcheck-head b{font-family:var(--font-body);font-size:var(--text-sm);font-weight:500;letter-spacing:0;color:var(--ink-soft);
  white-space:nowrap;font-variant-numeric:tabular-nums;}
.kwcheck-row{display:flex;align-items:center;gap:var(--space-sm);min-height:44px;padding:var(--space-xs) 0;cursor:pointer;
  font-size:var(--text-md);line-height:1.4;color:var(--ink);border-top:1px solid var(--rule);}
.kwcheck-row input{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:var(--brand-deep);cursor:pointer;}
.rate button.suggest{box-shadow:inset 0 0 0 2px currentColor;}
.rate-fuzzy.suggest{color:var(--warn);background:color-mix(in oklab, var(--warn) 12%, var(--paper));}
.rate-clean.suggest{color:var(--green);background:color-mix(in oklab, var(--green) 11%, var(--paper));}
.rate-fail.suggest{color:var(--magenta);background:color-mix(in oklab, var(--magenta) 10%, var(--paper));}

/* ---- done state ---- */
/* The finished screen: a moment of arrival, then a way on. The resting state
   below IS the finished state; the keyframes run only under .play, which the
   engine adds when the screen appears and never under reduced motion. */
.done{padding:var(--space-xl) var(--space-lg);text-align:center;}
.done h2{font-size:var(--text-2xl);color:var(--ink);margin:0 auto var(--space-xs);}
.done h2:focus{outline:none;}
.done p{font-size:var(--text-md);color:var(--ink-soft);margin:0 auto var(--space-lg);line-height:1.5;max-width:46ch;}
.done-mark{display:block;width:88px;height:88px;margin:0 auto var(--space-md);overflow:visible;}
.done-mark circle, .done-tick{fill:none;transform-origin:48px 48px;}
.done-track{stroke:var(--rule);stroke-width:4;}
.done-ring{stroke:var(--green);stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);}
.done-tick{stroke:var(--green);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;}
.done-halo{stroke:var(--green);stroke-width:2;opacity:0;}
.done .done-stat{margin-bottom:var(--space-sm);color:var(--ink);font-size:var(--text-md);max-width:46ch;}
.done-stat b{font-family:var(--font-display);font-size:var(--text-3xl);font-weight:600;color:var(--green);line-height:1;
  margin-right:var(--space-xs);font-variant-numeric:tabular-nums;}
.done-bar{height:8px;max-width:320px;margin:0 auto var(--space-lg);background:var(--paper-2);
  border-radius:var(--radius-pill);overflow:hidden;}
.done-fill{display:flex;height:100%;transform-origin:left center;}
.done-fill i{height:100%;}
.done-fill .g{background:var(--green);} .done-fill .a{background:var(--warn);} .done-fill .m{background:var(--magenta);}
.done-go{display:flex;justify-content:center;flex-wrap:wrap;gap:var(--space-sm);margin-bottom:var(--space-sm);}
.done-go .btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}
.done .resetlink{color:var(--ink-soft);}
.done .resetlink:hover{color:var(--magenta);}

.done.play .done-ring{animation:done-draw 650ms ease-in-out both;}
.done.play .done-tick{animation:done-draw 320ms var(--ease-out) 600ms both;}
.done.play .done-halo{animation:done-halo 700ms var(--ease-out) 850ms both;}
.done.play .done-fill{animation:done-fill 700ms var(--ease-out) 250ms both;}
.done.play h2, .done.play .done-stat{animation:done-rise var(--dur-long) var(--ease-out) 120ms both;}
.done.play #dDoneP, .done.play .done-go, .done.play .resetlink{animation:done-rise var(--dur-long) var(--ease-out) 750ms both;}
/* the gap is longer than the line and the start sits past it, so the round
   cap leaves no dot on the well before the stroke begins */
@keyframes done-draw{from{stroke-dashoffset:110;}to{stroke-dashoffset:0;}}
.done-ring, .done-tick{stroke-dasharray:100 120;stroke-dashoffset:0;}
@keyframes done-halo{from{opacity:.5;transform:scale(1);}to{opacity:0;transform:scale(1.35);}}
@keyframes done-fill{from{transform:scaleX(0);}to{transform:scaleX(1);}}
@keyframes done-rise{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion:reduce){ .done.play *{animation:none !important;} }

/* ---- TEST ---- */
.opts{padding:var(--space-2xs) var(--space-lg) var(--space-md);}
.opt{width:100%;text-align:left;background:var(--paper-3);border:1px solid var(--rule);
  border-radius:var(--radius-inner);padding:var(--space-sm) var(--space-md);margin-bottom:var(--space-xs);font-size:var(--text-md);
  line-height:1.4;color:var(--ink);display:flex;gap:var(--space-sm);min-height:48px;align-items:center;}
.opt:hover{border-color:var(--ink);}
.opt em{font-style:normal;font-weight:600;color:var(--ink-soft);flex:0 0 auto;}
.opt.right{border-color:var(--green);background:color-mix(in oklab, var(--green) 9%, var(--paper));}
.opt.wrong{border-color:var(--magenta);background:color-mix(in oklab, var(--magenta) 8%, var(--paper));}
.opt[disabled]{cursor:default;}
.after{border-top:1px solid var(--rule);padding:var(--space-md) var(--space-lg) var(--space-lg);display:none;}
.after.show{display:block;}
.after .verdict{font-size:var(--text-md);font-weight:600;margin-bottom:var(--space-xs);}
.after .verdict.ok{color:var(--green);} .after .verdict.no{color:var(--magenta);}
.after p{margin:0 0 var(--space-md);font-size:var(--text-md);line-height:1.5;color:var(--ink);max-width:65ch;}

/* ---- the member-area bar ----
   Built by assets/js/app-bar.js; the free sample writes the same bar in its
   own markup, signed out. Fixed across the whole window, so it reads as the
   frame of the product, but its contents sit in the member column
   (--member-w), so the wordmark starts on the same line as the page title
   below it. The inside is the column plus the body's side padding, padded
   by that same amount: the two edges then agree at every width.
   Left: the wordmark and the menu (the navigation). Right: the way back to
   the site, the days left to the interview and the account. `has-bar` on
   <html> is what leaves room for it. */
.has-bar body{padding-top:calc(var(--bar-h) + var(--space-lg));}
.appbar{position:fixed;top:0;left:0;right:0;z-index:var(--z-sticky-nav);height:var(--bar-h);
  background:color-mix(in oklab, var(--surface) 88%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--surface-3);}
.appbar-in{display:flex;align-items:center;gap:var(--space-lg);height:100%;
  max-width:calc(var(--member-w) + 2 * var(--space-md));margin:0 auto;padding:0 var(--space-md);}
.appbar-logo{flex-shrink:0;min-width:0;font-family:var(--font-display);font-weight:600;font-size:var(--text-lg);line-height:1;
  letter-spacing:var(--tracking-display);color:var(--paper);text-decoration:none;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;}
.appbar-logo img, .appbar-logo svg{display:block;height:34px;width:auto;max-width:100%;}
/* No overflow here. Setting overflow-x on its own quietly turns overflow-y
   into auto as well, which is where a stray vertical scrollbar in the menu
   once came from. The links shrink instead. The first link is pulled left by
   its own padding only on a phone, where it starts a row. */
.appbar-nav{display:flex;align-items:stretch;align-self:stretch;min-width:0;}
.appbar-link{position:relative;display:flex;align-items:center;padding:0 var(--space-sm);white-space:nowrap;text-decoration:none;
  color:var(--dim);font-size:var(--text-sm);font-weight:500;transition:color var(--dur-micro) var(--ease-out);}
.appbar-link:hover{color:var(--paper);}
.appbar-link:focus-visible{outline-offset:-2px;}
/* the page you are on: a line along the bottom edge of the bar, inside the link */
.appbar-link.on{color:var(--paper);}
.appbar-link.on::after{content:"";position:absolute;left:var(--space-sm);right:var(--space-sm);bottom:0;height:2px;background:var(--brand);}
.appbar-link.is-admin{color:var(--brand);}
.appbar-right{display:flex;align-items:center;gap:var(--space-md);margin-left:auto;min-width:0;}
.appbar-email{font-size:var(--text-sm);color:var(--dim);max-width:24ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* every control on the right is one height: 36px, a pill, the body face a
   step down. Only the one action on the free sample is filled. */
.appbar-out{min-height:36px;background:none;border:1px solid var(--surface-3);border-radius:var(--radius-pill);
  padding:0 var(--space-md);color:var(--dim-2);white-space:nowrap;font-size:var(--text-sm);font-weight:500;}
.appbar-out:hover{color:var(--paper);border-color:var(--dim);}
/* Back to site: the way out, not a place in the course, so it is quieter than
   the menu's neighbours: no border, the dim colour, an icon in front. */
.appbar-back, .appbar-signin{display:inline-flex;align-items:center;gap:var(--space-xs);min-height:36px;padding:0 var(--space-xs);
  border-radius:var(--radius-pill);color:var(--dim);font-size:var(--text-sm);font-weight:500;white-space:nowrap;text-decoration:none;
  transition:color var(--dur-micro) var(--ease-out);}
.appbar-back:hover, .appbar-signin:hover{color:var(--paper);}
.appbar-signin{color:var(--dim-2);}
.appbar-back::before{content:"";width:16px;height:16px;flex:0 0 auto;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E") center / contain no-repeat;}
.appbar-cta{display:inline-flex;align-items:center;min-height:36px;padding:0 var(--space-md);border-radius:var(--radius-pill);
  background:var(--brand);color:var(--brand-ink);font-size:var(--text-sm);font-weight:600;white-space:nowrap;text-decoration:none;}
.appbar-cta:hover{background:var(--brand-bright);}
.appbar-cta:active, .appbar-back:active, .appbar-signin:active{transform:translateY(1px);}
.appbar .samplebadge{flex-shrink:0;}
/* narrower than the column: the email goes, Back to site keeps its icon (its
   label stays for a screen reader, clipped rather than removed) and the date
   chip keeps its number */
@media (max-width:1100px){
  .appbar-email{display:none;}
  .appbar-back{padding:0 var(--space-xs);}
  .appbar-back .appbar-back-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  .appbar .cd-pre{display:none;}
}
@media (max-width:999px){
  .appbar .samplebadge{display:none;}
}
/* the Menu button: a phone's, hidden on anything wider */
.appbar-menu{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 auto;padding:0;
  background:none;border:1px solid var(--surface-3);border-radius:var(--radius-pill);color:var(--paper);}
.appbar-menu::before{content:"";width:20px;height:20px;background:currentColor;
  -webkit-mask:var(--menu-icon) center / contain no-repeat;mask:var(--menu-icon) center / contain no-repeat;}
.appbar-menu{--menu-icon:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E");}
.appbar.is-open .appbar-menu{--menu-icon:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12'/%3E%3Cpath d='M18 6 6 18'/%3E%3C/svg%3E");border-color:var(--dim);}
.appbar-menu-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
/* a phone: ONE row, the wordmark, the days left and Menu. It used to be two
   rows (93px of a small screen, every page) with Sign out as the loudest
   button in it and Back to site as an unlabelled arrow. The menu, Back to
   site, the email and Sign out now open under the bar, labelled, a full row
   each. --bar-h for a phone (57px) is in tokens.css; the drill measures
   the bar itself. */
@media (max-width:760px){
  .appbar-in{display:grid;grid-template-columns:minmax(0, 1fr) auto auto;grid-template-rows:56px;
    gap:0 var(--space-xs);align-items:center;}
  .appbar-right{display:contents;}
  .appbar-logo{grid-row:1;grid-column:1;justify-self:start;max-width:100%;font-size:var(--text-md);}
  .appbar-logo img, .appbar-logo svg{height:24px;}
  .appbar-logo img{object-fit:contain;object-position:left center;}
  #appbarCountdown, #sampleCountdown{grid-row:1;grid-column:2;justify-self:end;}
  .appbar-menu{display:inline-flex;grid-row:1;grid-column:3;}
  /* the date form opens under the bar, across the screen, wherever the chip is */
  .appbar .cd{position:static;}
  .appbar .cd-pop{left:var(--space-md);right:var(--space-md);top:calc(100% + var(--space-xs));width:auto;max-width:none;}
  .appbar-nav, .appbar-back, .appbar-email, .appbar-out, .appbar-signin, .appbar-cta{display:none;}

  /* open: the bar grows down over the page, one item a row */
  .appbar.is-open{height:auto;background:var(--surface);box-shadow:var(--shadow-lift);}
  .appbar.is-open .appbar-in{padding-bottom:var(--space-md);}
  .appbar.is-open .appbar-nav{display:flex;flex-direction:column;grid-column:1 / -1;margin:0;
    border-top:1px solid var(--surface-3);padding-top:var(--space-xs);}
  .appbar.is-open .appbar-link{min-height:48px;padding:0;font-size:var(--text-md);}
  .appbar.is-open .appbar-link.on::after{left:calc(-1 * var(--space-md));right:auto;top:var(--space-sm);bottom:var(--space-sm);width:2px;height:auto;}
  .appbar.is-open .appbar-back, .appbar.is-open .appbar-signin{display:flex;grid-column:1 / -1;min-height:48px;padding:0;
    font-size:var(--text-md);border-radius:0;}
  .appbar.is-open .appbar-back{border-top:1px solid var(--surface-3);}
  .appbar.is-open .appbar-back .appbar-back-text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;}
  .appbar.is-open .appbar-email{display:block;grid-column:1 / -1;max-width:100%;padding:var(--space-sm) 0 var(--space-xs);
    border-top:1px solid var(--surface-3);}
  .appbar.is-open .appbar-out{display:inline-flex;align-items:center;grid-column:1 / -1;justify-self:start;min-height:44px;padding:0 var(--space-lg);}
  .appbar.is-open .appbar-cta{display:flex;justify-content:center;grid-column:1 / -1;min-height:48px;margin-top:var(--space-xs);font-size:var(--text-md);}
}
/* the narrowest phones: the date chip drops its calendar icon so the
   wordmark keeps its size */
@media (max-width:360px){
  .appbar .cd-btn::before{display:none;}
}

/* ---- the days left to the interview (assets/js/countdown.js) ----
   A chip in the bar, and the large form on the dashboard. Amber once it is
   two weeks away or less. */
.cd{position:relative;}
.cd-btn{min-height:36px;display:inline-flex;align-items:center;gap:var(--space-xs);background:none;
  border:1px solid var(--surface-3);border-radius:var(--radius-pill);padding:0 var(--space-md);
  color:var(--dim-2);font-size:var(--text-sm);font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums;}
.cd-btn::before{content:"";width:16px;height:16px;flex:0 0 auto;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;}
.cd-btn:hover{color:var(--paper);border-color:var(--dim);}
.cd-btn:active, .cd-save:active, .cd-clear:active, .dash-go:active, .dash-out:active, .offer-buy:active{transform:translateY(1px);}
.cd-near .cd-btn{color:var(--warn-hi);border-color:color-mix(in oklab, var(--warn-hi) 55%, var(--surface));}
.cd-past .cd-btn{color:var(--magenta-hi);border-color:color-mix(in oklab, var(--magenta-hi) 55%, var(--surface));}
.cd-pop{position:absolute;right:0;top:calc(100% + var(--space-xs));z-index:var(--z-dropdown);width:260px;
  max-width:calc(100vw - var(--space-lg));padding:var(--space-md);background:var(--surface-2);color:var(--paper);
  border:1px solid var(--surface-3);border-radius:var(--radius-inner);box-shadow:var(--shadow-lift);
  display:flex;flex-direction:column;gap:var(--space-sm);}
.cd-pop label{display:flex;flex-direction:column;gap:var(--space-xs);font-size:var(--text-sm);color:var(--dim-2);}
.cd-pop input{min-height:40px;padding:0 var(--space-sm);background:var(--surface);color:var(--paper);
  border:1px solid var(--dim);border-radius:var(--space-xs);font-size:var(--text-md);}
.cd-row{display:flex;gap:var(--space-xs);}
.cd-save{flex:1;min-height:40px;background:var(--brand);color:var(--brand-ink);border:1px solid var(--brand);
  border-radius:var(--radius-pill);font-size:var(--text-sm);font-weight:600;}
.cd-save:hover{background:var(--brand-bright);}
.cd-clear{min-height:40px;background:none;border:1px solid var(--surface-3);color:var(--dim-2);
  border-radius:var(--radius-pill);padding:0 var(--space-md);font-size:var(--text-sm);font-weight:500;}
.cd-clear:hover{color:var(--paper);border-color:var(--dim);}
@media (max-width:700px){
  .cd-pre{display:none;}
  .cd-btn{padding:0 var(--space-sm);}
}
.cd-big{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-md);}
.cd-big .cd-pop{left:0;right:auto;}
.cd-figure{display:flex;align-items:center;gap:var(--space-md);}
.cd-figure b{font-family:var(--font-display);font-weight:500;font-size:clamp(4rem, 9vw, 6rem);line-height:.9;
  letter-spacing:var(--tracking-display);color:var(--paper);font-variant-numeric:tabular-nums;}
.cd-near .cd-figure b{color:var(--warn-hi);}
.cd-figure span{font-size:var(--text-lg);color:var(--paper);line-height:1.3;}
.cd-figure small{display:block;font-size:var(--text-sm);color:var(--dim);}
.cd-ask{font-size:var(--text-lg);color:var(--paper);max-width:32ch;line-height:1.4;}

/* ---- the free sample: the badge in its bar, and the offer under the drill ----
   The badge is a tint, not a fill: the one filled thing in that bar is the
   action, "Get full access". */
.samplebadge{display:inline-flex;align-items:center;min-height:28px;font-size:var(--text-sm);font-weight:500;color:var(--brand);
  background:color-mix(in oklab, var(--brand) 14%, transparent);
  padding:0 var(--space-sm);border-radius:var(--radius-pill);white-space:nowrap;}
.upsell{margin-top:var(--space-lg);border-radius:var(--radius-card);padding:var(--space-lg);background:var(--surface-2);
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);flex-wrap:wrap;}
.upsell p{margin:0;font-size:var(--text-md);color:var(--paper);line-height:1.5;flex:1;min-width:220px;}
.upsell a{display:inline-flex;align-items:center;min-height:48px;background:var(--brand);color:var(--brand-ink);
  font-size:var(--text-md);font-weight:600;padding:0 var(--space-lg);border-radius:var(--radius-pill);text-decoration:none;white-space:nowrap;}
.upsell a:hover{background:var(--brand-bright);}

@media (max-width:560px){
  .scrubber-wrap{padding-left:var(--space-md);padding-right:var(--space-md);}
  .dcheck{padding-left:var(--space-md);padding-right:var(--space-md);}
  /* the four counts: two by two, each number beside its word, so
     "Couldn't say it" and "Not started" no longer break over two lines */
  .stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--space-xs) var(--space-md);}
  .stat, .stat:first-child, .stat:last-child{display:flex;align-items:baseline;gap:var(--space-xs);padding:0;border-left:0;}
  .stat b{font-size:var(--text-xl);margin:0;}
  /* Start (then Show the answer) takes the first row, whole; Back and Skip
     share the row under it. Before, at 320 to 430px wide, Start could not
     fit beside them and the three buttons wrapped into a staircase. */
  #dMain{order:-1;flex-basis:100%;}
  .ctrl .btn.ghost{flex:1;}
  .dlayers, .ctrl{padding-left:var(--space-md);padding-right:var(--space-md);}
  .dq, .gauge, .deck, .meta{padding-left:var(--space-md);padding-right:var(--space-md);}
  .prevflag{margin-left:var(--space-md);margin-right:var(--space-md);}
  /* three equal cells and a smaller label, so "Couldn't say it" stays on one line */
  .rate{grid-template-columns:repeat(3, minmax(0, 1fr));}
  .rate button{padding-left:var(--space-3xs);padding-right:var(--space-3xs);}
  .rate button b, .rate-clean b{font-size:var(--text-sm);}
}
@media (max-width:350px){
  .rate button b, .rate-clean b{font-size:var(--text-xs);}
}

.thint{display:none;}

/* ---- the card on a desktop: question on the left, answer on the right ----
   Measured before this existed: a 1,216px card, with the checklist opening at
   793px on an 800px screen. Side by side the card is about half that, and the
   engine scrolls the rest of the way when the answer opens (settle() in
   drill-engine.js). Below 1000px the card stays one column. */
@media (max-width:999px){
  .dcheck:not(.show){display:none;}
}
@media (min-width:1000px){
  #drillActive{display:grid;grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows:auto auto auto auto auto auto auto 1fr auto;
    grid-template-areas:"deck deck" "meta ans" "prev ans" "q ans" "gauge ans" "ctrl ans" "check ans" ". ans" "rate rate";}
  #drillActive .deck{grid-area:deck;}
  #drillActive .meta{grid-area:meta;}
  #drillActive .prevflag{grid-area:prev;}
  #drillActive .dq{grid-area:q;font-size:var(--text-2xl);}
  #drillActive .gauge{grid-area:gauge;}
  #drillActive .ctrl{grid-area:ctrl;padding-bottom:var(--space-md);}
  /* the clock: the label takes the bar's old row, the ring goes in front of
     the buttons, centred on them (the ctrl row is padded the same above and
     below), and the buttons move over to make room for it. From 1200px only:
     narrower, the left column cannot hold the ring and three buttons in one
     row, and the ring stays beside the label as in one column. */
  @media (min-width:1200px){
    #drillActive .gauge, #drillActive .glegend{display:contents;}
    #gLab{grid-area:gauge;padding:0 var(--space-lg);}
    #drillActive .gring{grid-area:ctrl;align-self:center;justify-self:start;margin-left:var(--space-lg);width:var(--space-2xl);height:var(--space-2xl);}
    #drillActive .glegend b{font-size:var(--text-md);}
    #drillActive .dfoot .ctrl{padding-top:var(--space-md);padding-left:calc(var(--space-lg) + var(--space-2xl) + var(--space-sm));}
    #drillActive .dfoot .ctrl .btn.ghost{padding:0 var(--space-md);}
  }
  #drillActive .dcheck{grid-area:check;}
  #drillActive .rate{grid-area:rate;}
  #drillActive .dlayers{grid-area:ans;border-top:0;border-left:1px solid var(--rule);}
  /* the phone's card wrappers (see "the drill on a phone") are not boxes here:
     what is inside them is placed by the grid above, as before they existed */
  #drillActive .dcard-slot, #drillActive .dcard, #drillActive .dface, #drillActive .dfoot{display:contents;}
  #drillActive .dswipe, #drillActive .dcoach{display:none;}
  .kwcheck-row{min-height:40px;padding:var(--space-2xs) 0;}

  /* Test, the same way: the question and its options on the left, what the
     answer was and why on the right */
  #viewTest{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows:auto auto auto 1fr auto;
    grid-template-areas:"scrub scrub" "meta side" "q side" "opts side" "ctrl side";}
  #viewTest > .scrubber-wrap{grid-area:scrub;}
  #viewTest > .meta{grid-area:meta;}
  #viewTest > .dq{grid-area:q;font-size:var(--text-2xl);}
  #viewTest > .opts{grid-area:opts;}
  #viewTest > .ctrl{grid-area:ctrl;padding-top:0;}
  #viewTest > .after, #viewTest > .thint{grid-area:side;border-top:0;border-left:1px solid var(--rule);}
  #viewTest > .thint{display:flex;align-items:flex-start;justify-content:center;max-width:none;
    padding:var(--space-xl) var(--space-md) 0;background:var(--paper-3);font-size:var(--text-sm);color:var(--ink-soft);}
  #viewTest > .after.show + .thint{display:none;}

  /* Reference: the rows run the full width, the answers keep a readable line */
  .rbody .lay{max-width:72ch;}
}

/* ---- the dashboard (account.html) and the contents (chapters/index.html) ----
   Both are lists on slate, ruled, not boxes. The dashboard opens with the two
   things somebody mid-preparation came for: the days left and the way back
   into the drill. The paperwork is under it. */
.shell-dash{max-width:var(--member-w);}
.shell-dash > h1{margin-bottom:var(--space-lg);}
/* the line of the day under "Your course" (contents.js CHEER) */
h1 + .cheer{min-height:1.2em;margin:calc(var(--space-sm) - var(--space-lg)) 0 var(--space-md);font-family:var(--font-display);font-size:var(--text-2xl);font-weight:700;line-height:1.2;color:var(--brand);}
.cheer-name{margin:calc(0px - var(--space-sm)) 0 var(--space-md);font-size:var(--text-sm);color:var(--dim);}
.cheer-name a{color:var(--brand);}
.kv-name{flex-wrap:wrap;align-items:center;}
.name-form{display:flex;gap:var(--space-xs);align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.name-form input{min-height:40px;width:14rem;max-width:100%;padding:0 var(--space-sm);background:var(--surface);color:var(--paper);
  border:1px solid var(--dim);border-radius:var(--space-xs);font-size:var(--text-md);}
.name-form .cd-save{flex:none;padding:0 var(--space-md);}
.name-note{font-size:var(--text-sm);color:var(--green-hi);}
.lead{font-size:var(--text-md);color:var(--dim-2);line-height:1.6;margin:0 0 var(--space-lg);max-width:60ch;}
.empty{font-size:var(--text-md);color:var(--dim);line-height:1.6;}
.empty a{color:var(--brand);}

.dash-top{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);gap:var(--space-xl);align-items:center;
  padding:var(--space-lg);background:var(--surface-2);border-radius:var(--radius-card);margin-bottom:var(--space-xl);}
.dash-now{display:flex;flex-direction:column;gap:var(--space-md);}
.tally{display:flex;margin:0;}
.tally-cell{flex:1;display:flex;flex-direction:column-reverse;padding:0 var(--space-sm);border-left:1px solid var(--surface-3);}
.tally-cell:first-child{padding-left:0;border-left:0;}
.tally dd{margin:0;font-family:var(--font-display);font-size:var(--text-2xl);font-weight:500;line-height:1;
  color:var(--paper);font-variant-numeric:tabular-nums;}
.tally dt{font-size:var(--text-xs);color:var(--dim);margin-top:var(--space-2xs);}
.tally-cell.g dd{color:var(--green-hi);} .tally-cell.a dd{color:var(--warn-hi);} .tally-cell.m dd{color:var(--magenta-hi);}
.ch-bar{display:flex;height:4px;background:var(--surface-3);border-radius:var(--space-3xs);overflow:hidden;}
.ch-bar i{height:100%;}
.ch-bar .g{background:var(--green-hi);} .ch-bar .a{background:var(--warn-hi);} .ch-bar .m{background:var(--magenta-hi);}
.dash-go{align-self:flex-start;display:inline-flex;align-items:center;min-height:48px;padding:0 var(--space-lg);
  background:var(--brand);color:var(--brand-ink);border-radius:var(--radius-pill);font-size:var(--text-md);font-weight:600;
  text-decoration:none;white-space:nowrap;}
.dash-go:hover{background:var(--brand-bright);}

.dash-sec{margin-bottom:var(--space-xl);}
.dash-sec h2{font-size:var(--text-xl);margin-bottom:var(--space-sm);}
.chrow{display:grid;grid-template-columns:minmax(0, 1fr) auto 160px;align-items:center;gap:var(--space-md);min-height:52px;
  padding:var(--space-sm) 0;border-top:1px solid var(--surface-3);text-decoration:none;color:var(--paper);}
.chrow:last-child{border-bottom:1px solid var(--surface-3);}
.chrow-title{font-size:var(--text-md);font-weight:500;}
.chrow-num{font-size:var(--text-sm);color:var(--dim);white-space:nowrap;font-variant-numeric:tabular-nums;}
.chrow-num b{color:var(--green-hi);font-weight:600;}
.chrow.is-soon{grid-template-columns:minmax(0, 1fr) auto;color:var(--dim);}
a.chrow:hover .chrow-title{text-decoration:underline;text-underline-offset:0.16em;}

.plancard{padding:var(--space-md) 0;border-top:1px solid var(--surface-3);}
.plancard-top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-sm);flex-wrap:wrap;}
.plancard-name{font-family:var(--font-display);font-size:var(--text-lg);font-weight:500;color:var(--paper);}
.plancard-until{font-size:var(--text-sm);color:var(--dim);font-variant-numeric:tabular-nums;}
.expiring .plancard-until{color:var(--magenta-hi);}
.plancard-blurb{font-size:var(--text-sm);color:var(--dim-2);line-height:1.55;margin-top:var(--space-2xs);max-width:60ch;}
.incl{list-style:none;margin:0;padding:var(--space-sm) 0;border-top:1px solid var(--surface-3);border-bottom:1px solid var(--surface-3);
  display:flex;flex-wrap:wrap;gap:var(--space-xs) var(--space-lg);font-size:var(--text-sm);color:var(--green-hi);}
.offer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);flex-wrap:wrap;
  padding:var(--space-md) 0;border-top:1px solid var(--surface-3);}
.offer-name{font-size:var(--text-md);font-weight:600;color:var(--paper);}
.offer-blurb{font-size:var(--text-sm);color:var(--dim-2);line-height:1.5;margin-top:var(--space-3xs);max-width:52ch;}
.offer-buy{display:inline-flex;align-items:center;min-height:40px;background:var(--brand);color:var(--brand-ink);
  border-radius:var(--radius-pill);padding:0 var(--space-md);font-size:var(--text-sm);font-weight:600;white-space:nowrap;text-decoration:none;}
.offer-buy:hover{background:var(--brand-bright);}
table.hist{width:100%;border-collapse:collapse;font-size:var(--text-sm);}
table.hist th{text-align:left;font-weight:500;color:var(--dim);padding:0 var(--space-sm) var(--space-xs) 0;white-space:nowrap;}
table.hist td{padding:var(--space-sm) var(--space-sm) var(--space-sm) 0;border-top:1px solid var(--surface-3);color:var(--paper);}
table.hist .dim{color:var(--dim);}
.kvs{margin:0;}
.kv{display:flex;justify-content:space-between;gap:var(--space-md);padding:var(--space-sm) 0;border-top:1px solid var(--surface-3);}
.kv dt{color:var(--dim);}
.kv dd{margin:0;color:var(--paper);text-align:right;overflow-wrap:anywhere;}
/* ---- the certificate, on the Account page (2026-11-23) ---- */
.cert-fix{position:relative;display:flex;align-items:center;gap:var(--space-3xs);margin-top:var(--space-sm);font-size:var(--text-sm);color:var(--dim);}
.cert-id{font-variant-numeric:tabular-nums;color:var(--paper);}
.cert-actions{display:flex;align-items:center;gap:var(--space-sm);flex-wrap:wrap;margin-top:var(--space-sm);}
.cert-actions .offer-buy{border:0;cursor:pointer;font:inherit;font-weight:600;}
.cert-quiet{display:inline-flex;align-items:center;min-height:40px;padding:0 var(--space-md);border-radius:var(--radius-pill);
  border:1px solid var(--surface-3);background:none;color:var(--dim-2);font:inherit;font-size:var(--text-sm);cursor:pointer;text-decoration:none;}
.cert-quiet:hover{border-color:var(--dim);color:var(--paper);}
.cert-form{display:flex;gap:var(--space-xs);flex-wrap:wrap;margin-top:var(--space-sm);}
.cert-form input{min-height:44px;flex:1 1 16rem;max-width:26rem;padding:0 var(--space-sm);background:var(--surface);color:var(--paper);
  border:1px solid var(--surface-3);border-radius:var(--radius-inner);font:inherit;}
.cert-form .offer-buy{border:0;cursor:pointer;font:inherit;font-weight:600;}
.cert-rule{list-style:none;margin:var(--space-sm) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--space-sm);max-width:40rem;}
.cert-rule li{display:grid;grid-template-columns:1fr auto;gap:var(--space-3xs) var(--space-sm);font-size:var(--text-sm);color:var(--dim-2);}
.cert-rule li b{color:var(--paper);font-weight:600;}
.cert-rule li.is-done b{color:var(--green-hi);}
.cert-bar{grid-column:1 / -1;height:6px;border-radius:var(--radius-pill);background:var(--surface-3);overflow:hidden;}
.cert-bar i{display:block;height:100%;background:var(--brand);border-radius:var(--radius-pill);}
.cert-rule li.is-done .cert-bar i{background:var(--green-hi);}
.cert-more{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs) var(--space-2xs);margin-top:var(--space-2xs);font-size:var(--text-xs);color:var(--dim-2);}
.cert-more-h{width:100%;}
.cert-chip{padding:2px var(--space-xs);border:1px solid var(--surface-3);border-radius:var(--radius-pill);color:var(--paper);white-space:nowrap;}
.dash-links{display:flex;align-items:center;gap:var(--space-lg);flex-wrap:wrap;padding-top:var(--space-md);
  border-top:1px solid var(--surface-3);font-size:var(--text-sm);}
.dash-links a{color:var(--dim-2);}
.dash-links a:hover{color:var(--paper);}
.dash-out{min-height:40px;background:none;border:1px solid var(--surface-3);border-radius:var(--radius-pill);
  padding:0 var(--space-md);color:var(--dim-2);font-size:var(--text-sm);font-weight:500;}
.dash-out:hover{color:var(--paper);border-color:var(--dim);}

/* the contents: the whole course in one line, then a row a chapter */
.overall{padding:var(--space-lg);background:var(--surface-2);border-radius:var(--radius-card);margin-bottom:var(--space-xl);}
.overall .ch-bar{height:6px;border-radius:var(--radius-pill);}
.overall .ch-bar .g{border-radius:var(--radius-pill);}
.overall-top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-sm);flex-wrap:wrap;margin-bottom:var(--space-sm);}
.overall-label{font-size:var(--text-sm);color:var(--dim);}
.overall-value{font-family:var(--font-display);font-size:var(--text-xl);font-weight:500;color:var(--paper);font-variant-numeric:tabular-nums;}
.overall-value b{color:var(--green-hi);font-weight:500;}
/* the share, not just the count: "31 of 500" needs arithmetic to mean anything */
.overall-pct{margin-left:var(--space-xs);font-family:var(--font-body);font-size:var(--text-sm);font-weight:600;color:var(--green-hi);}
/* on the Course page the overall bar sits beside the countdown, inside the
   same panel, so it drops its own box */
.dash-top .overall{padding:0;background:none;margin:0;}
.lead a{color:var(--brand);}
.chlist{display:flex;flex-direction:column;border-bottom:1px solid var(--surface-3);}
.ch{display:grid;grid-template-columns:minmax(0, 1fr) 200px;align-items:center;column-gap:var(--space-lg);row-gap:var(--space-2xs);
  padding:var(--space-md) 0;border-top:1px solid var(--surface-3);text-decoration:none;color:var(--paper);}
.ch-top{grid-column:1;display:flex;align-items:baseline;gap:var(--space-sm);flex-wrap:wrap;}
.ch-title{font-family:var(--font-display);font-size:var(--text-lg);font-weight:500;letter-spacing:var(--tracking-display);}
.ch-code{font-size:var(--text-xs);color:var(--dim);font-variant-numeric:tabular-nums;}
.ch-tag{margin-left:auto;font-size:var(--text-xs);color:var(--dim);}
.ch-meta{grid-column:1;font-size:var(--text-sm);color:var(--dim);font-variant-numeric:tabular-nums;}
.ch > .ch-bar{grid-column:2;grid-row:1 / span 2;}
a.ch:hover .ch-title{text-decoration:underline;text-underline-offset:0.16em;}
.ch.is-soon, .ch.is-soon .ch-title{color:var(--dim);}

@media (max-width:700px){
  .dash-top{grid-template-columns:minmax(0, 1fr);gap:var(--space-lg);}
  .chrow{grid-template-columns:minmax(0, 1fr) auto;}
  .chrow > .ch-bar{grid-column:1 / -1;}
  table.hist th:nth-child(4), table.hist td:nth-child(4){display:none;}
  .ch{grid-template-columns:minmax(0, 1fr);}
  .ch > .ch-bar{grid-column:1;grid-row:auto;margin-top:var(--space-xs);}
}

/* ---- the chapters as cards (chapters/index.html) ----
   The owner asked for cards with a picture instead of a list of names. Each
   card: a sketch on a bone panel (pencil on paper), the chapter's name, where
   you are in it, and one way in. The sketches are drawn in
   assets/js/chapter-art.js and take their colour from here. */
.shell-cards{max-width:var(--member-w);}
.chlist{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:var(--space-lg);border-bottom:0;}
.chcard{display:flex;flex-direction:column;border-radius:var(--radius-card);overflow:hidden;background:var(--surface-2);
  color:var(--paper);text-decoration:none;transition:transform var(--dur-short) var(--ease-out);}
a.chcard:hover{transform:translateY(-2px);}
a.chcard:active{transform:translateY(0);}
.chcard-art{position:relative;background:var(--paper);color:var(--ink);padding:var(--space-md);}
/* the chapter's number and code, written small in the corner of the drawing */
.chcard-code{position:absolute;left:var(--space-md);bottom:var(--space-sm);display:flex;gap:var(--space-2xs);
  font-size:var(--text-xs);line-height:1;color:var(--ink-soft);font-variant-numeric:tabular-nums;}
.chcard-code b{color:var(--ink);font-weight:600;}
.sketch{display:block;width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.sketch text{fill:currentColor;stroke:none;font-family:var(--font-body);font-size:15px;font-weight:600;}
.chcard-body{display:flex;flex-direction:column;gap:var(--space-xs);padding:var(--space-md) var(--space-md) var(--space-lg);flex:1;}
.chcard-title{font-size:var(--text-lg);line-height:1.2;max-width:none;}
.chcard .ch-soon{flex:1;}
/* progress: one number, one bar of clean, the rest in words (app-bar.js) */
.ch-prog{flex:1;display:flex;flex-direction:column;gap:var(--space-xs);margin-top:var(--space-2xs);}
.ch-line{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-sm);
  font-size:var(--text-sm);color:var(--dim);font-variant-numeric:tabular-nums;}
.ch-line b{font-family:var(--font-display);font-size:var(--text-lg);font-weight:500;color:var(--paper);margin-right:var(--space-3xs);}
.ch-pct{font-weight:600;color:var(--green-hi);}
.chcard .ch-bar{height:6px;border-radius:var(--radius-pill);}
.chcard .ch-bar .g{border-radius:var(--radius-pill);min-width:6px;}
.ch-rest{display:flex;flex-wrap:wrap;gap:var(--space-2xs) var(--space-md);font-size:var(--text-xs);color:var(--dim);}
.ch-rest span{display:inline-flex;align-items:center;gap:var(--space-2xs);}
.ch-rest span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--warn-hi);}
.ch-rest .m::before{background:var(--magenta-hi);}
.chcard-go{align-self:flex-start;display:inline-flex;align-items:center;min-height:40px;margin-top:var(--space-sm);padding:0 var(--space-lg);
  border-radius:var(--radius-pill);background:var(--brand);color:var(--brand-ink);font-size:var(--text-sm);font-weight:600;}
a.chcard:hover .chcard-go{background:var(--brand-bright);}
.chcard.is-soon{color:var(--dim);}
.chcard.is-soon .chcard-art{color:var(--ink-soft);background:var(--paper-2);}
.chcard.is-soon .chcard-title{color:var(--dim-2);}
/* the two groups of the Course page: the 13 ATPL subjects, the interview day */
.ch-group{grid-column:1 / -1;margin-top:var(--space-lg);font-size:var(--text-lg);font-weight:600;color:var(--paper);}
.ch-group:first-child{margin-top:0;}
/* the airline packs: a gift, and they say so (owner, 2026-11-22) */
.ch-group.is-gift{color:var(--brand-bright);}
.chcard-gift{position:absolute;right:var(--space-sm);top:var(--space-sm);padding:var(--space-3xs) var(--space-xs);border-radius:var(--radius-pill);
  background:var(--brand);color:var(--brand-ink);font-size:var(--text-xs);font-weight:600;line-height:1.3;}
@media (max-width:1100px){ .chlist{grid-template-columns:repeat(3, minmax(0, 1fr));} }
@media (max-width:820px){ .chlist{grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--space-md);} }
@media (max-width:460px){ .chlist{grid-template-columns:minmax(0, 1fr);} }
/* a phone: the drawing beside the words, not above them. Stacked, each card
   was about 400px tall and the nine of them ran to 3,600px; side by side a
   card is half that and the list reads as a list. */
@media (max-width:460px){
  .chlist{gap:var(--space-sm);}
  .chcard{display:grid;grid-template-columns:104px minmax(0, 1fr);}
  .chcard-art{display:flex;align-items:center;padding:var(--space-xs) var(--space-xs) var(--space-lg);}
  .chcard-code{left:var(--space-xs);bottom:var(--space-xs);}
  .chcard-body{padding:var(--space-md);gap:var(--space-2xs);}
  .chcard-title{font-size:var(--text-md);font-weight:600;}
  .chcard-go{min-height:44px;}
  .sk-card{min-height:180px;}
  .sk-card::before{display:none;}
}
/* a phone held sideways: the card's question and the rating bar share
   about 330px, so the question is set a step smaller and the bar is lower */
@media (max-height:500px) and (max-width:999px){
  .dq{font-size:var(--text-xl);}
  .rate button{min-height:56px;padding-top:var(--space-2xs);padding-bottom:var(--space-2xs);}
}

/* ---- changing tab without a jolt ----
   The owner's words: pressing Reference, Drill or Test "makes harsh shifts".
   Three causes, three fixes. The hint slot is a fixed height (above). The
   panels share a minimum height on a desktop, so what is under them stays
   put. And a panel fades up into place over a fifth of a second instead of
   being swapped in one frame: a CSS animation starts again each time an
   element goes from display:none to shown, which is exactly what a tab does. */
.shell-drill > .panel{animation:panel-in var(--dur-short) var(--ease-out);}
@keyframes panel-in{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
@media (min-width:1000px){
  .shell-drill > .panel{min-height:36rem;}
}

/* the same cards on the dashboard: a span, not a div, carries the bar there */
.chcard .ch-bar{display:flex;}
.chcard .ch-meta b{color:var(--green-hi);font-weight:600;}
.chcard h3.chcard-title{letter-spacing:var(--tracking-display);}

/* Reference shows the first few questions; this is the button for the rest */
.refmore{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:0 var(--space-lg);
  border:0;border-top:1px solid var(--rule);background:none;color:var(--brand-deep);font:inherit;font-size:var(--text-sm);font-weight:600;cursor:pointer;}
.refmore:hover{background:var(--paper-2);}
.refmore:active{background:var(--paper-3);}
.refmore:focus-visible{outline:2px solid var(--brand-deep);outline-offset:-2px;}
/* after a test answer: carry on with the test, or take this one to the drill */
.after-go{display:flex;flex-wrap:wrap;gap:var(--space-sm);}

/* ---- Test: the answer is judged where the eye is (owner, 2026-11-19: "no
   visual sign that I got it right"). A filled mark beside the verdict, green
   with a check or magenta with a cross, the same mark on the option that was
   pressed, and a rule of the same colour across the top of the explanation. ---- */
.after .verdict{position:relative;display:flex;align-items:center;min-height:44px;padding-left:calc(44px + var(--space-sm));
  margin-bottom:var(--space-sm);font-size:var(--text-lg);line-height:1.25;}
.after .verdict::before{content:"";position:absolute;left:0;top:50%;width:44px;height:44px;translate:0 -50%;border-radius:var(--radius-pill);}
.after .verdict::after{content:"";position:absolute;left:10px;top:50%;width:24px;height:24px;translate:0 -50%;background:var(--paper-3);}
.after .verdict.ok::before{background:var(--green);}
.after .verdict.no::before{background:var(--magenta);}
.after .verdict.ok::after{-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;}
.after .verdict.no::after{-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;}
.after:has(.verdict.ok){box-shadow:inset 0 3px 0 var(--green);}
.after:has(.verdict.no){box-shadow:inset 0 3px 0 var(--magenta);}
.opt.right, .opt.wrong{position:relative;padding-right:calc(var(--space-md) + var(--space-lg) + var(--space-sm));border-width:2px;}
.opt.right::after, .opt.wrong::after{content:"";position:absolute;right:var(--space-md);top:50%;width:22px;height:22px;translate:0 -50%;}
.opt.right::after{background:var(--green);-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;}
.opt.wrong::after{background:var(--magenta);-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;}
@media (prefers-reduced-motion:no-preference){
  .after.show .verdict::before{animation:verdict-pop var(--dur-short) var(--ease-out) both;}
  .after.show .verdict::after{animation:verdict-pop var(--dur-short) var(--ease-out) 80ms both;}
}
@keyframes verdict-pop{from{opacity:0;transform:scale(.6);}to{opacity:1;transform:none;}}

/* ---- the free account ----
   Signed in with no plan: every question of a chapter is listed, the sample
   ones open and the rest locked (the server sends a locked one as its
   question alone, lib/preview.js). The lock is a CSS mask, drawn the same way
   as the tab icons. */
.rlock-head{padding:var(--space-sm) var(--space-lg);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
  background:var(--paper-2);font-size:var(--text-sm);font-weight:600;color:var(--ink-soft);}
.ritem.is-locked .rq{color:var(--ink-soft);font-weight:400;}
.rlock{width:14px;height:14px;margin-top:var(--space-2xs);flex:0 0 auto;background:var(--ink-soft);
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;}
.rlock-note{display:none;margin:0;padding:0 var(--space-lg) var(--space-md) var(--space-xl);font-size:var(--text-sm);color:var(--ink-soft);line-height:1.5;}
.ritem.is-locked.open .rlock-note{display:block;}
.rlock-note a{color:var(--brand-deep);font-weight:600;}

/* one calm band at the top of the Course page, the dashboard and a chapter:
   what the free account is, what full access adds, one way to it */
.freeband{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);flex-wrap:wrap;
  margin-bottom:var(--space-xl);padding:var(--space-lg);border-radius:var(--radius-card);background:var(--surface-2);}
.freeband-text{flex:1;min-width:240px;}
.freeband-text b{display:block;font-family:var(--font-display);font-size:var(--text-lg);font-weight:500;color:var(--paper);margin-bottom:var(--space-2xs);}
.freeband-text p{margin:0;font-size:var(--text-md);color:var(--dim-2);line-height:1.5;max-width:62ch;}
.freeband a{display:inline-flex;align-items:center;min-height:48px;padding:0 var(--space-lg);border-radius:var(--radius-pill);
  background:var(--brand);color:var(--brand-ink);font-size:var(--text-md);font-weight:600;text-decoration:none;white-space:nowrap;}
.freeband a:hover{background:var(--brand-bright);}
.freeband a:active{transform:translateY(1px);}
.freeband.is-compact{padding:var(--space-sm) var(--space-md);margin-bottom:var(--space-md);}
.freeband.is-compact .freeband-text b{display:inline;font-family:var(--font-body);font-size:var(--text-md);font-weight:600;margin:0 var(--space-xs) 0 0;}
.freeband.is-compact .freeband-text p{display:inline;font-size:var(--text-sm);}
.freeband.is-compact a{min-height:40px;font-size:var(--text-sm);}

/* the free sample's second offer: an account, not a purchase. Quieter than
   the full-access offer beside it, so there is still one filled button. */
.upsell.upsell-free{background:none;border:1px solid var(--surface-3);}
.upsell.upsell-free a{background:none;color:var(--paper);border:1px solid var(--dim);}
.upsell.upsell-free a:hover{background:var(--surface-2);border-color:var(--paper);}
.plancard-blurb a{color:var(--brand);}

/* ---- The three ratings carry their mark again (owner, 2026-11-19): a question
   mark, a check and a cross, each drawn on a disc of its own colour, the same
   way the Test verdict is. The glyph in the markup is hidden; the mark is a
   mask, so it is sharp at any size and takes its colour from the tokens. ---- */
.rate button{display:grid;grid-template-columns:auto auto;justify-content:center;align-content:center;align-items:center;
  column-gap:var(--space-sm);text-align:left;}
.rate-ico{display:block;position:relative;grid-row:1 / span 2;width:32px;height:32px;border-radius:var(--radius-pill);font-size:0;}
.rate-ico::after{content:"";position:absolute;inset:7px;background:var(--paper-3);}
.rate button b{grid-column:2;margin-bottom:0;}
.rate-fuzzy .rate-ico{background:var(--warn);}
.rate-clean .rate-ico{background:var(--green);}
.rate-fail .rate-ico{background:var(--magenta);}
.rate-fuzzy .rate-ico::after{-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 9a3.5 3.5 0 0 1 6.8 1.2c0 2.3-3.3 3-3.3 4.8'/%3E%3Cpath d='M12 19h.01'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 9a3.5 3.5 0 0 1 6.8 1.2c0 2.3-3.3 3-3.3 4.8'/%3E%3Cpath d='M12 19h.01'/%3E%3C/svg%3E") center / contain no-repeat;}
.rate-clean .rate-ico::after{-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;}
.rate-fail .rate-ico::after{-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;}
/* narrow: the mark sits over the words, so three buttons still fit side by side */
@media (max-width:760px){
  .rate button{grid-template-columns:auto;justify-items:center;text-align:center;row-gap:var(--space-3xs);}
  .rate-ico{grid-row:auto;width:24px;height:24px;}
  .rate-ico::after{inset:5px;}
  .rate button b{grid-column:auto;}
}
.rate-ico::after{inset:6px;}
@media (max-width:760px){ .rate-ico::after{inset:4px;} }

/* the note at the foot of the course pages: where the material comes from and what we do not promise */
.smallprint{display:block;margin-top:var(--space-2xl);padding-top:var(--space-md);border-top:1px solid var(--surface-3);
  max-width:78ch;font-size:var(--text-sm);line-height:1.55;color:var(--dim);}
.smallprint b{color:var(--dim-2);font-weight:600;}

/* ---- "Backed by published research", beside the closing line of the speak-it
   notice (owner, 2026-11-19). The small "i" opens the finding and its two
   papers; shown on hover and on keyboard focus, no script. ---- */
.loud-sci{position:relative;display:inline-flex;align-items:center;gap:var(--space-3xs);margin-left:var(--space-xs);
  padding:0 var(--space-3xs) 0 var(--space-sm);border-radius:var(--radius-pill);
  background:color-mix(in oklab, var(--brand) 18%, transparent);color:var(--brand-bright);
  font-size:var(--text-sm);font-weight:600;white-space:nowrap;vertical-align:middle;}
.loud-tip{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--radius-pill);
  background:none;color:inherit;cursor:help;}
.loud-tip::before{content:"";width:16px;height:16px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;}
.loud-tip:hover{color:var(--paper);}
.loud-tip:focus-visible{outline:2px solid var(--brand-bright);outline-offset:-2px;}
.loud-tooltip{position:absolute;left:0;top:calc(100% + var(--space-xs));z-index:var(--z-tooltip);width:min(46ch, 78vw);
  padding:var(--space-sm) var(--space-md);border-radius:var(--radius-inner);background:var(--paper);color:var(--ink);
  font-size:var(--text-sm);font-weight:400;line-height:1.45;white-space:normal;box-shadow:var(--shadow-lift);
  opacity:0;visibility:hidden;translate:0 -4px;
  transition:opacity var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out), visibility 0s linear var(--dur-micro);}
.loud-tip:hover + .loud-tooltip, .loud-tip:focus + .loud-tooltip, .loud-tooltip:hover{opacity:1;visibility:visible;translate:0 0;transition-delay:0s;}
@media (max-width:760px){
  .loud-sci{display:flex;width:fit-content;margin:var(--space-xs) 0 0;}
}

/* ---- between two ratings: with more than half of the key phrases ticked but
   not all, Fuzzy and Said it clean are both suggested and take turns to light
   up, so the reader chooses. Opacity and transform only; with reduced motion
   both simply stay lit. ---- */
.rate .between{position:relative;}
.rate .between::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 3px currentColor;opacity:0;}
@media (prefers-reduced-motion:no-preference){
  .rate .between::after{animation:between-turn 2.4s ease-in-out infinite;}
  .rate .between .rate-ico{animation:between-mark 2.4s ease-in-out infinite;}
  .rate .rate-clean.between::after, .rate .rate-clean.between .rate-ico{animation-delay:1.2s;}
}
@keyframes between-turn{0%, 50%, 100%{opacity:0;}25%{opacity:1;}}
@keyframes between-mark{0%, 50%, 100%{transform:none;}25%{transform:scale(1.2);}}

/* ---- Drill is the product; Reference and Test serve it (owner, 2026-11-19:
   "the drill is the main content, it must stand out, bigger, in colour"). Its
   tab is wider, larger and in the brand colour at all times: tinted when another
   mode is open, filled when it is the open one. The row keeps its height, so
   changing mode still does not move the card. ---- */
.modes{grid-template-columns:minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);}
.modes [data-mode="drill"]{color:var(--brand-bright);background:color-mix(in oklab, var(--brand) 16%, transparent);
  border-radius:var(--radius-inner) var(--radius-inner) 0 0;border-left-color:transparent;}
.modes [data-mode="drill"] + button{border-left-color:transparent;}
.modes [data-mode="drill"] b{font-family:var(--font-display);font-size:var(--text-xl);font-weight:600;letter-spacing:var(--tracking-display);}
.modes [data-mode="drill"] b::before{width:24px;height:24px;background:var(--brand-bright);}
.modes [data-mode="drill"]:hover{color:var(--paper);background:color-mix(in oklab, var(--brand) 26%, transparent);}
.modes [data-mode="drill"].on{color:var(--brand-ink);background:var(--brand);}
.modes [data-mode="drill"].on b::before{background:var(--brand-ink);}
.modes [data-mode="drill"].on::after{display:none;}
.modes [data-mode="drill"]:active{background:var(--brand-bright);}
@media (max-width:760px){
  .modes{grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);}
  .modes [data-mode="drill"] b{font-size:var(--text-lg);}
  .modes [data-mode="drill"] b::before{width:20px;height:20px;}
}
@media (max-width:360px){
  .modes button{padding:0 var(--space-2xs);}
  .modes button b{font-size:var(--text-sm);gap:var(--space-2xs);}
  .modes [data-mode="drill"] b{font-size:var(--text-md);}
  .modes button:not([data-mode="drill"]) b::before{display:none;}
}

/* ---- a rating that did not reach the account (progress-store.js) ----
   Under the bar, never at the foot: the rating buttons are sticky there. */
.savenote{position:fixed;left:50%;top:calc(var(--bar-h) + var(--space-sm));transform:translateX(-50%);
  z-index:var(--z-tooltip);width:max-content;max-width:calc(100vw - var(--space-xl));
  padding:var(--space-xs) var(--space-md);background:var(--surface-2);color:var(--paper);
  border:1px solid var(--magenta-hi);border-radius:var(--radius-inner);box-shadow:var(--shadow-lift);
  font-size:var(--text-sm);line-height:1.4;opacity:0;visibility:hidden;
  transition:opacity var(--dur-micro) var(--ease-out), visibility var(--dur-micro);}
.savenote.show{opacity:1;visibility:visible;}
.savenote.is-ok{border-color:var(--green-hi);}

/* ---- skeletons: the shape of what is loading, in place ----
   The bar's frame is in each member page's HTML and the content blocks hold
   placeholders until their data arrives (`is-loading` on .shell, removed by
   the page script). Nothing moves when the real thing replaces them. */
.sk{display:block;background:var(--surface-3);border-radius:var(--radius-pill);animation:sk-pulse 1.1s var(--ease-out) infinite alternate;}
@keyframes sk-pulse{from{opacity:.45;}to{opacity:.9;}}
.appbar-sk-nav{width:150px;height:14px;margin-left:var(--space-lg);}
.appbar-sk-right{width:260px;height:32px;margin-left:auto;}
/* the countdown before the date is known: the real "no date" markup, its text
   hidden, so the skeleton is the chip's own size at every width (countdown.js) */
.cd-sk{pointer-events:none;}
.cd-sk .cd-btn, .cd-sk .cd-ask{color:transparent;background:var(--surface-3);border-color:transparent;
  animation:sk-pulse 1.1s var(--ease-out) infinite alternate;}
.cd-sk .cd-ask{border-radius:var(--radius-inner);}
.sk-title{width:min(18ch, 70%);height:0.9em;margin-top:0.12em;border-radius:var(--radius-inner);}
.sk-line{width:min(420px, 80%);height:16px;}
.sk-card{min-height:330px;background:var(--surface-2);animation:sk-pulse 1.1s var(--ease-out) infinite alternate;}
.sk-card::before{content:"";display:block;height:166px;background:var(--surface-3);}
#appbarCountdown:empty{display:none;}
/* numbers that would read as a real "0" before the data arrives */
.is-loading .stats b, .is-loading .overall-value, .is-loading .overall .ch-bar, .is-loading #crumb{visibility:hidden;}
.is-loading .tally:empty, .is-loading #dashCount:empty{display:block;min-height:56px;background:var(--surface-3);
  border-radius:var(--radius-inner);animation:sk-pulse 1.1s var(--ease-out) infinite alternate;}
.is-loading #dashCount:empty{min-height:8.75rem;}
/* no margin above: the real list starts right under the search box, and the
   skeleton used to start 16px lower and jump up (2026-11-24) */
.is-loading #refList:empty{min-height:22rem;margin:0 var(--space-lg);
  background:repeating-linear-gradient(to bottom, transparent 0 18px, var(--paper-2) 18px 34px, transparent 34px 60px);
  background-size:70% 100%;background-repeat:no-repeat;animation:sk-pulse 1.1s var(--ease-out) infinite alternate;}
@media (max-width:760px){
  .appbar-sk-nav{display:none;}
  .appbar-sk-right{grid-row:1;grid-column:2 / -1;width:140px;height:36px;justify-self:end;}
}

/* ---- the drill on a phone: one card (2026-11-20) ----
   Below 1000px the drill is ONE card that fills the screen under the bar and
   the tabs, like an app. Before this the card was about 1,100px tall at 390
   wide: the answer opened below the screen, the page scrolled at reveal, and
   Start sat in a different place on every card. Now:
   - #viewDrill is exactly as tall as the screen left under the bar and the
     tabs (svh: the small viewport, so a browser bar folding away does not
     resize anything), and it never grows;
   - the card face (#dFace) scrolls INSIDE the card, so a long answer never
     moves the page;
   - the footer (#dFoot) holds Start, Show the answer and the three ratings in
     ONE slot of fixed height: the button under the thumb is always in the
     same place, and the ratings appear exactly where it was. Back and Skip
     share the row under it. The footer is also sticky to the bottom of the
     screen, for a screen too short to hold the whole card (a phone held
     sideways) and for the moment before the card is scrolled into place;
   - swiping the card rates it (drill-engine.js), and the stack under it is
     where the next card rises from.
   Desktop (1000px and up) is untouched: the wrappers are display:contents. */
@media (max-width:999px){
  #viewDrill{position:relative;display:flex;flex-direction:column;
    height:calc(100vh - var(--bar-h) - 50px - 2 * var(--space-sm));
    height:calc(100svh - var(--bar-h) - 50px - 2 * var(--space-sm));min-height:26rem;}
  #viewDrill > .scrubber-wrap{flex:none;}
  #drillActive{flex:1;min-height:0;display:flex;flex-direction:column;}
  /* one line, whatever is in it, so the card below never changes size */
  #drillActive .deck{flex:none;flex-wrap:nowrap;min-height:48px;padding-top:var(--space-2xs);padding-bottom:var(--space-2xs);}
  #dDeckText{flex:none;white-space:nowrap;}
  .deck-save{min-width:0;overflow:hidden;text-overflow:ellipsis;}

  /* the slot holds the card and draws the two cards of the stack under it */
  .dcard-slot{position:relative;flex:1;min-height:0;display:flex;padding:var(--space-xs) var(--space-xs) var(--space-md);}
  .dcard-slot::before, .dcard-slot::after{content:"";position:absolute;height:var(--space-md);
    border:1px solid var(--rule);border-top:0;border-radius:0 0 var(--radius-card) var(--radius-card);}
  .dcard-slot::before{left:var(--space-md);right:var(--space-md);bottom:var(--space-xs);background:var(--paper-2);}
  .dcard-slot::after{left:var(--space-lg);right:var(--space-lg);bottom:var(--space-3xs);background:var(--paper-2);opacity:.7;}
  .dcard{position:relative;z-index:1;flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;
    background:var(--paper-3);border:1px solid var(--rule);border-radius:var(--radius-card);overflow:clip;
    box-shadow:0 12px 24px -20px color-mix(in oklab, var(--ink) 70%, transparent);}
  /* each touch-action is written twice: Safari on the iPhone does not know
     "pinch-zoom", drops the whole value, and then claimed every drag on the
     card for itself, the sideways swipes included. The plain value first is
     what it keeps. */
  .dface{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;touch-action:pan-y pinch-zoom;
    scrollbar-width:thin;scrollbar-color:var(--rule) transparent;}
  .dface .chart-box{touch-action:pan-x pan-y;touch-action:pan-x pan-y pinch-zoom;}
  .dface .dlayers-hint{background:var(--paper-3);}
  .dface .dcheck{padding-top:var(--space-sm);}
  /* the clock ring sat on the rule under it: room above and below it */
  .dface .gauge{padding-top:var(--space-2xs);padding-bottom:var(--space-sm);}
  .dcard.is-dragging{transition:none;will-change:transform;cursor:grabbing;user-select:none;-webkit-user-select:none;}
  .dcard.is-springing{transition:transform var(--dur-long) cubic-bezier(0.3, 1.45, 0.45, 1);}
  .dcard.is-rising{animation:card-rise var(--dur-long) var(--ease-out);}
  @keyframes card-rise{from{transform:translateY(var(--space-sm)) scale(0.96);opacity:.5;}to{transform:none;opacity:1;}}
  .dcard-ghost{position:absolute;z-index:var(--z-raised);pointer-events:none;}
  .dcard-ghost.is-flying{transition:transform 320ms var(--ease-in), opacity 320ms var(--ease-in);opacity:0;}

  /* the colour of the rating the card is being swiped to, and its word,
     growing as the swipe nears the line */
  .dswipe{position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;--sw-c:transparent;}
  .dcard[data-drag="2"] .dswipe{--sw-c:var(--green);}
  .dcard[data-drag="1"] .dswipe{--sw-c:var(--warn);}
  .dcard[data-drag="0"] .dswipe{--sw-c:var(--magenta);}
  .dswipe::after{content:"";position:absolute;inset:0;border-radius:inherit;opacity:var(--sw, 0);
    background:color-mix(in oklab, var(--sw-c) 14%, transparent);box-shadow:inset 0 0 0 3px var(--sw-c);}
  .dswipe-lab{position:absolute;top:var(--space-xl);left:50%;z-index:1;translate:-50% 0;rotate:-6deg;opacity:var(--sw, 0);
    padding:var(--space-2xs) var(--space-md);border:2px solid var(--sw-c);border-radius:var(--radius-inner);
    background:var(--paper-3);color:var(--sw-c);font-family:var(--font-display);font-size:var(--text-xl);font-weight:600;white-space:nowrap;}
  .dcard[data-drag="2"] .dswipe-lab{rotate:-8deg;} .dcard[data-drag="0"] .dswipe-lab{rotate:8deg;} .dcard[data-drag="1"] .dswipe-lab{rotate:0deg;}
  .dcard:not([data-drag]) .dswipe-lab{display:none;}
  /* what the checklist suggests, as a glow on the edge the card would go to:
     right for clean, left for couldn't, the top for fuzzy (it goes up) */
  .dswipe::before{content:"";position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity var(--dur-long) var(--ease-out);}
  .dcard[data-suggest] .dswipe::before{opacity:1;}
  .dcard.is-dragging .dswipe::before, .dcard[data-drag] .dswipe::before{opacity:0;}
  .dcard[data-suggest="2"] .dswipe::before{background:linear-gradient(to left, color-mix(in oklab, var(--green) 26%, transparent), transparent var(--space-lg));}
  .dcard[data-suggest="0"] .dswipe::before{background:linear-gradient(to right, color-mix(in oklab, var(--magenta) 24%, transparent), transparent var(--space-lg));}
  .dcard[data-suggest="1"] .dswipe::before{background:linear-gradient(to bottom, color-mix(in oklab, var(--warn) 26%, transparent), transparent var(--space-lg));}
  .dcard[data-suggest="between"] .dswipe::before{background:linear-gradient(to left, color-mix(in oklab, var(--green) 26%, transparent), transparent var(--space-lg)),
    linear-gradient(to bottom, color-mix(in oklab, var(--warn) 26%, transparent), transparent var(--space-lg));}
  /* one line, the first few times the answer opens: the card can be swiped */
  .dcoach{position:absolute;left:var(--space-sm);right:var(--space-sm);bottom:var(--space-sm);z-index:3;pointer-events:none;
    padding:var(--space-xs) var(--space-md);border-radius:var(--radius-inner);background:var(--surface);color:var(--paper);
    font-size:var(--text-sm);line-height:1.4;text-align:center;box-shadow:var(--shadow-lift);
    opacity:0;translate:0 var(--space-xs);transition:opacity var(--dur-short) var(--ease-out), translate var(--dur-short) var(--ease-out);}
  .dcoach.show{opacity:1;translate:0 0;}

  /* the footer: one slot for Start / Show the answer / the ratings, then Back and Skip */
  .dfoot{flex:none;position:sticky;bottom:0;z-index:var(--z-raised);display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);grid-template-rows:64px 44px;gap:var(--space-xs);
    padding:var(--space-2xs) var(--space-sm) var(--space-sm);background:var(--paper);}
  .dfoot .ctrl{display:contents;}
  .dfoot #dMain{grid-area:1 / 1 / 2 / 4;height:100%;min-height:0;min-width:0;font-size:var(--text-lg);}
  .dfoot #dBack{grid-area:2 / 1;} .dfoot #dSkip{grid-area:2 / 3;}
  /* "Drill it again" between Back and Skip, always there, pale until Start */
  .dfoot #dAgain{display:inline-flex;align-items:center;justify-content:center;grid-area:2 / 2;min-width:0;min-height:0;}
  .dfoot #dAgain:disabled{opacity:0.4;}
  /* the middle column is wider, for a mark and three words; Back and Skip
     are one short word each (owner saw the label run past the edge at 390) */
  .dfoot #dAgain{gap:var(--space-2xs);padding:0 var(--space-xs);white-space:nowrap;}
  .dfoot #dAgain::before{width:16px;height:16px;}
  @media (max-width:359px){ .dfoot{grid-template-columns:minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);}
    .dfoot #dBack, .dfoot #dSkip{padding:0 var(--space-2xs);} }
  .dfoot .rate{grid-area:1 / 1 / 2 / 4;position:relative;bottom:auto;border:0;border-radius:var(--radius-inner);overflow:clip;
    box-shadow:0 0 0 1px var(--rule);}
  .dfoot .rate button{height:100%;min-height:0;padding:var(--space-2xs) var(--space-3xs);line-height:1.2;}
  .dfoot .rate button b{margin:0;}
  /* mark, word and "soon" in 64px: at 24px with the default gaps they took
     more than the slot, overflowed upward and the mark sat on the top border
     (owner, 2026-11-22). A 20px mark and no gaps leave room above and below. */
  .dfoot .rate button{row-gap:0;padding-top:var(--space-3xs);padding-bottom:var(--space-3xs);}
  .dfoot .rate-ico{width:20px;height:20px;margin-bottom:var(--space-3xs);}
  .dfoot .rate-ico::after{inset:4px;}

  /* the finished screen fills the card's place */
  /* centred by auto margins, not justify-content: a screen too short for it
     then scrolls from its top instead of cutting the top off */
  #drillDone{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;}
  #drillDone > :first-child{margin-top:auto;}
  #drillDone > :last-child{margin-bottom:auto;}

  /* the weak-set door and a few small controls: a full 44px to press, without
     changing how they look */
  .deck button, .deck-save, .jump, .loud-tip, .weak button{position:relative;}
  .deck button::after, .deck-save::after, .jump::after, .loud-tip::after, .weak button::after{content:"";position:absolute;
    inset:calc(-1 * var(--space-xs)) calc(-1 * var(--space-2xs));}
  .resetlink{min-height:44px;}
}
/* the tabs stay under the bar, so the mode can be changed from the card;
   not on a phone held sideways, which has no height to spare */
@media (max-width:999px) and (min-height:501px){
  .shell-drill > .modes{position:sticky;top:var(--bar-h);z-index:var(--z-sticky);
    margin-left:calc(-1 * var(--space-md));margin-right:calc(-1 * var(--space-md));padding:0 var(--space-md);
    background:color-mix(in oklab, var(--surface) 90%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);}
}
/* sideways: the card takes the screen under the bar, and the footer is one row */
@media (max-width:999px) and (max-height:500px){
  #viewDrill{height:calc(100vh - var(--bar-h) - 2 * var(--space-sm));height:calc(100svh - var(--bar-h) - 2 * var(--space-sm));min-height:0;}
  .dfoot{grid-template-columns:minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);grid-template-rows:52px;}
  .dfoot #dBack{grid-area:1 / 1;} .dfoot #dMain{grid-area:1 / 2;} .dfoot #dSkip{grid-area:1 / 3;}
  .dfoot .rate{grid-area:1 / 1 / 2 / 4;}
  .dfoot #dAgain{display:none;}
  .dfoot .rate button{grid-template-columns:auto auto;justify-content:center;column-gap:var(--space-xs);text-align:left;}
  .dfoot .rate .rate-ico{grid-row:1 / span 2;}
  .dfoot .rate button b{grid-column:2;}
  .dcard-slot{padding:var(--space-2xs) var(--space-xs);}
  .dcard-slot::before, .dcard-slot::after{display:none;}
  #drillActive .deck{min-height:40px;}
  .dface .meta{padding-top:var(--space-xs);}
}
/* a narrow phone, once "Save your progress, free" is in the header: the deck's
   name gives way so the count and the link both fit on the one line */
@media (max-width:420px){
  .deck:has(.deck-save:not([hidden])) .deck-name{display:none;}
  .deck-save{padding:0 var(--space-sm);font-size:var(--text-xs);}
}

/* ---- the Course page's search over every chapter (2026-11-22) ----
   One box over the chapter cards; the results drop below it on a bone well,
   grouped by chapter. On a phone, once results are open, it becomes a sheet
   over the whole screen. assets/js/pages/course-search.js */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.gsearch{position:relative;z-index:var(--z-dropdown);margin:var(--space-lg) 0;}
.gs-input{border-radius:var(--radius-card);border-bottom:0;box-shadow:var(--shadow-lift);}
.gsearch.is-open .gs-input{border-radius:var(--radius-card) var(--radius-card) 0 0;}
.gs-panel{position:absolute;left:0;right:0;top:100%;max-height:min(70vh, 640px);overflow:auto;overscroll-behavior:contain;
  background:var(--paper);color:var(--ink);color-scheme:light;border-top:1px solid var(--rule);
  border-radius:0 0 var(--radius-card) var(--radius-card);box-shadow:var(--shadow-lift);}
.gs-top{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);
  padding:var(--space-2xs) var(--space-lg);background:var(--paper-2);border-bottom:1px solid var(--rule);font-size:var(--text-sm);color:var(--ink-soft);}
.gs-close{min-height:40px;padding:0;border:0;background:none;font:inherit;font-weight:600;color:var(--brand-deep);cursor:pointer;}
.gs-group{border-bottom:1px solid var(--rule);}
.gs-head{display:flex;align-items:baseline;gap:var(--space-xs);margin:0;padding:var(--space-sm) var(--space-lg) var(--space-2xs);
  font-family:var(--font-display);font-size:var(--text-md);font-weight:600;color:var(--ink);}
.gs-head b{font-size:var(--text-sm);color:var(--brand-deep);font-variant-numeric:tabular-nums;}
.gs-head span{margin-left:auto;font-family:var(--font-body);font-size:var(--text-sm);font-weight:500;color:var(--ink-soft);}
.gs-group ul{margin:0;padding:0;list-style:none;}
.gs-item{display:flex;align-items:flex-start;gap:var(--space-sm);padding:var(--space-sm) var(--space-lg);color:var(--ink);text-decoration:none;}
.gs-item:hover, .gs-item:focus-visible{background:var(--paper-2);outline:none;}
.gs-item:focus-visible{box-shadow:inset 3px 0 0 var(--brand-deep);}
.gs-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-3xs);}
.gs-q{font-weight:500;line-height:1.4;}
.gs-ref{display:inline-block;margin-right:var(--space-xs);padding:0 var(--space-2xs);border-radius:var(--space-2xs);vertical-align:.1em;
  background:var(--brand-soft);color:var(--brand-deep);font-size:var(--text-xs);font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;}
.gs-snip{font-size:var(--text-sm);line-height:1.45;color:var(--ink-soft);}
.gs-state{flex:none;margin-top:var(--space-3xs);font-size:var(--text-xs);color:var(--ink-soft);}
.gs-item.is-locked .gs-q{font-weight:400;color:var(--ink-soft);}
/* where a locked card's answer would be: shapes, not words (no answer is ever sent) */
.gs-ghost{display:flex;flex-direction:column;gap:var(--space-2xs);margin-top:var(--space-2xs);filter:blur(2px);}
.gs-ghost i{display:block;height:9px;border-radius:var(--radius-pill);background:color-mix(in oklab, var(--ink-soft) 30%, var(--paper));}
.gs-ghost i:first-child{width:92%;} .gs-ghost i:last-child{width:64%;}
.gs-unlock{font-size:var(--text-xs);font-weight:600;color:var(--brand-deep);}
.gs-more{display:block;padding:var(--space-3xs) var(--space-lg) var(--space-sm);font-size:var(--text-sm);font-weight:600;color:var(--brand-deep);}
.gs-empty{margin:0;padding:var(--space-lg);color:var(--ink-soft);}
.gs-keys{margin:0;padding:var(--space-xs) var(--space-lg);background:var(--paper-2);font-size:var(--text-xs);color:var(--ink-soft);}
/* a card arrived at from the search, in its chapter's Reference */
.ritem.is-found{box-shadow:inset 3px 0 0 var(--brand-deep);}
@media (max-width:700px){
  .gsearch.is-open{position:fixed;inset:0;z-index:var(--z-modal);margin:0;display:flex;flex-direction:column;background:var(--paper);}
  .gsearch.is-open .gs-input{border-radius:0;box-shadow:none;}
  .gsearch.is-open .gs-panel{position:static;flex:1;max-height:none;border-radius:0;box-shadow:none;}
  .gs-keys{display:none;}
}

/* ---- the drill, reworked with the owner (2026-11-24) ----
   1. Before the answer opens, its space says what to do and how many points
      to hit (never which). On a wide screen a big clock sits there too.
   2. The bold phrases in the answer tick the checklist, and a ticked point
      turns green in both places.
   3. "Drill it again" is quiet after reveal: the job then is to rate.
   4. The navigator shares the deck's row on a wide screen; the current card
      is ringed in the brand colour, not in black. */
/* at the top, not the centre: the box is as tall as the answer it holds space
   for, and the centre of a long one is off the screen (a phone showed it) */
.dlayers-hint{align-items:flex-start;padding:var(--space-xl) var(--space-md) var(--space-md);}
.dprep{display:flex;flex-direction:column;align-items:center;gap:var(--space-xs);max-width:32rem;color:var(--ink-soft);}
.dprep-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:var(--radius-pill);background:var(--brand-soft);}
.dprep-mark::before{content:"";width:24px;height:24px;background:var(--brand-deep);
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E") center / contain no-repeat;}
.dprep-say{font-family:var(--font-display);font-size:var(--text-xl);font-weight:600;color:var(--ink);}
.dprep-n{font-size:var(--text-md);color:var(--ink);}
.dprep-dots{display:flex;gap:var(--space-xs);}
.dprep-dots i{width:14px;height:14px;border-radius:var(--radius-pill);border:2px solid var(--brand-deep);}
.dprep-t{display:none;font-family:var(--font-display);font-size:var(--text-display);line-height:1;font-weight:600;
  color:var(--brand-deep);font-variant-numeric:tabular-nums;margin:var(--space-xs) 0;}
.dprep-t.urgent{color:var(--warn);}
.dprep-hint{font-size:var(--text-sm);}
.dprep-keys{margin-top:var(--space-sm);font-size:var(--text-xs);color:var(--ink-soft);}
.dprep-keys kbd{display:inline-block;min-width:1.6em;padding:0 var(--space-2xs);border:1px solid var(--rule);border-bottom-width:2px;
  border-radius:var(--space-2xs);background:var(--paper);font-family:var(--font-body);font-size:var(--text-xs);text-align:center;color:var(--ink);}
@media (min-width:1000px){
  .dprep.is-timing .dprep-t{display:block;}
  .dprep.is-timing .dprep-hint, .dprep.is-timing .dprep-keys{display:none;}
}
@media (max-width:999px){
  .dlayers-hint{padding-top:var(--space-md);}
  .dprep-mark, .dprep-keys{display:none;}
  .dprep-say{font-size:var(--text-lg);}
}

.dlayers.show .lay.say strong.kw{cursor:pointer;transition:background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);}
.dlayers.show .lay.say strong.kw:hover{background:color-mix(in oklab, var(--brand) 40%, var(--paper));}
.lay.say strong.kw.is-said{background:color-mix(in oklab, var(--green) 22%, var(--paper));color:var(--green);}
.kwcheck-row.is-said span{color:var(--green);}
.kwcheck-row input{width:22px;height:22px;}
.lay.bg li{color:color-mix(in oklab, var(--ink) 78%, var(--ink-soft));}

@media (min-width:1000px){
  #dAgain.is-revealed{background:none;border-color:transparent;color:var(--ink-soft);font-weight:500;font-size:var(--text-sm);}
  #dAgain.is-revealed:hover{color:var(--ink);border-color:var(--rule);}
  .deck > .scrubber-wrap{flex:1;min-width:0;order:0;padding:0;background:none;border:0;}
  .deck > #dDeckText{flex:none;}
}
.sc-pip.is-active{border-color:var(--brand-deep);box-shadow:inset 0 0 0 2px var(--brand-deep);color:var(--brand-deep);}

/* ---- the member bar's navigation (owner, 2026-11-24) ----
   Left: ONE link back to the site, the arrow and the wordmark together, one
   hover and one press. Then the menu, led by "Course overview", which is the
   home of the course and looks like the main way around it. */
.appbar-home{display:inline-flex;align-items:center;gap:var(--space-xs);flex-shrink:0;min-width:0;min-height:44px;
  padding:0 var(--space-sm) 0 var(--space-xs);margin-left:calc(-1 * var(--space-xs));border-radius:var(--radius-pill);
  color:var(--dim);text-decoration:none;transition:background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);}
.appbar-home:hover, .appbar-home:focus-visible{background:var(--surface-2);color:var(--paper);}
.appbar-home:active{transform:translateY(1px);}
.appbar-home-arrow{width:18px;height:18px;flex:0 0 auto;background:currentColor;transition:transform var(--dur-micro) var(--ease-out);
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E") center / contain no-repeat;}
.appbar-home .appbar-logo{display:block;}
.appbar-nav{gap:var(--space-2xs);align-items:center;}
.appbar-link{align-self:stretch;}
/* "Course overview": a pill with a grid mark, the menu's main entry */
.appbar-course{align-self:center;gap:var(--space-xs);min-height:36px;padding:0 var(--space-md);border-radius:var(--radius-pill);
  background:color-mix(in oklab, var(--brand) 16%, transparent);color:var(--brand-bright);font-weight:600;}
.appbar-course::before{content:"";width:16px;height:16px;flex:0 0 auto;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;}
.appbar-course:hover{background:color-mix(in oklab, var(--brand) 26%, transparent);color:var(--paper);}
.appbar-course.on{background:var(--brand);color:var(--brand-ink);}
.appbar-course.on::after{display:none;}
@media (max-width:760px){
  .appbar-home{grid-row:1;grid-column:1;justify-self:start;max-width:100%;min-height:44px;padding-right:var(--space-xs);}
  .appbar-home .appbar-logo img, .appbar-home .appbar-logo svg{height:24px;}
  .appbar.is-open .appbar-nav{gap:0;}
  .appbar.is-open .appbar-course{align-self:stretch;min-height:48px;margin:var(--space-xs) 0;padding:0 var(--space-md);font-size:var(--text-md);}
}

/* ---- the chapter switcher, in the crumb of a chapter page (owner, 2026-11-24) ----
   "ATPL subject 032" opens every chapter, grouped as on the Course page,
   each with how much of it is clean; the one you are in is marked. A
   dropdown on a wide screen, a sheet from the bottom on a phone. */
.chsw{position:relative;display:inline-flex;}
.chsw-btn{display:inline-flex;align-items:center;gap:var(--space-2xs);min-height:32px;padding:0 var(--space-xs);margin:0 calc(-1 * var(--space-xs));
  background:none;border:1px solid transparent;border-radius:var(--radius-pill);color:var(--paper);font:inherit;font-weight:600;cursor:pointer;}
.chsw-btn:hover, .chsw-btn[aria-expanded="true"]{background:var(--surface-2);border-color:var(--surface-3);}
.chsw-caret{width:14px;height:14px;background:currentColor;transition:transform var(--dur-micro) var(--ease-out);
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;}
.chsw-btn[aria-expanded="true"] .chsw-caret{transform:rotate(180deg);}
.chsw-pop{position:absolute;top:calc(100% + var(--space-xs));left:calc(-1 * var(--space-xs));z-index:var(--z-tooltip);
  width:min(26rem, calc(100vw - 2 * var(--space-md)));max-height:min(70vh, 34rem);display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--surface-3);border-radius:var(--radius-card);box-shadow:var(--shadow-lift);overflow:hidden;}
.chsw-pop[hidden]{display:none;}
.chsw-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);
  border-bottom:1px solid var(--surface-3);font-size:var(--text-sm);color:var(--paper);}
.chsw-head a{color:var(--brand);font-weight:600;text-decoration:none;}
.chsw-head a:hover{text-decoration:underline;}
.chsw-list{list-style:none;margin:0;padding:var(--space-2xs) 0;overflow-y:auto;overscroll-behavior:contain;}
.chsw-group{padding:var(--space-sm) var(--space-md) var(--space-2xs);font-size:var(--text-xs);font-weight:600;color:var(--dim);}
.chsw-item{display:grid;grid-template-columns:3.2em minmax(0, 1fr) auto;grid-template-rows:auto auto;column-gap:var(--space-xs);row-gap:var(--space-3xs);
  align-items:center;padding:var(--space-xs) var(--space-md);text-decoration:none;color:var(--paper);font-size:var(--text-sm);}
.chsw-item:hover{background:var(--surface-2);}
.chsw-item.is-here{background:color-mix(in oklab, var(--brand) 16%, transparent);box-shadow:inset 3px 0 0 var(--brand);}
.chsw-num{grid-row:1 / span 2;color:var(--dim);font-variant-numeric:tabular-nums;font-size:var(--text-xs);}
.chsw-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chsw-pct{color:var(--dim-2);font-variant-numeric:tabular-nums;font-size:var(--text-xs);}
.chsw-bar{grid-column:2 / span 2;height:3px;border-radius:var(--space-3xs);background:var(--surface-3);overflow:hidden;}
.chsw-bar i{display:block;height:100%;background:var(--green-hi);}
@media (max-width:760px){
  .chsw-pop{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:75vh;border-radius:var(--radius-card) var(--radius-card) 0 0;}
  .chsw-open body{overflow:hidden;}
  .chsw-item{min-height:48px;}
}

/* ---- no jump when a chapter's data arrives (owner, 2026-11-24) ----
   The hint under the tabs is painted before the data (prepaintHint in the
   engine). Here: the counts keep two digits' width, so "0" becoming "68"
   does not move the row; the crumb is as tall as the chapter button that
   replaces its text. */
.shell-drill .stats b{min-width:2ch;font-variant-numeric:tabular-nums;}
.shell-drill .crumb.trail{min-height:32px;}
/* The large countdown on the Course page is 106px without a date and 138px
   with one; the skeleton before it was 56px, so every chapter card jumped
   50px down a fifth of a second after the page opened (measured
   2026-11-24). One height for all three, the tallest. */
#dashCount{min-height:8.75rem;}
/* "Back to website": a small label UNDER the link, never inside the row
   (owner, 2026-11-24). It first unfolded between the arrow and the logo and
   pushed the whole bar sideways; the owner found it abrupt and odd. Now
   nothing in the bar moves: the link lights up as one piece, and the label
   fades in below it after a short hover (300ms, so passing the mouse over it
   shows nothing), and goes at once when the mouse leaves. Not on a phone. */
.appbar-home{position:relative;}
.appbar-home-label{position:absolute;top:calc(100% + var(--space-xs));left:var(--space-xs);z-index:var(--z-tooltip);
  padding:var(--space-2xs) var(--space-sm);border-radius:var(--radius-inner);white-space:nowrap;pointer-events:none;
  background:var(--surface-2);border:1px solid var(--surface-3);box-shadow:var(--shadow-lift);
  font-size:var(--text-xs);font-weight:500;color:var(--paper);
  opacity:0;transform:translateY(-2px);transition:opacity var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);}
.appbar-home:hover .appbar-home-label, .appbar-home:focus-visible .appbar-home-label{opacity:1;transform:none;
  transition-duration:var(--dur-short);transition-delay:300ms;}
@media (prefers-reduced-motion: reduce){ .appbar-home-label{transform:none;transition:none;} }
@media (max-width:760px){ .appbar-home-label{display:none;} }

/* ---- soft transitions in the drill (owner, 2026-11-24: "everything is
   abrupt; a few gentle fades, nothing slow or tiring") ----
   Short fades and a few pixels of rise, 200 to 300ms, staggered by 50ms at
   most. Opacity and transform only, so nothing reflows. Off with reduced
   motion. */
@keyframes soft-in{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:none;}}
/* the next card, on a wide screen: question, then the empty answer space */
#drillActive.is-next .meta, #drillActive.is-next .dq{animation:soft-in var(--dur-short) var(--ease-out) both;}
#drillActive.is-next .dq{animation-delay:30ms;}
#drillActive.is-next .dlayers-hint{animation:soft-in var(--dur-long) var(--ease-out) 60ms both;}
/* reveal: the "say it out loud" panel fades away instead of vanishing,
   the answer's blocks come up one after another, the checklist rows too */
.dlayers-hint{transition:opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);}
.dlayers.show .dlayers-hint{display:flex;opacity:0;visibility:hidden;pointer-events:none;}
.dlayers.show .lay{animation:soft-in 260ms var(--ease-out) both;}
.dlayers.show .lay:nth-child(2){animation-delay:50ms;}
.dlayers.show .lay:nth-child(n+3){animation-delay:100ms;}
.dcheck.show .kwcheck-head{animation:soft-in var(--dur-short) var(--ease-out) both;}
.dcheck.show .kwcheck-row{animation:soft-in var(--dur-short) var(--ease-out) both;}
.dcheck.show .kwcheck-row:nth-of-type(2){animation-delay:40ms;}
.dcheck.show .kwcheck-row:nth-of-type(3){animation-delay:80ms;}
.dcheck.show .kwcheck-row:nth-of-type(n+4){animation-delay:120ms;}
/* a tick: the row and the phrase ease to green */
.kwcheck-row span{transition:color var(--dur-short) var(--ease-out);}
/* the rating bar rises a little as it appears */
.rate{transform:translateY(4px);transition:opacity var(--dur-short) var(--ease-out), visibility var(--dur-short), transform var(--dur-short) var(--ease-out);}
.rate.show{transform:none;}
/* Reference: an opened answer fades in under its question */
.ritem.open .rbody{animation:soft-in var(--dur-short) var(--ease-out);}
@media (prefers-reduced-motion: reduce){
  #drillActive.is-next .meta, #drillActive.is-next .dq, #drillActive.is-next .dlayers-hint,
  .dlayers.show .lay, .dcheck.show .kwcheck-head, .dcheck.show .kwcheck-row, .ritem.open .rbody{animation:none;}
  .rate{transform:none;}
}
/* the bar's labels follow the mouse (drill-engine.js sets --tip-x) */
.bar i.tip-x::after{left:var(--tip-x);right:auto;translate:-50% 4px;}
.bar i.tip-x:hover::after{translate:-50% 0;}

/* ---- pre-launch review, 2026-11-24 ---- */
/* The drill while its cards load: the card's own space, quietly pulsing,
   instead of an empty card with a live-looking Start and "0.0s". A chapter
   opens on the drill now, so this is the first thing a member sees. */
.is-loading #drillActive, .is-loading #dScrubber{visibility:hidden;}
.is-loading #viewDrill{min-height:30rem;animation:sk-pulse 1.1s var(--ease-out) infinite alternate;}
/* keyboard focus on a phrase in the answer: the brand ring was 1.5:1 on its
   own chip. The deep brand is 7:1 on the paper. */
.lay.say strong.kw:focus-visible{outline:2px solid var(--brand-deep);outline-offset:2px;}
/* the member bar on a narrow phone: the wordmark ran into the date chip.
   Under 430px the mark alone stays; the arrow beside it says where it goes. */
@media (max-width:430px){
  .appbar-home .appbar-logo{max-width:27px;overflow:hidden;}
  .appbar-home .appbar-logo img, .appbar-home .appbar-logo svg{max-width:none;}
}
/* under "The 13 ATPL subjects": why the chapters differ in size */
.ch-group-note{grid-column:1 / -1;margin:calc(-1 * var(--space-sm)) 0 0;font-size:var(--text-sm);color:var(--dim-2);}
