/* Shared header: homepage specifications, used by every brand/research page.
   Edit this file, then run python3 code/navigation/sync.py. */
:root { --header-height: 64px; }
html { scroll-padding-top: calc(var(--header-height) + var(--site-section-offset, 24px)); }
.site-header {
  --ink: #1d1d1f; --muted: #636660; --green: #087c5c;
  --page-pad: clamp(20px, 4vw, 80px); --ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: normal;
}
.site-header *, .nav-backdrop { box-sizing: border-box; }
.site-header [hidden], .nav-backdrop[hidden] { display: none !important; }
.site-header a { color: inherit; text-decoration: none; }
.site-header button, .site-header summary { font: inherit; cursor: pointer; }
.site-header :focus-visible { outline: 3px solid #4169db; outline-offset: 4px; }
.site-header .brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; font-size: 21px; line-height: 1; }
.site-header .brand-logo { display: block; width: 126px; height: auto; }
.site-header { position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 64px; padding: 0 var(--page-pad); background: rgba(255,255,255,.94); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); }
.site-header.scrolled { background: rgba(255,255,255,.96); }
.site-header .nav { display: flex; align-self: stretch; align-items: center; gap: 32px; margin-left: 36px; }
.site-header .nav-link { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; background: none; border: 0; text-decoration: none; font-size: 14px; }
.site-header .nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 20px; color: white; background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .18s ease; }
.site-header .nav-cta:hover { background: #393b37; }
@media (max-width: 900px) {
.site-header .nav { margin-left: 28px; gap: 18px; }
}
@media (max-width: 680px) {
.site-header { grid-template-columns: 1fr auto; gap: 4px 12px; padding-top: 10px; }
.site-header .nav { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 24px; }
.site-header .nav-cta { padding: 0 14px; font-size: 13px; }
.site-header .nav-link { flex-shrink: 0; font-size: 13px; }
}
.site-header .nav-chevron { position: absolute; right: -13px; opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.site-header .nav-link:hover, .site-header .nav-link[aria-expanded="true"] { color: var(--green); }
.site-header .nav-link:hover .nav-chevron, .site-header .nav-link:focus-visible .nav-chevron, .site-header .nav-link[aria-expanded="true"] .nav-chevron { opacity: 1; }
.site-header .nav-link[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.site-header.menu-open { background: white; border-bottom-color: transparent; }
.site-header .mega-menu { position: absolute; top: 100%; left: 0; right: 0; background: white; box-shadow: 0 18px 24px #00000006; border-bottom: 1px solid #e9eae6; max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.site-header .mega-inner { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 180px) minmax(0, 260px); justify-content: start; gap: 48px; margin: 0; padding: 34px var(--page-pad) 48px; animation: menu-in .24s var(--ease) both; }
.site-header .mega-label { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.site-header .mega-primary, .site-header .mega-link { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 42px; text-decoration: none; }
.site-header .mega-primary { font-size: clamp(21px, 2vw, 29px); line-height: 1.5; font-weight: 500; letter-spacing: -.035em; padding-block: 4px; }
.site-header .mega-link { font-size: 14px; }
.site-header .mega-primary span, .site-header .mega-link span { flex-shrink: 0; font-size: 15px; }
.site-header .mega-primary span { font-size: .65em; }
.site-header .mega-primary:hover, .site-header .mega-link:hover { color: var(--green); }
.site-header .mega-note { border-left: 1px solid #e7e9e3; padding-left: 32px; }
.site-header .note-dot { display: block; width: 12px; height: 12px; background: var(--green); border-radius: 50%; margin: 0 0 22px; }
.site-header .mega-note p { margin: 0 0 12px; font-size: 19px; font-weight: 500; }
.site-header .mega-note > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.9; }
.site-header .mega-statement { font-size: 24px; line-height: 1.6; letter-spacing: -.03em; margin: 0; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: #151c1826; backdrop-filter: blur(5px); animation: backdrop-in .2s ease both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
.site-header .mega-inner { gap: 24px; }
.site-header .mega-note { padding-left: 20px; }
.site-header .mega-primary { font-size: 22px; }
}
@media (max-width: 680px) {
.site-header { column-gap: 12px; }
.site-header .nav { justify-content: space-between; overflow: visible; gap: 10px; padding-block: 4px; }
.site-header .nav-link { font-size: 13px; }
.site-header .nav-chevron { opacity: .65; }
.site-header .mega-inner { grid-template-columns: 1fr; gap: 28px; padding: 22px var(--page-pad) 32px; }
.site-header .mega-label { margin-bottom: 10px; }
.site-header .mega-primary { font-size: 25px; }
.site-header .mega-note { padding: 20px 0 0; border-left: 0; border-top: 1px solid #e7e9e3; }
.site-header .note-dot { display: none; }
.site-header .mega-note p { font-size: 17px; }
.site-header .mega-note br { display: none; }
.site-header .mega-statement { font-size: 22px; }
}
.site-header .header-actions { display: flex; align-items: center; gap: 8px; }
.site-header .header-actions .nav-cta { min-width: 138px; min-height: 36px; background: #000; border-color: #000; }
.site-header .header-actions .nav-cta:hover { background: #303030; }
.site-header .nav-search { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; color: #717171; background: none; border: 0; }
.site-header .nav-search:hover { color: var(--ink); }
.site-header .login-menu { position: relative; }
.site-header .login-menu summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 96px; min-height: 36px; padding: 0 16px; list-style: none; cursor: pointer; background: #f5f5f5; border-radius: 999px; font-size: 14px; }
.site-header .login-menu summary::-webkit-details-marker { display: none; }
.site-header .login-menu summary:hover, .site-header .login-menu[open] summary { background: #ebebeb; }
.site-header .login-panel { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; padding: 8px; background: white; border: 1px solid #e8e8e8; border-radius: 16px; box-shadow: 0 8px 32px #00000012; }
.site-header .login-panel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.site-header .login-panel a:hover { background: #f5f5f5; }
@media (min-width: 1101px) {
.site-header { align-items: first baseline; align-content: center; }
.site-header .nav { align-self: first baseline; align-items: baseline; margin-left: 64px; gap: 56px; }
.site-header .nav > * { flex-shrink: 0; }
.site-header .nav-link { height: 44px; line-height: 20px; white-space: nowrap; }
.site-header .nav-search, .site-header .header-actions { align-self: center; }
}
@media (min-width: 681px) and (max-width: 1100px) {
.site-header { grid-template-columns: auto 1fr; gap: 0 20px; padding-top: 12px; }
.site-header .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
.site-header .nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; margin-left: 0; gap: 20px; }
}
@media (max-width: 680px) {
.site-header .header-actions { grid-column: 2; grid-row: 1; }
.site-header .header-actions .nav-cta { min-width: 0; padding-inline: 14px; }
.site-header .login-menu summary { min-width: 56px; padding-inline: 12px; font-size: 13px; }
.site-header .login-panel { position: fixed; top: 64px; left: 20px; right: 20px; }
.site-header .nav { gap: 0; }
.site-header .nav-link { gap: 0; font-size: 12px; }
.site-header .nav-chevron { display: none; }
.site-header .nav-search { width: 28px; }
}
.site-header { align-items: center; }
.site-header .nav { align-self: center; }
.site-header .nav-link { border-radius: 0; font-weight: 400; }
.site-header .nav-cta { white-space: nowrap; }
.site-header .nav-link[aria-current], .site-header .mega-menu a[aria-current] { color: var(--green); }
.site-header .mega-menu { top: calc(100% + 1px); max-height: calc(100dvh - var(--header-height) - 16px); }
.nav-backdrop { top: var(--header-height); }
@media (min-width: 681px) and (max-width: 1100px) { :root { --header-height: 101px; } }
@media (max-width: 680px) {
  :root { --header-height: 111px; }
  .site-header { --page-pad: 20px; }
  .site-header .nav-cta { font-size: 13px; }
}
@media (max-width: 380px) {
  .site-header { column-gap: 8px; }
  .site-header .brand-logo { width: 108px; }
  .site-header .header-actions .nav-cta { padding-inline: 10px; gap: 8px; }
  .site-header .login-menu summary { min-width: 52px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .nav-backdrop { animation: none !important; transition: none !important; }
}
