@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');

.navbar-brand img {
  height: 75px;
}

.navbar-brand {
  height: 75px;
  flex-shrink: 0;
}

/* Prevent logo text from overlapping header links and bold the title */
.navbar-brand .logo__title,
.navbar-brand-box .logo__title,
p.logo__title {
  font-size: 1.1rem;
  white-space: nowrap;
  font-weight: bold !important;
}

/* Bold the main page title */
h1 {
  font-weight: bold;
}

/* Add spacing between logo/title and header navigation links */
.navbar-header-items {
  margin-left: 2rem;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: medium;
}

/* Making sure the navbar shows correctly in one line
   Reduces the space between the top-left logo and the navbar section titles */

.col-lg-3 {
  width: 15%;
}

/* Version switcher from PyData Sphinx Theme */

.version-switcher__menu a.list-group-item {
  font-size: small;
}

button.btn.version-switcher__button,
button.btn.version-switcher__button:hover {
  color: black;
  font-size: small;
}

/* Main index page overview cards */

.sd-card .sd-card-img-top {
  height: 60px;
  width: 60px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
}

/* Main index page overview images */

html[data-theme=dark] .sd-card img[src*='.svg'] {
  filter: invert(0.82) brightness(0.8) contrast(1.2);
}

/* Legacy admonition */

div.admonition-legacy {
  border-color: var(--pst-color-warning);
}

div.admonition-legacy>.admonition-title::after {
  color: var(--pst-color-warning);
}

div.admonition-legacy>.admonition-title {
  background-color: var(--pst-color-warning-bg);
}

/* Buttons for JupyterLite-enabled interactive examples */

.try_examples_button {
  color: white;
  background-color: var(--pst-color-info);
  border: none;
  padding: 5px 10px;
  border-radius: 0.25rem;
  margin-top: 3px;
  margin-bottom: 5px !important;
  box-shadow: 0 2px 5px rgba(108, 108, 108, 0.2);
  font-weight: bold;
  font-size: small;
}

/* Use more accessible colours for text in dark mode */
[data-theme=dark] .try_examples_button {
  color: black;
}

.try_examples_button:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.try_examples_button_container {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

/* Better gaps for examples buttons under admonitions */

.try_examples_outer_iframe {
  margin-top: 0.4em;
}

/* Add spacing below images so following text isn't flush against the plot */
.bd-article-container img {
  margin-bottom: 1em;
}
