/* Scoped to the rainwater experience; shared pages keep their existing diagrams. */
.ww-rain-process{--rain-blue:#004c97;--rain-cyan:#00b5e2;--rain-line:#cadde9;--rain-header:72px;color:#425061;padding:32px 24px 36px;background:linear-gradient(145deg,#f0f9fd,#e7f3fa 60%,#f4f9fc)}
.ww-rain-process *{box-sizing:border-box}
.ww-rain-process [hidden]{display:none!important}
.ww-rain-process .rain-wrap{max-width:1440px;margin:auto}
.ww-rain-process .rain-eyebrow,.ww-rain-process .rain-zone{font:500 11px/1.5 var(--mono,monospace);letter-spacing:.12em;color:#64829b}
.ww-rain-process .rain-eyebrow{color:#0089af;margin:0 0 12px}
.ww-rain-process h2{color:var(--rain-blue);font-size:clamp(28px,3.1vw,44px);line-height:1.16;letter-spacing:-.025em;margin:0 0 16px;max-width:1000px}
.ww-rain-process h2 em{font-style:normal;color:var(--rain-cyan)}
.ww-rain-process .rain-lead{font-size:17px;line-height:1.65;max-width:860px;margin:0 0 28px}
.ww-rain-process .rain-mount{border:1px solid #c4dce9;border-radius:18px;background:#f4f8fb;box-shadow:0 8px 32px #004c9709;overflow:clip}
.ww-rain-process .rain-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:20px;padding:20px}
.ww-rain-process .rain-drawing{min-width:0}
.ww-rain-process .rain-capture>svg{width:100%;height:auto;display:block;margin-top:18px}
.ww-rain-process .rain-piece{cursor:pointer;outline:none}
.ww-rain-process .rain-piece:hover,.ww-rain-process .rain-piece:focus-visible,.ww-rain-process .rain-piece[aria-pressed=true]{filter:drop-shadow(0 0 3px #00b5e288)}
.ww-rain-process .rain-svg-label{font:500 16px var(--font,sans-serif);fill:var(--rain-blue);stroke:none;text-anchor:middle}
.ww-rain-process .rain-svg-small{font:500 11px var(--mono,monospace);fill:#718ba1;stroke:none;text-anchor:middle;letter-spacing:.05em}
.ww-rain-process .rain-svg-number circle{fill:var(--rain-blue);stroke:none}
.ww-rain-process .rain-svg-number text{fill:white;stroke:none;text-anchor:middle;font:600 10px var(--font,sans-serif)}
.ww-rain-process .rain-piece[aria-pressed=true] .rain-svg-number circle{fill:#0095b6}
.ww-rain-process .rain-capture-link{fill:none;stroke:#004c97;stroke-width:2.5}
.ww-rain-process .rain-capture-link.is-flow{stroke:#004c97;stroke-width:3;stroke-dasharray:9 4;animation:rain-flow 1s linear infinite}
@keyframes rain-flow{to{stroke-dashoffset:-13}}
.ww-rain-process .rain-scene-note{margin:3px 0 0;font-size:11px;color:#698298;text-align:center}
.ww-rain-process .rain-handoff{display:flex;align-items:center;gap:14px;margin:12px 0 16px;padding:0 12px;font-size:12px;color:#59778f}
.ww-rain-process .rain-handoff span{height:32px;border-left:3px solid #00b5e2;position:relative}
.ww-rain-process .rain-handoff span:after{content:'';position:absolute;bottom:0;left:-6px;border:5px solid transparent;border-top-color:#00b5e2;transform:translateY(7px)}
.ww-rain-process .rain-handoff p{margin:0}.ww-rain-process .rain-handoff b{color:#004c97}
.ww-rain-process h3{font-size:23px;line-height:1.3;color:#004c97;margin:8px 0 14px}
.ww-rain-process button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ww-rain-process button:focus-visible,.ww-rain-process g[role=button]:focus-visible{outline:3px solid #00a2cc;outline-offset:4px}
.ww-rain-process .rain-use-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.ww-rain-process .rain-use-buttons button{min-width:0;min-height:84px;padding:13px 12px;border:1px solid #00294f;border-radius:12px;background:#00294f;text-align:left;color:#fff;transition:background .2s,border-color .2s,box-shadow .2s}
.ww-rain-process .rain-use-buttons strong{font-size:14px;display:block;line-height:1.4}
.ww-rain-process .rain-use-buttons span{display:block;color:#fff;font-size:11px;line-height:1.5;margin-top:5px}
.ww-rain-process .rain-use-buttons button[aria-pressed=true]{background:#004c97;border-color:#00b5e2;box-shadow:inset 0 0 0 2px #00b5e2}
.ww-rain-process .rain-condition{font-size:11px;line-height:1.6;color:#718497;margin:12px 0 0}
.ww-rain-process .rain-treatment{display:flex;gap:18px;padding:18px 0 8px;position:relative;align-items:start}
.ww-rain-process .rain-stage{position:relative;min-width:0;flex:1}
.ww-rain-process .rain-treatment .rain-stage:not(:last-child):after{content:'→';position:absolute;right:-17px;top:75px;color:#00b5e2;font:400 24px var(--font,sans-serif)}
.ww-rain-process .rain-treatment .rain-stage.is-passed:not(:last-child):after{color:#004c97}
.ww-rain-process .rain-equipment{display:block;width:100%;background:transparent;border:0;padding:12px 2px;text-align:center;color:#004c97;border-radius:12px;position:relative;transition:background .25s}
.ww-rain-process .rain-equipment>svg{display:block;width:100%;max-width:180px;height:auto;margin:0 auto 12px}
.ww-rain-process .rain-equipment:hover,.ww-rain-process .rain-equipment[aria-pressed=true]{background:#e6f4fb}
.ww-rain-process .rain-step-number{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#004c97;color:#fff;font-size:10px;margin:0 auto 9px}
.ww-rain-process .rain-tag{display:block;font-size:9px;line-height:1.5;color:#718ba1;min-height:28px}
.ww-rain-process .rain-tag.is-base{color:#0085a8}
.ww-rain-process .rain-name{display:block;font-size:14px;font-weight:600;line-height:1.4}
.ww-rain-process .rain-stage-copy{display:none}
.ww-rain-process .rain-route-caption{border-left:2px solid #00b5e2;padding-left:12px;color:#5b7488;font-size:12px;line-height:1.65;margin:6px 0 16px}
.ww-rain-process .rain-detail{align-self:start;position:sticky;top:100px;padding:18px 16px;background:#fff;border:1px solid #d2e3ed;border-radius:14px;min-height:210px;box-shadow:0 6px 20px #004c9706}
.ww-rain-process .rain-detail-kicker{font:500 10px/1.5 var(--mono,monospace);letter-spacing:.07em;color:#0089ad}
.ww-rain-process .rain-detail h4{font-size:20px;line-height:1.35;color:#004c97;margin:12px 0}
.ww-rain-process .rain-detail p{font-size:14px;line-height:1.7;margin:0}
.ww-rain-process .rain-detail button,.ww-rain-process [data-close]{min-height:44px;padding:8px 12px;border:1px solid #c8dce9;background:#f5fafd;color:#004c97;border-radius:9px;font-size:12px;margin-top:15px}
.ww-rain-process .rain-detail button span,.ww-rain-process [data-close] span{margin-left:12px;font-size:18px}
.ww-rain-process .rain-options,.ww-rain-process .rain-automation{border-top:1px solid #d3e3ed;padding:18px 22px}
.ww-rain-process .rain-section-head{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:12px}.ww-rain-process .rain-section-head h3{margin-bottom:0}.ww-rain-process .rain-section-head>p{font-size:13px;line-height:1.65;max-width:410px;margin:0}
.ww-rain-process .rain-options-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ww-rain-process .rain-option{min-width:0;border:1px dashed #bcd3e3;background:#fff;border-radius:12px;padding:12px;color:#004c97;transition:background .2s,border-color .2s}
.ww-rain-process .rain-option svg{width:100%;max-width:110px;display:block;margin:0 auto 8px}
.ww-rain-process .rain-option>span{display:block;font-size:14px;font-weight:600;line-height:1.4}.ww-rain-process .rain-option small{display:block;color:#6b8599;font-size:10px;line-height:1.5;margin-top:6px}
.ww-rain-process .rain-option[aria-pressed=true]{background:#e5f6fb;border:1px solid #00afd8}
.ww-rain-process .rain-option-detail,.ww-rain-process .rain-auto-detail{margin-top:10px;padding:14px;background:white;border:1px solid #cbdfea;border-radius:12px;font-size:14px;line-height:1.7}
.ww-rain-process .rain-option-detail strong,.ww-rain-process .rain-auto-detail strong{color:#004c97;font-size:18px}.ww-rain-process .rain-option-detail p,.ww-rain-process .rain-auto-detail p{margin:8px 0 0;max-width:100ch}
.ww-rain-process .rain-automation-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ww-rain-process .rain-automation-buttons button{display:flex;align-items:center;gap:12px;border:1px solid #c8deeb;border-radius:12px;background:#fff;color:#004c97;padding:12px;text-align:left;font-size:14px;min-height:56px}
.ww-rain-process .rain-automation-buttons button>span{font:500 12px var(--mono,monospace);color:#00a5cb}
.ww-rain-process .rain-automation-buttons button[aria-pressed=true]{background:#e1f5fb;border-color:#00afd5}
.ww-rain-process .rain-control-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:16px}
.ww-rain-process .rain-control-map>div{border-left:3px dashed #00a2cb;padding:12px 18px;background:#e9f4fa;border-radius:0 8px 8px 0}
.ww-rain-process .rain-control-map span{display:block;color:#648096;font-size:11px;margin-bottom:6px}.ww-rain-process .rain-control-map b{color:#004c97;font-size:13px;font-weight:500;line-height:1.7}
.ww-rain-process .is-controlled{filter:drop-shadow(0 0 4px #00b5e2aa)}
.ww-rain-process .rain-foot{display:grid;grid-template-columns:1fr 1fr;gap:30px;border-top:1px solid #d3e3ed;background:#eaf4fa;padding:16px 22px;font-size:12px;line-height:1.7;color:#657f94}.ww-rain-process .rain-foot p{margin:0}.ww-rain-process .rain-foot b{color:#004c97}
.ww-rain-process .rain-legal{font-size:12px;line-height:1.7;color:#71859a;margin:18px 0 0;max-width:110ch}
.ww-rain-process .rain-fallback{padding:24px;background:#fff;border:1px solid #c8dce9;border-radius:12px;line-height:1.8}
.ww-rain-process .rain-capture-mobile,.ww-rain-process .rain-mobile-nav{display:none}
.ww-rain-process .sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1000px){
 .ww-rain-process{padding:28px 18px}.ww-rain-process .rain-layout{display:block;padding:20px 16px}
 .ww-rain-process .rain-detail,.ww-rain-process .rain-capture{display:none}.ww-rain-process .rain-capture-mobile{display:block}
 .ww-rain-process .rain-mount{overflow:visible}.ww-rain-process .rain-mobile-nav{display:block;position:sticky;top:var(--rain-header);z-index:15;background:#f4f8fb;border-bottom:1px solid #ccdfeb;padding:9px 16px;box-shadow:0 6px 10px #004c9708}
 .ww-rain-process .rain-mobile-nav>div{display:flex;justify-content:space-between;gap:12px;font:500 10px var(--mono,monospace);color:#628299;margin-bottom:4px}.ww-rain-process .rain-mobile-nav strong{color:#004c97;font:600 12px var(--font,sans-serif)}
 .ww-rain-process .rain-mobile-nav nav{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:2px}.ww-rain-process .rain-mobile-nav button{min-width:44px;min-height:44px;border:0;border-radius:8px;background:transparent;color:#004c97;font-size:13px}
 .ww-rain-process .rain-mobile-nav button.is-passed{background:#e1f2fa}.ww-rain-process .rain-mobile-nav button[aria-current=step]{box-shadow:inset 0 0 0 2px #00b5e2}.ww-rain-process .rain-mobile-nav button[aria-pressed=true]{background:#004c97;color:#fff}
 .ww-rain-process .rain-stage{padding:12px 0 22px 43px;min-height:0;position:relative}.ww-rain-process .rain-stage:before,.ww-rain-process .rain-stage:after{content:''!important;position:absolute;left:14px;top:38px;bottom:-38px;width:3px;background:#d1e2ed;right:auto!important;transform:none;z-index:0}
 .ww-rain-process .rain-stage:after{background:#00b5e2;transform:scaleY(0);transform-origin:top;transition:transform .35s}
 .ww-rain-process .rain-stage.is-passed:after{transform:scaleY(1)}
 .ww-rain-process .rain-equipment{padding:0;text-align:left}.ww-rain-process .rain-equipment>svg{max-width:180px;margin:0 auto 8px}.ww-rain-process .rain-step-number{position:absolute;left:-42px;top:10px;width:26px;height:26px;margin:0;z-index:2;background:#f4f8fb;border:2px solid #bfd6e5;color:#004c97;font-size:12px}
 .ww-rain-process .rain-stage.is-passed .rain-step-number,.ww-rain-process .rain-stage.is-current .rain-step-number{background:#004c97;color:white;border-color:#004c97}
 .ww-rain-process .rain-stage.is-current .rain-step-number{box-shadow:0 0 0 3px #d9f4fb}.ww-rain-process .rain-name{font-size:21px}.ww-rain-process .rain-tag{font-size:10px;min-height:0;margin-bottom:6px}
 .ww-rain-process .rain-stage-copy{display:block;font-size:14px;line-height:1.6;margin:8px 0 0}.ww-rain-process .rain-equipment[aria-pressed=true]{background:transparent}.ww-rain-process .rain-equipment[aria-pressed=true] svg{filter:drop-shadow(0 3px 4px #00b5e233)}
 .ww-rain-process .rain-chlorine{min-height:44px;margin-top:12px;padding:10px 12px;background:#e4f5fb;border:1px solid #aacee0;color:#007a9e;border-radius:9px;font-size:12px}.ww-rain-process .rain-chlorine[aria-pressed=true]{background:#cceef9}
 .ww-rain-process .rain-handoff{margin:0;padding:0 0 25px 43px;position:relative}.ww-rain-process .rain-handoff span{position:absolute;left:14px;top:0;bottom:0;height:auto;border-left-color:#d1e2ed}.ww-rain-process .rain-handoff span:after{display:none}
 .ww-rain-process .rain-use{position:relative;padding:12px 0 14px 43px}.ww-rain-process .rain-use:before{content:'';position:absolute;left:14px;top:0;bottom:0;width:3px;background:#d1e2ed}.ww-rain-process h3{font-size:22px}.ww-rain-process .rain-use-buttons{grid-template-columns:1fr}.ww-rain-process .rain-use-buttons button{min-height:68px;padding:12px}.ww-rain-process .rain-use-buttons strong{font-size:15px}.ww-rain-process .rain-use-buttons span{font-size:12px}
 .ww-rain-process .rain-treatment{display:block;padding:0}.ww-rain-process .rain-treatment .rain-stage:after{top:38px}
 .ww-rain-process .rain-route-caption{margin:0;padding:10px 0 20px 43px;position:relative;border:0}.ww-rain-process .rain-route-caption:before{content:'';position:absolute;left:14px;top:0;bottom:0;width:3px;background:#d1e2ed}
 .ww-rain-process .rain-destinations{border:0;padding:0}.ww-rain-process .rain-destinations>.rain-zone{padding:16px 0 10px 43px}.ww-rain-process .rain-delivery .rain-stage{max-width:none;margin:0}.ww-rain-process .rain-delivery .rain-equipment{display:block;text-align:left}.ww-rain-process .rain-delivery svg{margin:0 auto 12px}.ww-rain-process .rain-delivery .rain-step-number{margin:0}
 .ww-rain-process .rain-destination-cards{flex-direction:column;margin-left:43px}.ww-rain-process .rain-destination-cards button{min-height:84px}.ww-rain-process .rain-destination-cards svg{width:58px}.ww-rain-process .rain-empty{padding:0;margin:0}
 .ww-rain-process .rain-options,.ww-rain-process .rain-automation{padding:18px 16px}.ww-rain-process .rain-section-head{display:block;margin-bottom:12px}.ww-rain-process .rain-section-head>p{margin-top:12px}
 .ww-rain-process .rain-options-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ww-rain-process .rain-option{padding:10px 8px}.ww-rain-process .rain-option svg{max-width:100px}.ww-rain-process .rain-option>span{font-size:14px}.ww-rain-process .rain-option small{font-size:10px}
 .ww-rain-process .rain-automation-buttons{grid-template-columns:1fr;gap:9px}.ww-rain-process .rain-automation-buttons button{min-height:64px;font-size:14px}.ww-rain-process .rain-control-map{grid-template-columns:1fr}
 .ww-rain-process .rain-foot{display:block;padding:16px}.ww-rain-process .rain-foot p+p{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.ww-rain-process *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.ww-rain-process .rain-chlorine-detail{margin-top:12px;padding:16px;background:white;border:1px solid #cbdfea;border-radius:12px;font-size:14px;line-height:1.7}
.ww-rain-process .rain-chlorine-detail strong{color:#004c97}
.ww-rain-process .rain-chlorine-detail p{margin:8px 0}

/* Continuous desktop piping links the shared reserve, treatment and receiving tank. */
.ww-rain-process .rain-drawing{position:relative}
.ww-rain-process .rain-bridges{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.ww-rain-process .rain-bridges path[data-edge-to]{fill:none;stroke:#004c97;stroke-width:2.5;stroke-linejoin:round}
.ww-rain-process .rain-bridges path.is-flow{stroke:#004c97;stroke-width:3;stroke-dasharray:9 4;animation:rain-flow 1s linear infinite}
@media(min-width:1001px){
 .ww-rain-process .rain-use{padding-left:14px}
 .ww-rain-process .rain-handoff span{visibility:hidden}
 .ww-rain-process .rain-treatment .rain-stage:not(:last-child):after{content:'';width:18px;height:0;border-top:2px solid #00b5e2;top:calc(45px + (100% - 110px)*.4)}
 .ww-rain-process .rain-treatment .rain-stage.is-passed:not(:last-child):after{border-top:2px dashed #004c97}
}
@media(max-width:1000px){.ww-rain-process .rain-bridges{display:none}}

@media(min-width:1001px){.ww-rain-process .rain-treatment .rain-stage:after{display:none}}

.ww-rain-process .rain-use{margin:8px 16px 22px 0}
.ww-rain-process .rain-treatment-heading{padding-left:14px}
@media(max-width:1000px){.ww-rain-process .rain-use{margin:0}.ww-rain-process .rain-treatment-heading{position:relative;padding:10px 0 10px 43px}.ww-rain-process .rain-treatment-heading:before{content:"";position:absolute;left:14px;top:0;bottom:0;width:3px;background:#d1e2ed}.ww-rain-process .rain-delivery svg{max-width:180px}}

/* Keep the water line visible over selection backgrounds and behind equipment. */
.ww-rain-process .rain-bridges{z-index:1}
.ww-rain-process .rain-equipment>svg,.ww-rain-process .rain-capture>svg{position:relative;z-index:2}

.ww-rain-process .rain-bridges path.product{stroke:#00b5e2}
@media(min-width:1001px){
 .ww-rain-process .rain-capture>svg{margin-top:8px}
 .ww-rain-process .rain-capture{position:relative}
 .ww-rain-process .rain-scene-note{position:absolute;bottom:8px;left:0;max-width:48%;margin:0;font-size:10px}
 .ww-rain-process .rain-handoff{display:none}
 .ww-rain-process .rain-treatment-heading{padding-left:0;margin:0}
 .ww-rain-process .rain-treatment{flex-direction:row-reverse;gap:28px;padding:8px 0 4px}
 .ww-rain-process .rain-treatment .rain-stage{flex:0 1 180px}
 .ww-rain-process .rain-use{padding-left:14px}
}
@media(max-width:1000px){
 .ww-rain-process .rain-stage.is-passed:after{background:repeating-linear-gradient(to bottom,#004c97 0 9px,transparent 9px 13px)}
}

/* Receiving branches remain next to the treatment, before its use controls. */
.ww-rain-process .rain-destinations{padding:4px 0 8px;border:0}
.ww-rain-process .rain-delivery .rain-distribution{max-width:480px;margin:0;padding:0 0 0 30px}
.ww-rain-process .rain-distribution-heading{display:flex;align-items:center;gap:9px;min-height:44px;background:transparent;border:0;padding:4px 0;color:#004c97}
.ww-rain-process .rain-distribution-heading .rain-step-number{position:static;margin:0;flex-shrink:0}
.ww-rain-process .rain-distribution-heading[aria-pressed=true] .rain-step-number{background:#008da9}
.ww-rain-process .rain-receivers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:16px}
.ww-rain-process .rain-receivers button{border:0;background:transparent;color:#004c97;padding:3px 4px 8px;min-width:0;border-radius:10px}
.ww-rain-process .rain-receivers button:hover,.ww-rain-process .rain-receivers button[aria-pressed=true]{background:#e2f3fa}
.ww-rain-process .rain-receivers svg{display:block;position:relative;z-index:2;width:100%;height:auto;max-width:130px;margin:0 auto 5px}
.ww-rain-process .rain-receivers strong{display:block;font-size:13px;line-height:1.35}
.ww-rain-process .rain-receiver-note{font-size:10px;color:#64829b;margin:4px 0 8px;text-align:center}
.ww-rain-process .rain-receiver-detail{display:none}
@media(min-width:1001px){
 .ww-rain-process .rain-treatment .rain-equipment{padding:8px 2px}
 .ww-rain-process .rain-treatment .rain-equipment>svg{max-width:150px;margin-bottom:6px}
 .ww-rain-process .rain-treatment .rain-tag{min-height:24px}
 .ww-rain-process .rain-treatment .rain-name{font-size:13px}
 .ww-rain-process .rain-route-caption{margin:6px 0 10px;font-size:11px}
 .ww-rain-process .rain-use h3{font-size:21px}
}
@media(max-width:1000px){
 .ww-rain-process .rain-delivery .rain-distribution{max-width:none;margin:0;padding:4px 0 8px 43px}
 .ww-rain-process .rain-distribution:before,.ww-rain-process .rain-distribution:after{bottom:calc(100% - 26px);top:0}
 .ww-rain-process .rain-distribution-heading .rain-step-number{position:absolute;left:1px;top:12px}
 .ww-rain-process .rain-receivers{gap:3px;padding-top:8px}
 .ww-rain-process .rain-receivers button{padding:4px 0 8px}
 .ww-rain-process .rain-receivers strong{font-size:12px}
 .ww-rain-process .rain-receiver-note{line-height:1.5}
 .ww-rain-process .rain-receiver-detail{display:block;background:#fff;border:1px solid #cbdfea;border-radius:10px;padding:12px;font-size:13px;line-height:1.6;margin:8px 0}
 .ww-rain-process .rain-receiver-detail strong{color:#004c97}
 .ww-rain-process .rain-receiver-detail p{margin:8px 0}
 .ww-rain-process .rain-use:before,.ww-rain-process .rain-route-caption:before{display:none}
}



/* The base train and its receiving branches share one compact desktop row. */
@media(min-width:1001px){
 .ww-rain-process .rain-capture>svg{width:72%;margin:4px auto 0 0}
 .ww-rain-process .rain-processing.is-short-train{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);column-gap:24px;align-items:start}
 .ww-rain-process .is-short-train .rain-treatment-heading{grid-column:2;grid-row:1;font-size:10px;min-height:17px}
 .ww-rain-process .is-short-train .rain-treatment{grid-column:2;grid-row:2;padding-top:0;gap:22px}
 .ww-rain-process .is-short-train .rain-treatment .rain-stage{flex:1}
 .ww-rain-process .is-short-train .rain-destinations{grid-column:1;grid-row:1 / 3;padding:0}
 .ww-rain-process .is-short-train .rain-distribution{padding-left:0;max-width:none}
 .ww-rain-process .is-short-train .rain-receivers{padding-top:6px;gap:8px}
 .ww-rain-process .is-short-train .rain-receivers svg{max-width:130px}
 .ww-rain-process .is-short-train .rain-receiver-note{margin-bottom:0}
}
@media(max-width:1000px){
 .ww-rain-process .rain-capture-mobile .rain-equipment>svg{max-width:129.6px}
 .ww-rain-process .rain-capture-mobile .rain-name{font-size:19px}
 .ww-rain-process .rain-capture-mobile .rain-stage{padding-bottom:16px}
}

@media(min-width:1001px){.ww-rain-process .rain-processing{width:72%;min-width:660px;max-width:100%}}
.ww-rain-process .rain-use-buttons button:hover{background:#013b74}

/* Extended desktop trains use the space beside capture and share the next row with destinations.
   DOM order stays hydraulic for mobile reading and keyboard navigation. */
@media(min-width:1001px){
 .ww-rain-process .rain-drawing.is-extended{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-items:start;row-gap:8px}
 .ww-rain-process .is-extended>.rain-zone{grid-column:1 / 7;grid-row:1}
 .ww-rain-process .is-extended .rain-capture{grid-column:1 / 7;grid-row:2}
 .ww-rain-process .is-extended .rain-capture>svg{width:96%}
 .ww-rain-process .is-extended .rain-scene-note{max-width:58%;font-size:9px}
 .ww-rain-process .is-extended .rain-processing,.ww-rain-process .is-extended .rain-treatment{display:contents}
 .ww-rain-process .is-extended .rain-treatment-heading{grid-column:7 / 9;grid-row:1;padding-left:8px;font-size:10px}
 .ww-rain-process .is-extended .rain-treatment .rain-stage{grid-row:3}
 .ww-rain-process .is-extended .rain-treatment .rain-stage:nth-child(1){grid-column:7 / 9;grid-row:2;align-self:center}
 .ww-rain-process .is-extended .rain-treatment .rain-stage:nth-child(2){grid-column:8}
 .ww-rain-process .is-extended .rain-treatment .rain-stage:nth-child(3){grid-column:7}
 .ww-rain-process .is-extended .rain-treatment .rain-stage:nth-child(4){grid-column:6}
 .ww-rain-process .is-extended .rain-treatment .rain-stage:nth-child(5){grid-column:5}
 .ww-rain-process .is-extended .rain-treatment .rain-equipment{padding:8px 2px}
 .ww-rain-process .is-extended .rain-treatment .rain-stage:not(:first-child) .rain-name{font-size:12px}
 .ww-rain-process .is-extended .rain-treatment .rain-stage:not(:first-child) .rain-tag{min-height:28px;font-size:8px}
 .ww-rain-process .is-extended .rain-destinations{grid-column:1 / 4;grid-row:3;padding:0}
 .ww-rain-process .is-extended.is-domestic .rain-destinations{grid-column:1 / 5}
 .ww-rain-process .is-extended .rain-distribution{max-width:none;padding-left:0}
 .ww-rain-process .is-extended .rain-distribution-heading{min-height:34px}
 .ww-rain-process .is-extended .rain-receivers{padding-top:0;gap:6px}
 .ww-rain-process .is-extended .rain-receivers strong{font-size:12px}
 .ww-rain-process .is-extended .rain-route-caption{grid-column:1 / -1;grid-row:4;margin:0}
 .ww-rain-process .is-extended .rain-use{grid-column:1 / -1;grid-row:5}
}

/* Mobile overview: existing symbols, one connected map and one stable detail panel. */
.ww-rain-process .rain-mobile-experience{display:none}
@media(max-width:1000px){
 .ww-rain-process .rain-mobile-experience{display:block;position:relative;overflow:visible}
 .ww-rain-process .rain-mobile-sticky{padding:0 10px 8px;background:#f4f8fb;isolation:isolate;border-radius:18px}
 .ww-rain-process .rain-mobile-experience.is-pinned .rain-mobile-sticky{position:sticky;top:var(--rain-header);z-index:12}
 .ww-rain-process .rain-mobile-nav{position:static;padding:8px 0 4px;box-shadow:none;border:0}
 .ww-rain-process .rain-mobile-nav nav{gap:0}
 .ww-rain-process .rain-mobile-nav button{padding:0;min-height:44px}
 .ww-rain-process .rain-capture-mobile,.ww-rain-process .rain-processing,.ww-rain-process .rain-handoff,.ww-rain-process .rain-drawing>.rain-zone{display:none}
 .ww-rain-process .rain-layout{padding:12px 14px}
 .ww-rain-process .rain-use,.ww-rain-process .rain-route-caption{padding-left:0}
 .ww-rain-process .rain-route-caption{padding-bottom:8px;font-size:12px}
 .ww-rain-process .rain-map{position:relative;width:100%;max-width:540px;margin:auto}
 .ww-rain-process .rain-map-pipes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:2}
 .ww-rain-process .rain-map-pipes path[data-edge-to]{fill:none;stroke:#004c97;stroke-width:2;stroke-linejoin:round}
 .ww-rain-process .rain-map-pipes path.product{stroke:#00b5e2}
 .ww-rain-process .rain-map-pipes .is-flow{stroke-dasharray:9 4;animation:rain-flow 1s linear infinite}
 .ww-rain-process .rain-map-heading{height:44px;display:flex;justify-content:space-between;align-items:center;color:#64829b;font:500 10px var(--mono,monospace)}
 .ww-rain-process .rain-map-heading button{display:flex;align-items:center;min-height:44px;background:transparent;border:0;color:#004c97;font-size:12px;padding:0 3px}
 .ww-rain-process .rain-map-heading svg{width:32px;height:32px}
 .ww-rain-process .rain-map-capture{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
 .ww-rain-process .rain-map-capture [data-node=rawStorage]{grid-column:1;grid-row:2}
 .ww-rain-process .rain-map-capture [data-node=firstFlush]{grid-column:2;grid-row:2}
 .ww-rain-process .rain-map-node{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:86px;border:0;background:transparent;color:#004c97;padding:0 4px 4px;border-radius:9px}
 .ww-rain-process .rain-map-node>svg{position:relative;z-index:3;display:block;width:90px;height:65px;flex-shrink:0}
 .ww-rain-process .rain-map-capture [data-node=roof]>svg{width:134px;height:65px}
 .ww-rain-process .rain-map-number{position:absolute;top:0;left:4px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border-radius:50%;background:#004c97;color:#fff;font-size:10px;line-height:1;z-index:4}
 .ww-rain-process .rain-map-label{position:relative;z-index:3;font-size:12px;line-height:1.2;max-width:100%;background:#f4f8fb;border-radius:3px;padding:1px 2px}
 .ww-rain-process .rain-map-node[aria-pressed=true],.ww-rain-process .rain-map-heading button[aria-pressed=true],.ww-rain-process .rain-map-delivery button[aria-pressed=true]{background:#def3fa}
 .ww-rain-process .rain-map-node[aria-pressed=true] .rain-map-number{background:#008fae}
 .ww-rain-process .rain-map-node[aria-pressed=true] .rain-map-label{background:#def3fa;font-weight:600}
 .ww-rain-process .rain-map-train{display:grid;grid-template-columns:repeat(var(--train-cols),minmax(0,1fr));gap:14px 2px;margin-top:12px;padding:0 5px}
 .ww-rain-process .rain-map-delivery{margin-top:8px;padding:0 4px 2px}
 .ww-rain-process .rain-map-delivery-title{position:relative;min-height:44px;border:0;background:#f4f8fb;color:#64829b;font:500 10px var(--mono,monospace);padding:0 4px 0 29px;z-index:3}
 .ww-rain-process .rain-map-delivery-title .rain-map-number{top:13px}
 .ww-rain-process .rain-map-delivery>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .ww-rain-process .rain-map-delivery [data-destination]{min-width:0;border:0;border-radius:8px;background:transparent;color:#004c97;padding:0 2px 3px}
 .ww-rain-process .rain-map-delivery svg{width:78px;height:54px;max-width:100%;position:relative;z-index:3;display:block;margin:auto}
 .ww-rain-process .rain-map-delivery [data-destination]>span{position:relative;z-index:3;font-size:12px;line-height:1.3;display:block}

}

@media(max-width:1000px){
 .ww-rain-process .rain-mobile-nav>div{line-height:14px;margin-bottom:2px}
 .ww-rain-process .rain-mobile-nav strong{line-height:14px}
 .ww-rain-process .rain-map-node{min-height:78px}
 .ww-rain-process .rain-map-node>svg{height:57px;width:79px}
 .ww-rain-process .rain-map-capture [data-node=roof]>svg{height:57px;width:125px}
 .ww-rain-process .rain-map-filter>svg{height:50px;width:70px}
 .ww-rain-process .rain-map-train{gap:12px 2px;margin-top:10px}
 .ww-rain-process .rain-map-delivery-title{min-height:22px;line-height:22px;padding-left:26px;display:block;width:max-content}
 .ww-rain-process .rain-map-delivery-title .rain-map-number{top:2px}
 .ww-rain-process .rain-map-delivery>div:not(.rain-map-delivery-title){padding-top:8px}
}

@media(max-width:1000px){
 .ww-rain-process .rain-mobile-nav{padding-top:4px}
 .ww-rain-process .rain-map-filter>svg{height:44px;width:61px}
 .ww-rain-process .rain-map-delivery svg{height:44px;width:64px}
 .ww-rain-process .rain-map-delivery>.rain-map-delivery-title{display:block}
}
@media(max-width:1000px){
 .ww-rain-process .rain-map-train{position:relative;margin-top:22px;row-gap:8px}
 .ww-rain-process .rain-map-train:before{content:'02 / TRATAMIENTO';position:absolute;top:-16px;right:8px;color:#64829b;font:500 10px/14px var(--mono,monospace)}
 .ww-rain-process .rain-mobile-nav{padding-top:0}
}

/* Mobile descriptions are modal: they never enlarge or unpin the water route. */
@media(max-width:1000px){
 .ww-rain-process .rain-map-hint{margin:6px 0 0;font-size:11px;line-height:1.4;color:#536e83;text-align:center}
 .ww-rain-process .is-compact .rain-mobile-nav nav{display:none}
 .ww-rain-process .is-compact .rain-map-heading{height:44px}
 .ww-rain-process .is-compact .rain-map-node{min-height:66px}
 .ww-rain-process .is-compact .rain-map-node>svg{height:42px;width:68px}
 .ww-rain-process .is-compact .rain-map-capture [data-node=roof]>svg{width:100px}
 .ww-rain-process .is-compact .rain-map-filter>svg{height:38px;width:54px}
 .ww-rain-process .is-compact .rain-map-delivery svg{height:38px;width:54px}
 .ww-rain-process .is-compact .rain-map-train{row-gap:6px}
}
.rain-mobile-popup{box-sizing:border-box;width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 48px);margin:auto;padding:26px 22px;border:1px solid #cbdfea;border-radius:18px;background:#fff;color:#33404f;box-shadow:0 18px 60px #001d3b40;overflow:auto;overscroll-behavior:contain;font-family:Poppins,system-ui,sans-serif}
.rain-mobile-popup::backdrop{background:rgba(0,25,51,.48)}
.rain-popup-kicker{display:block;padding-right:40px;margin-bottom:12px;color:#007e9e;font-size:10px;font-weight:600;letter-spacing:.1em}
.rain-mobile-popup h2{margin:0 32px 12px 0;color:#004c97;font-size:22px;line-height:1.25}
.rain-mobile-popup p{margin:0;font-size:15px;line-height:1.65}
.rain-popup-close{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:#004c97;font-size:28px;cursor:pointer}
.rain-popup-close:focus-visible{outline:3px solid #00b5e2;outline-offset:-3px}

@media(max-width:1000px){
 .ww-rain-process .is-tight .rain-mobile-nav,.ww-rain-process .is-tight .rain-map-hint{display:none}
 .ww-rain-process .is-tight .rain-map-node{min-height:60px}
 .ww-rain-process .is-tight .rain-map-node>svg,.ww-rain-process .is-tight .rain-map-capture [data-node=roof]>svg{height:36px}
 .ww-rain-process .is-tight .rain-map-delivery svg{height:32px}
}
