/* The introduction's navigation settles into a floating bar as the reader scrolls. */
body:has(.intro-header) .detection-intro {
  min-height: calc(100vh + 230px);
}
body .site-header.intro-header {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
}
body .intro-header .header-inner {
  width: calc(100% - 32px);
  max-width: 1216px;
  height: 56px;
  margin: 6px auto;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}
body .intro-header #desktop-nav a:not([href="#/intro"]) {
  max-width: 0;
  padding-inline: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
body .intro-header .header-actions {
  opacity: 0;
  pointer-events: none;
}
body .intro-header.intro-header-expanded .header-inner {
  width: calc(100% - 64px);
  max-width: 1120px;
  background: rgb(26 39 58 / 89%);
  border-color: rgb(218 232 255 / 20%);
  box-shadow: 0 8px 32px rgb(0 0 0 / 20%);
  backdrop-filter: blur(18px);
}
body .intro-header.intro-header-expanded #desktop-nav a:not([href="#/intro"]) {
  max-width: 130px;
  padding-inline: 13px;
  opacity: 1;
  pointer-events: auto;
}
body .intro-header.intro-header-expanded .header-actions {
  opacity: 1;
  pointer-events: auto;
}
body .intro-header.intro-header-expanded :is(#desktop-nav a, .header-actions .help-button, .wordmark) {
  color: #f4f7fc;
}
body .intro-header.intro-header-expanded #desktop-nav a[aria-current="page"] {
  background: rgb(22 42 70 / 38%);
}
@media (prefers-reduced-motion: no-preference) {
  body .intro-header .header-inner {
    transition: width .42s cubic-bezier(.22,.7,.25,1), max-width .42s cubic-bezier(.22,.7,.25,1),
      background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
  }
  body .intro-header #desktop-nav a:not([href="#/intro"]) {
    transition: max-width .42s cubic-bezier(.22,.7,.25,1), padding .42s cubic-bezier(.22,.7,.25,1),
      opacity .25s ease, color .25s ease;
  }
  body .intro-header .header-actions { transition: opacity .28s ease; }
}
@media (min-width:651px) and (max-width:900px) {
  body .intro-header.intro-header-expanded .header-inner { width: calc(100% - 20px); padding-inline: 10px; gap: 5px; }
  body .intro-header.intro-header-expanded #desktop-nav a:not([href="#/intro"]) { padding-inline: 6px; }
}
@media (max-width:650px) {
  body .intro-header .header-inner { height: 48px; margin: 4px auto; padding-inline: 12px; display: flex; }
  body .intro-header #desktop-nav { display: flex; margin: 0 0 0 auto; }
  body .intro-header #desktop-nav a[href="#/intro"] { color: #eef5ff; }
  body .intro-header .header-actions { display: none; }
  body:has(.intro-header:not(.intro-header-expanded)) #mobile-nav {
    visibility: hidden; opacity: 0; pointer-events: none;
  }
  body .intro-header.intro-header-expanded .header-inner { width: calc(100% - 24px); }
  body .intro-header.intro-header-expanded #desktop-nav { display: none; }
  body .intro-header.intro-header-expanded .header-actions { display: flex; margin-left: auto; }
  body:has(.intro-header-expanded) #mobile-nav { visibility: visible; opacity: 1; }
}
@media (max-width:650px) and (prefers-reduced-motion:no-preference) {
  body:has(.intro-header) #mobile-nav { transition: opacity .28s ease, visibility .28s; }
}
