/* The nav (not pinned), as the hero's design draws it: the logo on the headline's left
   line (80 at 1440, scaling with the page like the hero), the links centred on the page,
   the download at the right. */
.nav { height: 88px; position: relative; z-index: 8; }
.nav-row { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 calc(80 * var(--u)); }
.nav-row .logo { justify-self: start; }
.nav-row .btn-sm { justify-self: end; }
.links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); text-decoration: none; }
.links a:hover { color: var(--ink); }
/* The page you are on: in ink, with a quiet ink rule under it. */
.links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu { display: none; }

@media (max-width: 1023.98px) {
  .nav { height: 64px; }
  .nav-row { display: flex; gap: 10px; }
  .links { display: none; }
  .nav-row .btn-sm { margin-left: auto; }
  .menu { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; padding: 0 10px; border: 0; background: none; cursor: pointer; }
  .menu i { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
  /* The open menu is a layer over the page: it ends on the kit's ground line. */
  .nav.is-open .links { display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; padding: 8px var(--m) 20px; background: var(--cream); border-bottom: 2px solid var(--ink); }
  .nav.is-open .links a { min-height: 48px; font-size: 18px; color: var(--ink); }
  /* Without JavaScript the button cannot open anything: show the links as a wrapped row instead. */
  html:not(.js) .nav { height: auto; padding: 10px 0 6px; }
  html:not(.js) .nav-row { flex-wrap: wrap; row-gap: 0; }
  html:not(.js) .menu { display: none; }
  html:not(.js) .links { display: flex; order: 4; width: 100%; flex-wrap: wrap; gap: 0 18px; margin: 0; font-size: 15px; }
}
/* Where the hero draws its phone layout (720 and less), the page's own margin. */
@media (max-width: 720px) {
  .nav-row { padding: 0 var(--m); }
}
