/* Sage Laboratory — the page every model shares. The Laboratory has its own look: a dark stage in
   both themes, so the specimen is the only light. */
:root {
  --ink:#E8F4F7; --ink-soft:#9DBDC8; --ink-faint:#5E8492; --line:rgba(160,220,235,.15); --line-strong:rgba(160,220,235,.32);
  --glass:rgba(5,19,27,.66); --glass-solid:#071a24; --cyan:#5FE6FF; --cyan-ink:#03222b; --warn:#FFB86B;
  --pad:28px; --panel-w:400px;
}
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:#01050A; color:var(--ink); overflow:hidden; overscroll-behavior:none;
  font-family:"Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size:14px; line-height:1.55; -webkit-font-smoothing:antialiased; }
[hidden] { display:none !important; }
button { font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }

#stage { position:fixed; inset:0; }
#stage canvas { display:block; width:100%; height:100%; touch-action:none; cursor:grab; }
#stage canvas.dragging { cursor:grabbing; }
#stage canvas.over { cursor:pointer; }
#leaders { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; }
#leaders path { fill:none; stroke:rgba(190,235,245,.38); stroke-width:1; transition:stroke .2s; }
#leaders path.hot { stroke:var(--cyan); }
#leaders circle { fill:var(--ink); transition:fill .2s; }
#leaders circle.hot { fill:var(--cyan); }

/* Callout labels: names in the margins, each with a line to its structure. */
#labels { position:fixed; inset:0; pointer-events:none; }
.callout { position:absolute; top:0; pointer-events:auto; white-space:nowrap; font-size:12.5px; font-weight:500; letter-spacing:.01em;
  color:var(--ink-soft); padding:5px 2px; transition:color .2s, opacity .3s; will-change:transform; }
.callout.l { left:max(var(--pad), env(safe-area-inset-left)); } .callout.r { right:max(var(--pad), env(safe-area-inset-right)); }
.callout:hover, .callout.hot { color:#fff; }
.callout .sw { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:8px; vertical-align:1px; box-shadow:0 0 8px currentColor; }
.callout.sub { font-weight:400; font-size:12px; cursor:default; }
.callout.dead { text-decoration:line-through; opacity:.55; }

.hud { position:fixed; z-index:5; }
.top { top:max(22px, env(safe-area-inset-top)); left:max(var(--pad), env(safe-area-inset-left)); display:flex; flex-direction:column; align-items:flex-start; gap:12px; pointer-events:none; }
.top > * { pointer-events:auto; }
.back { font-size:11.5px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-faint); text-decoration:none; transition:color .15s; }
.back:hover { color:var(--cyan); }
.top .row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
/* The unit in hand (SG-357, js/shared/unit-in-hand.js): the switch in a model's top row, and the card it opens. */
.unit-btn { max-width:min(46vw,320px); padding:8px 14px; border-radius:999px; font-size:12.5px; font-weight:500; color:var(--ink-soft); background:var(--glass); border:1px solid var(--line);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-backdrop-filter:blur(16px) saturate(1.3); backdrop-filter:blur(16px) saturate(1.3); transition:color .2s, border-color .2s; }
.unit-btn:hover { color:#fff; }
.unit-btn.on { color:var(--cyan); border-color:var(--cyan); }
.u-menu { position:fixed; inset:0; z-index:30; display:flex; align-items:flex-start; justify-content:center; padding:96px 16px 16px; background:rgba(1,5,10,.45); }
.u-menu[hidden] { display:none; }
.u-card { width:min(380px,100%); background:var(--glass-solid); border:1px solid var(--line-strong); border-radius:20px; padding:18px 18px 16px; }
.u-now { margin:0 0 12px; font-size:15px; font-weight:600; color:var(--ink); }
.u-card .up-field { margin:0 0 8px; }
.u-card .up-field label { display:block; font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--cyan); margin:0 0 6px; }
.u-card .diff-select { display:block; width:100%; padding:10px 12px; border-radius:12px; border:1px solid var(--line-strong); background:rgba(1,5,10,.5); color:var(--ink); font:inherit; font-size:16px; }
.u-card .diff-select:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(95,230,255,.18); }
.u-card .diff-select:disabled { opacity:.5; }
.u-card .acts { display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }
.top h1 { font-size:34px; font-weight:300; letter-spacing:-.02em; line-height:1; margin:0; pointer-events:none; }
.top h1 b { font-weight:600; }

.seg { display:inline-flex; padding:3px; border-radius:999px; background:var(--glass); border:1px solid var(--line);
  -webkit-backdrop-filter:blur(16px) saturate(1.3); backdrop-filter:blur(16px) saturate(1.3); }
