/* One homepage header shell for every route. Navigation typography stays in
   the existing shared menu styles; the logo keeps its original 7.2s sequence. */
html body .site-shell .adesa-header {
  box-sizing: border-box !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 88px !important;
  min-height: 88px !important;
  padding: 5px 28px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 0 0 20px 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
    linear-gradient(104deg, #171817 0%, #20211e 52%, #181a19 100%) !important;
  box-shadow: none !important;
  overflow: visible !important;
  isolation: isolate !important;
}

html body .site-shell .adesa-header .adesa-header__brand {
  position: relative !important;
  flex: 0 0 220px !important;
  width: 220px !important;
  max-width: 220px !important;
  min-width: 0 !important;
  height: 66px !important;
  margin: 0 auto 0 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

/* Desktop's former white mask was inverted to black by the animation filter.
   Use the same image fragments as mobile before applying the white filter. */
html body .adesa-header .adesa-header__brand.adesa-logo-ready .adesa-logo-letter {
  display: block !important;
  background: url('/images/adesa-logo.webp') center / 100% 100% no-repeat !important;
  -webkit-mask: none !important;
  mask: none !important;
}

html body .adesa-header .adesa-header__brand.adesa-logo-ready .adesa-header__logo {
  opacity: 0 !important;
}

html body .adesa-header .adesa-header__brand.adesa-logo-ready::before {
  opacity: var(--adesa-full-logo-opacity, 0) !important;
}

html body .adesa-header .adesa-header__brand.adesa-logo-ready::after {
  opacity: var(--adesa-full-logo-opacity, 0) !important;
}

@media (min-width: 940px) {
  html body .site-shell .adesa-header .adesa-header__navigation {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (min-width: 940px) and (max-width: 1199px) {
  html body .site-shell .adesa-header { padding-inline: 18px !important; }
  html body .site-shell .adesa-header .adesa-header__brand {
    flex-basis: 168px !important;
    width: 168px !important;
    max-width: 168px !important;
    height: 50px !important;
  }
}

@media (max-width: 939px) {
  html body .site-shell .adesa-header {
    height: 72px !important;
    min-height: 72px !important;
    padding: 8px 16px !important;
    border-radius: 0 0 16px 16px !important;
    background: linear-gradient(180deg, #242522 0%, #1a1c1b 100%) !important;
  }
  html body .site-shell .adesa-header.is-open { border-radius: 0 !important; }
  html body .site-shell .adesa-header .adesa-header__brand {
    flex: 0 1 168px !important;
    width: 168px !important;
    max-width: calc(100% - 110px) !important;
    height: 50px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .adesa-header .adesa-header__brand.adesa-logo-ready .adesa-logo-stage,
  html body .adesa-header .adesa-header__brand.adesa-logo-ready .adesa-logo-impact,
  html body .adesa-header .adesa-header__brand.adesa-logo-ready .adesa-logo-shimmer {
    display: none !important;
  }
  html body .adesa-header .adesa-header__brand.adesa-logo-ready::before,
  html body .adesa-header .adesa-header__brand.adesa-logo-ready::after,
  html body .adesa-header .adesa-header__brand.adesa-logo-ready .adesa-logo-spool-white {
    opacity: 1 !important;
  }
}
