@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@650&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

:root {
    color-scheme: light only;
}

body {
    --color-sidebar-background: white;
    --color-brand-primary: #1f74d4;
    -webkit-text-size-adjust: 100%;
    /* 3 */
    -ms-text-size-adjust: 100%;
    /* 3 */
    line-height: 1.65;
    --lightdark: #3b4351;
    --color-foreground-primary: var(--lightdark);
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -moz-osx-font-smoothing: none;
    --lighterdark: #949aa3;
    --color-link: var(--color-brand-primary);
}

.sidebar-brand-text {
    text-transform: none;
    font-size: 40px;
    font-style: italic;
    margin-bottom: 0px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    text-align: center;
}

.brand {
    font-style: italic;
    margin-bottom: 0px;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

h1 {
    font-family: 'Playfair Display', serif;
    margin-top: 30px;
}

h2 {
    text-decoration: underline;
    font-size: 22px;
    margin-top: 50px;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
}

p,
.highlight {
    font-size: 15px
}

a {
    text-decoration-line: none
}

a:hover,
a:focus,
.sidebar-brand-text:hover {
    color: var(--color-brand-primary);
    box-shadow: none;
    text-decoration: underline;
}

img.align-center,
.jupyter_cell img {
    display: block;
    margin: auto;
    margin: 30px auto 30px auto;
}


/* abomination */

.admonition> :last-child {
    padding: 8px
}


/* main page toctree  */

.toctree-wrapper.compound .caption {
    font-size: 15px;
    text-transform: none;
}

[role=main] ul {
    font-size: 15px;
}


/* side-bar */

.sidebar-search {
    font-size: 15px
}

li .toctree-l1 {
    width: fit-content;
}

.sidebar-container {
    width: 20em;
}

.sidebar-drawer {
    border-right: none;
}

.sidebar-tree .reference:hover {
    background: none !important;
    color: var(--lightdark);
    box-shadow: none;
    text-decoration: underline;
}

.sidebar-brand {
    margin-top: 15px
}

.sidebar-search,
.sidebar-search-container {
    border: none !important;
    background-color: transparent !important;
}

body {
    --sidebar-item-spacing-vertical: 0.3rem;
    --color-sidebar-caption-text: var(--color-brand-primary);
    --color-sidebar-link-text--top-level: var(--lightdark);
}

.sidebar-tree ul {
    margin: 0px;
    margin-bottom: 15px;
    text-transform: none;
}

.sidebar-tree {
    line-height: 1.5 !important;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.sidebar-tree .caption {
    font-size: 13px;
}


/* lists */

ul,
ol {
    margin: .8rem 0 .8rem .8rem;
    padding: 0;
}

ul li,
ol li {
    margin-top: .4rem;
}


/* nav */

nav ul {
    margin-bottom: 30px;
}


/* code */

.highlight {
    line-height: 1.5em;
    font-weight: 500 !important;
    background-color: rgb(240, 240, 240) !important;
    ;
}

.nboutput .highlight,
dl.py output .highlight,
.jupyter_container .output .highlight {
    background-color: white !important;
}

.highlight pre {
    padding: 12px !important;
}


/* no cell number */

.prompt {
    display: none !important;
}

.rst-content code.literal {
    color: #575757
}

.docutils.literal.notranslate pre {
    color: #575757
}

.xr-attrs dt {
    background: inherit !important;
    color: inherit !important;
    border-top: inherit !important;
}

div.nboutput.container div.output_area>div {
    text-align: left !important;
}

div.nboutput.container div.output_area {
    text-align: center !important;
}

.highlight .nn {
    color: black !important;
    font-weight: normal !important;
}

.highlight .kn,
.highlight .k,
.highlight .kc,
.highlight .ow {
    color: #d73a49 !important;
    font-weight: normal !important;
}

.highlight .mi,
.highlight .mf,
.highlight .nb,
.highlight .bp {
    color: #005cc5 !important
}

.highlight .c1,
.highlight .o {
    color: #6a737d !important
}

.highlight .sa,
.highlight .sé,
.highlight .s2,
.highlight .sd {
    color: #032f62 !important
}

.highlight .nd {
    color: #005cc5 !important;
    font-weight: normal !important;
}

.highlight .p,
.highlight .mi,
.highlight .mf {
    font-weight: normal !important;
}

.highlight .si {
    color: #70a0d0 !important;
}

code,
code span.pre {
    background: none;
    color: var(--color-brand-primary)
}


/* Copy button */

.highlight button.copybtn,
.highlight button.copybtn:hover,
.highlight button.copybtn:active {
    background: none !important;
    border: 0px solid white !important;
}

.highlight button.copybtn::after {
    display: none !important;
}


/* Dark mode */

button.theme-toggle {
    display: none !important;
}


/* FOOTER */

div[role=contentinfo] {
    margin-top: 60px;
}

footer {
    margin-top: 60px;
    margin-bottom: 40px;
}


/* rst code litteral */

.rst-content code,
.rst-content dl.py code {
    white-space: nowrap !important;
    max-width: 100% !important;
    background: #fff !important;
    border: solid 1px #e1e4e5 !important;
    font-size: 75% !important;
    overflow-x: auto !important;
    padding: .1rem .2rem !important;
}

.rst-content code.xref {
    font-weight: bold;
    text-decoration: underline;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;
    color: #575757;
    padding: 2px 5px;
}


/* xarray *

.xr-wrap * {
    font-size: 13px;
}
/
/* AUTODOC */


/* table */

.content table.docutils {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    border: 1px solid #e1e4e5;
    margin-top: var(--base-space);
    margin-bottom: var(--base-space);
    box-shadow: none
}

.content table.docutils td {
    border: none;
    border-bottom: 1px solid #e1e4e5;
    border-bottom-width: 1px;
    border-collapse: collapse;
    /*! border-left: transparent !important; */
}

.content table.docutils td,
.rst-content table.field-list td,
.wy-table th,
.rst-content table.docutils th,
.rst-content table.field-list th {
    margin: 0;
    overflow: visible;
    padding: 4px 16px;
}

.content table.docutils:not(.field-list) tr:nth-child(2n-1) td {
    background-color: white !important;
}

.content table.longtable {
    border: none;
}

.content code.xref {
    font-weight: bold;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;
    color: var(--color-brand-primary);
    border: none;
    background: none;
}


/* auto class doc api */

dt:target {
    background: none;
    background-color: transparent !important;
}

body {
    --color-api-name: black;
    --color-api-pre-name: black
}

.content dl.class em.property {
    color: var(--color-brand-primary);
    font-style: italic;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.sig * {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-weight: 700;
}

.property {
    margin-right: 8px;
}

.jupyter_cell {
    border: none !important;
    box-shadow: none !important;
}

p.rubric {
    margin-bottom: 12px;
    font-weight: bold;
    border-bottom: solid 1px var(--lighterdark);
    padding-bottom: 5px;
    font-size: 15px !important;
}

.py dl.field-list dt {
    color: var(--lighterdark);
    font-weight: normal;
    text-decoration: underline;
    text-transform: none !important;
}

dl.py dd:first-child {
    margin-left: 0px !important;
}

dl.py p {
    margin-bottom: 24px
}

dl.py .field-list ul {
    margin-left: 0px !important;
    ;
}

.py.docutils.literal {
    font-size: 13px;
}


/* Block read write */

.blockread,
.blockwrite,
.blockmodify {
    width: 50px;
    text-align: center;
    border-radius: 9px;
    font-size: 13px;
    margin-bottom: 0px;
    padding: 2px 6px 2px 6px;
    /* margin-right: 5px; */
    opacity: 85%;
}

.blockread {
    color: rgb(65, 65, 65);
    background-color: rgba(65, 65, 65, 0.082);
    border-color: rgb(65, 65, 65);
}

.blockwrite {
    color: rgb(76, 120, 201);
    background-color: rgb(76, 120, 201, 0.082);
    border-color: rgb(76, 120, 201);
}

.blockmodify {
    color: rgb(201, 84, 76);
    background-color: rgb(201, 84, 76, 0.082);
    border-color: rgb(201, 84, 76);
}