/* Ausgeology · What’s wrong with this soil?: styles for this lesson's models, its inquiry ladder and its case files.
   The first blocks (the brief, number answers, the shared parts of the models) are carried over from the energy lesson. */

:root {
  --so-paper: #fdfdf9; --so-sky: #dcecf7; --so-sky-2: #f3f8fb; --so-grass: #6f9a3f; --so-grass-2: #9cbf62; --so-water: #3d7fc4; --so-water-2: #a9cdef;
  --so-salt: #f6f3ea; --so-salt-line: #9b9584; --so-lead: #5b5f86; --so-ok: #15803d; --so-no: #b91c1c; --so-warn: #b45309;
  --so-sand: #e2bf78; --so-silt: #b79c74; --so-clay: #8b6a55; --so-om: #3b2a1e; --so-air: #e3f0fa; --so-root: #c8a375; --so-rock: #8d8a82; --so-rock-2: #6f6c66;
  --so-lv1: #2e6b8a; --so-lv2: #1d7a55; --so-lv3: #a5481a; --so-lv4: #6c4fa8; --so-from: #a5481a; --so-glass: #e8f1f6; --so-steel: #9aa3aa;
  --so-hot: #d9480f; --so-flame: #f59f00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --so-paper: #151c1f; --so-sky: #1c2b36; --so-sky-2: #18232b; --so-grass: #5f8a35; --so-grass-2: #7da54e; --so-water: #6aa9e8; --so-water-2: #2c4d6e;
    --so-salt: #e9e5d8; --so-salt-line: #bdb7a5; --so-lead: #a3a7d6; --so-ok: #4ade80; --so-no: #f87171; --so-warn: #f59e0b;
    --so-sand: #c9a35e; --so-silt: #a08763; --so-clay: #7d604c; --so-om: #2a1e15; --so-air: #20303b; --so-root: #a8865c; --so-rock: #6e6b64; --so-rock-2: #57544e;
    --so-lv1: #5aa6cc; --so-lv2: #46b086; --so-lv3: #ec8a52; --so-lv4: #a98ae0; --so-from: #ec8a52; --so-glass: #1f2c33; --so-steel: #7d868d;
    --so-hot: #ff7a45; --so-flame: #ffc14d;
  }
}
:root[data-theme="dark"] {
  --so-paper: #151c1f; --so-sky: #1c2b36; --so-sky-2: #18232b; --so-grass: #5f8a35; --so-grass-2: #7da54e; --so-water: #6aa9e8; --so-water-2: #2c4d6e;
  --so-salt: #e9e5d8; --so-salt-line: #bdb7a5; --so-lead: #a3a7d6; --so-ok: #4ade80; --so-no: #f87171; --so-warn: #f59e0b;
  --so-sand: #c9a35e; --so-silt: #a08763; --so-clay: #7d604c; --so-om: #2a1e15; --so-air: #20303b; --so-root: #a8865c; --so-rock: #6e6b64; --so-rock-2: #57544e;
  --so-lv1: #5aa6cc; --so-lv2: #46b086; --so-lv3: #ec8a52; --so-lv4: #a98ae0; --so-from: #ec8a52; --so-glass: #1f2c33; --so-steel: #7d868d;
  --so-hot: #ff7a45; --so-flame: #ffc14d;
}

