/* We Pyro It: one final header authority, loaded after style.css. */

/* Compact desktop header only for the formerly broken 1025px-1180px range. */
@media (min-width: 1025px) and (max-width: 1180px) {
  html body .site-header.wpi-global-header,
  html body .site-header.wpi-global-header.container-wide {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: min(calc(100% - 3rem), 108rem) !important;
    min-width: 0 !important;
    max-width: 108rem !important;
    height: auto !important;
    min-height: clamp(6.2rem, 7vw, 9.65rem) !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 13.5rem minmax(0, 1fr) 13.5rem !important;
    align-items: center !important;
    align-content: center !important;
    gap: 1rem !important;
    overflow: visible !important;
    transform: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle,
  html body .site-header.wpi-global-header .wpi-mobile-drawer-nav,
  html body > .wpi-mobile-menu-portal,
  html body .wpi-mobile-services-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body .site-header.wpi-global-header .wpi-header-actions {
    grid-column: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
  }

  html body .site-header.wpi-global-header .wpi-header-actions .header-contact {
    display: inline-flex !important;
  }

  /* The script keeps a mobile-only CTA clone inside main-nav; never show it here. */
  html body .site-header.wpi-global-header > .main-nav > .mobile-nav-contact {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body .site-header.wpi-global-header > .main-nav,
  html body.menu-open .site-header.wpi-global-header > .main-nav,
  html body.wpi-menu-open .site-header.wpi-global-header > .main-nav {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    gap: .9rem !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: .82rem !important;
    line-height: 2.93rem !important;
    letter-spacing: .045rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header > .main-nav > a {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    text-align: center !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .main-nav > .wpi-nav-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    grid-template-columns: none !important;
    gap: .2rem !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 2.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .wpi-nav-dropdown-row {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    gap: .2rem !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .wpi-nav-dropdown-label {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    text-align: center !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .wpi-nav-dropdown-caret {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 .75rem !important;
    grid-column: auto !important;
    width: .75rem !important;
    min-width: .75rem !important;
    height: .75rem !important;
    min-height: .75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: .58rem !important;
    line-height: 1 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .wpi-nav-dropdown-menu {
    position: absolute !important;
    top: calc(100% + .4rem) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 100010 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .45rem !important;
    width: min(34rem, calc(100vw - 2rem)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 2rem) !important;
    height: auto !important;
    max-height: calc(100vh - 8rem) !important;
    margin: 0 !important;
    padding: .85rem !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 1.05rem !important;
    background: rgba(5,5,5,.98) !important;
    box-shadow: 0 1.4rem 3.2rem rgba(0,0,0,.48) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(.3rem) !important;
  }

  html body .site-header.wpi-global-header .wpi-nav-dropdown:hover > .wpi-nav-dropdown-menu,
  html body .site-header.wpi-global-header .wpi-nav-dropdown:focus-within > .wpi-nav-dropdown-menu,
  html body .site-header.wpi-global-header .wpi-nav-dropdown.is-open > .wpi-nav-dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  html body .site-header.wpi-global-header .wpi-nav-dropdown-menu > a {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 2.85rem !important;
    margin: 0 !important;
    padding: .72rem .78rem !important;
    border: 0 !important;
    border-radius: .72rem !important;
    background: rgba(255,255,255,.035) !important;
    color: #fff !important;
    font-size: .78rem !important;
    line-height: 1.18 !important;
    letter-spacing: .045em !important;
    text-align: left !important;
    white-space: normal !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .wpi-nav-dropdown-menu > .wpi-nav-dropdown-cta {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
    background: #d20404 !important;
  }
}

/* Tablet/mobile: hamburger only through 1024px. */
@media (max-width: 1024px) {
  html body .site-header.wpi-global-header,
  html body .site-header.wpi-global-header.container-wide {
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2147482500 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 6.5rem !important;
    min-height: 6.5rem !important;
    max-height: 6.5rem !important;
    margin-top: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: -6.5rem !important;
    margin-left: calc(50% - 50vw) !important;
    padding: .7rem max(1.25rem, env(safe-area-inset-right)) .7rem max(1.25rem, env(safe-area-inset-left)) !important;
    display: grid !important;
    grid-template-columns: minmax(8.75rem, 1fr) auto !important;
    align-items: center !important;
    align-content: center !important;
    gap: 1rem !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition: background-color .2s ease, backdrop-filter .2s ease !important;
  }

  html body .site-header.wpi-global-header.wpi-header-after-hero,
  html body .site-header.wpi-global-header.container-wide.wpi-header-after-hero {
    background: rgba(5,5,5,.94) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.08) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  html body .site-header.wpi-global-header > .main-nav,
  html body.menu-open .site-header.wpi-global-header > .main-nav,
  html body.wpi-menu-open .site-header.wpi-global-header > .main-nav,
  html body > .wpi-mobile-menu-portal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle,
  html body .site-header.wpi-global-header .wpi-header-actions .mobile-menu-toggle {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 3.75rem !important;
    width: 3.75rem !important;
    height: 3.75rem !important;
    min-width: 3.75rem !important;
    min-height: 3.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.38) !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: visible !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle:hover,
  html body .site-header.wpi-global-header .mobile-menu-toggle:focus,
  html body .site-header.wpi-global-header .mobile-menu-toggle:active {
    border-color: rgba(255,255,255,.78) !important;
    background: rgba(0,0,0,.38) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle::before,
  html body .site-header.wpi-global-header .mobile-menu-toggle::after {
    content: none !important;
    display: none !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle span {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle span,
  html body .site-header.wpi-global-header .mobile-menu-toggle span::before,
  html body .site-header.wpi-global-header .mobile-menu-toggle span::after {
    box-sizing: border-box !important;
    width: 1.55rem !important;
    height: 2px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle span::before,
  html body .site-header.wpi-global-header .mobile-menu-toggle span::after {
    content: "" !important;
    position: absolute !important;
    display: block !important;
    left: 0 !important;
    transform: none !important;
    transition: top .2s ease, transform .2s ease !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle span::before {
    top: -.5rem !important;
  }

  html body .site-header.wpi-global-header .mobile-menu-toggle span::after {
    top: .5rem !important;
  }

  html body.menu-open .site-header.wpi-global-header .mobile-menu-toggle span,
  html body.wpi-menu-open .site-header.wpi-global-header .mobile-menu-toggle span {
    background: transparent !important;
  }

  html body.menu-open .site-header.wpi-global-header .mobile-menu-toggle span::before,
  html body.wpi-menu-open .site-header.wpi-global-header .mobile-menu-toggle span::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
  }

  html body.menu-open .site-header.wpi-global-header .mobile-menu-toggle span::after,
  html body.wpi-menu-open .site-header.wpi-global-header .mobile-menu-toggle span::after {
    top: 0 !important;
    transform: rotate(-45deg) !important;
  }

  html body .site-header.wpi-global-header .wpi-mobile-drawer-nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + .55rem) !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
    bottom: auto !important;
    left: max(1rem, env(safe-area-inset-left)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 8rem) !important;
    margin: 0 !important;
    padding: .75rem !important;
    gap: .45rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 1rem !important;
    background: rgba(8,8,10,.98) !important;
    box-shadow: 0 1.2rem 3.5rem rgba(0,0,0,.45) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  html body.menu-open .site-header.wpi-global-header .wpi-mobile-drawer-nav,
  html body.wpi-menu-open .site-header.wpi-global-header .wpi-mobile-drawer-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:link,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:visited,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:hover,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:focus,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:active {
    border: 1px solid #fff !important;
    background: transparent !important;
  }

  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:link,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:visited,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:hover,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:focus,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:active,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 767px) {
  html body .site-header.wpi-global-header,
  html body .site-header.wpi-global-header.container-wide {
    height: 6rem !important;
    min-height: 6rem !important;
    max-height: 6rem !important;
    margin-bottom: -6rem !important;
  }

  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:link,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:visited,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:hover,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:focus,
  html body .site-header.wpi-global-header a.wpi-mobile-drawer-cta:active {
    border: 1px solid #fff !important;
    background: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none !important;
  }
}
