/* Shared persistent header. Keep after each page's styles so scene rules agree. */
:root { --site-header-height: 88px; }
html { scroll-padding-top: calc(var(--site-header-height) + 28px); }
.skip-link { z-index: 130; }
.site-header.masthead[data-site-header] {
  --header-rgb: 247, 245, 241;
  --header-foreground: #242127;
  --header-hover: rgba(36, 33, 39, .06);
  --header-rule: rgba(36, 33, 39, .12);
  position: sticky;
  top: 0;
  z-index: 120;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--site-header-height);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px max(54px, calc((100vw - 1252px) / 2));
  border: 0;
  background: transparent;
  color: var(--header-foreground);
  font-family: Helvetica, Arial, sans-serif;
}
.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  pointer-events: none;
  transition: background .24s ease, opacity .24s ease;
}
.site-header::before {
  inset: 0;
  background: rgb(var(--header-rgb));
}
.site-header::after {
  top: 100%;
  height: 28px;
  background: linear-gradient(to bottom, rgb(var(--header-rgb)), rgba(var(--header-rgb), 0));
}
.site-header[data-scrolled="true"]::before { box-shadow: 0 1px 0 var(--header-rule); }
.site-header.masthead[data-header-mode="immersive"] {
  --header-rgb: 6, 16, 27;
  --header-foreground: #f2f0e8;
  --header-hover: rgba(255, 255, 255, .09);
  --header-rule: rgba(255, 255, 255, .18);
  position: fixed;
  inset: 0 0 auto;
  padding-inline: 3.4vw;
}
.site-header[data-header-mode="immersive"]::before {
  content: none;
}
.site-header[data-header-mode="immersive"]::after {
  content: none;
}
html[data-theme="light"] .site-header[data-header-mode="immersive"] {
  --header-rgb: 247, 245, 241;
  --header-foreground: #172437;
  --header-hover: rgba(23, 36, 55, .07);
  --header-rule: rgba(23, 36, 55, .14);
}
.site-header .brand {
  display: block;
  width: 111px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
}
.site-header .brand img { display: block; width: 100%; height: 38px; object-fit: contain; }
.site-header[data-header-mode="immersive"] .brand img { filter: none; transition: filter .24s ease; }
html[data-theme="light"] .site-header[data-header-mode="immersive"] .brand img { filter: brightness(0); }
.site-header[data-header-mode="document"] .brand img { filter: none; }
.site-header .primary-nav { display: flex; align-items: center; gap: 56px; }
.site-header .platform-nav { position: relative; }
.site-header .primary-nav .platform-toggle,
.site-header .primary-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--header-foreground);
  font: 400 13px/1.3 Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .24s ease, background .15s ease;
}
.site-header .primary-nav .platform-toggle:hover,
.site-header .primary-nav .nav-link:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-header .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.site-header :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.site-header .nav-chevron { flex: none; transition: transform .18s ease; }
.site-header .platform-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.site-header .platform-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 2;
  width: 228px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - var(--site-header-height) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--header-rule);
  border-radius: 12px;
  list-style: none;
  background: rgb(var(--header-rgb));
  color: var(--header-foreground);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-header .platform-menu li { margin: 0; padding: 0; list-style: none; }
.site-header .platform-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 6px;
  color: inherit;
  font: 400 14px/1.4 Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .platform-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-header .platform-menu a[aria-current="page"] { background: var(--header-hover); }
.site-header .platform-nav[data-open="true"] .platform-menu,
.site-header:not([data-nav-enhanced]) .platform-nav:hover .platform-menu,
.site-header:not([data-nav-enhanced]) .platform-nav:focus-within .platform-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.legal-page .legal-index {
  top: calc(var(--site-header-height) + 24px);
  max-height: calc(100dvh - var(--site-header-height) - 48px);
}
@media (max-width: 1100px) {
  .site-header.masthead[data-site-header] { padding-inline: 34px; }
}
@media (max-width: 800px) {
  :root { --site-header-height: 72px; }
  .site-header.masthead[data-site-header] { gap: 16px; padding: 14px 22px; }
  .site-header .brand { width: 96px; }
  .site-header .brand img { width: 100%; height: 33px; }
  .site-header .primary-nav { gap: 24px; }
}
@media (max-width: 600px) {
  .site-header .platform-nav { position: static; }
  .site-header .primary-nav { gap: 16px; }
  .site-header .platform-menu { top: calc(var(--site-header-height) - 14px); right: 16px; width: 248px; }
}
@media (max-width: 420px) {
  .site-header.masthead[data-site-header] { gap: 8px; padding-inline: 12px; }
  .site-header .brand { width: 64px; }
  .site-header .brand img { height: 26px; }
  .site-header .primary-nav { gap: 6px; }
  .site-header .primary-nav .platform-toggle,
  .site-header .primary-nav .nav-link { gap: 4px; padding-inline: 4px; font-size: 12px; }
  .site-header .nav-chevron { width: 8px; height: 6px; }
  .site-header .platform-menu { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header::before, .site-header::after { transition: none !important; }
}
@media print { .site-header { display: none !important; } }
