/* A single sticky screen: drawing and active copy share the same scroll lifetime. */
.ss-story{--ss-top:100px;--ss-bottom:24px;max-width:1240px;margin:0 auto;padding:28px 28px 64px;color:var(--ink,#24332e)}
.ss-stage{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);align-items:center;min-width:0}
.ss-visual{min-width:0}.ss-figure{margin:0;background:linear-gradient(145deg,#fafcf8,#edf4eb);border:1px solid #d9e3da;border-radius:22px;overflow:hidden;box-shadow:0 22px 48px -32px #24262340}
.ss-stage-top,.ss-stage-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.ss-stage-top{font-size:11px;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid #d9e3da}.ss-stage-top b{white-space:nowrap;color:#116e80}.ss-diagram{display:block;width:100%;height:auto;max-height:340px;stroke:none;stroke-width:1;fill:none}.ss-diagram .ss-svg-label{font:500 14px var(--text,Arial,sans-serif);fill:#52625b;stroke:none}.ss-diagram .ss-svg-note{font:500 12px var(--text,Arial,sans-serif);fill:#52625b;stroke:none}.ss-diagram .ss-radiator{fill:#e8ece7;stroke:#9aa99e;stroke-width:1.5}.ss-diagram .ss-radiator rect:not(:first-child){fill:#fafbf8}.ss-pipe{fill:none;stroke-width:6;stroke-linejoin:round;stroke-linecap:round}.ss-hot{stroke:#efa53e}.ss-cold{stroke:#49c3db}.ss-air{fill:none;stroke:#49c3db;stroke-width:3;stroke-linecap:round;stroke-dasharray:8 11}.ss-highlight{fill:#8cdc5a26;stroke:#116e80;stroke-width:3;stroke-linecap:round;opacity:0;transition:opacity .25s}.ss-highlight path{fill:none}.ss-check{fill:#2e6845;stroke:#fff;stroke-width:4;opacity:0;transition:opacity .25s}.ss-check path{fill:none;stroke-linecap:round;stroke-linejoin:round}.ss-story[data-phase="0"] [data-scene-phase="0"],.ss-story[data-phase="1"] [data-scene-phase="1"],.ss-story[data-phase="2"] [data-scene-phase="2"],.ss-story[data-phase="3"] [data-scene-phase="3"]{opacity:1}
.ss-phase-label{font-size:14px;font-weight:700;color:#24332e}.ss-progress{display:block;width:40%;height:4px;background:#d9e3da;border-radius:8px;overflow:hidden}.ss-progress i{display:block;height:100%;width:25%;background:#efa53e;transition:width .25s}.ss-story[data-phase="1"] .ss-progress i{width:50%}.ss-story[data-phase="2"] .ss-progress i{width:75%}.ss-story[data-phase="3"] .ss-progress i{width:100%}.ss-figure figcaption{padding:0 20px 14px;font-size:10px;line-height:1.4;color:#52625b}.ss-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}.ss-controls[hidden]{display:none}.ss-controls button{min-height:48px;border:1px solid #d2ded4;background:#fff;border-radius:9px;color:#52625b;font:700 13px var(--text,Arial,sans-serif);padding:6px 3px;cursor:pointer}.ss-controls button span{display:block;font-size:10px;font-weight:500;margin-top:3px}.ss-controls button[aria-pressed="true"]{background:#242623;border-color:#242623;color:#fff}.ss-controls button:focus-visible{outline:3px solid #efa53e;outline-offset:3px}.ss-instruction{font-size:11px;line-height:1.5;color:#52625b;margin:12px 0 0}
.ss-steps{list-style:none;margin:0;padding:0;min-width:0}.ss-step{display:flex;gap:16px;padding:24px 0;border-bottom:1px solid #d9e3da}.ss-step:last-child{border:0}.ss-step-number{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid #c9d8cd;border-radius:50%;color:#52625b;font-size:12px;font-weight:700}.ss-step h3{font-family:var(--display,Arial,sans-serif);font-size:clamp(23px,2.6vw,36px);letter-spacing:-.035em;line-height:1.15;margin:3px 0 18px;color:#24332e}.ss-step p{font-size:16px;line-height:1.75;color:#52625b;margin:0}.ss-step.is-current .ss-step-number{background:#2e6845;border-color:#2e6845;color:#fff}.ss-energy-note{font-size:15px;line-height:1.65;color:#52625b;border-left:3px solid #efa53e;padding-left:16px;margin:20px 0 26px;max-width:590px}.ss-energy-note strong{display:block;color:#24332e;margin-bottom:5px}
.ss-story.is-enhanced{height:calc(4 * var(--ss-segment,70vh) + var(--ss-screen,650px));padding-top:0;padding-bottom:0;position:relative}.ss-story.is-enhanced .ss-stage{position:sticky;top:var(--ss-top);height:var(--ss-screen);max-height:calc(100dvh - var(--ss-top) - var(--ss-bottom));overflow:auto;scrollbar-width:thin}.ss-story.is-enhanced .ss-steps{display:grid;align-items:center}.ss-story.is-enhanced .ss-step{grid-area:1/1;visibility:hidden;opacity:0;pointer-events:none;border:0;transition:none;align-self:center}.ss-story.is-enhanced .ss-step.is-current{visibility:visible;opacity:1;pointer-events:auto}.ss-story.is-enhanced .ss-diagram{max-height:calc(var(--ss-screen) - 205px)}
@media(max-width:680px){.ss-story{padding:24px 18px 40px}.ss-stage{grid-template-columns:1fr;gap:16px}.ss-diagram{max-height:270px}.ss-stage-top,.ss-stage-bottom{padding:10px 14px}.ss-stage-top{font-size:10px}.ss-figure figcaption{padding:0 14px 10px;font-size:9px}.ss-step{gap:12px;padding:20px 0}.ss-step h3{font-size:23px;margin:0 0 10px}.ss-step p{font-size:14px;line-height:1.55}.ss-step-number{width:30px;height:30px;font-size:11px}.ss-instruction{display:none}.ss-controls{margin-top:8px}.ss-controls button{min-height:44px}.ss-controls button span{font-size:9px}.ss-story.is-enhanced .ss-stage{display:flex;flex-direction:column;justify-content:safe center;gap:12px}.ss-story.is-enhanced .ss-visual,.ss-story.is-enhanced .ss-steps{width:100%}.ss-story.is-enhanced .ss-diagram{height:clamp(120px,calc(var(--ss-screen) - 340px),245px);max-height:none}.ss-story.is-enhanced .ss-step{padding:4px 0}.ss-story.is-enhanced .ss-stage-bottom{padding-top:5px;padding-bottom:7px}.ss-story.is-enhanced .ss-figure{border-radius:14px}}
@media(prefers-reduced-motion:reduce){.ss-story *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.ss-story.is-enhanced{height:auto}.ss-story.is-enhanced .ss-stage{position:static;height:auto;max-height:none;overflow:visible}.ss-story.is-enhanced .ss-steps{display:block}.ss-story.is-enhanced .ss-step{visibility:visible;opacity:1}.ss-controls{display:none}}
/* Compact screens retain the complete active explanation without nested scrolling. */
@media(max-width:680px) and (max-height:720px){.ss-story.is-enhanced .ss-diagram{height:clamp(110px,calc(var(--ss-screen) - 365px),220px)}}
@media(min-width:681px) and (max-height:500px){.ss-story.is-enhanced .ss-stage{gap:26px}.ss-story .ss-instruction{display:none}.ss-story .ss-stage-top,.ss-story .ss-stage-bottom{padding:7px 12px}.ss-story .ss-stage-top{font-size:9px}.ss-story .ss-figure figcaption{padding:0 12px 8px;font-size:8px}.ss-story.is-enhanced .ss-diagram{max-height:calc(var(--ss-screen) - 135px)}.ss-story .ss-controls{margin-top:7px}.ss-story .ss-controls button{min-height:36px;padding:3px;font-size:11px}.ss-story .ss-controls button span{font-size:8px}.ss-story .ss-step{padding:10px 0;gap:10px}.ss-story .ss-step h3{font-size:23px;margin:0 0 12px}.ss-story .ss-step p{font-size:13px;line-height:1.5}.ss-story .ss-step-number{width:28px;height:28px}}

/* Enter the explanation from within its own column: no transformed stage,
   no clipping mask, and no added width/height on compact screens. */
@keyframes ss-copy-arrive{
  from{opacity:0;transform:translate3d(-12px,0,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes ss-number-arrive{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
  .ss-story.is-enhanced.has-entered .ss-step.is-current>div{animation:ss-copy-arrive .72s cubic-bezier(.16,1,.3,1) both}
  .ss-story.is-enhanced.has-entered .ss-step.is-current .ss-step-number{animation:ss-number-arrive .48s ease-out both}
}
@media print{.ss-story .ss-step>div,.ss-story .ss-step-number{animation:none!important;transform:none!important;opacity:1!important}}
