/* One header contract for the static homepage and React pages. */
@font-face {
  font-family: "Nexus Header";
  src: url("/homepage/assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

html:has([data-site-header]) {
  --site-header-row: 88px;
  --site-header-height: calc(var(--site-header-row) + 1px);
  scrollbar-gutter: stable;
}

/* Specificity also isolates the legacy homepage's earlier header rules. */
:root body [data-site-header] {
  position: sticky;
  inset: 0 0 auto;
  z-index: 90;
  border-bottom: 1px solid #ffffff20;
  background: #051928;
  color: #f2f5f3;
  box-shadow: none;
  font: 400 16px/1.65 "Nexus Header", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
:root body [data-site-header="fixed"] { position: fixed; }
:root body [data-site-header] *,
:root body [data-site-header] *::before,
:root body [data-site-header] *::after { box-sizing: border-box; }
:root body [data-site-header] a { text-decoration: none; }
:root body [data-site-header] :is(a, button):focus-visible {
  outline: 2px solid #c2f078;
  outline-offset: 5px;
}
:root body [data-site-header] [data-site-header-inner] {
  width: min(1400px, calc(100% - clamp(24px, 4.4vw, 88px) * 2));
  height: var(--site-header-row);
  min-height: var(--site-header-row);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
:root body [data-site-header] [data-site-brand] {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  margin: 0;
}
:root body [data-site-header] [data-site-brand] img {
  display: block;
  width: 126px;
  height: auto;
  max-width: none;
}
:root body [data-site-header] [data-site-nav="desktop"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.8vw, 42px);
  margin: 0;
  padding: 0;
}
:root body [data-site-header] [data-site-link] {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0;
  border: 0;
  color: #bbcccf;
  font: 650 14px/1.65 "Nexus Header", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}
:root body [data-site-header] [data-site-link]:is(:hover, [aria-current]) { color: #f2f5f3; }
:root body [data-site-header] [data-site-link][aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 2px;
  border-radius: 2px;
  background: #92d60c;
}
:root body [data-site-header] [data-site-cta="header"] {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 258px;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 20px !important;
  border: 1px solid #657981;
  border-radius: 3px;
  background: transparent;
  color: #f2f5f3;
  font: 650 13px/1.45 "Nexus Header", sans-serif;
  font-size: 13px !important;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color .18s, border-color .18s;
}
:root body [data-site-header] [data-site-cta="header"]:hover { background: #173440; border-color: #92d60c; }
:root body [data-site-header] [data-site-cta] > span { color: #92d60c; font-size: 18px; line-height: 1; }
:root body [data-site-header] [data-site-menu-toggle] {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 90px;
  min-width: 90px;
  min-height: 46px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #657981;
  border-radius: 3px;
  background: transparent;
  color: #f2f5f3;
  font: 650 12px/1.65 "Nexus Header", sans-serif;
  cursor: pointer;
}
:root body [data-site-header] [data-site-menu-toggle] > span {
  display: inline-block;
  width: 16px;
  color: #92d60c;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  transition: transform .18s;
}
:root body [data-site-header] [data-site-menu-toggle][aria-expanded="true"] > span { transform: rotate(45deg); }
:root body [data-site-header] [data-site-nav="mobile"],
:root body [data-site-header] [data-site-nav="noscript"] { display: none; }
:root body [data-site-header] [hidden] { display: none !important; }

@media (max-width: 1023px) {
  :root body [data-site-header] [data-site-header-inner] { grid-template-columns: 1fr auto auto; }
  :root body [data-site-header] [data-site-nav="desktop"] { display: none; }
  :root body [data-site-header] [data-site-menu-toggle] { display: inline-flex; justify-self: end; }
  :root body [data-site-header] [data-site-nav="mobile"] {
    position: fixed;
    inset: var(--site-header-height) 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 16px clamp(24px, 4.4vw, 88px) 24px;
    max-height: calc(100svh - var(--site-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #051928;
    border-block: 1px solid #ffffff20;
    box-shadow: 0 18px 30px #0003;
  }
  :root body [data-site-header] [data-site-nav="mobile"] [data-site-link] {
    width: 100%;
    min-height: 50px;
    padding: 8px 0;
    border-bottom: 1px solid #ffffff20;
    font-size: 15px;
  }
  :root body [data-site-header] [data-site-nav="mobile"] [data-site-link]::after { display: none; }
  :root body [data-site-header] [data-site-cta="mobile"] {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin: 16px 0 0;
    padding: 13px 16px;
    border: 1px solid #92d60c;
    border-radius: 3px;
    background: #92d60c;
    color: #051928;
    font: 650 13px/1.45 "Nexus Header", sans-serif;
  }
  :root body [data-site-header] [data-site-cta="mobile"] > span { color: #051928; }
  :root body [data-site-header] [data-site-nav="noscript"] { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 8px 24px; }
}
@media (max-width: 760px) {
  html:has([data-site-header]) { --site-header-row: 72px; }
  :root body [data-site-header] [data-site-header-inner] { width: calc(100% - 48px); grid-template-columns: 1fr auto; gap: 16px; }
  :root body [data-site-header] [data-site-brand] img { width: 114px; }
  :root body [data-site-header] [data-site-cta="header"] { display: none; }
  :root body [data-site-header] [data-site-nav="mobile"] { grid-template-columns: 1fr; padding-inline: 24px; }
}

/* Native document navigation keeps the header still while the page changes. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  :root body [data-site-header] { view-transition-name: nexus-site-header; }
  ::view-transition-group(root),
  ::view-transition-group(nexus-site-header) { animation-duration: 0s; }
  ::view-transition-old(root) { animation: nexus-page-out 160ms ease-out both; }
  ::view-transition-new(root) { animation: nexus-page-in 160ms ease-out both; }
  ::view-transition-old(nexus-site-header) { animation: none; opacity: 0; }
  ::view-transition-new(nexus-site-header) { animation: none; mix-blend-mode: normal; }
  @keyframes nexus-page-out { to { opacity: 0; } }
  @keyframes nexus-page-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  :root body [data-site-header] * { transition: none; }
}
