/* Ausgeology · What did Shark Bay lose?: styles for this lesson's concept map and models.
   The first block (the brief, number answers, the shared parts of the models) is carried over from the lesson on particles and climate. */
:root {
  --sb-P: #b45309; --sb-R: #1d4ed8; --sb-S: #15803d; --sb-C: #7e22ce;
  --sb-Pl: #b45309; --sb-Rl: #1d4ed8; --sb-Sl: #15803d; --sb-Cl: #7e22ce;
  --sb-Pt: rgba(180, 83, 9, 0.09); --sb-Rt: rgba(29, 78, 216, 0.08); --sb-St: rgba(21, 128, 61, 0.09); --sb-Ct: rgba(126, 34, 206, 0.08);
  --sb-thing: #5b6b70; --sb-paper: #fdfdf9;
  --sb-sea: #2e7fa3; --sb-sea-2: #1f5f80; --sb-sea-3: #8fc6dc; --sb-shallow: #a9d6e5; --sb-deep: #174a63;
  --sb-land: #efe6d2; --sb-land-2: #d9c9a3; --sb-coast: #8a7a5a; --sb-sand: #e6d6b0; --sb-sand-2: #cdb889; --sb-mud: #6b5a46; --sb-mud-2: #4f4234;
  --sb-grass: #3e8e4a; --sb-grass-2: #2c6b36; --sb-grass-soft: rgba(62, 142, 74, 0.42); --sb-wire: #5f8f35;
  --sb-sun: #f2b705; --sb-o2: #ffffff; --sb-sed: #a0784a; --sb-salt: #f4f1ea; --sb-strom: #8a6f52; --sb-strom-2: #6d5640;
  --sb-heat: #d9480f; --sb-heat-soft: rgba(217, 72, 15, 0.22); --sb-algae: #8a9a2b; --sb-carbon: #2b2522; --sb-co2: #7b5cc4;
  --sb-forest: #3f6b3a; --sb-forest-2: #2d4f2a; --sb-trunk: #6b4a2b; --sb-rain: #2f80c1; --sb-dam: #3b8fb8;
  --sb-oceanic: rgba(46, 127, 163, 0.18); --sb-meta: rgba(214, 170, 60, 0.26); --sb-hyper: rgba(201, 82, 40, 0.30);
  --sb-skyc: #dcecf5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sb-Pl: #f59e0b; --sb-Rl: #7aa7ff; --sb-Sl: #4ade80; --sb-Cl: #c79bff;
    --sb-Pt: rgba(245, 158, 11, 0.13); --sb-Rt: rgba(122, 167, 255, 0.12); --sb-St: rgba(74, 222, 128, 0.11); --sb-Ct: rgba(199, 155, 255, 0.12);
    --sb-thing: #8e9ea3; --sb-paper: #151c1f;
    --sb-sea: #1f5f80; --sb-sea-2: #164a64; --sb-sea-3: #2f6f8c; --sb-shallow: #2b6378; --sb-deep: #0e2c3b;
    --sb-land: #2a2f2b; --sb-land-2: #3a3f37; --sb-coast: #6e6550; --sb-sand: #6f6347; --sb-sand-2: #57503b; --sb-mud: #4a3e31; --sb-mud-2: #352c23;
    --sb-grass: #4f9d5a; --sb-grass-2: #3b7b45; --sb-grass-soft: rgba(79, 157, 90, 0.45); --sb-wire: #6f9f45;
    --sb-o2: #e8f4fb; --sb-salt: #d9d4c7; --sb-heat: #ff7a45; --sb-heat-soft: rgba(255, 122, 69, 0.25); --sb-co2: #b9a2ec;
    --sb-forest: #4f7f48; --sb-forest-2: #3a6235; --sb-oceanic: rgba(90, 170, 210, 0.2); --sb-meta: rgba(230, 190, 90, 0.22); --sb-hyper: rgba(240, 120, 80, 0.28);
    --sb-skyc: #233441;
  }
}
:root[data-theme="dark"] {
  --sb-skyc: #233441;
  --sb-Pl: #f59e0b; --sb-Rl: #7aa7ff; --sb-Sl: #4ade80; --sb-Cl: #c79bff;
  --sb-Pt: rgba(245, 158, 11, 0.13); --sb-Rt: rgba(122, 167, 255, 0.12); --sb-St: rgba(74, 222, 128, 0.11); --sb-Ct: rgba(199, 155, 255, 0.12);
  --sb-thing: #8e9ea3; --sb-paper: #151c1f;
  --sb-sea: #1f5f80; --sb-sea-2: #164a64; --sb-sea-3: #2f6f8c; --sb-shallow: #2b6378; --sb-deep: #0e2c3b;
  --sb-land: #2a2f2b; --sb-land-2: #3a3f37; --sb-coast: #6e6550; --sb-sand: #6f6347; --sb-sand-2: #57503b; --sb-mud: #4a3e31; --sb-mud-2: #352c23;
  --sb-grass: #4f9d5a; --sb-grass-2: #3b7b45; --sb-grass-soft: rgba(79, 157, 90, 0.45); --sb-wire: #6f9f45;
  --sb-o2: #e8f4fb; --sb-salt: #d9d4c7; --sb-heat: #ff7a45; --sb-heat-soft: rgba(255, 122, 69, 0.25); --sb-co2: #b9a2ec;
  --sb-forest: #4f7f48; --sb-forest-2: #3a6235; --sb-oceanic: rgba(90, 170, 210, 0.2); --sb-meta: rgba(230, 190, 90, 0.22); --sb-hyper: rgba(240, 120, 80, 0.28);
}

