/* ── The public shell ──────────────────────────────────────────────────────
   Nav and footer for every page a signed-out visitor can reach: the generated
   subject, level and resource pages, plus the hand-written privacy and terms
   pages.

   It exists because those two groups are built by different things — the
   generator writes its pages from `_html_doc`, while privacy.html and
   terms.html are static files — and each carried its own copy of the same
   nav and footer. A change to one silently left the other behind, which is
   how the public pages ended up with two different back links.

   Load order on a public page is tokens.css, components.css, then this.
   Nothing here declares a colour or a size of its own: they all come from
   tokens.css. */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface-raised);
  z-index: 100;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-lead);
  font-weight: 700;
  color: var(--text-accent);
  text-decoration: none;
  letter-spacing: -0.4px;
}
.nav-logo span { color: var(--text); }

/* The 44px minimum is the tap target, not the text size — the label stays
   small (CLAUDE.md §3). */
.nav-back {
  font-size: var(--fs-small);
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-back:hover { color: var(--text-accent-hover); }
.nav-back svg { flex-shrink: 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 4px;
  display: inline-block;
  padding: 14px 8px;
}
.footer-copy { margin-top: 12px; }

@media (max-width: 640px) {
  nav { padding: 0 16px; }
}
