/* ============================================================
   respiration.css — what is this lab's own: the header in the ink of The body shelf, the left column
   that each station fills with its own picture, the cards that open one at a time, and the moving pictures of Topic 12.
   Every colour of the page is a token, defined in the bright AND the dark version (memory bright-and-dark-versions). The
   frame's rules are the Immunity Lab's (itself the Cells Lab's). The pictures are dark "screens" in both versions: their
   colours are in js/mem-draw.js.
   ============================================================ */
:root{
  --accent:#0B6A8C; --accent-2:#0C7BA3; --accent-tint:#E1F1F8;
  --c12:rgba(255,255,255,.12);
  /* the inks of the Learn tab (js/terms.js): structures, processes, substances, as in his topic summaries */
  --k-struct:#1B7A43; --k-proc:#B5530F; --k-subst:#B4285F;
  /* the process ink on a step's tinted IGCSE band, where a merged card's marked words now stand (one place for each idea, 27 Nov 2026): 5.1 to 1 */
  --k-proc-band:#A54A0B;
  --on-photo-veil:rgba(14,20,27,.40);
  /* the parts of a station (a block of What you need to know, and its button on the picture): blue and teal, far from the
     inks of the words (green, orange, rose); the teal is close to the lab's own (violet until 11 Nov 2026, when violet came to mean extension; Daniel chose teal) */
  --pt1-ink:#1E5BB8; --pt1-tint:#EAF1FC; --pt1-edge:#B9D0F2; --pt2-ink:#0F766E; --pt2-tint:#E6F4F1; --pt2-edge:#A8D8CF;
}
@media (prefers-color-scheme: dark){
:root:not([data-theme="light"]){
  --accent:#6FD0F5; --accent-2:#4FC3F7; --accent-tint:#10303F;
  --k-struct:#6EDB9A; --k-proc:#F5A35C; --k-subst:#F48FB4;
  --k-proc-band:#F5A35C;
  --pt1-ink:#8DB9FF; --pt1-tint:#14233A; --pt1-edge:#2C4C7A; --pt2-ink:#7FD8C9; --pt2-tint:#12302C; --pt2-edge:#2D6A61;
}
}
:root[data-theme="dark"]{
  --accent:#6FD0F5; --accent-2:#4FC3F7; --accent-tint:#10303F;
  --k-struct:#6EDB9A; --k-proc:#F5A35C; --k-subst:#F48FB4;
  --k-proc-band:#F5A35C;
  --pt1-ink:#8DB9FF; --pt1-tint:#14233A; --pt1-edge:#2C4C7A; --pt2-ink:#7FD8C9; --pt2-tint:#12302C; --pt2-edge:#2D6A61;
}

/* ---------- the header: the shelf's own colours, never the other labs' green ---------- */
.hdr{background:var(--hdr-bg);color:var(--hdr-ink);border-bottom:1px solid var(--hdr-line);box-shadow:none}
.hdr__title{font-weight:700;letter-spacing:-.01em}
/* his name is never cut (memory header-footer-credit): the topic line gives way first */
.hdr__title,.hdr__by{flex:none}
.hdr__mark{flex:none}
@media (max-width:1800px){ .hdr__sub{display:none} }
@media (max-width:1300px) and (min-width:1001px){ .stat--stations{display:none} }
/* a laptop: the byline steps under the lab's name, and a long sign-in message takes a second row rather than pushing a button off the window */
@media (max-width:1800px) and (min-width:821px){ .hdr__mark{flex-direction:column;align-items:flex-start;gap:0} }
@media (min-width:821px){ .hdr__stats{flex:0 1 auto;min-width:0;flex-wrap:wrap;justify-content:flex-end;row-gap:4px} }
@media (max-width:1180px) and (min-width:1001px){ .stat__lbl{display:none} .stat{padding:4px 10px 4px 5px} }
.hdr__sub{color:var(--hdr-soft);opacity:1;font-size:12.5px;min-width:0;flex:0 1 auto}
.hdr__by{color:var(--hdr-soft);opacity:1}
.hdr__by:hover,.hdr__by:focus-visible{color:var(--hdr-ink)}
.badge{background:var(--hdr-veil);border:1px solid var(--hdr-line);color:var(--hdr-ink);cursor:pointer}
.stat{background:var(--hdr-veil);border:1px solid var(--hdr-line);color:var(--hdr-ink)}
.stat--go:hover,.stat--go:focus-visible{background:var(--accent-tint)}
.ring .bg{stroke:var(--hdr-line)}
.ring .fg{stroke:var(--accent-2)}
.hbtn{background:var(--hdr-veil);border:1px solid var(--hdr-line);color:var(--hdr-ink);text-decoration:none}
.hbtn:hover{background:var(--accent-tint)}
.hbtn--save.is-ok{background:var(--accent-tint);color:var(--accent);border-color:var(--accent-2)}
.hbtn--save.is-ok:hover{background:var(--accent-tint)}
.hbtn--save.is-busy{background:var(--hdr-veil);color:var(--hdr-ink);border-style:dashed}
.hbtn--save.is-no{background:var(--bad-tint);color:var(--bad);border-color:var(--bad)}
.hbtn--save.is-no:hover{background:var(--bad-tint)}
.hbtn--save.is-off{background:transparent;color:var(--hdr-ink);border-style:dashed}
/* the way back (14 Oct 2026, Daniel: pupils missed it): a solid pill in the lab's green, first in the header; the header's own white (dark at night) as its words */
.hbtn--back{background:var(--accent);border-color:var(--accent);color:var(--hdr-bg);box-shadow:0 1px 2px rgba(0,0,0,.18)}
.hbtn--back:hover,.hbtn--back:focus-visible{background:var(--accent-2);border-color:var(--accent-2);color:var(--hdr-bg)}
#btnTheme{white-space:nowrap}

/* the station's heading: a piece of membrane in the accent, and a particle crossing it in the substance rose */
.st-head__ic{background:var(--accent-tint);border:1px solid var(--edge);color:var(--accent)}
.st-head__ic .ic-cell{stroke:var(--accent)}
.st-head__ic .ic-nuc{stroke:var(--k-subst)}
.st-title{color:var(--ink);font-weight:700;letter-spacing:-.015em}

