/* Shared nav / footer / brand chrome for every public-site page.
   The markup is stamped from scripts/public_site_partials/ by scripts/stamp_public_site.py;
   this file is the only place its styling lives. Design tokens (:root) stay per page --
   this stylesheet only consumes them, so a page that forgets a token degrades visibly. */

:root { --site-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }

/* Brand */
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--site-sans); font-size: 17px; font-weight: 600;
  letter-spacing: normal; line-height: 1.55;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }

/* Nav */
.nav { height: 64px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 400; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Buttons. Both class shapes are load-bearing: the nav stamps `btn btn-*-sm`, page heroes
   use the bare `.btn-primary` / `.btn-ghost`, so the base rule has to cover both. */
.btn, .btn-primary, .btn-ghost {
  display: inline-block; font-family: var(--site-sans);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 12px 22px; border-radius: var(--radius-pill);
  white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--coral); color: #fff; border: 1px solid var(--coral); }
.btn-primary:hover { background: var(--coral-ink); border-color: var(--coral-ink); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 24px; padding: 40px 0 56px;
  font-size: 14.5px; color: var(--ink-3);
}
.brand-sm {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--site-sans); font-weight: 600;
  letter-spacing: normal; line-height: 1.55; color: var(--ink);
}
.brand-sm img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.site-footer p { margin: 12px 0 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 560px) { .btn, .btn-primary, .btn-ghost { padding: 10px 16px; font-size: 14px; } }
@media (max-width: 420px) {
  .nav { gap: 10px; }
  .nav-cta { gap: 8px; }
  .btn-sm { padding: 8px 13px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand, .nav-links a, .btn, .btn-primary, .btn-ghost, .site-footer a { transition: none; }
}
