/* Shared by documentation and its native WordPress editor. */
@font-face {
  font-family: "V8PRO Math";
  src: url("../fonts/stix-two-math.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/* Enlarge multiplication dots only, using the same local font file. */
@font-face {
  font-family: "V8PRO Math Dot";
  src: url("../fonts/stix-two-math.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+00B7, U+2219, U+22C5;
  size-adjust: 150%;
}
/* Make the prime operator legible at both normal and superscript sizes. */
@font-face {
  font-family: "V8PRO Math Prime";
  src: url("../fonts/stix-two-math.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+2032;
  size-adjust: 170%;
}
math {
  --doc-math-font-family: "V8PRO Math", "STIX Two Math", "Cambria Math", "Latin Modern Math", math;
  font-family: var(--doc-math-font-family);
  font-size: calc(1.05em + 2pt);
  font-weight: 700;
  color: var(--v8pro-color-text, #30394d);
}
math mo { font-family: "V8PRO Math Prime", "V8PRO Math Dot", var(--doc-math-font-family); }
math mtext { font-family: Manrope, system-ui, sans-serif; font-size: .9em; }
.doc-formula {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.doc-formula--block {
  display: block;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--v8pro-color-border, #e8e8e8);
  border-radius: 6px;
  background: var(--v8pro-color-background-block, #f7f7f7);
  font-size: 1.05em;
}
/* Preserve the browser's native block math layout and keep long formulas reachable. */
.doc-formula--block > math { width: max-content; min-width: 100%; margin: 0; }
.doc-formula--inline { display: inline-block; padding: 2px 0; vertical-align: middle; }
@media (max-width: 575px) {
  .doc-formula--block { margin: 20px 0; padding: 14px 12px; font-size: 1em; }
}
@media print {
  .doc-formula { max-width: none; overflow: visible; }
  .doc-formula--block { break-inside: avoid; background: transparent; }
}
