/* ============================================================
   membrane.css — what is this lab's own: the header in the Foundations shelf's green (the Cells Lab's), 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 3.
   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:#0F6B57; --accent-2:#107A63; --accent-tint:#E3F2EC;
  /* 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 same inks on an animation step's tinted level band (IGCSE green, IB violet), where a merged card's words now stand
     (27 Nov 2026): #1B7A43 read 4.48:1 on the IB band; these darker shades read 5.6:1 or more on both */
  --k-struct-band:#17693A; --k-proc-band:#9A4509;
  --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:#8FE3C8; --accent-2:#6FD4B4; --accent-tint:#173029;
  --k-struct:#6EDB9A; --k-proc:#F5A35C; --k-subst:#F48FB4;
  --k-struct-band:#6EDB9A; --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:#8FE3C8; --accent-2:#6FD4B4; --accent-tint:#173029;
  --k-struct:#6EDB9A; --k-proc:#F5A35C; --k-subst:#F48FB4;
  --k-struct-band:#6EDB9A; --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__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{border:1px solid var(--accent);border-top:0;border-radius:0 0 var(--r) var(--r);padding:12px 14px;background:var(--card)}
.xcard__b[hidden]{display:none}
/* 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--struct{color:var(--k-struct-band)} .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="catv"],.platecol[data-kind="lifev"],.platecol[data-kind="sitev"],.platecol[data-kind="specv"],.platecol[data-kind="tempv"],.platecol[data-kind="phv"]{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="catv"],.platecol[data-kind="lifev"],.platecol[data-kind="sitev"],.platecol[data-kind="specv"],.platecol[data-kind="tempv"],.platecol[data-kind="phv"]{height:auto}
  .platecol[data-kind="figure"] > .viewhost,.platecol[data-kind="catv"] > .viewhost,.platecol[data-kind="lifev"] > .viewhost,.platecol[data-kind="sitev"] > .viewhost,.platecol[data-kind="specv"] > .viewhost,.platecol[data-kind="tempv"] > .viewhost,.platecol[data-kind="phv"] > .viewhost,.platecol[data-kind="figure"] .memv,.platecol[data-kind="catv"] .memv,.platecol[data-kind="lifev"] .memv,.platecol[data-kind="sitev"] .memv,.platecol[data-kind="specv"] .memv,.platecol[data-kind="tempv"] .memv,.platecol[data-kind="phv"] .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;position:relative}
.mf__fig > .pinfo--film{right:0;bottom:0}
.mf__fig:has(> .pinfo--film) > .figkey{padding-right:34px}
.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 picture showing an extension says its level, in the one extension violet */
.memv__pill.is-ext{border-style:dashed;border-color:var(--ext-rule);background:var(--ext-tint);color:var(--ext)}
.memv__btn[hidden]{display:none}
.offsyl--extra{background:var(--ext-wash);border-color:var(--ext-rule)}
.offsyl--extra .card__h{color:var(--ext)}
/* 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}
/* a button for something beyond the syllabus wears the one extension violet */
.memv__btn--ext{border-style:dashed;border-color:var(--ext-rule);background:var(--ext-tint);color:var(--ext)}
.memv__btn--ext:hover,.memv__btn--ext[aria-pressed="true"]{border-color:var(--ext);background:var(--ext-tint);color:var(--ext)}
.memv__fig{position:relative;flex:none;min-height:0;margin:0;display:flex;width:100%}
/* the caption and the credit of a rich picture, one press away under a small i, so the picture has the column */
.pinfo{position:absolute;z-index:5;right:calc(var(--fr,0px) + 8px);bottom:calc(var(--fb,0px) + 8px);color:#EAF2F8}
.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:var(--accent)}
.pinfo summary:focus-visible{outline:2px solid var(--accent);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,.95);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:#EAF2F8}
.pinfo__credit{display:block;margin-top:3px;font-size:11.5px;line-height:1.35;color:#B9C7D3}
/* what a turnable model does, on the model and not on a line of its own: a light chip in the frame's lower left corner,
   whose arrows move each time the picture can be turned, until the pupil has turned a model (Daniel, 27 Nov 2026: "the
   drag to turn is not very visible, so the students will miss it") */
.memv__hint{position:absolute;left:calc(var(--fl,0px) + 10px);bottom:calc(var(--fb,0px) + 10px);z-index:4;display:flex;align-items:center;gap:7px;
  padding:5px 13px 5px 9px;border-radius:999px;font-size:13.5px;font-weight:700;line-height:1.2;color:#10202E;background:#FFFFFF;
  box-shadow:0 0 0 3px rgba(255,255,255,.22),0 3px 10px rgba(0,0,0,.4);pointer-events:none}
.memv__hint[hidden]{display:none}
.memv__hint-i{width:26px;height:16px;flex:none;fill:none;stroke:#0E7C66;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@keyframes memv-nudge{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes memv-glow{0%,100%{box-shadow:0 0 0 3px rgba(255,255,255,.22),0 3px 10px rgba(0,0,0,.4)}50%{box-shadow:0 0 0 7px rgba(255,255,255,.3),0 3px 10px rgba(0,0,0,.4)}}
.memv__hint.is-nudge .memv__hint-i{animation:memv-nudge 1s ease-in-out 4}
.memv__hint.is-nudge{animation:memv-glow 1s ease-in-out 4}
.mol-turned .memv__hint.is-nudge,.mol-turned .memv__hint.is-nudge .memv__hint-i{animation:none}
@media (prefers-reduced-motion:reduce){ .memv__hint.is-nudge,.memv__hint.is-nudge .memv__hint-i{animation:none} }
/* a drag on a picture turns it and never selects its names (Daniel, 27 Nov 2026: "the word amylase gets highlighted") */
.mm__screen{-webkit-user-select:none;user-select:none}
.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}
  /* a wide film (a strip of cells) stands over its caption, at its own shape */
  .exam-list li.xcard .media--video.media--wide{display:block}
  .exam-list li.xcard .media--video.media--wide .media__el{aspect-ratio:auto}
  .exam-list li.xcard .media--video.media--wide .media__cap{border-left:0;border-top:1px solid var(--edge-2)}
}
/* 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 Molecules Lab ---------- */
:root{ --dna-a:#4C8FE8; --dna-b:#EF5B5B; --aa3:#34C281; --gene:#FBCB2E; --pt-lt-light:#FFFFFF; --pt-lt-dark:#1A1A1A }
.ak__bases{display:inline-flex;gap:2px}
.ak__b{display:inline-block;min-width:15px;height:16px;border-radius:3px;font-style:normal;font-size:11px;font-weight:700;line-height:16px;text-align:center;color:var(--pt-lt-dark)}
.ak__b--A{background:var(--dna-a)} .ak__b--T{background:var(--dna-b)} .ak__b--G{background:var(--aa3)}
.ak__b--C{background:var(--gene);color:var(--pt-lt-dark)}
.memv__bar--2{flex:none;display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.memv__btn--el{padding:4px 10px;font-size:12.5px}
/* the Grey CAT (station 5): the cat of the lesson slides beside its letters, joined in their base pairs */
.gcat{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);align-items:center;gap:6px 14px;padding:12px;border:1px solid var(--edge-2);border-radius:12px;background:var(--card)}
.gcat__pic{background:#FFFFFF;border-radius:10px;padding:8px}
.gcat__img{display:block;width:100%;height:auto;aspect-ratio:612/275}
.gcat__svg{display:block;width:100%;height:auto;max-width:340px;margin:0 auto}
.gcat__t--G{fill:var(--aa3)} .gcat__t--C{fill:var(--gene)} .gcat__t--A{fill:var(--dna-a)} .gcat__t--T{fill:var(--dna-b)}
.gcat__l{font:800 34px var(--font);fill:var(--pt-lt-dark);text-anchor:middle;dominant-baseline:central}
.gcat__rest{font:700 34px var(--font);fill:var(--ink);dominant-baseline:central}
.gcat__stem{stroke-width:4;stroke-linecap:round}
.gcat__stem--G{stroke:var(--aa3)} .gcat__stem--C{stroke:var(--gene)} .gcat__stem--A{stroke:var(--dna-a)} .gcat__stem--T{stroke:var(--dna-b)}
.gcat__bond{stroke:var(--ink);stroke-width:2.5;stroke-dasharray:5 4}
.gcat__w{font:700 15px var(--font);fill:var(--ink);text-anchor:middle}
.gcat .media__cap{grid-column:1 / -1;border-top:1px solid var(--edge-2);padding-top:8px}
@media (max-width:520px){ .gcat{grid-template-columns:minmax(0,1fr)} }
/* the 20 amino acids (Proteins, the IB card; js/learn.js aminoacids): a row each, its bead the colour of its amino acid in
   the pictures (MolDraw.AA), the IB chips in the extension violet, the 0610 label grey (cross-topic links are grey) */
.aat{margin:12px 0 2px}
.aat__ib{margin:0 0 4px;font-size:15px;line-height:1.55;color:var(--ink)}
.aat__chip{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11.5px;font-weight:700;line-height:1.5;letter-spacing:.02em;vertical-align:1px;white-space:nowrap}
.aat__chip--ib{background:var(--ext-tint);color:var(--ext);border:1px solid var(--ext-rule)}
.aat__chip--bey{background:var(--ext);color:var(--ext-on);font-style:italic}
.aat__chip--0610{background:var(--card-2);color:var(--grey);border:1px solid var(--edge);font-weight:600;white-space:normal}
.aat__h{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:18px 0 2px}
.aat__ht{font-size:16px;font-weight:800;color:var(--ink)}
.aat__lead{margin:2px 0 4px;font-size:13.5px;line-height:1.5;color:var(--grey)}
.aat__g{margin:16px 0 6px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ext)}
.aat__list{list-style:none;margin:0;padding:0;border-top:1px solid var(--ext-rule)}
.aat__row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;padding:10px 2px;border-bottom:1px solid var(--ext-rule)}
.aat__bead{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font:800 15px var(--font);color:#10202E;
  background:radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 38%, #FFFFFF) 0, var(--c) 48%, color-mix(in srgb, var(--c) 50%, #0B1420) 100%);
  box-shadow:0 1px 3px rgba(0,0,0,.28)}
