/* Shared site-header session chrome (2026-08-26 nav audit, HIGH item 2).
   Same rules as the inline .session-chip / .sign-in-link block in
   demo.html — that block is the source of truth; this file exists so the
   pages that never had the pattern render it identically. Pages keep
   their own design tokens (--teal / --navy / --muted) with safe
   fallbacks for the ones that do not define a token. */

/* ===== Header layout (2026-08-30): the full site-header chrome so any
   page linking this file renders the shared header identically — the
   layout rules previously lived inline per page, leaving new adopters
   (proposal-studio) with unstyled raw markup. Inline copies on existing
   pages are identical, so no conflict. ===== */
.site-header {
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: #fff;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a:not(.btn):not(.btn-coral):not(.session-chip-link) {
  color: var(--ink-muted, var(--muted, #475569));
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:not(.btn):not(.btn-coral):not(.session-chip-link):hover {
  color: var(--ink, #0F172A);
}
.logo { display: inline-flex; align-items: center; line-height: 0; overflow: visible; flex-shrink: 0; }
.logo img, .logo-img {
  display: block; height: 40px; width: auto; max-height: none;
  object-fit: contain; object-position: left center; overflow: visible;
}
a.logo { font-size: 0; color: transparent; }
@media (max-width: 860px) { .nav-links a.hide-mobile { display: none; } }

/* Header CTA fallback for pages without their own btn-coral token. */
.site-header .btn-coral, .site-header a.btn.btn-coral {
  background: var(--coral, var(--green, #298225));
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
}
.site-header .btn-coral:hover { background: var(--coral-light, var(--green-light, #1e6a1b)); }

.session-chip {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem;
  color: var(--muted, var(--ink-muted, #64748b));
  white-space: nowrap;
}
.session-chip.hidden { display: none; }
.session-chip .session-chip-email {
  max-width: 180px; overflow: hidden; text-overflow: ellipsis;
}
.session-chip a.session-chip-link,
.session-chip button.session-chip-link {
  color: var(--teal, var(--navy, #002344)); font-weight: 600; text-decoration: none;
}
.session-chip button.session-chip-link {
  background: transparent; border: 0; padding: 0;
  cursor: pointer; font: inherit;
}
.session-chip a.session-chip-link:hover,
.session-chip button.session-chip-link:hover { text-decoration: underline; }

.sign-in-link {
  background: transparent;
  border: 1px solid var(--teal, var(--navy, #002344));
  color: var(--teal, var(--navy, #002344));
  font-size: 0.82rem; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit;
  transition: background 0.15s;
}
.sign-in-link:hover { background: var(--teal-bg, #E8EEF4); }
.sign-in-link.hidden { display: none; }