/* ---------- the left column: each station's own picture ---------- */
.platecol{position:relative;min-height:0;overflow:hidden;display:flex;flex-direction:column;
  background:var(--col-bg);color:var(--col-ink);border-right:1px solid var(--col-line)}
.platecol__tools{position:relative;z-index:6;display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:0}
.platecol__tools:empty{display:none}
.tool{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--col-ink);cursor:pointer;
  border:1px solid var(--col-line);border-radius:var(--r-pill);padding:6px 12px;background:var(--col-card)}
.tool:hover{border-color:var(--accent)}
.tool[hidden]{display:none}
.tool--sim{margin-right:auto}
.viewhost{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.viewhost[hidden]{display:none}
.view{flex:1;min-height:0;display:flex;flex-direction:column}
.view[hidden]{display:none}
.said{position:relative;z-index:4;margin:0;padding:8px 16px 12px;text-align:center;border-top:1px solid var(--col-line);background:var(--col-bg)}
.said:empty{display:none}
.said__name{display:block;font-size:14px;font-weight:600;color:var(--col-ink)}
.said__credit{display:block;font-size:11.5px;color:var(--col-soft);margin-top:2px}
/* a picture of several photographs: its credits folded under it (Daniel, 4 Nov 2026), open upwards into the picture's space */
.said__fold{margin-top:3px;font-size:12.5px;color:var(--col-soft)}
.said__fold summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;padding:2px 8px;border-radius:6px;list-style:none}
.said__fold summary::-webkit-details-marker{display:none}
.said__fold summary::before{content:'\25B8';font-size:11px}
.said__fold[open] summary::before{content:'\25BE'}
.said__fold summary:hover{color:var(--col-ink)}
.said__fold summary:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.said__list{margin:4px auto 0;padding:0;list-style:none;text-align:left;display:inline-block;max-width:100%;line-height:1.45}
.said__list b{color:var(--col-ink);font-weight:600}
.sim{flex:1;min-height:0;overflow:auto;padding:12px 14px 16px;display:flex;flex-direction:column}
.sim[hidden]{display:none}
.sim .widget{margin-top:0;border:none;box-shadow:none;background:transparent;padding:0}
.platecol.is-sim .said{display:none}
.stg__park{display:none}
.stg__title{margin:2px 0 0;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.stg__title[hidden]{display:none}

/* a button that belongs to a picture */
.vbtn{font:inherit;font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  border:1.5px solid var(--accent);border-radius:var(--r-pill);background:var(--col-card);color:var(--accent);padding:7px 16px}
.vbtn:hover{background:var(--accent-tint)}
.vbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* labels on a picture: the line ends ON the part, no dot (Daniel, 4 Oct 2026) */
.lb__dot{display:none}
/* label lines one steady width on screen, however far a picture is scaled to fit (8 Oct 2026) */
svg .lb__lead,svg .lb__halo{vector-effect:non-scaling-stroke}
/* the pale band under a label line stops where the line stops: with a round end it covered a ribosome or a
   mitochondrion the line touched (18 Oct 2026) */
.lb__halo{stroke:var(--col-bg);stroke-linecap:butt}
.lb__lead{stroke:var(--col-ink)}
.lb__txt{fill:var(--col-ink);stroke:var(--col-bg)}
/* a word whose key-word card is at the bottom of this station: the faint rule of a definition and a small arrow down,
   for "down to its card here" (25 Oct 2026) */
.t.is-kw,.tc.is-kw{cursor:pointer;border-bottom:1px dotted var(--c49);padding-bottom:1px}
.t.is-kw::after,.tc.is-kw::after{content:"↓";font-size:.72em;vertical-align:.2em;margin-left:1px;opacity:.75}
.t.is-kw:hover,.tc.is-kw:hover{background:var(--c41);border-radius:3px}
.t.is-kw:focus-visible,.tc.is-kw:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
/* a name that opens its card (views/figure.js gives it role="button"); any other name is only a name: no hand, no colour */
.lb[role="button"]{cursor:pointer}
.lb__lead,.lb__halo{pointer-events:none}
.lb:focus-visible{outline:none}
.lb[role="button"]:focus-visible .lb__txt,.lb[role="button"]:hover .lb__txt{fill:var(--accent)}
.lb.is-lit .lb__txt{fill:var(--accent);font-weight:700}
.lb.is-lit .lb__lead{stroke:var(--accent);stroke-width:2.6}
.lb.is-dim{opacity:.45}

/* a picture's own buttons, in a bar above it */
.vbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;padding:0 6px 6px}

/* ---------- a sentence as a card: the heading always shows, the words open one card at a time ---------- */
.exam-list > li.xcard{padding:0;margin:0 0 8px}
.exam-list > li.xcard::before{display:none}
.xcard__h{width:100%;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;
  font:inherit;font-size:15.5px;font-weight:600;color:var(--ink);background:var(--card-2);
  border:1px solid var(--edge);border-radius:var(--r);padding:10px 14px}
.xcard__h:hover{border-color:var(--accent)}
.xcard__h:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.xcard__t{flex:1;min-width:0}
.xcard__a{width:9px;height:9px;border-right:2px solid var(--grey);border-bottom:2px solid var(--grey);transform:rotate(45deg);transition:transform .2s;flex:none;margin-top:-4px}
.xcard.is-open .xcard__h{border-color:var(--accent);background:var(--accent-tint);border-bottom-left-radius:0;border-bottom-right-radius:0}
.xcard.is-open .xcard__a{transform:rotate(225deg);margin-top:4px}
.xcard__b{display:flow-root;border:1px solid var(--accent);border-top:0;border-radius:0 0 var(--r) var(--r);padding:12px 14px;background:var(--card)}      /* flow-root: a photo that stands beside the words stays inside the card (Daniel, 1 Dec 2026, the Yeast card) */
.xcard__b[hidden]{display:none}
/* a small photo in a card stands under its words, its caption beside it: beside a short text it left most of the card empty */
.exam-list li .xcard__b .photo--small:not(.photo--portrait){float:none;display:grid;grid-template-columns:min(190px,42%) minmax(0,1fr);gap:4px 16px;align-items:center;width:auto;max-width:none;margin:12px 0 2px}
.exam-list li .xcard__b .photo--small:not(.photo--portrait) figcaption{margin:0;font-size:13px;line-height:1.45;text-align:left;overflow-wrap:anywhere}
/* a film (a step animation) in a card of its own (copied from the Inheritance Lab, 8 Nov 2026), drawn as a dark "screen", like a video player, so a pupil sees at once
   that it opens an animation (Daniel, 8 Nov 2026: "a different kind of tab that has a different background"; then: not
   purple, "because purple is the color that you use for IB extensions … not any other color used for color coding, but
   still easy to see"). --anim: ink in a bright page, near white in a dark one; it is also the player's Play button, step
   bar and current step, so nothing in an animation is purple. The widget's own title is the card's heading. */
