/* qxmd245 — KaTeX engine lock (load last).
   Restore display + box-sizing only. Never set height/top/margin/padding
   !important on .vlist / .pstrut / .sizing — those inline metrics raise x^2 / x^3.
   Size1–4 fonts must beat Inter on #egQArea so \left\{ \left( stay visible. */

@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(katex/fonts/KaTeX_Main-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(katex/fonts/KaTeX_Main-Bold.woff2) format("woff2");font-display:swap}
@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(katex/fonts/KaTeX_Math-Italic.woff2) format("woff2");font-display:swap}
@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(katex/fonts/KaTeX_Size1-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(katex/fonts/KaTeX_Size2-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(katex/fonts/KaTeX_Size3-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(katex/fonts/KaTeX_Size4-Regular.woff2) format("woff2");font-display:swap}
@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(katex/fonts/KaTeX_AMS-Regular.woff2) format("woff2");font-display:swap}

html body .katex,
html body .katex * {
  box-sizing: content-box !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

html body .katex {
  display: inline-block !important;
  position: relative !important;
  white-space: nowrap;
  text-indent: 0;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  clip: auto !important;
  max-height: none !important;
}

html body .katex .katex-html {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body .katex .vlist-t {
  display: inline-table !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

html body .katex .vlist-r {
  display: table-row !important;
}

html body .katex .vlist {
  display: table-cell !important;
  vertical-align: bottom !important;
  position: relative !important;
}

html body .katex .vlist > span {
  display: block !important;
  position: relative !important;
}

html body .katex .vlist > span > span {
  display: inline-block !important;
}

html body .katex .pstrut {
  overflow: hidden !important;
  width: 0 !important;
}

html body .katex .strut,
html body .katex .base {
  display: inline-block !important;
}

html body .katex .base {
  position: relative !important;
  white-space: nowrap !important;
}

html body .katex .msupsub {
  text-align: left !important;
}

html body .katex .mfrac .frac-line {
  display: inline-block !important;
  width: 100% !important;
  border-bottom-style: solid !important;
}

html body .katex .sizing,
html body .katex .fontsize-ensurer,
html body .katex .mspace,
html body .katex .nulldelimiter,
html body .katex .delimsizing {
  display: inline-block !important;
}

html body .katex {
  font-family: KaTeX_Main, "Times New Roman", serif !important;
}
html body .katex .mathnormal {
  font-family: KaTeX_Math, "Times New Roman", serif !important;
  font-style: italic !important;
}
html body .katex .mathrm,
html body .katex .textrm,
html body .katex .mathbf,
html body .katex .mainrm {
  font-family: KaTeX_Main, "Times New Roman", serif !important;
}
html body .katex .delimsizing.size1,
html body .katex .op-symbol.small-op,
html body .katex .delimsizing.mult .delim-size1 > span {
  font-family: KaTeX_Size1 !important;
}
html body .katex .delimsizing.size2,
html body .katex .op-symbol.large-op {
  font-family: KaTeX_Size2 !important;
}
html body .katex .delimsizing.size3 {
  font-family: KaTeX_Size3 !important;
}
html body .katex .delimsizing.size4,
html body .katex .delimsizing.mult .delim-size4 > span {
  font-family: KaTeX_Size4 !important;
}
html body .katex .amsrm,
html body .katex .mathbb,
html body .katex .textbb {
  font-family: KaTeX_AMS !important;
}

html body .katex-mathml {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
}

html body .katex-display {
  display: block !important;
  margin: 0.7em 0;
  text-align: center;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

html body .katex-display > .katex {
  display: inline-block !important;
  text-align: center;
  white-space: nowrap;
  max-width: none;
}

html body .eg-q-card,
html body .mtk-q-text,
html body .eg-opt,
html body .mtk-opt,
html body .qx-prac-opt,
html body .eg-sol,
html body #egSolPanel {
  overflow-x: auto;
  max-width: 100%;
}

/* Native MathML fallback (only <msup>, not KaTeX spans). */
html body math {
  display: inline !important;
}
html body msup > *:last-child {
  font-size: 0.75em;
  vertical-align: super;
}
html body msub > *:last-child {
  font-size: 0.75em;
  vertical-align: sub;
}

/* MARKS: stem stays visible while solution is open. */
html body .eg-test-root.qx-sol-showing #egQArea,
html body .eg-test-root.qx-sol-showing .eg-q-stem,
html body .eg-test-root.eg-sol-showing #egQArea,
html body .eg-test-root.eg-sol-showing .eg-q-stem {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
  clip: auto !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  pointer-events: auto !important;
}

/* qxmd295: keep typeset math intact; wrap prose only. */
html body .katex,
html body .katex * {
  word-break: normal !important;
  overflow-wrap: normal !important;
}
html body .katex {
  white-space: nowrap !important;
}
html body .katex-display {
  overflow-x: auto !important;
  overflow-y: visible !important;
}
html body .eg-q-stem,
html body .mtk-opt-text,
html body .eg-sol,
html body .qx-sol-body,
html body #egSol,
html body .sol-body,
html body .qx-sol-flow {
  overflow-wrap: break-word !important;
  word-break: normal !important;
  overflow: visible !important;
}
html body #egQArea,
html body .qzrr-q-area {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
