/*
 * site-nav.css - the site-wide top navigation bar built by site-nav.js.
 *
 * Reuses the shared design tokens so it sits on the same palette as the footer
 * and carries no colour of its own. Requires shared/tokens.css.
 *
 * Layout is a flex row: the brand home on the left, an optional page slot in
 * the middle (a page's own title, meta line and buttons, moved in unchanged),
 * and the global item list on the right. The item for the current page renders
 * as plain muted text; a primary item (the survey call to action, shown only
 * when there is no profile yet) is an orange pill.
 *
 * Hard rule: zero em or en dashes anywhere in this file. Hyphens only.
 */

.hv-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 12px var(--hv-chrome-pad-x);
  /* The same navy the home page's dark bands sit on, so the bar and the page
     read as one surface rather than two blues. */
  background: var(--hv-navy-950);
  border-bottom: 1px solid var(--hv-line-soft);
  font-family: var(--hv-font-body);
  position: sticky;
  top: 0;
  z-index: 20;
}

.hv-nav__home {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--hv-font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--hv-ink);
  text-decoration: none;
  white-space: nowrap;
}
.hv-nav__home:hover,
.hv-nav__home:focus-visible { color: var(--hv-orange); outline: none; }

/* The brand mark beside the wordmark. Its fills are its own (white and the
   mark's warmer orange), so the hover colour reaches only the wordmark. */
.hv-nav__mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}

/* The page's own middle content (title, beta badge, meta line, buttons). It
   grows to take the space between the brand and the items; min-width 0 lets a
   long meta line truncate rather than shove the items off the bar. The page's
   own stylesheet still styles what is inside it. */
.hv-nav__slot {
  flex: 1 1 auto;
  min-width: 0;
}

.hv-nav__items {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hv-nav__item {
  font-size: 14px;
  font-weight: 600;
  color: var(--hv-ink-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--hv-radius-pill);
  white-space: nowrap;
  transition: color var(--hv-transition), background var(--hv-transition);
}
.hv-nav__item:hover,
.hv-nav__item:focus-visible { color: var(--hv-ink); outline: none; }

/* The page you are on: plain, not a link, and clearly the current place. */
.hv-nav__item.is-current {
  color: var(--hv-ink);
  cursor: default;
}

/* The survey call to action, shown only when there is no profile. */
.hv-nav__item--primary {
  color: var(--hv-ink);
  background: var(--hv-orange);
}
.hv-nav__item--primary:hover,
.hv-nav__item--primary:focus-visible {
  color: var(--hv-ink);
  filter: brightness(1.06);
}

@media (max-width: 720px) {
  .hv-nav { padding: 10px var(--hv-chrome-pad-x); gap: 12px; flex-wrap: wrap; }
  .hv-nav__home { font-size: 16px; }
  .hv-nav__slot { order: 3; flex-basis: 100%; }
  .hv-nav__item { font-size: 13px; padding: 7px 10px; }
}
