[data-md-color-scheme="default"] {
    --md-primary-fg-color: #160A42;
    --font-family: Inter, sans-serif;
    --md-link-fg-color: #0078D7;
    /* Bright blue for visibility */
}

/* Apply the link color only in the main document content */
[data-md-color-scheme="default"] main article a {
    color: var(--md-link-fg-color);
    text-decoration: none;
    /* Remove underline */
}

[data-md-color-scheme="slate"] {
    --md-default-fg-color: hsla(var(--md-hue), 15%, 90%, 0.9);
    --md-default-fg-color--light: hsla(var(--md-hue), 15%, 90%, 1);
    --md-primary-fg-color: #160A42;
    --font-family: Inter, sans-serif;
}

/* Sets up a figure counter */

/* Initialise the counter */
body {
    counter-reset: figureCounter;
}

/* Increment the counter for every instance of a figure even if it doesn't have a caption */
figure {
    counter-increment: figureCounter;
}

/* Prepend the counter to the figcaption content */
figure figcaption:before {
    content: "Figure " counter(figureCounter) ": ";
}

/* 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;
}

/* Code to better render xarray html representation with mknotebook */
.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;
}