:root{
  --accent:#0B6A8C; --accent-2:#0C7BA3; --accent-tint:#E1F1F8;
  --c12:rgba(255,255,255,.12);   /* the number on the open station's pill: white on it stays above 4.5 : 1 */
    --k-struct:#1B7A43; --k-proc:#B5530F; --k-subst:#B4285F;
    --k-struct-t:#1A7842; --k-proc-t:#AA4E0E;   /* the same inks on a tint (a step's level line, a box beyond the syllabus): AA there too (27 Nov 2026) */
  --on-photo-veil:rgba(14,20,27,.40);
    --im-plasma:#FCEFEA; --im-plasma-edge:#F2D4CA; --im-mem:#B45309;
  --tw-v:#E3A90B; --tw-s:#2F6DB5; --tw-i:#C8322F; --tw-r:#9AA6B2;
  --rt-bg:#F6F8FA; --rt-path:#556372; --rt-shut:#C8322F; --rt-ill:#C8322F; --rt-well:#2F6DB5;
  --ch-tox:#E8730C; --ch-cl:#2E9E4F; --ch-wa:#2B7BD6; --ch-bac:#7A8B1E; --ch-pale:#FFFFFF;
  /* 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;
  /* the limewater bench's words for each air: the colours of Breathe in and Breathe out; the orange a shade darker than the
     button's, so small words stay above 4.5 : 1 on the bench */
  --lb-in:#0B6A8C; --lb-out:#A04A0C;
}
@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-struct-t:#6EDB9A; --k-proc-t:#F5A35C;
  --im-plasma:#2A2124; --im-plasma-edge:#4A3438; --im-mem:#F2B544;
  --tw-v:#F2C230; --tw-s:#6FA8EC; --tw-i:#F06A5E; --tw-r:#76828F;
  --rt-bg:#16202A; --rt-path:#9AA8B5; --rt-shut:#F06A5E; --rt-ill:#F06A5E; --rt-well:#6FA8EC;
  --ch-pale:#0E141B;
  --pt1-ink:#8DB9FF; --pt1-tint:#14233A; --pt1-edge:#2C4C7A; --pt2-ink:#7FD8C9; --pt2-tint:#12302C; --pt2-edge:#2D6A61;
  --lb-in:#6FD0F5; --lb-out:#F5A35C;
}
}
:root[data-theme="dark"]{
  --accent:#6FD0F5; --accent-2:#4FC3F7; --accent-tint:#10303F;
  --k-struct:#6EDB9A; --k-proc:#F5A35C; --k-subst:#F48FB4; --k-struct-t:#6EDB9A; --k-proc-t:#F5A35C;
  --im-plasma:#2A2124; --im-plasma-edge:#4A3438; --im-mem:#F2B544;
  --tw-v:#F2C230; --tw-s:#6FA8EC; --tw-i:#F06A5E; --tw-r:#76828F;
  --rt-bg:#16202A; --rt-path:#9AA8B5; --rt-shut:#F06A5E; --rt-ill:#F06A5E; --rt-well:#6FA8EC;
  --ch-pale:#0E141B;
  --pt1-ink:#8DB9FF; --pt1-tint:#14233A; --pt1-edge:#2C4C7A; --pt2-ink:#7FD8C9; --pt2-tint:#12302C; --pt2-edge:#2D6A61;
  --lb-in:#6FD0F5; --lb-out:#F5A35C;
}

/* ---------- 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: the lungs in the accent, the airway 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}
/* The caption is one line (Daniel, 27 Nov 2026, for every lab: "too much text that impedes the visualization. Text should be
   on the right"; docs/PICTURE-STANDARD.md F): what the picture shows, and an i beside it for what the picture leaves out or
   draws to scale, and who made it (js/plate.js caption; the Membrane and Cells Labs' caption) */
.said{position:relative;z-index:4;margin:0;display:flex;align-items:center;justify-content:center;gap:7px;padding:5px 14px 6px;
  line-height:1.35;text-align:center;border-top:1px solid var(--col-line);background:var(--col-bg)}
.said:empty{display:none}
.said__name{display:block;min-width:0;font-size:13px;font-weight:600;color:var(--col-ink)}
.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__note{display:block;margin:0 0 6px;font-size:13px;line-height:1.45;color:var(--col-ink)}
.said__credit{display:block;margin:0;font-size:12px;color:var(--col-soft)}
.said__h{display:block;margin-bottom:3px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--col-soft)}
.said__list{display:block}
.said__li{display:block;margin-top:2px}
.said__li b{color:var(--col-ink);font-weight:600}
@media (max-width:540px){ .said__i{width:26px;height:26px} }
.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 */

/* 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}
/* a box beyond the syllabus, in its place among the cards: the one extension violet behind it, dashed (Daniel, 25 Nov 2026: "color the background in
   purple, since this is beyond the syllabus"; it was grey); its word in a white pill so it still stands out on the violet */
