/* Formula markup is generated by KaTeX during the Hexo build. */
.post-content .math-expression { color: inherit; }
.post-content .math-display {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.2em 0;
  padding: .35em 0;
  overscroll-behavior-x: contain;
}
.post-content .math-display > .katex-display {
  margin: 0;
  width: max-content;
  min-width: 100%;
}
.post-content .math-display .katex-html:has(> .katex-tag) {
  padding-inline: 3em;
}
.post-content .katex { font-size: 1.1em; text-indent: 0; }
.post-content .katex svg {
  /* The desktop's global icon style must not resize or outline equation glyphs. */
  width: 100%;
  height: inherit;
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.post-content .math-error { color: #b94c40; overflow-wrap: anywhere; }
.reader-window[data-theme="dark"] .math-error { color: #ffaaa0; }

