@import url('/style.css');
:root{font-family:Inter,'Segoe UI',Arial,sans-serif;background:#f5f5f1;color:#242820;--navy:#232820;--teal:#52642c;--muted:#72786c;font-size:16px}body{display:block}aside{display:none}button,input{transition:background .18s,border-color .18s,box-shadow .18s}button{border-radius:9px;color:#30372d;padding:12px 18px;font-size:14px;font-weight:600;border-color:#d9ddd3}button:hover{background:#eef0e6;border-color:#9ba68c}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #809c40;outline-offset:4px}button:disabled{opacity:.65;cursor:wait}a{color:#475e26}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:0 4%;border-bottom:1px solid #dedfd8;background:#fff}.brand{color:#222920;gap:10px;letter-spacing:-1px;font-size:25px}.brand span{color:#222920;font-size:25px}.brand-mark{width:31px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#cfed87;border-radius:7px;color:#25341a;font-size:23px}.topbar nav{display:flex;gap:9px;height:100%;align-items:center}.topbar nav button{background:transparent;color:#74796e;border:0;border-radius:0;height:100%;padding:0 15px;position:relative;font-size:14px}.topbar nav button.active{background:none;border:0;color:#25331d}.topbar nav button.active:after{content:'';position:absolute;bottom:0;left:15px;right:15px;height:3px;background:#536c2b}.workspace-label{color:#777d70;font-size:12px;border:1px solid #dfe3d8;padding:8px 11px;border-radius:6px}.topbar .brand em{font-style:normal;font-size:10px;letter-spacing:1px;border:1px solid #d3dbcb;padding:3px 5px;margin-left:2px}main{margin:0 auto;width:100%;max-width:1600px;padding:35px 4% 16px}.intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:11px;letter-spacing:1.6px;color:#697561;font-weight:650}.intro h1{font-size:37px;font-weight:550;letter-spacing:-1.4px;margin:10px 0 6px}.intro p{margin:0;color:#777e71;font-size:14px}.context-note{max-width:270px;text-align:right;font-size:12px;line-height:1.6;color:#71776b}.workspace-hero{display:grid;grid-template-columns:1.28fr 1fr;gap:22px;margin-bottom:27px}.photo-panel{position:relative;min-height:314px;border-radius:15px;overflow:hidden;background:#26312e}.photo-panel img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 53%}.photo-panel:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#071510b8,#07151010),linear-gradient(0deg,#0d171dc4,transparent 75%)}.photo-content{position:absolute;z-index:1;inset:27px 30px;display:flex;flex-direction:column;align-items:start;justify-content:end;color:white}.photo-content .eyebrow{color:#d6e5c8;font-size:10px}.photo-content h2{font-size:32px;font-weight:480;max-width:400px;line-height:1.12;letter-spacing:-.8px;margin:12px 0}.photo-content p{font-size:13px;color:#e0e6dd;margin:0;max-width:345px}.photo-label{position:absolute;right:17px;top:16px;color:#f4f6f0;background:#0b1e2370;border:1px solid #ffffff40;padding:5px 8px;border-radius:5px;font-size:10px;z-index:2}.scenario{background:white;border:1px solid #e1e4db;border-radius:15px;padding:23px 25px;display:flex;flex-direction:column;justify-content:space-between}.section-kicker{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-kicker h2{font-size:18px;font-weight:600;margin:0}.subtle-tag{font-size:10px;color:#637c38;background:#f0f5e7;border:1px solid #e3eacb;padding:5px 8px;border-radius:5px}.scenario>p{font-size:13px;color:#7a8171;line-height:1.5;margin:9px 0 17px}.controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0}.controls label{display:block;font-size:12px;font-weight:500;color:#66705d}.input-box{margin-top:8px;background:#f6f7f1;border:1px solid #e1e5d8;border-radius:9px;padding:10px 11px;display:flex;align-items:baseline;gap:3px}.input-box:focus-within{border-color:#667d39;box-shadow:0 0 0 3px #cfed872c}.input-box input{width:100%;min-width:0;background:transparent;border:0;padding:0;font-size:29px;font-weight:550;outline:none;color:#2b3422;font-variant-numeric:tabular-nums}.input-box .unit{font-size:10px;white-space:nowrap;color:#77816a}.scenario-actions{display:flex;gap:10px;margin-top:18px}.primary{background:#cce88b;border:1px solid #c1da82;color:#24331a;flex:1;box-shadow:0 3px 7px #68882b0a}.primary:hover{background:#bddc76;color:#26391a}.scenario-actions #storm{font-size:12px;font-weight:550}.scenario-foot{font-size:11px;color:#929786;margin-top:13px;display:flex;justify-content:space-between;gap:10px}.notice{background:transparent;color:#7b8073;border:0;padding:0;font-size:12px;line-height:1.5;margin:0 0 20px}.notice b{color:#5f6f44}.stats{gap:17px;margin-bottom:29px}.stat{border:1px solid #dee2d6;border-radius:12px;padding:22px 24px;background:white;position:relative;box-shadow:0 3px 5px #34402102}.stat:first-child{background:#242c23;border-color:#242c23;color:white}.stat:first-child .muted{color:#c1cbb9}.stat:first-child strong{color:#d2ee96}.stat strong{font-size:45px;line-height:1.1;font-weight:500;letter-spacing:-1.6px;margin:13px 0 9px;font-variant-numeric:tabular-nums}.stat .muted:first-child{font-size:13px;font-weight:550}.stat .muted:last-child{font-size:11px}.stat:after{content:'↗';position:absolute;top:18px;right:21px;font-size:20px;color:#879775}.stat:first-child:after{color:#c9e992}.layout{grid-template-columns:1.42fr 1fr;gap:23px}.panel{padding:25px;background:#fff;border:1px solid #e0e3da;border-radius:13px;margin-bottom:23px;overflow:hidden}.panel h2{font-size:19px;font-weight:550;letter-spacing:-.4px}.panel-head{gap:14px}.panel-head .muted{font-size:11px}.muted{color:#7b8273;font-size:13px}.map{background:#f5f7f1;border-radius:9px;margin:20px 0 12px}.map circle{stroke-width:5;transition:r .18s,filter .18s}.map circle:hover{filter:brightness(1.14)}.map text{font-family:inherit}.legend{font-size:11px;color:#7c8373;line-height:1.6}.asset{padding:16px 0 15px;background:white;column-gap:12px;grid-template-columns:1fr auto;border-bottom:1px solid #eaede5}.asset:hover{background:#f5f8ef;padding-left:8px;padding-right:8px}.asset b{font-size:14px;font-weight:550}.asset small{font-size:11px;color:#89907f}.risk{font-size:20px;font-weight:550;color:#a05a33;letter-spacing:-.4px}.bar{height:4px;background:#eaf0df;border-radius:8px;overflow:hidden}.bar span{background:#829c4c;border-radius:8px}.crew-grid{gap:23px}.crew-grid h3{font-size:13px;color:#748064;font-weight:500}.crew-grid b{font-size:24px;font-weight:500}.crew-grid .muted{display:block;font-size:11px;margin:5px 0}.crew{background:#f5f7ef;border:1px solid #e1e7d6;border-radius:9px;padding:18px}.crew>b{font-size:17px}.crew p{font-size:13px;color:#6e795f}.tag{background:#fbefd9;color:#93652c;font-size:11px;padding:6px 9px}.tag.good{background:#edf3e2;color:#5a7530}th{font-size:11px;text-transform:uppercase;letter-spacing:.7px;background:#f5f7f0;color:#80896f;padding:15px 12px}td{font-size:13px;padding:18px 12px;border-color:#edf0e8;line-height:1.7}td b{font-weight:550;color:#323d27}pre{background:#242c23;color:#d6e9b9;border-radius:10px}.chart{margin-top:12px}.field-banner{display:flex;gap:25px;align-items:center;background:#242c23;border-radius:12px;margin-bottom:24px;color:#fff;overflow:hidden}.field-banner img{width:225px;height:145px;object-fit:cover}.field-banner h2{font-size:23px;font-weight:500;margin:0 0 8px}.field-banner p{font-size:13px;color:#bfcab7;margin:0;padding-right:20px}.field-banner .eyebrow{color:#cfe6a5;margin-bottom:10px;font-size:10px}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #dce0d3;padding:20px 0;margin:15px 0 0;font-size:11px;color:#909680}footer strong{color:#596849;font-weight:600}dialog{border:1px solid #dce4cd;border-radius:17px;padding:30px;box-shadow:0 35px 130px #15271055}dialog::backdrop{background:#18201099;backdrop-filter:blur(4px)}dialog h1{font-size:48px;font-weight:500;color:#506e25}dialog h1 .muted{font-size:13px}dialog .eyebrow{margin-top:10px}#error:empty{display:none}#error{border-radius:8px;background:#fff0e6;padding:12px 18px;font-size:13px}.pending-note{color:#946627!important}.results-heading{display:flex;justify-content:space-between;align-items:center;margin:2px 0 14px}.results-heading h2{font-size:12px;text-transform:uppercase;letter-spacing:1.2px;color:#71805e;margin:0;font-weight:600}.results-heading span{font-size:11px;color:#87917b}.workspace-hero.hidden{display:none}.panel .stats{margin-top:23px}.panel .stat strong{font-size:36px}@media(min-width:1450px){.photo-panel{min-height:325px}.scenario{padding:28px 30px}.input-box{padding:13px}.input-box input{font-size:34px}}@media(max-width:1000px){.topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:18px 4% 0;gap:6px}.topbar nav{order:3;width:100%;height:54px;justify-content:center}.workspace-label{margin-left:auto}.workspace-hero{grid-template-columns:1fr 1fr;gap:16px}.photo-panel{min-height:330px}.scenario{padding:21px 17px}.controls{gap:7px}.input-box{padding:10px 7px}.input-box input{font-size:25px}.scenario-actions{flex-direction:column}.scenario-actions button{padding:10px}.layout{grid-template-columns:1fr 1fr}.stat{padding:19px}.stat strong{font-size:38px}.photo-content{inset:22px}.photo-content h2{font-size:29px}.panel{padding:20px}}@media(max-width:700px){main{padding:26px 5% 12px}.topbar{padding:16px 5% 0}.brand span{font-size:23px}.workspace-label{font-size:10px}.topbar nav{overflow-x:auto;justify-content:flex-start;gap:0;white-space:nowrap}.topbar nav button{padding:0 12px;font-size:12px;flex-shrink:0}.intro h1{font-size:30px}.context-note{display:none}.workspace-hero{display:flex;flex-direction:column}.photo-panel{min-height:220px}.photo-content h2{font-size:27px}.scenario{padding:21px}.scenario-actions{flex-direction:row}.controls{gap:11px}.input-box input{font-size:29px}.stats{grid-template-columns:1fr;gap:11px}.stat{display:grid;grid-template-columns:1fr auto;align-items:center;padding:17px 20px;gap:4px}.stat strong{grid-column:2;grid-row:1/3;margin:0;font-size:38px}.stat .muted{grid-column:1}.stat:after{display:none}.layout{grid-template-columns:1fr}.panel{padding:20px}.panel-head{align-items:start}.map text{font-size:15px}.crew-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field-banner{gap:16px}.field-banner img{width:100px;height:170px}.field-banner h2{font-size:20px}.field-banner p{font-size:12px}.panel .stat strong{font-size:30px}.scenario-foot{font-size:10px}footer{display:block;line-height:1.8}.context-note{display:none}dialog{padding:23px}dialog h1{font-size:39px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.topbar{margin-bottom:0;height:76px}main{padding-top:26px}.intro{margin-bottom:20px}.photo-panel{min-height:280px}.workspace-hero{margin-bottom:20px}.photo-content h2{font-size:30px}.scenario{padding-top:20px;padding-bottom:20px}@media(max-width:1000px){.topbar{height:auto}.photo-panel{min-height:310px}}@media(max-width:700px){.photo-panel{min-height:220px}}
.stat:after{display:none}.photo-content h2{font-weight:500}.results-heading span{text-align:right}
.topbar nav{scrollbar-width:none}.topbar nav::-webkit-scrollbar{display:none}

/* ── Transformer Simulation view ─────────────────────────────── */
/* Shell — clips content so nothing bleeds out of bounds */
.sim-shell{padding:4px 0 32px;overflow:hidden;min-width:0}
/* Header row: title left, asset picker right */
.sim-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px;flex-wrap:wrap;min-width:0}
.sim-header>div{min-width:0;flex:1}
.sim-header h2{font-size:22px;font-weight:650;letter-spacing:-.5px;margin:6px 0 4px;color:#1a2318}
.sim-header p.muted{margin:0;font-size:13px}
/* Asset selector */
.sim-select-wrap{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#6b7566;font-weight:600;min-width:230px;flex-shrink:0}
.sim-select{font:inherit;font-size:14px;font-weight:500;border:1.5px solid #c8d0bf;border-radius:9px;padding:10px 13px;background:#fff;color:#1e2a1a;cursor:pointer;appearance:auto}
.sim-select:focus{outline:3px solid #809c40;outline-offset:3px}
/* Two-column layout: SVG left, blocks right */
.sim-layout{display:grid;grid-template-columns:360px 1fr;gap:28px;align-items:start;min-width:0}
@media(max-width:960px){.sim-layout{grid-template-columns:1fr}}
/* Visual column */
.sim-visual-col{display:flex;flex-direction:column;gap:14px;align-items:stretch;min-width:0}
.sim-visual-wrap{border-radius:16px;padding:20px;width:100%;box-sizing:border-box;transition:background .35s,box-shadow .35s}
/* Tint backgrounds — solid enough to read against the light site bg */
.sim-wrap-red{background:rgba(185,28,28,.10);box-shadow:0 0 0 2px rgba(185,28,28,.30),0 4px 18px rgba(185,28,28,.10)}
.sim-wrap-orange{background:rgba(180,83,9,.09);box-shadow:0 0 0 2px rgba(180,83,9,.28),0 4px 18px rgba(180,83,9,.09)}
.sim-wrap-green{background:rgba(22,101,52,.08);box-shadow:0 0 0 2px rgba(22,101,52,.25),0 4px 18px rgba(22,101,52,.07)}
/* SVG colour tokens — fully opaque named colours */
.sim-tint-red{color:#b91c1c}
.sim-tint-orange{color:#b45309}
.sim-tint-green{color:#166534}
.sim-svg{width:100%;height:auto;display:block}
.sim-tank{fill:currentColor;opacity:.25;stroke:currentColor;stroke-width:2;stroke-opacity:.7}
/* Pulse ring */
@keyframes sim-pulse{0%{opacity:.3}50%{opacity:.06}100%{opacity:.3}}
.sim-pulse{animation:sim-pulse linear infinite}
/* Arc discharge */
@keyframes sim-arc-flash{0%,100%{opacity:0}25%,55%{opacity:1}42%{opacity:.25}}
.sim-arc{stroke:currentColor;animation:sim-arc-flash ease-in-out infinite}
/* Status pill under SVG */
.sim-status-pill{font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding:8px 18px;border-radius:20px;background:color-mix(in srgb,var(--pill-color,#166534) 16%,#fff);color:var(--pill-color,#166534);border:1.5px solid color-mix(in srgb,var(--pill-color,#166534) 35%,#ddd);text-align:center;width:100%;box-sizing:border-box}
/* Info blocks */
.sim-info-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.sim-block{background:#fff;border:1px solid #dde3d6;border-radius:12px;padding:20px 22px;line-height:1.7;font-size:14px;color:#242820;overflow-wrap:break-word;word-break:break-word;min-width:0}
.sim-block p{margin:4px 0}
.sim-block p:first-child{margin-top:0}
.sim-block p:last-child{margin-bottom:0}
.sim-block-label{font-size:10px!important;font-weight:700;letter-spacing:1.6px;color:#6b7566;text-transform:uppercase;display:block;margin-bottom:5px}
.sim-block-title{font-size:16px;font-weight:700;letter-spacing:-.3px;display:block;margin-bottom:10px}
/* Coloured left border variants */
.sim-block-critical{border-left:4px solid #b91c1c;background:rgba(185,28,28,.04)}
.sim-block-elevated{border-left:4px solid #b45309;background:rgba(180,83,9,.04)}
.sim-block-normal{border-left:4px solid #166534;background:rgba(22,101,52,.04)}
.sim-foot{font-size:12px;margin-top:16px;color:#7b8273}
/* ────────────────────────────────────────────────────────────── */

/* Refined simulation workspace */
.sim-shell{padding:30px;border:1px solid #fff;border-radius:26px;background:#f8fcffde;box-shadow:0 18px 50px #244f6a24,inset 0 1px #fff;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}
.sim-header{align-items:end;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #dbe9f0}
.sim-header h2{margin:5px 0 4px;color:#153f58;font-family:'Iowan Old Style',Baskerville,Georgia,serif;font-size:31px;font-style:italic;font-weight:600;line-height:1.05}
.sim-header p.muted{max-width:620px;color:#6d8999;line-height:1.5}
.sim-select-wrap{width:min(310px,100%);min-width:260px;color:#567387}
.sim-select{width:100%;min-width:0;border-color:#c6dce8;border-radius:13px;padding:12px 14px;background:#fff;color:#173f54;box-shadow:0 5px 16px #294f6210}
.sim-layout{grid-template-columns:minmax(280px,350px) minmax(0,1fr);gap:22px}
.sim-visual-wrap{overflow:hidden;padding:16px;border-radius:20px}
.sim-svg{max-height:390px}
.sim-status-pill{padding:10px 14px;border-radius:13px;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.sim-info-col{gap:11px}
.sim-block{padding:18px 20px;border-color:#dbe7ed;border-radius:15px;color:#385667;font-size:13px;line-height:1.55;word-break:normal;box-shadow:0 6px 18px #234d6110}
.sim-block-label{color:#76919f}
.sim-block-title{color:#173f54;font-family:'Iowan Old Style',Baskerville,Georgia,serif;font-size:19px;font-style:italic;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.sim-block p{max-width:100%;overflow-wrap:anywhere}
.sim-foot{margin:17px 2px 0;color:#7892a0;line-height:1.5}
@media(max-width:960px){.sim-layout{grid-template-columns:1fr}.sim-visual-col{width:min(480px,100%);margin:auto}.sim-info-col{width:100%}}
@media(max-width:700px){.sim-shell{padding:20px;border-radius:21px}.sim-header{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}.sim-select-wrap{width:100%;min-width:0}.sim-visual-wrap{padding:10px}.sim-svg{max-height:none}.sim-block{padding:17px}.sim-status-pill{font-size:9px}.sim-foot{font-size:10px}}
