:root {
  --glean-nav-surface: rgba(251, 248, 255, 0.9);
  --glean-nav-ink: #001355;
  --glean-nav-line: rgba(117, 118, 130, 0.14);
}

html.dark {
  --glean-nav-surface: rgba(2, 4, 8, 0.88);
  --glean-nav-ink: #fbf8ff;
  --glean-nav-line: rgba(255, 255, 255, 0.06);
}

#main-header,
body > header.fixed:not(#main-header),
.site-header {
  min-height: 64px;
  border-bottom: 1px solid var(--glean-nav-line) !important;
  background: var(--glean-nav-surface) !important;
  box-shadow: 0 1px 0 rgba(0, 12, 63, 0.02);
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
}

#main-header > div:first-child,
body > header.fixed:not(#main-header) > div:first-child,
.site-header__inner {
  width: min(80rem, 100%);
  min-height: 64px;
  margin-inline: auto;
  padding-block: 0 !important;
  padding-inline: 1.5rem;
}

#main-header a[href="/"]:first-of-type,
body > header.fixed:not(#main-header) a[href="/"]:first-of-type,
body > header.fixed:not(#main-header) a[href="dashboard"]:first-of-type,
.site-header .wordmark {
  color: var(--glean-nav-ink) !important;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.35rem !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0 !important;
  text-decoration: none;
}

#main-header button,
body > header.fixed:not(#main-header) button,
.site-header button {
  -webkit-tap-highlight-color: transparent;
}

#main-header #glean-account-control.is-authenticated {
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: color-mix(in srgb, var(--glean-nav-ink) 58%, transparent);
  letter-spacing: 0;
}

#main-header #glean-account-control.is-authenticated:hover {
  background: color-mix(in srgb, var(--glean-nav-ink) 6%, transparent);
  color: var(--glean-nav-ink);
}

#main-header #glean-account-control.is-authenticated > i { display: block; font-size: 1.25rem; }
#main-header #glean-account-control.is-authenticated > [data-account-label],
#main-header #glean-account-control.is-authenticated > [data-account-value] { display: none; }

#main-header #mobile-nav,
body > header.fixed:not(#main-header) #mobile-nav,
.site-mobile-nav {
  border-color: var(--glean-nav-line) !important;
  background: var(--glean-nav-surface) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
}

@media (max-width: 767px) {
  #main-header > div:first-child,
  body > header.fixed:not(#main-header) > div:first-child,
  .site-header__inner {
    padding-inline: 1rem !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  #main-header,
  body > header.fixed:not(#main-header),
  .site-header,
  #main-header #mobile-nav,
  body > header.fixed:not(#main-header) #mobile-nav,
  .site-mobile-nav {
    background: #fbf8ff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html.dark #main-header,
  html.dark body > header.fixed:not(#main-header),
  html.dark .site-header,
  html.dark #main-header #mobile-nav,
  html.dark body > header.fixed:not(#main-header) #mobile-nav,
  html.dark .site-mobile-nav {
    background: #020408 !important;
  }
}
