/* Local native MathML for teaching equations. All selectors are isolated. */
.lab-equation-card{min-width:0;margin:18px 0 23px;padding:18px 20px;border:1px solid #42647b;border-radius:12px;background:#0e293d;color:#e8f4fa;letter-spacing:normal;font-style:normal}
.lab-equation-card h4{font:600 14px/1.5 'Segoe UI',Arial,sans-serif;color:#a0e9dc;margin:0 0 13px;letter-spacing:.01em}
.lab-equation-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:4px 4px 11px;border-top:1px solid #35546c;border-bottom:1px solid #35546c;scrollbar-width:thin;scrollbar-color:#79a0b7 #10283b}
.lab-equation-scroll:focus-visible{outline:3px solid #ffc38b;outline-offset:4px}
.lab-equation-card math{font-family:'Cambria Math','STIX Two Math','Latin Modern Math',math;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:#eff8fd}
.lab-equation-scroll math{font-size:24px;width:max-content;min-width:min-content;max-width:none;margin:14px auto;white-space:nowrap}
.lab-equation-card mtext{font-size:.87em}
.lab-equation-card .lab-equation-note{font:13px/1.6 'Segoe UI',Arial,sans-serif;color:#bad1df;margin:13px 0 0;max-width:80ch}
.lab-equation-key{margin:13px 0 0}
.lab-equation-card .lab-equation-key summary{font:13px/1.5 'Segoe UI',Arial,sans-serif;cursor:pointer;color:#9bddda;padding:4px 0;margin-left:14px;list-style-position:outside}
.lab-equation-key dl{margin:10px 0 0;border-top:1px solid #35546c}
.lab-equation-key dl>div{display:grid;grid-template-columns:minmax(75px,110px) minmax(0,1fr);gap:16px;padding:10px 0;border-bottom:1px solid #35546c}
.lab-equation-key dt{align-self:center;overflow-x:auto;min-width:0}
.lab-equation-key dt math{font-size:18px;white-space:nowrap}
.lab-equation-key dd{margin:0;font:12px/1.6 'Segoe UI',Arial,sans-serif;color:#bad1df;overflow-wrap:anywhere}
.lab-equation-compact{padding:15px 16px;margin:15px 0;background:#0e293d80}
.lab-equation-compact .lab-equation-scroll math{font-size:23px}
@media(max-width:560px){.lab-equation-card{padding:15px 12px}.lab-equation-scroll math,.lab-equation-compact .lab-equation-scroll math{font-size:21px}.lab-equation-key dl>div{grid-template-columns:75px minmax(0,1fr);gap:10px}.lab-equation-key dt math{font-size:16px}}
@media print{.lab-equation-card{background:white;border-color:#aaa;break-inside:avoid}.lab-equation-card math,.lab-equation-card h4,.lab-equation-card .lab-equation-note,.lab-equation-key dd{color:black}.lab-equation-scroll{overflow:visible}}

/* Expanded legacy notes grids must not inherit MathML's intrinsic minimum width. */
.notes-grid:has(.lab-equation-card)>div{min-width:0}
.lab-equation-card,.lab-equation-scroll{box-sizing:border-box;min-width:0;max-width:100%}
