/* ── Site chrome for content pages ──────────────────────────────────
   Pro, Account, Share, About, Contact, Privacy, Terms. One header and
   one footer that match the landing nav (logo + Inter wordmark, the
   same six links, the indigo "Open chat" pill). Loaded after the page
   CSS and before theme-light.css. Taste pass 2026-09-25. */

:root {
  --sc-bg: #f7f6f3;
  --sc-text: #1d1d24;
  --sc-ink: #1d1d24;
  --sc-text-2: #4a4a55;
  --sc-muted: #66666f;
  --sc-line: #e6e4dd;
  --sc-accent: #5b6abf;
  --sc-accent-dark: #4a58a8;
}

[hidden] { display: none !important; }

/* theme-light paints every `header` as white glass; this header sits on
   the paper like the landing nav. */
body > .site-head, .site-head {
  background: rgba(247,246,243,.88) !important;
  border: 0 !important; border-bottom: 1px solid var(--sc-line) !important;
  backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important;
}
.site-head {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo . cta" "nav nav nav";
  align-items: center; gap: 4px 12px;
  padding: 10px 16px 0;
  font-family: "Geist", system-ui, sans-serif;
}
.site-logo {
  grid-area: logo;
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--sc-text); text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: -.01em;
}
.site-logo img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.site-logo .wm span { color: var(--sc-accent); }
.site-nav {
  grid-area: nav;
  display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 2px 10px 6px;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 6px 12px; border-radius: 999px;
  color: var(--sc-muted); text-decoration: none; font-size: 14px;
  transition: color .12s, background .12s;
}
.site-nav a[aria-current="page"] { color: var(--sc-text); background: rgba(29,29,36,.06); }
.site-actions { grid-area: cta; display: flex; align-items: center; gap: 6px; }
.site-account {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--sc-text-2); text-decoration: none;
}
.site-account[aria-current="page"] { color: var(--sc-text); background: rgba(29,29,36,.06); }
.site-account svg { width: 22px; height: 22px; fill: currentColor; }
.site-cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  min-height: 40px; padding: 8px 18px; border-radius: 999px;
  background: var(--sc-ink); color: #fbfaf7 !important; text-decoration: none;
  font-family: "Geist", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(29,29,36,.12), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .14s, box-shadow .14s, background .12s;
}
.site-cta:active { transform: scale(.98); }

@media (min-width: 861px) {
  .site-head {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav cta";
    padding: 12px 32px;
  }
  .site-nav { margin: 0; padding: 0; justify-content: center; overflow: visible; }
  .site-nav a { font-size: 13.5px; }
}

/* ── Footer ── */
/* theme-light paints every `footer` white; the footer sits on paper. */
body > .site-foot { background: transparent !important; }
.site-foot {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  padding: 24px 16px 32px; border-top: 1px solid var(--sc-line);
  font-family: "Geist", system-ui, sans-serif; font-size: 13px; color: var(--sc-muted);
}
.site-foot a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 4px;
  color: var(--sc-muted); text-decoration: none;
}
.site-foot a[aria-current="page"] { color: var(--sc-text); }
.site-foot .copy { margin-left: auto; }
@media (min-width: 861px) { .site-foot { padding: 24px 32px 36px; } }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .site-account:hover { color: var(--sc-text); background: rgba(29,29,36,.05); }
  .site-cta:hover { background: #33333d; }
  .site-foot a:hover { color: var(--sc-text); }
}
@media (prefers-reduced-motion: reduce) { .site-cta:active { transform: none; } }
