/* Shared header dimensions and typography across the landing, Insights and legal pages. */
body.lively-site,
body.insights-page,
body.legal-page {
  --navigation-font-size: 15px;
  --site-brand-size: 25px;
  --site-header-height: 64px;
}
.site-header,
.site-header * {
  box-sizing: border-box;
}
.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 10;
  flex-shrink: 0;
  width: 100%;
  height: var(--site-header-height);
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(188, 207, 196, 0.12);
  background: #171e24;
  color: #fff9eb;
  box-shadow: none;
  font-family: 'Manrope', Arial, sans-serif;
  line-height: 1.4;
  text-align: left;
}
body.lively-site .site-header {
  position: fixed;
}
body.lively-site {
  --lively-header-height: var(--site-header-height);
}

/* Legal pages retain their existing document flow. */
body.legal-page .site-header {
  position: relative;
}
.site-header .site-header-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: calc(100% - 96px);
  max-width: 1480px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}
.site-header .site-brand {
  display: inline-flex;
  align-items: baseline;
  justify-self: start;
  flex-shrink: 0;
  width: max-content;
  margin: 0;
  color: #fff9eb;
  font-size: var(--site-brand-size);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.2px;
  text-decoration: none;
}
.site-header .site-brand::after {
  display: block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: #ed4e1c;
  content: '';
}
.site-header .site-header-nav,
.site-header .site-header-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header--landing .site-header-nav,
.site-header--landing .site-header-nav ul {
  gap: clamp(16px, 1.8vw, 28px);
}
.site-header .site-header-nav li {
  display: block;
  margin: 0;
  padding: 0;
}
.site-header .site-header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #d4dfd7;
  font-size: var(--navigation-font-size);
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .site-header-nav a:hover {
  color: #fff9eb;
}
.site-header .site-header-nav a.current {
  color: #bce5cf;
  text-decoration: underline;
  text-underline-offset: 7px;
}
.site-header .site-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  white-space: nowrap;
}
.site-header .site-header-sign-in,
.site-header .site-header-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  flex-shrink: 0;
  gap: 14px;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(188, 207, 196, 0.42);
  border-radius: 4px;
  background: transparent;
  color: #fff9eb;
  font-family: inherit;
  font-size: var(--navigation-font-size);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}
.site-header .site-header-sign-in {
  padding: 0;
  border: 0;
  color: #d4dfd7;
}
.site-header .site-header-action:hover {
  border-color: #ed4e1c;
  background: rgba(237, 78, 28, 0.08);
  color: #fff9eb;
  text-shadow: none;
}
.site-header .site-header-sign-in:hover {
  color: #fff9eb;
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid #bce5cf;
  outline-offset: 4px;
}
@media (min-width: 1800px) {
  body.lively-site,
  body.insights-page,
  body.legal-page {
    --navigation-font-size: var(--wide-nav-size, 17px);
  }
}
@media (max-width: 1100px) {
  body.lively-site,
  body.insights-page,
  body.legal-page {
    --site-header-height: 108px;
  }
  .site-header .site-header-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px 44px;
    gap: 0 12px;
  }
  .site-header .site-header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    justify-content: center;
    min-width: 0;
  }
  .site-header .site-header-nav ul {
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .site-header .site-header-actions,
  .site-header-layout > .site-header-action {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 800px) {
  .site-header .site-header-layout {
    width: calc(100% - 60px);
  }
}
@media (max-width: 620px) {
  body.lively-site,
  body.insights-page,
  body.legal-page {
    --navigation-font-size: 13px;
    --site-brand-size: 22px;
  }
  .site-header .site-header-layout {
    width: calc(100% - 44px);
  }
  .site-header .site-brand {
    letter-spacing: -1px;
  }
  .site-header .site-header-actions {
    gap: 12px;
  }
  .site-header .site-header-action {
    gap: 7px;
    padding-inline: 12px;
  }
  .site-header .site-header-nav,
  .site-header .site-header-nav ul {
    justify-content: space-between;
    gap: 6px;
  }
}
@media (max-width: 480px) {
  body.lively-site,
  body.insights-page,
  body.legal-page {
    --site-header-height: 144px;
  }
  .site-header .site-header-layout {
    grid-template-rows: 64px minmax(0, 1fr);
  }
  .site-header .site-header-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px;
    padding-bottom: 7px;
  }
  .site-header .site-header-nav a {
    min-height: 36px;
    justify-content: center;
  }
  .site-header--landing .site-header-nav {
    display: block;
    padding-bottom: 0;
  }
  .site-header--landing .site-header-nav ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
    padding-bottom: 7px;
  }
}

@media (max-width: 380px) {
  body.lively-site,
  body.insights-page,
  body.legal-page {
    --navigation-font-size: 12px;
    --site-brand-size: 20px;
  }
  .site-header--landing .site-header-nav {
    margin-inline: -12px;
  }
  .site-header--landing .site-header-nav ul {
    gap: 4px;
  }
  .site-header .site-header-actions {
    gap: 8px;
  }
  .site-header .site-header-action {
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .site-header-action {
    transition: none;
  }
}
