/* Ausgeology · Why do some volcanoes explode?: styles for this lesson's paired models, the FAR guide, the rule tester and the hazard map.
   The first block (the brief, number answers, the shared parts of the models) is carried over from Where would you drill?. */
:root {
  --vx-sea: #cfe3ec; --vx-land: #f1ead9; --vx-coast: #7fa3b5; --vx-sky: #e3eff6; --vx-sky-2: #f4f8fb;
  --vx-rock: #cdbfa9; --vx-rock-2: #a8957c; --vx-crust: #d8cdbb; --vx-basalt: #4a4f57; --vx-cone: #a99a86;
  --vx-ash: #8b8e94; --vx-ash-2: #b4b7bc; --vx-lava: #e8590c; --vx-lava-hi: #ffb703; --vx-steam: #ffffff;
  --vx-honey: #e09b14; --vx-water: #5eaee0; --vx-an: #a8471a; --vx-an-soft: #f6e2d4; --vx-tg: #1d6f8f; --vx-tg-soft: #d4e8ef;
  --vx-tet: rgba(108, 79, 168, 0.22); --vx-tet-line: #6c4fa8; --vx-bo: #262b33; --vx-nbo: #d9480f; --vx-oh: #1c7ed6;
  --vx-kitchen: #f6f1e7; --vx-wood: #c99a5b; --vx-wood-2: #a87a3e; --vx-steel: #8d969e; --vx-paper: #fbfcfa;
  --vx-melt: #ffe8cc; --vx-clip: #5c6670; --vx-hot: #b03024;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vx-sea: #17323f; --vx-land: #2a2f2b; --vx-coast: #4f8299; --vx-sky: #142530; --vx-sky-2: #18262e;
    --vx-rock: #4d4538; --vx-rock-2: #6d6050; --vx-crust: #3a342b; --vx-basalt: #1d2126; --vx-cone: #574d41;
    --vx-ash: #9ea1a7; --vx-ash-2: #c3c6ca; --vx-steam: #e6ebeb;
    --vx-honey: #f0b232; --vx-water: #6fbde8; --vx-an: #ec8a52; --vx-an-soft: #3d2416; --vx-tg: #6fb6d2; --vx-tg-soft: #163640;
    --vx-tet: rgba(185, 162, 236, 0.22); --vx-tet-line: #b9a2ec; --vx-bo: #e6ebeb; --vx-nbo: #ff8a4c; --vx-oh: #74c0fc;
    --vx-kitchen: #23292c; --vx-wood: #8a6a3e; --vx-wood-2: #6a4f2a; --vx-steel: #6d767e; --vx-paper: #182024;
    --vx-melt: #4a3424; --vx-clip: #b6c0c9; --vx-hot: #f07a6a;
  }
}
:root[data-theme="dark"] {
  --vx-sea: #17323f; --vx-land: #2a2f2b; --vx-coast: #4f8299; --vx-sky: #142530; --vx-sky-2: #18262e;
  --vx-rock: #4d4538; --vx-rock-2: #6d6050; --vx-crust: #3a342b; --vx-basalt: #1d2126; --vx-cone: #574d41;
  --vx-ash: #9ea1a7; --vx-ash-2: #c3c6ca; --vx-steam: #e6ebeb;
  --vx-honey: #f0b232; --vx-water: #6fbde8; --vx-an: #ec8a52; --vx-an-soft: #3d2416; --vx-tg: #6fb6d2; --vx-tg-soft: #163640;
  --vx-tet: rgba(185, 162, 236, 0.22); --vx-tet-line: #b9a2ec; --vx-bo: #e6ebeb; --vx-nbo: #ff8a4c; --vx-oh: #74c0fc;
  --vx-kitchen: #23292c; --vx-wood: #8a6a3e; --vx-wood-2: #6a4f2a; --vx-steel: #6d767e; --vx-paper: #182024;
  --vx-melt: #4a3424; --vx-clip: #b6c0c9; --vx-hot: #f07a6a;
}
:root { --wd-need: #1d6f8f; --wd-geo: #6a4fa3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wd-need: #6fb6d2; --wd-geo: #b9a2ec; } }
:root[data-theme="dark"] { --wd-need: #6fb6d2; --wd-geo: #b9a2ec; }

/* 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, what the geologist is after, and the field notebook */
.wd-brief, .wd-need, .wd-log { 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); max-width: 860px; }
.wd-brief > *, .wd-need > *, .wd-log > * { margin: 0; }
.wd-brief { border-left: 6px solid var(--ochre); }
.wd-brief > .label { color: var(--ochre); }
.wd-brief ul { padding-left: 1.3em; display: grid; gap: 4px; }
.wd-need { border-left: 6px solid var(--wd-need); }
.wd-need > .label { color: var(--wd-need); }
.wd-log { border-left: 6px solid var(--wd-geo); }
.wd-log > .label { color: var(--wd-geo); }
.wd-log .note textarea { min-height: 5.5em; }
/* how much help a screen gives */
.wd-helpm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.wd-helpm b { color: var(--ink); }
.wd-dots { display: inline-flex; gap: 4px; }
.wd-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--wd-geo); }
.wd-dots i.on { background: var(--wd-geo); }
.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); } }

