/* ============================================================
   Legs Guide — Navigation & Footer styles
   Extends the existing dark theme tokens already defined in
   styles.css (#0c0c0e background, #e8e8ec text, #a0a0b0 muted,
   #a0a0ff focus ring, #1a1a1f hairline). No new palette.
   Link this file AFTER styles.css.
   ============================================================ */

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: #e8e8ec;
  color: #0c0c0e;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Header shell ── */
.site-header {
  border-bottom: 1px solid #1a1a1f;
  background: #0c0c0e;
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.nav-brand-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #e8e8ec;
}

.nav-context {
  font-size: 0.75rem;
  color: #a0a0b0;
}

.nav-context a {
  color: #a0a0b0;
  text-decoration: underline;
}

.nav-context a:hover {
  color: #e8e8ec;
}

/* ── Mobile-first: nav collapses into a disclosure ── */
.nav-toggle-wrap {
  width: 100%;
}

.nav-toggle-wrap > summary.nav-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #1a1a1f;
  border-radius: 4px;
  color: #e8e8ec;
  font-size: 0.9rem;
  width: fit-content;
}

.nav-toggle-wrap > summary.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle-icon {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: #e8e8ec;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: #e8e8ec;
}

.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after  { top: 5px; }

.nav-panel {
  padding-top: 1rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  flex-shrink: 0;
}

.nav-links > li > a {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a0a0b0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] {
  color: #e8e8ec;
}

.nav-links > li > a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-apex-link {
  font-weight: 600;
}

/* Quiet, non-routing note replacing the former feeder-menu disclosure */
.nav-family-note {
  font-size: 0.85rem;
  color: #6a6a75;
  font-style: italic;
}

/* Design ruling #1 (approved 22 Aug 2026): not-live features must be visible
   but muted, never styled in a way that reads as broken. Dashed borders read
   as an error state — replaced with a solid, thin border at higher opacity
   than before, plus a small explicit label instead of relying on styling
   alone to communicate "not yet available". */
.nav-member-link[data-not-live="true"] {
  border: 1px solid #3a3a45;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #a0a0ff;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #1a1a1f;
  padding: 3rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0a0b0;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: #a0a0b0;
}

.footer-col a:hover,
.footer-col a[aria-current="page"] {
  color: #e8e8ec;
}

.footer-col a[data-not-live="true"] {
  opacity: 0.85;
}

.footer-col p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #a0a0b0;
}

.footer-identity {
  max-width: 960px;
  margin: 2rem auto 0.5rem;
  font-size: 0.8rem;
  color: #a0a0b0;
}

.company-line {
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: #6a6a75;
}

/* ── Desktop: expand the nav, hide the mobile toggle chrome ──
   flex-wrap intentionally left at its default (wrap) here, not forced
   to nowrap — a forced nowrap with no escape route was the actual
   cause of a real clipping bug (27 Aug 2026): at in-between desktop
   widths, five nav items plus the divider could slightly exceed the
   available row width with nowhere to go, clipping the last item's
   trailing letters. Wrap gives a graceful two-line fallback instead
   of ever clipping content. */
@media (min-width: 880px) {
  .nav-toggle-wrap > summary.nav-toggle {
    display: none;
  }

  .nav-toggle-wrap {
    width: auto;
  }

  .nav-panel {
    padding-top: 0;
    padding-left: 22px;
    margin-left: 4px;
    border-left: 1px solid #2a2a35;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Reduced motion already handled globally in styles.css;
     nothing in this file introduces new animation. ── */
