/* Site navigation. Uses the colour tokens each page defines on :root, so it follows
   the page's light and dark themes. Generated by Scripts/build_audit_site.py. */
.site-nav { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-nav-inner {
  max-width: var(--site-width, 880px); margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--ink); text-decoration: none; }
/* The mascot sits on a fixed light plate: its dark outline and hat would vanish on the dark-theme background. */
.site-mark { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fbf7ee; border: 1px solid var(--rule); display: grid; place-items: center; }
.site-mark svg { width: 42px; height: 42px; display: block; }
.site-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 14px; }
.site-links a { color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; padding: 1px 0; }
.site-links a:hover { color: var(--ink); }
.site-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
/* The X account, icon only, at the right end. The 3px padding makes a 24px tap target; the negative
   margin keeps the row's height and spacing as if the icon were 18px, and is 2px deeper on top so the
   icon centres on the text, which sits 2px above its own box's centre (the links' 2px underline). */
.site-links a.site-social { display: inline-flex; padding: 3px; margin: -5px -3px -1px; border-bottom: 0; }
.site-social svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 520px) {
  .site-brand { font-size: 18px; gap: 8px; }
  .site-mark { width: 42px; height: 42px; }
  .site-mark svg { width: 36px; height: 36px; }
}
