:root{--bg:#f7f8fa;--surface:#ffffff;--ink:#17252b;--muted:#45535b;--line:#b9c4ca;--control-border:#71848e;--accent:#14546b;--selected:#e0edf1;--comparison:#39474f;--solar:#795010;--convection:#14546b;--infrared:#8b2945;--serif:Georgia,'Times New Roman',serif;--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 var(--sans)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-underline-offset:4px}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button:hover:not(:disabled){filter:brightness(.94)}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}
.topbar,main,footer{max-width:1600px;margin:auto;padding-left:36px;padding-right:36px}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.brand{font:24px var(--serif);letter-spacing:-.6px;text-decoration:none;display:flex;align-items:center;gap:7px}.brand em{color:var(--accent);font-weight:400}.brand-icon{color:var(--accent);font:32px var(--serif);margin-right:4px}.topbar nav{display:flex;gap:28px;font-size:11px}.topbar nav a{text-decoration:none}.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.8px;color:var(--muted);margin:0 0 8px}h1{font:36px/1.1 var(--serif);font-weight:400;letter-spacing:-1px;margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}
.scene-board{container-type:inline-size;--muted:#354b43;position:relative;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#dce9cf;isolation:isolate}.scene-board>svg{display:block;width:100%;aspect-ratio:10/7}.scene-header{position:absolute;top:26px;left:28px;right:26px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none}.live-label{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1.6px;color:var(--ink);font-weight:650}.live-label i{width:5px;height:5px;border-radius:50%;background:var(--accent)}.motion-button{border:1px solid var(--control-border);background:#fffffff0;color:var(--muted);padding:7px 10px;border-radius:20px;font-size:9px;pointer-events:auto;backdrop-filter:blur(6px)}.scene-temperature{position:absolute;right:28px;top:83px;z-index:2;pointer-events:none;width:182px}.scene-temperature>p:first-child{font-size:11px;color:var(--muted);margin:0 0 4px}.big-temperature{display:flex;align-items:baseline;gap:5px;line-height:1.05;color:var(--temperature-color,var(--accent));font-variant-numeric:tabular-nums;font-family:var(--serif);letter-spacing:-3px}.big-temperature span:first-child{font-size:68px}.big-temperature span:last-child{font:24px var(--sans);letter-spacing:-1px}.scene-temperature #excess{font-size:10px;line-height:1.7;margin:9px 0 12px;max-width:170px;color:var(--muted)}.scene-temperature #excess strong{font-weight:650;color:var(--ink)}.badge{display:inline-block;font-size:9px;font-weight:500;color:var(--muted);border:1px solid var(--line);padding:4px 8px;border-radius:20px;background:var(--bg)}.scene-board svg text{font-family:var(--sans)}.flow-label{font-size:10px;letter-spacing:1.8px;fill:var(--muted)}.flow-value{font-size:22px;font-weight:550;fill:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.5px}.flow-detail{font-size:11px;fill:var(--muted)}.callout-line{fill:none;stroke:var(--muted);stroke-opacity:.8;stroke-width:1.2}.angle-reference{font-size:11px;fill:var(--muted)}.angle-text{font-size:16px;fill:var(--accent);font-weight:550}.scale-bar{stroke:var(--muted);fill:var(--muted);stroke-width:1}.scale-bar text{stroke:none;font-size:10px}.scene-instruction{font-size:10px;letter-spacing:2px;fill:var(--muted)}.scene-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 26px;border-top:1px solid var(--line);background:#e4ebda;font-size:9px;color:var(--muted)}.scene-bottom>p{margin:0}.temperature-key{display:flex;align-items:center;position:relative;gap:14px}.temperature-key i{display:block;position:absolute;left:93px;top:0;width:138px;height:7px;border-radius:10px;background:linear-gradient(90deg,#347da0,#d99524,#bd4031)}.temperature-key>span:first-child{margin-right:9px;padding-top:0}.temperature-key>span:not(:first-child){padding-top:9px;width:31px;text-align:center;line-height:1}.scene-note{position:absolute;bottom:70px;left:22px;color:var(--muted);font-size:8px;max-width:190px;line-height:1.6;margin:0;pointer-events:none}.solar-rays{stroke:var(--solar);stroke-width:1.6;fill:none}.solar-particle{fill:var(--solar);stroke:none}.air-streams{stroke:var(--convection);fill:none;stroke-width:1.3;opacity:.45}.air-streams .wind-particle{stroke-width:2.2;stroke-linecap:round;stroke-dasharray:18 650;animation:wind-flow var(--wind-duration,9s) linear infinite}.heat-wave{stroke:var(--infrared);stroke-width:1.6;fill:none;opacity:.45;stroke-linecap:round;animation:heat-flow 3.2s ease-in-out infinite}.sun-spoke{stroke:var(--solar);stroke-width:1.3;stroke-linecap:round}.sun-halo{transform-origin:500px 82px;animation:sun-breathe 6s ease-in-out infinite}#body-interaction{cursor:grab;touch-action:none;outline-offset:-18px}#body-interaction:active{cursor:grabbing}.paused *{animation-play-state:paused!important}#body-group{pointer-events:none}.solar-particle{animation:solar-flow 2.8s linear infinite}.invalid .scene-board svg,.invalid .scene-bottom,.invalid .results{opacity:.35}.invalid .scene-temperature #excess{visibility:hidden}.mobile-flows{display:none}
@keyframes wind-flow{to{stroke-dashoffset:-668}}@keyframes heat-flow{0%,100%{opacity:.12;transform:translateY(5px)}50%{opacity:.5;transform:translateY(-5px)}}@keyframes solar-flow{from{transform:translateY(-26px);opacity:0}20%,70%{opacity:.7}to{transform:translateY(42px);opacity:0}}@keyframes sun-breathe{50%{opacity:.5;transform:scale(1.1)}}
.controls{padding:8px 0 0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}h2{font-size:18px;font-weight:500;letter-spacing:-.5px;margin:0}.text-button{border:0;padding:0;background:none;font-size:10px;color:var(--muted);text-underline-offset:4px}.text-button:hover{text-decoration:underline}.control-tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin-bottom:22px}.control-tabs button{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:0 0 11px;font-size:12px}.control-tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent);font-weight:600}.presets{display:flex;gap:7px;margin:0 0 22px}.presets button{border:1px solid var(--control-border);border-radius:20px;background:transparent;padding:7px 10px;font-size:10px;color:var(--muted)}.presets button.active{background:var(--accent);color:white;border-color:var(--accent)}.slider-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-top:24px;margin-bottom:12px}.slider-label output{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--accent)}input[type=range]{display:block;width:100%;accent-color:var(--accent);cursor:pointer;height:4px;margin:14px 0}input[type=range]{-webkit-appearance:none;appearance:none;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:4px;background:var(--control-border);border-radius:4px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:17px;height:17px;margin-top:-6.5px;border:2px solid white;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px var(--accent)}input[type=range]::-moz-range-track{height:4px;background:var(--control-border);border-radius:4px}input[type=range]::-moz-range-thumb{width:13px;height:13px;border:2px solid white;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px var(--accent)}.range-caps{display:flex;justify-content:space-between;color:var(--muted);font-size:9px}.posture-controls{border-top:1px solid var(--line);margin:24px 0 0;padding-bottom:22px}.posture-buttons{display:flex;gap:8px;margin-top:18px}.posture-buttons button{border:1px solid var(--control-border);background:transparent;padding:6px 9px;font-size:10px;border-radius:6px;color:var(--muted);flex:1}.posture-buttons button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:white}.paired{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.paired label{font-size:11px}.paired label>span{float:right;color:var(--muted)}input[type=number]{width:100%;border:1px solid var(--control-border);border-radius:6px;background:var(--surface);padding:9px;margin-top:8px;color:var(--ink);font-variant-numeric:tabular-nums}.geometry-note{font-size:10px;color:var(--muted);margin:18px 0 0}.field-label{display:block;font-size:10px;font-weight:600;margin:16px 0 8px}select{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:transparent;font-size:11px;color:var(--ink)}details{border-top:1px solid var(--line)}summary{cursor:pointer;padding:14px 0;font-size:11px;color:var(--muted)}.advanced-content{padding-bottom:12px}.helper{font-size:10px;color:var(--muted);line-height:1.7;margin:10px 0}.button{font-size:11px;color:var(--ink);padding:10px 14px;border:1px solid var(--control-border);border-radius:6px;background:transparent}.button.dark{background:var(--accent);color:white;border-color:var(--accent)}.control-actions .button{width:100%;color:var(--muted);margin-top:9px}.error{font-size:11px;color:#8a4242;border-left:2px solid #8a4242;background:#f7eeee;padding:10px}
.analysis{margin-top:26px;border-bottom:1px solid var(--line)}.analysis>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:24px 2px}.analysis>summary::-webkit-details-marker{display:none}.analysis>summary>span:first-child{display:grid;gap:5px}.analysis>summary .eyebrow{font-size:8px;margin:0}.analysis>summary strong{font-size:16px;color:var(--ink);font-weight:500}.expand-mark{font-size:23px;color:var(--muted)}.analysis[open] .expand-mark{transform:rotate(45deg)}.analysis-content{padding:10px 0 24px;display:grid;grid-template-columns:1fr 1fr;gap:22px}.analysis-summary{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:18px 24px;border:1px solid var(--line);border-radius:12px}.small-metrics{display:flex;gap:36px}.small-metrics>div{display:grid;gap:4px}.small-metrics span{font-size:10px;color:var(--muted)}.small-metrics strong{font-size:13px;font-weight:500}.pinned-summary{font-size:11px;color:var(--comparison);max-width:330px;margin:0}.energy{grid-column:1/-1;padding:22px 24px;border:1px solid var(--line);border-radius:12px}.energy-header{display:flex;justify-content:space-between;align-items:center}.energy-header h3{font:22px var(--serif);font-weight:400;margin:0}.energy-header>span{font-size:10px;color:var(--muted)}.flux-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px;margin:22px 0 14px}.flux-item{font-size:10px}.flux-item>div:first-child{display:flex;justify-content:space-between;gap:8px}.flux-item strong{font-weight:600;font-variant-numeric:tabular-nums}.flux-track{height:5px;background:var(--selected);border-radius:5px;margin-top:10px;overflow:hidden}.flux-track>span{display:block;height:100%;border-radius:5px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px}.chart-panel{padding:24px;min-width:0}.chart-heading{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:14px}.chart-heading h2{font:23px var(--serif);font-weight:400;letter-spacing:-.5px}.chart-description{font-size:11px;color:var(--muted);margin:14px 0 22px}.segmented{display:flex;gap:3px;border:1px solid var(--control-border);border-radius:6px;padding:3px}.segmented button{font-size:9px;padding:5px 8px;border:0;border-radius:3px;background:transparent;color:var(--muted)}.segmented button[aria-pressed=true]{background:var(--accent);color:white}.chart-host svg{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}.chart-host text{font:11px var(--sans);fill:var(--muted)}.chart-host .axis-title{font-size:10px}.chart-host .current-label{fill:var(--accent);font-weight:650}.chart-host .hover-text{fill:var(--ink);font-weight:600}.chart-legend{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:9px;color:var(--muted);margin-top:9px}.chart-legend>span{display:flex;align-items:center;gap:6px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%}.accent{background:var(--accent)}.dash{width:15px;border-top:2px dashed var(--comparison)}.readout{margin-left:auto;color:var(--accent)}.map-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:9px;color:var(--muted);margin-top:9px}.color-key{display:flex;align-items:center;gap:6px;white-space:nowrap}.color-key i{width:75px;height:6px;border-radius:5px;background:linear-gradient(90deg,#2a6f99,#f4d785,#da8b37,#a42f2a)}.chart-point{cursor:crosshair}.map-cell{cursor:pointer}.map-cell:hover{stroke:var(--ink);stroke-width:1.5}.heat-focus{pointer-events:none}.export-row{grid-column:1/-1;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.method{display:grid;grid-template-columns:1fr 1.4fr;gap:100px;padding:64px 0}.method h2{font:36px/1.15 var(--serif);font-weight:400;letter-spacing:-1px}.method h2 em{color:var(--accent);font-weight:400}.method>div:first-child p:not(.eyebrow){font-size:12px;color:var(--muted);max-width:360px;margin:20px 0}.method a{font-size:11px;color:var(--accent)}.equation{font:25px var(--serif);padding:20px;background:var(--selected);border-radius:8px;margin-bottom:22px;text-align:center}.method-details details p{font-size:11px;color:var(--muted);margin:0 0 15px}.method-details summary{font-size:12px}.method-details details p br{line-height:1.9}footer{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--line);padding-top:24px;padding-bottom:26px;font-size:10px;color:var(--muted)}footer>span{letter-spacing:1px}footer a{text-decoration:none;font-size:10px}.skip{position:fixed;top:-60px;left:15px;background:var(--ink);color:white;padding:12px;z-index:5}.skip:focus{top:12px}
@media(min-width:1550px){.scene-temperature{right:36px;top:106px;width:210px}.big-temperature span:first-child{font-size:80px}.big-temperature span:last-child{font-size:30px}.scene-temperature>p:first-child{font-size:12px}.scene-temperature #excess{font-size:11px}}
@media(max-width:1200px){.topbar,main,footer{padding-left:24px;padding-right:24px}.workspace{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.scene-temperature{right:20px;top:70px;width:150px}.big-temperature span:first-child{font-size:53px}.big-temperature span:last-child{font-size:20px}.scene-temperature>p:first-child{font-size:10px}.scene-temperature #excess{font-size:9px}.badge{font-size:8px}.scene-header{left:20px;right:20px;top:20px}.scene-bottom{padding:14px 20px}.scene-bottom>p{font-size:8px}.scene-note{font-size:7px;max-width:130px;bottom:65px}.motion-button{font-size:8px}.live-label{font-size:8px;letter-spacing:1px}.method{gap:50px}}
@media(max-width:950px){.workspace{grid-template-columns:minmax(0,1fr) 225px;gap:18px}.scene-board>svg{aspect-ratio:10/7}.scene-temperature{top:70px;right:13px;width:120px}.big-temperature span:first-child{font-size:43px}.big-temperature span:last-child{font-size:17px}.scene-temperature #excess{font-size:8px;max-width:105px}.scene-temperature>p:first-child{font-size:9px}.scene-temperature .badge{font-size:7px;padding:3px 5px}.scene-header{left:15px;right:15px}.live-label{font-size:7px;letter-spacing:.7px}.motion-button{font-size:7px;padding:5px 7px}.scene-bottom{flex-wrap:wrap;gap:14px;padding:14px 15px}.scene-note{display:none}h1{font-size:31px}.section-head h2{font-size:16px}.analysis-content{grid-template-columns:1fr}.analysis-summary{flex-wrap:wrap}.method{gap:35px}.controls .slider-label{font-size:11px}.posture-buttons button{font-size:9px;padding:6px}.scene-bottom>p{margin-left:auto}}
@media(max-width:730px){.topbar,main,footer{padding-left:16px;padding-right:16px}.topbar{height:64px}.brand{font-size:21px;gap:5px}.brand-icon{font-size:28px}.topbar nav{gap:16px;font-size:10px}.topbar nav a:first-child{display:none}h1{font-size:30px}.workspace{display:flex;flex-direction:column;gap:24px}.scene-board{width:100%;border-radius:15px}.scene-board>svg{aspect-ratio:78/70}.scene-header{top:16px;left:16px;right:16px}.live-label{font-size:7px;letter-spacing:1px}.motion-button{font-size:7px}.scene-temperature{right:16px;top:57px;width:130px}.big-temperature span:first-child{font-size:46px}.big-temperature span:last-child{font-size:18px}.scene-temperature>p:first-child{font-size:9px}.scene-temperature #excess{font-size:8px;max-width:120px;margin:6px 0}.scene-temperature .badge{font-size:7px}.solar-callout,.convection-callout,.infrared-callout,.scale-bar{display:none}.scene-instruction{font-size:13px;letter-spacing:1.8px}.angle-reference{font-size:15px}.angle-text{font-size:20px}.scene-bottom{font-size:8px;padding:14px 16px;justify-content:center;gap:16px}.scene-bottom>p{display:none}.temperature-key i{left:83px;width:138px}.temperature-key{gap:12px}.mobile-flows{display:flex;justify-content:space-around;gap:8px;padding:13px 10px;background:#edf2e5;border-top:1px solid var(--line)}.mobile-flows span{font-size:8px;color:var(--muted);display:grid;gap:3px;text-align:center}.mobile-flows strong{font-size:12px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}.controls{width:100%;padding:0 4px}.section-head{margin-bottom:18px}.section-head h2{font-size:19px}.control-tabs{margin-bottom:20px}.control-tabs button{font-size:12px}.controls .slider-label{font-size:12px}.posture-controls{margin-top:24px}.control-actions{display:flex;justify-content:flex-end}.control-actions .button{width:auto}.analysis{margin-top:12px}.analysis-summary{padding:18px;gap:20px}.analysis-summary .button{width:100%}.small-metrics{gap:26px}.chart-panel,.energy{padding:20px 16px}.chart-heading h2{font-size:23px}.chart-description{font-size:11px}.flux-grid{gap:14px}.flux-item>div:first-child{flex-direction:column;gap:5px}.flux-item{font-size:9px}.energy-header h3{font-size:20px}.energy-header>span{font-size:8px}.energy .helper{font-size:9px}.export-row{font-size:10px}.method{display:block;padding:42px 0}.method>div:first-child{margin-bottom:32px}.method h2{font-size:34px}.method-details details p{font-size:12px}.method-details summary{font-size:12px}footer{font-size:8px;flex-wrap:wrap}footer>p{order:3;margin:0;width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

.model-intro{margin:20px 0 24px;max-width:850px;font-size:12px;color:var(--muted);line-height:1.65}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:730px){.model-intro{margin:16px 0 20px;font-size:11px}}

/* Flux colors remain consistent across the illustration and energy balance. */
.solar-callout .flow-label,.solar-callout .flow-value{fill:var(--solar)}
.solar-callout .callout-line{stroke:var(--solar)}
.convection-callout .flow-label,.convection-callout .flow-value{fill:var(--convection)}
.convection-callout .callout-line{stroke:var(--convection)}
.infrared-callout .flow-label,.infrared-callout .flow-value{fill:var(--infrared)}
.infrared-callout .callout-line{stroke:var(--infrared)}
#mobile-solar{color:var(--solar)}#mobile-conv{color:var(--convection)}#mobile-infra{color:var(--infrared)}
/* Controls share one accent; flux colors are reserved for the data. */

/* Fit the complete scene (including its legends) below the page introduction.
   Its width follows its SVG ratio, so resizing never crops or stretches it. */
@media(min-width:731px){
  .workspace{--controls-width:280px;--workspace-gap:28px;grid-template-columns:minmax(0,1fr) var(--controls-width);gap:var(--workspace-gap);max-width:calc((100vh - 300px) * 1.428571 + var(--controls-width) + var(--workspace-gap));max-width:calc((100svh - 300px) * 1.428571 + var(--controls-width) + var(--workspace-gap))}
}
@media(min-width:731px) and (max-width:1200px){.workspace{--controls-width:250px;--workspace-gap:22px}}
@media(min-width:731px) and (max-width:950px){.workspace{--controls-width:225px;--workspace-gap:18px}}
@media(max-width:730px){
  .scene-board{align-self:center;max-width:calc((100vh - 300px) * 1.114285);max-width:calc((100svh - 300px) * 1.114285)}
}
/* Overlays follow the actual panel width, including on wide, short screens. */
@container(min-width:701px){
  .scene-header{top:20px;left:20px;right:20px}
  .live-label{font-size:9px;letter-spacing:1px}.motion-button{font-size:9px}
  .scene-temperature{top:70px;right:20px;width:150px}
  .big-temperature span:first-child{font-size:53px}.big-temperature span:last-child{font-size:20px}
  .scene-temperature>p:first-child{font-size:10px}.scene-temperature #excess{font-size:9px;max-width:150px}
  .scene-temperature .badge{font-size:8px}
}
@container(max-width:700px){
  .scene-header{top:14px;left:14px;right:14px}
  .live-label{font-size:8px;letter-spacing:.8px}.motion-button{font-size:8px;padding:5px 7px}
  .scene-temperature{top:52px;right:14px;width:130px}
  .big-temperature span:first-child{font-size:44px}.big-temperature span:last-child{font-size:18px}
  .scene-temperature>p:first-child{font-size:10px}.scene-temperature #excess{font-size:9px;max-width:130px;margin:6px 0}
  .scene-temperature .badge{font-size:8px;padding:3px 6px}
  .solar-callout,.convection-callout,.infrared-callout,.scale-bar,.scene-note{display:none}
  .mobile-flows{display:flex;justify-content:space-around;gap:8px;padding:10px;background:#edf2e5;border-top:1px solid var(--line)}
  .mobile-flows span{font-size:9px;color:var(--muted);display:grid;gap:3px;text-align:center}
  .mobile-flows strong{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
  .scene-bottom{justify-content:center;padding:12px 14px}.scene-bottom>p{display:none}
}
