:root{color-scheme:dark;--bg:#10181d;--panel:#1a252b;--panel2:#202e35;--line:#34434a;--text:#f1f0e9;--muted:#a7b2b5;--dim:#738187;--accent:#e7a452;--accent-soft:rgba(231,164,82,.14);--shadow:0 16px 42px rgba(0,0,0,.22);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 14% 0%,#26343a 0%,var(--bg) 52%);color:var(--text);min-height:100vh}button,input,select{font:inherit}button,select,input[type=range]{accent-color:var(--accent)}button,select{color:var(--text)}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.sitebar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,42px);border-bottom:1px solid rgba(167,178,181,.14);background:rgba(16,24,29,.72);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);font-size:12px;letter-spacing:.16em;font-weight:800}.brand-mark{width:28px;height:28px;border:1px solid var(--accent);border-radius:50%;display:grid;place-items:center;color:var(--accent)}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.2em;font-weight:600;margin-top:3px}.bar-right{display:flex;align-items:center;gap:14px}.bar-label,.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.18em;color:var(--accent);font-weight:800}.family-select{background:#172228;border:1px solid var(--line);border-radius:7px;padding:9px 30px 9px 10px;font-size:11px;max-width:210px}.page{max-width:1480px;margin:0 auto;padding:30px clamp(16px,3vw,42px) 52px}.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(29px,3.3vw,46px);letter-spacing:-.035em;line-height:1.06;margin:8px 0 8px}.hero p{color:var(--muted);max-width:650px;line-height:1.55;margin:0;font-size:13px}.hero-meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pill{border:1px solid var(--line);padding:7px 10px;border-radius:99px;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}.pill.accent{color:var(--accent);border-color:rgba(231,164,82,.45);background:var(--accent-soft)}.layout{display:grid;gap:16px;align-items:stretch}.panel{background:linear-gradient(145deg,rgba(31,45,52,.96),rgba(23,34,40,.96));border:1px solid rgba(167,178,181,.15);border-radius:13px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px 12px;border-bottom:1px solid rgba(167,178,181,.12)}.panel-head h2{font-size:12px;letter-spacing:.11em;text-transform:uppercase;margin:0;font-weight:800}.panel-head span{font-size:10px;color:var(--muted)}.panel-body{padding:16px}.stage{position:relative;min-height:340px;height:clamp(340px,48vh,540px);background:#111a1f;border-radius:0 0 13px 13px;overflow:hidden}.stage canvas,.plot-stage canvas,.plot-canvas{display:block;width:100%;height:100%}.plot-stage{height:250px;min-height:210px;background:#121b20;border-radius:9px;overflow:hidden}.controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn svg{vertical-align:-2px;margin-right:5px;flex:none}.btn{border:1px solid var(--line);background:#26363d;border-radius:7px;padding:9px 13px;font-size:11px;font-weight:700;letter-spacing:.02em;transition:background .15s,border-color .15s}.btn:hover{background:#31444c;border-color:#64757c}.btn.primary{background:var(--accent);border-color:var(--accent);color:#1a1c1d}.btn.primary:hover{background:#f2b76d}.btn.ghost{background:transparent}.btn.small{padding:7px 10px;font-size:10px}.btn:disabled{opacity:.45;cursor:not-allowed}.control-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.control-panel{padding:16px}.control-panel h3{font-size:11px;text-transform:uppercase;letter-spacing:.13em;margin:0 0 14px}.control{margin:0 0 15px}.control label{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin-bottom:7px}.control output{color:var(--text);font-variant-numeric:tabular-nums}.control input[type=range]{width:100%;height:4px;display:block;cursor:pointer}.control .unit{color:var(--dim);font-size:10px}.readouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.metric{background:rgba(10,17,21,.42);border:1px solid rgba(167,178,181,.12);border-radius:9px;padding:12px;min-width:0}.metric .label{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);line-height:1.4}.metric strong{display:block;font-family:Georgia,serif;font-size:clamp(19px,2vw,26px);font-weight:500;margin-top:5px;font-variant-numeric:tabular-nums;white-space:nowrap}.metric small{display:block;color:var(--dim);font-size:9px;margin-top:3px}.science{margin-top:16px;border:1px solid rgba(167,178,181,.14);border-radius:10px;background:rgba(17,26,31,.62)}.science summary{cursor:pointer;padding:13px 15px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.science summary::marker{color:var(--accent)}.science-content{padding:0 15px 15px;color:var(--muted);font-size:11px;line-height:1.65}.equation{font-family:Georgia,serif;color:var(--text);font-size:15px;letter-spacing:.01em;margin:8px 0}.note{font-size:10px;color:var(--dim);line-height:1.5}.status{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px}.status::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);display:inline-block}.footer-note{font-size:9px;color:var(--dim);margin-top:18px;line-height:1.5}.data-table{width:100%;border-collapse:collapse;font-size:11px}.data-table th{text-align:left;color:var(--muted);font-size:9px;letter-spacing:.1em;text-transform:uppercase;padding:9px;border-bottom:1px solid var(--line)}.data-table td{padding:9px;border-bottom:1px solid rgba(167,178,181,.1);font-variant-numeric:tabular-nums}.data-table tr:last-child td{border-bottom:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stack{display:grid;gap:14px}.range-note{display:flex;justify-content:space-between;color:var(--dim);font-size:9px;margin-top:4px}.chip-row{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--line);border-radius:6px;padding:6px 8px;color:var(--muted);font-size:10px;background:transparent}.chip.active{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:9px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:15px;height:2px;background:var(--accent);display:inline-block}.legend i.neutral{background:#819097}.canvas-wrap{position:relative}.canvas-caption{position:absolute;left:14px;bottom:12px;color:#a9b4b8;font-size:9px;letter-spacing:.08em;text-transform:uppercase;pointer-events:none}.module-cross .layout{grid-template-columns:minmax(0,1.7fr) minmax(290px,.72fr)}.module-cross .stage{height:clamp(360px,53vh,570px)}.module-curves .layout{grid-template-columns:minmax(0,1fr) 290px}.module-curves .plots{display:grid;grid-template-columns:1fr;gap:14px}.module-curves .plot-stage{height:235px}.module-bench .layout{grid-template-columns:minmax(0,1.3fr) minmax(320px,.8fr)}.module-bench .stage{height:330px;min-height:300px}.module-compare .compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.module-compare .plot-stage{height:310px}.module-explorer .layout{grid-template-columns:minmax(0,1.35fr) minmax(300px,.75fr)}.module-explorer .stage{height:clamp(380px,55vh,580px)}.module-challenge .layout{grid-template-columns:minmax(0,1.25fr) minmax(320px,.8fr)}.module-challenge .stage{height:clamp(360px,50vh,540px)}.module-report .layout{grid-template-columns:minmax(0,1fr) 320px}.module-report .plot-stage{height:280px}.module-report .report-actions{display:flex;gap:8px;flex-wrap:wrap}.embed-mode{height:100vh;height:100dvh;overflow:hidden}.embed-mode .sitebar{display:none}.embed-mode .page{height:100vh;height:100dvh;padding:14px 16px 16px;display:flex;flex-direction:column;max-width:none;overflow:hidden}.embed-mode .hero{margin-bottom:12px;flex:0 0 auto}.embed-mode .hero h1{font-size:clamp(22px,2.3vw,30px)}.embed-mode .hero p{font-size:11px}.embed-mode .hero-meta{display:none}.embed-mode .layout{flex:1;min-height:0;overflow:hidden}.embed-mode .panel{min-height:0}.embed-mode .stage{height:100%;min-height:0}.embed-mode .module-curves .layout{overflow:auto}.embed-mode .footer-note{display:none}.embed-mode .science{display:none}.embed-mode .control-panel{overflow:auto}.embed-mode .module-bench .stage{height:100%}.embed-mode .module-compare .plot-stage{height:100%}.embed-mode .module-report .plot-stage{height:100%}.embed-mode .module-report .layout{overflow:auto}.embed-mode .panel-body{padding:12px}.embed-mode .panel-head{padding:12px}.embed-mode .metric{padding:8px}.embed-mode .metric strong{font-size:18px}
@media(max-width:980px){.module-cross .layout,.module-curves .layout,.module-bench .layout,.module-explorer .layout,.module-challenge .layout,.module-report .layout{grid-template-columns:1fr}.module-cross .stage,.module-explorer .stage,.module-challenge .stage{height:420px}.module-curves .plots{grid-template-columns:1fr 1fr}.module-curves .plot-stage{height:220px}.module-bench .stage{height:300px}.module-report .plot-stage{height:250px}.module-curves .layout{overflow:visible}}
@media(max-width:640px){.sitebar{height:56px;padding:0 14px}.brand{font-size:10px}.bar-label{display:none}.family-select{max-width:165px;padding:8px 22px 8px 8px;font-size:10px}.page{padding:22px 13px 34px}.hero{display:block;margin-bottom:16px}.hero h1{font-size:32px}.hero-meta{justify-content:flex-start;margin-top:12px}.readouts{grid-template-columns:repeat(2,minmax(0,1fr))}.split,.module-compare .compare-grid,.module-curves .plots{grid-template-columns:1fr}.module-cross .stage,.module-explorer .stage,.module-challenge .stage{height:320px}.module-bench .stage{height:270px}.module-compare .plot-stage{height:250px}.module-report .plot-stage{height:240px}.panel-body{padding:12px}.panel-head{padding:13px}.embed-mode .page{padding:10px}.embed-mode .hero{margin-bottom:8px}.embed-mode .hero h1{font-size:22px}.embed-mode .hero p{display:none}.embed-mode .module-cross .layout,.embed-mode .module-bench .layout,.embed-mode .module-explorer .layout,.embed-mode .module-challenge .layout{grid-template-rows:minmax(210px,1fr) auto;overflow:auto}.embed-mode .module-cross .stage,.embed-mode .module-bench .stage,.embed-mode .module-explorer .stage,.embed-mode .module-challenge .stage{height:100%;min-height:220px}.embed-mode .module-curves .layout{display:block}.embed-mode .module-curves .plots{grid-template-columns:1fr}.embed-mode .module-curves .plot-stage{height:180px}.embed-mode .module-compare .compare-grid{grid-template-columns:1fr 1fr}.embed-mode .module-compare .plot-stage{height:210px}.embed-mode .module-report .layout{display:block}.embed-mode .module-report .plot-stage{height:200px}}

/* Module layouts: module identity lives on body, so these selectors are body-scoped. */
body.module-cross .layout{grid-template-columns:minmax(0,1.7fr) minmax(290px,.72fr)}
body.module-cross .stage{height:clamp(360px,53vh,570px)}
body.module-curves .layout{grid-template-columns:minmax(0,1fr) 290px}
body.module-curves .stack{display:grid;grid-template-columns:1fr;gap:14px;min-width:0}
body.module-curves .plot-stage{height:235px}
body.module-bench .layout{grid-template-columns:minmax(0,1.3fr) minmax(320px,.8fr)}
body.module-bench .stage{height:330px;min-height:300px}
body.module-compare .compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.module-compare .plot-stage{height:310px}
body.module-explorer .layout{grid-template-columns:minmax(0,1.35fr) minmax(300px,.75fr)}
body.module-explorer .stage{height:clamp(380px,55vh,580px)}
body.module-challenge .layout{grid-template-columns:minmax(0,1.25fr) minmax(320px,.8fr)}
body.module-challenge .stage{height:clamp(360px,50vh,540px)}
body.module-report .layout{grid-template-columns:minmax(0,1fr) 320px}
body.module-report .plot-stage{height:280px}
body.embed-mode .hero p{display:none}
body.embed-mode .page{min-height:0}
body.embed-mode.module-cross .layout,body.embed-mode.module-bench .layout,body.embed-mode.module-explorer .layout,body.embed-mode.module-challenge .layout{flex:1;min-height:0;overflow:hidden}
body.embed-mode.module-cross .layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,.72fr)}
body.embed-mode.module-cross .panel:first-child,body.embed-mode.module-bench .stack>.panel:first-child,body.embed-mode.module-explorer .panel:first-child,body.embed-mode.module-challenge .panel:first-child{display:flex;flex-direction:column;min-height:0}
body.embed-mode.module-cross .stage,body.embed-mode.module-bench .stage,body.embed-mode.module-explorer .stage,body.embed-mode.module-challenge .stage{flex:1;height:auto;min-height:0}
body.embed-mode.module-bench .layout{grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr)}
body.embed-mode.module-bench .stack{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;overflow:hidden}
body.embed-mode.module-explorer .layout{grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr)}
body.embed-mode.module-challenge .layout{grid-template-columns:minmax(0,1.25fr) minmax(300px,.8fr)}
body.embed-mode.module-curves .layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;flex:1;min-height:0;overflow:hidden}
body.embed-mode.module-curves .stack{grid-template-rows:minmax(0,1fr) minmax(0,1fr);min-height:0;overflow:hidden}
body.embed-mode.module-curves .stack>.panel{display:flex;flex-direction:column;min-height:0}
body.embed-mode.module-curves .plot-stage{flex:1;height:auto;min-height:0}
body.embed-mode.module-compare .page{overflow:hidden}
body.embed-mode.module-compare .page>.panel:nth-child(2){display:none}
body.embed-mode.module-compare .compare-grid .panel-body{padding:8px}
body.embed-mode.module-compare .compare-grid .metric{padding:6px}
body.embed-mode.module-compare .compare-grid .metric strong{font-size:17px}
body.embed-mode.module-compare .compare-grid{display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0;overflow:hidden}
body.embed-mode.module-compare .compare-grid>.panel{display:flex;flex-direction:column;min-height:0}
body.embed-mode.module-compare .compare-grid .plot-stage{flex:1;height:auto;min-height:0}
body.embed-mode.module-report .layout{grid-template-columns:minmax(0,1fr) 300px;flex:1;min-height:0;overflow:hidden}
body.embed-mode.module-report .stack{display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);min-height:0;overflow:hidden}
body.embed-mode.module-report .stack>.panel{display:flex;flex-direction:column;min-height:0}
body.embed-mode.module-report .plot-stage{flex:1;height:auto;min-height:0}
@media(max-width:980px){body.module-cross .layout,body.module-curves .layout,body.module-bench .layout,body.module-explorer .layout,body.module-challenge .layout,body.module-report .layout{grid-template-columns:1fr}}
@media(max-width:640px){
 body.module-compare .compare-grid{grid-template-columns:1fr}
 body.embed-mode.module-cross .page,body.embed-mode.module-bench .page,body.embed-mode.module-explorer .page,body.embed-mode.module-challenge .page,body.embed-mode.module-curves .page,body.embed-mode.module-report .page,body.embed-mode.module-compare .page{overflow-y:auto;overflow-x:hidden}
 body.embed-mode.module-cross .layout,body.embed-mode.module-bench .layout,body.embed-mode.module-explorer .layout,body.embed-mode.module-challenge .layout,body.embed-mode.module-curves .layout,body.embed-mode.module-report .layout{display:block;overflow:visible;flex:none}
 body.embed-mode.module-cross .stage{height:250px;min-height:250px;flex:none}
 body.embed-mode.module-bench .stage{height:220px;min-height:220px;flex:none}
 body.embed-mode.module-explorer .stage{height:270px;min-height:270px;flex:none}
 body.embed-mode.module-challenge .stage{height:240px;min-height:240px;flex:none}
 body.embed-mode.module-curves .stack{display:grid;grid-template-columns:1fr;grid-template-rows:auto;overflow:visible}
 body.embed-mode.module-curves .stack>.panel{display:block}
 body.embed-mode.module-curves .plot-stage{height:180px;min-height:180px;flex:none}
 body.embed-mode.module-compare .compare-grid{display:grid;grid-template-columns:1fr;overflow:visible}
 body.embed-mode.module-compare .compare-grid .plot-stage{height:210px;min-height:210px;flex:none}
 body.embed-mode.module-report .stack{display:grid;grid-template-rows:auto;overflow:visible}
 body.embed-mode.module-report .stack>.panel{display:block}
 body.embed-mode.module-report .plot-stage{height:200px;min-height:200px;flex:none}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
