.md-typeset {
  font-size: 0.86rem;
  line-height: 1.72;
}

.md-typeset p,
.md-typeset li,
.md-typeset dd {
  max-width: 82ch;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  letter-spacing: -0.015em;
  scroll-margin-top: 4.5rem;
}

.md-typeset h3,
.md-typeset h4 {
  font-weight: 650;
}

.md-typeset .arithmatex {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0 0.35rem;
}

.md-typeset .arithmatex mjx-container[display="true"] {
  margin: 0.8rem 0 !important;
  min-width: max-content;
  text-align: center;
}

.md-typeset__table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.md-typeset table:not([class]) {
  width: 100%;
  min-width: 42rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  vertical-align: top;
}

.md-typeset .example {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem 0.3rem;
  border: 0.05rem solid var(--md-default-fg-color--lightest);
  border-left: 0.22rem solid var(--md-accent-fg-color);
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 94%, var(--md-accent-fg-color) 6%);
}

.md-typeset .example-title {
  margin: 0 0 0.8rem;
  color: var(--md-default-fg-color);
}

.md-typeset .citation {
  white-space: nowrap;
}

.md-typeset .table-caption {
  max-width: 82ch;
  margin: 0.45rem 0 1.1rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.76rem;
  line-height: 1.5;
}

.md-typeset .reference-entry {
  margin: 0 0 1rem;
  padding-left: 0.2rem;
}

.md-typeset .glossary-list dt {
  margin-top: 0.9rem;
  font-weight: 700;
}

.md-typeset .glossary-list dd {
  margin: 0.15rem 0 0.65rem 1.25rem;
}

.pdf-shell {
  width: 100%;
  margin-top: 1rem;
}

.pdf-frame {
  width: 100%;
  height: 82vh;
  min-height: 720px;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.25rem;
  background: #fff;
}

.md-button {
  margin-right: 0.4rem;
  margin-top: 0.4rem;
}

@media screen and (max-width: 44.9844em) {
  .md-typeset {
    font-size: 0.82rem;
  }

  .md-typeset table:not([class]) {
    min-width: 36rem;
  }

  .pdf-frame {
    height: 72vh;
    min-height: 520px;
  }
}

/* Zensical draws the phone menu on a translucent white panel; use the page background so its links stay readable in both themes. */
.md-sidebar--primary { background: var(--bg); }