:root{--anim:#1B2430;--anim-ink:#FFFFFF;--anim-soft:#C9D2DC;--anim-scr:var(--anim);--anim-scr-ink:var(--anim-ink);--anim-scr-soft:var(--anim-soft);--anim-edge:var(--anim)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--anim:#E6EBF1;--anim-ink:#121820;--anim-soft:#3B4756;--anim-scr:#06090D;--anim-scr-ink:#F2F5F7;--anim-scr-soft:#A9B6C2;--anim-edge:#4E5D6C}}
:root[data-theme="dark"]{--anim:#E6EBF1;--anim-ink:#121820;--anim-soft:#3B4756;--anim-scr:#06090D;--anim-scr-ink:#F2F5F7;--anim-scr-soft:#A9B6C2;--anim-edge:#4E5D6C}
.xcard--film .xcard__h{background:var(--anim-scr);border-color:var(--anim-edge);color:var(--anim-scr-ink)}
.xcard--film .xcard__h:hover{filter:brightness(1.12)}
.xcard--film.is-open .xcard__h{background:var(--anim-scr);color:var(--anim-scr-ink)}
.xcard--film .xcard__h:focus-visible{outline-color:var(--anim-edge)}
.xcard--film .xcard__a{border-color:var(--anim-scr-ink)}
.xcard--film .xcard__b{border-color:var(--anim-edge)}
.xcard__play{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--anim-scr-ink);color:var(--anim-scr);font-size:11px;padding-left:2px}
.xcard__kind{display:block;font-size:12.5px;font-weight:600;color:var(--anim-scr-soft);margin-top:1px}
.xcard--film .xcard__b > .widget > .widget__h,.xcard--film .xcard__b > .widget > .widget__ask,
.xcard--film .lvw__bar + .widget > .widget__h,.xcard--film .lvw__bar + .widget > .widget__ask{display:none}
.exam-part[class*="exam-part--"] .xcard--film .xcard__h,.exam-part[class*="exam-part--"] .xcard--film .xcard__h:hover,.exam-part[class*="exam-part--"] .xcard--film.is-open .xcard__h{background:var(--anim-scr);border-color:var(--anim-edge);color:var(--anim-scr-ink)}
.exam-part[class*="exam-part--"] .xcard--film .xcard__b{border-color:var(--anim-edge)}
/* the player in the animation colour: Play, the step bar, the step on screen and its words' panel */
.sp__bar{--sp:var(--anim)}
.sp__play{color:var(--anim-ink)}
.sp__step.is-on .sp__stepb{border-color:var(--anim);background:color-mix(in srgb,var(--anim) 7%,var(--card))}
.sp__step.is-on .sp__num{background:var(--anim);color:var(--anim-ink)}
.sp__now.sp__now--panel{border-left-color:var(--anim)}
@keyframes sp-next{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--anim) 45%,transparent)}100%{box-shadow:0 0 0 11px transparent}}
/* a widget, photo or table inside a card sits inside it: the list's bullet margin (-26px in app.css) does not apply here */
.exam-list li.xcard .widget,.exam-list li.xcard .media,.exam-list li.xcard .photo,.exam-list li.xcard .ctable{margin-left:0;margin-right:0;max-width:100%}
/* a closed tooltip takes no room: laid out while hidden, it made the panel scroll sideways when its word sat near the
   right edge (8 Oct 2026); it shows on hover, on focus and when pressed, as before */
/* a grid question's row names wrap, so the table fits a narrow panel without scrolling inside the question */
.gridq tbody th{white-space:normal;min-width:6.5em}
/* a picture in a pop-up never takes more than a third of the screen's height, so its words stay beside the word pressed */
.peek img{max-height:34vh;object-fit:contain}
/* "Going further": a long reference wraps inside its card instead of running past it */
.later__ref{max-width:100%;white-space:normal}
/* the picture's fold button: the page's own sans and sentence case, a comfortable tap */
.fold{font-family:var(--font);font-size:12.5px;letter-spacing:0;text-transform:none;min-height:32px}
/* a question's picture: every ring has a larger invisible tap area, and on a drawing the ring does not hide its part */
.hs__pt::before{content:"";position:absolute;inset:-9px;border-radius:50%}
.hs__stage--fig .hs__pt{background:transparent}
/* the keyword cards' prompt reads at full strength */
.kw__ask{color:var(--col-soft);font-style:normal}
/* the station row fades at its ends on a narrow screen, so a cut-off name reads as "more this way" */
@media (max-width:1000px){ .rail__track{-webkit-mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent)} }
/* a phone: the header is the name above ONE row of buttons (short labels), and the picture's own buttons are easy to tap */
@media (max-width:540px){
  .hdr__stats{flex-wrap:wrap;gap:5px}   /* one row as a rule; a long warning ("Sign in again" and Google's button) takes a second row rather than pushing buttons off the screen */
  .hdr__stats .hbtn{padding:5px 8px;font-size:12px;min-height:32px}
  .hdr__stats .hbtn__short{font-size:14px}
  #btnHelp{width:32px;height:32px}
  .stat{padding:3px 8px 3px 4px}
  .cellv__mode,.memv__btn{min-height:34px}
  .vbar{gap:6px}
}
/* a question on a cell drawing: the drawing at a readable size, centred, its stage as wide as the drawing */
.hs__stage--fig{max-width:min(100%,400px);margin-left:auto;margin-right:auto;background:var(--col-card)}
.hs__stage--fig svg{background:transparent}
.tip::after,.tip::before{display:none}
.tip:hover::after,.tip:hover::before,.tip:focus-visible::after,.tip:focus-visible::before,.tip.is-open::after,.tip.is-open::before{display:block}
@media (prefers-reduced-motion: reduce){ .xcard__a{transition:none} }


