/* Wider pages: the chapters have wide tables and diagrams. */
.md-grid {
  max-width: 1400px;
}

/* Text diagrams in the chapters use box-drawing characters: keep them aligned. */
.md-typeset pre > code {
  font-variant-ligatures: none;
}

/* Tables in markdown cells: a little more room, and scroll rather than squash. */
.md-typeset table:not([class]) {
  display: block;
  overflow-x: auto;
  font-size: 0.72rem;
}

/* Notebook output tables (pandas) follow the page colours in dark mode too. */
[data-md-color-scheme="slate"] .jp-RenderedHTMLCommon table,
[data-md-color-scheme="slate"] .jp-RenderedHTMLCommon th,
[data-md-color-scheme="slate"] .jp-RenderedHTMLCommon td {
  color: var(--md-typeset-color);
  background: transparent;
}

/* Long formulas scroll sideways on narrow screens instead of being cut off. */
mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
}
