/* Shared site navigation (desktop + mobile) */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

nav .logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
}

nav .logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

nav .logo-icon {
  display: block;
  height: 40px;
  width: auto;
}

nav .logo-word {
  display: block;
  height: 34px;
  width: auto;
}

nav .logo-byline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--teal);
}

.nav-toggle svg {
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--teal);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.nav-cta-mobile:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: var(--teal-deep);
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.28);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--teal);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 7px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.nav-links a.nav-cta:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: var(--teal-deep);
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.28);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .nav-actions {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
    font-size: 15px;
  }

  .nav-links a.nav-cta {
    display: none;
  }
}