/* the syllabus quotes in the teacher notes */
blockquote.nesa { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); max-width: 72ch; }
blockquote.nesa p { margin: 0 0 6px; }
blockquote.nesa 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); }
.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); } }
.so-cycle > li { border-top: 6px solid var(--lv, var(--line)); }
.so-cycle > li.so-lv1 { --lv: var(--so-lv1); } .so-cycle > li.so-lv2 { --lv: var(--so-lv2); } .so-cycle > li.so-lv3 { --lv: var(--so-lv3); } .so-cycle > li.so-lv4 { --lv: var(--so-lv4); }
.so-howlead { margin: 0 0 10px; max-width: 72ch; }
.screen-head.so-first { margin-top: 18px; padding-top: 22px; border-top: 2px solid var(--line); }
.phase.p-conf i { background: #2e6b8a; } .phase.p-str i { background: #1d7a55; } .phase.p-gui i { background: #a5481a; } .phase.p-open i { background: #6c4fa8; }

/* 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; }
.so-eq { margin: 4px 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.so-eq b { font-weight: 700; }

/* 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; }
.viz-read:empty { display: none; }
.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.25; }
.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, .so-pin:focus-visible, .so-rung:focus-visible, .so-chip:focus-visible, .so-cell:focus-visible, .so-jarbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wd-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.so-ctl-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.so-ctl-row > .label { margin-right: 2px; }
.so-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.so-side > * { margin: 0; }
.so-side .slider-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.so-side .slider-row .label { white-space: normal; line-height: 1.25; }
.so-side .slider-row input { grid-column: 1 / -1; grid-row: 2; }
.slider-row output { font-weight: 700; font-variant-numeric: tabular-nums; }
.so-two { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .so-two { grid-template-columns: minmax(0, 1fr); } }
.so-fig { min-width: 0; display: grid; gap: 8px; }
.so-svg { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--so-paper); border: 1px solid var(--line); overflow: hidden; }
.so-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.so-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.so-swipe { display: none; margin: 0; font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 620px) { .so-swipe { display: block; } .so-scroll > svg { min-width: 600px; } }
.so-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px 12px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.so-facts div { display: grid; gap: 1px; }
.so-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); }
.so-facts dd { margin: 0; font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.so-bad { color: var(--so-no); font-weight: 700; }
.so-good { color: var(--so-ok); font-weight: 700; }
.so-tablebox { min-width: 0; overflow-x: auto; }
.so-tablebox:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.so-tbl { border-collapse: collapse; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.so-tbl caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
.so-tbl th, .so-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.so-tbl thead th { font-size: 0.8rem; color: var(--ink-2); }
.so-tbl td.is-bad { color: var(--so-no); font-weight: 700; }
.so-tbl td.is-good { color: var(--so-ok); }
.so-empty { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.so-tablewrap { display: grid; gap: 6px; }
.so-small { font-size: 0.9rem; color: var(--ink-2); }
.so-btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.so-legend .sw { border-radius: 4px; }

/* text in the drawings */
.so-t { font-family: var(--font-body); font-size: 13px; fill: var(--ink); }
.so-ts { font-family: var(--font-body); font-size: 11.5px; fill: var(--ink-2); }
.so-tb { font-weight: 700; }
.so-mid { text-anchor: middle; }
.so-end { text-anchor: end; }
.so-it { font-style: italic; }
.so-halo { paint-order: stroke; stroke: var(--so-paper); stroke-width: 4px; stroke-linejoin: round; }
.so-wlab { fill: #ffffff; paint-order: stroke; stroke: rgba(10, 20, 30, 0.7); stroke-width: 3.5px; stroke-linejoin: round; }
.so-axis { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
.so-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.so-head { fill: var(--ink-2); }
.so-leader { stroke: var(--ink-2); stroke-width: 1; fill: none; }

/* the inquiry ladder */
.so-ladder { display: grid; gap: 12px; padding: 14px 16px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--lvc, var(--so-lv1)); max-width: 1000px; }
.so-ladder.so-lvl1 { --lvc: var(--so-lv1); } .so-ladder.so-lvl2 { --lvc: var(--so-lv2); } .so-ladder.so-lvl3 { --lvc: var(--so-lv3); } .so-ladder.so-lvl4 { --lvc: var(--so-lv4); }
.so-lad-top { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 640px) { .so-lad-top { grid-template-columns: 150px minmax(0, 1fr); gap: 10px; } }
@media (max-width: 420px) { .so-lad-top { grid-template-columns: minmax(0, 1fr); } .so-lad-pic { max-width: 190px; } }
.so-ladsvg { width: 100%; height: auto; display: block; }
.so-lad-info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.so-lad-info > * { margin: 0; }
.so-lad-info .label { color: var(--lvc); }
.so-lad-info h3 { font-size: 1.2rem; }
.so-rail { stroke: #a77b4f; stroke-width: 7; stroke-linecap: round; fill: none; }
.so-rungbar { fill: var(--surface-2); stroke: #a77b4f; stroke-width: 1.5; }
.so-rungg.is-done .so-rungbar { fill: #d8b98f; }
.so-rungg.is-now .so-rungbar { stroke-width: 2.5; }
.so-rc1.is-now .so-rungbar { fill: var(--so-lv1); } .so-rc2.is-now .so-rungbar { fill: var(--so-lv2); } .so-rc3.is-now .so-rungbar { fill: var(--so-lv3); } .so-rc4.is-now .so-rungbar { fill: var(--so-lv4); }
.so-rungg.is-now .so-runglab { fill: var(--ink); }
.so-cl-leg, .so-cl-arm { stroke: #33414a; stroke-width: 3; stroke-linecap: round; fill: none; }
.so-cl-coat { fill: #f4f6f7; stroke: #33414a; stroke-width: 1.5; }
.so-cl-head { fill: #e0b48c; stroke: #33414a; stroke-width: 1.2; }
.so-cl-hat { fill: #f08c00; stroke: #9a5a00; stroke-width: 1; }
.so-cl-bag { fill: #c9a679; stroke: #6b4f2e; stroke-width: 1; }
.so-rungs { display: flex; flex-wrap: wrap; gap: 6px; }
.so-rung { min-height: 36px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 650; cursor: pointer; }
.so-rung b { font-family: var(--font-mono); }
.so-rung[aria-pressed="true"] { color: #fff; border-color: transparent; }
.so-rung1[aria-pressed="true"] { background: #2e6b8a; } .so-rung2[aria-pressed="true"] { background: #1d7a55; } .so-rung3[aria-pressed="true"] { background: #a5481a; } .so-rung4[aria-pressed="true"] { background: #6c4fa8; }
.so-lad-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 820px) { .so-lad-cards { grid-template-columns: minmax(0, 1fr); } }
.so-ladcard { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.so-ladcard > * { margin: 0; }
.so-ladcard.is-yours { background: var(--surface); border: 2px dashed var(--lvc); }
.so-ladcard-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 700; }
.so-chip-tag { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.so-ladcard.is-yours .so-chip-tag { background: var(--lvc); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .so-ladcard.is-yours .so-chip-tag { color: #111517; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-ladcard.is-yours .so-chip-tag { color: #111517; } }
.so-ladcard-t { font-size: 0.97rem; line-height: 1.45; }
.so-ladcard-l { font-size: 0.92rem; line-height: 1.4; color: var(--ink-2); }
.so-ladcard textarea, .so-case textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 0.95rem; background: var(--surface); color: var(--ink); }
.so-ladcard textarea:focus, .so-case textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }

/* the case files */
.so-cases-wrap { display: grid; gap: 10px; }
.so-cases-head { display: grid; gap: 4px; }
.so-cases-head > * { margin: 0; }
.so-cases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1080px) { .so-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .so-cases { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 460px) { .so-cases { grid-template-columns: minmax(0, 1fr); } }
.so-case { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 12px; background: #f7f1e3; color: #1f2933; border: 1px solid #d9c9a3; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); min-width: 0; }
:root[data-theme="dark"] .so-case { background: #2a2620; color: #ece6d8; border-color: #4a4232; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-case { background: #2a2620; color: #ece6d8; border-color: #4a4232; } }
.so-case > * { margin: 0; }
.so-case .so-small { color: inherit; opacity: 0.85; }
.so-case-h { display: flex; gap: 8px; align-items: center; line-height: 1.25; }
.so-swatch { flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--sw), var(--sw2)); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18); }
.so-case-note { font-size: 0.88rem; font-style: italic; line-height: 1.4; }
.so-finds { display: grid; gap: 4px; }
.so-finds div { display: grid; grid-template-columns: minmax(0, 1fr); padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.55); }
:root[data-theme="dark"] .so-finds div { background: rgba(0, 0, 0, 0.25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-finds div { background: rgba(0, 0, 0, 0.25); } }
.so-finds dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: #5a4e38; }
:root[data-theme="dark"] .so-finds dt { color: #cfc5ad; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-finds dt { color: #cfc5ad; } }
.so-finds dd { margin: 0; font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.so-finds .is-bad dd { color: #a11a1a; }
:root[data-theme="dark"] .so-finds .is-bad dd { color: #ff8a8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-finds .is-bad dd { color: #ff8a8a; } }
.so-flag { display: block; font-size: 0.76rem; font-weight: 600; }
.so-new { font-size: 0.66rem; padding: 0 5px; border-radius: 4px; background: #1d7a55; color: #fff; letter-spacing: 0.06em; }
.so-finds .is-new { box-shadow: inset 3px 0 0 #1d7a55; }
.so-case-l { font-size: 0.85rem; font-weight: 700; }
.so-case textarea { background: rgba(255, 255, 255, 0.85); color: #1f2933; border-color: #c9b88f; }
:root[data-theme="dark"] .so-case textarea { background: #1d1a15; color: #ece6d8; border-color: #5a5040; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-case textarea { background: #1d1a15; color: #ece6d8; border-color: #5a5040; } }

/* screen 1: the map of samples */
.so-sea { fill: #d5e6f2; }
.so-other { fill: #e3e6df; }
.so-land { fill: #eef0e2; stroke: #8f9a86; stroke-width: 1.2; }
.so-act { fill: #e4e7da; stroke: #8f9a86; stroke-width: 0.8; }
.so-region { fill: #d9c9a6; fill-opacity: 0.55; stroke: #a8916a; stroke-width: 0.8; stroke-dasharray: 3 2; }
.so-river { fill: none; stroke: #3d7fc4; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.so-maplab { letter-spacing: 0.08em; }
.so-rivlab { fill: #2e6aa8; font-style: italic; }
.so-town { fill: #33414a; stroke: #fff; stroke-width: 1.2; }
:root[data-theme="dark"] .so-sea { fill: #16283a; } :root[data-theme="dark"] .so-other { fill: #1b2124; } :root[data-theme="dark"] .so-land { fill: #253028; stroke: #55624f; } :root[data-theme="dark"] .so-act { fill: #2b362d; } :root[data-theme="dark"] .so-region { fill: #5b4f3a; stroke: #8a7652; } :root[data-theme="dark"] .so-river { stroke: #6aa9e8; } :root[data-theme="dark"] .so-rivlab { fill: #8cc0f2; } :root[data-theme="dark"] .so-town { fill: #e6ebeb; stroke: #111517; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-sea { fill: #16283a; } :root:not([data-theme="light"]) .so-other { fill: #1b2124; } :root:not([data-theme="light"]) .so-land { fill: #253028; stroke: #55624f; } :root:not([data-theme="light"]) .so-act { fill: #2b362d; } :root:not([data-theme="light"]) .so-region { fill: #5b4f3a; stroke: #8a7652; } :root:not([data-theme="light"]) .so-river { stroke: #6aa9e8; } :root:not([data-theme="light"]) .so-rivlab { fill: #8cc0f2; } :root:not([data-theme="light"]) .so-town { fill: #e6ebeb; stroke: #111517; } }
.so-pin { cursor: pointer; }
.so-pin:focus { outline: none; }
.so-pin:focus-visible .so-pinhead { stroke: var(--focus); stroke-width: 3; }
.so-pinring { fill: none; stroke: transparent; stroke-width: 3; }
.so-pin.is-on .so-pinring { stroke: var(--ochre); }
.so-pinhead { stroke: #1f2933; stroke-width: 1.5; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.so-pinlab { fill: #fff; font-size: 12px; paint-order: stroke; stroke: rgba(0, 0, 0, 0.45); stroke-width: 2px; }
.so-jarlid { fill: #8a9097; stroke: #59606a; stroke-width: 1; }
.so-jarglass { fill: rgba(220, 235, 245, 0.55); stroke: #7e8b95; stroke-width: 1.4; }
.so-jarsoil { stroke: rgba(0, 0, 0, 0.25); stroke-width: 0.6; }
.so-jarshine { stroke: rgba(255, 255, 255, 0.7); stroke-width: 2.5; stroke-linecap: round; }
.so-jarlab { fill: #1f2933; font-size: 12px; }
.so-samplecard { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.so-sc-top { display: flex; gap: 12px; align-items: center; }
.so-sc-top > div > * { margin: 0; }
.so-sc-jar { width: 64px; height: 72px; flex: none; }
.so-sc-top h4 { font-size: 1.08rem; }
.so-letter { position: relative; padding: 14px 16px; border-radius: 4px; background: #fffdf3; color: #1f2933; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); transform: rotate(-0.7deg); background-image: repeating-linear-gradient(transparent 0 23px, rgba(80, 120, 170, 0.18) 23px 24px); }
.so-letter > * { margin: 0; }
.so-letter-h { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a3a12; margin-bottom: 4px; }
.so-letter-t { font-style: italic; line-height: 1.5; }
.so-like { font-size: 0.95rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .so-samplecard.so-flip { animation: so-flip 0.45s ease both; } }
@keyframes so-flip { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* screen 1: the soil profile */
.so-sky { fill: var(--so-sky); }
.so-hillsoil { fill: #b08a5f; }
.so-hillline { fill: none; stroke: var(--so-grass); stroke-width: 4; stroke-linejoin: round; }
.so-pitmark { fill: var(--ochre); }
.so-sun { fill: #ffd34d; stroke: #ffb300; stroke-width: 2; }
.so-ray { stroke: #ffb300; stroke-width: 2.5; stroke-linecap: round; }
.so-cloud { fill: #f4f6f8; stroke: #a9b4bc; stroke-width: 1.2; }
.so-raindash { stroke: var(--so-water); stroke-width: 2; stroke-linecap: round; }
.so-trunk { fill: #6b4a2e; }
.so-crown { fill: #4f7d32; stroke: #355a20; stroke-width: 1; }
.so-tuft { fill: #6f9a3f; }
.so-ground { fill: #b9a184; }
.so-rock { stroke: #555; stroke-width: 0.8; }
.so-crack { fill: none; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1.4; }
.so-hzC, .so-hzB, .so-hzA { stroke: rgba(0, 0, 0, 0.18); stroke-width: 0.8; }
.so-grain { fill: rgba(255, 250, 235, 0.75); }
.so-clayfleck { stroke: rgba(40, 20, 10, 0.45); stroke-width: 1.4; stroke-linecap: round; }
.so-layerline { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; }
.so-humusfleck { fill: rgba(10, 6, 4, 0.5); }
.so-worm { fill: none; stroke: #c9786b; stroke-width: 3.5; stroke-linecap: round; }
.so-hzO { fill: #6b4f2a; }
.so-leaf { fill: #a3793e; }
.so-faceline { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-width: 1.2; }
.so-root { fill: none; stroke: #e2c49a; stroke-width: 1.6; stroke-linecap: round; opacity: 0.9; }
.so-ghostline { stroke: var(--ochre); stroke-width: 2; stroke-dasharray: 6 4; }
.so-ghostA { stroke-dasharray: 2 3; }
.so-ghostlab { fill: var(--ochre); }
.so-drop { fill: var(--so-water-2); stroke: var(--so-water); stroke-width: 0.8; }
.so-leachlab { fill: var(--so-water); }
.so-checklist { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.so-checklist > .label { margin: 0; }
.so-checklist ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.so-checklist li { display: grid; gap: 6px; padding: 6px 8px; border-radius: 10px; }
.so-checklist li > p { margin: 0; line-height: 1.45; }
.so-checklist li.is-now { background: var(--surface); box-shadow: inset 4px 0 0 var(--so-lv1); }
.so-ok-l { display: inline-flex; gap: 6px; align-items: center; font-size: 0.93rem; font-weight: 650; }
.so-ok-l input { width: 18px; height: 18px; accent-color: var(--so-lv2); }
@media (min-width: 760px) { .so-checklist li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; } .so-checklist li .so-btnrow { flex-wrap: nowrap; } }

/* screen 2: inside a crumb */
.so-crumbsvg { max-height: none; }
.so-cr-bg0 { fill: #f3efe6; } .so-cr-bg1 { fill: #efe7d8; } .so-cr-bg2 { fill: #dfeaf2; }
:root[data-theme="dark"] .so-cr-bg0, :root[data-theme="dark"] .so-cr-bg1 { fill: #1e2326; } :root[data-theme="dark"] .so-cr-bg2 { fill: #18252e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-cr-bg0, :root:not([data-theme="light"]) .so-cr-bg1 { fill: #1e2326; } :root:not([data-theme="light"]) .so-cr-bg2 { fill: #18252e; } }
.so-hand { fill: #e5b994; stroke: #a8775a; stroke-width: 2; }
.so-clod { stroke: rgba(0, 0, 0, 0.25); stroke-width: 1; }
.so-clod0 { fill: #5b4030; } .so-clod1 { fill: #6f4f3a; } .so-clod2 { fill: #4a3426; }
.so-lens { fill: rgba(220, 240, 255, 0.25); stroke: #33414a; stroke-width: 4; }
.so-lens-h { stroke: #33414a; stroke-width: 9; stroke-linecap: round; }
.so-crumbbody { fill: #7a5a42; stroke: #4a3426; stroke-width: 2; }
.so-pore { fill: #f6f1e6; stroke: rgba(0, 0, 0, 0.2); stroke-width: 1; transition: fill 0.5s ease; }
.so-pore.is-wet { fill: #8fc2ea; }
.so-sandgrain { fill: #e8d3a2; stroke: #a8915e; stroke-width: 1.2; }
.so-siltgrain { fill: #c9b089; }
.so-ombit { fill: none; stroke: #241710; stroke-width: 3; stroke-linecap: round; }
.so-bigroot { fill: none; stroke: #e7cfa6; stroke-width: 9; stroke-linecap: round; }
.so-roothair { fill: none; stroke: #e7cfa6; stroke-width: 2; stroke-linecap: round; }
.so-hypha { fill: none; stroke: #fafaf0; stroke-width: 2; stroke-dasharray: 14 6; opacity: 0.9; }
.so-bigworm { fill: none; stroke: #c9786b; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.so-micrograin { fill: #e8d3a2; stroke: #a8915e; stroke-width: 2; }
.so-film { fill: #7fb8e6; opacity: 0.8; }
.so-airbub { fill: #ffffff; stroke: #9fb6c6; stroke-width: 2; }
:root[data-theme="dark"] .so-airbub { fill: #cfd9e0; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-airbub { fill: #cfd9e0; } }
.so-plate { fill: #9c7a64; stroke: #5a4232; stroke-width: 1; }
.so-minus { fill: #ffffff; font-size: 12px; }
.so-ion { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }
.so-ion-ca { fill: #f2c94c; } .so-ion-mg { fill: #9ad17a; } .so-ion-k { fill: #f28c8c; } .so-ion-na { fill: #8cc7f2; }
.so-iontext { fill: #1f2933; font-size: 9px; }
.so-bug { fill: #7cbf5a; stroke: #3f7a2a; stroke-width: 1; }
.so-flag { fill: none; stroke: #3f7a2a; stroke-width: 1.2; }
.so-dim { opacity: 0.15; transition: opacity 0.3s ease; }
.so-crumb-low { align-items: center; }
.so-volbar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.so-volbar span { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 0.82rem; color: #fff; transition: flex 0.4s ease; }
.so-volbar b { white-space: nowrap; }
.so-vb-min { background: #7a5c3a; } .so-vb-om { background: #3b2a1e; } .so-vb-w { background: #2a6aa8; } .so-vb-air { background: #b9cfdf; color: #1f2933 !important; }

/* screen 2: the oven and furnace */
.so-labwall { fill: #eef2f3; } .so-bench { fill: #c9b79c; }
:root[data-theme="dark"] .so-labwall { fill: #1b2226; } :root[data-theme="dark"] .so-bench { fill: #4a4033; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-labwall { fill: #1b2226; } :root:not([data-theme="light"]) .so-bench { fill: #4a4033; } }
.so-bal { fill: #dfe3e6; stroke: #6e7780; stroke-width: 1.5; } .so-balpan { fill: #b9c1c7; stroke: #6e7780; }
.so-display { fill: #1d2a1d; stroke: #0d140d; }
.so-digits { fill: #7dff8a; font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.so-digits-s { fill: #ffb366; font-family: var(--font-mono); font-size: 9px; font-weight: 700; }
.so-ovenbody { fill: #d7dcdf; stroke: #6e7780; stroke-width: 1.5; } .so-ovenwin { fill: #3a4249; }
.so-ovenglow { fill: #ff9c45; opacity: 0; transition: opacity 0.6s ease; }
.so-furnbody { fill: #8e969c; stroke: #4f575d; stroke-width: 1.5; } .so-furnmouth { fill: #2a2f33; }
.so-furnglow { fill: #ff5a1f; opacity: 0; transition: opacity 0.6s ease; filter: drop-shadow(0 0 8px #ff7a00); }
.so-wisp { fill: none; stroke: #ffffff; stroke-width: 2.5; stroke-linecap: round; }
.so-spark { fill: #ffd34d; }
.so-clockface { fill: #fff; stroke: #33414a; stroke-width: 2; } .so-clockhand { stroke: #b4501c; stroke-width: 3; stroke-linecap: round; }
.so-inset { fill: var(--so-paper); stroke: var(--line); }
.so-curve { fill: none; stroke: var(--so-water); stroke-width: 2.5; }
.so-crucible { fill: #f4f1ea; stroke: #8a857a; stroke-width: 1.5; }
.so-crusoil { stroke: rgba(0, 0, 0, 0.25); stroke-width: 0.8; }

/* screen 3: the jar and the triangle */
.so-jarfig { justify-items: center; }
.so-jarcv { width: 100%; max-width: 380px; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--so-paper); }
.so-trisvg { touch-action: none; cursor: crosshair; }
.so-texreg { stroke: none; transition: fill 0.3s ease; }
.so-tr0 { fill: #f3e7d0; } .so-tr1 { fill: #e9dcc4; } .so-tr2 { fill: #f0e2c8; } .so-tr3 { fill: #e4d6bb; }
.so-texreg.is-on { fill: #f6c48f; }
:root[data-theme="dark"] .so-tr0 { fill: #2c2721; } :root[data-theme="dark"] .so-tr1 { fill: #332d25; } :root[data-theme="dark"] .so-tr2 { fill: #2f2a23; } :root[data-theme="dark"] .so-tr3 { fill: #383128; } :root[data-theme="dark"] .so-texreg.is-on { fill: #7a4d24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-tr0 { fill: #2c2721; } :root:not([data-theme="light"]) .so-tr1 { fill: #332d25; } :root:not([data-theme="light"]) .so-tr2 { fill: #2f2a23; } :root:not([data-theme="light"]) .so-tr3 { fill: #383128; } :root:not([data-theme="light"]) .so-texreg.is-on { fill: #7a4d24; } }
.so-trigrid { stroke: var(--ink-2); stroke-width: 0.5; opacity: 0.35; }
.so-texline { fill: none; stroke: #8a6a43; stroke-width: 1.4; }
.so-triedge { fill: none; stroke: var(--ink); stroke-width: 2; }
.so-texlab { fill: var(--ink); font-weight: 700; font-size: 11px; }
.so-tridot-c { fill: var(--ochre); stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4)); }
.so-tridot-in { fill: #fff; }
.so-tripin { stroke: #1f2933; stroke-width: 1.5; }
.so-triin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.so-triin label { display: grid; gap: 4px; font-weight: 700; font-size: 0.92rem; }
.so-triin input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
.so-triclass { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ochre); }
.so-clocktick { stroke: #33414a; stroke-width: 1.5; }

/* screen 4: the test bench */
.so-cup { fill: #f4f6f7; stroke: #8a959c; stroke-width: 1.5; }
.so-beaker { fill: rgba(220, 235, 245, 0.6); stroke: #6f8796; stroke-width: 2; }
.so-probe { stroke: #33414a; stroke-width: 6; stroke-linecap: round; }
.so-cable { fill: none; stroke: #33414a; stroke-width: 2; }
.so-meter { fill: #3a4249; stroke: #1f2529; }
.so-meterlab { fill: #e6ebeb; }
.so-sbar { fill: #e7d6d3; stroke: var(--line); }
.so-sbar-ok { fill: #a7d8b4; }
:root[data-theme="dark"] .so-sbar { fill: #4a2b2b; } :root[data-theme="dark"] .so-sbar-ok { fill: #2c6a42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-sbar { fill: #4a2b2b; } :root:not([data-theme="light"]) .so-sbar-ok { fill: #2c6a42; } }
.so-mark { fill: var(--ochre); stroke: var(--so-paper); stroke-width: 1.5; }
.so-report { fill: #fffdf5; stroke: #b9b2a0; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15)); }
.so-report + text, .so-report ~ text { fill: #1f2933; }
.so-ring { fill: #b9c1c7; stroke: #59606a; stroke-width: 2; }
.so-dish { fill: rgba(225, 238, 246, 0.8); stroke: #7e8b95; stroke-width: 2; }
.so-dishwater { fill: rgba(150, 195, 230, 0.35); }
.so-cloudy { fill: #d8cfc0; opacity: 0; }
.so-crumbbit { stroke: rgba(0, 0, 0, 0.3); stroke-width: 0.6; }

/* screen 5: the lead pathway */
.so-bhsky { fill: #f6dcc0; } .so-bhhill { fill: #b9704a; } .so-yardsoil { fill: #c47a52; }
:root[data-theme="dark"] .so-bhsky { fill: #3a2c22; } :root[data-theme="dark"] .so-bhhill { fill: #6e4128; } :root[data-theme="dark"] .so-yardsoil { fill: #7a4a30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-bhsky { fill: #3a2c22; } :root:not([data-theme="light"]) .so-bhhill { fill: #6e4128; } :root:not([data-theme="light"]) .so-yardsoil { fill: #7a4a30; } }
.so-bare { fill: #d9915f; }
.so-bhhouse { fill: #f0e6d6; stroke: #8a7a62; stroke-width: 1.5; } .so-bhroof { fill: #8a8f94; stroke: #5d6368; } .so-bhdoor { fill: #7a5a3a; } .so-bhwin { fill: #bcd8ea; stroke: #6f8796; }
.so-mat { fill: #3b6d3b; }
.so-tank { fill: #9aa7ae; stroke: #5d6a72; stroke-width: 1.5; } .so-tankrib { stroke: #6f7c84; stroke-width: 1; } .so-gutter { stroke: #6f7c84; stroke-width: 3; }
.so-tap { fill: none; stroke: #33414a; stroke-width: 3; stroke-linecap: round; } .so-tap.is-off { stroke: #b91c1c; }
.so-kidhead { fill: #c98e66; stroke: #33414a; stroke-width: 1.2; } .so-kidbody { stroke: #2f5fa8; stroke-width: 3.5; stroke-linecap: round; fill: none; } .so-kidhand { fill: #c98e66; }
.so-toy { fill: #e04f4f; stroke: #8a2a2a; }
.so-fence { stroke: #7a5a3a; stroke-width: 3; fill: none; }
.so-dust { fill: #7a4a2a; }
.so-windline { fill: none; stroke: #8a6a4a; stroke-width: 2; stroke-dasharray: 6 5; opacity: 0.7; }
.so-grassblade { fill: none; stroke: #5f8a35; stroke-width: 1.6; } .so-mulch { fill: #8a6a43; }
.so-rbed { fill: #a77b4f; stroke: #6b4f2e; stroke-width: 1.5; } .so-cleansoil { fill: #4a3426; } .so-ibed { fill: #8a5a3a; }
.so-veg { fill: #4f9a3a; stroke: #2f6a22; stroke-width: 1; }
.so-steps5 { display: grid; gap: 6px; align-content: start; }
.so-step5 { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-weight: 650; font-size: 0.95rem; cursor: pointer; }
.so-step5 input { width: 18px; height: 18px; accent-color: var(--so-lv2); flex: none; }
.so-expo { display: grid; gap: 8px; align-content: start; }
.so-expo > * { margin: 0; }
.so-expobar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.so-expobar span { transition: width 0.6s ease; }
.so-r1, .legend .sw.so-r1 { background: #7a4a2a; } .so-r2, .legend .sw.so-r2 { background: #b0703c; } .so-r3, .legend .sw.so-r3 { background: #3d7fc4; } .so-r4, .legend .sw.so-r4 { background: #4f9a3a; } .so-r0 { background: transparent; }

/* screen 5: the backyard */
.so-yplan { fill: #e9e3d6; } .so-ylane { fill: #b9b2a2; } .so-ylawn { fill: #9cc46a; } .so-ybare { fill: #d9915f; } .so-yveg { fill: #6e4630; } .so-yshed { fill: #b7bdc2; stroke: #6e7780; }
.so-ysand { fill: #f7f1de; stroke: #c9bfa0; } .so-ytank { fill: #9aa7ae; stroke: #5d6a72; } .so-yhouse { fill: #f0e6d6; stroke: #8a7a62; } .so-ydrive { fill: #c9c4b8; }
:root[data-theme="dark"] .so-yplan { fill: #2a2722; } :root[data-theme="dark"] .so-ylawn { fill: #4f6e35; } :root[data-theme="dark"] .so-ybare { fill: #8a5532; } :root[data-theme="dark"] .so-yhouse { fill: #4a4236; } :root[data-theme="dark"] .so-ylane { fill: #4a463e; } :root[data-theme="dark"] .so-ydrive { fill: #55524a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-yplan { fill: #2a2722; } :root:not([data-theme="light"]) .so-ylawn { fill: #4f6e35; } :root:not([data-theme="light"]) .so-ybare { fill: #8a5532; } :root:not([data-theme="light"]) .so-yhouse { fill: #4a4236; } :root:not([data-theme="light"]) .so-ylane { fill: #4a463e; } :root:not([data-theme="light"]) .so-ydrive { fill: #55524a; } }
.so-cell { cursor: pointer; }
.so-cell:focus { outline: none; }
.so-cellc { fill: #ffffff; stroke: #33414a; stroke-width: 1.5; stroke-dasharray: 3 2; }
.so-cell:focus-visible .so-cellc { stroke: var(--focus); stroke-width: 3; }
.so-celltext { fill: #1f2933; font-size: 11px; }
.so-celltext.so-celltext-sm { font-size: 9.5px; }
.so-cell.is-got .so-cellc { stroke-dasharray: none; }
.so-cell.so-pb1 .so-cellc, .legend .sw.so-pb1 { fill: #a7d8b4; background: #a7d8b4; } .so-cell.so-pb2 .so-cellc, .legend .sw.so-pb2 { fill: #f6c48f; background: #f6c48f; } .so-cell.so-pb3 .so-cellc, .legend .sw.so-pb3 { fill: #ef8f8f; background: #ef8f8f; }
.so-augerline { stroke: #33414a; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.so-hilbox { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.so-hilbox > * { margin: 0; }
.so-hil { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 3px; font-size: 0.92rem; }
.so-decide { display: grid; gap: 12px; }
.so-q { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.so-q > * { margin: 0; }
.so-q-h { font-weight: 700; }
.so-q-o { display: flex; flex-wrap: wrap; gap: 6px; }
.so-q-fb { font-size: 0.95rem; }
.so-q-fb.is-right { color: var(--good); } .so-q-fb.is-wrong { color: var(--bad); }
.so-q-fb:empty { display: none; }
.so-pitbox { fill: #a77b4f; stroke: #6b4f2e; } .so-pitsand { fill: #c9905f; } .so-pitsand.is-clean { fill: #fbf6e6; } .so-pitlid { fill: #3d7fc4; stroke: #24578f; }

/* screens 6 and 8: the catchment */
.so-regolith { fill: #c7a47a; }
:root[data-theme="dark"] .so-regolith { fill: #6e5638; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-regolith { fill: #6e5638; } }
.so-saltgrain { fill: #ffffff; opacity: 0.85; }
.so-saltsol { fill: #ffffff; stroke: #3d7fc4; stroke-width: 0.6; }
.so-gw { fill: #8fb9dc; fill-opacity: 0.85; }
.so-wtline { fill: none; stroke: #1d5f9e; stroke-width: 2.5; stroke-dasharray: 8 4; }
:root[data-theme="dark"] .so-wtline { stroke: #8cc0f2; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-wtline { stroke: #8cc0f2; } }
.so-wtlab { fill: #1d5f9e; }
:root[data-theme="dark"] .so-wtlab { fill: #8cc0f2; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-wtlab { fill: #8cc0f2; } }
.so-deeproot { fill: none; stroke: #8a6a43; stroke-width: 1.5; opacity: 0.8; }
.so-shallowroot { fill: none; stroke: #8a6a43; stroke-width: 1.2; }
.so-crop { fill: #c9a227; }
.so-irrcrop { fill: #6aa83a; }
.so-deadcrown { fill: #a89a7a; stroke: #6f6450; }
.so-spray { fill: none; stroke: #6aa9e8; stroke-width: 2; stroke-dasharray: 2 3; }
.so-thouse { fill: #f0e6d6; stroke: #8a7a62; } .so-troof { fill: #b2533e; } .so-pipe { stroke: #59606a; stroke-width: 2; } .so-leak { fill: #3d7fc4; }
.so-crust { fill: #ffffff; stroke: #b9b2a0; stroke-width: 0.5; }
.so-recharge { stroke: #3d7fc4; fill: none; stroke-linecap: round; }
.so-rechead { fill: #3d7fc4; }
.so-gwflow { fill: none; stroke: #1d5f9e; stroke-width: 2; stroke-dasharray: 6 5; }
.so-gwhead { fill: #1d5f9e; }
.so-riverw { fill: #3d7fc4; transition: fill 0.8s ease; }
.so-flowmark { stroke: #ffffff; stroke-width: 2; stroke-linecap: round; }
.so-bore { fill: #59606a; } .so-borehole { stroke: #59606a; stroke-width: 2; stroke-dasharray: 4 3; }
.so-saltline { stroke: var(--so-no); stroke-width: 1.5; stroke-dasharray: 5 4; }
.so-saltlab { fill: var(--so-no); }
.so-gline { fill: none; stroke: var(--so-water); stroke-width: 3; }
.so-gghost { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 0.6; }
.so-paperbg { fill: var(--so-paper); }

/* screen 7: germination trays */
.so-planner { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.so-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.so-chip { min-width: 44px; min-height: 38px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.so-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.so-plancheck { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 0.95rem; }
.so-plancheck.is-warn { background: #fdf0d8; color: #6b4300; }
.so-plancheck.is-ok { background: var(--good-soft); color: var(--good); }
:root[data-theme="dark"] .so-plancheck.is-warn { background: #3d2e12; color: #ffd27a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-plancheck.is-warn { background: #3d2e12; color: #ffd27a; } }
.so-traybg { fill: var(--so-paper); }
.so-dish7 { fill: rgba(220, 235, 245, 0.7); stroke: #7e8b95; stroke-width: 1.2; }
.so-paper7 { fill: #ffffff; }
.so-seed7 { fill: #b08a4a; stroke: #6b4f2e; stroke-width: 0.5; }
.so-shoot7 { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.so-faocurve { fill: none; stroke: var(--ochre); stroke-width: 2; stroke-dasharray: 6 4; }
.so-faolab { fill: var(--ochre); }
.so-repdot { fill: var(--so-water); fill-opacity: 0.75; }
.so-range { stroke: var(--so-water); stroke-width: 1.5; }
.so-meanline { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.so-faotab .so-tbl { font-size: 0.85rem; }

/* screen 8: rehabilitation */
.so-bush { fill: #8fa88a; stroke: #5b7356; stroke-width: 1; }
.so-pumphouse { fill: #59606a; } .so-pipeline { fill: none; stroke: #59606a; stroke-width: 2.5; }
.so-basin { fill: #b9cfdf; stroke: #6f8796; } .so-basinsalt { fill: #ffffff; }
.so-evaltool { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.so-evaltool > * { margin: 0; }
.so-evaltbl input[type="range"] { width: 120px; vertical-align: middle; accent-color: var(--accent); }
.so-evaltbl output { display: inline-block; min-width: 1.5em; margin-left: 6px; font-weight: 700; }
.so-evalscore { font-size: 1rem; }
:root[data-theme="dark"] .so-gw { fill: #2c4d6e; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-gw { fill: #2c4d6e; } }

/* screen 9: rainfall trays */
.so-raintent { fill: var(--so-sky-2); }
.so-traybox { fill: #b9c1c7; stroke: #59606a; stroke-width: 1.5; }
.so-traysoil { stroke: rgba(0, 0, 0, 0.25); stroke-width: 0.6; }
.so-furrow { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1.4; }
.so-stripgrass { stroke: #4f8a35; stroke-width: 4; }
.so-stubble { stroke: #d8b55a; stroke-width: 1.6; stroke-linecap: round; }
.so-spout { fill: none; stroke: #6f8796; stroke-width: 3; }
.so-jar2 { fill: rgba(220, 235, 245, 0.6); stroke: #6f8796; stroke-width: 1.5; }
.so-runoffw { opacity: 0.85; }
.so-trayset { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .so-trayset { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .so-trayset { grid-template-columns: minmax(0, 1fr); } }
.so-trayctl { display: grid; gap: 6px; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.so-trayctl legend { font-weight: 800; padding: 0 4px; }
.so-trayctl label { display: grid; gap: 3px; font-size: 0.88rem; font-weight: 650; }
.so-trayctl select { font: inherit; font-size: 0.9rem; padding: 5px 6px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.so-trayctl input[type="range"] { width: 100%; accent-color: var(--accent); }
.so-trayctl output { font-weight: 800; font-variant-numeric: tabular-nums; }

/* screen 9: where the soil goes */
.so-impsky { fill: #dcecf7; transition: fill 0.8s ease; } .so-impsky.is-red { fill: #e8a46a; }
:root[data-theme="dark"] .so-impsky { fill: #1c2b36; } :root[data-theme="dark"] .so-impsky.is-red { fill: #6e3b1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-impsky { fill: #1c2b36; } :root:not([data-theme="light"]) .so-impsky.is-red { fill: #6e3b1c; } }
.so-impland { fill: #c9a074; } .so-impsea { fill: #3d7fc4; }
.so-impbare { fill: #b06a3e; stroke: #7a4a2a; } .so-imprill { fill: none; stroke: #6b3f22; stroke-width: 2; }
.so-impriver { fill: none; stroke: #3d7fc4; stroke-width: 7; stroke-linecap: round; }
.so-impplume { fill: none; stroke: #9a6a3e; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 18 10; }
.so-impbldg { fill: #8a9097; stroke: #59606a; }
.so-puff { fill: #c45a28; }
.so-cdot { fill: #3b2a1e; } .so-ctext { fill: #fff; font-size: 8px; }
.so-seadust { fill: #c45a28; }
#erosion .is-hl .so-impbare { stroke: var(--ochre); stroke-width: 3; }
.so-impcard { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); max-width: 820px; }
.so-impcard > * { margin: 0; }
.so-impcard h4 { font-size: 1.05rem; margin-bottom: 4px; }

/* screen 10: the report board */
.so-repcount { margin: 0; font-weight: 800; }
.so-reps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.so-rep { position: relative; display: grid; gap: 8px; align-content: start; padding: 12px 14px; border-radius: 12px; background: #f7f1e3; color: #1f2933; border: 1px solid #d9c9a3; min-width: 0; }
:root[data-theme="dark"] .so-rep { background: #2a2620; color: #ece6d8; border-color: #4a4232; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-rep { background: #2a2620; color: #ece6d8; border-color: #4a4232; } }
.so-rep > * { margin: 0; }
.so-rep .so-small { color: inherit; opacity: 0.85; }
.so-rep.is-done { border-color: #15803d; box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.35); }
.so-repstep { display: grid; gap: 6px; padding-top: 6px; border-top: 1px dashed rgba(0, 0, 0, 0.2); }
.so-repstep > * { margin: 0; }
.so-repq { font-weight: 800; }
.so-repopts { display: flex; flex-wrap: wrap; gap: 6px; }
.so-repopts .wd-opt { font-size: 0.88rem; min-height: 34px; padding: 5px 9px; }
.so-repchecks { display: grid; gap: 4px; }
.so-repchecks label { display: flex; gap: 6px; align-items: flex-start; font-size: 0.9rem; line-height: 1.35; }
.so-repchecks input { width: 16px; height: 16px; flex: none; margin-top: 2px; accent-color: #1d7a55; }
.so-repfb { font-size: 0.9rem; font-weight: 650; }
.so-repfb.is-right { color: #136b33; } .so-repfb.is-wrong { color: #a11a1a; }
:root[data-theme="dark"] .so-repfb.is-right { color: #4ade80; } :root[data-theme="dark"] .so-repfb.is-wrong { color: #ff8a8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-repfb.is-right { color: #4ade80; } :root:not([data-theme="light"]) .so-repfb.is-wrong { color: #ff8a8a; } }
.so-repfb:empty { display: none; }
.so-stampbox:empty { display: none; }
.so-stamp { display: inline-block; padding: 4px 12px; border: 3px solid #15803d; border-radius: 8px; color: #15803d; font-family: var(--font-mono); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-6deg); }
:root[data-theme="dark"] .so-stamp { color: #4ade80; border-color: #4ade80; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-stamp { color: #4ade80; border-color: #4ade80; } }
.so-from { margin: 0 0 4px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--so-from); }

/* ---------- movement, only for readers who haven't asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  .so-stamp { animation: so-stamp 0.45s ease-out both; }
  .so-finds .is-new { animation: so-new 0.8s ease-out both; }
}
@keyframes so-stamp { from { opacity: 0; transform: scale(1.8) rotate(-12deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes so-new { from { background: rgba(29, 122, 85, 0.35); } }
.so-reps { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.so-rep[hidden] { display: none; }
.so-rep .so-repchecks.so-strats, .so-rep .so-repstep:last-of-type .so-repchecks { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 18px; }
.so-reptabs .wd-opt { position: relative; }
.so-reptabs .wd-opt.is-done .so-tick::after { content: " ✓"; color: inherit; font-weight: 800; }
.so-rainbar { fill: #8a9097; stroke: #59606a; } .so-nozzle { fill: #59606a; }
.so-stand { stroke: #8a8f94; stroke-width: 3; stroke-linecap: round; }
.so-grainwash { fill: #6b3f22; }
.so-repstep > .btn { justify-self: start; }
