/* Ausgeology · Can pollution cool the planet?: styles for this lesson's votes, refutations and models.
   The first block (the brief, number answers, the shared parts of the models) is carried over from Why do some volcanoes explode?. */
:root {
  --cp-sky: #cfe6f3; --cp-sky-2: #f3f8fb; --cp-space: #1d2b45; --cp-space-ink: #e7eefc;
  --cp-sun: #f2b705; --cp-sun-2: #ffd85c; --cp-ir: #d9480f; --cp-gas: #7b5cc4; --cp-gas-soft: rgba(123, 92, 196, 0.16);
  --cp-haze: #8a8f98; --cp-sulfate: #f4f7fb; --cp-soot: #22252b; --cp-smoke: #9a9ea6; --cp-dust: #c9a46b;
  --cp-soil: #b8643a; --cp-soil-2: #8f4a2a; --cp-bush: #6f8b5b; --cp-bush-2: #4f6a3e; --cp-crop: #7cb342; --cp-stubble: #d8bf6a;
  --cp-sea: #2e6f8e; --cp-sea-dark: #17323f; --cp-cloud: #ffffff; --cp-rain: #2f80c1; --cp-rain-soft: rgba(47, 128, 193, 0.55);
  --cp-snow: #f7fbff; --cp-ice: #dcecf7; --cp-dirty: #8c7a62; --cp-warm: #c92a2a; --cp-cool: #1971c2;
  --cp-land: #efe6d2; --cp-coast: #8a7a5a; --cp-wood: #8a5a2b; --cp-flame: #f76707; --cp-flame-2: #ffd43b;
  --cp-tank: #fbfcfa; --cp-co2: #7b5cc4; --cp-part: #e8590c; --cp-paper: #fffdf6;
  --cp-wrong: #b3261e; --cp-half: #9a6700; --cp-vote: #1d6f8f; --cp-refute: #b4501c; --cp-revote: #6a4fa3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cp-sky: #16303f; --cp-sky-2: #1b2a33; --cp-space: #0b1220; --cp-space-ink: #c9d6f0;
    --cp-sun: #f5c518; --cp-sun-2: #ffd85c; --cp-ir: #ff8a4c; --cp-gas: #b9a2ec; --cp-gas-soft: rgba(185, 162, 236, 0.18);
    --cp-haze: #a3a8b0; --cp-sulfate: #e9eef5; --cp-soot: #0d0f12; --cp-smoke: #7d828a; --cp-dust: #a88a58;
    --cp-soil: #8c4c2c; --cp-soil-2: #6b391f; --cp-bush: #56704a; --cp-bush-2: #3f5534; --cp-crop: #5f9134; --cp-stubble: #a8914c;
    --cp-sea: #1f4e65; --cp-sea-dark: #0e1f28; --cp-cloud: #e6ebeb; --cp-rain: #5aa6e0; --cp-rain-soft: rgba(90, 166, 224, 0.5);
    --cp-snow: #dfe8ef; --cp-ice: #b9cfdd; --cp-dirty: #6e604c; --cp-warm: #ff6b6b; --cp-cool: #74c0fc;
    --cp-land: #2a2f2b; --cp-coast: #6e6550; --cp-wood: #6b4521; --cp-tank: #182024; --cp-co2: #b9a2ec; --cp-part: #ff8a4c; --cp-paper: #1e2529;
    --cp-wrong: #ff8a80; --cp-half: #f0b232; --cp-vote: #6fb6d2; --cp-refute: #ec8a52; --cp-revote: #b9a2ec;
  }
}
:root[data-theme="dark"] {
  --cp-sky: #16303f; --cp-sky-2: #1b2a33; --cp-space: #0b1220; --cp-space-ink: #c9d6f0;
  --cp-sun: #f5c518; --cp-sun-2: #ffd85c; --cp-ir: #ff8a4c; --cp-gas: #b9a2ec; --cp-gas-soft: rgba(185, 162, 236, 0.18);
  --cp-haze: #a3a8b0; --cp-sulfate: #e9eef5; --cp-soot: #0d0f12; --cp-smoke: #7d828a; --cp-dust: #a88a58;
  --cp-soil: #8c4c2c; --cp-soil-2: #6b391f; --cp-bush: #56704a; --cp-bush-2: #3f5534; --cp-crop: #5f9134; --cp-stubble: #a8914c;
  --cp-sea: #1f4e65; --cp-sea-dark: #0e1f28; --cp-cloud: #e6ebeb; --cp-rain: #5aa6e0; --cp-rain-soft: rgba(90, 166, 224, 0.5);
  --cp-snow: #dfe8ef; --cp-ice: #b9cfdd; --cp-dirty: #6e604c; --cp-warm: #ff6b6b; --cp-cool: #74c0fc;
  --cp-land: #2a2f2b; --cp-coast: #6e6550; --cp-wood: #6b4521; --cp-tank: #182024; --cp-co2: #b9a2ec; --cp-part: #ff8a4c; --cp-paper: #1e2529;
  --cp-wrong: #ff8a80; --cp-half: #f0b232; --cp-vote: #6fb6d2; --cp-refute: #ec8a52; --cp-revote: #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 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.cp-ki-body { font-size: 1rem; font-weight: 400; line-height: 1.55; }
.screen-head.cp-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; }
.cp-ctl { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cp-ctl .slider-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.cp-ctl .slider-row .label { white-space: normal; line-height: 1.25; }
.cp-ctl .slider-row input { grid-column: 1 / -1; grid-row: 2; }
.cp-ctl .slider-row output { font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-q { margin: 0; font-weight: 750; }
.cp-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cp-split { grid-template-columns: minmax(0, 1fr); } }
.cp-fig { display: grid; gap: 8px; min-width: 0; }
.cp-fig svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.cp-fig .cp-cap { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.cp-fig.cp-chart svg { max-width: 760px; }
.cp-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.cp-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cp-swipe { display: none; margin: 0; font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 620px) { .cp-swipe { display: block; } }
@media (max-width: 620px) { .cp-scroll > svg { min-width: 560px; } .cp-scroll.cp-map > svg { min-width: 470px; } .cp-scroll.cp-tanks > svg { min-width: 520px; } }
.cp-fig.cp-tanks svg { max-width: 680px; }
.cp-fig.cp-gaugebox svg { max-width: 300px; }
.cp-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); }
.cp-facts div { display: grid; gap: 1px; }
.cp-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); }
.cp-facts dd { margin: 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-sub { margin: 6px 0 0; font-size: 1.02rem; }
.legend .sw.cp-sw-gas { background: var(--cp-gas); }
.legend .sw.cp-sw-sun { background: var(--cp-sun); }
.legend .sw.cp-sw-ir { background: var(--cp-ir); }
.legend .sw.cp-sw-part { background: var(--cp-part); }
.legend .sw.cp-sw-co2 { background: var(--cp-co2); }
.legend .sw.cp-sw-rain { background: var(--cp-rain); }
.legend .sw.cp-sw-sahel { background: repeating-linear-gradient(135deg, var(--cp-dust) 0 3px, transparent 3px 6px); border: 1px solid var(--cp-dirty); }
.legend .sw.cp-sw-range { background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.legend .sw.cp-sw-mid { background: var(--ink); border-radius: 50%; }
.legend .sw.cp-sw-hid { background: repeating-linear-gradient(135deg, var(--cp-warm) 0 2px, transparent 2px 6px); border: 1px dashed var(--cp-warm); }
.legend .sw.cp-sw-ant { background: var(--viz-1); height: 4px; border-radius: 2px; }
.legend .sw.cp-sw-grn { background: var(--viz-2); height: 4px; border-radius: 2px; }

/* ---------- votes and refutations ---------- */
.cp-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.cp-fs legend { font-weight: 700; line-height: 1.4; padding: 0; margin-bottom: 6px; }
.cp-radios { display: grid; gap: 6px; }
.cp-radios-row { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.cp-radio { position: relative; }
.cp-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-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; }
.cp-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); }
.cp-radio input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.cp-radio input:checked + label::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4.5px, var(--surface) 5px); }
.cp-radio input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.cp-radio label:hover { border-color: var(--accent); }
.cp-vote, .cp-refute { 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(--cp-vote); max-width: 860px; }
.cp-vote > *, .cp-refute > * { margin: 0; }
.cp-revote { border-left-color: var(--cp-revote); }
.cp-refute { border-left-color: var(--cp-refute); }
.cp-step { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.2rem; line-height: 1; }
.cp-step-n { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: #1d6f8f; font-family: var(--font-mono); font-size: 0.95rem; }
.cp-step-r { background: #b4501c; }
.cp-step-v2 { background: #6a4fa3; }
.cp-idea-lab { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cp-idea { font-family: var(--font-display); font-weight: 750; font-size: 1.32rem; line-height: 1.3; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); max-width: 46ch; }
.cp-idea-sm { font-size: 1.08rem; padding: 10px 14px; }
.cp-gate { padding: 9px 12px; border-radius: 10px; background: var(--ochre-soft); font-weight: 650; line-height: 1.4; }
.cp-rf { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: rf; }
.cp-rf > li { position: relative; display: grid; gap: 6px; padding: 4px 0 16px 44px; counter-increment: rf; }
.cp-rf > li:last-child { padding-bottom: 0; }
.cp-rf > li::before { content: counter(rf); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 800; font-size: 0.9rem; color: #fff; background: var(--good); }
.cp-rf > li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.cp-rf > li:last-child::after { display: none; }
.cp-rf > li.cp-rf-myth::before { background: var(--bad); }
.cp-rf > li.cp-rf-why::before { background: #6a4fa3; }
.cp-rf p { margin: 0; line-height: 1.55; max-width: 72ch; }
.cp-rf .cp-rf-lab { font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.3; }
.cp-rf-fact > p:not(.cp-rf-lab), .cp-rf-again > p:not(.cp-rf-lab) { font-weight: 650; }
.cp-verdict { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.cp-v-wrong { background: #b3261e; }
.cp-v-half { background: #8a5a00; }
.cp-checklist { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.cp-checklist .chk { font-weight: 600; }
.cp-preview { display: grid; gap: 8px; }
.cp-preview > .label { margin: 0; }
.cp-paper { padding: 18px 20px; border-radius: 6px; background: var(--cp-paper); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 64ch; font-family: Georgia, "Times New Roman", serif; line-height: 1.55; }
.cp-paper > * { margin: 0 0 10px; }
.cp-paper > :last-child { margin-bottom: 0; }
.cp-paper .cp-col { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.cp-paper h4 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.cp-paper .cp-empty { color: var(--ink-2); font-style: italic; }
.cp-paper .cp-by { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- screen 1: gases and particles ---------- */
.cp-space { fill: var(--cp-space); }
.cp-space-t { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; fill: var(--cp-space-ink); }
.cp-skyfill { fill: var(--cp-sky); }
.cp-sky-top { stop-color: var(--cp-sky); }
.cp-sky-bot { stop-color: var(--cp-sky-2); }
.cp-sunc { fill: var(--cp-sun); stroke: #c78a00; stroke-width: 1.5; }
.cp-sunray { stroke: var(--cp-sun); stroke-width: 3; stroke-linecap: round; }
.cp-gasband { fill: var(--cp-gas-soft); stroke: var(--cp-gas); stroke-width: 1; stroke-dasharray: 4 4; }
.cp-mol { fill: var(--cp-gas); }
.cp-mol-c { fill: #3b3f45; }
.cp-hazeband { fill: rgba(138, 143, 152, 0.12); stroke: var(--cp-haze); stroke-width: 1; stroke-dasharray: 4 4; }
.cp-pt { stroke: rgba(0, 0, 0, 0.45); stroke-width: 0.8; }
.cp-pt-b { fill: var(--cp-sulfate); }
.cp-pt-d { fill: var(--cp-soot); stroke: rgba(255, 255, 255, 0.4); }
.cp-ground { fill: var(--cp-soil); }
.cp-ground-2 { fill: var(--cp-soil-2); }
.cp-grass { fill: #b9a75a; }
.cp-tree-t { stroke: #5b3b1f; stroke-width: 3; stroke-linecap: round; }
.cp-tree-c { fill: var(--cp-bush); stroke: var(--cp-bush-2); stroke-width: 1; }
.cp-plant { fill: #8d939b; stroke: #4c5158; stroke-width: 1.2; }
.cp-plant-2 { fill: #a7adb5; stroke: #4c5158; stroke-width: 1.2; }
.cp-plume { fill: var(--cp-smoke); }
.cp-flame { fill: var(--cp-flame); }
.cp-flame-2 { fill: var(--cp-flame-2); }
.cp-sunarrow { fill: none; stroke: var(--cp-sun); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.cp-sunhead { fill: var(--cp-sun); }
.cp-irarrow { fill: none; stroke: var(--cp-ir); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cp-irhead { fill: var(--cp-ir); }
.cp-flow { stroke-dasharray: 10 6; animation: cp-flow 1.4s linear infinite; }
@keyframes cp-flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .cp-flow { animation: none; stroke-dasharray: none; } }
.cp-thermo-tube { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.cp-thermo-red { fill: var(--cp-warm); }
.cp-thermo-blue { fill: var(--cp-cool); }
.cp-thermo-tick { stroke: var(--ink-2); stroke-width: 1.2; }
.cp-thermo-zero { stroke: var(--ink); stroke-width: 2; }
.cp-v-t { font-family: var(--font-body); font-size: 12.5px; font-weight: 750; fill: var(--ink); paint-order: stroke; stroke: var(--cp-sky-2); stroke-width: 3px; stroke-linejoin: round; }
.cp-v-t2 { font-family: var(--font-body); font-size: 11.5px; font-weight: 650; fill: var(--ink-2); paint-order: stroke; stroke: var(--cp-sky-2); stroke-width: 3px; stroke-linejoin: round; }
.cp-v-big { font-family: var(--font-display); font-size: 22px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.cp-v-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink-2); }
.cp-v-gl { font-family: var(--font-body); font-size: 12.5px; font-weight: 750; fill: #fff; }
.legend .sw.cp-sw-haze { background: var(--cp-haze); }

/* ---------- screen 2: the two tanks ---------- */
.cp-tank-wall { fill: var(--cp-tank); stroke: var(--ink-2); stroke-width: 2.5; }
.cp-tank-p { fill: color-mix(in srgb, var(--cp-part) 55%, var(--cp-tank)); }
.cp-tank-c { fill: color-mix(in srgb, var(--cp-co2) 50%, var(--cp-tank)); }
.cp-tank-line { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 5 4; }
.cp-pipe { fill: none; stroke: var(--ink-2); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cp-drop { fill: var(--cp-rain); }
.cp-stack { fill: #7d838b; stroke: #3d4248; stroke-width: 1.2; }
.cp-curve-p { fill: none; stroke: var(--cp-part); stroke-width: 3; }
.cp-curve-c { fill: none; stroke: var(--cp-co2); stroke-width: 3; }
.cp-grid { stroke: var(--viz-grid); stroke-width: 1; }
.cp-axis { stroke: var(--viz-axis); stroke-width: 1.4; }
.cp-tick { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); }
.cp-axt { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--ink-2); }
.cp-now { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 4 3; }
.cp-dot-p { fill: var(--cp-part); stroke: var(--surface); stroke-width: 2; }
.cp-dot-c { fill: var(--cp-co2); stroke: var(--surface); stroke-width: 2; }
.cp-marks { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-opt.cp-chip { font-size: 0.9rem; padding: 6px 10px; min-height: 36px; }

/* ---------- screen 3: the beam and the forcing bars ---------- */
.cp-beam { fill: var(--cp-sun); opacity: 0.9; }
.cp-beam-up { fill: var(--cp-sun-2); opacity: 0.95; stroke: #c78a00; stroke-width: 1; }
.cp-layer { fill: rgba(120, 120, 130, 0.12); stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; }
.cp-heat { fill: none; stroke: var(--cp-warm); stroke-width: 2.2; stroke-linecap: round; }
.cp-bar-hit { fill: transparent; }
.cp-bar { cursor: pointer; }
.cp-bar:focus { outline: none; }
.cp-bar:focus-visible .cp-bar-hit { stroke: var(--focus); stroke-width: 3; }
.cp-bar.is-sel .cp-bar-hit { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.cp-bar-cool { fill: var(--cp-cool); }
.cp-bar-warm { fill: var(--cp-warm); }
.cp-bar-zero { fill: var(--ink-2); }
.cp-whisk { stroke: var(--ink); stroke-width: 1.8; }
.cp-best { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.cp-zero { stroke: var(--ink); stroke-width: 1.6; }
.cp-bar-t { font-family: var(--font-body); font-size: 12.5px; font-weight: 750; fill: var(--ink); }
.cp-bar-v { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink-2); }

/* ---------- screen 4: clouds and ship tracks ---------- */
.cp-sea { fill: var(--cp-sea); }
.cp-cloud-edge { stroke: rgba(80, 90, 100, 0.45); stroke-width: 1.2; }
.cp-lens { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2.5; }
.cp-lens-line { stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 4 3; }
.cp-droplet { fill: color-mix(in srgb, var(--cp-rain) 25%, var(--surface)); stroke: var(--cp-rain); stroke-width: 1.4; }
.cp-ccn { fill: var(--cp-haze); }
.cp-drizzle { stroke: var(--cp-rain); stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
.cp-st-sea { fill: #10222c; }
.cp-st-cloud { fill: #c9d1d6; }
.cp-st-glow { fill: none; stroke: #ffffff; stroke-linecap: round; stroke-width: 12; opacity: 0.28; }
.cp-st-core { fill: none; stroke: #ffffff; stroke-linecap: round; stroke-width: 4.5; opacity: 0.92; }
.cp-st-ship { fill: #ffcf33; stroke: #111; stroke-width: 1; }
.cp-st-t { font-family: var(--font-body); font-size: 12px; font-weight: 750; fill: #f2f4f2; paint-order: stroke; stroke: #10222c; stroke-width: 3px; }

/* ---------- screen 5: the hidden warming ---------- */
.cp-rng { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1; }
.cp-rng-cool { fill: color-mix(in srgb, var(--cp-cool) 22%, transparent); stroke: color-mix(in srgb, var(--cp-cool) 55%, transparent); }
.cp-rng-warm { fill: color-mix(in srgb, var(--cp-warm) 18%, transparent); stroke: color-mix(in srgb, var(--cp-warm) 50%, transparent); }
.cp-mid { fill: var(--ink); }
.cp-model-bar { fill: var(--cp-warm); }
.cp-hidden-bar { fill: url(#cp-hid-hatch); stroke: var(--cp-warm); stroke-width: 1.5; stroke-dasharray: 4 3; }
.cp-hatch-l { stroke: var(--cp-warm); stroke-width: 2; opacity: 0.55; }

/* ---------- screen 6: the paddock and the fence ---------- */
.cp-soil { fill: var(--cp-soil); }
.cp-tuft { stroke: var(--cp-stubble); stroke-width: 2; stroke-linecap: round; }
.cp-tuft-g { stroke: var(--cp-crop); }
.cp-bushline { fill: var(--cp-bush); stroke: var(--cp-bush-2); stroke-width: 1; }
.cp-logl { stroke: var(--cp-wood); stroke-width: 7; stroke-linecap: round; }
.cp-dustp { fill: var(--cp-dust); }
.cp-smokep { fill: var(--cp-smoke); }
.cp-wind { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }
.cp-windhead { fill: var(--ink-2); }
.cp-farm-w { fill: #8fc15a; }
.cp-farm-s { fill: #ddc779; }
.cp-row-w { stroke: #5e9a2f; stroke-width: 2; }
.cp-row-s { stroke: #b9a14f; stroke-width: 2; }
.cp-native { fill: #7c9468; }
.cp-native-dot { fill: #4e6740; }
.cp-fence { stroke: #2b2f36; stroke-width: 3; }
.cp-post { fill: #2b2f36; }
.cp-cu { fill: #ffffff; stroke: #9aa6ad; stroke-width: 1.2; }
.cp-cu-shadow { fill: rgba(0, 0, 0, 0.1); }
.cp-map-t { font-family: var(--font-body); font-size: 12.5px; font-weight: 800; fill: #111; paint-order: stroke; stroke: rgba(255, 255, 255, 0.9); stroke-width: 3.5px; stroke-linejoin: round; }

/* ---------- screen 7: the rain belt ---------- */
.cp-map-sea { fill: #cfe3ec; }
.cp-map-land { fill: var(--cp-land); stroke: var(--cp-coast); stroke-width: 1; }
.cp-lat { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.8; }
.cp-lat-eq { stroke-dasharray: 8 4; stroke-width: 1.4; }
.cp-lat-t { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #cfe3ec; stroke-width: 3px; }
.cp-belt-s { stop-color: var(--cp-rain); }
.cp-sahel { fill: url(#cp-sahel-hatch); }
.cp-sahel-l { stroke: #8c6d3a; stroke-width: 1.4; }
.cp-north-cool { fill: var(--cp-cool); }
.cp-gauge { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.5; }
.cp-gauge-fill { fill: var(--cp-rain); }
.cp-shift { fill: none; stroke: var(--cp-cool); stroke-width: 3; stroke-linecap: round; }
.cp-shift-h { fill: var(--cp-cool); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cp-map-sea { fill: #17323f; } :root:not([data-theme="light"]) .cp-lat-t { stroke: #17323f; } }
:root[data-theme="dark"] .cp-map-sea { fill: #17323f; }
:root[data-theme="dark"] .cp-lat-t { stroke: #17323f; }

/* ---------- screen 8: wheat ---------- */
.cp-stalk { stroke: #9c8a3c; stroke-width: 2; stroke-linecap: round; }
.cp-head { fill: #d9b44a; stroke: #8a6d1c; stroke-width: 1; }
.cp-gauge-r { fill: var(--cp-rain); }
.cp-fs-line { fill: none; stroke: var(--viz-1); stroke-width: 3; }
.cp-fs-line2 { fill: none; stroke: var(--viz-3); stroke-width: 3; stroke-dasharray: 7 5; }
.cp-yield-dot { fill: var(--viz-2); stroke: var(--surface); stroke-width: 2.5; }
.cp-hoch-rain { fill: var(--cp-rain); }
.cp-hoch-heat { fill: var(--cp-warm); }
.cp-hoch-co2 { fill: url(#cp-co2-hatch); stroke: var(--viz-3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.cp-hatch-g { stroke: var(--viz-3); stroke-width: 2; opacity: 0.6; }

/* ---------- screen 9: snow and ice ---------- */
.cp-snowsurf { stroke: var(--ink-2); stroke-width: 1; }
.cp-grit { fill: #4a3f33; }
.cp-mass-a { fill: none; stroke: var(--viz-1); stroke-width: 3; }
.cp-mass-g { fill: none; stroke: var(--viz-2); stroke-width: 3; }
.cp-dot-a { fill: var(--viz-1); stroke: var(--surface); stroke-width: 2; }
.cp-dot-g { fill: var(--viz-2); stroke: var(--surface); stroke-width: 2; }

/* ---------- screen 10: the votes ---------- */
.cp-votes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 980px; }
.cp-vrow { width: 100%; display: grid; grid-template-columns: 2em minmax(0, 1fr) 170px 8.5em; gap: 10px; align-items: center; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; line-height: 1.35; }
.cp-vrow:hover { border-color: var(--accent); }
.cp-vrow[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.cp-vrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cp-vn { font-family: var(--font-mono); font-weight: 800; color: var(--ink-2); }
.cp-vi { font-weight: 650; }
.cp-vrow svg { width: 170px; height: 30px; display: block; }
.cp-vhead { display: grid; grid-template-columns: 2em minmax(0, 1fr) 170px 8.5em; gap: 10px; padding: 0 13.5px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); max-width: 980px; }
.cp-vhead svg { width: 170px; height: 18px; display: block; }
.cp-vhead svg text { text-transform: none; letter-spacing: 0; }
.cp-vtrack { stroke: var(--line); stroke-width: 2; }
.cp-vpos { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.cp-vbefore { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2.4; }
.cp-vafter { fill: var(--accent); stroke: var(--accent); stroke-width: 2; }
.cp-varrow { stroke: var(--accent); stroke-width: 2; }
.cp-vlab { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; fill: var(--ink-2); }
@media (max-width: 640px) {
  .cp-vrow { grid-template-columns: 1.6em minmax(0, 1fr) auto; row-gap: 6px; }
  .cp-vrow .cp-vi { grid-column: 2 / 4; }
  .cp-vrow svg { grid-column: 2; grid-row: 2; }
  .cp-vrow .cp-verdict { grid-column: 3; grid-row: 2; align-self: center; }
  .cp-vhead { display: none; }
}
