.bd-footer .footer-items__start {
  flex-direction: row; /* See https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html#footer. */
  width: 100%;
}

.bd-footer .footer-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.logo__image {
  padding: 6px;
}

.DocSearch-Button {
  margin: 0 0 0 0;
  width: 100%;
}

.DocSearch-Container {
  z-index: 2500; /* Above everything else rendered by Sphinx. */
}

/* Unset properties set by the PyData theme on the `img, svg` selector. */
.DocSearch-Container svg {
  vertical-align: unset;
}

/* Unset properties set by the PyData theme on the `.mark, mark` selector. */
.DocSearch-Hits mark {
  padding: unset;
  background-color: unset;
}

/* Hide Sphinx search bar modal when using the keyboard shortcut for search to avoid conflict with the DocSearch modal. */
.search-button__wrapper {
  display: none;
}

a.headerlink {
  color: var(--atoti-brand-color-light);
}

/* Unset some styles so that tables in output cells are displayed correctly. */
div.rendered_html table {
  margin-left: unset;
  margin-right: unset;
  width: unset;
}

html {
  --atoti-primary-color: #af4d61;
  --atoti-purple-accent-color: #291a40;
  --atoti-pink-accent-color: #fbf3f3;
  --atoti-yellow-accent-color: #dea54c;
}

html[data-theme="light"] {
  --docsearch-primary-color: var(--atoti-purple-accent-color);
  --pst-color-link: var(--pst-color-secondary);
  --pst-color-primary: var(--atoti-purple-accent-color);
  --pst-color-secondary: var(--atoti-primary-color);
}

html[data-theme="dark"] {
  --atoti-primary-color: #d48f9d; /* lighter than the official one for acceptable contrast */
  --pst-color-link: var(--atoti-primary-color);
  --docsearch-primary-color: var(--atoti-primary-color);
  --pst-color-on-background: #121212;
  --pst-color-primary: var(--atoti-pink-accent-color);
}

html[data-theme="light"],
html[data-theme="dark"] {
  --pst-color-info: var(--pst-color-link);
  --pst-color-inline-code: var(--pst-color-info);
  --pst-color-link-hover: var(--pst-color-primary);
}

html[data-theme="light"] a:visited {
  color: #6d2f59; /* lighter than the purple accent color for acceptable contrast */
}

html[data-theme="dark"] a:visited {
  color: var(--atoti-pink-accent-color);
}

html[data-theme="dark"] .navbar-nav > .active > .nav-link,
html[data-theme="dark"] .navbar-nav li a.nav-link:hover,
html[data-theme="dark"] .navbar-nav li.current > a,
html[data-theme="dark"] .toc-entry a.nav-link.active,
html[data-theme="dark"] nav.bd-links li > a:hover {
  color: var(--pst-color-link);
}
