/* https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-colors */
:root {
  --md-primary-fg-color: #e620e9;
  --md-primary-fg-color--light: #e620e9;
  --md-primary-fg-color--dark: #e620e9;
  /* this color is used by the announce banner: */
  --md-footer-bg-color: #1d0214;
}

/* Revert hue value to that of pre mkdocs-material v9.4.0 */
[data-md-color-scheme="slate"] {
  /* Hue taken from hsl of #1d0214, used for bg on website*/
  --md-hue: 320;
  /* Increase the lightness by 5%, opacity by 0.2 */
  --md-default-fg-color: hsla(var(--md-hue),15%,95%,1.0);
  --md-default-fg-color--light: hsla(var(--md-hue),15%,95%,0.76);
  --md-default-fg-color--lighter: hsla(var(--md-hue),15%,95%,0.52);
  --md-default-fg-color--lightest: hsla(var(--md-hue),15%,95%,0.32);
  /* Change the saturation and lightness to match #1d0214 */
  --md-default-bg-color: hsla(var(--md-hue),87%,6%,1);
  --md-default-bg-color--light: hsla(var(--md-hue),87%,6%,0.54);
  --md-default-bg-color--lighter: hsla(var(--md-hue),87%,6%,0.26);
  --md-default-bg-color--lightest: hsla(var(--md-hue),87%,6%,0.07);
  /* Increase the opacity of code to 1.0 */
  --md-code-fg-color: hsla(var(--md-hue),18%,86%,1.0)
}

.custom-source-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media screen and (min-width: 60em) {
    .md-header__source {
        box-sizing: content-box;
        max-width: 11.7rem;
        width: 11.7rem;
    }
}

.custom-login-button {
  font-size: 0.8rem;
  font-weight: 700;
  float: right;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 6px 12px;
  transition: opacity .25s;
}

.custom-login-button:hover {
  opacity: 0.7
}

/* make David happy - make the padding next to the login button smaller */
/*.md-header__source {*/
/*  width: auto !important;*/
/*  margin-left: 1rem !important;*/
/*}*/

/* Hide all ToC entries for parameters. */
li.md-nav__item>a[href*="("] {
  display: none;
}

/* Except for specific parameters. */
li.md-nav__item>a[href^="#logfire.Logfire.instrument_fastapi("],
li.md-nav__item>a[href^="#logfire.configure("] {
  display: inline-block;
}

.md-typeset .doc h5 {
  text-transform: none;
  font-size: 1.1em;
}

.md-search__output em {
  color: var(--md-primary-fg-color);
}

.md-search__input::-webkit-search-decoration,
.md-search__input::-webkit-search-cancel-button,
.md-search__input::-webkit-search-results-button,
.md-search__input::-webkit-search-results-decoration {
  -webkit-appearance:none;
}

.md-search-result__article {
  padding-bottom: .55em;
}

.ais-SearchBox-form {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.md-search-result mark.ais-Highlight-highlighted,
.md-search-result mark.ais-Snippet-highlighted {
  color: var(--md-primary-fg-color);
}