/* the inks of this lab (js/terms.js) */
.t--struct{color:var(--k-struct)} .t--proc{color:var(--k-proc)} .t--subst{color:var(--k-subst)}
.sp__lv .t--proc{color:var(--k-proc-band)}
.chip--struct{background:var(--k-struct);color:var(--on-ink)} .chip--proc{background:var(--k-proc);color:var(--on-ink)}
.chip--subst{background:var(--k-subst);color:var(--on-ink)}

/* ---------- phone and upright tablet: the picture as a strip above the notes ---------- */
@media (max-width:1000px) and (min-height:561px){
  /* pinned above the notes (the Cells Lab's rule, 8 Oct 2026), so the picture stays beside the words about it */
  .platecol{position:sticky;top:0;z-index:4;height:min(42vh,380px);box-shadow:0 2px 10px var(--c176)}
  .platecol.is-folded{height:auto}
  .platecol.is-folded .viewhost,.platecol.is-folded .said{display:none}
  /* the town, the defences and the photographs are working pictures: they scroll with the page at full width */
  .platecol[data-kind="figure"],.platecol[data-kind="bodycell"],.platecol[data-kind="uses"],.platecol[data-kind="equation"],.platecol[data-kind="routes"],.platecol[data-kind="flasks"],.platecol[data-kind="yeastbench"],.platecol[data-kind="anaerobic"],.platecol[data-kind="debtbody"],.platecol[data-kind="venn"],.platecol[data-kind="places"],.platecol[data-kind="race"],.platecol[data-kind="solvent"],.platecol[data-kind="osmo"],.platecol[data-kind="tubing"],.platecol[data-kind="twocells"],.platecol[data-kind="carrierv"],.platecol[data-kind="roothair"],.platecol[data-kind="compare"]{position:relative;height:auto;box-shadow:none}
  .platecol .memv{padding-bottom:4px}

}
/* the working pictures on a phone, upright or on its side: the column is as tall as the picture, its counters and its key, so nothing is cut or pushed under the buttons */
@media (max-width:1000px){
  .stage{grid-template-rows:max-content minmax(0,1fr)}
  .platecol[data-kind="figure"],.platecol[data-kind="bodycell"],.platecol[data-kind="uses"],.platecol[data-kind="equation"],.platecol[data-kind="routes"],.platecol[data-kind="flasks"],.platecol[data-kind="yeastbench"],.platecol[data-kind="anaerobic"],.platecol[data-kind="debtbody"],.platecol[data-kind="venn"],.platecol[data-kind="places"],.platecol[data-kind="race"],.platecol[data-kind="solvent"],.platecol[data-kind="osmo"],.platecol[data-kind="tubing"],.platecol[data-kind="twocells"],.platecol[data-kind="carrierv"],.platecol[data-kind="roothair"],.platecol[data-kind="compare"]{height:auto}
  .platecol[data-kind="figure"] > .viewhost,.platecol[data-kind="bodycell"] > .viewhost,.platecol[data-kind="uses"] > .viewhost,.platecol[data-kind="equation"] > .viewhost,.platecol[data-kind="routes"] > .viewhost,.platecol[data-kind="flasks"] > .viewhost,.platecol[data-kind="yeastbench"] > .viewhost,.platecol[data-kind="anaerobic"] > .viewhost,.platecol[data-kind="debtbody"] > .viewhost,.platecol[data-kind="venn"] > .viewhost,.platecol[data-kind="places"] > .viewhost,.platecol[data-kind="race"] > .viewhost,.platecol[data-kind="solvent"] > .viewhost,.platecol[data-kind="osmo"] > .viewhost,.platecol[data-kind="tubing"] > .viewhost,.platecol[data-kind="twocells"] > .viewhost,.platecol[data-kind="carrierv"] > .viewhost,.platecol[data-kind="roothair"] > .viewhost,.platecol[data-kind="compare"] > .viewhost,.platecol[data-kind="figure"] .memv,.platecol[data-kind="bodycell"],.platecol[data-kind="uses"],.platecol[data-kind="equation"],.platecol[data-kind="routes"],.platecol[data-kind="flasks"],.platecol[data-kind="yeastbench"],.platecol[data-kind="anaerobic"],.platecol[data-kind="debtbody"],.platecol[data-kind="venn"] .memv,.platecol[data-kind="places"] .memv,.platecol[data-kind="race"] .memv,.platecol[data-kind="solvent"] .memv,.platecol[data-kind="osmo"] .memv,.platecol[data-kind="tubing"] .memv,.platecol[data-kind="twocells"] .memv,.platecol[data-kind="carrierv"] .memv,.platecol[data-kind="roothair"] .memv,.platecol[data-kind="compare"] .memv{flex:none}
}

/* "Check yourself": a yellow highlighter under red-brown words, the same in both versions (a highlighter does not
   change in the dark); the box keeps the theme's own ground */
