/* Update theme variables based on https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/styling.html#css-theme-variables */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,900;1,900&family=Open+Sans:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --dash-blue: #008de4;
  --dash-deep-blue: #012060;
  --dash-midnight-blue: #0b0f3b;
}

html[data-theme="light"] {
  --pst-color-primary: var(--dash-blue);
  --pst-color-link: var(--pst-color-primary);
  --pst-color-link-hover: var(--dash-deep-blue);
}

html[data-theme="dark"] {
  --pst-color-primary: var(--dash-blue);
  --pst-color-link: var(--pst-color-primary);
  --pst-color-link-hover: var(--pst-color-warning)
}

html {
  /* Headers */
  --pst-font-size-h1: 28px;
  --pst-font-size-h2: 24px;
  --pst-font-size-h3: 20px;

  /* Sidebar styles */
  --pst-sidebar-font-size: 0.95em;
  --pst-sidebar-header-font-size: 1.2em;
}

html[data-theme=dark] .bd-content img:not(.only-dark):not(.dark-light) {
  background: none;
  border-radius: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

p,
a,
li,
ol {
  font-family: 'Open Sans', sans-serif;
}

a.headerlink {
  color: var(--pst-color-primary)
}

.sidebar-end-items__item {
  position: relative;
}

.sidebar-end-items__item:after {
    content: "▼";
    font-size: 1.1rem;
    color: #008de4;
    top: 17px;
    right: 10px;
    position: absolute;
}

select {
  width: 100%;
  padding: 10px;
  appearance: none;
  background: transparent;
  border-radius: 0.25rem;
}

html[data-theme=dark] select {
  color: #fff;
}

html[data-theme="light"] select {
  color: #000;
}

html[data-theme="light"] {
  --table-bg-color-odd: #eeeeee;
  --table-bg-color-even: #ffffff;
}

tbody tr:nth-child(odd) { background-color: var(--table-bg-color-odd); }
tbody tr:nth-child(even) { background-color: var(--table-bg-color-even); }

.table thead th.head {
  vertical-align: middle;
}

/* Adjust scroll-to-top button */
#pst-back-to-top {
  background-color: var(--pst-color-primary);
  /* Make sure it doesn't display on to of the RTD search dialog */
  z-index: 499;
}

/* Adjust sphinx-design card */
.sd-card-hover:hover {
  border-color: var(--pst-color-primary)
}

/* These are hacks to hide the pydata-theme search popup behind the readthedocs
sphinx search extension interface.
*/
.search-button__wrapper.show .search-button__search-container,
.search-button__wrapper.show .search-button__overlay {
  z-index: 1;
}

.search-button__wrapper.show .search-button__overlay {
  display: none;
}

/* Make sure it doesn't stick out on the sides of the RtD search screen */
.search-button__wrapper.show .search-button__search-container {
  width: 15%;
}