.seg button { padding:7px 16px; border-radius:999px; font-size:12.5px; font-weight:500; color:var(--ink-soft); transition:background .2s, color .2s; }
.seg button:hover { color:#fff; }
.seg button.on { background:var(--cyan); color:var(--cyan-ink); font-weight:600; }
.modes { top:22px; left:50%; transform:translateX(-50%); transition:left .5s cubic-bezier(.2,.7,.2,1); }
body.panel-open .modes { left:calc((100% - var(--panel-w)) / 2); }

.scale { left:var(--pad); bottom:calc(26px + var(--lift-l, 0px)); pointer-events:none; transition:bottom .45s cubic-bezier(.2,.7,.2,1); }   /* --lift-l, --lift-r: a model raises a bottom corner clear of a wide tools bar */
.scale .bar { height:7px; border:1px solid var(--ink-soft); border-top:0; min-width:20px; }
.scale .lbl { font-size:12px; font-weight:500; color:var(--ink-soft); margin-top:6px; font-variant-numeric:tabular-nums; }
.scale .snote { font-size:11px; color:var(--ink-faint); margin-top:3px; }

.tools { bottom:22px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:6px; padding:5px 8px; border-radius:999px;
  background:var(--glass); border:1px solid var(--line); -webkit-backdrop-filter:blur(16px) saturate(1.3); backdrop-filter:blur(16px) saturate(1.3);
  transition:left .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
body.panel-open .tools { left:calc((100% - var(--panel-w)) / 2); }
body.touring .tools { opacity:0; pointer-events:none; }
.tool { display:flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; font-size:12.5px; font-weight:500; color:var(--ink-soft); transition:background .2s, color .2s; }
.tool:hover { color:#fff; }
.tool.on { background:rgba(95,230,255,.16); color:var(--cyan); }
.tool svg { width:16px; height:16px; }
.tools .sep { width:1px; height:18px; background:var(--line); }
.slice { display:flex; align-items:center; gap:10px; padding:0 12px 0 10px; font-size:12.5px; font-weight:500; color:var(--ink-soft); }
.axes { display:flex; gap:2px; }
.axes button { padding:4px 9px; border-radius:999px; font-size:12px; font-weight:500; color:var(--ink-faint); transition:background .2s, color .2s; }
.axes button:hover { color:#fff; }
.axes button.on { background:rgba(95,230,255,.16); color:var(--cyan); }
.slice input { -webkit-appearance:none; appearance:none; width:120px; height:3px; border-radius:2px; background:var(--line-strong); }
.slice input::-webkit-slider-thumb { -webkit-appearance:none; width:16px; height:16px; border-radius:50%; background:var(--cyan); border:0; box-shadow:0 0 10px rgba(95,230,255,.6); cursor:grab; }
.slice input::-moz-range-thumb { width:16px; height:16px; border-radius:50%; background:var(--cyan); border:0; }

/* At the molecular level there is no cell to switch, slice or pull apart. */
body.mol #kindSeg, body.mol .modes, body.mol #tExplode, body.mol .slice, body.mol .tools .sep { display:none; }

/* The panel on the right: what you're looking at. */
#panel, #quiz { position:fixed; z-index:6; top:max(16px, env(safe-area-inset-top)); right:max(16px, env(safe-area-inset-right)); bottom:max(16px, env(safe-area-inset-bottom)); width:calc(var(--panel-w) - 16px); display:flex; flex-direction:column;
  background:var(--glass); border:1px solid var(--line); border-radius:20px; overflow:hidden;
  -webkit-backdrop-filter:blur(22px) saturate(1.3); backdrop-filter:blur(22px) saturate(1.3);
  transform:translateX(calc(100% + 24px)); opacity:0; transition:transform .5s cubic-bezier(.2,.7,.2,1), opacity .35s; }
body.panel-open #panel { transform:none; opacity:1; }
.p-head { padding:22px 24px 16px; border-bottom:1px solid var(--line); position:relative; }
.p-kicker { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-faint); margin:0 0 10px; }
.p-kicker .sw { width:8px; height:8px; border-radius:50%; box-shadow:0 0 10px currentColor; }
.p-head h2 { font-size:27px; font-weight:600; letter-spacing:-.02em; line-height:1.1; margin:0; padding-right:36px; }
.p-say { font-size:12.5px; color:var(--ink-faint); margin:5px 0 0; }
.p-tag { font-size:14.5px; color:var(--ink); margin:10px 0 0; font-weight:400; }
.p-close { position:absolute; top:18px; right:18px; width:32px; height:32px; border-radius:50%; border:1px solid var(--line); color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center; transition:color .15s, border-color .15s; }
.p-close:hover { color:#fff; border-color:var(--line-strong); }
.p-body { flex:1; overflow-y:auto; padding:18px 24px 26px; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
.p-body h3 { font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--cyan); margin:22px 0 7px; }
/* The unit's own lines in a part's panel (SG-358): the sentence as written, the part's name in bold, a button to it in Notes. */
.unit-lines .u-sec { margin:0 0 18px; }
.unit-lines .u-line { color:var(--ink); margin:0 0 8px; padding-left:12px; border-left:2px solid var(--line-strong); }
.unit-lines .u-line b { font-weight:700; }
.unit-lines .u-none { color:var(--ink-faint); font-size:13px; margin:0; }
.p-body h3:first-child { margin-top:0; }
.p-body p { margin:0 0 8px; color:var(--ink-soft); }
.p-body p.lead { color:var(--ink); }
.facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 4px; }
.fact { padding:11px 13px; border-radius:12px; background:rgba(160,220,235,.06); border:1px solid var(--line); }
.fact b { display:block; font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:3px; }
.fact span { font-size:12.5px; color:var(--ink); line-height:1.4; display:block; }
.parts { list-style:none; margin:0; padding:0; }
.parts li { padding:8px 0; border-top:1px solid var(--line); color:var(--ink-soft); font-size:13px; }
.parts li:first-child { border-top:0; padding-top:0; }
.parts li b { color:var(--ink); font-weight:500; display:block; }
.note { padding:12px 14px; border-radius:12px; border:1px solid var(--line); background:rgba(160,220,235,.05); margin:0 0 4px; }
.note.warn { border-color:rgba(255,184,107,.3); background:rgba(255,184,107,.07); }
.note.warn h3 { color:var(--warn); }
.note h3 { margin:0 0 5px; }
.note p:last-child { margin:0; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.chip { font-size:11.5px; padding:3px 10px; border-radius:999px; border:1px solid var(--line); color:var(--ink-soft); }
.acts { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 2px; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:12px; font-size:13px; font-weight:600; background:var(--cyan); color:var(--cyan-ink); transition:filter .15s, transform .15s; }
a.btn { text-decoration:none; }
.btn:hover { filter:brightness(1.1); }
.btn:active { transform:scale(.97); }
.btn.ghost { background:transparent; color:var(--ink); border:1px solid var(--line-strong); font-weight:500; }
.btn.ghost:hover { border-color:var(--cyan); color:var(--cyan); filter:none; }
.btn.danger { background:var(--warn); color:#2b1700; }
.btn svg { width:15px; height:15px; }

/* Lists in Processes and Experiments */
.card { display:block; width:100%; text-align:left; padding:14px 16px; border-radius:14px; border:1px solid var(--line); background:rgba(160,220,235,.05); margin-bottom:10px;
  transition:border-color .2s, background .2s; }
button.card:hover { border-color:var(--cyan); background:rgba(95,230,255,.08); }
.card.on { border-color:var(--cyan); background:rgba(95,230,255,.1); }
.card b { display:block; font-size:15px; font-weight:600; color:var(--ink); margin-bottom:3px; }
.card span { color:var(--ink-soft); font-size:13px; display:block; }
.card .meta { font-size:11.5px; color:var(--ink-faint); margin-top:7px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.grid2 .card { margin:0; padding:11px 13px; }
.grid2 .card b { font-size:13.5px; margin:0; }
.seg.full { display:flex; width:100%; margin-bottom:12px; }
.seg.full button { flex:1; padding:8px 6px; }
.eq { font-size:12.5px; color:var(--ink); padding:10px 12px; border-radius:10px; background:rgba(160,220,235,.06); border:1px solid var(--line); margin:0 0 10px; }
.term { display:inline-block; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--cyan-ink); background:var(--cyan); padding:3px 9px; border-radius:999px; margin-bottom:8px; }

/* The tour card, bottom centre */
#tour { position:fixed; z-index:7; left:50%; bottom:max(22px, env(safe-area-inset-bottom)); width:min(660px, calc(100% - 48px)); transform:translate(-50%, 24px); opacity:0; pointer-events:none;
  background:var(--glass); border:1px solid var(--line); border-radius:20px; padding:18px 22px 16px;
  -webkit-backdrop-filter:blur(22px) saturate(1.3); backdrop-filter:blur(22px) saturate(1.3); transition:transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s; }
body.touring #tour { transform:translate(-50%, 0); opacity:1; pointer-events:auto; }
.t-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.t-name { font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-faint); }
.t-dots { display:flex; gap:5px; }
.t-dots i { width:18px; height:3px; border-radius:2px; background:var(--line-strong); transition:background .3s; }
.t-dots i.on { background:var(--cyan); }
#tour h2 { font-size:20px; font-weight:600; letter-spacing:-.01em; margin:0 0 6px; }
#tour p { margin:0; color:var(--ink-soft); font-size:14px; min-height:66px; }
.t-nav { display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.t-nav .where { font-size:12px; color:var(--ink-faint); }

/* The quiz card, top right where the panel sits. It is only as tall as its contents, so a prompt
   stays above an on-screen keyboard. */
#quiz { bottom:auto; max-height:calc(100% - 32px); pointer-events:none; }
body.quizzing #quiz { transform:none; opacity:1; pointer-events:auto; }
body.quizzing .modes { left:calc((100% - var(--panel-w)) / 2); }
/* A switch with four modes is wider: beside the panel or the quiz card, keep it clear of the title. */
@media (min-width: 1101px) { body.panel-open .modes.wide, body.quizzing .modes.wide { left:max(calc((100% - var(--panel-w)) / 2), 424px); } }
/* A quiz owns the cut and the names, and runs on one cell. */
body.quizzing .tools { opacity:0; pointer-events:none; }
body.quizzing #kindSeg { visibility:hidden; }
#quiz .p-head h2 { padding-right:0; }
#quiz .p-body { min-height:0; }
/* Sixteen dots (Full) are wider than the card: the dots give way, the kicker stays on one line. */
#quiz .t-top .p-kicker { margin:0; flex:none; white-space:nowrap; }
#quiz .t-dots { min-width:0; }
#quiz .t-dots i { flex:0 1 14px; min-width:4px; }
#quiz [hidden] { display:none; }
.q-clue { margin:0 0 16px; padding:12px 14px; border-radius:12px; background:rgba(160,220,235,.06); border:1px solid var(--line); }
.q-clue .q-label { margin-bottom:6px; }
.q-clue-text { margin:0; font-size:14.5px; line-height:1.5; color:var(--ink); }
.q-click { margin:10px 0 0; font-size:12.5px; color:var(--ink-faint); }
.q-click.set { color:var(--cyan); }
.q-i { font-style:normal; font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); margin-right:6px; }
.q-hint { font-size:12.5px; color:var(--ink-faint); margin:14px 0 0; }
.q-label { display:block; font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--cyan); margin:0 0 8px; }
/* 17px: under 16px, iOS zooms the page when the field takes focus. */
.q-input { display:block; width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--line-strong); background:rgba(1,5,10,.5);
  color:var(--ink); font:inherit; font-size:17px; transition:border-color .2s, box-shadow .2s; }
