/* Shared header and navigation used by every public page. */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .site-nav {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-logo {
  display: block;
  width: 150px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334e68;
  font-size: 14px;
  font-weight: 750;
}

.site-navigation a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-navigation a:hover {
  color: #b77900;
}

.site-cta {
  flex: 0 0 auto;
}

.site-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.dark-mode .site-header {
  background: #182635;
  border-color: var(--line);
}

body.dark-mode .site-navigation {
  color: #f4b41a;
}

body.dark-mode .site-menu-toggle {
  color: #f4b41a;
  background: #182635;
  border-color: #34495c;
}

@media (max-width: 900px) {
  .site-header .site-nav > .site-cta {
    display: none;
  }

  .site-menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 100px 28px 40px;
    background: var(--deep);
  }

  .site-navigation.is-open {
    display: flex;
  }

  .site-navigation a {
    width: min(360px, 100%);
    padding: 14px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-size: 18px;
    text-align: center;
  }

  .site-navigation a:last-child {
    color: #102a43;
    background: #f4b41a;
    border: 0;
  }
}
