/* The site's shared header link and footer links (every page but the link pages in l/). Colors come from each page:
   the header link takes the header's text color, and the footer links take the footer's. */

/* The right end of the header: the Guide link, then (on the landing page) the App Store button. */
.nav-end { display: flex; align-items: center; gap: 18px; }
.nav-link { color: inherit; text-decoration: none; font-weight: 600; font-size: 16px; padding-block: 8px; border-radius: 6px;
  text-underline-offset: 4px; }
.nav-link[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { text-decoration: underline; } }
.nav-link:active { opacity: 0.75; }
.nav-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Footer links: one line with middle dots between them where all three fit, and one per line where they don't, so they
   never wrap unevenly. The footer's nav is the query container; 330px holds the three on one line, with the bold
   current link. */
nav:has(> .foot-links) { flex: 0 1 330px; container-type: inline-size; }
.foot-links { display: flex; justify-content: flex-end; gap: 0; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.foot-links li + li::before { content: "·"; padding-inline: 0.6em; }
@container (width < 330px) {
  .foot-links { flex-direction: column; gap: 6px; }
  .foot-links li + li::before { content: none; }
}
.foot-links a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { text-decoration: underline; } }
.foot-links a:active { opacity: 0.75; }
.foot-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.foot-links a[aria-current] { font-weight: 600; }
