/* On a phone, display equations are set a little smaller, the size of the body text, so most fit the
   column, and one still wider than the column scrolls within its own line instead of running past the
   edge of the screen. Scrolling clips whatever reaches past the box, such as subscripts and the
   bottoms of fractions, so half of KaTeX's 1em margin moves inside as padding: the spacing looks the
   same and nothing is cut off. Wider screens are left as they were, where a long equation has room to
   run into the margin. */
@media (max-width: 480px) {
  .katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    margin-block: 0.5em;
    padding-block: 0.5em;
  }

  .katex-display > .katex {
    font-size: 0.95em;
  }
}
