/* KaTeX display math inside shared .formula shells */
.formula.tex {
  font-family: inherit;
  line-height: 1.45;
  padding: 20px 24px;
  text-align: center;
}

.formula.tex .katex {
  font-size: 1.12em;
  color: var(--text, #e0e0e8);
}

.formula.tex .katex-display {
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.formula.tex .katex-display > .katex {
  white-space: nowrap;
}

/* Keep long equations scrollable on narrow screens */
.formula.tex .katex-display::-webkit-scrollbar {
  height: 6px;
}

/* Keep KaTeX's hidden MathML copy inside its own box, so it can never widen the page. */
.katex { position: relative; }
