header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 6px;
  gap: 8px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand span {
  font-weight: 600;
}

.nav-links {
  display: none;  /* hidden on mobile */
  gap: 12px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;   /* show nav on tablet/desktop */
    gap: 20px;
    font-size: 0.8rem;
    flex-wrap: nowrap;
  }
}

/* Generic sticky section header */
.section-header {
  position: sticky;
  top: 0;
  padding: 10px 0 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 5;
}

.section-header-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0;
}
