/* Native MathML keeps equations accessible and avoids third-party font loads. */
.math-expression {
  font-size: 1.08em;
  color: inherit;
}

.math-expression math {
  font-family: math;
}

.math-expression[data-math="display"] {
  display: block;
  max-width: 100%;
  padding: 0.35rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 1.2em;
  text-align: center;
}

.math-expression[data-math="display"] math {
  margin-inline: auto;
}
