/* Access link: secondary navigation action, deliberately distinct from the purchase CTA. */
.nav .login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: 17px;
  padding: 9px 18px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  line-height: 1;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav .login-link:hover,
.nav .login-link:focus-visible {
  background: rgba(91, 84, 255, .08);
  border-color: #4038d5;
  color: #4038d5;
  box-shadow: 0 6px 16px rgba(91, 84, 255, .12);
  transform: translateY(-1px);
}

.nav .login-link:focus-visible {
  outline: 3px solid rgba(91, 84, 255, .25);
  outline-offset: 3px;
}

@media (max-width: 950px) {
  .nav .login-link { margin-left: 5px; }
}

@media (max-width: 750px) {
  .nav .login-link {
    width: 100%;
    margin-left: 0;
  }
}

/* The account action is a control, not a section link: never show the nav marker. */
.nav > a.login-link::after,
.nav > a.login-link:hover::after,
.nav > a.login-link.is-current::after {
  content: "" !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  transform: none !important;
}

/* Keep the navigation rhythm balanced: links form one group, actions form another. */
@media (min-width: 751px) {
  .site-header {
    height: 82px;
    padding-right: 54px;
    padding-left: 54px;
  }

  .nav {
    gap: clamp(24px, 2vw, 34px);
  }

  .nav > a[data-section-link] {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .nav-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-left: 2px;
    padding-right: 21px !important;
    padding-left: 21px !important;
  }

  .nav .login-link {
    min-width: 108px;
    margin-left: 0;
  }
}
