/* Ported from MOCKUP lines 89-98 plus the global link rules (lines 17-18)
   and the .xb-logo / .xb-tagline / .xb-nav-cta @media block (lines 80-84). */

.xcw-nav {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--xcw-line);
}

.xcw-nav--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.xcw-nav__inner {
  max-width: var(--xcw-max);
  margin: 0 auto;
  padding: 14px var(--xcw-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xcw-nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.xcw-nav__logo { display: block; flex: none; }

/* Height comes from --xcw-logo-h, set inline on .xcw-nav__brand by the widget,
   so the mobile override below wins on source order without !important. */
.xcw-nav__logo img {
  height: var(--xcw-logo-h, 46px);
  width: auto;
  display: block;
  flex: none;
}

.xcw-nav__tagline {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--xcw-faint);
  padding-left: 14px;
  border-left: 1px solid #DDE6E9;
  line-height: 1.35;
  white-space: nowrap;
  flex: none;
}

.xcw-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.xcw-nav__links a {
  font-size: 14.5px;
  color: var(--xcw-body);
  text-decoration: none;
  transition: color .15s;
}

.xcw-nav__links a:hover { color: var(--xcw-accent); }

.xcw-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
  background: var(--xcw-accent);
  font-family: var(--xcw-heading-font);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(20, 41, 47, .12);
  transition: filter .15s;
}

/* Out-specifies a theme's generic link colour without !important. Scoped to
   `color` only so the {{WRAPPER}}-based background control still wins. */
.xcw.xcw-nav a.xcw-nav__cta,
.xcw.xcw-nav a.xcw-nav__cta:hover,
.xcw.xcw-nav a.xcw-nav__cta:focus,
.xcw.xcw-nav a.xcw-nav__cta:visited { color: #fff; }

.xcw-nav__cta:hover { filter: brightness(.94); }

@media (max-width: 640px) {
  .xcw-nav__logo img { height: 32px; }
  .xcw-nav__tagline { display: none; }
  .xcw-nav__cta {
    font-size: 13px;
    padding: 10px 15px;
  }
  .xcw-nav__links { gap: 14px; }
}
