.thermal-energy-fields p {max-width:68ch}
.thermal-energy-fields summary {cursor:pointer;font-weight:750}
#energy-result {background:#102a36;color:#f0f6f6;padding:clamp(1rem,3.5vw,2.5rem);border-radius:1rem;margin-block:1.5rem;min-width:0}
#energy-result :is(h3,h4,label) {color:inherit}
#energy-result p {color:#b9d0d4}
#energy-result button {color:#102a36;background:#b9f1db;border:0}
.energy-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-block:1.35rem;border-block:1px solid #52747a}
.energy-metrics div {padding:.75rem 0;min-width:0}
.energy-metrics dt {color:#b9d0d4;font-size:.86rem}
.energy-metrics dd {margin:.25rem 0 0;font-size:clamp(1.15rem,3vw,1.75rem);font-weight:750;overflow-wrap:anywhere}
.energy-comparison {display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,2fr);gap:clamp(1rem,4vw,3rem);align-items:center}
.energy-comparison select {display:block;width:100%;margin:.4rem 0 .75rem;padding:.55rem .65rem;border:1px solid #54777d;border-radius:.45rem;background:#f0f6f6;color:#102a36;font:inherit}
.energy-plot-frame {background:#0a202a;padding:1rem;border-radius:.75rem;min-width:0}
.energy-plot-frame h4 {margin:0}
.energy-plot-frame output {color:#b9f1db;font-weight:750}
#energy-plot {width:100%;height:auto;max-height:13rem;display:block}
.energy-zero {stroke:#89a8ac;stroke-dasharray:3 4}
.energy-area {fill:#153e44}
.energy-trajectory {stroke:#74ebbc;stroke-width:2.5;fill:none}
.energy-cursor {stroke:#a2d4d7;opacity:.65}
.energy-marker {fill:#e0fff4;stroke:#102a36;stroke-width:2}
.energy-crossing {fill:#ffce80;stroke:#102a36;stroke-width:1}
#energy-year {display:block;width:100%;accent-color:#8effd0}
.energy-year-scale {display:flex;justify-content:space-between;font-size:.8rem;color:#b9d0d4}
@media (prefers-reduced-motion:no-preference) {
  #energy-result:not([hidden]) .energy-plot-frame {animation:energy-enter .24s ease-out}
  @keyframes energy-enter {from {opacity:.6;transform:translateY(4px)} to {opacity:1;transform:none}}
}
@media (max-width:640px) {
  .energy-comparison {grid-template-columns:minmax(0,1fr)}
  .energy-metrics {gap:.5rem}
}
.energy-second {fill:none;stroke:#ffd493;stroke-width:2;stroke-dasharray:5 3}
.energy-second-marker {fill:#ffd493;stroke:#102a36;stroke-width:1}
#energy-compare-value {color:#ffd493;font-weight:750;margin-inline-start:.6rem}
#energy-compare-summary:empty {display:none}