:root{ --gold-ink:#8A2A1E; --gold-mark:#FFE36B; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --gold-ink:#FFD98A; --gold-mark:rgba(255,217,138,0.14); } }
:root[data-theme="dark"]{ --gold-ink:#FFD98A; --gold-mark:rgba(255,217,138,0.14); }
.golden__h,.exam-alert__h{color:var(--gold-ink);background:linear-gradient(180deg,transparent 14%,var(--gold-mark) 14%,var(--gold-mark) 92%,transparent 92%)}
.golden p + p{margin-top:8px}

/* ---------- the shared look of a picture's own controls ---------- */
.cellv__mode{font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:var(--r-pill);cursor:pointer;
  border:1.5px solid var(--col-line);background:var(--col-card);color:var(--col-ink)}
.cellv__mode[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-tint);color:var(--accent)}
.cellv__mode:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vbtn[disabled]{opacity:.45;cursor:default}

/* ---------- stations 5–7: one cell, several ways of seeing it ---------- */
.cellv{flex:1;min-height:0;display:flex;flex-direction:column;padding:8px 8px 8px}
.cellv__stage{flex:1;min-height:0;display:flex}
.cellv__svg{flex:1;min-height:0;width:100%;height:100%;display:block}
.cellv__veil{fill:var(--on-photo-veil);opacity:0;transition:opacity .3s ease;pointer-events:none}
.cellv__veil.is-on{opacity:1}
.cellv__note{margin:6px 8px 0;font-size:13.5px;font-weight:600;color:var(--amber);text-align:center}
.cellv__note[hidden]{display:none}

/* "Put in order": the step numbers are neutral until the answer is checked (they were the red of a wrong answer) */
.oitem__n{background:transparent;color:var(--accent);border:1.5px solid var(--accent)}
.order.is-ok .oitem__n{background:var(--accent-2);color:var(--c3);border-color:transparent}
.order.is-no .oitem__n{background:var(--red);color:var(--c3);border-color:transparent}
.oitem__grip{color:var(--grey)}
/* every instruction under a question in one style (the match-up's was an amber callout) */
.act p.hinttext{display:block;background:none;border:0;border-radius:0;padding:0;margin:2px 0 8px;font-size:12.5px;color:var(--grey)}
/* a gap inside a sentence is as tall as a line of text, so the sentence still reads as one */
.cloze{line-height:2.05}
.cloze .gap{line-height:1.3}
/* four groups to sort into: two by two, never three and one */
.bins:has(> .bin:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
/* one ring for every picture, photograph or drawing: white with a dark edge inside and out, so it reads on any ground */
.hs__pt:not([aria-pressed="true"]),.hs__stage svg ~ .hs__pt:not([aria-pressed="true"]){border:2px solid rgba(255,255,255,.95);background:rgba(255,255,255,.1);
  box-shadow:0 0 0 1.5px rgba(10,20,28,.78),inset 0 0 0 1px rgba(10,20,28,.5)}
.hs__pt:not([aria-pressed="true"]):hover{background:rgba(255,255,255,.35)}
/* no word left alone on the last line of a paragraph */
p,li,dd,figcaption{text-wrap:pretty}
/* a cell picture's numbered pins and their key (when words in the margins would squeeze the picture) */
.lb__pin{fill:var(--col-card);stroke:var(--col-ink);stroke-width:1.3px;vector-effect:non-scaling-stroke}
.lb__pinn{fill:var(--col-ink);font-family:var(--font);font-weight:700}
.lb.is-lit .lb__pin{fill:var(--accent);stroke:var(--accent)}
.lb.is-lit .lb__pinn{fill:var(--on-ink)}
.lb:hover .lb__pin,.lb:focus-visible .lb__pin{stroke:var(--accent)}
.lb--key .lb__txt{stroke:none}

/* a link out of the lab reads as a button, not as one more badge beside it */
.later__out{background:transparent;color:var(--accent);border:1.5px solid var(--accent)}
.later__out:hover{background:var(--accent-tint);filter:none}
/* a tall photograph in a question is capped in height, so the question, the picture and "Check answer" fit on one
   screen; the stage shrinks to the picture, so every ring stays on its part */
.hs__stage:has(> img){width:fit-content;max-width:100%;margin-left:auto;margin-right:auto}
.hs__stage > img{width:auto;max-width:100%;max-height:min(520px,62vh)}
/* a heading over a picture (two photographs side by side) */
.cellv__head{fill:var(--col-ink);font-family:var(--font);font-weight:700;paint-order:stroke;stroke:var(--col-bg);stroke-width:3px;stroke-linejoin:round}


/* a phone: the numbered names of an animation, under the drawing */
.pinkey{list-style:none;margin:6px 4px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px;font-size:13.5px}
.pinkey[hidden]{display:none}
.pinkey b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--ink);font-size:11.5px;margin-right:4px}
/* (copied from the Inheritance Lab, 8 Nov 2026) a step's words in parts, each marked with its level (Daniel, 8 Nov 2026: "exactly what is IGCSE and what is IB and what
   is beyond … It needs to be very, very clear"): IGCSE in the lab's green, IB in the IB blue, beyond both in grey italics,
   each a filled tint (memory level-colours-never-blank); the key to them, once, above the steps */
