.wc-sun circle { fill: #e3a455; }
.wc-sun path { fill: none; stroke: #e3a455; stroke-width: 5; stroke-linecap: round; }
.wc-cloud path { fill: #fff; stroke: #000; stroke-width: 2.5; }
.wc-catchment { fill: #a0c57f; stroke: #000; stroke-width: 2.5; }
.wc-soil { fill: url(#advanced-soil); stroke: #000; stroke-width: 2; }
.wc-groundwaterStore { fill: url(#advanced-ground); stroke: #000; stroke-width: 2; }
.wc-waterTable { fill: none; stroke: #00bed6; stroke-width: 4; stroke-dasharray: 12 9; }
.wc-snow { fill: #fff; }
.wc-trees path { fill: #6ea55b; stroke: #000; stroke-width: 2.5; stroke-linejoin: round; }
.wc-buildings { opacity: .14; }
.wc-buildings path:first-child { fill: #fff; stroke: #000; stroke-width: 3; }
.wc-buildings path:last-child { fill: none; stroke: #00bed6; stroke-width: 3; }
.water-cycle-scene[data-scenario="urban"] .wc-trees { opacity: .16; }
.water-cycle-scene[data-scenario="urban"] .wc-buildings { opacity: 1; }
.water-cycle-scene[data-scenario="urban"] .wc-soil { filter: saturate(.35); }
.water-cycle-scene[data-scenario="storm"] .wc-cloud path { fill: #dce4e7; stroke-width: 4; }
.water-cycle-scene[data-scenario="storm"] .wc-precipitation path { stroke-width: 10; }
.wc-river { fill: none; stroke: #99e5ef; stroke-width: 15; stroke-linecap: round; }
.wc-flow path { fill: none; stroke: #00bed6; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 9 12; marker-end: url(#advanced-arrow); transition: stroke-width .35s ease; }
.wc-flow text { fill: #000; font: 600 12px "Noto Sans TC", sans-serif; paint-order: stroke; stroke: #f6fcfd; stroke-width: 6px; stroke-linejoin: round; }
.water-cycle-scene[data-process] .wc-flow { opacity: .28; }
.water-cycle-scene[data-process="advection"] .wc-advection,
.water-cycle-scene[data-process="precipitation"] .wc-precipitation,
.water-cycle-scene[data-process="interception"] .wc-interception,
.water-cycle-scene[data-process="evaporation"] .wc-evaporation,
.water-cycle-scene[data-process="transpiration"] .wc-transpiration,
.water-cycle-scene[data-process="runoff"] .wc-runoff,
.water-cycle-scene[data-process="channel"] .wc-channel,
.water-cycle-scene[data-process="infiltration"] .wc-infiltration,
.water-cycle-scene[data-process="throughflow"] .wc-throughflow,
.water-cycle-scene[data-process="percolation"] .wc-percolation,
.water-cycle-scene[data-process="groundwater"] .wc-groundwater { opacity: 1; filter: drop-shadow(0 0 5px rgba(0, 190, 214, .7)); }
.wc-groundLayer .wc-flow text { stroke: #efe1d2; }
.wc-flow marker path { fill: #00bed6; }
.wc-storeLabels text { fill: #000; font: 600 11px "Noto Sans TC", sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.water-cycle-scene .wc-flow path { animation:none; }
.water-cycle-scene[data-playing="false"] * { animation-play-state: paused; }
.wc-lab[data-water-embedded="true"] { padding-top: 0; }
.wc-embeddedReading { padding: 24px 0; }
.wc-embeddedReading h3 { margin: 0 0 10px; font-size: 22px; }
.wc-embeddedReading p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; }
.wc-condensation circle { fill: #00bed6; }
.water-cycle-scene[data-process="condensation"] .wc-condensation { opacity: 1; }
.wc-scenarios button small { display: block; font-size: 9px; }
.water-cycle-scene[data-scenario="woodland"] :is(.wc-evaporation, .wc-transpiration) path { stroke-width: 9; }
.water-cycle-scene[data-scenario="woodland"] .wc-interception path { stroke-width: 8; }
.water-cycle-scene[data-scenario="woodland"] .wc-infiltration path { stroke-width: 7; }
.water-cycle-scene[data-scenario="woodland"] .wc-runoff path { stroke-width: 3; }
.water-cycle-scene[data-scenario="urban"] :is(.wc-runoff, .wc-channel) path { stroke-width: 11; }
.water-cycle-scene[data-scenario="urban"] :is(.wc-infiltration, .wc-percolation, .wc-transpiration) path { stroke-width: 3; }
.water-cycle-scene[data-scenario="storm"] :is(.wc-precipitation, .wc-runoff) path { stroke-width: 12; }
.water-cycle-scene[data-scenario="storm"] .wc-channel path { stroke-width: 10; }
.water-cycle-scene[data-scenario="storm"] .wc-infiltration path { stroke-width: 6; }
.water-cycle-scene[data-scenario="storm"] :is(.wc-precipitation, .wc-runoff) path { animation-duration: .55s; }

.water-cycle-scene .wc-flow path{animation:none;stroke-dashoffset:var(--water-offset);transition:none}.water-cycle-scene text{font-size:17px}.water-cycle-scene .wc-flow text{font-size:17px}.water-cycle-scene .wc-flow{opacity:.16}.water-cycle-scene[data-process="all"] .wc-flow{opacity:.8}.water-cycle-scene .wc-storeLabels text{font-size:16px}.water-cycle-scene[data-process="stores"] .wc-flow{opacity:.12}

.water-cycle-scene .wc-flow text,.water-cycle-scene .wc-storeLabels text{font-size:25px;font-weight:600}
.water-cycle-scene .wc-flow text,.water-cycle-scene .wc-storeLabels{display:none}
.water-cycle-scene[data-process="stores"] .wc-storeLabels{display:block}
.water-cycle-scene[data-process="evaporation"] .wc-evaporation text{display:block}
.water-cycle-scene[data-process="transpiration"] .wc-transpiration text{display:block}
.water-cycle-scene[data-process="condensation"] .wc-condensation text{display:block}
.water-cycle-scene[data-process="precipitation"] .wc-precipitation text{display:block}
.water-cycle-scene[data-process="infiltration"] .wc-infiltration text{display:block}.water-cycle-scene[data-process="percolation"] .wc-percolation text{display:block}
.water-cycle-scene[data-process="runoff"] .wc-runoff text{display:block}
.water-cycle-scene[data-process="groundwater"] .wc-groundwater text{display:block}
.water-cycle-scene[data-process="all"] :is(.wc-runoff,.wc-infiltration) text{display:block}.water-cycle-scene[data-process="all"] .wc-flow:not(.wc-runoff):not(.wc-infiltration){opacity:.22}.water-cycle-scene[data-scenario="woodland"] .wc-buildings{display:none}.water-cycle-scene[data-scenario="urban"] .wc-trees{display:none}
.chapter-model>.river-3d-wrap,.chapter-question-figure>.river-3d-wrap{position:relative;width:100%;height:100%;min-height:0}.river-model-fallback{position:absolute;inset:0}.river-model-fallback>svg{width:100%;height:100%}.river-3d-wrap>[data-three-host]{position:absolute;inset:0;z-index:1}.river-3d-wrap:has(canvas)>.river-model-fallback{visibility:hidden}.river-orbit-hint{position:absolute;z-index:2;bottom:3px;right:8px;font-size:10px;color:#526a65;background:#ffffffcb;padding:3px 7px;border-radius:6px;pointer-events:none}.chapter-question-figure .river-orbit-hint{display:none}
.river-camera-reset{position:absolute;z-index:3;top:6px;right:8px;min-height:32px;padding:3px 10px;font-size:11px;background:#fff;border:1px solid #99e5ef;border-radius:10px;color:#007b8c;cursor:pointer}.river-camera-reset:active{transform:translateY(2px)}.chapter-question-figure .river-camera-reset{display:none}
.river-scene-badge{position:absolute;z-index:2;left:8px;top:6px;max-width:70%;padding:6px 9px;border-radius:9px;background:#ffffffec;color:#315451;font-size:12px;pointer-events:none}.chapter-question-figure .river-scene-badge{font-size:10px;top:3px;padding:3px 5px}
.industry-model{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.industry-model>svg{flex:1;width:100%;min-height:0}.industry-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#f0fafb;border:1px solid var(--maqua-blue40);border-radius:10px;padding:7px 9px}.industry-readout>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;min-width:0}.industry-readout span{font-size:clamp(10px,1.2vw,12px);color:#526a65;line-height:1.2}.industry-readout strong{font-size:clamp(12px,1.5vw,17px);line-height:1.25;color:#243c35}.chapter-question-figure .industry-readout{padding:4px}.chapter-question-figure .industry-readout span{font-size:10px}.chapter-question-figure .industry-readout strong{font-size:12px}
.chapter-model>.hk-industry-model,.chapter-question-figure>.hk-industry-model{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;align-items:center;width:100%}
.chapter-model>.hk-industry-model>svg,.chapter-question-figure>.hk-industry-model>svg{flex:1;min-height:0;width:100%;max-height:100%;object-fit:contain}
.chapter-model>.industry-model,.chapter-question-figure>.industry-model{flex-direction:column}
.chapter-model>.industry-model>svg,.chapter-question-figure>.industry-model>svg{width:100%}
.hk-model-note{flex:none;max-width:900px;margin:0;color:#527274;font-size:clamp(10px,1.2vw,13px);line-height:1.4;text-align:center;padding:0 10px}
/* Original G30 settlements plus a compact single-language population readout. */
.chapter-model>.city-model,.chapter-question-figure>.city-model{height:100%;min-height:0;width:100%;display:flex;flex-direction:column;gap:6px}
.city-model>svg{flex:1;min-height:0;width:100%;object-fit:contain}
.city-model .industry-readout{grid-template-columns:repeat(4,minmax(0,1fr));flex-shrink:0}
.city-model .hk-model-note{margin:0;line-height:1.35;font-size:11px;text-align:center;color:#526a65}
@media(max-width:480px){.city-model .industry-readout{gap:3px;padding:5px}.city-model .industry-readout span{font-size:9px}.city-model .industry-readout strong{font-size:13px}.city-model .hk-model-note{font-size:10px}}

.city-model .industry-readout{width:100%;box-sizing:border-box}

/* Readable G25 transport values on small screens. */
.chapter-lesson[data-topic="G25-TRANSPORT"] .industry-readout span{font-size:14px;line-height:1.25}
.chapter-lesson[data-topic="G25-TRANSPORT"] .industry-readout strong{font-size:16px;line-height:1.25}

.chapter-lesson[data-topic="G25-RESOURCES"] .industry-readout span{font-size:14px;line-height:1.25}
.chapter-lesson[data-topic="G25-RESOURCES"] .industry-readout strong{font-size:16px;line-height:1.25}

.chapter-lesson[data-topic="G25-NETWORK"] .industry-readout span{font-size:14px}.chapter-lesson[data-topic="G25-NETWORK"] .industry-readout strong{font-size:16px}

.g26-factor-activity{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;gap:20px}.g26-factor-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.g26-factor-choices button{min-height:48px}.g26-factor-link{min-height:68px;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;border-radius:18px;background:#eef9fa;color:#205058;font-size:16px;font-weight:700;text-align:center}.g26-factor-link span:nth-child(2){font-size:22px;color:#009bb0}

.g26-textile-activity{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;gap:18px}.g26-textile-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.g26-textile-inputs button{min-height:48px}.g26-textile-flow{display:flex;align-items:center;justify-content:center;gap:8px;min-height:70px;padding:10px;border-radius:18px;background:#eef9fa;color:#205058;font-size:16px;font-weight:700;text-align:center;flex-wrap:wrap}.g26-textile-flow span:nth-child(even){color:#009bb0}.g26-textile-retry{text-align:center;color:#9c5c25;font-size:16px}

.g26-training,.g26-reuse{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;gap:12px}.g26-training-label{text-align:center;color:#5c7375;font-size:14px}.g26-training-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.g26-training-cards>div{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;background:#eef9fa;border-radius:16px;text-align:center;font-size:16px}.g26-training-added{color:#008b9d}.g26-training-result,.g26-reuse-result{padding:12px;border-radius:14px;background:#e4f7f8;color:#205058;text-align:center;font-size:16px;font-weight:700}.g26-training-extra{text-align:center;font-size:14px;color:#526867}.g26-reuse-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.g26-reuse-choices button{min-height:48px}

.g26-value-activity{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;gap:10px}.g26-value-activity>svg,.g26-value-activity>.hk-industry-model{min-height:0;max-height:calc(100% - 75px);width:100%;object-fit:contain}.g26-value-activity>.hk-industry-model svg{width:100%;height:100%;max-height:100%}.g26-value-options{display:flex;justify-content:center;gap:8px}.g26-value-options button{min-width:70px;min-height:46px}.g26-value-retry{text-align:center;color:#9c5c25;font-size:16px}

.g26-component-activity{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;gap:16px}.g26-component-result{display:flex;justify-content:center;align-items:center;gap:10px;min-height:64px;padding:10px;border-radius:16px;background:#eef9fa;color:#205058;text-align:center;font-size:16px;font-weight:700;flex-wrap:wrap}.g26-component-result span:nth-child(2){color:#009bb0}

.geo-session .chapter-model>.g26-value-activity>svg{display:block;width:100%;height:auto;flex:0 0 auto;max-height:calc(100% - 75px)}

.g26-double{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;gap:14px}.g26-double-note{text-align:center;font-size:14px;color:#526867}.g26-double-row{display:grid;grid-template-columns:58px 1fr;gap:8px;align-items:center;font-size:16px;font-weight:700}.g26-double-bar{display:flex;height:48px;overflow:hidden;border-radius:10px;background:#eef5f4}.g26-double-bar span{display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700}.g26-double-fabric{background:#f2d4a4;color:#5c431e}.g26-double-fabric.deducted{opacity:.3;text-decoration:line-through}.g26-double-added{background:#8edce5;color:#16464d}.g26-double-total{font-size:19px;font-weight:700;text-align:center;color:#205058}
.geo-session .chapter-model>.g26-double{align-items:stretch}.g26-double-row{width:100%}

.g26-points{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;gap:14px}.g26-points-bars{display:flex;justify-content:center;align-items:center;gap:15px}.g26-points-bars div{display:flex;flex-direction:column;align-items:center;gap:8px;background:#e7f8fa;border-radius:16px;padding:12px 22px;font-size:16px}.g26-points-bars strong{font-size:24px}.g26-points-options{display:flex;justify-content:center;gap:8px}.g26-points-options button{min-width:65px;min-height:46px}.g26-points-result{min-height:24px;text-align:center;font-size:16px;color:#205058;font-weight:700}

.g27-impact{width:100%;max-width:32rem;margin:auto;display:grid;gap:10px}.g27-impact-row{border:2px solid #b5eaf0;border-radius:14px;padding:8px 10px;background:#f4fbfc}.g27-impact-label{display:flex;justify-content:space-between;gap:8px;font-size:1rem;font-weight:700;line-height:1.3}.g27-impact-label span{color:#007f91}.g27-impact-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}.g27-impact-buttons button{min-height:40px;padding:5px 8px;font-size:1rem;line-height:1.2}

.g27-policy{width:100%;max-width:32rem;margin:auto;display:grid;gap:14px}.g27-policy-era{color:#49696d;font-weight:700;font-size:1rem;text-align:center}.g27-policy-options{display:grid;gap:10px}.g27-policy-options button{min-height:48px;font-size:1rem}.g27-policy-feedback{min-height:44px;display:flex;gap:8px;align-items:center;justify-content:center;color:#007f91;font-size:1rem}.g27-policy-feedback span{padding:6px 10px;border-radius:9px;background:#d6f4f7;font-weight:700}
.chapter-model>.g27-impact,.chapter-model>.g27-policy{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;min-width:0;max-width:32rem}
.g27-impact-row{flex:0 0 auto;min-width:0;box-sizing:border-box}
.g27-impact-buttons{min-width:0}.g27-impact-buttons button{min-width:0;white-space:normal}

.chapter-model>.g27-carbon{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;max-width:32rem;min-width:0}.g27-carbon svg{display:block;width:100%;height:auto;max-height:45%;flex:0 1 auto}.g27-carbon-question{font-size:1rem;font-weight:700;text-align:center}.g27-carbon-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.g27-carbon-options button{min-width:0;min-height:42px;padding:5px;font-size:1rem}.g27-carbon-feedback{min-height:24px;text-align:center;font-size:1rem;color:#007f91}
.chapter-model>.g27-carbon>svg{display:block;width:100%;height:auto;max-height:none;flex:0 0 auto}

.chapter-model>.g28-hinterland{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:10px;max-width:32rem;min-width:0}.chapter-model>.g28-hinterland>svg{display:block;width:100%;height:auto;max-height:65%;flex:0 0 auto}.g28-hinterland-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.g28-hinterland-buttons button{min-width:0;min-height:44px;font-size:1rem;white-space:normal}

.g28-sr-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
