/* Minimal KaTeX overrides for sohi.dev */
.katex-display {
  margin: 1rem auto;
  text-align: center;
  max-width: 100%;
  overflow: visible;
}

.katex-display > .katex {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}

.katex {
  line-height: 1.25;
}

/* Ensure code blocks don't get affected */
pre,
code,
pre code {
  white-space: pre;
  overflow-x: auto;
}