.exam-list > li.xcard--beyond .xcard__h,.exam-list > li.xcard--beyond.is-open .xcard__h{background:var(--ext-tint);border:1px dashed var(--ext-rule);color:var(--ink)}
.exam-list > li.xcard--beyond .xcard__b{background:var(--ext-tint);border:1px dashed var(--ext-rule);border-top:0}
.xcard--beyond .tier--ext{background:var(--card)}
.xcard--beyond .tier{flex:none}
/* a picture under a line of a box (the medulla oblongata, the carotid bodies): its names stay readable, and it does not fill a wide screen */
.exam-list li.xcard .exam-steps .photo{max-width:440px;margin:8px 0 6px}   /* beats .exam-list li.xcard .photo's 100 % */
.exam-eq{display:block;margin-top:6px;padding:6px 10px;border-radius:6px;background:var(--card);font-weight:600;font-size:15px;letter-spacing:.01em;overflow-wrap:anywhere}
.kw-also{margin-top:14px;padding-top:12px;border-top:1px solid var(--edge)}
.kw-also__h{font-weight:700;font-size:15px;margin-bottom:2px}
.kw-also__hint{margin:0 0 8px;font-size:13px;color:var(--c34)}
.kw-also__l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;font-size:15px}
.kw-also__is{color:var(--ink)}
.kw-also__no{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:999px;font-size:13px;font-weight:600;background:var(--accent-tint);color:var(--accent)}
.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{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{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,.xcard--beyond .t--struct{color:var(--k-struct-t)} .sp__lv .t--proc,.xcard--beyond .t--proc{color:var(--k-proc-t)}
.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}
    .platecol[data-kind="town"],.platecol[data-kind="defences"],.platecol[data-kind="gallery"]{position:relative;height:auto;box-shadow:none}
  /* the breathing chest is a tool, with its buttons and gauges under the picture: it takes the height it needs, or they could not be reached */
  .platecol[data-kind="breathe"]:not(.is-sim):not(.is-folded){position:relative;height:auto;box-shadow:none}
  .platecol[data-kind="breathe"]:not(.is-sim):not(.is-folded) #viewHost{height:auto;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}

/* ---------- 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{position:relative;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__layer{opacity:0;transition:opacity .3s ease;pointer-events:none}
.cellv__layer.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)}
/* the 3D chest's picture has no background of its own: it stands on the 3D view's dark ground in the bright version too */
.hs__stage:has(> img[src*="ic-layers"]){background:#111922}
/* on Practise a station's picture keeps its parts but not their names, which would answer the questions (the Cells Lab's rule, 25 Oct 2026) */
html[data-lab-tab="do"] .viewcol #viewHost .lb{display:none}
html[data-lab-tab="do"] #viewHost .c3o--off{display:none}      /* a name too: it would answer a question */
/* 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}

/* ---------- this lab's pictures ---------- */
.vbar{align-items:center}

/* a station's parts: each block of What you need to know and its button on the picture share one colour, a swatch before
   both names (Daniel, 4 Nov 2026: "easy to link it … different in color"); the photographs of that part light in it too */
.exam-part--1{--pt-ink:var(--pt1-ink);--pt-tint:var(--pt1-tint);--pt-edge:var(--pt1-edge)}
.exam-part--2{--pt-ink:var(--pt2-ink);--pt-tint:var(--pt2-tint);--pt-edge:var(--pt2-edge)}

.exam-part[class*="exam-part--"] .exam-part__h::before{content:'';flex:none;width:11px;height:11px;border-radius:3px;background:var(--pt-ink)}

.exam-part[class*="exam-part--"]{background:var(--pt-tint);border-top:1px solid var(--pt-edge);border-bottom:1px solid var(--pt-edge);box-shadow:inset 5px 0 0 var(--pt-ink)}
.exam-part[class*="exam-part--"] .exam-part__h{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--pt-ink);margin-bottom:10px}
.exam-part[class*="exam-part--"] .xcard__h:hover,.exam-part[class*="exam-part--"] .xcard.is-open .xcard__h{border-color:var(--pt-ink)}
.exam-part[class*="exam-part--"] .xcard.is-open .xcard__h{background:var(--pt-tint);color:var(--pt-ink)}
.exam-part[class*="exam-part--"] .xcard__b{border-color:var(--pt-ink)}
.exam-part[class*="exam-part--"] .xcard__h:focus-visible{outline-color:var(--pt-ink)}

/* on a phone, two photographs a row: at three, a tile's name and its line ran out of the top of the tile (4 Nov 2026) */

/* the body's defences (station 2) */

/* phagocytosis: the phagocyte's extensions in the cell's own colours (an edge, the rim, the cytoplasm), the vacuole, the
   sacs of enzymes and the pieces of the digested pathogen */

   /* the first meeting: the neutrophil's nucleus shows through, behind the vacuole */
/* the mucus, step by step: the goblet cells' own blue; the way to the throat in the page's ink */

/* the way food goes, down the oesophagus: dashed, the page's ink */

/* dust: grey with a white edge, so it shows on the hairs and on skin */

/* the air breathed in, on the nostril photograph: white with a dark edge, so it shows on skin in both versions */

   

@keyframes twnPulse{50%{box-shadow:0 0 0 5px var(--accent-tint)}}

/* ---------- this lab's animations ---------- */

/* a genus or species name, wherever the page writes it (js/terms.js) */

/* beyond 0610, in the extension violet of a step's Beyond line (sp__lv--bey): Daniel, 10 Nov 2026, "One violet" for IB and
   beyond alike (this replaced 8 Nov's grey) */

/* Close the routes (station 3) */

@container (max-width:620px){ .rt__wrap{grid-template-columns:minmax(0,1fr)} }
.rt{container-type:inline-size}

 

/* 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:var(--accent);color:var(--card)}
.sp__lv--ib,.sp__lv--ibhl{background:var(--ext-tint);border-left-color:var(--ext)}
.xcard--film .sp__lv--ig .sp__lvt{background:#0B6A8C;color:#fff}   /* a film's card is a dark screen in both versions */
.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)}

