/*
Fix dark mode for tables in Jupyter Notebooks rendered by MyST-NB.
https://github.com/crate/crate-docs-theme/pull/566
*/
div.cell_output table {
  color: var(--color-content-foreground);
}
div.cell_output tbody tr:nth-child(2n+1) {
  background: var(--color-background-hover);
}

/*
Fix dark mode for toggle button in Jupyter Notebooks
https://github.com/GlacioHack/geoutils/pull/588
*/
div.cell details.hide > summary {
    background-color: var(--pst-color-surface);
}

div.cell details[open].above-input div.cell_input {
    border-top: None;
}

/*
 * Fix dark mode for Jupyter widget outputs
*/
.widget-html-content, .jupyter-widget-html-content {
    color: var(--color-content-foreground);
}

/*
Center notebook figures in rendered docs.
*/
div.cell_output img {
    display: block;
    margin: 0 auto;
}
