.sx-unav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(238, 241, 244, 0.94);
  border-bottom: 1px solid rgba(205, 211, 219, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0b1220;
  font-family: 'Hanken Grotesk', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sx-unav,
.sx-unav * {
  box-sizing: border-box;
}

.sx-unav-inner {
  width: min(1120px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px clamp(14px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sx-unav-brand {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #0b1220;
  text-decoration: none;
}

.sx-unav-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #0b1220;
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sx-unav-mark::after {
  content: '';
  position: absolute;
  inset: 6px 5px 5px 6px;
  border: 2px solid #22d3ee;
  border-right: 0;
  border-bottom: 0;
  border-radius: 3px 0 0 0;
}

.sx-unav-word {
  font-family: 'Schibsted Grotesk', 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.sx-unav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.sx-unav-links::-webkit-scrollbar {
  display: none;
}

.sx-unav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 2px 0 0;
  border-bottom: 2px solid transparent;
  color: #475467;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.sx-unav-link:hover,
.sx-unav-link:focus-visible {
  color: #0b1220;
}

.sx-unav-link:focus-visible {
  outline: 2px solid #0891b2;
  outline-offset: 4px;
}

.sx-unav-link[aria-current='page'] {
  color: #035a72;
  border-bottom-color: #0891b2;
}

@media (max-width: 520px) {
  .sx-unav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 8px 14px 9px;
  }

  .sx-unav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
  }

  .sx-unav-link {
    min-height: 34px;
    font-size: 13px;
  }
}

.sx-unav-account {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  flex: 0 0 auto;
  margin-left: clamp(2px, 1.2vw, 16px);
}

/* The account area renders after the links; the auto margin keeps the links
   hugging it so brand | ...links account reads as one right-aligned cluster.
   (No :has match when the flag is dark → this rule is inert on dark pages.) */
.sx-unav-inner:has(.sx-unav-account) .sx-unav-links {
  margin-left: auto;
}

.sx-unav-cta {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border-radius: 999px;
  background: #0b1220;
  color: #f8fafc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sx-unav-cta:hover,
.sx-unav-cta:focus-visible {
  background: #035a72;
  color: #ffffff;
}

.sx-unav-cta:focus-visible {
  outline: 2px solid #0891b2;
  outline-offset: 2px;
}

.sx-unav-user {
  min-height: 34px;
  max-width: 200px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(11, 18, 32, 0.18);
  border-radius: 999px;
  color: #0b1220;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sx-unav-user::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  margin-right: 8px;
  flex: 0 0 auto;
}

.sx-unav-user:hover,
.sx-unav-user:focus-visible {
  border-color: #0891b2;
  color: #035a72;
}

.sx-unav-user:focus-visible {
  outline: 2px solid #0891b2;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  /* The mobile nav stacks brand row over links row; the brand row's empty
     right side hosts the account area so the CTA never scrolls off-screen
     inside the horizontally-scrolling links strip. position:relative is
     visually inert while dark (no positioned children exist without the
     account area) — Playwright dark-parity screenshots on the PR prove it. */
  .sx-unav-inner {
    position: relative;
  }

  .sx-unav-account {
    position: absolute;
    top: 11px;
    right: 14px;
    gap: 10px;
    margin-left: 0;
  }

  .sx-unav-cta {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12.5px;
  }

  .sx-unav-user {
    min-height: 30px;
    max-width: 140px;
    font-size: 12.5px;
  }
}
