/* Ported from the Sphinx _static/colors.css (the `:red:` / `:green:` / `:blue:`
   roles that came from docutils' s5defs.txt). Used as <span class="red">text</span> in markdown. */
.red {
  color: red;
}

.green {
  color: green;
}

.blue {
  color: blue;
}

/* Ported from the Sphinx _static/custom.css.
   The metric-functions table is very wide (formula + params + plot).
   Sphinx/alabaster used width:130% with negative margins; Material's content
   column is wider already, so we only bleed into the right gutter on big
   screens and let the table scroll horizontally otherwise. */
@media screen and (min-width: 100em) {
  .mt-funcs-table {
    width: 125%;
  }
}

/* Field lists (`:param:` in RST) became definition lists. Make the term stand
   out the way Sphinx did. */
.md-typeset dl dt {
  font-weight: 700;
}

/* `.. image:: :align: center` equivalent */
.md-typeset img.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Keep identifiers, types, and defaults intact in Python API parameter tables.
   The description column gets the remaining width; Material provides horizontal
   scrolling when the table no longer fits on a narrow screen. */
.md-typeset .python-api table {
  width: 100%;
}

.md-typeset .python-api .md-typeset__table {
  width: 100%;
}

.md-typeset .python-api table th:first-child,
.md-typeset .python-api table td:first-child,
.md-typeset .python-api table th:nth-child(4),
.md-typeset .python-api table td:nth-child(4) {
  width: 1%;
  white-space: nowrap;
}

.md-typeset .python-api table td code {
  white-space: nowrap;
}