.q-input:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(95,230,255,.18); }
.q-acts { justify-content:space-between; }
.q-label2 { margin-top:16px; }
.q-area { resize:none; line-height:1.4; }
.q-fn { color:var(--ink); }
.q-more { display:none; margin-top:6px; font-size:12.5px; color:var(--ink-soft); overflow-wrap:anywhere; }
.q-row.on .q-more { display:block; }
.q-more > span { display:block; margin-top:4px; }
.q-note { color:var(--cyan); }
.q-keys i { font-style:normal; font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); margin-right:6px; }
#quiz .q-score { font-size:60px; font-weight:300; letter-spacing:-.03em; line-height:1; font-variant-numeric:tabular-nums; }
#quiz .q-score b { font-weight:inherit; }
#quiz .q-score span { font-size:24px; font-weight:400; color:var(--ink-faint); letter-spacing:0; }
.q-rows { display:flex; flex-direction:column; gap:6px; }
.q-row { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:10px 12px; border-radius:12px; border:1px solid var(--line);
  background:rgba(160,220,235,.05); opacity:0; transform:translateY(6px); transition:opacity .35s, transform .35s, border-color .2s, background .2s; }
.q-row.in { opacity:1; transform:none; }
.q-row:hover, .q-row.on { border-color:var(--cyan); background:rgba(95,230,255,.1); }
.q-mark { flex:none; width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.q-mark svg { width:14px; height:14px; }
.q-row.ok .q-mark { background:rgba(95,230,255,.16); color:var(--cyan); }
.q-row.miss .q-mark { background:rgba(255,184,107,.14); color:var(--warn); }
.q-txt { min-width:0; }
.q-txt b { display:block; font-size:14px; font-weight:600; color:var(--ink); }
.q-txt b .sw { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; vertical-align:1px; box-shadow:0 0 8px currentColor; }
.q-txt > span:not(.q-more) { display:block; font-size:12.5px; color:var(--ink-soft); overflow-wrap:anywhere; }
/* From A Unit (SG-78): the class and unit pickers (js/units.js draws them) and the checklist of structures. */
.q-unit { margin-top:14px; }
.q-unit .up-field { margin:0 0 8px; }
.q-unit .up-field label { display:block; font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--cyan); margin:0 0 6px; }
.q-unit .diff-select { display:block; width:100%; padding:10px 12px; border-radius:12px; border:1px solid var(--line-strong); background:rgba(1,5,10,.5); color:var(--ink); font:inherit; font-size:16px; }
.q-unit .diff-select:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(95,230,255,.18); }
.q-unit .diff-select:disabled { opacity:.5; }
.q-unit .q-hint { margin:10px 0 0; }
.q-checks { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; max-height:min(34vh, 300px); overflow:auto; padding:2px; }
.q-check { display:flex; align-items:flex-start; gap:8px; padding:5px 4px; font-size:13px; color:var(--ink); cursor:pointer; }
.q-check input { flex:none; width:16px; height:16px; margin:2px 0 0; accent-color:var(--cyan); }
.q-check i { display:block; font-style:normal; font-size:11.5px; color:var(--ink-faint); }
.q-check.off { color:var(--ink-faint); }
.btn:disabled { opacity:.4; pointer-events:none; }
/* A long start card (the unit's checklist) scrolls under its buttons, which stay in reach. */
#quiz .p-body > .acts:last-child { position:sticky; bottom:-1px; margin-top:12px; padding:12px 0 2px; background:var(--glass-solid); }
.q-unit .q-label2 { margin-top:16px; }

