/* Site navigation: darker liquid-glass capsule, with unfiltered content.
 * Keep overflow visible so User dropdowns and expanded search are not clipped. */
body #masthead #site-navigation.navbar {
  top: max(12px, env(safe-area-inset-top));
  left: 10%;
  width: 80%;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.16) rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

/* Filter a decorative sibling, not the navbar: backdrop-filter on the navbar
 * would make Inspiro's fixed full-screen search relative to the capsule. */
body #masthead #site-navigation.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: rgba(8, 10, 12, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  z-index: 0;
  pointer-events: none;
}

/* Keep native blur on WebKit's prefixed path; URL syntax alone is not sufficient. */
@supports (backdrop-filter: url("#lens")) and (not (-webkit-backdrop-filter: blur(1px))) {
  body #masthead #site-navigation.navbar::before {
    backdrop-filter: var(--t3x2r-glass-filter, blur(2.2px)) blur(8px) saturate(120%);
  }
}

body #masthead #site-navigation .header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 60px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 24px;
}

body #masthead #site-navigation .custom-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

body #masthead #site-navigation .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
}

@media (max-width: 64.0625em) {
  body #masthead #site-navigation .header-inner {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (forced-colors: active) {
  body #masthead #site-navigation.navbar {
    border-color: CanvasText;
  }

  body #masthead #site-navigation.navbar::before {
    background: Canvas;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/*
 * T3X2R Stage 1 — User dropdown correction.
 *
 * The teal dropdown border/arrow comes from the parent theme and
 * Additional CSS (`.navbar-nav ul` / `.navbar-nav > li > ul::before`
 * using var(--inspiro-primary-color)). This corrects only that styling
 * for the User navigation item, keeping dark surfaces, restrained grey
 * borders, and the T3X2R blue reserved for interactive/focus emphasis.
 */

@media (min-width: 64.0625em) {
  body.colors-dark.woocommerce-page #masthead .navbar-nav > li.menu-item-6208 > ul,
  body.colors-dark #masthead .navbar-nav > li.menu-item-6208 > ul {
    border-top: 1px solid #636363;
    background: #101010;
  }

  body.colors-dark.woocommerce-page #masthead .navbar-nav > li.menu-item-6208 > ul::before,
  body.colors-dark #masthead .navbar-nav > li.menu-item-6208 > ul::before {
    border-bottom: 8px solid #636363;
  }

  body.colors-dark.woocommerce-page #masthead .navbar-nav > li.menu-item-6208 > ul a,
  body.colors-dark #masthead .navbar-nav > li.menu-item-6208 > ul a {
    color: #d5d5d5;
  }

  body.colors-dark.woocommerce-page #masthead .navbar-nav > li.menu-item-6208 > ul a:hover,
  body.colors-dark.woocommerce-page #masthead .navbar-nav > li.menu-item-6208 > ul a:focus-visible,
  body.colors-dark #masthead .navbar-nav > li.menu-item-6208 > ul a:hover,
  body.colors-dark #masthead .navbar-nav > li.menu-item-6208 > ul a:focus-visible {
    color: #50a5f6;
    outline: 2px solid #50a5f6;
    outline-offset: -2px;
  }
}
