/* ECE 360 interactive teaching studio — consistent with APERIODIC / UNM palette */
.em-hero{background:#0e1e2a;color:#fff;padding:54px 0 64px;overflow:hidden;position:relative}
.em-hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 80% 48%,rgba(0,122,134,.18),transparent 42%)}
.em-hero>.container{position:relative;z-index:1}.em-hero .breadcrumb{color:#bccbd0;margin-bottom:27px}.em-hero .breadcrumb a{color:#f5a4b5}.em-hero .breadcrumb span{color:#648390}
.em-hero-grid{display:grid;grid-template-columns:1fr .69fr;gap:35px;align-items:center}.em-hero h1{font-size:clamp(2.6rem,5.0vw,4.7rem);letter-spacing:-.052em;line-height:1.05;margin:13px 0 20px}.em-hero h1 em{font-style:normal;color:#f7a5b6}
.em-hero p{max-width:640px;font-size:16px;line-height:1.75;color:#bcd0d7;margin:0}.em-hero-art{max-width:440px;justify-self:end;opacity:.95}.em-hero-art svg{width:100%;height:auto}.em-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:27px;margin-top:29px}.em-back-link{color:#bbd8dd;font-size:13px;font-weight:700}.em-back-link:hover{color:#fff}
.em-workspace{background:#f2f5f5}.em-layout{max-width:1520px;margin:0 auto;display:grid;grid-template-columns:285px minmax(0,1fr);align-items:start;min-height:900px}
.em-sidebar{position:sticky;top:86px;align-self:start;max-height:calc(100vh - 86px);overflow-y:auto;background:#fff;border-right:1px solid #dce4e5;padding:27px 13px 22px 20px;scrollbar-width:thin}
.em-side-head{padding:10px 10px 24px;border-bottom:1px solid #e6ecec;display:flex;flex-direction:column}.em-side-eyebrow{font-size:10px;font-weight:850;letter-spacing:.17em;color:var(--cherry);margin-bottom:5px}.em-side-head strong{font-size:17px;letter-spacing:-.025em}.em-side-head #em-module-count{font-size:12px;color:#788991;margin-top:4px}
.em-topic-button{display:flex;align-items:start;width:100%;border:none;border-radius:5px;background:transparent;text-align:left;color:#485a63;padding:13px 11px;gap:11px;cursor:pointer;margin:4px 0;transition:background .15s,color .15s}
.em-topic-button:hover{background:#f0f3f4;color:#152936}.em-topic-button[aria-current="true"]{background:#fff0f2;color:#98132f;border-left:3px solid var(--cherry);padding-left:8px}
.em-topic-num{font-size:11px;font-weight:800;letter-spacing:.02em;color:#93a1a5;min-width:22px;padding-top:2px}.em-topic-button[aria-current="true"] .em-topic-num{color:var(--cherry)}.em-topic-name{font-size:12px;line-height:1.45;font-weight:750}
.em-side-foot{font-size:11px;color:#829195;line-height:1.55;border-top:1px solid #e6ecec;padding:22px 10px 12px;margin-top:15px}.em-side-dot{width:8px;height:8px;background:var(--turquoise);display:inline-block;border-radius:50%;margin-right:5px}
.em-main{min-width:0;padding:45px clamp(22px,4.3vw,72px) 70px}.em-module-topline{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;font-size:10px;font-weight:850;letter-spacing:.15em;color:#a01d35}.em-module-topline>span:last-child{color:#57747d}
.em-module-heading{display:flex;justify-content:space-between;align-items:center;gap:23px;margin:14px 0 30px}.em-module-heading h2{font-size:clamp(29px,3vw,42px);max-width:890px;line-height:1.12;margin-bottom:11px;color:#172d39}.em-module-heading p{font-size:15px;max-width:720px;margin:0;line-height:1.65}.em-change-nav{display:flex;gap:7px;flex-shrink:0}.em-change-nav button{height:41px;width:42px;border:1px solid #d3dfe2;background:#fff;color:#355362;border-radius:3px;font-weight:800;font-size:20px}.em-change-nav button:hover:not(:disabled){background:var(--cherry);color:white;border-color:var(--cherry)}.em-change-nav button:disabled{opacity:.3;cursor:not-allowed}
.em-theory-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:15px;margin-bottom:38px}.em-theory,.em-equations{padding:28px 30px;background:#fff;border:1px solid #dce4e5;border-radius:5px;min-width:0}.em-panel-label{font-size:10px;font-weight:850;letter-spacing:.13em;color:#8d2342;margin-bottom:16px}.em-icon-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--cherry);margin-right:5px}.em-theory p{font-size:13.5px;line-height:1.75;margin-bottom:12px;color:#495c66}.em-theory p:last-child{margin-bottom:0}.em-theory strong{color:#213641}.em-concept-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}.em-concept-tags span{display:inline-block;background:#edf5f5;color:#306a73;font-size:10px;padding:5px 8px;font-weight:750;border-radius:3px}
.em-equation{border-bottom:1px solid #edf0f1;padding:0 0 12px;margin-bottom:13px}.em-equation:last-child{padding-bottom:0;border-bottom:0;margin-bottom:0}.em-eq-title{font-size:11px;font-weight:800;color:#67767c;margin-bottom:6px}.em-eq-math{font-size:clamp(14px,1.22vw,18px);line-height:1.6;color:#172c3d;font-family:"Cambria Math","STIX Two Math","DejaVu Sans","Segoe UI Symbol",serif;overflow-wrap:anywhere;letter-spacing:.005em}.em-eq-math sub,.em-eq-math sup{font-size:.7em}.em-eq-note{font-size:11px;line-height:1.5;color:#637580;margin-top:5px}
.em-station-title{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:16px}.em-station-title .eyebrow{margin-bottom:4px}.em-station-title h3{font-size:25px;margin:0}.em-live{font-size:10px;letter-spacing:.08em;font-weight:850;color:#287887;display:flex;align-items:center;gap:8px}.em-live span{width:7px;height:7px;border-radius:50%;background:#0eac9f;box-shadow:0 0 0 4px #bdeae2}
.em-experiment-grid{display:grid;grid-template-columns:minmax(225px,300px) minmax(0,1fr);gap:0;align-items:stretch;border:1px solid #d6e0e3;border-radius:0 6px 6px 6px;overflow:hidden;box-shadow:0 14px 28px rgba(17,36,48,.045);background:#fff}
.em-controls{background:#fff;padding:25px 23px;border-right:1px solid #dfe7e9;min-width:0}.em-controls-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:19px;border-bottom:1px solid #e8eded}.em-controls-heading h4{font-size:15px;letter-spacing:-.02em;margin:0}.em-controls-heading button{font-size:11px;color:#8f1530;font-weight:800;border:0;background:transparent;padding:5px 0}.em-controls-heading button:hover{text-decoration:underline}
.em-control-field{padding:17px 0 0}.em-control-field>label{font-size:12px;color:#425763;font-weight:800;display:block;line-height:1.5}.em-field-caption{display:block;color:#85959c;font-size:10px;margin:3px 0 7px}.em-dual-inputs{display:flex;align-items:center;gap:8px}.em-dual-inputs input[type="range"]{width:100%;min-width:0;accent-color:#ba0c2f;cursor:pointer;height:20px}.em-number-wrap{display:flex;align-items:center;border:1px solid #d5dfe2;border-radius:3px;background:#f9fbfb;padding:0 5px 0 0;max-width:104px;flex-shrink:0}.em-number-wrap input[type="number"]{width:63px;min-width:0;font-size:12px;color:#193d4a;border:0;background:transparent;padding:8px 5px 8px 7px;font-weight:800;text-align:right;-moz-appearance:textfield}.em-number-wrap input[type="number"]::-webkit-inner-spin-button{opacity:.3}.em-number-wrap span{font-size:10px;color:#60737b;white-space:nowrap}.em-select-wrap{margin-top:14px}.em-select-wrap label{font-size:11px;font-weight:800;color:#455a63;display:block;margin-bottom:6px}.em-select-wrap select{width:100%;border:1px solid #d5dfe2;padding:10px;border-radius:3px;background:#f9fbfb;color:#233a43;font-size:12px}
.em-control-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.em-action{font-size:11px;padding:8px 11px;font-weight:800;color:#165667;background:#e5f2f2;border:1px solid #bde0e0;border-radius:3px}.em-action:hover{background:#c9e9e8}.em-unit-hint{font-size:11px;color:#839298;line-height:1.6;border-top:1px solid #e8eded;padding-top:16px;margin:22px 0 0}
.em-display{min-width:0;background:#102530;color:#fff;display:flex;flex-direction:column}.em-display-head{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid #29404a}.em-display-kicker{color:#78a9b5;font-size:9px;font-weight:800;letter-spacing:.13em;display:block;margin-bottom:4px}.em-display-head strong{font-size:13px;letter-spacing:-.01em}.em-scene-unit{font-size:10px;color:#829eaa;text-align:right;max-width:150px}
.em-canvas-shell{padding:0;flex:0 0 auto;display:flex;align-items:flex-start;justify-content:center;overflow-x:auto}.em-canvas-shell canvas{display:block;width:100%;height:auto;aspect-ratio:5/3;touch-action:pan-x pan-y}
.em-metrics{border-top:1px solid #36515e;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 13px;margin:0 22px}.em-metric{padding:14px 0 11px;min-width:0;border-bottom:1px solid #263f4b}.em-metric-label{color:#96b0b7;font-size:11px;letter-spacing:.02em;font-weight:750;margin-bottom:6px;line-height:1.4}.em-metric-value{font-size:clamp(14px,1.45vw,19px);font-weight:850;color:#fff;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.em-metric-desc{font-size:10px;color:#89adb7;line-height:1.4;margin-top:4px}.em-display-caption{color:#9bb3b9;font-size:11px;line-height:1.55;padding:13px 22px 18px;margin-top:auto}
.em-inquiry{margin-top:18px;border:1px solid #bcdad9;background:#e8f3f2;padding:20px 24px;display:flex;gap:14px;align-items:start;border-radius:4px}.em-inquiry-icon{width:25px;height:25px;border-radius:50%;border:1.5px solid #478f94;color:#23707a;display:inline-grid;place-items:center;font-weight:850;flex-shrink:0}.em-inquiry strong{color:#1e4952;font-size:12px}.em-inquiry ol{font-size:13px;color:#3f5c64;line-height:1.65;margin:6px 0 0;padding-left:19px}.em-inquiry li{margin:3px 0}.em-inquiry li::marker{color:#23707a;font-weight:800}.em-disclaimer{font-size:11px;color:#77898e;line-height:1.6;margin:24px 0 15px}.em-bottom-nav{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #d6e3e5;padding-top:22px;margin-top:22px}.em-bottom-nav button{font-size:12px;color:#143e4d;font-weight:800;border:1px solid #c6d8dc;background:white;border-radius:3px;padding:12px 15px}.em-bottom-nav button:hover:not(:disabled){color:white;background:#143e4d}.em-bottom-nav button:disabled{opacity:.25;cursor:not-allowed}.em-bottom-nav span{font-size:11px;color:#71878e;font-weight:850;letter-spacing:.08em}
.em-hub-feature{background:#122937;color:white;display:grid;grid-template-columns:1fr .65fr;gap:25px;overflow:hidden;padding:32px;margin-top:20px;border-radius:4px}.em-hub-feature h3{font-size:clamp(21px,2.7vw,30px);margin:10px 0}.em-hub-feature p{color:#b9d1d8;max-width:560px}.em-hub-feature .btn{margin-top:12px}.em-hub-count{font-size:10px;font-weight:850;letter-spacing:.15em;color:#f1a5b5}.em-hub-diagram{align-self:center;max-width:320px}
@media(max-width:1280px){.em-layout{grid-template-columns:243px minmax(0,1fr)}.em-main{padding:40px 28px 65px}.em-experiment-grid{grid-template-columns:260px minmax(0,1fr)}.em-controls{padding:22px 17px}.em-theory,.em-equations{padding:23px}}
@media(max-width:1050px){.em-layout{grid-template-columns:1fr}.em-sidebar{position:relative;top:auto;max-height:none;overflow-x:auto;overflow-y:hidden;padding:16px 18px 5px;border-right:0;border-bottom:1px solid #dce4e5}.em-side-head{padding:0 0 12px;border:none}.em-side-head strong{font-size:15px}.em-side-head #em-module-count{display:none}.em-topic-button{flex:0 0 210px;align-items:center;border:1px solid #e5ebeb;margin:0;min-height:56px;padding:9px}.em-topic-button[aria-current="true"]{border:1px solid #deb7c1;border-bottom:3px solid var(--cherry);padding:9px}.em-topic-button .em-topic-name{font-size:11px}.em-topic-button .em-topic-num{font-size:10px}.em-sidebar #em-topic-nav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding-bottom:10px}.em-side-foot{display:none}.em-main{max-width:1200px;width:100%;margin:auto}.em-hero-grid{grid-template-columns:1fr .5fr}}
@media(max-width:760px){.em-hero{padding:35px 0 45px}.em-hero-grid{grid-template-columns:1fr}.em-hero-art{display:none}.em-hero h1{font-size:clamp(32px,8vw,53px)}.em-hero p{font-size:14px}.em-main{padding:30px 18px 55px}.em-theory-grid{grid-template-columns:1fr}.em-experiment-grid{grid-template-columns:1fr}.em-controls{border-right:0;border-bottom:1px solid #dfe7e9}.em-controls #em-control-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.em-controls .em-select-wrap{max-width:380px}.em-hub-feature{grid-template-columns:1fr}.em-hub-diagram{display:none}}
@media(max-width:480px){.em-controls #em-control-fields{grid-template-columns:1fr}.em-station-title{align-items:start;flex-direction:column}.em-module-heading h2{font-size:28px}.em-change-nav button{width:35px;height:37px}.em-metrics{grid-template-columns:1fr;gap:0;margin:12px 17px 0}.em-metric{padding:12px 0}.em-display-head{padding:15px}.em-display-caption{padding:15px}.em-control-field{padding-top:12px}.em-main{padding:28px 15px 50px}.em-theory,.em-equations{padding:22px}.em-hero-actions{gap:13px}}
@media(prefers-reduced-motion:reduce){.em-topic-button,.em-change-nav button{transition:none}}


/* ---- 2026 rework: typeset equations, experiment tabs, play control ---- */
.em-eq-math{overflow-x:auto;overflow-y:hidden;padding:3px 0;scrollbar-width:thin}
.em-eq-math+.em-eq-math{margin-top:4px}
.em-eq-math math{font-size:1.08em;text-align:left}
math{font-family:"Cambria Math","STIX Two Math","Latin Modern Math","Noto Sans Math","DejaVu Math TeX Gyre",math,serif}
math .mb{font-family:"Times New Roman",Times,"Nimbus Roman","Liberation Serif","DejaVu Serif",serif;font-weight:700}
.em-metric-label sub,.em-metric-label sup,.em-metric-value sub,.em-metric-value sup{font-size:.72em}
.em-theory math,.em-eq-note math,.em-inquiry math,.em-display-caption math{font-size:1.13em}
.em-theory h4{font-size:12px;letter-spacing:.02em;color:#213641;margin:16px 0 6px}
.em-theory ul{font-size:13.5px;line-height:1.7;color:#495c66;margin:0 0 12px;padding-left:18px}
.em-theory li{margin:3px 0}
.em-nav-group{font-size:9.5px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:#8fa0a6;padding:16px 11px 4px}
.em-topic-button{padding:9px 11px;margin:2px 0}
.em-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:-1px;position:relative;z-index:1}
.em-tab{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800;color:#48606a;background:#e4ebec;border:1px solid #d6e0e3;border-bottom-color:#d6e0e3;border-radius:6px 6px 0 0;padding:11px 16px 10px;line-height:1.3;text-align:left}
.em-tab span{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#cbd8db;color:#3b545e;font-size:10px;flex-shrink:0}
.em-tab:hover{background:#eef3f3;color:#152936}
.em-tab[aria-selected="true"]{background:#fff;color:#98132f;border-bottom-color:#fff;box-shadow:inset 0 3px 0 var(--cherry)}
.em-tab[aria-selected="true"] span{background:var(--cherry);color:#fff}
.em-select{width:100%;border:1px solid #d5dfe2;padding:9px 10px;border-radius:3px;background:#f9fbfb;color:#233a43;font-size:12px;font-weight:700;margin-top:7px}
.em-control-field>label sub,.em-control-field>label sup{font-size:.75em}
.em-display-tools{display:flex;align-items:center;gap:14px}
.em-play{font-size:11px;font-weight:800;letter-spacing:.04em;color:#0f2a35;background:#8fe3e0;border:0;border-radius:3px;padding:8px 13px;min-width:88px;white-space:pre}
.em-play:hover{background:#b9f1ee}
.em-play[hidden]{display:none}
.em-live.paused{color:#8a6a2d}.em-live.paused span{background:#e0a94a;box-shadow:0 0 0 4px #f3e0bd}
.em-display-caption{padding-top:14px}
@media(max-width:1050px){.em-nav-group{display:none}.em-topic-button{margin:0;padding:9px}}
@media(max-width:760px){.em-canvas-shell{justify-content:flex-start}.em-canvas-shell canvas{min-width:600px}.em-tab{padding:9px 11px;font-size:11px}.em-experiment-grid{border-radius:0 0 6px 6px}}
@media(max-width:480px){.em-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:0 15px}.em-display-tools .em-scene-unit{display:none}}

/* topic index on the ECE 360 hub page */
.em-topic-index-title{font-size:15px;margin:34px 0 12px;letter-spacing:-.01em}
.em-topic-index{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.em-topic-index a{display:flex;gap:13px;align-items:flex-start;padding:13px 15px;background:#fff;border:1px solid #dce4e5;border-radius:4px;height:100%;transition:border-color .15s,box-shadow .15s}
.em-topic-index a:hover{border-color:var(--cherry);box-shadow:0 6px 18px rgba(17,36,48,.06);color:inherit}
.em-ti-num{font-size:11px;font-weight:850;color:var(--cherry);padding-top:2px;min-width:20px}
.em-topic-index strong{display:block;font-size:13.5px;color:#172d39;line-height:1.35}
.em-topic-index em{display:block;font-style:normal;font-size:12px;color:#5d6f78;line-height:1.5;margin-top:3px}
@media(max-width:760px){.em-topic-index{grid-template-columns:1fr}}
.em-ctl-read{float:right;font-weight:800;color:#98132f;font-size:11.5px;font-variant-numeric:tabular-nums}
