.rst-badge {
    font-size: 0.7rem;
}

/* reduce font size of rendered math */
.katex-html {
    font-size: 0.8rem;
}

:root {
    --md-primary-fg-color:        #98252D;
    --md-primary-fg-color--light: #ECB7B7;
    --md-primary-fg-color--dark:  #90030C;
}

.md-typeset, .md-nav, .md-tabs__link, .md-typeset .admonition, .md-typeset details, .md-typeset table:not([class]) {
    font-size: 0.8rem;
}

.md-typeset h1, .md-typeset h2 {
    font-weight: normal;
    color: var(--md-typeset-color);
}

.doc-function h3 {
    /* font-size: 1.0rem; */
    margin-top: 3.0rem;
}

.bubble {
    border-radius: 2px;
    padding: 1px 4px 1px 4px;
}

.green {
    background-color: rgba(0, 151, 142, 0.25);
    color: #00978e;
}

.blue {
    background-color: rgba(0, 83, 159, 0.25);
    color: #00539f;
}

.red {
    background-color: rgba(217, 57, 54, 0.25);
    color: #D93936;
}

.yellow {
    background-color: rgba(254, 247, 80, 0.5);
    color: #757719;
}

/* reduce font size of code and xarray output cells in rendered jupyter notebooks */
.jupyter-wrapper .jp-OutputArea-output pre, .xr-wrap {
    font-size: 0.8em;
}

/* reduce font size of code blocks in notebook markdown cells */
.jp-MarkdownOutput div.highlight {
    font-size: 0.8em;
}

/* Allow tables to be horizontally scrollable. */
.md-typeset__scrollwrap {
  overflow-x: auto;
}

/* Fix xarray dataset HTML representation in jupyter notebook renderings. */
/* See https://github.com/danielfrg/mkdocs-jupyter/issues/164 for conversation */

/* Reinstate the display off-switch for xarray dataset views. */
/* See https://github.com/damianavila/RISE/issues/594 for inspiration. */
.md-typeset pre.xr-text-repr-fallback {
    display: none;
}

.md-typeset ul.xr-sections, .jupyter-wrapper .jp-OutputArea-output dl.xr-attrs {
    display: grid;
}

.md-typeset li.xr-var-item, .md-typeset ul.xr-var-list {
    display: contents;
}

.md-typeset .xr-section-details {
    display: none;
}

.md-typeset ul.xr-dim-list li {
    margin-bottom: 0;
    margin-left: 0;
}

.md-typeset ul.xr-dim-list {
    margin-bottom: 0;
    margin-top: 0;
}

.jupyter-wrapper .jp-OutputArea-output .xr-attrs dt {
    padding: 0;
    margin: 0;
    float: left;
    padding-right: 10px;
    width: auto;
    font-weight: normal;
    grid-column: 1;
}

.jupyter-wrapper .jp-OutputArea-output .xr-attrs dd {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.jupyter-wrapper .jp-OutputArea-output .xr-attrs dd:hover {
    overflow: auto;
    width: auto;
    z-index: 1;
}