.aat__name{font-size:15.5px;line-height:1.3;color:var(--ink)}
.aat__name b{font-weight:800}
.aat__abbr{margin-left:8px;font-size:12.5px;font-weight:600;color:var(--grey)}
.aat__p{margin:3px 0 0;font-size:14.5px;line-height:1.55;color:var(--ink)}
.aat__foot{margin:12px 0 0;font-size:14.5px;line-height:1.55;color:var(--ink)}
.aat__src{margin:12px 0 0;font-size:12px;line-height:1.45;color:var(--grey)}
.memv__btn--go{background:var(--accent);border-color:var(--accent);color:var(--on-ink,#fff)}
.memv__btn--go:hover:not([disabled]){background:var(--accent-2);border-color:var(--accent-2)}
.memv__btn--go[disabled]{background:var(--card-2);color:var(--grey);border-color:var(--edge)}
.mm__screen.is-turnable{cursor:grab;touch-action:pan-y}
.mm__screen.is-turnable:active{cursor:grabbing}
.mm__screen.is-turnable:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the bench's choices and notebook */
.bn{display:flex;flex-direction:column;gap:6px}
.bn__h{margin:8px 0 0;font-weight:700;font-size:13.5px;color:var(--ink)}
.bn__row{display:flex;flex-wrap:wrap;gap:6px}
.bn__row[hidden]{display:none}
.bn__chip{font:inherit;font-size:13px;font-weight:600;padding:5px 11px;border-radius:var(--r-pill);border:1px solid var(--edge);background:var(--card);color:var(--ink);cursor:pointer}
.bn__chip:hover{border-color:var(--accent)}
.bn__chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-tint);color:var(--accent)}
.bn__chip:focus-visible,.bn__go:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bn__say{margin:4px 0 0;font-size:13.5px;color:var(--grey);min-height:1.4em}
.bn__say.is-res{color:var(--accent);font-weight:700}
.bn__go{font:inherit;font-size:13px;font-weight:600;padding:6px 13px;border-radius:var(--r-pill);border:1px solid var(--accent);background:var(--accent);color:var(--on-ink,#fff);cursor:pointer;align-self:flex-start}
.bn__go[hidden]{display:none}
.bn__m{margin:0;font-size:13.5px;color:var(--ink)}
.bn__my{display:flex;flex-direction:column;gap:6px}
.bn__grid{overflow-x:auto}
.bn__t{border-collapse:collapse;width:100%;font-size:12.5px}
.bn__t th{font-weight:600;text-align:left;padding:3px 5px;color:var(--ink)}
.bn__mrow[hidden]{display:none}
.bn__mrow th{color:var(--accent)}
.bn__mrow td,.bn__mrow th{border-top:2px solid var(--edge)}
.bn__t thead th{font-size:11.5px;text-align:center}
.bn__t td{padding:3px 5px;text-align:center}
.bn__c{display:inline-block;width:22px;height:16px;border-radius:4px;border:1px dashed var(--edge);vertical-align:middle}
.bn__c.is-on{border:1px solid rgba(0,0,0,.35)}

/* ---------- the picture is the priority (Daniel, 27 Nov 2026, of every animation in every lab) ----------
   "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 ... And this is
   true for every single animation everywhere." The Membrane Lab's pattern (membrane-lab 12126b1), with this lab's own shape:
   its models and films are about 1.3 wide to 1 high and grow with the column's width until they meet its height, so on a
   laptop the column is as wide as such a picture can stand in the window's height, and the words keep at least 600 px.
   The empty tool row takes no line, the buttons, key and counters are smaller, and a film may use the column's height. */
@media (min-width:1001px){
  .stage{--colw:clamp(42vw, calc((100dvh - 250px) * 1.3 + 24px), calc(100vw - 600px));grid-template-columns:minmax(360px,var(--colw)) minmax(0,1fr)}
  /* the tool row takes no line while it holds no button (its fold is a phone's) */
  .platecol__tools:not(:has(> .tool:not([hidden]):not(.fold))){display:none}
  .sim{padding:8px 12px 10px}
  /* an animation and its key always fit the column without a scroll: the key may take one, two or three lines, so the drawing
     (and only the drawing) gives up what its own key needs (30 Nov 2026) */
  #simHost .mm__screen > svg.mf__svg{max-height:calc(100dvh - 200px)}
  #simHost > .mf__pack.is-onstage,#simHost .mf__fig,#simHost .mf__fig > .mm__screen{display:flex;flex-direction:column;flex:0 1 auto;min-height:0}
  #simHost .mm__screen > svg.mf__svg{flex:0 1 auto;min-height:0}
}
.memv{gap:5px;padding:6px 10px}
.memv__btn{font-size:12.5px;padding:4px 11px}
.memv__key{font-size:12.5px;gap:3px 14px;margin-top:0}
.memv__pill{font-size:12px;padding:2px 9px}
.sim .anikey{font-size:12.5px;gap:3px 14px;margin-top:4px}
/* a caption under the picture (the bench's) is one line; who drew it is one press away, under the i beside it (js/plate.js) */
.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} }

