/* Shared site nav — used on every page for consistency */
.cs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.cs-nav-inner {
  max-width: 79.5rem;
  margin: 0 auto;
  padding: 0 2rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-logo {
  display: block;
  line-height: 0;
  /* without this the logo is the flex item that gives way when the links
     don't fit — it collapsed to 5px wide at phone widths */
  flex: none;
}

.cs-logo img {
  height: 2.375rem;
  width: auto;
  display: block;
}

.cs-nav-links {
  display: flex;
  flex: none;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
}

.cs-nav-links a {
  text-decoration: none;
  font-weight: 300;
  color: #212121;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.cs-nav-links a:hover {
  opacity: 1;
}

.cs-nav-links a.active {
  opacity: 1;
  color: #212121;
  font-weight: 400;
}

/* Phones — all four links fit once the desktop spacing relaxes, so the nav
   stays one tap deep rather than collapsing behind a menu. */
@media (max-width: 640px) {
  .cs-nav-inner {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .cs-logo img {
    height: 1.875rem;
  }

  .cs-nav-links {
    gap: 1.125rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 380px) {
  .cs-nav-inner {
    padding: 0 0.75rem;
  }

  .cs-nav-links {
    gap: 0.875rem;
    font-size: 0.75rem;
  }
}
