:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1b3342;background:#f5f8f9;font-size:14px;line-height:1.55;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}a:hover{color:#197b83}.wrap{max-width:1460px;margin:0 auto;padding-left:36px;padding-right:36px}.skip{position:absolute;left:-10000px;top:5px;z-index:99;background:white;color:black;padding:8px}.skip:focus{left:5px}.topbar{background:#0e2637;color:#e7f1f2;border-bottom:1px solid #2c4351}.navrow{height:71px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{color:white!important;text-decoration:none;display:inline-flex;align-items:center;gap:11px;font-size:22px;font-weight:780;letter-spacing:-.7px;white-space:nowrap}.brandmark{width:36px;height:36px;background:#173e50;display:grid;place-items:center;color:#81d6ca;border:1px solid #37716f;border-radius:11px}.brand small{font-size:9px;font-weight:800;vertical-align:middle;letter-spacing:1px;background:#28504d;color:#a7ece0;border-radius:4px;padding:4px 5px;margin-left:3px}.topbar nav{display:flex;gap:30px;align-items:center}.topbar nav a{font-size:12px;color:#b9cdd3;text-decoration:none;font-weight:650}.topbar nav a:hover{color:#fff}.topbar .nav-external{border:1px solid #4a6674;border-radius:8px;padding:8px 12px;color:#e3f1f1}.hero{background:#0e2637;color:white;min-height:315px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:55px;align-items:center;padding-top:49px;padding-bottom:48px}.hero:before{content:"";background:#0e2637;position:absolute;left:0;right:0;top:71px;height:315px;z-index:-1}.hero-copy{max-width:730px}.eyebrow,.overline{font-weight:800;letter-spacing:1.65px;font-size:10px;color:#4b9ca3}.eyebrow{display:flex;align-items:center;gap:12px;color:#8bcec9}.pulse{height:7px;width:7px;border-radius:50%;background:#84dbc6;box-shadow:0 0 0 4px #84dbc61b}.eyebrow-separator{opacity:.5}.hero h1{font-size:clamp(35px,3.4vw,51px);letter-spacing:-2.3px;line-height:1.09;margin:22px 0 16px;max-width:700px}.hero h1 em{font-style:normal;color:#9edccc}.hero p{color:#bacbd2;font-size:15px;max-width:640px;line-height:1.85;margin:0}.hero-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:23px}.hero-tags span{font-size:11px;font-weight:680;color:#bcd4d8;background:#193949;padding:7px 11px;border:1px solid #355666;border-radius:6px}.hero-art{position:relative;min-width:0;background:linear-gradient(145deg,#143b4c,#0f2c3e);border:1px solid #355565;border-radius:15px;height:230px;overflow:hidden;box-shadow:0 18px 50px #06162130}.hero-art svg{position:absolute;inset:9px 12px 6px;width:calc(100% - 24px);height:200px}.art-note{position:absolute;bottom:14px;left:17px;letter-spacing:1.4px;font-size:9px;font-weight:800;color:#85adaf}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:36px 0 23px}.section-heading h2{font-size:26px;letter-spacing:-.75px;margin:4px 0 4px;color:#163346}.section-heading p{margin:0;color:#768a96;font-size:13px}.version-chip{color:#4b7c7e;border:1px solid #cde1e3;border-radius:8px;background:#ebf5f3;font-weight:750;padding:8px 11px;font-size:10px;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(340px,440px) minmax(0,1fr);gap:18px;align-items:start}.input-panel,.results-panel{background:white;border:1px solid #dfe9eb;border-radius:13px;overflow:hidden;box-shadow:0 4px 28px #18394308}.panel-heading{display:flex;align-items:center;gap:11px;padding:21px 23px 20px;border-bottom:1px solid #e6edef}.panel-step{flex:none;width:34px;height:34px;border:1px solid #a7d9d2;background:#edf8f5;color:#248b83;font-weight:800;border-radius:9px;display:grid;place-items:center;font-size:12px}.panel-heading h3{margin:0;font-size:15px;letter-spacing:-.2px}.panel-heading p{margin:1px 0 0;font-size:11px;color:#7a8b93}.input-content{padding:0 22px 10px}.form-block{border-top:1px solid #edf1f2;padding:23px 0 22px}.form-block.first{border-top:none}.field-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.field-title h4{font-size:13px;margin:0;font-weight:790}.hint{font-size:10px;color:#81929b;font-weight:600}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.span-2{grid-column:1/-1}.field{min-width:0;display:flex;flex-direction:column;gap:5px;color:#526775;font-weight:650;font-size:11px}.field small{font-size:10px;font-weight:450;color:#83969c;line-height:1.35}.control{height:39px;border:1px solid #dbe5e7;display:flex;align-items:center;background:#fff;border-radius:6px;transition:border .15s,box-shadow .15s;overflow:hidden}.control:focus-within{border-color:#399e9b;box-shadow:0 0 0 3px #63bfb324}.control input,.control select{width:100%;min-width:0;height:100%;background:transparent;border:0;outline:0;color:#203d4a;font-size:12px;padding:0 9px;font-weight:600}.control input:disabled{background:#f4f6f7;color:#8e9fa9}.control b{white-space:nowrap;font-weight:550;font-size:10px;color:#83959c;background:#f5f8f9;height:100%;display:flex;align-items:center;padding:0 9px;border-left:1px solid #e9eeef}.control input:disabled+b{background:#f2f4f5;color:#b2bec2}.control select{cursor:pointer;padding-right:2px;font-weight:550;font-size:11px}.mode-toggle{border:1px solid #dce8e9;background:#f6f9f9;border-radius:8px;padding:4px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.mode-toggle label{position:relative;cursor:pointer}.mode-toggle input{position:absolute;opacity:0;width:100%;height:100%;margin:0}.mode-toggle span{display:block;text-align:center;font-size:12px;font-weight:720;color:#738a93;padding:10px 4px;border-radius:6px}.mode-toggle input:checked+span{background:#1c6d74;color:white;box-shadow:0 3px 10px #1b61702a}.mode-toggle input:focus-visible+span{outline:3px solid #83bdb6}.switch-row{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:20px;cursor:pointer}.switch-row>span:first-child{display:flex;flex-direction:column;gap:2px}.switch-row strong{font-size:11px}.switch-row small{font-size:10px;color:#8497a0}.switch-row input{position:absolute;opacity:0}.switch-ui{height:23px;width:41px;background:#c7d3d8;border-radius:20px;position:relative;flex:none;transition:background .2s}.switch-ui:after{content:"";height:17px;width:17px;position:absolute;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s}.switch-row input:checked+.switch-ui{background:#299c90}.switch-row input:checked+.switch-ui:after{transform:translateX(18px)}.switch-row input:focus-visible+.switch-ui{outline:3px solid #6daea6}.advanced{border-top:1px solid #edf1f2}.advanced summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:18px 0}.advanced summary::-webkit-details-marker{display:none}.advanced summary>span:first-child{display:flex;flex-direction:column;gap:2px}.advanced strong{font-size:12px}.advanced small{font-size:10px;color:#85979f}.chevron{font-size:24px;color:#9ab0ba;line-height:1;transition:transform .2s}.advanced[open] .chevron{transform:rotate(180deg)}.details-content{padding:0 0 21px}.details-content .check-row{margin:5px 0 15px}.check-row{display:flex;align-items:center;gap:10px;font-size:11px;color:#405762;font-weight:600;cursor:pointer}.check-row input{accent-color:#1b8582;width:16px;height:16px}.details-content>.field{margin-top:12px}.form-actions{padding:18px 22px 21px;background:#f8fafb;border-top:1px solid #e7edef;display:grid;grid-template-columns:1fr auto;gap:10px}.run-btn{border:0;border-radius:7px;background:#1d8584;color:white;font-weight:760;font-size:12px;padding:12px 16px}.run-btn:hover{background:#146c6f}.run-btn:disabled{opacity:.65;cursor:progress}.run-btn span{font-size:9px;margin-right:5px}.secondary-btn{border:1px solid #d8e3e5;background:white;border-radius:7px;color:#617985;font-weight:650;font-size:11px;padding:10px}.secondary-btn:hover{background:#ecf2f4}.note{grid-column:1/-1;margin:0;color:#8b9ca4;font-size:10px}.results-panel{min-height:690px}.result-heading{padding:21px 24px}.result-status{display:flex;align-items:center;gap:7px;margin-left:auto;background:#edf6f3;color:#2d806f;font-weight:770;font-size:10px;border-radius:15px;padding:6px 10px;white-space:nowrap}.status-light{width:6px;height:6px;background:#45b99a;border-radius:50%}.result-status.error{background:#fbefed;color:#b44942}.result-status.error .status-light{background:#d45c53}.result-status.loading{background:#fff6e5;color:#946b26}.result-status.loading .status-light{background:#d5a144}.result-tabs{display:flex;gap:25px;align-items:center;padding:0 25px;border-bottom:1px solid #e6edef}.tab{padding:15px 0;background:transparent;border:0;border-bottom:2px solid transparent;color:#8b9ba4;font-size:11px;font-weight:780}.tab.active{border-bottom-color:#18877d;color:#24766f}.tab:focus-visible{outline:2px solid #26887e}.output-message{padding:95px 26px 105px;text-align:center;min-height:495px;display:flex;align-items:center;flex-direction:column;justify-content:center}.empty-chart{width:min(350px,100%);max-width:100%;opacity:.72}.empty-chart svg{width:100%}.output-message h4{margin:12px 0 6px;font-size:16px;color:#435e6c}.output-message p{max-width:390px;margin:0;color:#8599a3;font-size:12px;line-height:1.8}.output-message.error h4{color:#aa4847}.result-view{padding:24px}.result-view[hidden],#result-views[hidden],#output-message[hidden],[hidden]{display:none!important}.figure-wrap{background:#fff;border:1px solid #e1e9eb;border-radius:9px;overflow:auto;display:flex;align-items:center;justify-content:center}.figure-wrap img{width:100%;max-width:1100px;height:auto;display:block}.figure-caption{color:#879ba4;font-size:10px;margin:14px 0 4px;text-align:center}.data-scroll{overflow:auto;max-height:680px;border:1px solid #e6ecee;border-radius:8px}.data-scroll table{border-collapse:collapse;min-width:940px;width:100%;font-size:11px}.data-scroll th{white-space:nowrap;position:sticky;top:0;background:#eef5f4;z-index:1;color:#2d5460;font-weight:750;padding:11px 12px;border-bottom:1px solid #dce6e8;text-align:left}.data-scroll td{white-space:nowrap;border-bottom:1px solid #eff2f2;padding:10px 12px;color:#4c6570}.data-scroll tr:nth-child(even) td{background:#f8fbfb}.data-scroll td:first-child{font-weight:750;color:#284e59}#summary-text{padding:20px;margin:0;border:1px solid #e5eeee;border-radius:8px;background:#f8fbfb;overflow:auto;font-family:"Cascadia Code",Consolas,"SFMono-Regular",monospace;font-size:11px;color:#36525d;line-height:1.7;white-space:pre;max-height:760px}.results-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 24px 20px;color:#8398a0;font-size:10px}.export-actions{display:flex;flex-wrap:wrap;gap:8px}.export-actions button{background:white;border:1px solid #d9e6e7;border-radius:6px;padding:7px 10px;color:#347d80;font-size:10px;font-weight:750}.export-actions button:hover{background:#eff8f6}.results-caution{border-top:1px solid #e7edef;padding:16px 24px 19px;background:#fcfdfd}.results-caution strong{color:#566e7a;font-size:11px}.results-caution p{color:#8b9fa6;font-size:10px;line-height:1.7;margin:3px 0 0}.learning{padding-top:48px;padding-bottom:20px}.learning .section-heading{padding:10px 0 22px}.learning-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.learning-cards article{background:#fff;border:1px solid #e0eaeb;border-radius:11px;padding:23px 24px}.learning-num{color:#4b9a97;font-weight:800;letter-spacing:1.1px;font-size:10px}.learning-cards h3{font-size:16px;letter-spacing:-.2px;margin:12px 0 8px}.learning-cards p,.reference-content p{font-size:12px;color:#6b8290;line-height:1.9;margin:0}.reference-content{max-width:960px;margin:32px 0}.reference-content h3{font-size:16px;color:#214553}.reference-content p{margin-top:12px}.disclaimer{padding-top:30px;padding-bottom:64px;max-width:1450px}.disclaimer h2{font-size:23px;letter-spacing:-.5px;margin:8px 0 15px}.disclaimer p{max-width:1110px;font-size:12px;line-height:1.9;color:#788e9b}.footer{background:#102b3a;color:#b9cbd0}.footer-inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-top:22px;padding-bottom:22px;font-size:11px}.footer a{color:#9ce1d5}.toast{position:fixed;bottom:22px;right:25px;background:#183e4a;color:white;padding:12px 17px;border-radius:8px;box-shadow:0 15px 40px #102c3a40;z-index:15;font-size:12px}@media(max-width:1100px){.workspace{grid-template-columns:minmax(300px,360px) minmax(0,1fr)}.wrap{padding-left:24px;padding-right:24px}.hero{gap:26px}.results-panel{min-height:600px}.result-tabs{gap:18px}}@media(max-width:830px){.hero{grid-template-columns:1fr;gap:24px;min-height:0;padding-top:36px;padding-bottom:35px}.hero:before{height:590px}.hero-art{height:180px;max-width:570px}.hero-art svg{height:160px}.workspace{grid-template-columns:1fr}.results-panel{min-height:0}.input-panel{max-width:none}.learning-cards{grid-template-columns:1fr}.topbar nav{gap:15px}.topbar nav a{font-size:11px}.result-view{padding:12px}.results-footer{padding:13px}}@media(max-width:560px){.wrap{padding-left:16px;padding-right:16px}.navrow{height:auto;min-height:64px}.topbar nav a:not(.nav-external){display:none}.brand{font-size:19px}.hero:before{top:64px;height:600px}.hero h1{font-size:37px;letter-spacing:-1.6px}.hero p{font-size:13px}.hero-art{height:150px}.hero-art svg{height:136px}.art-note{font-size:8px}.section-heading{padding:30px 0 20px;align-items:start}.section-heading h2{font-size:23px}.version-chip{font-size:9px}.panel-heading{padding:16px}.input-content{padding:0 16px 10px}.form-actions{padding:15px}.result-tabs{padding:0 17px}.output-message{padding:60px 15px;min-height:350px}.results-footer{flex-direction:column;align-items:start}.learning{padding-top:30px}.learning-cards article{padding:19px}.footer-inner{flex-direction:column}}
/* Full-bleed hero while the content remains aligned to the page grid. */
.hero{position:relative;isolation:isolate}.hero:before{top:0;left:50%;right:auto;width:100vw;height:100%;transform:translateX(-50%);z-index:-1}

