@import url('./assets/katex/katex.min.css');

.math-display{display:block;max-width:100%;padding:9px 2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;text-align:center;font-size:23px;line-height:1.5}
.math-display .katex-display{margin:.35em 0;text-align:center}
.math-display .katex-display>.katex{white-space:nowrap}
.math-display .katex,.math-inline .katex{letter-spacing:normal;text-indent:0;font-size:1.08em}
.math-inline{display:inline;white-space:nowrap;font-size:1em}
.math-rendered{font-family:inherit!important;font-size:inherit!important;letter-spacing:normal!important;overflow-wrap:normal!important;white-space:normal!important}
.route-equation-grid article{display:flex;flex-direction:column}
.route-equation-grid article>.math-display{display:flex;justify-content:center;align-items:center;min-height:134px;color:var(--accent)}
.route-equation-grid article>p{margin-top:21px}
.route-equation-grid article:has(.math-display .mtable){grid-column:auto}
.route-equation-grid .math-display .katex-display{flex:none;max-width:100%}
.route-equation-grid .math-display .katex-display>.katex{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:5px 0}
.equation-banner .principal-equation .math-display{font-size:42px;padding:14px 0}
.equation-banner code .math-display{font-size:21px}
.mechanism-table .math-display{font-size:18px;padding:8px 0}
.physics-detail .math-inline{white-space:normal}
.calibration-equation .math-display{font-size:24px;padding:16px 0}
.route-formulas .math-display{font-size:24px}
.cap-lab .cl-formula>.math-display{display:block;font-size:35px;line-height:1.5;letter-spacing:normal;white-space:normal}
.cap-lab .cl-formula>.math-display.cl-coupling-equation{font-size:20px;padding-block:10px}
.cap-lab .cl-formula>.cl-parameter-values{display:flex;gap:8px 20px;flex-wrap:wrap;justify-content:center;font-size:15px;color:var(--cl-muted)}
.cap-lab .cl-formula>.cl-parameter-values>.math-inline{font-size:15px;line-height:1.8}
.cap-lab .cl-formula .katex .mord{color:inherit}
.cap-lab .cl-formula .math-display .cl-eps{color:var(--cl-eps)}
.cap-lab .cl-formula .math-display .is-active{color:var(--cl-gap)}
@media(max-width:850px){.route-equation-grid article>.math-display{min-height:120px}.math-display{font-size:22px}.calibration-equation .math-display{font-size:21px}}
@media(max-width:560px){.math-display{font-size:19px}.route-equation-grid article>.math-display{min-height:110px}.equation-banner .principal-equation .math-display{font-size:37px}.equation-banner code .math-display{font-size:17px}.mechanism-table .math-display{font-size:16px}.calibration-equation .math-display{font-size:17px}.cap-lab .cl-formula>.math-display{font-size:31px}.cap-lab .cl-formula>.math-display.cl-coupling-equation{font-size:19px}}

.lab-how .eq>.math-display{font-size:17px;text-align:center;padding:10px 0}.lab-how .eq .katex-display{text-align:center}.lab-how .body .eq{white-space:normal;overflow-wrap:normal}@media(max-width:600px){.lab-how .eq>.math-display{font-size:15px}}

/* Independent Machine pages: a native disclosure that stays readable over the stage. */
html.lab-night:not(.machine-embed):not(.lab-film) .lab-how{display:block!important;z-index:30;font:14px/1.8 var(--sans,'Noto Sans SC','Microsoft YaHei',sans-serif)}
html.lab-night .lab-how summary{min-height:44px;display:flex;align-items:center;padding:8px 12px;box-sizing:border-box;font-size:14px;line-height:1.5;border:1px solid #425348;border-radius:9px;background:#172a20}
html.lab-night .lab-how[open]{width:min(560px,calc(100vw - 32px));right:16px;bottom:24px;padding:8px;box-sizing:border-box;border:1px solid #5c705e;border-radius:14px;background:#14251b;box-shadow:0 18px 70px #0008}
html.lab-night .lab-how[open] summary{border-color:transparent;background:#20382a}
html.lab-night .lab-how .body{max-height:min(64vh,580px);overflow-y:auto;overscroll-behavior:contain;padding:10px 10px 4px;scrollbar-width:thin;box-sizing:border-box}
html.lab-night .lab-how .body>.machine-math-note,html.lab-night .lab-how .machine-math-note{margin:16px 0;color:#c3d1c6}
html.lab-night .lab-how .eq>.math-display{font-size:17px;max-width:100%;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
html.lab-night .lab-how .eq .math-display>.katex-display{width:max-content;min-width:100%;margin:.45em 0;text-align:center}
html.lab-night .lab-how .math-display:focus-visible{outline:2px solid #e5af7f;outline-offset:2px;border-radius:4px}
@media(max-width:760px){
 html.lab-night:not(.machine-embed):not(.lab-film) .lab-how{position:fixed;right:12px;top:72px;bottom:auto;width:auto;max-width:calc(100vw - 24px)}
 html.lab-night .lab-how[open]{width:calc(100vw - 24px);max-height:calc(100dvh - 84px);padding:6px}
 html.lab-night .lab-how .body{max-height:calc(100dvh - 150px);padding:10px 7px 4px}
 html.lab-night .lab-how .eq>.math-display{font-size:16px}
}
