/* Some variables available from the Pydata Sphinx Theme.
See: https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/styling.html */


html[data-theme=light] {
    /* the contents directive */
    --wakepy-color-contents-bg: #f9f9fb;
    --wakepy-color-contents-border: #eff0f0;
    --wakepy-color-inline-code: #d70936;
    --wakepy-color-code-block-bg: #fcfcfd;
    --wakepy-color-code-block-border: #d1d5da;
    --wakepy-table-color-header-bottom-border: #f6f6f6;
    /* tables */
    --wakepy-table-color-header-bg: #f6f6f6;
    --wakepy-table-color-bg: #fff;
    --wakepy-table-color-border: #ddd;
    /* Regular links color */
    --pst-color-link: #0250e3;
    /* Navigation links color */
    --pst-color-primary: #0250e3;
    /* override table row coloring (odd rows) */
    --pst-color-table-row-zebra-low-bg: rgb(255, 255, 255) !important;
    /* override table row coloring (even rows) */
    --pst-color-table-row-zebra-high-bg: rgb(255, 255, 255) !important;
    /* override table row hover background color */
    --pst-color-table-row-hover-bg: #fafafaff !important;
}


html[data-theme=dark] {
    /* for explanations, refer to the light theme definitions */
    --wakepy-color-contents-bg: #191825;
    --wakepy-color-contents-border: #293342;
    --wakepy-color-inline-code:#dd7886;
    --wakepy-color-code-block-bg: #272822;
    --wakepy-color-code-block-border: #3c3d2e;
    --wakepy-table-color-header-bg: #222832ff;
    --wakepy-table-color-bg: #0f1216;
    --wakepy-table-color-border: #29313d;
    --wakepy-table-color-header-bottom-border: #29313d;
    /* Regular links color */
    --pst-color-link: #6e91d8;
    /* Navigation links color */
    --pst-color-primary: #6e91d8;
    /* override table row coloring (odd rows) */
    --pst-color-table-row-zebra-low-bg: #121212ff !important;
    /* override table row coloring (even rows) */
    --pst-color-table-row-zebra-high-bg: #121212ff !important;
    /* override table row hover background color */
    --pst-color-table-row-hover-bg: #171717ff !important;
}

nav.contents  {
    /* For the "contents" directive block */
    background: var(--wakepy-color-contents-bg) !important;
    border-color: var(--wakepy-color-contents-border) !important;
    box-shadow: none !important;
}

a:link, a:visited {
    text-decoration: none !important;
}
a:hover, a:active {
    text-decoration: underline !important;
}


/* inline code (both, the links and normal text)*/
code > span.pre,
span.sig-name > span.pre {
    color: var(--wakepy-color-inline-code) !important;
}

/* inline code, but just the links*/
a:link > code > span.pre,
a:visited > code > span.pre {
    /* Use the same link color in code links as in "normal links" */
    color: var(--pst-color-link) !important;
}
a:active  > code > span.pre,
a:hover > code > span.pre {
    /* Use the same link color in code links as in "normal links" */
    color:var(--pst-color-link-hover) !important;
}


/* inline code */
code.literal {
    /* Remove the gray box around inline code */
    background-color: rgba(255, 255, 255, 0) !important;
    padding: 0 !important;
    border: 0 !important;
}


/* code blocks */
div.highlight > pre {
    background-color: var(--wakepy-color-code-block-bg) !important;
    border-color: var(--wakepy-color-code-block-border) !important;
    /* Add bit more air to the code blocks */
    line-height: 155% !important;
}

/* other */

/* remove extra space above bullet point lists in docstrings */
dl.py > dd > p + ul {
    margin-top: -1rem !important;
}
/* Add same spacing after bullet point lists as normal paragraphs have */
dl.py > dd > ul {
    margin-bottom: 1.15rem !important;
}

/* Custom table class for wakepy docs */
.wakepy-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--wakepy-table-color-border);
    outline: 1px solid var(--wakepy-table-color-border);
  }

.wakepy-table th,
.wakepy-table td {
  border: 1px solid var(--wakepy-table-color-border);
  padding: 12px;
  text-align: left;
}

.wakepy-table th {
  background-color: var(--wakepy-table-color-header-bg);
  font-weight: bold;
}

.wakepy-table td:first-child {
  vertical-align: top; /* Align text to the top in the first column */
}

.wakepy-table td {
  background-color: var(--wakepy-table-color-bg);
}

/* all tables.  */
thead > tr {
  background-color: var(--wakepy-table-color-header-bg) !important;
  border-bottom: 1px solid var(--wakepy-table-color-header-bottom-border) !important;
}

.logo {
    margin-top: -10px !important;
    margin-bottom: -5px !important;
}

html[data-theme=dark] .bd-content img:not(.only-dark,.dark-light) {
    background-color: var(--wakepy-color-contents-bg) !important;
}