.sp__lv{display:block;margin-top:5px;padding:4px 9px 5px;border-radius:7px;border-left:3px solid var(--accent);background:var(--accent-tint)}
.sp__lv:first-child{margin-top:0}
.sp__lvt{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:1px 7px;border-radius:var(--r-pill);margin-right:3px;vertical-align:1px;background:#0F6B57;color:#FFFFFF}
.sp__lv .sp__lvt{background:#0F6B57;color:#FFFFFF}   /* inside a step's words too, where bold text takes the ink colour */
.sp__lv--ib,.sp__lv--ibhl{background:var(--ext-tint);border-left-color:var(--ext)}
.sp__lv--ib .sp__lvt,.sp__lv--ibhl .sp__lvt{background:var(--ext);color:var(--ext-on)}
.sp__lv--bey{background:var(--ext-tint);border-left-color:var(--ext)}
.sp__lv--bey .sp__lvt{background:var(--ext);color:var(--ext-on);font-style:italic}
.sp__legend{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;font-size:12.5px;line-height:1.35}
.sp__legend .sp__lv{display:inline-block;margin:0;padding:3px 8px}
/* a step with no IGCSE line: its level on its button (w-common.js onlyLv) */
.sp__only{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:0 6px;border-radius:var(--r-pill);vertical-align:1px;border:0;margin-left:2px}
.sp__only.sp__lv--ib,.sp__only.sp__lv--ibhl{background:var(--ext);color:var(--ext-on)}
.sp__only.sp__lv--bey{background:var(--ext);color:var(--ext-on);font-style:italic}
.sp__step--ib .sp__stepb,.sp__step--ibhl .sp__stepb{background:var(--ext-tint)}
.sp__step--bey .sp__stepb{background:var(--ext-tint)}
.figkey{list-style:none;margin:6px 10px 2px;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13.5px;color:var(--col-ink)}
.figkey[hidden]{display:none}
.figkey li{display:inline-flex;align-items:center;gap:7px}
.figkey__sw{flex:none;width:14px;height:14px;border-radius:4px;border:1px solid rgba(0,0,0,.25)}
.anikey{margin:8px 4px 0;font-size:13px;gap:6px 18px;align-content:flex-start}
.anikey li{gap:6px} .anikey li[hidden]{display:none}
.anikey__sw{flex:none;width:28px;height:14px;overflow:visible}

/* ---------- this lab's moving pictures: a canvas of particles under an svg of names (js/mem-stage.js) ---------- */
.sci{font-style:italic}
.mm__screen{position:relative;min-width:0;min-height:0;flex:1}
.mm__cv{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.mm__screen > svg{position:relative;display:block;width:100%;height:100%}
.mf__bg{fill:transparent}
.mf__fig{margin:0}
.mf__fig .mm__screen{flex:none}
.mf__svg{display:block;width:100%;height:auto}
.mm__screen > svg.mf__svg{height:auto}
.mf__read{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
.mf__pill,.memv__pill{font-size:12.5px;border-radius:var(--r-pill);padding:3px 10px;border:1px solid var(--edge);background:var(--card-2);color:var(--ink)}
.mf__pill b,.memv__pill b{font-weight:600}
.mf__pill i,.memv__pill i{font-style:normal;font-weight:700}
.mf__pill.is-ok,.memv__pill.is-ok{border-color:var(--ok);color:var(--ok)}
.mf__pill.is-warn,.memv__pill.is-warn{border-color:var(--amber);color:var(--amber)}
.mf__pill.is-bad,.memv__pill.is-bad{border-color:var(--bad);color:var(--bad)}
/* a station's left picture: its buttons, the picture, its read-outs */
/* the number of the station you are in: a fainter disc, so its white number stays readable on the accent */
.rstep[aria-current="true"] .rstep__n{background:rgba(255,255,255,.12)}
.memv{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:8px 10px}
/* the counters keep their height, so the picture never jumps when one of them wraps to a second row */
.memv__read{flex:none;min-height:60px;align-content:flex-start}
@media (min-width:1181px){ .memv__read--short{min-height:30px} }
.memv__bar{padding:0;justify-content:center}
.memv__bar[hidden]{display:none}
.memv__btn{font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:var(--r-pill);cursor:pointer;
  border:1.5px solid var(--col-line);background:var(--col-card);color:var(--col-ink)}
.memv__btn:hover{border-color:var(--accent)}
.memv__btn[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-tint);color:var(--accent)}
.memv__btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.memv__btn[disabled]{opacity:.5;cursor:default}
.memv__fig{flex:none;min-height:0;margin:0;display:flex;width:100%}
.memv__read{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
/* a sample of each particle in an animation's key, on the dark ground of the pictures */
.anikey__sw{background:#10263A;border-radius:4px}
/* the key of a station's left picture, under it; an icon in a counter says what is counted */
.memv__key{flex:none;margin:2px 4px 0;justify-content:center;align-content:center}
.memv__pill .anikey__sw,.mf__pill .anikey__sw{display:inline-block;width:22px;height:11px;vertical-align:-1px}
.memv__vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* the real film is square: on a wide card it stands beside its caption, so the sentence, the film and the caption
   are seen together on a laptop, with no black bars (22 Nov 2026) */
@media (min-width:600px) and (max-width:1000px),(min-width:1181px){
  .exam-list li.xcard .media--video{display:grid;grid-template-columns:minmax(0,55%) minmax(0,1fr);background:var(--card)}
  .exam-list li.xcard .media--video .media__el{max-height:none;aspect-ratio:1/1;align-self:center}
  .exam-list li.xcard .media--video .media__cap{border-top:0;border-left:1px solid var(--edge-2);align-content:center}
}
/* the plant that wilts (station 7) */
.mf-plant__wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.mf-plant__cv{display:block;width:100%;max-width:440px;margin:0 auto;aspect-ratio:340/240}
.mf-plant .memv__bar{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.mf-plant__note{text-align:center;min-height:2.6em}

/* ---------- the Venn diagram (station 9, his L3 worksheet): press a statement, then the part where it belongs ---------- */
.vennv{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:8px 10px;overflow:auto}
.vennv__board{position:relative;flex:none;width:100%;aspect-ratio:16/9;max-height:48vh;background:#0E1D2E;border-radius:16px;overflow:hidden}
.vennv__zone{position:absolute;top:6%;height:88%;width:56%;border-radius:50%;cursor:pointer;font:inherit;color:#fff;padding:0;display:flex;align-items:flex-start;justify-content:center}
.vennv__zone span{margin-top:3%;font-weight:700;font-size:14px;background:rgba(9,18,28,.72);padding:2px 10px;border-radius:var(--r-pill)}
.vennv__zone--a{left:3%;background:rgba(255,193,92,.34);border:2px solid rgba(255,214,130,.9)}
.vennv__zone--n{right:3%;background:rgba(255,92,150,.3);border:2px solid rgba(255,150,190,.9)}
.vennv__zone--b{left:37%;width:26%;top:18%;height:64%;background:transparent;border:0;border-radius:40%;z-index:2}
.vennv__zone--b span{margin-top:0}
.vennv__zone:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.vennv__in{position:absolute;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;pointer-events:none;z-index:3;top:18%;height:76%}
.vennv__in--a{left:6%;width:30%}.vennv__in--b{left:41%;width:18%;top:28%;height:60%}.vennv__in--n{right:6%;width:30%}
.vennv__in .vennv__chip{font-size:11px;padding:1px 7px;background:rgba(9,18,28,.86);color:#fff;border-color:rgba(255,255,255,.3);line-height:1.25;white-space:normal;text-align:center}
.vennv__say{margin:0;font-size:14px;font-weight:600;text-align:center;color:var(--ink)}
.vennv__chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.vennv__chip{font:inherit;font-size:13px;padding:5px 11px;border-radius:var(--r-pill);border:1px solid var(--edge);background:var(--card);color:var(--ink);cursor:pointer}
.vennv__chip.is-on{border-color:var(--accent);background:var(--accent-tint);color:var(--accent);font-weight:600}
.vennv__chip.is-no{border-color:var(--bad);color:var(--bad)}
.vennv__chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vennv__again{align-self:center}
.memv--many .memv__bar{gap:5px}
.memv--many .memv__btn{font-size:12px;padding:5px 9px}

.rsv-note{margin:0;font-size:13px;text-align:center;color:var(--ink)}
.rsv-note[hidden]{display:none}

/* ---------- a rich picture has the whole column on a laptop (docs/PICTURE-STANDARD.md, F): its caption and credit fold under a small i, its key and names lie on it ---------- */
.memv--fill .memv__fig{position:relative}
.memv--fill .memv__read{min-height:0}
.mm__screen{position:relative}
.memv__fig > .memv__key,.mf__fig--fill .anikey{position:absolute;z-index:3;right:42px;bottom:8px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:0!important;margin:0;padding:5px 9px;border-radius:8px;background:rgba(10,18,26,.76);color:#E8EEF4}
.memv__fig > .memv__key li,.memv__fig > .memv__key span,.mf__fig--fill .anikey li,.mf__fig--fill .anikey span{color:#E8EEF4}
.memv__fig > .memv__key:not(:has(li:not([hidden]))),.mf__fig--fill .anikey:not(:has(li:not([hidden]))){display:none}
.memv.is-inpic{justify-content:flex-start;gap:5px;padding:6px 8px}
.memv.is-inpic .lb__txt,.mf__fig--fill .lb__txt{fill:#EEF4FA;stroke:#0C1A28;stroke-width:4px;paint-order:stroke}
.memv.is-inpic .lb__lead,.mf__fig--fill .lb__lead{stroke:#EEF4FA}
.memv.is-inpic .lb__halo,.mf__fig--fill .lb__halo{stroke:rgba(10,20,30,.72)}
@media (min-width:1001px){ .memv--tworows .memv__read{min-height:56px;align-content:center} }
.pinfo{position:absolute;z-index:5;right:8px;bottom:8px;color:#EEF4FA}
.pinfo summary{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:rgba(10,18,26,.8);border:1.5px solid rgba(255,255,255,.42);cursor:pointer;list-style:none}
.pinfo summary::-webkit-details-marker{display:none}
.pinfo summary span::before{content:'i';font:italic 700 15px/1 Georgia,'Times New Roman',serif}
.pinfo[open] summary span::before{content:'\00D7';font:700 16px/1 var(--font)}
.pinfo summary:hover{border-color:#8FD3F0}
.pinfo summary:focus-visible{outline:2px solid #8FD3F0;outline-offset:2px}
.pinfo__t{position:absolute;right:0;bottom:32px;width:min(330px,calc(100vw - 40px));margin:0;padding:9px 12px;border-radius:10px;background:rgba(10,18,26,.94);border:1px solid rgba(255,255,255,.2);text-align:left}
.pinfo__say{display:block;font-size:13px;font-weight:600;line-height:1.35;color:#EEF4FA}
.pinfo__credit{display:block;margin-top:3px;font-size:11.5px;line-height:1.35;color:#C4D2DE}
/* the atoms' key stands in the picture's lower band, centred */
.rsv-note.rsv-note--on{position:absolute;z-index:3;left:50%;bottom:3px;transform:translateX(-50%);margin:0;padding:0;white-space:nowrap;background:none;color:var(--col-ink);font-size:12.5px}
.rsv-note--on[hidden]{display:none}
/* the equations and "Where" under the molecule pictures (stations 3 and 7): large enough to be read at a glance (Daniel, 27 Nov 2026: "very little and barely visible") */
.memv--eq .memv__read{gap:8px 10px;min-height:0}
.memv--eq .memv__pill{font-size:16px;line-height:1.3;padding:7px 16px;border-width:1.5px}
.memv--eq .memv__pill[data-k="e"]{font-size:17.5px;padding:8px 18px}
/* a picture whose names stand in bands above and below it: its i goes to the top corner, clear of the names below */
.memv:not(.is-inpic) .memv__fig > .pinfo{top:6px;bottom:auto}
.memv:not(.is-inpic) .memv__fig > .pinfo .pinfo__t{top:32px;bottom:auto}
.memv--eq .memv__pill[data-k="e"] i{font-weight:700}
@media (max-width:540px){ .memv--eq .memv__pill{font-size:14.5px} .memv--eq .memv__pill[data-k="e"]{font-size:16px} }
/* "Real mitochondria" in 3D: the Foundations hub's steps (js/mitodemo.js) in a window of their own */
.mdlg{width:min(940px,calc(100vw - 24px));max-height:92vh;border:none;border-radius:16px;padding:20px 24px;background:var(--card);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.45)}
.mdlg::backdrop{background:rgba(6,12,20,.62)}
.mdlg h2{margin:0 40px 10px 0;font-size:20px}
.mdlg__x{position:absolute;right:14px;top:12px;width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:var(--card-2);color:var(--ink);font-size:18px;cursor:pointer}
.mdlg__lead{font-size:15px;line-height:1.5;background:#FFF4D6;color:#3A2A08;border-left:4px solid #D97706;padding:8px 12px;border-radius:8px;margin:0 0 12px}
.mdlg__exam{font-size:15px;line-height:1.5;margin:4px 0 6px}
.mdlg__credit{font-size:12px;color:var(--ink-2,var(--col-soft));margin:0}
.md{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;margin:6px 0 12px;align-items:start}
.md__stage{position:relative;height:min(50vh,460px);aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#0E141B}
.md__stage canvas{display:block;width:100%;height:100%}
.md__tag{position:absolute;left:0;top:0;font-size:12px;font-weight:600;color:#fff;background:rgba(14,20,27,.72);border:1px solid rgba(255,255,255,.18);padding:2px 7px;border-radius:6px;pointer-events:none;white-space:nowrap}
.md__side{display:flex;flex-direction:column;gap:10px}
.md__count{font-size:12px;color:#A16207;letter-spacing:.06em;text-transform:uppercase;margin:0}
.md__text{font-size:16.5px;line-height:1.55;margin:0}
.md__btns{display:flex;gap:8px;flex-wrap:wrap}
.md__btns button{border-radius:999px;padding:9px 18px;font-size:14px;cursor:pointer;background:var(--card-2);color:var(--ink);border:1px solid var(--edge)}
.md__btns .md__next{background:#14572B;border-color:#14572B;color:#fff}
.md__btns button:disabled{opacity:.4;cursor:default}
.memv__btn[hidden]{display:none}
@media (max-width:760px),(max-height:500px){ .md{grid-template-columns:1fr} .md__stage{height:38vh;width:100%;aspect-ratio:auto} }

/* ---------- the picture is the priority (Daniel, 27 Nov 2026) ----------
   "I still believe that animation is too small and there's too much text that impedes the visualization. Text should be on
   the right … the animation is the priority, and it's okay to make the keys maybe smaller so that they fit, or … organize it
   better so that you have a bit more screen. And this is true for every single animation everywhere." The column was 42 % of
   the window, so a picture of this lab's usual shape (about 1.3 wide to 1 high) was held back by the column's WIDTH, and its
   buttons, key, read-outs and a two-line caption filled the rest. On a laptop the column is now as wide as such a picture can
   stand in the window's height, and the words on the right keep at least 600 px (the Membrane Lab's rule, the same in every
   lab). The buttons, keys and read-outs are smaller; the caption is one line, its credit one press away under the i beside it
   (js/plate.js caption). Proof: tools/space-check.mjs, the share of the column each picture takes after each button. */
@media (min-width:1001px){
  .stage{--colw:clamp(42vw, calc((100dvh - 220px) * 1.3 + 22px), calc(100vw - 600px));grid-template-columns:minmax(360px,var(--colw)) minmax(0,1fr)}
}
.said{display:flex;align-items:center;justify-content:center;gap:7px;padding:5px 14px 6px;line-height:1.35}
.said__name{display:block;font-size:13px;min-width:0}
.said__i{display:inline-grid;place-items:center;position:relative;flex:none;width:21px;height:21px;margin:0;padding:0;
  border-radius:50%;border:1.5px solid var(--col-line);background:var(--col-card);color:var(--col-ink);
  font:italic 700 12.5px/1 Georgia,'Times New Roman',serif;cursor:pointer}
.said__i::before{content:"";position:absolute;inset:-8px}
.said__i:hover,.said__i[aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}
.said__i:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.said__more{position:absolute;left:12px;right:12px;bottom:calc(100% + 6px);z-index:8;display:block;text-align:left;
  padding:10px 14px 11px;border-radius:10px;background:var(--col-card);border:1px solid var(--col-line);
  box-shadow:0 8px 24px rgba(0,0,0,.35);font-size:12.5px;line-height:1.45;color:var(--col-ink)}
.said__more[hidden]{display:none}
.said__more .said__credit{display:block;font-size:12.5px;color:var(--col-ink);margin:0}
.said__more .said__h{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--col-soft);margin-bottom:3px}
.said__more .said__list{display:block;margin:0;max-width:none}
.said__more .said__li{display:block;margin-top:2px}
@media (max-width:540px){ .said__i{width:26px;height:26px} }
/* the picture's buttons, key and read-outs, smaller; a read-out with nothing to say takes no room */
.memv{gap:5px;padding:6px 10px;container-type:inline-size}
@media (min-width:1001px){ .memv__btn{font-size:12.5px;padding:4px 11px} }   /* a phone keeps its larger buttons, for a finger */
.memv__key{font-size:12.5px;gap:3px 14px;margin-top:0}
.memv__key li{gap:6px}
.memv__key .anikey__sw{width:24px;height:12px}
.memv__pill{font-size:12px;padding:2px 9px}
.memv__pill[hidden]{display:none}
.memv__read{gap:5px;min-height:50px}
@container (min-width:640px){ .memv__read{min-height:22px} }
/* the equations keep their size (Daniel, 27 Nov 2026: "very little and barely visible"); the line beside them is smaller */
.memv--eq .memv__pill[data-k="n"]{font-size:14px;padding:4px 12px}
.memv--eq .memv__pill[data-k="e"]{padding-top:5px;padding-bottom:5px}
.memv__read > .memv__btn{align-self:center}
/* a film standing in the column: its key smaller too */
.sim .anikey{font-size:12.5px;gap:3px 14px;margin-top:4px}
.sim .anikey__sw{width:24px;height:12px}
/* the Venn diagram's statements, smaller, so the diagram has the room */
.vennv{gap:6px;padding:6px 10px}
.vennv__board{max-height:none}
.vennv__say{font-size:13px}
@media (min-width:1001px){ .vennv__chip{font-size:12.5px;padding:4px 10px} }

/* ---------- Practise: the page never prints the answer beside the question (Daniel, 30 Nov 2026: "Fix everything") ----------
   The picture and its buttons stay beside the questions; the names on it and its caption are hidden, as in the Cells Lab
   (25 Oct 2026), unless the station says it needs them (practise.show in stations.master.js: names, cap). practise.hide names
   what else would answer this station's questions: read (the readings), key. Hidden, never removed: the picture measures its
   names, and they must be in their places when Learn opens again. app.js writes the two attributes (paintPanel). */
html[data-lab-tab="do"] .st-sub{display:none}
html[data-lab-tab="do"]:not([data-prac-show~="names"]) .viewcol #viewHost .lb,
html[data-lab-tab="do"]:not([data-prac-show~="names"]) .viewcol #viewHost .pinkey{visibility:hidden}
html[data-lab-tab="do"]:not([data-prac-show~="cap"]) .viewcol .said .said__name{display:none}
html[data-lab-tab="do"][data-prac-hide~="read"] .viewcol #viewHost .memv__read{visibility:hidden}
html[data-lab-tab="do"][data-prac-hide~="key"] .viewcol #viewHost .figkey,
html[data-lab-tab="do"][data-prac-hide~="bar"] .viewcol #viewHost .vbar{visibility:hidden}
/* on a phone the picture stays above the questions on Practise: a strip that scrolls inside itself, so its buttons and its
   readings can be reached; "Hide the picture" folds it, as on Learn */
@media (max-width:1000px) and (min-height:561px){
  html[data-lab-tab="do"] .platecol[data-kind]:not(.is-folded){position:sticky;top:0;z-index:4;display:block;height:min(42vh,380px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-shadow:0 2px 10px var(--c176)}
  html[data-lab-tab="do"] .platecol[data-kind]:not(.is-folded) > .platecol__tools{position:sticky;top:0;background:var(--col-bg);flex-wrap:wrap;row-gap:4px}
  html[data-lab-tab="do"] .platecol[data-kind]:not(.is-folded) > .viewhost{height:auto;flex:none}
  html[data-lab-tab="do"] .platecol[data-kind]:not(.is-folded) .memv{height:auto;flex:none}
}
/* a graph in a question (js/engine-ext.js, qgraph) */
.qgraph svg{display:block;width:100%;max-width:470px;height:auto;margin:0 auto}
.qgraph text{font-family:var(--font)}