/* Theme control: site header remains dark in both themes for brand consistency. */
.theme-toggle{border:1px solid #4a6674;border-radius:8px;padding:8px 11px;background:#15384a;color:#dcf1ef;display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700;white-space:nowrap;line-height:1.35}
.theme-toggle:hover{background:#255063;border-color:#70aaa8}
.theme-toggle:focus-visible{outline:3px solid #74ccb6;outline-offset:3px}
.theme-toggle #theme-icon{font-size:16px;line-height:1}
@media(max-width:560px){.theme-toggle #theme-label{display:none}.theme-toggle{padding:8px 10px}}
/* Dark theme: dark canvas and panels with high-contrast calculator inputs/results. */
:root[data-theme="dark"]{color-scheme:dark;background:#0a1721;color:#e0edf0}
[data-theme="dark"] body{background:#0a1721;color:#e0edf0}
[data-theme="dark"] .topbar,[data-theme="dark"] .hero,[data-theme="dark"] .hero:before{background:#0b1e2b}
[data-theme="dark"] .hero-art{background:linear-gradient(145deg,#102f40,#0a2431);border-color:#2b5963}
[data-theme="dark"] .section-heading h2,[data-theme="dark"] .reference-content h3,[data-theme="dark"] .disclaimer h2{color:#e5f3f6}
[data-theme="dark"] .section-heading p,[data-theme="dark"] .reference-content p,[data-theme="dark"] .disclaimer p,[data-theme="dark"] .learning-cards p{color:#a0b4c0}
[data-theme="dark"] .overline,[data-theme="dark"] .learning-num{color:#7ad2c6}
[data-theme="dark"] .version-chip{color:#8be1d3;border-color:#276b6b;background:#153f47}
[data-theme="dark"] .input-panel,[data-theme="dark"] .results-panel,[data-theme="dark"] .learning-cards article{background:#102635;border-color:#274656;box-shadow:0 4px 32px #030e1866}
[data-theme="dark"] .panel-heading,[data-theme="dark"] .result-tabs,[data-theme="dark"] .form-actions,[data-theme="dark"] .results-caution{border-color:#294655}
[data-theme="dark"] .panel-heading p,[data-theme="dark"] .hint,[data-theme="dark"] .field small,[data-theme="dark"] .advanced small,[data-theme="dark"] .switch-row small,[data-theme="dark"] .note,[data-theme="dark"] .results-caution p,[data-theme="dark"] .figure-caption,[data-theme="dark"] #calc-timestamp{color:#96aeba}
[data-theme="dark"] .panel-step{background:#123a42;border-color:#3c7977;color:#8ee5d5}
[data-theme="dark"] .form-block,[data-theme="dark"] .advanced{border-color:#284554}
[data-theme="dark"] .field,[data-theme="dark"] .check-row,[data-theme="dark"] .results-caution strong{color:#c7d9e0}
[data-theme="dark"] .control{background:#132d3c;border-color:#345569}
[data-theme="dark"] .control input,[data-theme="dark"] .control select{color:#f0f8fa;background:transparent}
[data-theme="dark"] .control input:disabled{background:#19313e;color:#839cab}
[data-theme="dark"] .control b{background:#1e3946;color:#b5cbd4;border-color:#345569}
[data-theme="dark"] .control input:disabled+b{background:#1b3441;color:#7f9ca9}
[data-theme="dark"] .control:focus-within{border-color:#78daca;box-shadow:0 0 0 3px #68d5cb33}
[data-theme="dark"] .mode-toggle{background:#0b1e2b;border-color:#325362}
[data-theme="dark"] .mode-toggle span{color:#a9bfc9}
[data-theme="dark"] .mode-toggle input:checked+span{color:#fff;background:#187b7c}
[data-theme="dark"] .switch-ui{background:#4a6371}
[data-theme="dark"] .chevron{color:#88b4bd}
[data-theme="dark"] .form-actions,[data-theme="dark"] .results-caution{background:#102330}
[data-theme="dark"] .secondary-btn,[data-theme="dark"] .export-actions button{background:#163343;border-color:#3a5c6a;color:#a7e5dc}
[data-theme="dark"] .secondary-btn:hover,[data-theme="dark"] .export-actions button:hover{background:#1c4352}
[data-theme="dark"] .result-status{background:#103d38;color:#9ae9d1}
[data-theme="dark"] .result-status.error{background:#482c30;color:#ffb0a8}
[data-theme="dark"] .result-status.loading{background:#43391f;color:#e8c983}
[data-theme="dark"] .tab{color:#adc1cb}
[data-theme="dark"] .tab.active{color:#92e4d4;border-bottom-color:#72d2c3}
[data-theme="dark"] .output-message h4{color:#d0e6ed}
[data-theme="dark"] .output-message p{color:#aec0cb}
[data-theme="dark"] .figure-wrap{background:#fff;border-color:#31515d}/* Chart image stays white as a readable technical plot. */
[data-theme="dark"] .data-scroll{border-color:#38535e}
[data-theme="dark"] .data-scroll th{background:#1c414b;color:#d6f3ed;border-color:#42616b}
[data-theme="dark"] .data-scroll td{color:#d7e9ee;border-color:#274554;background:#122e3b}
[data-theme="dark"] .data-scroll tr:nth-child(even) td{background:#183745}
[data-theme="dark"] .data-scroll td:first-child{color:#a9eee0}
[data-theme="dark"] #summary-text{background:#0c202e;color:#d5e4ea;border-color:#355566}
[data-theme="dark"] .learning-cards h3{color:#e4f1f5}
[data-theme="dark"] .reference-content,[data-theme="dark"] .disclaimer{color:#d8e7ec}
[data-theme="dark"] .footer{background:#081721;border-top:1px solid #244454}
[data-theme="dark"] .toast{background:#25626d;color:#fff}

.figure-wrap.zoomed{justify-content:flex-start}
.figure-wrap.zoomed img{width:1550px;min-width:1550px;max-width:none;height:auto}

/* Calculator terms acknowledgement, shown before each calculator run. */
.acknowledge{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;color:#526775;font-size:11px;line-height:1.65;cursor:pointer;padding:6px 0 5px}
.acknowledge input{accent-color:#1b8582;flex:none;margin:3px 0 0;width:16px;height:16px}
.acknowledge a,.results-caution a,.disclaimer a{text-underline-offset:2px;text-decoration:underline}
.acknowledge a{color:#157e7f}.acknowledge strong{color:#203d4a}
[data-theme="dark"] .acknowledge{color:#bbd2d8}
[data-theme="dark"] .acknowledge strong{color:#e6f1f3}
[data-theme="dark"] .acknowledge a{color:#8fe5d9}

/* Crisp, undistorted hero illustration */
.hero-art .air-process-illustration {
  display: block;
  position: absolute;
  top: 10px;
  left: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 49px);
  object-fit: contain;
  object-position: center;
}

/* Mobile layout */
@media (max-width: 560px) {
  .hero-art {
    height: 176px;
  }
}
