/* ── SITE HEADER ──────────────────────────────────────────────────────────
   The ONE top bar of the site. Every page carries the identical SITE-HEADER
   markup block (index, help, legal pages, onboarding, purchase, thank-you,
   payment-failed, reset-password, 404, 500 — and the generated observatoire,
   see agents/agent3/observatoire.py SITE_HEADER). Behaviour (current page,
   logged-in state, scroll shadow) lives in site-header.js.
   nginx caches .css/.js 30 days: bump ?v= in every page on any change.
   ───────────────────────────────────────────────────────────────────────── */
.sh {
  position: sticky;
  top: 0;
  z-index: 100;
  align-self: stretch;          /* pages whose <body> is a centred flex column */
  background: #033A1F;
  font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.55;
  transition: box-shadow 0.3s ease;
}
.sh.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25); }
.sh-in {
  box-sizing: border-box;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.sh-logo { flex: none; display: flex; align-items: center; }
.sh-logo img { height: 26px; width: auto; display: block; transform: translateY(-2px); }
.sh-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sh-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: normal;
  padding: 6px 10px;
  border-radius: 4px;
}
.sh-links a:hover,
.sh-links a.on { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.sh-act { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sh-login {
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 400;
}
.sh-login:hover { color: #fff; text-decoration: none; }
.sh-cta {
  display: inline-block;
  white-space: nowrap;
  background: #10B981;
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 10px 18px;
  border-radius: 4px;
}
.sh-cta:hover { background: #0B9C67; color: #fff; text-decoration: none; }

/* Measured: logo + 4 links + actions need ~960 px. */
@media (max-width: 980px) { .sh-links { display: none; } }
@media (max-width: 480px) {
  .sh-in { gap: 12px; padding: 0 16px; }
  .sh-logo img { height: 22px; }
  .sh-login { display: none; }
  .sh-cta { padding: 8px 12px; font-size: 0.875rem; }
}
/* Smallest phones (≤ 360 px): logo + button must fit in 320 px. */
@media (max-width: 360px) {
  .sh-logo img { height: 18px; }
  .sh-cta { padding: 8px 10px; font-size: 0.8125rem; }
}