/* ---------- station 7: your report as a page of parts to press (the Gas Exchange Lab's), and links to the Write-Up Lab ---------- */
:root{ --rpv-page:#FFFEFA; --rpv-line:#D9D3C4; --rpv-row:#E7E1D3; --rpv-ink:#1B2430; --rpv-hover:#F3EFE4; --rpv-on:#E2F2F8; --rpv-acc:#0B6A8C; --rpv-n:#0B6A8C; --rpv-nink:#fff; --rpv-sub:#55606C; --rpv-sk:#8A9099; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --rpv-page:#1F2A36; --rpv-line:#34424F; --rpv-row:#33414E; --rpv-ink:#E6EDF3; --rpv-hover:#2A3846; --rpv-on:#173A4A; --rpv-acc:#6FD0F5; --rpv-n:#6FD0F5; --rpv-nink:#0E1B24; --rpv-sub:#A7B5C1; --rpv-sk:#8FA0AE; } }
:root[data-theme="dark"]{ --rpv-page:#1F2A36; --rpv-line:#34424F; --rpv-row:#33414E; --rpv-ink:#E6EDF3; --rpv-hover:#2A3846; --rpv-on:#173A4A; --rpv-acc:#6FD0F5; --rpv-n:#6FD0F5; --rpv-nink:#0E1B24; --rpv-sub:#A7B5C1; --rpv-sk:#8FA0AE; }
.rpv{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;padding:10px}
.rpv__h{margin:0 0 8px;font-size:15px;font-weight:700;color:var(--ink)}
.rpv__page{flex:1 1 auto;min-height:0;max-height:600px;display:flex;flex-direction:column;width:min(100%,470px);padding:8px 18px;background:var(--rpv-page);border:1px solid var(--rpv-line);border-radius:6px;box-shadow:0 8px 22px rgba(0,0,0,.28)}
.rpv__b{flex:1 1 0;min-height:58px;display:flex;align-items:center;gap:11px;text-align:left;font:inherit;padding:6px 8px;border:0;border-bottom:1px solid var(--rpv-row);border-radius:0;background:transparent;color:var(--rpv-ink);cursor:pointer}
.rpv__b:last-child{border-bottom:0}
.rpv__b:hover{background:var(--rpv-hover)}
.rpv__b:focus-visible{outline:2px solid var(--rpv-acc);outline-offset:2px}
.rpv__b[aria-pressed="true"]{background:var(--rpv-on);box-shadow:inset 3px 0 0 var(--rpv-acc)}
.rpv__n{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--rpv-n);color:var(--rpv-nink);font-size:13.5px;font-weight:700}
.rpv__t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.rpv__sk{flex:none;width:min(29%,118px);height:auto;fill:none;stroke:var(--rpv-sk);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.rpv__t b{font-size:14.5px}
.rpv__t i{font-style:normal;font-size:12.5px;color:var(--rpv-sub)}
/* a phone or an upright tablet: the column is as tall as the three parts and scrolls with the page (the rule of the other
   working pictures), so no part is cut and no word meets the line between two parts (29 Nov 2026) */
@media (max-width:1000px){
  .platecol[data-kind="evalview"]{position:relative;height:auto;box-shadow:none}
  .platecol[data-kind="evalview"] > .viewhost{flex:none}
  .platecol[data-kind="evalview"] .rpv{height:auto}
  .platecol[data-kind="evalview"] .rpv__page{flex:none;max-height:none;padding:4px 14px}
  .platecol[data-kind="evalview"] .rpv__b{flex:none;padding:9px 6px}
}
.exam-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.exam-link{display:inline-flex;align-items:center;gap:4px;min-height:36px;font-size:13.5px;font-weight:600;color:var(--accent);border:1.5px solid var(--accent);border-radius:var(--r-pill);padding:5px 13px;text-decoration:none;background:var(--card)}
.exam-link:hover{background:var(--accent-tint)}
.exam-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- the IB extension figures (js/learn.js eagraph, inhibit) ---------- */
.xfig{margin:12px 0 4px;color:var(--ink)}
.xfig svg{display:block;width:100%;max-width:560px;height:auto;margin:0 auto}
.xfig__t{font:500 13px Inter,system-ui,sans-serif;fill:currentColor}
.xfig figcaption{font-size:13px;color:var(--grey);margin-top:6px}

/* an IB animation (Induced fit): its heading in the one extension violet, never the IGCSE green */
.mf--ib > .widget__h,.stg__title.stg__title--ib{color:var(--ext)}

/* the story of the first catalysts, in a window of its own (beyond the syllabus) */
.vpop__open{margin:10px 0 4px}
.vpop__btn{display:flex;align-items:center;gap:14px;width:100%;min-height:138px;padding:14px 18px;text-align:left;font:inherit;color:#fff;border:2px solid var(--ext);border-radius:14px;cursor:pointer;
  background:linear-gradient(90deg,rgba(8,16,26,.95) 0%,rgba(8,16,26,.86) 46%,rgba(8,16,26,.1) 78%),#0B1622 url(../assets/photos/lost-city-900.jpg) right 30%/auto 190% no-repeat}   /* the photograph the story begins with, to press */
.vpop__play{flex:none;display:grid;place-items:center;width:46px;height:46px;padding-left:3px;border-radius:50%;background:var(--ext);color:var(--ext-on,#fff);font-size:17px;box-shadow:0 0 0 4px rgba(255,255,255,.22)}
.vpop__w{display:flex;flex-direction:column;gap:5px;max-width:330px}
.vpop__t{font-size:19px;font-weight:700;line-height:1.2}
.vpop__s{font-size:14px;line-height:1.4;color:#E4ECF4}
.vpop__cr{margin:5px 0 0;font-size:11.5px;color:var(--grey)}
@media (hover:hover){.vpop__btn:hover .vpop__play{transform:scale(1.08)}}
/* the story's card while it is closed: the photograph beside its title */
.xcard:has(.vpop__open)>.xcard__h::before{content:"\25B6";flex:none;display:grid;place-items:center;width:76px;height:48px;border-radius:8px;color:#fff;font-size:15px;text-shadow:0 1px 4px #000;background:linear-gradient(rgba(8,16,26,.28),rgba(8,16,26,.28)),#0B1622 url(../assets/photos/lost-city-900.jpg) center/cover no-repeat}
/* a film's link to a page where the reader does it themselves */
.mf__more{margin:10px 0 2px;font-size:13.5px;line-height:1.45}
.mf__more .later__out{white-space:nowrap}
.vpop__btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.vpop{width:min(1120px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0 14px 12px;border:1px solid var(--edge);border-radius:16px;background:var(--card);color:var(--ink);overflow:auto}
.vpop::backdrop{background:rgba(6,12,18,.66)}
.vpop__bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;background:var(--card)}
.vpop__h{margin:0;font-size:17px;font-weight:700}
.vpop__h span{font-size:12.5px;font-weight:600;color:var(--ext);margin-left:6px}
.vpop__x{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:var(--card-2,transparent);color:var(--ink);font-size:16px;cursor:pointer}
.vpop__x:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vpop__src{font-size:12.5px;color:var(--grey);margin:10px 0 0}
.vpop .widget__reset{display:none}
.vpop .widget{margin:0;padding:6px 14px 8px} .vpop .sp__bar{margin:6px 0 8px}
.vpop .sp__legend,.vpop .sp__only,.vpop .widget__h{display:none}   /* the window's own heading says that all of it is beyond the syllabus */
.vpop .sp__steps{gap:4px} .vpop .sp__stepb{padding:4px 10px}   /* nine steps fit the window */
@media (max-height:780px){.vpop .sp__steps{gap:2px} .vpop .sp__stepb{padding:2px 10px}}
.vpop .mf__fig{max-width:calc((100vh - 250px) * 1.23);margin-left:auto;margin-right:auto}   /* the drawing fits the window's height */
@media (min-width:900px){.vpop .mf__wrap{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,1fr);gap:18px;align-items:start}.vpop .mf__fig{max-width:calc((100vh - 300px) * 1.23)}}   /* the words beside the drawing, as in the lab */

/* the activation-energy graph in four steps: the part being explained is lit and drawn, earlier parts faint, later parts not shown */
.eag__bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px}
.eag__b{width:30px;height:30px;border-radius:50%;border:1.5px solid var(--edge);background:var(--card);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.eag__b[aria-pressed="true"]{background:var(--ext);border-color:var(--ext);color:var(--ext-on,#fff)}
.eag__next{margin-left:auto;font:inherit;font-size:13px;font-weight:700;border:1.5px solid var(--ext);color:var(--ext);background:none;border-radius:999px;padding:5px 12px;cursor:pointer}
.eag__b:focus-visible,.eag__next:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.eag__g{transition:opacity .35s}
.eag__g.is-later{opacity:0}
.eag__g.is-past{opacity:.32}
.eag__g.is-now{opacity:1}
.eag__g.is-now .eag__draw{stroke-dasharray:900;animation:eagDraw 1.4s ease-out}   /* drawn at rest: if the animation never runs, the curve still shows */
.eag__g.is-now text{font-weight:700}
@keyframes eagDraw{from{stroke-dashoffset:900}to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.eag__g{transition:none}.eag__g.is-now .eag__draw{animation:none}}
.eag__say{margin:6px 0 4px;font-size:14px;line-height:1.5;min-height:4.5em}

/* ---------- 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, bar (the buttons). 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)}