.no-gl-msg { display:none; position:fixed; inset:0; align-items:center; justify-content:center; text-align:center; padding:32px; color:var(--ink-soft); }
.no-gl .no-gl-msg { display:flex; }
.loading { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-faint);
  pointer-events:none; transition:opacity .6s; }
body.ready .loading { opacity:0; }

/* Narrow windows: the mode switch drops to sit above the tools, clear of the title. */
@media (max-width: 1100px) {
  .modes { top:auto; bottom:74px; }
  body.touring .modes { opacity:0; pointer-events:none; }
  .slice > span { display:none; }
}
@media (max-width: 900px) {
  :root { --panel-w:340px; --pad:18px; }
  .top h1 { font-size:26px; }
  .slice input { width:80px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration:.01s !important; } }

/* The depth dial: how much detail the words and the drawing carry (Essentials, In Depth, Expert). */
.depth { display:flex; align-items:center; gap:10px; font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-faint); }
.depth .seg button { padding:5px 12px; font-size:12px; }
/* DNA's tools bar holds more than The Cell's: keep it on one line. */
body.dna .tools { width:max-content; max-width:calc(100% - 32px); flex-wrap:wrap; justify-content:center; row-gap:4px; border-radius:24px; }
body.dna.panel-open .tools { max-width:calc(100% - var(--panel-w) - 32px); }
/* At an iPad's width the panel pushes the mode switch left, onto the title: it stops clear of it. */
@media (min-width: 1101px) { body.dna.panel-open .modes { left:max(calc((100% - var(--panel-w)) / 2), 480px); } }
body.dna .tools .tool, body.dna .tools .slice { white-space:nowrap; }
/* DNA: a letter over each base, and the panel's deeper layers. */
#letters { position:fixed; inset:0; pointer-events:none; overflow:hidden; }
#letters i { position:absolute; left:0; top:0; font-style:normal; font-weight:700; line-height:1; opacity:0; transition:opacity .25s;
  text-shadow:0 0 6px rgba(1,5,10,.95), 0 0 2px rgba(1,5,10,.9); will-change:transform; }
