.px-navbar {
  position: relative;
  background: var(--px-nav);
  border-bottom: 1px solid var(--px-border);
}

.px-navbar-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 4.5rem;
}

.px-logo-link {
  display: flex;
  flex-shrink: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--px-text);
}

.px-logo-link:hover {
  color: var(--px-text);
}

.px-logo-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.px-logo-text {
  font-family: var(--px-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.px-navbar-end {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.px-nav-desktop {
  display: none;
}

.px-nav-desktop ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.px-nav-desktop li {
  flex-shrink: 0;
}

.px-nav-desktop a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--px-text-muted);
  font-family: var(--px-font);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.px-nav-desktop a:hover,
.px-nav-desktop a.active {
  color: var(--px-text);
  border-bottom-color: var(--px-accent);
  background: transparent;
}

.px-hamburger {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--px-radius);
  background: var(--px-surface);
  cursor: pointer;
}

.px-hamburger span {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--px-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.px-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.px-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.px-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.px-nav-mobile {
  display: block;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}

.px-nav-mobile.is-open {
  max-height: 220px;
  border-top-color: var(--px-border);
}

.px-nav-mobile ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.75rem;
}

.px-nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  color: var(--px-text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease;
}

.px-nav-mobile li:last-child a {
  border-bottom: none;
}

.px-nav-mobile a:hover,
.px-nav-mobile a.is-active {
  color: var(--px-accent);
  background: transparent;
  border-left: none;
}

@media (min-width: 768px) {
  .px-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .px-logo-text {
    font-size: 1.625rem;
  }

  .px-hamburger {
    display: none;
  }

  .px-nav-mobile {
    display: none !important;
  }

  .px-nav-desktop {
    display: block;
  }
}
