/* Wide screens: the documents are table-heavy, so use the width. */
.md-grid {
  max-width: 88rem;
}

/* Tables: smaller type, cells that wrap, a header that stays in view while a long
   table scrolls (wide screens), and a first column (the row id, e.g. "K12") in bold. */
.md-typeset table:not([class]) {
  font-size: 0.68rem;
  display: table;
  width: 100%;
}
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 0.5em 0.7em;
  vertical-align: top;
  min-width: 4rem;
  overflow-wrap: anywhere;
}
/* The sticky header needs the table's wrapper not to be a scroll container, so it is
   only done where the table fits without scrolling sideways. 2.4rem: the site header. */
@media screen and (min-width: 76.25em) {
  .md-typeset__scrollwrap,
  .md-typeset__table {
    overflow: visible;
  }
  .md-typeset table:not([class]) {
    overflow: visible;
  }
  .md-typeset table:not([class]) th {
    position: sticky;
    top: 2.4rem;
    z-index: 1;
    background-color: var(--md-default-bg-color);
    box-shadow: 0 0.05rem 0 var(--md-typeset-table-color);
  }
}
.md-typeset table:not([class]) th {
  overflow-wrap: normal;
  word-break: normal;
}
.md-typeset table:not([class]) td:first-child {
  font-weight: 700;
}
.md-typeset table:not([class]) tbody tr:nth-child(even) {
  background-color: var(--md-default-fg-color--lightest);
}
.md-typeset table:not([class]) code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Large diagrams are not shrunk below a readable size (website/hooks.py); they scroll
   sideways instead. */
.md-typeset div.mermaid {
  overflow-x: auto;
  text-align: center;
}
