/* Math is already present in the HTML. No client-side math engine required. */
.atq-math--inline {
  font-size: .98em;
}
.atq-math--display {
  display: block;
  max-width: 100%;
  margin: 1em 0;
  padding: .5em .2em;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  font-size: 1.04em;
  font-weight: 400;
}
.atq-math--display > .katex-display {
  width: max-content;
  min-width: 100%;
  margin: .2em auto;
  text-align: center;
}
.nat__content .nat__formula:has(.atq-math--display) {
  overflow: visible;
  padding-block: 0;
}
.nat__formula > .atq-math--display {
  margin-block: 0;
}
/* The visual formula and its accessible MathML must keep KaTeX's own fonts
 * and layout even under article/legacy WordPress typography rules. */
.atq-math .katex-mathml {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@media (max-width: 600px) {
  .atq-math--display { font-size: .9em; padding-block: .65em; }
}
