/* =============================================================================
   NGA — the site header's navigation, on every page: the home page, /cross-promo/,
   /vision/, the docs (tools/build_docs.py's template) and the legal pages
   (tools/build_legal.py's template). Each page keeps its own header and brand
   mark; this adds the links on the right and the Sign up button. Loaded after
   the page's own stylesheet and reads its Signal tokens (--ink, --body,
   --signal, --signal-deep, --signal-ink), each with the Signal value as a
   fallback. Sign up stays at every width; below 640px the text links drop, so
   a 360px phone never scrolls sideways.
   ============================================================================= */

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.site-nav-link {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--body, #4A4F57);
  white-space: nowrap;
}
.site-nav-link:hover { color: var(--ink, #14161A); text-decoration: none; }
.site-nav-link[aria-current] { color: var(--ink, #14161A); }

/* The one primary action: brand green is a fill, its ink on top. */
.site-nav-signup {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--signal, oklch(0.72 0.17 152));
  color: var(--signal-ink, #08130f);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.site-nav-signup:hover { text-decoration: none; background: color-mix(in oklab, var(--signal, oklch(0.72 0.17 152)) 88%, #000); }

.site-nav a:focus-visible { outline: 2px solid var(--signal-deep, oklch(0.54 0.14 152)); outline-offset: 3px; border-radius: 6px; }
.site-nav-signup:focus-visible { border-radius: 999px; }

/* The docs' links are green by default; the header's are not. */
body.docs .site-nav-link { color: var(--body, #4A4F57); }
body.docs .site-nav-link:hover,
body.docs .site-nav-link[aria-current] { color: var(--ink, #14161A); text-decoration: none; }
body.docs .site-nav-signup,
body.docs .site-nav-signup:hover { color: var(--signal-ink, #08130f); text-decoration: none; }

@media (max-width: 639px) {
  .site-nav-link { display: none; }
  .site-nav-signup { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
}

@media print {
  .site-nav { display: none; }
}

/* ---------- Sign up in the page ----------
   The same action as the header's button, larger, where a page asks for it:
   under the home page's lede, and at the top and close of /cross-promo/. A
   secondary link may sit beside it. */
.signup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.signup-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--signal, oklch(0.72 0.17 152));
  color: var(--signal-ink, #08130f);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.signup-cta:hover { text-decoration: none; background: color-mix(in oklab, var(--signal, oklch(0.72 0.17 152)) 88%, #000); }
.signup-cta:focus-visible { outline: 2px solid var(--signal-deep, oklch(0.54 0.14 152)); outline-offset: 3px; }
.signup-alt {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--signal-deep, oklch(0.54 0.14 152));
}