/* 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: center; gap: 8px; font-weight: 650; cursor: pointer; min-height: 40px; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }

/* 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; }
.sh-axt { font-weight: 700; }
.sh-h4 { margin: 4px 0 0; font-size: 1.02rem; }
.wd-imgbox { position: relative; width: 100%; max-width: 760px; line-height: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.wd-imgbox canvas { display: block; width: 100%; height: auto; }
.wd-pix canvas { image-rendering: pixelated; }
.wd-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wd-over.is-picking { cursor: crosshair; }
.wd-over:focus-visible, .wd-plan svg:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.wd-imgfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; max-width: 760px; }
.wd-imgfoot p { margin: 0; }
.wd-views { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 760px; }
.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; }
.wd-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.wd-budget { font-weight: 700; color: var(--ink-2); font-size: 0.95rem; }
.wd-ramp { display: grid; grid-template-columns: auto minmax(120px, 220px); grid-template-rows: auto auto; column-gap: 10px; align-items: center; font-size: 0.85rem; color: var(--ink-2); }
.wd-ramp-t { grid-row: 1 / span 2; font-weight: 700; }
.wd-ramp-bar { height: 12px; border-radius: 6px; border: 1px solid var(--line); }
.wd-ramp-lo, .wd-ramp-hi { grid-row: 2; grid-column: 2; }
.wd-ramp-hi { justify-self: end; }
@media (max-width: 620px) { .lab.viz .slider-row .label { white-space: normal; } }
.slider-row output[for="dr-h0"] { min-width: 7.5em; }
.wd-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .wd-split { grid-template-columns: minmax(0, 1fr); } }
.wd-fig { display: grid; gap: 10px; min-width: 0; }
.wd-fig svg { width: 100%; height: auto; display: block; }
.wd-lab-call { font-family: var(--font-body); font-size: 13px; font-weight: 750; fill: #111; paint-order: stroke; stroke: rgba(255, 255, 255, 0.9); stroke-width: 4px; stroke-linejoin: round; }
.wd-chip-bg { fill: rgba(255, 255, 255, 0.86); stroke: rgba(0, 0, 0, 0.25); stroke-width: 1; }
.wd-scale-line { stroke: #111; stroke-width: 2.5; fill: none; }
.wd-scale-t { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: #111; }
.wd-north path { fill: #111; }
.wd-north-t { font-family: var(--font-mono); font-size: 8.5px; font-weight: 800; fill: #111; }

/* ---------- the FAR guide: Focus, Action, Reflection ---------- */
.vx-far { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); max-width: 860px; }
.vx-far-f { border-left-color: #1d6f8f; }
.vx-far-a { border-left-color: #b8501a; background: transparent; border-style: dashed; border-left-style: solid; }
.vx-far-r { border-left-color: #6a4fa3; }
.vx-far-step { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.25rem; line-height: 1; }
.vx-far-n { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-family: var(--font-mono); font-size: 0.95rem; }
.vx-far-f .vx-far-n { background: #1d6f8f; } .vx-far-a .vx-far-n { background: #b8501a; } .vx-far-r .vx-far-n { background: #6a4fa3; }
.vx-far-body { display: grid; gap: 12px; }
.vx-far-h { font-weight: 800; margin: 0; }
.vx-far-lead { margin: 0; max-width: 72ch; color: var(--ink-2); }
.vx-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.vx-fs legend { font-weight: 700; line-height: 1.4; padding: 0; margin-bottom: 6px; }
.vx-radios { display: grid; gap: 6px; }
.vx-radios-row { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.vx-radio { position: relative; }
.vx-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vx-radio label { display: block; min-height: 40px; padding: 9px 14px 9px 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; line-height: 1.4; position: relative; }
.vx-radio label::before { content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-2); background: var(--surface); }
.vx-radio input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.vx-radio input:checked + label::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4.5px, var(--surface) 5px); }
.vx-radio input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.vx-radio label:hover { border-color: var(--accent); }
.vx-know-desc { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--vx-an-soft); line-height: 1.5; max-width: 72ch; }
.vx-sort-wrap { display: grid; gap: 10px; max-width: 1080px; }
.vx-sort-wrap > p { margin: 0; }
.vx-sort .icard { border-left: 5px solid var(--vx-tg); }
.vx-sort .icard.is-done { border-left-color: var(--good); }
.vx-facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 14px; }
.vx-fac { align-items: flex-start; line-height: 1.35; padding: 4px 0; }
.vx-fac input { margin-top: 2px; flex: none; }

