.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-light);
  background: transparent;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  transition:
    all 0.2s ease,
    color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-pill:hover {
  background: var(--color-surface);
}

.nav-pill.is-active {
  background: var(--color-surface);
  border-color: var(--color-surface);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-pill.is-active:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-surface-hover);
}

.nav-pill::after {
  display: none !important;
}

/* Auth links: mobile-only — always hidden on desktop */
.nav-auth-link {
  display: none;
}

@media (max-width: 1000px) {
  .nav-auth-link {
    display: flex;
  }
}

@media (max-width: 1000px) {
  .site-nav {
    display: none;
    position: fixed;
    top: 73px; /* header height (72px) + border (1px) */
    left: 0;
    right: 0;
    z-index: 200;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav-inner {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    padding: 8px 16px 16px;
    gap: 4px;
  }

  .nav-pill {
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 1001px) {
  .site-nav-inner {
    gap: 16px;
    padding: 16px 24px;
  }

  .nav-pill {
    font-size: 16px;
  }
}
