/* Customize theme font colors */
html[data-theme=light] {
  --pst-color-borders: rgb(206, 212, 218);
  --pst-color-primary: var(--pst-color-text-base);
  --pst-color-secondary: rgb(207, 70, 42);
  --pst-color-link: var(--pst-color-secondary);
  /* match color of "Tip" admonition to Bokeh color scheme */
  --pst-color-success: rgb(165, 205, 57);
  --pst-color-admonition-tip: var(--pst-color-success);
  --pst-color-inline-code: var(--pst-color-text-base);
}

/* customize display of inline pre elements */
.literal .pre, span .pre {
  font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;
  padding: 2px 1px 0px 1px;
  font-size: 100%;
}

code {
  background-color:#eef0f1;
}

/* Match color of RST :ref: to that of other clickable links */
.xref .pre {
  color: var(--pst-color-secondary);
}

/* Tweak appearance of args in reference guide */
.class .sig, .function .sig, .sig .property {
  font-weight: 400;
}

/* Tweak search results appearance */
#search-results .context {
  padding-left: 1em;
}
#search-results li {
  margin-bottom: 1em;
}

/* WAR for https://github.com/pydata/pydata-sphinx-theme/issues/464 */
dl.py dl.field-list {
  display: grid;
  grid-template-columns: unset;
}
dl.py dt.field-odd, dl.py dt.field-even {
  margin-top: 10px;
  margin-bottom: 2px;
  background-color: #eee;
}

/* Tweak harsh version switcher border */
#version_switcher .btn-group-sm > .btn, .btn-sm {
  border-radius: 0.5rem;
}

/* Tweak borders for images (e.g. screenshots) */
img.image-border {
  border: 1px solid rgba(var(--pst-color-borders),1);
  margin-bottom: 1.15rem;
  border-radius: .2rem;
  box-shadow: 1px 1px 1px #d8d8d8;
}

/* Style card headers */
.sd-card-header {
  background-color: rgb(220, 220, 220) !important;
  font-weight: 700;
  font-size: 110%;
}

/* Tweak sphinx-design cards */
.sd-container-fluid div {
  margin-bottom: 15px;
}
.bokeh-examples div {
  padding: 0px;
  margin: 0px;
}
.bokeh-examples img {
  width: 100%;
  height: 100%;
}

/* Light code block background */
div.highlight pre {
  background-color: #fafafa !important;
}

/* If no-sidebar is present, hide the div entirely to prevent taking space */
.no-sidebar {
  display: none;
}

/* Ligatures provide bad UX in some cases, just turn them off */
* {
  font-variant-ligatures: none;
}

/* Customize search box */
#search-input {
  border: 1px solid var(--pst-color-borders);
  border-radius: 1.5px;
  color: var(--pst-color-text-base);
}

/* More compact autoclasstoc tables */
.autoclasstoc td {
  padding: 0.15rem;
  line-height: normal;
}

/* CSS for our custom footer */
.bd-footer {
  padding: 0 !important;
}
.bd-footer h6 {
  color: #fff;
  font-weight: bold;
  margin: 8px 0px;
}
.bd-footer .links {
  background-color: #542437;
  font-size: 0.9rem;
}
.bd-footer .links a {padding: 3px 0px;}
.bd-footer .links-item {
  margin: 0px;
  padding: 20px 15px;
}
.bd-footer .links h6 {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.bd-footer .links ul.nav li a {
  padding: 3px 0;
  font-size: 13px;
  color: #fff;
}
.bd-footer .copyright {
  background-color: #242729;
  font-size: 0.85rem;
  padding: 10px !important;
}
.bd-footer .copyright p {color: #eee;}
.bd-footer .btn-primary { filter: brightness(90%); background-color: #C02942; border-color: #C02942; }
.bd-footer .btn-primary:hover { filter: brightness(100%); background-color: #C02942; border-color: #C02942; }

/* CSS for our custom version warning banner */
.version-alert a {
  text-decoration: underline;
  color: #ddd;
}

#banner .version-alert {
  background-color: #CF462A;
  padding: 1em;
  color: #fff;
  font-weight: 600; font-size: 16px;
}

.version-alert a {
  text-decoration: underline;
  color: #ddd;
}

/* Floating gallery thumbnails */
ul.gallery li {
  list-style-type: none;
  float:left
}

img.gallery {
  width: 200px;
  height:200px
}

/* CSS for Bokeh collapsible code blocks */
.bk-collapsible {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active.bk-collapsible:hover {
  background-color: #ccc;
}

/* Style the collapsible content. Note: hidden by default */
.bk-collapsible-content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}

/* Pandas dataframe css */
/* Source: https://github.com/spatialaudio/nbsphinx/blob/fb3ba670fc1ba5f54d4c487573dbc1b4ecf7e9ff/src/nbsphinx.py#L587-L619 */

.dataframe {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

table.dataframe {
 border: none !important;
 border-collapse: collapse;
 border-spacing: 0;
 border-color: transparent;
 color: black;
 font-size: 12px;
 table-layout: fixed;
}
table.dataframe thead {
 border-bottom: 1px solid black;
 vertical-align: bottom;
}
table.dataframe tr,
table.dataframe th,
table.dataframe td {
 text-align: right;
 vertical-align: middle;
 padding: 0.5em 0.5em;
 line-height: normal;
 white-space: normal;
 max-width: none;
 border: none;
}
table.dataframe th {
 font-weight: bold;
}
table.dataframe tbody tr:nth-child(odd) {
 background: #f5f5f5;
}
table.dataframe tbody tr:hover {
 background: rgba(66, 165, 245, 0.2);
}
