/* Marketing navbar (components/layout/navbar) with the careers links: h-16 → xl:h-18, px-4 → md:px-8, top-level
   items px-3 py-2 semibold, full nav from xl. The careers links and buttons need ~1140px, so the xl:px-20 side padding
   waits until 90rem; at 80rem it would wrap the links. */

.lp-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
  background: var(--lp-ui-bg-primary);
  border-bottom: 1px solid var(--lp-ui-border-primary);
}

.lp-navbar__brand {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.lp-navbar__logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.lp-navbar__logo svg {
  display: block;
}

.lp-navbar__divider {
  width: 1px;
  height: 1.25rem;
  background: var(--lp-ui-border-primary);
}

.lp-navbar__product {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-ui-text-tertiary);
}

.lp-navbar__links,
.lp-navbar__actions {
  display: none;
  align-items: center;
}

.lp-navbar__actions {
  gap: 0.75rem;
}

.lp-navbar__item {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.lp-navbar__item:hover {
  background: var(--muted);
}

.lp-navbar__item:focus-visible,
.lp-navbar__burger:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
}

.lp-navbar__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.lp-navbar__burger:hover {
  background: var(--muted);
}

.lp-navbar__burger svg {
  width: 1.5rem;
  height: 1.5rem;
}

.lp-navbar-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  background: var(--lp-ui-bg-primary);
  border-bottom: 1px solid var(--lp-ui-border-primary);
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
}

.lp-navbar-menu.open {
  display: flex;
}

.lp-navbar-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 48rem) {
  .lp-navbar { padding: 0 2rem; }
  .lp-navbar-menu { padding: 0.5rem 2rem 1rem; }
}

@media (min-width: 80rem) {
  .lp-navbar { height: 4.5rem; }
  .lp-navbar__links,
  .lp-navbar__actions { display: flex; }
  .lp-navbar__burger,
  .lp-navbar-menu,
  .lp-navbar-menu.open { display: none; }
}

/* With the Stories link the full nav needs ~1230px, so between 80rem and 90rem it runs tighter: a smaller logo gap
   and item padding keep the links clear of the buttons at 1280px. */
@media (min-width: 80rem) and (max-width: 89.99rem) {
  .lp-navbar__brand { gap: 1.5rem; }
  .lp-navbar__item { padding: 0.5rem 0.5rem; }
}

@media (min-width: 90rem) {
  .lp-navbar { padding: 0 5rem; }
}