/* the syllabus quotes in the teacher notes */
blockquote.scsa { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); max-width: 72ch; }
blockquote.scsa p { margin: 0 0 6px; }
blockquote.scsa ul { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }

/* the brief and how the lesson works */
.wd-brief { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; padding: 16px 18px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ochre); max-width: 860px; }
.wd-brief > * { margin: 0; }
.wd-brief > .label { color: var(--ochre); }
.wd-brief ul { padding-left: 1.3em; display: grid; gap: 4px; }
.wd-cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wd-cycle > li { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wd-cycle h3 { font-size: 1.04rem; margin: 0; }
.wd-cycle p { margin: 0; font-size: 0.97rem; line-height: 1.5; }
.wd-cycle .small { color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 860px) { .wd-cycle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .wd-cycle { grid-template-columns: minmax(0, 1fr); } }
.key-idea p.sb-ki-body { font-size: 1rem; font-weight: 400; line-height: 1.55; }
.screen-head.sb-first { margin-top: 18px; padding-top: 22px; border-top: 2px solid var(--line); }

/* number answers */
.num { display: grid; gap: 8px; }
.num label { font-weight: 700; line-height: 1.4; }
.num-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.num-row input { width: 9.5em; max-width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 1.04rem; color: var(--ink); background: var(--surface); font-variant-numeric: tabular-nums; }
.num-row input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.num.is-right .num-row input { border-color: var(--good); }
.num.is-wrong .num-row input { border-color: var(--bad); }
.num-unit { color: var(--ink-2); }
.num .fb { margin: 0; }
.nums { display: grid; gap: 18px; max-width: 820px; }
.chk { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 650; cursor: pointer; min-height: 40px; line-height: 1.4; padding: 4px 0; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 2px; }

/* the models: shared pieces */
.lab.viz { margin: 4px 0 6px; }
.viz-lead { margin: 0; color: var(--ink-2); max-width: 72ch; }
.viz-read { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.5; max-width: 820px; }
.wd-opt { min-height: 40px; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer; text-align: left; line-height: 1.3; }
.wd-opt:hover { border-color: var(--accent); }
.wd-opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wd-opt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wd-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-ctl { display: grid; gap: 10px; align-content: start; min-width: 0; }
.sb-ctl .slider-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.sb-ctl .slider-row .label { white-space: normal; line-height: 1.25; }
.sb-ctl .slider-row input { grid-column: 1 / -1; grid-row: 2; }
.sb-ctl .slider-row output { font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-q { margin: 0; font-weight: 750; }
.sb-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .sb-split { grid-template-columns: minmax(0, 1fr); } }
.sb-fig { display: grid; gap: 8px; min-width: 0; }
.sb-fig svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.sb-fig .sb-cap { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.sb-fig.sb-chart svg { max-width: 760px; }
.sb-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.sb-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sb-swipe { display: none; margin: 0; font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 620px) { .sb-swipe { display: block; } }
@media (max-width: 620px) { .sb-scroll > svg { min-width: 560px; } .sb-scroll.sb-mapbox > svg { min-width: 470px; } .sb-scroll.sb-wide2 > svg { min-width: 520px; } }
.sb-fig.sb-wide2 svg { max-width: 680px; }
.sb-fig.sb-gaugebox svg { max-width: 300px; }
.sb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 12px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.sb-facts div { display: grid; gap: 1px; }
.sb-facts dt { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.sb-facts dd { margin: 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-sub { margin: 6px 0 0; font-size: 1.02rem; }

.sb-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.sb-fs legend { font-weight: 700; line-height: 1.4; padding: 0; margin-bottom: 6px; }
.sb-checklist { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.sb-checklist .chk { font-weight: 600; }
/* ---------- the concept map ---------- */
.sbm { display: grid; gap: 12px; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--sb-S); border-radius: 16px; box-shadow: var(--shadow); }
.sbm > * { margin: 0; min-width: 0; }
.sbm-head { display: grid; gap: 4px; }
.sbm-title { font-size: 1.2rem; margin: 0; }
.sbm-focus { margin: 0; line-height: 1.45; }
.sbm-focus i { font-weight: 700; }
.sbm-park { display: grid; gap: 8px; }
.sbm-park > * { margin: 0; }
.sbm-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.sbm-chip { min-height: 40px; padding: 7px 14px; border-radius: 10px; border: 2px solid var(--sb-thing); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; line-height: 1.25; }
.sbm-chip.is-service { border-style: dashed; }
.sbm-chip.is-old { border-style: dotted; }
.sbm-chip:hover { border-color: var(--accent); }
.sbm-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sbm-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 12px; background: var(--sb-paper); border: 1px solid var(--line); }
.sbm-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sbm-swipe { display: none; }
.sbm.is-wide .sbm-swipe { display: block; margin: -4px 0 0; font-size: 0.88rem; color: var(--ink-2); }
.sbm-sizer { position: relative; }
.sbm-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.sbm-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.sbm-line { stroke: var(--ink-2); stroke-width: 1.6; fill: none; }
.sbm-line.is-hit { stroke: var(--sb-heat); stroke-width: 2.6; }
.sbm-ah { fill: var(--ink-2); }
.sbm-bands { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0 3px 3px; box-sizing: border-box; pointer-events: none; }
.sbm-band { border-radius: 10px; padding: 7px 10px; border-top: 3px solid; }
.sbm-band p { margin: 0; font-size: 0.82rem; line-height: 1.25; color: var(--ink); }
.sbm-band p span { color: var(--ink-2); font-size: 0.76rem; }
.sbm-band.b-P { background: var(--sb-Pt); border-color: var(--sb-Pl); }
.sbm-band.b-R { background: var(--sb-Rt); border-color: var(--sb-Rl); }
.sbm-band.b-S { background: var(--sb-St); border-color: var(--sb-Sl); }
.sbm-band.b-C { background: var(--sb-Ct); border-color: var(--sb-Cl); }
.sbm-strip { position: absolute; left: 4px; right: 4px; height: 56px; border: 1.5px dashed var(--line); border-radius: 10px; pointer-events: none; }
.sbm-strip p { margin: 4px 10px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.sbm-node { position: absolute; transform: translate(-50%, -50%); max-width: 148px; min-height: 36px; padding: 6px 11px; border-radius: 10px; border: 2px solid var(--sb-thing); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 0.86rem; font-weight: 700; line-height: 1.18; text-align: center; cursor: grab; touch-action: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); user-select: none; -webkit-user-select: none; z-index: 2; }
.sbm-node:active { cursor: grabbing; }
.sbm-node.k-core { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 1rem; padding: 8px 16px; max-width: 200px; }
.sbm-node.t-none { border-style: dashed; }
.sbm-node.t-P { border-color: var(--sb-Pl); }
.sbm-node.t-R { border-color: var(--sb-Rl); }
.sbm-node.t-S { border-color: var(--sb-Sl); }
.sbm-node.t-C { border-color: var(--sb-Cl); }
.sbm-tag { position: absolute; top: -10px; right: -10px; width: 21px; height: 21px; border-radius: 50%; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800; line-height: 21px; color: #fff; background: var(--ink-2); text-align: center; }
.sbm-tag:empty { display: none; }
.sbm-node.t-P .sbm-tag { background: var(--sb-P); }
.sbm-node.t-R .sbm-tag { background: var(--sb-R); }
.sbm-node.t-S .sbm-tag { background: var(--sb-S); }
.sbm-node.t-C .sbm-tag { background: var(--sb-C); }
.sbm-node.is-sel { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 7px rgba(217, 154, 0, 0.18); }
.sbm-node:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sbm-node.is-hit { box-shadow: 0 0 0 5px var(--sb-heat-soft); border-color: var(--sb-heat); }
.sbm-node.ev-lost::after, .sbm-node.ev-unknown::after, .sbm-node.ev-none::after { position: absolute; left: 50%; top: calc(100% + 3px); transform: translateX(-50%); white-space: nowrap; padding: 1px 7px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.sbm-node.ev-lost::after { content: "Lost or cut"; background: var(--bad); color: #fff; }
.sbm-node.ev-none::after { content: "Not lost"; background: var(--surface); color: var(--ink); border: 1px solid var(--ink-2); }
.sbm-node.ev-unknown::after { content: "No data"; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.sbm-labs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sbm-lab { position: absolute; transform: translate(-50%, -50%); font-family: var(--font-body); font-size: 0.72rem; font-weight: 650; line-height: 1.15; color: var(--ink-2); background: var(--sb-paper); padding: 1px 5px; border-radius: 4px; width: max-content; max-width: 130px; text-align: center; }
.sbm-bar { display: grid; gap: 8px; }
.sbm-bar > * { margin: 0; }
.sbm-hint { margin: 0; }
.sbm-pick, .sbm-selbar { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.sbm-pick > *, .sbm-selbar > * { margin: 0; }
.sbm-pick-q { font-weight: 700; }
.sbm-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 1.05rem; }
.sbm-pick-row select, .sbm-pick-row input { min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; color: var(--ink); background: var(--surface); max-width: 100%; }
.sbm-pick-row select:focus, .sbm-pick-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.sbm-pick-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sbm-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sbm-sort .label { margin-right: 2px; }
.sbm-tagbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 12px 6px 7px; border-radius: 10px; border: 2px solid; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.sbm-tagbtn i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 800; color: #fff; }
.sbm-tagbtn.t-P { border-color: var(--sb-Pl); } .sbm-tagbtn.t-P i { background: var(--sb-P); }
.sbm-tagbtn.t-R { border-color: var(--sb-Rl); } .sbm-tagbtn.t-R i { background: var(--sb-R); }
.sbm-tagbtn.t-S { border-color: var(--sb-Sl); } .sbm-tagbtn.t-S i { background: var(--sb-S); }
.sbm-tagbtn.t-C { border-color: var(--sb-Cl); } .sbm-tagbtn.t-C i { background: var(--sb-C); }
.sbm-tagbtn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; background: var(--bg); }
.sbm-tagbtn[aria-pressed="true"]::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--i-check) center / 14px no-repeat; mask: var(--i-check) center / 14px no-repeat; }
.sbm-tagbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sbm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sbm-count { margin: 0; }
.sbm-check { display: grid; gap: 10px; justify-items: start; }
.sbm-res { display: grid; gap: 8px; justify-items: start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); max-width: 820px; }
.sbm-res > * { margin: 0; line-height: 1.5; }
.sbm-res .sbm-r-ok { padding-left: 10px; border-left: 4px solid var(--good); }
.sbm-res .sbm-r-no { padding-left: 10px; border-left: 4px solid var(--bad); }
.sbm-res .sbm-r-todo { padding-left: 10px; border-left: 4px solid var(--ochre); }
.sbm-miss { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.sbm-sent { border-radius: 12px; border: 1px solid var(--line); padding: 10px 14px; background: var(--bg); }
.sbm-sent summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.sbm-sent summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sbm-list { margin: 8px 0 0; padding-left: 1.5em; display: grid; gap: 6px; }
.sbm-list li { line-height: 1.45; }
.sbm-x { margin-left: 6px; min-height: 30px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 650; cursor: pointer; }
.sbm-x:hover { border-color: var(--bad); }
.sbm-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sbm-none { margin: 6px 0 0; }
.sb-maptask { display: grid; gap: 10px; max-width: 860px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--sb-S); }
.sb-maptask > * { margin: 0; }
.sb-maptask ol { padding-left: 1.3em; display: grid; gap: 4px; }
.sb-tags-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.94rem; }
.sb-tags-key li { display: inline-flex; align-items: center; gap: 7px; }
.sb-tags-key i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 800; color: #fff; }
.sb-tags-key .t-P i { background: var(--sb-P); } .sb-tags-key .t-R i { background: var(--sb-R); } .sb-tags-key .t-S i { background: var(--sb-S); } .sb-tags-key .t-C i { background: var(--sb-C); }
/* the map as a picture (screen 10 and printing) */
.sbm-snap { width: 100%; height: auto; display: block; background: var(--sb-paper); border-radius: 12px; border: 1px solid var(--line); }
.sbm-snap .sbm-sband.b-P { fill: var(--sb-Pt); } .sbm-snap .sbm-sband.b-R { fill: var(--sb-Rt); } .sbm-snap .sbm-sband.b-S { fill: var(--sb-St); } .sbm-snap .sbm-sband.b-C { fill: var(--sb-Ct); }
.sbm-snap .sbm-sbt { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--ink); }
.sbm-snap .sbm-snode rect { fill: var(--surface); stroke: var(--sb-thing); stroke-width: 2; }
.sbm-snap .sbm-snode.k-core rect { fill: var(--accent); stroke: var(--accent); }
.sbm-snap .sbm-snode.k-core text { fill: var(--accent-ink); }
.sbm-snap .sbm-snode.t-P rect { stroke: var(--sb-Pl); } .sbm-snap .sbm-snode.t-R rect { stroke: var(--sb-Rl); } .sbm-snap .sbm-snode.t-S rect { stroke: var(--sb-Sl); } .sbm-snap .sbm-snode.t-C rect { stroke: var(--sb-Cl); }
.sbm-snap .sbm-snode text { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.sbm-snap .sbm-snode .sbm-stag { fill: var(--ink-2); }
.sbm-snap .sbm-snode.t-P .sbm-stag { fill: var(--sb-P); } .sbm-snap .sbm-snode.t-R .sbm-stag { fill: var(--sb-R); } .sbm-snap .sbm-snode.t-S .sbm-stag { fill: var(--sb-S); } .sbm-snap .sbm-snode.t-C .sbm-stag { fill: var(--sb-C); }
.sbm-snap .sbm-snode .sbm-stagt { fill: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 800; }
.sbm-snap .sbm-slabbg { fill: var(--sb-paper); }
.sbm-snap .sbm-slab { font-family: var(--font-body); font-size: 11px; font-weight: 650; fill: var(--ink-2); text-anchor: middle; }

/* ---------- shared model pieces ---------- */
.sb-split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 760px) { .sb-split-even { grid-template-columns: minmax(0, 1fr); } }
.sb-fig.sb-wide svg { max-width: 900px; }
.sb-fig.sb-mapbox svg { max-width: 600px; }
@media (max-width: 620px) { .sb-scroll > svg { min-width: 560px; } .sb-scroll.sb-mapbox > svg { min-width: 420px; } }
.sb-v-t { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--ink); }
.sb-v-s { font-family: var(--font-body); font-size: 11.5px; font-weight: 650; fill: var(--ink-2); }
.sb-v-warn { font-family: var(--font-body); font-size: 14px; font-weight: 800; fill: var(--bad); }
.sb-v-on { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: #f7f4ec; paint-order: stroke; stroke: rgba(10, 30, 40, 0.55); stroke-width: 3px; stroke-linejoin: round; }
.sb-v-onwarn { fill: #ffd2c2; }
.sb-ax { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); }
.sb-ax-t { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--ink); }
.sb-grid { stroke: var(--viz-grid); stroke-width: 1; }
.sb-chart-bg { fill: var(--viz-surface); stroke: var(--viz-axis); stroke-width: 1; }
.sb-dot { fill: var(--good); stroke: var(--surface); stroke-width: 2; }
.sb-dot.is-bad { fill: var(--bad); }
.sb-sky { fill: var(--sb-skyc); }
.sb-ctl-wide { max-width: 520px; }
.sb-sand { fill: var(--sb-sand); stroke: var(--sb-sand-2); stroke-width: 1; }
.sb-sunc { fill: var(--sb-sun); stroke: #c78a00; stroke-width: 1.5; }
.sb-ribbon { fill: var(--sb-grass); stroke: var(--sb-grass-2); stroke-width: 0.8; }
.sb-wire-stem { stroke: var(--sb-wire); stroke-width: 2; fill: none; stroke-linecap: round; }
.sb-wire-leaf { stroke: var(--sb-wire); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.sb-dead { stroke: #9b7b4a; stroke-width: 2; fill: none; }
.sb-o2 { fill: var(--sb-o2); stroke: var(--sb-sea-2); stroke-width: 1.2; }
.sb-info { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); min-height: 92px; }
.sb-info p { margin: 0; line-height: 1.45; }
.sb-info .sb-info-h { font-weight: 800; }
.sb-places { gap: 6px; }
.legend .sw.sb-sw-bank { background: var(--sb-grass-soft); border: 1px solid var(--sb-grass-2); }
.legend .sw.sb-sw-oce { background: var(--sb-oceanic); border: 1px solid var(--sb-sea); }
.legend .sw.sb-sw-meta { background: var(--sb-meta); border: 1px solid #b08a22; }
.legend .sw.sb-sw-hyper { background: var(--sb-hyper); border: 1px solid #b4501c; }
.legend .sw.sb-sw-pin { background: var(--sb-heat); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--sb-heat); }
.legend .sw.sb-sw-sun { background: var(--sb-sun); }
.legend .sw.sb-sw-grass { background: var(--sb-grass); }
.legend .sw.sb-sw-o2 { background: var(--sb-o2); border: 1.5px solid var(--sb-sea-2); }
.legend .sw.sb-sw-need { width: 22px; height: 0; border-radius: 0; border-top: 2px dashed var(--bad); }
.legend .sw.sb-sw-mud { background: var(--sb-sed); }
.legend .sw.sb-sw-wave { background: none; height: 0; width: 22px; border-radius: 0; border-top: 3px solid #f7fbff; box-shadow: 0 0 0 1px var(--sb-sea-2); }

/* ---------- screen 1: the bay ---------- */
.sb-sea-a { stop-color: #8fc6dc; }
.sb-sea-b { stop-color: #5aa3c2; }
.sb-landp { fill: var(--sb-land); stroke: var(--sb-coast); stroke-width: 1.3; stroke-linejoin: round; }
.sb-bank { fill: var(--sb-grass-soft); stroke: var(--sb-grass-2); stroke-width: 1; stroke-dasharray: 3 3; }
.sb-z-oceanic { fill: var(--sb-oceanic); }
.sb-z-metahaline { fill: var(--sb-meta); }
.sb-z-hypersaline { fill: var(--sb-hyper); }
.sb-north { fill: var(--ink); }
.sb-ns-t { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink); }
.sb-scalebar { fill: var(--ink); }
.sb-inset-bg { fill: var(--surface); stroke: var(--line); stroke-width: 0.8; }
.sb-inset-land { fill: var(--sb-land-2); stroke: var(--sb-coast); stroke-width: 0.6; }
.sb-inset-dot { fill: var(--sb-heat); stroke: var(--surface); stroke-width: 0.8; }
.sb-inset-perth { fill: var(--ink); }
.sb-inset-t { font-family: var(--font-body); font-size: 6.4px; font-weight: 700; fill: var(--ink); }
.sb-water { font-family: var(--font-body); font-size: 13px; font-style: italic; font-weight: 600; fill: #0f3d52; }
.sb-water-s { font-size: 11px; }
.sb-place { cursor: pointer; }
.sb-pin { fill: var(--sb-heat); stroke: #fff; stroke-width: 2; }
.sb-place.is-on .sb-pin { fill: var(--sb-R); }
.sb-place-t { font-family: var(--font-body); font-size: 12.5px; font-weight: 800; fill: #1a2124; paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3.2px; stroke-linejoin: round; }
.sb-place.is-on .sb-place-t { fill: var(--sb-R); }
.sb-place-big { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; fill: #6b5a3a; }

/* ---------- screen 2: light ---------- */
.sb-water-col { fill: var(--sb-sea); }
.sb-ray { fill: var(--sb-sun); }
.sb-surface { fill: none; stroke: #f7fbff; stroke-width: 2.2; }
.sb-floorline { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.6; }
.sb-curve { fill: none; stroke: var(--viz-dim); stroke-width: 1.6; }
.sb-curve.is-on { stroke: var(--viz-1); stroke-width: 3; }
.sb-need { stroke: var(--bad); stroke-width: 1.8; stroke-dasharray: 6 4; }
.sb-limline { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }

/* ---------- screen 3: sediment ---------- */
.sb-water-mud { fill: #8a9a7a; }
.sb-water-clear { fill: var(--sb-sea); }
.sb-beach { fill: var(--sb-sand); stroke: var(--sb-sand-2); stroke-width: 1; }
.sb-current { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; opacity: 0.85; }
.sb-current-h { fill: #fff; opacity: 0.85; }
.sb-wave { fill: none; stroke: #f7fbff; stroke-width: 3; stroke-linejoin: round; }
.sb-trapped { fill: var(--sb-sed); }
.sb-mudp { fill: var(--sb-sed); stroke: rgba(0, 0, 0, 0.25); stroke-width: 0.6; }

/* ---------- screen 4: the sill ---------- */
.sb-water-salt { opacity: 0.9; }
.sb-bankc { fill: #d9c48d; stroke: #b39a5c; stroke-width: 1; }
.sb-bankline { fill: none; stroke: #b39a5c; stroke-width: 1; opacity: 0.7; }
.sb-flow { fill: none; stroke: #e9f6fb; stroke-linecap: round; opacity: 0.9; }
.sb-flow-out { stroke: #f6e2c4; }
.sb-flow-h { fill: #e9f6fb; }
.sb-flow-h.sb-flow-out { fill: #f6e2c4; }
.sb-evap { fill: none; stroke: #ffffff; stroke-width: 2.2; stroke-linecap: round; }
.sb-evap-h { fill: #ffffff; }
.sb-strom { fill: var(--sb-strom); stroke: var(--sb-strom-2); stroke-width: 1.2; }
.sb-strom-l { fill: none; stroke: var(--sb-strom-2); stroke-width: 1; opacity: 0.8; }
.sb-snail { fill: #c99b5a; stroke: #7a5a2c; stroke-width: 1; }
.sb-snail-l { fill: none; stroke: #7a5a2c; stroke-width: 1; }
.sb-sealevel { stroke: #f7fbff; stroke-width: 2; stroke-dasharray: 8 5; }
.legend .sw.sb-sw-bankc { background: #d9c48d; border: 1px solid #b39a5c; }
.legend .sw.sb-sw-strom { background: var(--sb-strom); border-radius: 7px 7px 2px 2px; }
.legend .sw.sb-sw-snail { background: #c99b5a; border-radius: 50% 50% 2px 2px; }

/* ---------- screen 5: carbon ---------- */
.sb-oldsand { fill: var(--sb-sand); }
.sb-layer { fill: #6b5a46; }
.sb-layer-b { fill: #5e4f3d; }
.sb-layer-ox { fill: #b8743f; }
.sb-fleck { fill: #2b2522; opacity: 0.8; }
.sb-fleck-ox { fill: #7a3b12; opacity: 0.7; }
.sb-co2b { fill: var(--sb-co2); stroke: #fff; stroke-width: 1; opacity: 0.85; }
.sb-co2arrow { stroke: var(--sb-co2); stroke-width: 3; stroke-linecap: round; }
.sb-co2head { fill: var(--sb-co2); }
[data-share].is-off input { opacity: 0.45; }
.legend .sw.sb-sw-carbon { background: #6b5a46; }
.legend .sw.sb-sw-oxid { background: #b8743f; }
.legend .sw.sb-sw-co2 { background: var(--sb-co2); }

/* ---------- screen 6: nutrients ---------- */
.sb-water-green { fill: #7a9a3a; }
.sb-mudbed { fill: var(--sb-mud); }
.sb-runoff { fill: none; stroke: #c49a3a; stroke-linecap: round; opacity: 0.85; }
.sb-algae { fill: #8a7a2b; opacity: 0.85; }
.sb-root { fill: none; stroke: #e8dcc0; stroke-width: 1.4; opacity: 0.8; }
.sb-litter { fill: none; stroke: #9b7b4a; stroke-width: 3; stroke-linecap: round; }
.sb-dec { fill: #f3c9e0; }
.sb-nutarrow { fill: none; stroke: #f2d16b; stroke-width: 2.6; stroke-dasharray: 6 3; }
.sb-nuthead { fill: #f2d16b; }
.sb-cbar { fill: var(--sb-grass); }
.sb-cbar.is-after { fill: var(--viz-dim); }
.sb-axis { stroke: var(--viz-axis); stroke-width: 1.4; }
.legend .sw.sb-sw-nut { background: #f2d16b; }
.legend .sw.sb-sw-algae { background: #8a7a2b; }
.legend .sw.sb-sw-dec { background: #f3c9e0; border: 1px solid #9b6b86; }

/* ---------- screen 7: food ---------- */
.sb-prawn-b { fill: #d9814a; stroke: #8a4a22; stroke-width: 1; }
.sb-prawn-l { fill: none; stroke: #8a4a22; stroke-width: 1.2; stroke-linecap: round; }
.sb-prawn-ghost .sb-prawn-b { fill: none; stroke-dasharray: 3 2; }
.sb-path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-dasharray: 7 5; }
.sb-path-h { fill: #fff; }
.sb-hull { fill: #c0392b; stroke: #7b241c; stroke-width: 1; }
.sb-cabin { fill: #f4f1ea; stroke: #7b241c; stroke-width: 1; }
.sb-net { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.2; stroke-dasharray: 3 3; }
.sb-rangeband { fill: var(--sb-St); stroke: var(--sb-Sl); stroke-width: 1; stroke-dasharray: 4 3; }
.sb-catchbar { fill: var(--viz-2); opacity: 0.55; }
.sb-catchbar.is-on { opacity: 1; }
.sb-coverline { fill: none; stroke: var(--viz-1); stroke-width: 2.4; }
.sb-coverdot { fill: var(--viz-1); stroke: var(--surface); stroke-width: 2; }
.sb-halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.sb-dambank { fill: var(--sb-sand); stroke: var(--sb-sand-2); stroke-width: 1; }
.sb-coverdot.is-open { fill: var(--surface); stroke: var(--viz-1); stroke-width: 2.4; }
.sb-ax-on { font-weight: 800; fill: var(--ink); }
.legend .sw.sb-sw-catch { background: var(--viz-2); }
.legend .sw.sb-sw-range { background: var(--sb-St); border: 1px dashed var(--sb-Sl); }
.legend .sw.sb-sw-cover { background: var(--viz-1); }

/* ---------- screen 8: layers ---------- */
.sb-layers { position: relative; display: grid; gap: 10px; }
.sb-lsvg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.sb-ldep { fill: none; stroke: var(--sb-Sl); stroke-width: 2.4; }
.sb-ldep-h { fill: var(--sb-Sl); }
.sb-lpeople { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.sb-lmid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .sb-lmid { grid-template-columns: minmax(0, 1fr); } }
.sb-lbox { display: grid; gap: 8px; align-content: start; padding: 10px 12px 12px; border-radius: 12px; border-top: 4px solid; min-height: 86px; }
.sb-lbox.b-P { background: var(--sb-Pt); border-color: var(--sb-Pl); }
.sb-lbox.b-R { background: var(--sb-Rt); border-color: var(--sb-Rl); }
.sb-lbox.b-S { background: var(--sb-St); border-color: var(--sb-Sl); }
.sb-lbox.b-C { background: var(--sb-Ct); border-color: var(--sb-Cl); }
.sb-lh { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 800; }
.sb-lh i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-mono); font-size: 0.74rem; color: #fff; }
.b-P .sb-lh i { background: var(--sb-P); } .b-R .sb-lh i { background: var(--sb-R); } .b-S .sb-lh i { background: var(--sb-S); } .b-C .sb-lh i { background: var(--sb-C); }
.sb-lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-lchip { min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 2px solid var(--sb-thing); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.sb-lchip.t-P { border-color: var(--sb-Pl); } .sb-lchip.t-R { border-color: var(--sb-Rl); } .sb-lchip.t-S { border-color: var(--sb-Sl); } .sb-lchip.t-C { border-color: var(--sb-Cl); } .sb-lchip.t-none { border-style: dashed; }
.sb-lchip.is-on { background: var(--sb-S); border-color: var(--sb-S); color: #fff; }
.sb-lchip.is-dep { box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.25); }
.sb-lchip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sb-lnone { display: grid; gap: 6px; }
.sb-lbase .sb-lbox { padding-bottom: 26px; }
.sb-lnone .label { margin: 0; }
.sb-lay-check { display: grid; gap: 10px; justify-items: start; }

/* ---------- screen 9: the heatwave ---------- */
.sb-heatwash { fill: var(--sb-heat); }
.sb-heatspot { fill: var(--sb-heat); }
.sb-bank-stressed { fill: rgba(170, 160, 60, 0.6); stroke: #7a6a22; }
.sb-bank-dead { fill: rgba(122, 88, 40, 0.7); stroke: #6b4a22; }
.sb-heat-lab { font-size: 11.5px; }
.sb-heatcurve { fill: none; stroke: var(--sb-heat); stroke-width: 2.6; }
.sb-nowline { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.sb-heatdot { fill: var(--sb-heat); stroke: var(--surface); stroke-width: 2; }
.legend .sw.sb-sw-deadbank { background: rgba(122, 88, 40, 0.7); border: 1px dashed #6b4a22; }
.legend .sw.sb-sw-stressbank { background: rgba(170, 160, 60, 0.6); border: 1px dashed #7a6a22; }
.legend .sw.sb-sw-heat { background: rgba(217, 72, 15, 0.45); }
.sb-evid { display: grid; gap: 12px; padding: 16px 18px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--sb-heat); }
.sb-evid > * { margin: 0; }
.sb-ev-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; }
.sb-ev-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sb-ev-list li { line-height: 1.5; }

/* ---------- screen 10: the jarrah forest and both maps ---------- */
.sb-raincloud circle { fill: #c9d3dc; }
.sb-raindrop { stroke: var(--sb-rain); stroke-width: 2; stroke-linecap: round; }
.sb-soil { fill: #b98a5a; }
.sb-hilltop { fill: none; stroke: #7a5a32; stroke-width: 2; }
.sb-deeproot { fill: none; stroke: #6b4a2b; stroke-width: 1.6; opacity: 0.7; }
.sb-trunk { fill: none; stroke: var(--sb-trunk); stroke-width: 4; stroke-linecap: round; }
.sb-canopy circle { fill: var(--sb-forest); }
.sb-trans { fill: none; stroke: #8fc1e3; stroke-width: 2; }
.sb-trans-h { fill: #8fc1e3; }
.sb-stream { fill: none; stroke: var(--sb-dam); stroke-linecap: round; }
.sb-damwater { fill: var(--sb-dam); }
.sb-damwall { fill: #9aa3a8; stroke: #5e676b; stroke-width: 1; }
.sb-pipe { stroke: #5e676b; stroke-width: 5; stroke-linecap: round; }
.sb-pipe-h { fill: #5e676b; }
.sb-log { fill: #c08a52; stroke: #6b4a22; stroke-width: 1.2; }
.sb-flowbar { fill: var(--viz-dim); }
.sb-flowbar.is-on { fill: var(--sb-dam); }
.legend .sw.sb-sw-rain { background: var(--sb-rain); }
.legend .sw.sb-sw-trans { background: #8fc1e3; }
.legend .sw.sb-sw-stream { background: var(--sb-dam); }
.sb-both { display: grid; gap: 12px; }
.sb-both > * { margin: 0; }
.sb-both-maps { display: grid; gap: 14px; }
.sb-both-fig { margin: 0; display: grid; gap: 6px; }
.sb-both-fig figcaption { font-weight: 800; }
.sb-both-sent { display: grid; gap: 6px; }
.sb-both-sent h4 { margin: 6px 0 0; font-size: 1rem; }
.sb-both-sent ol { margin: 0; padding-left: 1.5em; display: grid; gap: 3px; }
.sb-both [data-print-maps] { justify-self: start; }
@media print {
  body.sb-print-maps .site-head, body.sb-print-maps .site-foot, body.sb-print-maps .skip { display: none !important; }
  body.sb-print-maps .screen-inner > *:not(.sb-both) { display: none !important; }
  body.sb-print-maps .sb-both [data-print-maps], body.sb-print-maps .sb-both > .small { display: none !important; }
  body.sb-print-maps .sb-both-fig { break-inside: avoid; }
  body.sb-print-maps .sbm-snap { border: 1px solid #999; }
}

/* ---------- the concept map: the next step, the parking lot as cards, and new concepts and links arriving ---------- */
.sbm-guide { display: grid; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.sbm-guide > * { margin: 0; }
.sbm-step { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--sb-S); border-radius: 6px; padding: 2px 7px; margin-right: 4px; vertical-align: 1px; }
@media (min-width: 760px) {
  .sbm-bar { position: sticky; top: 8px; z-index: 6; }
  .sbm-bar > * { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
}
.sbm-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 14px 7px 9px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); }
.sbm-plus { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--sb-S); color: #fff; font-size: 1rem; font-weight: 800; line-height: 1; }
.sbm-park.is-next .sbm-chip:not(.is-old) { border-color: var(--sb-Sl); }
.sbm-node.is-target { outline: 2px dashed var(--sb-Sl); outline-offset: 3px; }
.sbm-empty { position: absolute; left: 50%; top: 200px; transform: translateX(-50%); width: 340px; margin: 0; text-align: center; color: var(--ink-2); font-size: 1.05rem; line-height: 1.45; pointer-events: none; }
.sbm-empty[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sbm-park.is-next .sbm-chip:not(.is-old) { animation: sbm-glow 1.8s ease-in-out infinite; }
  .sbm-node.is-target { animation: sbm-glow 1.8s ease-in-out infinite; }
  .sbm-node.is-new { animation: sbm-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
  .sbm-line.is-new { stroke-dasharray: 900; stroke-dashoffset: 900; animation: sbm-draw 0.8s ease-out forwards; }
  .sbm-line.is-hit { stroke-dasharray: 12 6; animation: sb-dash 0.9s linear infinite; }
}
@keyframes sbm-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); } 50% { box-shadow: 0 0 0 7px rgba(21, 128, 61, 0.3); } }
@keyframes sbm-pop { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes sbm-draw { to { stroke-dashoffset: 0; } }

/* ---------- movement in the models, only when the reader hasn't asked for less motion ----------
   sb-m-dash: water, nutrients or animals flowing along a line; sb-m-fall: rain and sinking flecks; sb-m-rise: vapour and bubbles;
   sb-m-sway: seagrass in the current (rotates about the base); sb-m-sway-s: trees; sb-m-bob: a boat; sb-m-swim: prawns;
   sb-m-crawl: snails; sb-m-glow: shafts of light; sb-m-ring: the ring round a chosen place. */
.sb-m-dash { stroke-dasharray: 10 8; }
.sb-m-sway, .sb-m-sway-s { transform-box: fill-box; transform-origin: 50% 100%; }
.sb-m-bob, .sb-m-ring { transform-box: fill-box; transform-origin: 50% 50%; }
.sb-shaft { fill: #ffffff; opacity: 0.1; }
.sb-pinring { fill: none; stroke: var(--sb-heat); stroke-width: 2.5; opacity: 0; }
.sb-streamflow { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 10; }
.sb-play.is-playing { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .sb-ldep { stroke-dasharray: 12 6; }
  .sb-m-dash, .sb-nutarrow, .sb-path, .sb-ldep, .sb-streamflow { animation: sb-dash 1.4s linear infinite; }
  .sb-m-fall { animation: sb-fall 1s linear infinite; }
  .sb-m-rain { animation: sb-rain 1s linear infinite; }
  .sb-m-rise { animation: sb-rise 2.8s ease-out infinite; }
  .sb-m-sway { animation: sb-sway 3.4s ease-in-out infinite; }
  .sb-m-sway-s { animation: sb-sway-s 4.6s ease-in-out infinite; }
  .sb-m-bob { animation: sb-bob 3.2s ease-in-out infinite; }
  .sb-m-swim { animation: sb-swim 2.6s ease-in-out infinite; }
  .sb-m-crawl { animation: sb-crawl 7s ease-in-out infinite; }
  .sb-m-glow { animation: sb-glow 3.6s ease-in-out infinite; }
  .sb-m-ring { animation: sb-ring 1.8s ease-out infinite; }
}
@keyframes sb-dash { to { stroke-dashoffset: -36; } }
@keyframes sb-rain { 0% { transform: translateY(-8px); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(72px); opacity: 0; } }
@keyframes sb-fall { 0% { transform: translateY(-16px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }
@keyframes sb-rise { 0% { transform: translateY(8px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
@keyframes sb-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes sb-sway-s { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes sb-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(2.5px) rotate(1.2deg); } }
@keyframes sb-swim { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -3px); } }
@keyframes sb-crawl { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes sb-glow { 0%, 100% { opacity: 0.05; } 50% { opacity: 0.2; } }
@keyframes sb-ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
