/* Shared compact header + hero. Colors come from each page's theme variables. */
html { scroll-padding-top: 76px; }
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 0;
}
header.site .wrap {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  padding: 6px 0 8px !important;
}
header.site .logo,
header.site .logo.brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: -0.05em;
  margin: 0;
}
header.site .logo span,
header.site .logo.brand span {
  background: var(--sticker);
  color: var(--sticker-ink);
  border-radius: 999px;
  padding: 1px 8px 2px;
  font-size: .7rem;
  letter-spacing: 0.04em;
  margin-left: 4px;
  font-weight: 800;
}
header.site nav,
header.site .wrap > nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
header.site nav::-webkit-scrollbar { display: none; }
header.site nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  margin: 0;
  font-size: .82rem;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1.2;
}
header.site nav a:hover,
header.site nav a:focus-visible {
  color: var(--ink);
  background: var(--chip);
}
header.site nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--chip);
  font-weight: 800;
}
.hero { padding: 18px 0 10px; }
.hero p.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1, main h1, h1 {
  font-size: clamp(1.55rem, 6.2vw, 2.55rem);
  letter-spacing: -0.05em;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 900;
}
.hero-tease {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(0.88rem, 3.6vw, 1.06rem);
  letter-spacing: -0.03em;
  line-height: 1.4;
  word-break: keep-all;
}
.lead {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 38em;
}
#compare, #company-dashboard, #score, .prose { scroll-margin-top: 76px; }

/* Compact result notes + official-source fold */
.rank-short { margin: 8px 0 0; color: var(--muted); font-size: .86rem; font-weight: 650; word-break: keep-all; }
details.src { margin: 12px 0 0; }
details.src summary {
  cursor: pointer; font-weight: 800; font-size: .88rem; color: var(--accent);
  list-style: none;
}
details.src summary::-webkit-details-marker,
details.src summary::marker { display: none; }
details.src summary::after { content: " ▾"; font-weight: 700; }
details.src p, details.src li { font-size: .86rem; color: var(--muted); margin: 8px 0 0; word-break: keep-all; }
.age-tabs {
  display: flex; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  margin: 10px 0 4px; -webkit-overflow-scrolling: touch;
}
.age-tabs::-webkit-scrollbar { display: none; }
.age-tabs button {
  flex: 0 0 auto; border: 0; border-radius: 999px;
  padding: 6px 9px; font-size: .8rem; font-weight: 800;
  background: var(--chip); color: var(--ink);
}
.age-tabs button[aria-selected="true"] {
  background: var(--ink); color: var(--bg);
}
.bar-wrap { position: relative; margin: 12px 0 18px; padding-bottom: 16px; }
.bar-wrap .bar-track { margin: 0; }
.bar-mark {
  position: absolute; top: -3px; height: 22px;
  width: 2px; background: var(--ink); opacity: .85;
  transform: translateX(-1px); pointer-events: none;
}
.bar-mark span {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 800; color: var(--ink);
  white-space: nowrap; margin-top: 2px;
}
.score > .note.brief { margin-top: 10px; }