/* ---------- two models side by side: the everyday thing and the magma ---------- */
.vx-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .vx-pair { grid-template-columns: minmax(0, 1fr); } }
.vx-panel { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); min-width: 0; align-content: start; }
.vx-panel.vx-an { border-color: color-mix(in srgb, var(--vx-an) 55%, var(--line)); background: color-mix(in srgb, var(--vx-an-soft) 45%, var(--surface)); }
.vx-panel.vx-tg { border-color: color-mix(in srgb, var(--vx-tg) 55%, var(--line)); background: color-mix(in srgb, var(--vx-tg-soft) 45%, var(--surface)); }
.vx-panel > svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.vx-panel-h { margin: 0; font-weight: 750; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.3; }
.vx-tag-an, .vx-tag-tg { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #fff; }
.vx-tag-an { background: #a8471a; } .vx-tag-tg { background: #1d6f8f; }
.vx-panel .slider-row { grid-template-columns: 9.5em minmax(0, 1fr) 6.2em; }
.vx-panel .slider-row .label { white-space: normal; line-height: 1.25; }
@media (max-width: 520px) { .vx-panel .slider-row { grid-template-columns: minmax(0, 1fr) auto; } .vx-panel .slider-row input { grid-column: 1 / -1; grid-row: 2; } }
.vx-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-src { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); }
.vx-q { margin: 0; font-weight: 750; }
.wd-opt.vx-chip { font-size: 0.9rem; padding: 6px 10px; }

/* scene pieces shared by several models */
.vx-v-sky, .vx-sky-bg { fill: var(--vx-sky); }
.vx-v-rock { fill: var(--vx-rock); stroke: var(--vx-rock-2); stroke-width: 1.2; }
.vx-v-basalt { fill: var(--vx-basalt); }
.vx-v-joint { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; fill: none; }
.vx-v-top { stroke: #2b2f36; stroke-width: 2; }
.vx-v-t { font-family: var(--font-body); font-size: 13px; font-weight: 750; fill: var(--ink); }
.vx-v-t2 { font-family: var(--font-body); font-size: 11.5px; font-weight: 650; fill: var(--ink-2); }
.vx-v-lead { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
.vx-v-dim { stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 3 3; fill: none; }
.vx-v-cruise { stroke: var(--vx-tg); stroke-width: 1.5; stroke-dasharray: 6 4; }
.vx-v-cone { fill: var(--vx-cone); stroke: var(--vx-rock-2); stroke-width: 1; }
.vx-v-ash { fill: var(--vx-ash); stroke: color-mix(in srgb, var(--vx-ash) 70%, #000); stroke-width: 1; }
.vx-v-ash2 { fill: var(--vx-ash-2); opacity: 0.85; }
.vx-v-plane path { fill: var(--ink); }
.vx-v-conduit { stroke: var(--vx-lava); stroke-width: 2; fill: none; }
.vx-lava { stroke: none; }
.vx-lava-crust { fill: none; stroke: #5c1a0b; stroke-width: 1.6; stroke-dasharray: 5 3; opacity: 0.7; }
.vx-k-bg { fill: var(--vx-kitchen); }
.vx-k-board { fill: var(--vx-wood); stroke: var(--vx-wood-2); stroke-width: 1.5; }
.vx-k-edge { fill: var(--vx-wood-2); }
.vx-k-lane { stroke: var(--vx-wood-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.vx-k-t { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--ink-2); }
.vx-k-t2 { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; fill: var(--ink-2); }
.vx-k-lab { font-family: var(--font-body); font-size: 13px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: var(--vx-kitchen); stroke-width: 3px; }
.vx-k-angle { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.vx-k-honey { fill: var(--vx-honey); stroke: #8a5a0a; stroke-width: 1; }
.vx-k-water { fill: var(--vx-water); fill-opacity: 0.75; stroke: #1c6aa0; stroke-width: 1; }
.vx-arrowhead { fill: var(--ink); }

/* ---------- screen 1: the map ---------- */
.vx-map { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .vx-map { grid-template-columns: minmax(0, 1fr); } }
.vx-map-fig svg { width: 100%; height: auto; display: block; max-width: 520px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); }
.vx-map-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.vx-sea { fill: var(--vx-sea); }
.vx-land { fill: var(--vx-land); stroke: var(--vx-coast); stroke-width: 1.1; }
.vx-hatch-l { stroke: color-mix(in srgb, var(--vx-tg) 45%, transparent); stroke-width: 1.4; }
.vx-vaac { opacity: 0.8; }
.vx-vaac-t { font-family: var(--font-body); font-weight: 750; fill: var(--vx-tg); paint-order: stroke; stroke: var(--vx-sea); stroke-width: 3px; }
.vx-route { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.55; }
.vx-route.is-on { stroke: var(--vx-hot); opacity: 1; stroke-width: 2.4; }
.vx-route-t { font-family: var(--font-body); font-weight: 800; fill: var(--vx-hot); paint-order: stroke; stroke: var(--vx-land); stroke-width: 3px; }
.vx-route-t2 { font-family: var(--font-body); font-weight: 650; fill: var(--ink-2); paint-order: stroke; stroke: var(--vx-land); stroke-width: 3px; }
.vx-place circle { fill: var(--ink); }
.vx-place-volc path { fill: #7a2e12; stroke: #fff; stroke-width: 0.8; }
.vx-place-t { font-family: var(--font-body); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--vx-land); stroke-width: 3px; }
.vx-epin { cursor: pointer; }
.vx-epin-dot { fill: #fff; stroke: var(--ink); stroke-width: 2.4; }
.vx-epin.is-sel .vx-epin-dot { fill: var(--vx-hot); stroke: var(--ink); }
.vx-epin-t { font-family: var(--font-body); font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: var(--vx-land); stroke-width: 3.5px; }
.vx-plume { fill: var(--vx-ash); stroke: color-mix(in srgb, var(--vx-ash) 60%, #000); stroke-width: 0.8; }
.vx-lavaflow { fill: var(--vx-lava); stroke: #7a2e12; stroke-width: 0.8; }
.vx-pick2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.vx-ebtn { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; line-height: 1.3; }
.vx-ebtn span { font-size: 0.88rem; color: var(--ink-2); }
.vx-ebtn:hover { border-color: var(--accent); }
.vx-ebtn[aria-pressed="true"] { border-color: var(--vx-hot); box-shadow: inset 0 0 0 1.5px var(--vx-hot); background: color-mix(in srgb, var(--vx-hot) 9%, var(--surface)); }
.vx-ebtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vx-card { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.5; }
.vx-card p { margin: 0; }
.vx-card-h { font-size: 1.05rem; }
.vx-card-sub { font-weight: 700; color: var(--vx-hot); }
.vx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 12px; margin: 0; }
.vx-facts div { display: grid; gap: 1px; }
.vx-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); }
.vx-facts dd { margin: 0; font-size: 0.95rem; font-weight: 650; }
.vx-vignette svg { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.vx-vignette p { margin: 6px 0 0; }

/* ---------- screen 2: eruption columns and the VEI ---------- */
.vx-vei { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .vx-vei { grid-template-columns: minmax(0, 1fr); } }
.vx-vei-fig svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.vx-vei-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.vx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-cruise { stroke: var(--vx-tg); stroke-width: 1.6; stroke-dasharray: 6 4; }
.vx-cruise-t { font-family: var(--font-body); font-size: 11.5px; font-weight: 750; fill: var(--vx-tg); paint-order: stroke; stroke: var(--vx-sky); stroke-width: 3px; }
.vx-col { cursor: pointer; }
.vx-col:focus { outline: none; }
.vx-col-hit { fill: transparent; }
.vx-col:focus-visible .vx-col-hit { stroke: var(--focus); stroke-width: 3; }
.vx-col.is-sel .vx-col-hit { fill: color-mix(in srgb, var(--vx-hot) 10%, transparent); }
.vx-col-cone { fill: var(--vx-cone); }
.vx-col-ash { fill: var(--vx-ash); stroke: color-mix(in srgb, var(--vx-ash) 60%, #000); stroke-width: 1; }
.vx-col.is-sel .vx-col-ash { fill: color-mix(in srgb, var(--vx-ash) 70%, var(--vx-hot)); }
.vx-col-fountain { fill: var(--vx-lava); }
.vx-col-small, .vx-col-v { font-family: var(--font-body); font-size: 11.5px; font-weight: 750; fill: var(--ink); }
.vx-col-lab { font-family: var(--font-body); font-size: 11.5px; font-weight: 750; fill: var(--ink); }
.vx-col-yr { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); }
.vx-col-vei { font-family: var(--font-mono); font-size: 11px; font-weight: 800; fill: var(--bad); }
.vx-col-vei.ok { fill: var(--good); }
.vx-veibtns { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-veib { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-family: var(--font-mono); font-weight: 800; cursor: pointer; }
.vx-veib:hover { border-color: var(--accent); }
.vx-veib[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vx-veib:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vx-ladder-wrap > summary { cursor: pointer; font-weight: 750; padding: 6px 0; }
.vx-ladder tr.is-on > * { background: var(--accent-soft); }
.vx-ladder th, .vx-ladder td { padding: 7px 12px; font-size: 0.95rem; }

/* ---------- screen 3: honey and lava ---------- */
.vx-scale { display: grid; gap: 4px; }
.vx-scale-h { margin: 0; font-weight: 750; }
.vx-scale svg { width: 100%; height: auto; display: block; max-width: 820px; }
.vx-sc-dot { fill: var(--ink-2); }
.vx-sc-t { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--ink-2); }
.vx-sc-honey { fill: var(--vx-honey); stroke: #6b4508; stroke-width: 1; }
.vx-sc-lava { fill: var(--vx-lava); stroke: #6b1f08; stroke-width: 1; }

/* ---------- screen 4: paperclips and the silica network ---------- */
.vx-box { fill: var(--vx-paper); stroke: var(--line); stroke-width: 1.5; }
.vx-clip { fill: none; stroke: var(--vx-clip); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vx-clip.is-pulled { stroke: var(--vx-an); stroke-width: 2.8; }
.vx-melt-bg { fill: var(--vx-melt); }
.vx-tet { fill: var(--vx-tet); stroke: var(--vx-tet-line); stroke-width: 1.2; }
.vx-tet.is-pulled { fill: color-mix(in srgb, var(--vx-tg) 45%, transparent); stroke: var(--vx-tg); stroke-width: 1.6; }
.vx-si { fill: var(--vx-tet-line); }
.vx-bo { fill: var(--vx-bo); }
.vx-nbo { fill: var(--vx-nbo); }
.vx-oh { fill: var(--vx-oh); }
.legend .sw.vx-sw-tet { background: var(--vx-tet); border: 1.5px solid var(--vx-tet-line); }
.legend .sw.vx-sw-bo { background: var(--vx-bo); }
.legend .sw.vx-sw-nbo { background: var(--vx-nbo); }
.legend .sw.vx-sw-oh { background: var(--vx-oh); }

/* ---------- screen 5: the bottle and the rising magma ---------- */
.vx-btl-glass { fill: color-mix(in srgb, var(--vx-sky) 60%, transparent); stroke: var(--ink-2); stroke-width: 2; }
.vx-btl-drink { fill: #b5651d; opacity: 0.82; }
.vx-foam { fill: #f5e6c8; }
.vx-bub-drink { fill: rgba(255, 255, 255, 0.75); stroke: rgba(255, 255, 255, 0.95); stroke-width: 0.6; }
.vx-btl-cap { fill: #c0392b; stroke: #7a1f15; stroke-width: 1.5; }
.vx-gauge { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.5; }
.vx-gauge-fill { fill: var(--vx-tg); }
.vx-crust { fill: var(--vx-crust); }
.vx-conduit-wall { fill: none; stroke: var(--vx-rock-2); stroke-width: 1.5; }
.vx-conduit { fill: color-mix(in srgb, var(--vx-lava) 35%, var(--vx-crust)); }
.vx-conduit-run { fill: color-mix(in srgb, var(--vx-lava) 55%, var(--vx-crust)); }
.vx-conduit-mid { fill: color-mix(in srgb, var(--vx-lava) 38%, var(--vx-crust)); }
.vx-conduit-stk { fill: color-mix(in srgb, #8b3a1a 45%, var(--vx-crust)); }
.vx-line-bub { stroke: var(--vx-tg); stroke-width: 2; stroke-dasharray: 5 3; }
.vx-line-frag { stroke: var(--vx-hot); stroke-width: 2; stroke-dasharray: 2 3; }
.vx-parcel { stroke: #5c1a0b; stroke-width: 1.5; }
.vx-parcel-b { fill: #f08c00; } .vx-parcel-a { fill: #e8590c; } .vx-parcel-r { fill: #c2410c; }
.vx-bub { fill: rgba(255, 255, 255, 0.85); stroke: rgba(40, 40, 40, 0.45); stroke-width: 0.7; }
.vx-holds { fill: none; stroke: var(--vx-tg); stroke-width: 2.6; }
.vx-has { stroke: var(--vx-hot); stroke-width: 2; stroke-dasharray: 6 3; }
.vx-holds-dot { fill: var(--vx-tg); stroke: #fff; stroke-width: 1.5; }
.vx-holds-t { font-family: var(--font-body); font-size: 11.5px; font-weight: 750; fill: var(--vx-tg); }
.vx-has-t { font-family: var(--font-body); font-size: 11.5px; font-weight: 750; fill: var(--vx-hot); }

/* ---------- screen 6: soup, porridge and the conduit ---------- */
.vx-stove { fill: var(--vx-steel); }
.vx-flame { fill: none; stroke: #f76707; stroke-width: 2.4; stroke-linecap: round; }
.vx-pot { fill: var(--vx-steel); stroke: #4a525a; stroke-width: 1.5; }
.vx-soup { fill: #e07a1f; }
.vx-porridge { fill: #e9d8b4; }
.vx-bub-soup { fill: rgba(255, 236, 200, 0.9); stroke: rgba(120, 60, 0, 0.5); stroke-width: 0.6; }
.vx-bub-por { fill: rgba(255, 252, 240, 0.85); stroke: rgba(120, 100, 60, 0.6); stroke-width: 0.8; }
.vx-drop { fill: #e9d8b4; stroke: rgba(120, 100, 60, 0.6); stroke-width: 0.6; }
.vx-frag { fill: var(--vx-ash); }
.vx-fountain { fill: none; stroke: var(--vx-lava-hi); stroke-width: 2.4; stroke-linecap: round; }
.vx-dome { fill: #6b3a24; stroke: #3d1f12; stroke-width: 1.5; }
.vx-dome-crack { stroke: var(--vx-lava-hi); stroke-width: 1.6; fill: none; }
.vx-blob { fill: var(--vx-lava); stroke: #6b1f08; stroke-width: 0.8; }

/* ---------- screen 7: the pan and magma meeting water ---------- */
.vx-panbody { fill: #3d434a; stroke: #1f2327; stroke-width: 1.5; }
.vx-panbody.is-hot { fill: #4a3b37; }
.vx-panhandle { stroke: #1f2327; stroke-width: 8; stroke-linecap: round; }
.vx-wdrop { fill: var(--vx-water); stroke: #1c6aa0; stroke-width: 0.8; }
.vx-steam { fill: var(--vx-steam); stroke: rgba(120, 140, 150, 0.4); stroke-width: 0.6; }
.vx-sea2 { fill: var(--vx-sea); }
.vx-jet { stroke: var(--vx-steam); stroke-width: 3; stroke-linecap: round; opacity: 0.9; }
.vx-pillow { fill: #3b3f45; stroke: #1d2024; stroke-width: 1; }
.vx-aquifer { fill: color-mix(in srgb, var(--vx-water) 40%, var(--vx-crust)); }
.vx-crater { fill: var(--vx-rock-2); }
.vx-block { fill: #5d544a; }
.vx-steam2 { fill: var(--vx-steam); stroke: #a3b1b8; stroke-width: 1.3; opacity: 0.96; }
.vx-ice { fill: #e7f5ff; stroke: #a5d8ff; stroke-width: 1.2; }
.vx-melt { fill: var(--vx-water); opacity: 0.85; }

/* ---------- screen 8: the rule tester ---------- */
.vx-rule { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .vx-rule { grid-template-columns: minmax(0, 1fr); } }
.vx-rule-set { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); position: sticky; top: 10px; }
@media (max-width: 900px) { .vx-rule-set { position: static; } }
.vx-rule-set .slider-row { grid-template-columns: minmax(0, 1fr) auto; }
.vx-rule-set .slider-row input { grid-column: 1 / -1; grid-row: 2; }
.vx-rule-say { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); line-height: 1.5; }
.vx-score { margin: 0; font-size: 1.1rem; }
.vx-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vx-rcard { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); align-content: start; }
.vx-rcard.is-right { border-color: var(--good); }
.vx-rcard.is-wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); }
.vx-rcard p { margin: 0; line-height: 1.4; }
.vx-rc-h span { color: var(--ink-2); font-family: var(--font-mono); font-size: 0.85rem; }
.vx-rcard .vx-facts { grid-template-columns: minmax(0, 1fr); }
.vx-rc-what { font-size: 0.94rem; }
.vx-rc-res { font-size: 0.95rem; }
.vx-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 800; color: #fff; margin-right: 4px; }
.is-right .vx-badge { background: var(--good); } .is-wrong .vx-badge { background: var(--bad); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vx-badge { color: #111517; } }
:root[data-theme="dark"] .vx-badge { color: #111517; }
.vx-size { display: grid; gap: 6px; }
.vx-size svg { width: 100%; height: auto; display: block; max-width: 640px; }
.vx-sz-dot { fill: var(--viz-2); stroke: var(--surface); stroke-width: 2; }
.vx-sz-t { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--ink); }

/* ---------- screen 9: the evidence and the hazard map ---------- */
.vx-ev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .vx-ev { grid-template-columns: minmax(0, 1fr); } }
.vx-ev-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.vx-ev-col svg { width: 100%; height: auto; display: block; max-width: 460px; }
.vx-ev-col p { margin: 0; }
.vx-tl-box { stroke: var(--ink-2); stroke-width: 1; }
.vx-tl-ash .vx-tl-box { fill: #e9e7e1; } .vx-tl-lava .vx-tl-box { fill: #4e4a47; } .vx-tl-pf .vx-tl-box { fill: #b8a48c; }
.vx-tl-dot { fill: #6d6a63; }
.vx-tl-blk { fill: #5b4d3d; }
.vx-tl-t { font-family: var(--font-body); font-size: 12px; font-weight: 750; fill: var(--ink); }
.vx-tl-t2 { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.vx-tl-line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.vx-tl-exp { fill: var(--vx-hot); stroke: var(--surface); stroke-width: 1.5; }
.vx-tl-eff { fill: var(--vx-lava-hi); stroke: #7a4a00; stroke-width: 1.2; }
.vx-q-bar { fill: var(--viz-1); opacity: 0.8; }
.vx-q-dep { fill: var(--viz-2); stroke: var(--surface); stroke-width: 1.2; }
.vx-q-depl { fill: none; stroke: var(--viz-2); stroke-width: 1.6; }
.vx-step { display: grid; gap: 8px; max-width: 980px; }
.vx-step > p { margin: 0; }
.vx-scs { display: grid; gap: 6px; }
.vx-layers { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.vx-sw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; margin-right: 2px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, 0.35); }
.vx-sw-lava { background: rgb(255, 140, 0); } .vx-sw-pf { background: rgb(196, 48, 32); } .vx-sw-ash { background: rgb(150, 150, 150); }
.vx-isle { max-width: 820px; }
.vx-isle canvas { image-rendering: auto; }
.vx-vent path { fill: #7a2e12; stroke: #fff; stroke-width: 1.5; }
.vx-runway { stroke: #2b2f36; stroke-width: 5; stroke-linecap: round; }
.vx-road { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 7 4; opacity: 0.9; }
.vx-pl circle { fill: #ffe14d; stroke: #111; stroke-width: 2; }
.vx-pl-n { font-family: var(--font-mono); font-weight: 800; fill: #111; }
.vx-wind-l { stroke: #111; stroke-width: 3; }
.vx-wind-h { fill: #111; }
.vx-ztable td { text-align: center; }
.vx-ztable th .small { display: block; font-weight: 400; }
.vx-ztable input { width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }

/* ---------- screen 10: the briefing card ---------- */
.vx-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 760px) { .vx-brief { grid-template-columns: minmax(0, 1fr); } }
.vx-bc { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); align-content: start; min-width: 0; }
.vx-bc p { margin: 0; }
.vx-bc-wide { grid-column: 1 / -1; }
.vx-bc .table-wrap { background: var(--surface); }
.vx-bond { stroke: var(--vx-bo); stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.vx-bond.is-pulled { stroke: var(--vx-tg); opacity: 1; stroke-width: 2.6; }
.wd-opt[aria-pressed="true"] .small { color: inherit; opacity: 0.85; }
.vx-stream { fill: none; stroke: #3d84b5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.vx-tjet { fill: none; stroke: #3b3d42; stroke-width: 3.6; stroke-linecap: round; opacity: 0.8; }
.vx-cloud-edge { fill: #a3b1b8; }
.vx-cloud-fill { fill: var(--vx-steam); }
