/* Load after KaTeX and the article styles in both the storefront and draft preview. */
.hve-article-body .katex {
  color: inherit;
  letter-spacing: normal;
  text-indent: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.hve-article-body .katex-display {
  max-width: 100%;
  margin: 1.25em 0;
  padding: .3em .1em .5em;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

/* Intrinsic width keeps the beginning of a long centered equation reachable. */
.hve-article-body .katex-display > .katex {
  display: inline-block;
  min-width: 100%;
  white-space: nowrap;
}

.hve-article-body .katex-display:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