.deeper { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.deeper .btn span { font-weight:400; color:var(--ink-faint); }
.expert { margin-top:22px; padding-left:14px; border-left:2px solid rgba(95,230,255,.35); }
.expert > h3:first-child { margin-top:0; }
/* DNA · Experiments: the gene read three letters at a time, the heat dial, the names of the amino acids. */
.gene { display:grid; grid-template-columns:repeat(6, 1fr); gap:6px; margin:4px 0 8px; }
.cod { padding:6px 2px 5px; border-radius:10px; border:1px solid var(--line); background:rgba(160,220,235,.05); text-align:center; transition:border-color .3s, background .3s, opacity .3s; }
.cod.ch { border-color:rgba(255,184,107,.6); background:rgba(255,184,107,.1); }
.cod.stop { border-color:var(--warn); }
.cod.lost { opacity:.35; }
.ltrs { display:flex; justify-content:center; gap:1px; }
.ltrs button { width:15px; font-size:14px; font-weight:700; line-height:1.35; border-radius:4px; }
.ltrs button:hover, .ltrs button.on { background:rgba(255,255,255,.14); }
.ltrs button.on { outline:1.5px solid var(--cyan); }
.ltrs button.new { text-decoration:underline; text-underline-offset:3px; }
.aa { display:block; font-size:10.5px; color:var(--ink-soft); margin-top:2px; }
.aa::before, #codons i::before { content:""; display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--k); margin-right:4px; vertical-align:1px; }
.p-body p.hint { font-size:12.5px; color:var(--ink-faint); margin:0; }
.editbar { display:grid; gap:8px; padding:10px 12px; margin-top:8px; border-radius:12px; border:1px solid var(--line-strong); background:rgba(1,5,10,.35); font-size:12.5px; color:var(--ink-soft); }
.editbar > div { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.editbar b { color:var(--ink); font-weight:600; }
.editbar .lt { display:inline-flex; gap:4px; }
.editbar .lt button { width:28px; height:28px; border-radius:8px; border:1px solid var(--line-strong); font-weight:700; font-size:14px; transition:border-color .15s, background .15s; }
.editbar .lt button:hover { border-color:var(--cyan); background:rgba(95,230,255,.1); }
.btn.sm { padding:6px 12px; font-size:12.5px; border-radius:9px; }
.hg { font-size:12px; color:var(--ink-faint); margin-left:10px; font-variant-numeric:tabular-nums; }
.p-body p.real b { color:var(--ink); font-weight:600; }
.heat { padding:14px; border-radius:14px; border:1px solid var(--line); background:rgba(160,220,235,.05); margin-top:6px; }
.heat .readout { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.heat .readout b { font-size:30px; font-weight:300; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
.heat .readout span { font-size:12.5px; color:var(--ink-soft); }
.heat input { -webkit-appearance:none; appearance:none; display:block; width:100%; height:4px; border-radius:2px; background:linear-gradient(90deg, #5fe6ff, #ffc23a 62%, #ff5a2a); }
.heat input::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:#fff; border:0; box-shadow:0 0 10px rgba(255,255,255,.5); cursor:grab; }
.heat input::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:#fff; border:0; }
.heat .ticks { display:flex; justify-content:space-between; font-size:11px; color:var(--ink-faint); margin-top:9px; }
/* One atom chosen: the block at the top of its part's panel. */
.note.atom .sw { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; vertical-align:1px; box-shadow:0 0 8px currentColor; }
.note.atom .acts { margin-top:10px; }
#codons { position:fixed; inset:0; pointer-events:none; overflow:hidden; }
#codons i { position:absolute; left:0; top:0; font-style:normal; font-size:12px; font-weight:500; white-space:nowrap; color:var(--ink); padding:2px 10px 2px 8px; border-radius:999px;
  background:rgba(5,19,27,.72); border:1px solid var(--line); opacity:0; transition:opacity .25s, border-color .3s; will-change:transform; }
#codons.tight i { font-size:10.5px; padding:0 8px 0 6px; }
#codons i.ch { border-color:var(--warn); color:#fff; }
#codons i.lost { text-decoration:line-through; color:var(--ink-faint); }
/* A tour step's extra line at Expert. */
body.dna[data-depth="3"] #tour { width:min(820px, calc(100% - 48px)); }      /* an Expert step has a second paragraph: wider, so no taller than it must be */
#tour .t-more { min-height:0; margin-top:8px; padding-left:12px; border-left:2px solid rgba(95,230,255,.35); font-size:13px; color:var(--ink-soft); }
/* DNA: the scale ladder, above the scale bar. */
.scale .rail { display:flex; flex-direction:column; align-items:flex-start; gap:2px; margin-bottom:14px; pointer-events:auto; }
.scale .rail:empty { display:none; }
.scale .rail button { position:relative; padding:3px 0 3px 16px; font-size:12px; font-weight:500; color:var(--ink-faint); transition:color .2s; }
.scale .rail button::before { content:""; position:absolute; left:2px; top:50%; width:6px; height:6px; margin-top:-3px; border-radius:50%; border:1px solid var(--ink-faint); transition:background .2s, border-color .2s, box-shadow .2s; }
.scale .rail button::after { content:""; position:absolute; left:5px; top:calc(50% + 5px); width:1px; height:calc(100% - 8px); background:var(--line-strong); }
.scale .rail button:last-child::after { display:none; }
.scale .rail button:hover { color:#fff; }
.scale .rail button.on { color:var(--cyan); }
.scale .rail button.on::before { background:var(--cyan); border-color:var(--cyan); box-shadow:0 0 8px var(--cyan); }
/* Where a model comes from: a quiet line at the bottom right that opens the credits in the panel. */
.credit { right:var(--pad); bottom:calc(24px + var(--lift-r, 0px)); font-size:11.5px; color:var(--ink-faint); transition:right .5s cubic-bezier(.2,.7,.2,1), bottom .45s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.credit button { color:var(--ink-soft); text-decoration:underline; text-underline-offset:3px; }
.credit button:hover { color:var(--cyan); }
body.panel-open .credit { right:calc(var(--panel-w) + var(--pad)); }
body.dna.touring .credit { opacity:0; pointer-events:none; }
.credits li { font-size:12.5px; }
.credits a { color:var(--cyan); text-underline-offset:2px; }
.credits .src { display:block; margin-top:3px; color:var(--ink-faint); }
/* Away from the helix there is nothing to untwist, unzip or redraw. */
body.away .tools .slice, body.away #tLetters, body.away .tools .sep { display:none; }
body.touring .scale .rail { opacity:.35; pointer-events:none; }

/* ── The Cell as a plate (SG-366, SG-372) ────────────────────────────────────────────────────────
   The Cell's section, flat, on a sheet of paper in the dark stage: a number beside each part and the names in a key, a tap on each
   part, the same panel as the model. The plate is paper, so its ink is its own and not the stage's. */
#plate { position:fixed; z-index:4; top:104px; left:0; right:0; bottom:84px; overflow-x:hidden; overflow-y:auto; transition:right .5s cubic-bezier(.2,.7,.2,1); }
body.panel-open #plate, body.quizzing #plate { right:var(--panel-w); }
body.plate #stage, body.plate #leaders, body.plate #labels { visibility:hidden; }
body.plate .scale, body.plate .tools:not(.plate-tools), body.plate .modes [data-mode="processes"], body.plate .modes [data-mode="experiments"] { display:none !important; }
body.plate .plate-tools { display:flex; }
body.plate.panel-open .plate-tools, body.plate.quizzing .plate-tools { left:calc((100% - var(--panel-w)) / 2); }
body.quizzing .plate-tools { opacity:0; pointer-events:none; }
body.plate.quizzing #viewSeg button { pointer-events:none; opacity:.5; }
.plate-ink { --ink:#16181b; --ink-2:#4a4f55; --ink-3:#7a8087; --paper:#fff; --flesh:#f4f1ea; --bone:#e8e3d6; --spot:#b3122f; --spot-wash:rgba(179,18,47,.10); --spot-fill:rgba(179,18,47,.55);
  color:var(--ink); }
.plate-sheet { position:relative; margin:0 auto 16px; background:#fbfaf6; border-radius:3px;
  /* SG-381: a printed plate's double rule, the way the Lab's journals frame a figure (css/lab-journal.css) */
  box-shadow:inset 0 0 0 1px var(--ink-2), inset 0 0 0 4px #fbfaf6, inset 0 0 0 5px var(--rule), 0 12px 40px rgba(0,0,0,.45); }
.plate-title { position:absolute; z-index:2; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; box-sizing:border-box; padding:2px 4px 12px; border-bottom:1.5px solid var(--ink); }
.plate-title .fig-no { display:block; margin-bottom:7px; font:600 13px/1 "Sora", sans-serif; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-3); }
.plate-title h2 { margin:0; font:600 clamp(32px, 3.3vw, 46px)/1.02 var(--serif); letter-spacing:-.016em; color:var(--ink); }
.plate-title p { margin:0 0 4px; max-width:30ch; font:italic 400 19px/1.35 var(--serif); color:var(--ink-2); text-align:right; }
.plate-sheet.under .plate-title p { display:none; }
.plate-sheet.under .plate-title h2 { font-size:clamp(26px, 6.5vw, 34px); }
.plate-fig { position:absolute; z-index:0; }
.plate-fig svg { display:block; width:100%; height:100%; }
.plate-leaders { position:absolute; pointer-events:none; overflow:visible; z-index:1; }   /* the numbers, over the drawing */
.plate-leaders path { fill:none; transition:stroke .2s; }
.plate-leaders circle { stroke:none; transition:fill .2s; }
/* SG-372: a number beside each part, and the names in a key with the same numbers, beside the drawing or (.under) under it.
   SG-373 (Dave: "that text needs to be up to the same quality as the graphic it's representing"): the key is set as a plate's own
   legend, in the Lab journals' type (css/lab-journal.css): a small-capital head over a full rule, the names in Lora on hairlines,
   the figures in the same discs the drawing wears. It is a column of the sheet, ruled off from the drawing, not a list beside it. */
.plate-ink { --rule:rgba(22,24,27,.14); --serif:"Lora", Georgia, "Times New Roman", serif; }
.plate-labels { position:absolute; display:grid; grid-template-columns:1fr; grid-template-rows:auto; grid-auto-rows:minmax(36px, 1fr); align-content:stretch; gap:0; padding:6px 22px 8px 24px; box-sizing:border-box; border-left:1px solid var(--rule); }
.plate-head { display:flex; justify-content:space-between; align-items:baseline; margin:0; padding:2px 2px 12px; border-bottom:1px solid var(--ink); font:600 13px/1 "Sora", sans-serif; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-2); }
.plate-head span:last-child { color:var(--ink-3); }
.plate-label { z-index:2; display:flex; align-items:center; gap:13px; padding:4px 2px; min-height:36px; border-bottom:1px solid var(--rule); font:400 var(--key-fs, 18px)/1.2 var(--serif); letter-spacing:.005em; color:var(--ink); text-align:left;
  white-space:normal; transition:background .2s, color .2s; }
.plate-label:last-child { border-bottom:0; }
.plate-label:hover, .plate-label:focus-visible { background:rgba(22,24,27,.05); }
.plate-label i { font-style:italic; color:var(--ink-3); margin-right:6px; }
.plate-label.lit, .plate-label.marked { color:var(--spot); font-weight:600; }
.plate-label .n { display:grid; place-items:center; flex:none; width:26px; height:26px; border-radius:50%; background:var(--ink); color:#fff; font:italic 600 14px/1 var(--serif); font-variant-numeric:lining-nums tabular-nums; }
.plate-label.lit .n, .plate-label.marked .n { background:var(--spot); }
.plate-sheet.under .plate-labels { grid-template-columns:1fr 1fr; grid-auto-rows:auto; gap:0 18px; padding:6px 10px 10px; border-left:0; }
.plate-sheet.under .plate-head { grid-column:1 / -1; padding-top:8px; }
.plate-sheet.under { margin-bottom:64px; }   /* the key's last row scrolls clear of the mode switch that floats over the foot of the page */
.plate-sheet.under .plate-label { min-height:44px; gap:10px; }
.plate-sheet.under .plate-label:nth-last-child(2):nth-child(even) { border-bottom:0; }   /* the left of a full last pair (the head is the first child) */
.plate-leaders .num { pointer-events:all; cursor:pointer; }
.plate-leaders .num path { stroke:var(--ink); stroke-width:1; }
.plate-leaders .num .end { fill:var(--ink); }
.plate-leaders .num .disc { fill:var(--ink); stroke:#fbfaf6; stroke-width:1.5; }
.plate-leaders .num text { fill:#fff; font:italic 600 13px/1 "Lora", Georgia, serif; text-anchor:middle; dominant-baseline:central; pointer-events:none; }
.plate-leaders .num.lit .disc, .plate-leaders .num.marked .disc { fill:var(--spot); }
.plate-leaders .num.lit path, .plate-leaders .num.marked path { stroke:var(--spot); }
.plate-sheet .sec .hit { fill:none; stroke:transparent; stroke-width:16; pointer-events:stroke; cursor:pointer; }
.plate-sheet .sec .hit.hthin { stroke-width:10; stroke-linecap:round; }
.plate-sheet .sec .hit.hbead { stroke-width:9; stroke-linecap:round; }
.plate-sheet .sec .k.marked .cyto { fill:rgba(179,18,47,.09); }   /* the cytoplasm has no outline to thicken: marked, its ground and stipple take the spot colour */
.plate-sheet .sec .k.marked .dots, .plate-sheet .sec .k.focus .dots { stroke:var(--spot); stroke-width:1.8; }
.plate-sheet .sec .hit.hblob { stroke:none; fill:transparent; pointer-events:all; }
.plate-sheet .sec .k.marked .sac, .plate-sheet .sec .k.focus .sac, .plate-sheet .sec .k.marked .tube, .plate-sheet .sec .k.focus .tube, .plate-sheet .sec .k.marked .bead, .plate-sheet .sec .k.focus .bead,
.plate-sheet .sec .k.marked .thread, .plate-sheet .sec .k.focus .thread, .plate-sheet .sec .k.marked .tubule, .plate-sheet .sec .k.focus .tubule { stroke:var(--spot); }
.plate-sheet .sec [data-k] { cursor:pointer; }
.plate-sheet .sec .k, .plate-sheet .sec .nucleolus { transition:opacity .25s; }
.plate-sheet .sec .k.dim, .plate-sheet .sec .nucleolus.dim { opacity:.32; }
.plate-sheet .sec .k.asking .o { animation:plate-ask 1.1s ease-in-out infinite alternate; }
.plate-sheet .sec .k.marked .o, .plate-sheet .sec .k.focus .o { stroke:var(--spot); stroke-width:3; }
.plate-sheet .sec .nucleolus.focus, .plate-sheet .sec .nucleolus.marked { fill:var(--spot-fill); stroke:var(--spot); stroke-width:2.6; }   /* the nucleolus is tapped on its own, not as a group */
.plate-sheet .sec .nucleolus.asking { animation:plate-ask 1.1s ease-in-out infinite alternate; }
@keyframes plate-ask { from { stroke-width:2; } to { stroke-width:3.4; } }
@media (prefers-reduced-motion: reduce) { .plate-sheet .sec .k.asking .o { animation:none; stroke-width:3; } }
/* the same ink the Sort plate draws (css/lab-notes.css), under this sheet and the printed one */
.plate-ink .sec .f { stroke:none; }
.plate-ink .sec .cyto { fill:var(--flesh); }
.plate-ink .sec .wall { fill:var(--bone); }
.plate-ink .sec .vac { fill:var(--paper); }
.plate-ink .sec .nuc { fill:var(--bone); }
.plate-ink .sec .mito, .plate-ink .sec .chlo { fill:var(--paper); }
.plate-ink .sec .o { fill:none; stroke:var(--ink); stroke-width:1.25; stroke-linejoin:round; }
.plate-ink .sec .o.fine { stroke-width:.9; }
.plate-ink .sec .o.strong { stroke-width:1.7; }
.plate-ink .sec .hat { fill:none; stroke:var(--ink-2); stroke-width:.75; stroke-linecap:round; }
.plate-ink .sec .dots { fill:none; stroke:var(--ink-3); stroke-width:1.3; stroke-linecap:round; }
.plate-ink .sec .crista { fill:none; stroke:var(--ink-2); stroke-width:.9; stroke-linecap:round; }
.plate-ink .sec .granum { fill:var(--ink-2); stroke:var(--ink); stroke-width:.5; }
.plate-ink .sec .nucleolus { fill:var(--ink-2); stroke:var(--ink); stroke-width:.8; }
.plate-ink .sec .starch { fill:var(--paper); }
.plate-ink .sec .k.lit .o { stroke:var(--spot); stroke-width:2; }
.plate-ink .sec .k.lit .f:not(.cyto) { fill:var(--spot-wash); }
.plate-ink .sec .k.lit .hat, .plate-ink .sec .k.lit .crista { stroke:var(--spot); }
.plate-ink .sec .k.lit .granum, .plate-ink .sec .k.lit .nucleolus, .plate-ink .sec .nucleolus.lit { fill:var(--spot-fill); stroke:var(--spot); }
.plate-ink .sec .nucleolus.lit { stroke-width:2; }
/* SG-372: an ink for each kind of thing, so two parts are told apart by how they are drawn. A sac of the rough ER and a tubule of
   the smooth ER are hollow lines (an ink stroke with a paper one down its middle); only the sac is beaded. */
.plate-ink .sec .gol, .plate-ink .sec .ves, .plate-ink .sec .cen { fill:var(--paper); }
.plate-ink .sec .pero { fill:var(--bone); }   /* toned and in a full line, where a vesicle is a small open ring in a fine one */
.plate-ink .sec .lyso { fill:var(--ink-3); }
.plate-ink .sec .halo { fill:var(--flesh); }   /* the centrosome lies in front of the cut, so what the cut drew is cleared from under it */
.plate-ink .sec .sac, .plate-ink .sec .sac-in, .plate-ink .sec .tube, .plate-ink .sec .tube-in, .plate-ink .sec .bead, .plate-ink .sec .grain, .plate-ink .sec .thread, .plate-ink .sec .tubule { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.plate-ink .sec .sac { stroke:var(--ink); stroke-width:4.4; }
.plate-ink .sec .sac-in { stroke:var(--paper); stroke-width:2.4; }
.plate-ink .sec .bead { stroke:var(--ink); stroke-width:3.2; }
.plate-ink .sec .tube { stroke:var(--ink); stroke-width:3.4; }
.plate-ink .sec .tube-in { stroke:var(--flesh); stroke-width:1.7; }
.plate-ink .sec .tube.wide { stroke-width:5.5; }
.plate-ink .sec .tube-in.wide { stroke:var(--paper); stroke-width:3.4; }
.plate-ink .sec .grain { stroke:var(--paper); stroke-width:1.5; }
.plate-ink .sec .thread { stroke:var(--ink-2); stroke-width:1.15; }
.plate-ink .sec .tubule { stroke:var(--ink-3); stroke-width:.85; stroke-dasharray:6 3; }
.plate-ink .sec .k.lit .sac, .plate-ink .sec .k.lit .tube, .plate-ink .sec .k.lit .bead, .plate-ink .sec .k.lit .thread, .plate-ink .sec .k.lit .tubule, .plate-ink .sec .k.lit .dots { stroke:var(--spot); }
.plate-ink .sec .k.lit .thread, .plate-ink .sec .k.lit .tubule { stroke-width:1.6; }
.plate-ink .sec .k.lit .cyto { fill:rgba(179,18,47,.045); }   /* the ground under everything: a breath of the spot colour, or a unit that names it turns the whole cell red */
.plate-ink .sec .k.lit .lyso { fill:var(--spot-fill); }

/* SG-385: the cell membrane's section (js/lab/cell/membrane.js), rendered from the model's own membrane scene: each part is its own
   picture over the plate's paper, with its outline traced over it, clear at rest (a tap lands on it); the bracket is the bilayer's
   ink mark. Lit, a part's outline takes the spot
   colour over a breath of it, and the parts not lit fade back; marked or in focus, the outline is heavier. */
.plate-ink .sec.mbr image { transition:opacity .25s ease; }
.plate-ink .sec.mbr .mb-rim { fill:transparent; fill-rule:evenodd; stroke:none; pointer-events:all; cursor:pointer; }
.plate-ink .sec.mbr .mb-brace { stroke-width:1.4; }
.plate-ink .sec.mbr .k.dim image { opacity:.3; }
.plate-ink .sec.mbr .k.dim .mb-brace { stroke:var(--ink-3); }
.plate-ink .sec.mbr .k.lit .mb-rim { fill:var(--spot-wash); stroke:var(--spot); stroke-width:1.3; stroke-linejoin:round; }
.plate-ink .sec.mbr .k.lit .mb-brace { stroke:var(--spot); stroke-width:2; }
.plate-sheet .sec.mbr .k.marked .mb-rim, .plate-sheet .sec.mbr .k.focus .mb-rim { stroke:var(--spot); stroke-width:2; fill:var(--spot-wash); }
.plate-sheet .sec.mbr .k.asking .mb-rim { animation:plate-ask 1.1s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .plate-ink .sec.mbr image { transition:none; } }

/* what is printed: the plate and its answers, black on white, and nothing of the page */
.print-sheet { display:none; }
@media print {
  @page { margin:12mm; }
  html, body { height:auto !important; overflow:visible !important; background:#fff !important; color:#000 !important; }
  body > *:not(#printSheets) { display:none !important; }
  #printSheets { display:block !important; }
  .print-sheet { --ink:#000; --ink-2:#333; --ink-3:#666; --paper:#fff; --flesh:#fff; --bone:#fff; font-family:"Sora", sans-serif; color:#000; }
  .print-page { page-break-after:always; break-after:page; }
  .print-page:last-child { page-break-after:auto; break-after:auto; }
  .print-page h2 { margin:0 0 5mm; padding-bottom:3mm; border-bottom:.3mm solid #000; font:600 17pt/1.15 "Lora", Georgia, serif; }
  .print-page h2 span { float:right; padding-top:2.2mm; font:600 8pt/1 "Sora", sans-serif; letter-spacing:.22em; text-transform:uppercase; color:#333; }
  .print-fig { display:block; width:100%; height:auto; max-height:226mm; }   /* with its heading, inside one Letter or A4 page at 12mm margins */
  .print-fig text { font:500 20px "Sora", sans-serif; fill:#000; }
  .print-sheet .sec .lyso { fill:#777; }
  .print-sheet .sec .pero { fill:#cfcfcf; }
  .print-sheet .sec .tubule { stroke:#666; }
  .print-fig .blank { stroke:#000; stroke-width:.8; }
  .print-fig .disc { fill:#000; stroke:#fff; stroke-width:1.2; }
  .print-fig .num path { fill:none; stroke:#000; stroke-width:.8; }
  .print-fig .num .end { fill:#000; }
  .print-fig .num text, .print-fig text.fig { fill:#fff; font:600 10.5px "Sora", sans-serif; text-anchor:middle; dominant-baseline:central; }
  .print-fig text.word { fill:#000; font:400 14.5px "Lora", Georgia, serif; }
  .print-sheet .sec .nucleolus, .print-sheet .sec .granum { fill:#555; }
}

/* ── A map sheet (SG-386, js/lab/earth/sheet.js): a continent as an atlas page. Sea with two waterlines round every coast, the
   countries in Natural Earth's seven map colours turned to paper tints, the land that is not numbered in grey, lakes as sea. */
.plate-ink { --sea:#d6e5ec; --sea-line:#b3cbd6; --land-x:#e9e7e1; --land-x-line:#aaa59b; }   /* on .plate-ink, so the printed sheet's drawing has them too */
.plate-ink .sec .sea { fill:var(--sea); }
.plate-ink .sec .grat { fill:none; stroke:var(--sea-line); stroke-width:.45; opacity:.8; }
.plate-ink .sec .wl { fill:none; stroke-linejoin:round; }
.plate-ink .sec .wl2 { stroke:var(--sea-line); stroke-width:9; opacity:.35; }
.plate-ink .sec .wl1 { stroke:var(--sea-line); stroke-width:4.6; opacity:.6; }
.plate-ink .sec .coast { fill:none; stroke:var(--ink); stroke-width:1.5; stroke-linejoin:round; }
.plate-ink .sec .ctx { fill:var(--land-x); stroke:var(--land-x-line); stroke-width:.5; stroke-linejoin:round; }
.plate-ink .sec .cty .o { stroke:var(--ink-2); stroke-width:.6; stroke-linejoin:round; fill-rule:evenodd; }
.plate-ink .sec .t1 .o { fill:#efe1c3; } .plate-ink .sec .t2 .o { fill:#dfe7c9; } .plate-ink .sec .t3 .o { fill:#f2d9cb; } .plate-ink .sec .t4 .o { fill:#e7e0cc; }
.plate-ink .sec .t5 .o { fill:#f2e7b5; } .plate-ink .sec .t6 .o { fill:#cfe2d6; } .plate-ink .sec .t7 .o { fill:#ebd3c0; }
.plate-ink .sec .ring { fill:none; stroke:var(--ink); stroke-width:.8; }
.plate-ink .sec .lake { fill:var(--sea); stroke:var(--ink-2); stroke-width:.6; stroke-linejoin:round; }
.plate-ink .sec .frame { fill:none; stroke:var(--ink); stroke-width:1.2; }
.plate-sheet .sec.map .hit { fill:transparent; stroke:none; pointer-events:all; cursor:pointer; }
.plate-sheet .sec.map .cty { transition:opacity .25s; }
.plate-sheet .sec.map .cty.dim { opacity:.38; }
.plate-ink .sec.map .cty.lit .o, .plate-ink .sec.map .cty.focus .o, .plate-ink .sec.map .cty.marked .o { fill:#f0c9c9; stroke:var(--spot); stroke-width:1.4; }
.plate-ink .sec.map .cty.lit .ring, .plate-ink .sec.map .cty.focus .ring, .plate-ink .sec.map .cty.marked .ring { stroke:var(--spot); stroke-width:1.6; }
.plate-sheet .sec.map .cty.asking .o { animation:plate-ask 1.1s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .plate-sheet .sec.map .cty.asking .o { animation:none; stroke-width:2.4; } }
/* A sheet whose key is longer than a column (a continent's fifty-odd countries) sets it under the drawing in as many columns as fit. */
.plate-sheet.many .plate-labels { grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows:auto; gap:0 22px; padding:6px 10px 10px; border-left:0; }
.plate-sheet.many .plate-head { grid-column:1 / -1; padding-top:8px; }
.plate-sheet.many .plate-label { min-height:38px; gap:11px; }
@media print {
  .print-sheet { --sea:#fff; --sea-line:#bdbdbd; --land-x:#e2e2e2; --land-x-line:#9a9a9a; }
  .print-sheet .sec .cty .o { fill:#fff !important; stroke:#000; stroke-width:.55; }
  .print-sheet .sec .grat { stroke:#d0d0d0; }
  .print-sheet .sec .wl2 { opacity:.3; } .print-sheet .sec .wl1 { opacity:.5; }
  .print-list { display:block; width:100%; height:auto; max-height:236mm; }
}
/* An inset (SG-386): a crowded corner drawn again, larger, in a box over open sea; its source is a fine box on the page. */
.plate-ink .sec .inset-src { fill:none; stroke:var(--ink-2); stroke-width:.7; stroke-dasharray:3 2; }
.plate-ink .sec .inset-ground { fill:#fbfaf6; stroke:none; }
.plate-ink .sec .inset-name { font:600 12.5px "Sora", sans-serif; letter-spacing:.16em; text-transform:uppercase; fill:var(--ink-2); }
@media print { .print-sheet .sec .inset-ground { fill:#fff; } .print-sheet .sec .inset-name { fill:#333; } }
.plate-ink .sec .inset-tag { fill:#fbfaf6; stroke:var(--ink); stroke-width:1.2; }
@media print { .print-sheet .sec .inset-tag { fill:#fff; } }
