/* Shared equation typography for every post and its interactive figures. */
.post-content .katex { font-size: 1.08em; color: inherit; }
.post-content .katex-display {
  margin: 1.65em 0;
  padding: .4em 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  text-align: center;
}
.post-content .katex-display > .katex { text-align: center; }
.post-content .math-display { margin: 1.65em 0; min-width: 0; }
.post-content .math-display > .katex-display { margin: 0; }
.post-content .math-inline { white-space: nowrap; }
.post-content .math-error { font-family: var(--mono); color: var(--fg-2); }
.post-content .katex-display:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 600px) {
  .post-content .katex { font-size: 1.04em; }
  .post-content .katex-display { margin-block: 1.4em; }
}
@media print {
  .post-content .katex-display { overflow: visible; break-inside: avoid; }
}
