/* ============================================================
   SNS Valley View — Header
   Ported from design_handoff_sns_valley_view/styles.css lines 84-129.
   ============================================================ */

.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--pad-x);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.logo__name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--c-cream);
}
.logo__sub {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-cream-45);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cream-70);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--c-cream); }

/* ------------------------------------------------------------
   Mobile nav — a CSS-only <details> disclosure, no icon (the design
   uses zero icons anywhere; a hamburger glyph would be the first one).

   Two independent, non-overlapping sets of the same four links exist in
   header.templ: .nav__link--flat (plain, always in normal flow) for
   tablet/desktop, and the same four links again inside .nav__disclosure
   for mobile. Each set is a plain `display: none` toggle at the opposite
   tier — nothing exotic. An earlier version tried to keep one copy and
   force the <details> open at wider widths via `display: contents`;
   measured against real Chrome at 768px, that collapsed the whole nav
   into a ~154px sliver (Chrome bundles adjacent `display: contents`
   -flattened inline links into one anonymous flex item that wraps them
   vertically, rather than making each its own flex item of .nav). See
   docs/DECISIONS.md.
   ------------------------------------------------------------ */
.nav__disclosure { display: none; }

@media (max-width: 680px) {
  .nav { position: relative; gap: 20px; }

  .nav__link--flat { display: none; }
  .nav__disclosure { display: block; }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-cream-70);
    cursor: pointer;
    list-style: none;
  }
  .nav__toggle::-webkit-details-marker { display: none; }

  /* Real text for both states, one hidden — not generated content. See
     header.templ's doc comment for why. */
  .nav__toggle-label--open { display: none; }
  details.nav__disclosure[open] .nav__toggle-label--closed { display: none; }
  details.nav__disclosure[open] .nav__toggle-label--open { display: inline; }

  .nav__panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-top: 1px solid var(--c-hair);
    padding: 4px 24px 12px;
    z-index: 20;
  }
  .nav__panel .nav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--c-hair);
  }
  .nav__panel .nav__link:last-child { border-bottom: 0; }
}
