/* Keep wide comparison tables within the reading column on narrow screens.
   Table semantics remain intact; only the table itself scrolls horizontally. */
.csl-entry a,
main.content a[href^="http"] {
  overflow-wrap: anywhere;
}
@media screen and (max-width: 767px) {
  main.content :is(h1, h2, h3) {
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  main.content table.table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  /* Keep complete equations readable without widening the page or shrinking type. */
  main.content mjx-container[display="true"] {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding-block: 0.15em;
  }
}
