/* Inline equations stay readable; long equations scroll within their own box. */
.imol-math{display:inline-block;max-width:100%;overflow-x:auto;overflow-y:hidden;vertical-align:middle;padding:.22em .08em .28em;box-sizing:border-box;line-height:1.45}
.imol-math>.katex{font-size:1.08em;white-space:nowrap}
.imol-option>span,.imol-practice fieldset,.imol-practice legend,.imol-feedback,.imol-hint{min-width:0;max-width:100%;box-sizing:border-box}
.imol-option>span{flex:1}
.article-body p:has(.imol-math),.imol-practice p:has(.imol-math){line-height:1.85}
@media(max-width:600px){.imol-math>.katex{font-size:1em}.imol-practice legend{width:100%}}
@media print{.imol-math{overflow:visible;max-width:none}}