/* ---------- the real chest (js/chest3d.js, js/w-chest.js): a dark stage in both versions of the page, so the anatomy reads ---------- */
:root{--c3-bg:#111922;--c3-bg2:#1B2733;--c3-ink:#EDF2F6;--c3-soft:#A9B7C4;--c3-line:#D7E0E8;--c3-air:#7FD8F7;--c3-low:#4FC3F7;--c3-high:#F5A35C}
.c3__load{position:absolute;inset:auto 0 44%;margin:0;text-align:center;font-size:13.5px;color:var(--c3-soft);z-index:2}
.c3__load--no{inset:auto 12px 40%;color:var(--c3-ink)}
.chest3d__canvas{display:block;touch-action:none;outline:none}
.br__fig{container-type:inline-size;position:relative;margin:0;background:radial-gradient(120% 90% at 50% 34%,var(--c3-bg2),var(--c3-bg) 72%);border-radius:14px;overflow:hidden}
.br__svg{position:relative;z-index:1;display:block;width:100%;height:auto;pointer-events:none}
.br__bg{fill:none}
.br__c3{position:absolute;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 76%,transparent);mask-image:linear-gradient(to bottom,#000 76%,transparent)}
.br__air{fill:#F2F5F7;stroke:#2B3A48;stroke-width:.8}
.br__svg .lb__txt,.c3v__svg .lb__txt{fill:var(--c3-ink);stroke:var(--c3-bg)}
.br__svg .lb__lead,.c3v__svg .lb__lead{stroke:var(--c3-line)}
.br__svg .lb__halo,.c3v__svg .lb__halo{stroke:var(--c3-bg)}
.br__svg .lb__pin,.c3v__svg .lb__pin{fill:var(--c3-bg);stroke:var(--c3-line)}
.br__svg .lb__pinn,.c3v__svg .lb__pinn{fill:var(--c3-ink)}
.br__fig .pinkey{color:var(--c3-ink);background:var(--c3-bg);margin:0;padding:6px 12px 8px}
/* the gauges under the picture: what the eye must compare while the chest moves */
.c3g{--up:#FF8A7A;--dn:#6DBDFF;container-type:inline-size;position:relative;z-index:2;display:flex;align-items:stretch;justify-content:space-evenly;gap:6px;padding:6px 10px;background:var(--c3-bg);border-top:1px solid rgba(255,255,255,.08);color:var(--c3-ink);font-size:13px;line-height:1.16}
.c3g__cell{flex:0 1 auto;min-width:0;display:flex;align-items:center;gap:7px;min-height:78px}
/* the volume: a small chest whose space grows and shrinks; nothing else is ever drawn as a space or a level */
.c3g__chest{flex:none;width:68px;height:77px;margin-right:4px}
.c3g__space{fill:#A9D8F2;stroke:#fff;stroke-width:1.6;stroke-linejoin:round}
.c3g__floor{fill:none;stroke:#D8493E;stroke-width:4;stroke-linecap:round}
.c3g__rest,.c3g__resth{fill:none;stroke:#FFC95C;stroke-width:1.4;stroke-dasharray:3.4 2.6}
.c3g__resth{stroke:#123049;stroke-width:2.6;stroke-dasharray:none;stroke-opacity:.55}
.c3g__a{flex:none;width:34px;height:54px;display:flex;align-items:center;justify-content:center}
.c3g__arr{width:34px;height:52px;overflow:visible;opacity:0;transform:scale(var(--k,0))}
.c3g__arr path{fill:#E5483F;stroke:#fff;stroke-width:1.5;stroke-linejoin:round}
.c3g__cell[data-d="up"] .c3g__arr{opacity:1}
.c3g__cell[data-d="down"] .c3g__arr{opacity:1;transform:rotate(180deg) scale(var(--k,0))}
.c3g__cell[data-d="down"] .c3g__arr path{fill:#2C83DB}
.c3g__t{display:flex;flex-direction:column;min-width:0}
.c3g__cell[data-c="v"] .c3g__t{width:88px}
.c3g__cell[data-c="p"] .c3g__t{width:122px}
.c3g__cell[data-c="a"] .c3g__t{width:88px}
.c3g__n{font-weight:700}
.c3g__of{font-size:11px;color:var(--c3-soft)}
.c3g__w{font-weight:700;font-size:15px;white-space:nowrap}
.c3g__w:empty,.c3g__s:empty{display:none}
.c3g__cell[data-d="up"] .c3g__w{color:var(--up)}
.c3g__cell[data-d="down"] .c3g__w{color:var(--dn)}
.c3g__s{font-size:11.5px;color:var(--c3-soft)}
.c3g__cell:not([data-d=""]) .c3g__s{color:var(--c3-ink)}
/* each change is the cause of the next: volume, then pressure, then air */
.c3g__so{flex:none;align-self:center;width:12px;height:24px;background:rgba(255,255,255,.22);clip-path:polygon(0 0,36% 0,100% 50%,36% 100%,0 100%,64% 50%)}
.c3g__so[data-on="1"]{background:#FFD98A}
/* the air: a pair of lungs, and an arrow down the trachea into them, or up and out of them */
.c3g__air{position:relative;flex:none;width:50px;height:76px}
.c3g__lungs{position:absolute;left:0;bottom:0;width:50px;height:58px}
.c3g__lb{fill:none;stroke:#C9D6E1;stroke-width:3;stroke-linecap:round}
.c3g__ll{fill:#C98F92;fill-opacity:.5;stroke:#E3B4B4;stroke-width:1.4}
.c3g__air .c3g__a{position:absolute;left:0;top:0;width:50px;height:46px}
.c3g__air .c3g__arr{width:28px;height:44px}
.c3g__cell[data-air="in"] .c3g__arr path{fill:#1F93C9}
.c3g__cell[data-air="out"] .c3g__arr path{fill:#D97B2B}
.c3g__cell[data-air="in"] .c3g__w{color:var(--c3-air)}
.c3g__cell[data-air="out"] .c3g__w{color:var(--c3-high)}
@container (max-width:540px){.c3g__cell{gap:5px}.c3g__chest{width:62px;height:70px;margin-right:0}.c3g__a{width:25px}.c3g__arr{width:25px;height:40px}.c3g__air,.c3g__air .c3g__a{width:38px}.c3g__air .c3g__arr{width:24px;height:38px}.c3g__lungs{width:38px;height:46px;bottom:6px}.c3g__w{font-size:13px}.c3g__s{font-size:11px}.c3g__so{width:9px;height:20px}
  .c3g__cell[data-c="v"] .c3g__t{width:68px}.c3g__cell[data-c="p"] .c3g__t{width:70px}.c3g__cell[data-c="a"] .c3g__t{width:70px}}
@container (max-width:420px){.c3g{gap:3px;padding-left:6px;padding-right:2px}.c3g__of{display:none}.c3g__cell{gap:4px}.c3g__chest{width:45px;height:51px}.c3g__a{width:20px}.c3g__arr{width:20px;height:32px}.c3g__air,.c3g__air .c3g__a{width:30px}.c3g__air .c3g__arr{width:20px;height:34px}.c3g__lungs{width:30px;height:38px;bottom:8px}.c3g__w{font-size:12.5px}.c3g__so{width:8px}
  .c3g__cell[data-c="v"] .c3g__t{width:60px}.c3g__cell[data-c="p"] .c3g__t{width:64px}.c3g__cell[data-c="a"] .c3g__t{width:63px}}
@container (max-width:345px){.c3g__cell{flex:1 1 0;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:3px}.c3g__cell .c3g__t.c3g__t{width:100%;text-align:center;min-height:54px}.c3g__so{align-self:flex-start;margin-top:22px}.c3g__a,.c3g__air{height:54px}.c3g__chest{height:54px;width:42px}.c3g__cell[data-c="v"]{gap:2px}.c3g__cell[data-c="v"] .c3g__a,.c3g__cell[data-c="p"] .c3g__a{width:17px}.c3g__cell[data-c="v"] .c3g__arr,.c3g__cell[data-c="p"] .c3g__arr{width:17px;height:28px}.c3g__t{margin-top:2px}}
@container (max-width:225px){.c3g{gap:2px;padding-left:4px;padding-right:4px}.c3g__so{width:6px;height:16px}.c3g__chest.c3g__chest{width:36px}.c3g__cell[data-c="v"] .c3g__a.c3g__a{width:14px}.c3g__cell[data-c="v"] .c3g__arr.c3g__arr{width:14px;height:24px}.c3g__w{font-size:11px}.c3g__n{font-size:12px}.c3g__s{font-size:10px}}
.br--side{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}

/* the chest as a station's own picture (js/views/chestv.js) */
.c3v{container-type:inline-size;position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:radial-gradient(120% 90% at 50% 36%,var(--c3-bg2),var(--c3-bg) 72%);border-radius:14px;overflow:hidden}
.c3v__stage{position:relative;flex:1 1 auto;min-height:260px}
.c3v__c3{position:absolute;inset:0}
.c3v__svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.c3v__bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:7px 10px;background:var(--c3-bg);border-top:1px solid rgba(255,255,255,.08)}
.c3v__b{font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:var(--r-pill);border:1.5px solid rgba(255,255,255,.26);background:transparent;color:var(--c3-ink);cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.c3v__b:hover{border-color:var(--c3-air)}
.c3v__b:focus-visible{outline:2px solid var(--c3-air);outline-offset:2px}
.c3v__b[aria-pressed="true"]{background:var(--c3-ink);border-color:var(--c3-ink);color:var(--c3-bg)}
.c3v__b--go{background:var(--c3-air);border-color:var(--c3-air);color:#06222F}
.c3v__b--go.is-on{background:#fff;border-color:#fff}
.c3v__b--hard{border-color:var(--c3-high);color:var(--c3-high)}
.c3v__b--hard.is-on{background:var(--c3-high);color:#2B1604}
/* the muscles on the chest: the fibres the picture follows, what each muscle is doing, and the key */
.c3v__marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.c3f__h,.c3f__l{fill:none;stroke-linecap:round;stroke-linejoin:round}
.c3f__h{stroke:#2A0B08;stroke-opacity:.6}
.c3f__l{stroke:#FFE9C2}
.c3f__p{fill:#fff;stroke:#2A0B08;stroke-width:1.4}
.c3k{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:2px 13px;padding:5px 10px;background:var(--c3-bg);border-top:1px solid rgba(255,255,255,.08);color:var(--c3-soft);font-size:12px;line-height:1.3}
.c3k__i{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.c3k__s{display:block;flex:none;width:18px;height:10px;border-radius:2px}
.c3k__s--pale{background:repeating-linear-gradient(90deg,#CFA59C 0 2px,#B98A80 2px 3px)}
.c3k__s--deep{background:repeating-linear-gradient(90deg,#C8362B 0 2px,#8E1F17 2px 3px)}
.c3k[data-look="ribsIn"] .c3k__s--pale{background:repeating-linear-gradient(90deg,#E2C79B 0 2px,#CDAE7E 2px 3px)}
.c3k[data-look="ribsIn"] .c3k__s--deep{background:repeating-linear-gradient(90deg,#F2A22E 0 2px,#BE7412 2px 3px)}
/* breathing out, seen through the external muscles: either layer can be the one that is contracted */
.c3k[data-look="ribs"] .c3k__s--pale{background:repeating-linear-gradient(90deg,#C98B84 0 2px,#B4776F 2px 3px)}
.c3k[data-look="both"] .c3k__s--pale,.c3k[data-look="whole"] .c3k__s--pale{background:linear-gradient(90deg,#C98B84 0 50%,#DDB27E 50% 100%)}
.c3k[data-look="both"] .c3k__s--deep,.c3k[data-look="whole"] .c3k__s--deep{background:linear-gradient(90deg,#C8362B 0 50%,#F2A22E 50% 100%)}
.c3o text{fill:var(--c3-ink);stroke:var(--c3-bg);stroke-width:3;paint-order:stroke;font:600 12px Inter,system-ui,sans-serif}
.c3o path{fill:none;stroke:var(--c3-soft);stroke-width:1.6}
.c3k__s--rest{background:transparent;border:1.5px solid rgba(255,255,255,.72)}
.c3k[data-look="ribs"] .c3k__s--rest,.c3k[data-look="ribsIn"] .c3k__s--rest,.c3k[data-look="both"] .c3k__s--rest{height:0;border:0;border-top:2px dashed #fff;border-radius:0}
.c3k__s--pull,.c3k__s--move{width:20px;height:11px;clip-path:polygon(0 30%,55% 30%,55% 0,100% 50%,55% 100%,55% 70%,0 70%);border-radius:0;background:#fff}
.c3k__s--move{background:#6FD07A}
.c3k__s--airin,.c3k__s--airout{width:20px;height:11px;clip-path:polygon(0 30%,55% 30%,55% 0,100% 50%,55% 100%,55% 70%,0 70%);border-radius:0;background:#1F93C9;transform:rotate(90deg)}
.c3v--noair .c3k__i[data-k="airin"],.c3v--noair .c3k__i[data-k="airout"]{display:none}
.c3k__s--airout{background:#D97B2B;transform:rotate(-90deg)}
.c3k__s--air{width:9px;height:9px;border-radius:50%;background:#F2F5F7;border:1px solid #2B3A48}
/* the pull of a muscle (white) and the movement it makes (green: blue and orange are the air's) */
.c3a{stroke-linejoin:round;paint-order:stroke}
.c3a--pull{fill:#fff;stroke:#1B0A08;stroke-width:3.4}
.c3a--airin,.c3a--airout{fill:#1F93C9;stroke:#fff;stroke-width:2.2}
.c3a--airout{fill:#D97B2B}
.c3a--move{fill:#6FD07A;stroke:#071522;stroke-width:3}
.c3r,.c3r__h{fill:none;stroke-linejoin:round}
.c3r{stroke:#fff;stroke-width:2;stroke-dasharray:8 6}
.c3r__h{stroke:#0B141C;stroke-opacity:.32;stroke-width:3.4}
.c3k__s--fib{height:3px;border-radius:2px;background:#FFE9C2;box-shadow:-2px 0 0 1px #fff,2px 0 0 1px #fff}
.c3m{position:relative;z-index:2;display:grid;grid-template-columns:auto auto auto;justify-content:space-between;gap:4px 8px;padding:6px 12px;background:var(--c3-bg);border-top:1px solid rgba(255,255,255,.08);color:var(--c3-ink)}
.c3m__i{display:flex;align-items:center;gap:7px;min-width:0}
.c3m__f{flex:none;width:36px;height:14px;overflow:visible}
.c3m__e{fill:var(--c3-soft)}
.c3m__b{fill:none;stroke-linecap:round;opacity:calc(.55 + .45 * var(--c3m,0))}
.c3m__i--dia .c3m__b{stroke:#DE5546}
.c3m__i--ext .c3m__b{stroke:#E8755F}
.c3m__i--int .c3m__b{stroke:#E7A23C}
.c3m__t{display:flex;flex-direction:column;min-width:0;line-height:1.16}
.c3m__n{color:var(--c3-soft);font-size:11px;white-space:nowrap}
.c3m__w{font-size:12.5px;font-weight:500;color:var(--c3-soft)}
.c3m__i[data-s="on"] .c3m__w{font-weight:700;color:var(--c3-ink)}
@container (max-width:560px){.c3m{grid-template-columns:repeat(3,minmax(0,1fr))}.c3m__f{display:none}.c3m__n{white-space:normal}}
/* a short window: the rows under the picture close up, so that the picture keeps its room and nothing has to scroll */
@media (min-width:1001px){.c3v__stage{min-height:180px}}
@media (max-height:820px){.c3g{padding:3px 12px}.c3k{padding:3px 10px}.c3m{padding:3px 12px}}
.c3v__views{position:absolute;z-index:3;top:8px;left:50%;transform:translateX(-50%);display:flex;gap:2px;padding:3px;border-radius:var(--r-pill);background:rgba(10,18,26,.74);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);white-space:nowrap}
.c3v__views .c3v__b{padding:4px 11px;font-size:12.5px;border-color:transparent}
.c3v__hint{flex:1 1 200px;max-width:250px;margin:0;align-self:center;text-align:left;font-size:12px;line-height:1.25;color:var(--c3-soft)}
/* A 3D picture takes the whole column (Daniel, 23 Nov 2026: "try to optimize as much as possible ... the 3D in a Mac screen"): its caption and credit fold under a
   small i on the picture; the key stands on the picture; the gauges and the two buttons share one row */
.pinfo{position:absolute;z-index:5;right:8px;bottom:8px;color:var(--c3-ink)}
.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(--c3-air)}
.pinfo summary:focus-visible{outline:2px solid var(--c3-air);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:var(--c3-ink)}
.pinfo__note{display:block;margin-top:3px;font-size:12.5px;line-height:1.4;color:var(--c3-ink)}
.pinfo__credit{display:block;margin-top:3px;font-size:11.5px;line-height:1.35;color:var(--c3-soft)}
.c3k.c3k--over{position:absolute;z-index:2;left:50%;bottom:8px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 84px);gap:2px 9px;padding:3px 10px;font-size:11.5px;border:0;border-radius:var(--r-pill);background:rgba(10,18,26,.76);pointer-events:none}
.c3k.c3k--over .c3k__i[style*="hidden"]{display:none}
.br__fig > .c3k.c3k--over{bottom:auto;transform:translate(-50%,-100%);max-width:calc(100% - 24px)}
.c3v__ctl{flex:none;display:flex;flex-direction:column}
.sim:has(> .br__pack){padding:6px 8px 8px}
.br__pack.is-onstage .br__c3{-webkit-mask-image:linear-gradient(to bottom,#000 90%,transparent);mask-image:linear-gradient(to bottom,#000 90%,transparent)}
@media (min-width:1001px){
  /* The picture is the priority (Daniel, 27 Nov 2026, the Membrane Lab: "the 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"; 28 Nov 2026, every lab). On a laptop
     the picture's column is as wide as the station's own pictures and animations can stand in the window's height (--pr: the width
     to the height of its widest one, with its names and key; --pf: the height the window keeps for the header, the station bar,
     the caption and the padding), never narrower than 42 % of the window, and the words keep at least 600 px. The breathing
     system and Breathing in and out keep 42 %: their 3D chest takes the column's height (tools/space-check.mjs), and a wider
     column would only give it empty sides; so do Physical activity (one whole body, as tall as the column) and the
     investigation. Proof: tools/picture-space.mjs. */
  .stage{--pr:0;--pf:168px;--colw:clamp(42vw, calc((100dvh - var(--pf)) * var(--pr) + 28px), calc(100vw - 600px));
    grid-template-columns:minmax(360px,var(--colw)) minmax(0,1fr)}
  .stage:has(> .platecol[data-station="protect"]){--pr:1.17}     /* Mucus and cilia at work */
  .stage:has(> .platecol[data-station="surface"]){--pr:1.86}     /* its four animations of the alveolus */
  .stage:has(> .platecol[data-station="air"]){--pr:1.26}
  .stage:has(> .platecol[data-station="limewater"]){--pr:1.29}
  /* the tool row takes no line while it holds no button (its fold is a phone's): it was an empty strip of 16 px over every picture */
  .platecol__tools:not(:has(> .tool:not([hidden]):not(.fold))){display:none}
  .platecol.is-tight .platecol__tools:not(:has(.tool--sim:not([hidden]))),.platecol.is-sim .platecol__tools:not(:has(.tool--sim:not([hidden]))){padding:0}
  .platecol.is-tight[data-kind="breathe"] .viewhost{padding:6px}
}
@media (min-width:1240px){
  .c3v__ctl{flex-direction:row;align-items:stretch;background:var(--c3-bg);border-top:1px solid rgba(255,255,255,.08)}
  .c3v__ctl .c3g{flex:1 1 auto;min-width:0;padding:4px 4px 4px 12px;border-top:0}
  .c3v__ctl .c3v__bar{flex:none;flex-direction:column;flex-wrap:nowrap;justify-content:center;gap:5px;padding:5px 10px 5px 4px;border-top:0}
  .c3v__ctl .c3v__bar{width:143px}      /* its words change while a button is held: the chain beside it keeps its width */
  .c3v__ctl .c3v__b{width:100%;padding:4px 6px;white-space:nowrap;line-height:1.15}
  .c3v__ctl .c3v__b span{display:block}
}
.sysv__d3{position:absolute;inset:0}

/* ---------- this lab's step animations: the same frame for each (w-path, w-gases, w-lining, w-activity) ---------- */
.ap__fig,.df__fig,.ac__fig,.lg__fig,.av__fig,.sa__fig,.tw__fig,.fa__fig{position:relative;margin:0}
.ap__svg,.df__svg,.ac__svg,.lg__svg,.av__svg,.sa__svg,.tw__svg,.fa__svg{display:block;width:100%;height:auto}
.ap__bg,.df__bg,.ac__bg,.lg__bg,.av__bg,.sa__bg,.tw__bg,.fa__bg{fill:var(--col-card)}
.ap__read,.df__read,.ac__read,.lg__read,.av__read,.sa__read,.tw__read,.fa__read{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
.ap__read:empty,.df__read:empty,.ac__read:empty,.lg__read:empty,.av__read:empty,.sa__read:empty,.tw__read:empty,.fa__read:empty{display:none}
.ap__air{fill:#F2F5F7;stroke:#2B3A48;stroke-width:1.6}
.ap__veil{fill:var(--on-photo-veil);pointer-events:none}
.ap__winbg{fill:var(--fp-win)}
.ap__winring{fill:none;stroke:var(--fp-mark);stroke-width:6}

/* Remember it with X: Daniel's diagram, to fill in (js/w-xmap.js) */
.xm__x{background:#FFE14D;color:#14181D;border-radius:2px;padding:0 1px;font-weight:700}
.xm__rule{margin:2px 0 10px;font-size:15px;line-height:1.5;color:var(--col-ink)}
.xm__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.xm__col{border:1.5px solid var(--edge);border-radius:var(--r);padding:8px 10px 10px;background:var(--card)}
.xm__col--in{border-color:#3C7DD9}
.xm__col--ex{border-color:#3D9B57}
.xm__h{margin:0 0 6px;font-size:15.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.xm__row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0 0 6px;font-size:14px;line-height:1.3;color:var(--col-ink)}
.xm__t--name{flex-basis:100%;font-weight:600}
.xm__b{font:inherit;font-size:13.5px;font-weight:600;min-height:30px;padding:3px 10px;border-radius:7px;border:1.5px dashed var(--edge);background:var(--card-2);color:var(--ink);cursor:pointer}
.xm__b:hover{border-color:var(--accent)}
.xm__b:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.xm__gap{color:var(--grey);font-weight:500}
.xm__b.is-ok{border:1.5px solid var(--ok);background:color-mix(in srgb,var(--ok) 14%,var(--card))}
.xm__b.is-no{border:1.5px solid var(--bad);background:color-mix(in srgb,var(--bad) 14%,var(--card))}
.xm__foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.xm__clear{font:inherit;font-size:13px;padding:6px 12px;border-radius:var(--r-pill);border:1px solid var(--edge);background:var(--card-2);color:var(--ink);cursor:pointer}
.xm__say{font-size:14px;font-weight:600;color:var(--col-ink)}
@media (max-width:560px){.xm__grid{grid-template-columns:minmax(0,1fr)}}

/* the wall of an alveolus (js/w-gases.js): the colours of a drawn section; the dark version draws the same section on dark grounds */
:root{ --fp-far:#D9EEF7; --fp-mark:#0B6A8C; --fp-markb:#8C1D18; --fp-cell:#F2B8B8; --fp-celll:#B56A6A; --fp-wline:#C98383; --fp-nuc:#7C4A7C; --fp-gap:#FBE8D8; --fp-cap:#E89C8E; --fp-plasma:#F7D98F; --fp-tissue:#F3C9BE; --fp-ink:#14181D; --fp-floor:#F4F7F9; --fp-court:#CFE3D6; --fp-net:#3C4C56; --fp-person:#2A3A47; --fp-lung:#FBE9DF; --fp-capw:#D98777; --fp-capl:#F7DD9E; --fp-awall:#EFA9A0; --fp-aair:#E2F2FA; --fp-lair:#E8F4FA; --fp-stream:#C8953A; --fp-air0:#E9F6FC; --fp-air1:#CFE8F4; --fp-win:#FFF; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --fp-far:#16323F; --fp-mark:#6FD0F5; --fp-markb:#4A0A08; --fp-cell:#A8666C; --fp-celll:#E0A7A7; --fp-wline:#D69A9A; --fp-nuc:#5A2E63; --fp-gap:#3B2D28; --fp-cap:#8F4339; --fp-plasma:#BC9547; --fp-tissue:#5A3A37; --fp-ink:#EDF2F6; --fp-floor:#1B2631; --fp-court:#2C5140; --fp-net:#B9C6D0; --fp-person:#EDF2F6; --fp-lung:#4A3434; --fp-capw:#9A564B; --fp-capl:#BC9547; --fp-awall:#B3655C; --fp-aair:#16323F; --fp-lair:#16323F; --fp-stream:#F6DC9C; --fp-air0:#1B3A49; --fp-air1:#14303D; --fp-win:#1B2631; } }
:root[data-theme="dark"]{ --fp-far:#16323F; --fp-mark:#6FD0F5; --fp-markb:#4A0A08; --fp-cell:#A8666C; --fp-celll:#E0A7A7; --fp-wline:#D69A9A; --fp-nuc:#5A2E63; --fp-gap:#3B2D28; --fp-cap:#8F4339; --fp-plasma:#BC9547; --fp-tissue:#5A3A37; --fp-ink:#EDF2F6; --fp-floor:#1B2631; --fp-court:#2C5140; --fp-net:#B9C6D0; --fp-person:#EDF2F6; --fp-lung:#4A3434; --fp-capw:#9A564B; --fp-capl:#BC9547; --fp-awall:#B3655C; --fp-aair:#16323F; --fp-lair:#16323F; --fp-stream:#F6DC9C; --fp-air0:#1B3A49; --fp-air1:#14303D; --fp-win:#1B2631; }
.tw__svg [stop-color="#E9F6FC"]{stop-color:var(--fp-air0)}
.tw__svg [stop-color="#CFE8F4"]{stop-color:var(--fp-air1)}
.df__far{fill:var(--fp-far)}
.df__spot{fill:none;stroke:var(--fp-mark);stroke-width:5}
/* the three films of the surface's features */
.sa__floor{fill:var(--fp-floor)}
.sa__court{fill:var(--fp-court)}
.sa__line{fill:none;stroke:#fff;stroke-width:2.4}
.sa__net{fill:none;stroke:var(--fp-net);stroke-width:2.4}
.sa__person{fill:var(--fp-person)}
.sa__skin{fill:#F9BDA0;stroke:#B9704F;stroke-width:1.5}
.sa__count rect{fill:#14212C;fill-opacity:.9}
.sa__count text{font-family:var(--font);font-size:21px;font-weight:700;fill:#fff}
.tw__glow{fill:#FFD84D;fill-opacity:.32;stroke:#B58900;stroke-width:1.5}
.tw__br{fill:none;stroke:var(--fp-ink);stroke-width:3;stroke-linejoin:round}
.tw__wall{fill:var(--fp-cell)}
.tw__wline{stroke:var(--fp-wline);stroke-width:1.2}
.tw__tag{fill:#14212C;fill-opacity:.92}
.tw__n{font-family:var(--font);font-size:17px;font-weight:700;fill:#fff}
.tw__h{font-family:var(--font);font-size:19px;font-weight:700;fill:var(--col-ink)}
.fa__tissue{fill:var(--fp-lung)}
.fa__capw{fill:none;stroke:var(--fp-capw);stroke-width:42}
.fa__capl{fill:none;stroke:var(--fp-capl);stroke-width:32}
.fa__wall{fill:var(--fp-awall);stroke:var(--fp-awall);stroke-linecap:round;stroke-linejoin:round}
.fa__wall circle{stroke:none}
.fa__air{fill:var(--fp-aair);stroke:var(--fp-aair);stroke-linecap:round;stroke-linejoin:round}
.fa__air circle{stroke:none}
.fa__move{fill:none;stroke:var(--fp-mark);stroke-width:9;stroke-linecap:round}
.fa__svg marker path{fill:var(--fp-mark)}
.fa__read{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}
.fa__g{display:flex;align-items:center;gap:10px;min-width:0}
.fa__gn{font-size:13.5px;font-weight:600;line-height:1.2;color:var(--col-ink)}
.fa__gb{position:relative;flex:none;display:block;width:28px;height:54px;border-radius:5px;background:var(--edge);overflow:hidden}
.fa__gf{position:absolute;left:0;right:0;bottom:0;height:0}
.fa__gf--o{background:#E5483F}
.fa__gf--c{background:#2F7FE0}
.df__stream{fill:none;stroke:var(--fp-stream);stroke-width:2;stroke-linecap:round;opacity:.4}
.df__airsp{fill:var(--fp-far)}
.df__cell{fill:var(--fp-cell);stroke:var(--fp-celll);stroke-width:.8}
.df__nuc{fill:var(--fp-nuc);opacity:.85}
.df__gap{fill:var(--fp-gap)}
.df__cap{fill:var(--fp-cap)}
.df__plasma{fill:var(--fp-plasma)}
.df__tissue{fill:var(--fp-tissue)}
.df__neto{fill:#E23B2E;stroke:#5A1109;stroke-width:1.5}
.df__netc{fill:#2F7FE0;stroke:#0E2F59;stroke-width:1.5}
.df__move{fill:none;stroke:var(--fp-mark);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.df__move--b{stroke:var(--fp-markb)}
.df__w{font-family:var(--font);font-size:15px;font-weight:700;fill:var(--fp-mark)}
.df__w--b{fill:var(--fp-markb)}
.df__chip{fill:var(--fp-far);fill-opacity:.94}
.df__chip--b{fill:var(--fp-plasma)}
.df__scale line{stroke:var(--fp-ink);stroke-width:2}
.df__scale text{font-family:var(--font);font-size:14px;font-weight:600;fill:var(--fp-ink)}
.gk{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin:6px 0 2px;font-size:14px;color:var(--col-ink)}
.gk__i{display:inline-flex;align-items:center;gap:6px}
.gk__i svg{width:13px;height:13px}
/* one sample of air, changing */
.av__stage{position:relative;width:100%;aspect-ratio:1 / .86;max-height:var(--art-h,none);background:#10161D;border-radius:12px;overflow:hidden}
.av__cv{position:absolute;inset:0;display:block}
.av__nums{display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:center;margin:7px 0 2px;font-size:14px;color:var(--col-ink)}
.av__n{display:inline-flex;align-items:center;gap:6px}
.av__n i{display:block;width:11px;height:11px;border-radius:50%}
.av__n b{font-weight:700;min-width:3.6em}
/* two equal volumes of air (views/benches.js) */
.asv{display:flex;flex-direction:column;gap:8px;width:100%;height:100%;min-height:0;padding:4px}
.asv__bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.asv__b{display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:13.5px;font-weight:600;padding:6px 12px;border-radius:var(--r-pill);border:1.5px solid var(--edge);background:var(--card);color:var(--ink);cursor:pointer}
.asv__b i{display:block;width:11px;height:11px;border-radius:50%}
.asv__b[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-tint);color:var(--accent)}
.asv__b:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.asv__pair{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.asv__box{display:flex;flex-direction:column;min-height:0;margin:0}
.asv__t{font-size:14px;font-weight:700;text-align:center;margin-bottom:4px;color:var(--ink)}
.asv__cv{flex:1 1 auto;min-height:150px;width:100%;display:block;border-radius:10px;background:#10161D}
.asv__n{margin:5px 0 0;text-align:center;font-size:13.5px;font-weight:600;color:var(--col-ink)}
/* the limewater bench */
.lbv{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;gap:6px;padding:4px}
.lbv__stage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center}
.lbv__svg{display:block;width:100%;height:100%;max-height:100%}
.lbv__pipe{fill:none;stroke:var(--col-ink);stroke-opacity:.55;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.lbv__glass{fill:rgba(160,195,215,.13);stroke:var(--col-ink);stroke-opacity:.72;stroke-width:2.4}
.lbv__menisc{stroke:rgba(90,130,150,.8);stroke-width:1.5}
.lbv__bung{fill:#8E6F52;stroke:#5C4632;stroke-width:1}
.lbv__mouth{fill:var(--card-2);stroke:var(--col-ink);stroke-width:2}
.lbv__s{font-family:var(--font);font-size:15px;font-weight:600;fill:var(--col-ink)}
.lbv__air{font-family:var(--font);font-size:19px;font-weight:700}
.lbv__in{fill:var(--lb-in)}
.lbv__out{fill:var(--lb-out)}
.lbv__bub{fill:#fff;stroke:#7FB4CC;stroke-width:1}
.lbv__a{fill:#F2F5F7;stroke:#2B3A48;stroke-width:1}
.lbv__a--o{fill:#FFA94D;stroke:#7A4300}
/* flex:none: a longer line makes the picture give way, never the words (a 320 px phone wraps some lines to three) */
.lbv__say{flex:none;margin:0;min-height:2.7em;text-align:center;font-size:14px;line-height:1.35;color:var(--col-ink)}
.lbv__bar{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}
.lbv__go{font:inherit;font-size:14px;font-weight:700;padding:8px 18px;border-radius:var(--r-pill);border:2px solid #0B6A8C;background:#0B6A8C;color:#fff;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.lbv__go--out{border-color:#B5530F;background:#B5530F}
.lbv__go.is-on{filter:brightness(1.25)}
.lbv__go:focus-visible,.lbv__re:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lbv__re{font:inherit;font-size:13px;padding:7px 13px;border-radius:var(--r-pill);border:1px solid var(--edge);background:var(--card-2);color:var(--ink);cursor:pointer}
/* your report, as five parts to press */
: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__skb{stroke:var(--rpv-acc);stroke-width:2.2}
.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 five 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){
  .stage:has(> .platecol[data-kind="reportview"]){grid-template-rows:max-content minmax(0,1fr)}   /* Safari: a phone on its side */
  .platecol[data-kind="reportview"]{position:relative;height:auto;box-shadow:none}
  .platecol[data-kind="reportview"] > .viewhost{flex:none}
  .platecol[data-kind="reportview"] .rpv{height:auto}
  .platecol[data-kind="reportview"] .rpv__page{flex:none;max-height:none;padding:4px 14px}
  .platecol[data-kind="reportview"] .rpv__b{flex:none;padding:9px 6px}
}

/* the lining of the trachea (js/w-lining.js) */
.lg__air{fill:var(--fp-lair)}
.lg__muc{fill:#D9E89A;fill-opacity:.84;stroke:#9DB14C;stroke-width:1}
.lg__drop{fill:#D9E89A;stroke:#9DB14C;stroke-width:.8}
.lg__streak{fill:#FFFFFF;opacity:.5}
.lg__bac{fill:#6DA544;stroke:#2F5A17;stroke-width:1.2}
.lg__dust{fill:#8A6B4A;stroke:#4F3A25;stroke-width:1}
.lg__way{fill:none;stroke:var(--fp-mark);stroke-width:7}
.lg__wayh{fill:var(--fp-mark)}
/* the two gauges of the activity film: more, with no numbers */
.ac__gauges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin:8px 2px 2px;font-size:13.5px;color:var(--col-ink)}
.ac__g{display:flex;align-items:center;gap:10px;min-width:0}
.ac__g b,.ac__g em{display:block;font-style:normal;line-height:1.2}
.ac__g b{font-weight:600}
.ac__gauges[data-up="1"] em{font-weight:700;color:#FF8A7A}
.ac__arr{flex:none;width:22px;height:34px;opacity:0}
.ac__arr path{fill:#E5483F;stroke:#fff;stroke-width:1.7;stroke-linejoin:round}
.ac__gauges[data-up="1"] .ac__arr{opacity:1}
.ac__ring{fill:none;stroke:#FFD54F;stroke-width:5}
.ac__bg{fill:none}
/* the body stands on the same dark ground as the 3D chest, in the bright version too */
.ac__fig{background:radial-gradient(120% 90% at 50% 34%,var(--c3-bg2),var(--c3-bg) 72%);border-radius:14px;overflow:hidden;padding-bottom:6px}
.ac__fig .gk,.ac__fig .ac__gauges,.ac__fig .pinkey{color:var(--c3-ink)}
.ac__fig .ac__gauges{margin:8px 12px 2px}
.ac__svg .lb__txt{fill:var(--c3-ink);stroke:var(--c3-bg)}
.ac__svg .lb__lead{stroke:var(--c3-line)}
.ac__svg .lb__halo{stroke:var(--c3-bg)}
.ac__svg .lb__pin{fill:var(--c3-bg);stroke:var(--c3-line)}
.ac__svg .lb__pinn{fill:var(--c3-ink)}

/* where to practise a part of the report: Write-Up Lab pages, each in a new tab */
.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}
.rl__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- 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)}
