:root {
  --site-header-height: 96px;
  --site-header-logo-width: 180px;
  --site-header-logo-max-height: 66px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(15, 39, 66, 0.12);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 39, 66, 0.055);
}

body.admin-bar .site-header {
  top: 32px;
}

:where([id]) {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}

body.admin-bar :where([id]) {
  scroll-margin-top: calc(var(--site-header-height) + 48px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto auto;
  align-items: center;
  max-width: var(--mkl-container);
  min-height: var(--site-header-height);
  margin: 0 auto;
  padding: 0 var(--mkl-gutter);
  column-gap: 30px;
}

.site-header__brand {
  display: inline-flex;
  width: var(--site-header-logo-width);
  max-width: 100%;
  height: var(--site-header-logo-max-height);
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  color: var(--mkl-color-primary);
  text-decoration: none;
}

.site-header__logo {
  width: var(--site-header-logo-width);
  max-width: none;
  height: auto;
  margin-top: -54px;
  margin-bottom: -54px;
  object-fit: contain;
}

.site-header__nav {
  justify-self: center;
  min-width: 0;
}

.site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.site-header__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mkl-color-primary);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, box-shadow 160ms ease;
}

.site-header__menu a:focus-visible,
.site-header__cta:focus-visible,
.site-header__brand:focus-visible,
.site-header__toggle:focus-visible {
  outline: 3px solid var(--mkl-color-secondary);
  outline-offset: 4px;
}

.site-header__menu a:hover,
.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a,
.site-header__menu .current-menu-ancestor > a {
  color: var(--mkl-color-secondary);
}

.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a {
  box-shadow: inset 0 -2px 0 currentColor;
}

.site-header__cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: #fff;
  background: var(--mkl-color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.site-header__cta:hover {
  background: #1e3a5f;
  transform: translateY(-1px);
}

.site-header__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 39, 66, 0.18);
  background: #fff;
}

.site-header__toggle-line,
.site-header__toggle-line::before,
.site-header__toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--mkl-color-primary);
  content: "";
}

.site-header__toggle-line::before {
  transform: translateY(-6px);
}

.site-header__toggle-line::after {
  transform: translateY(4px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar :where([id]) {
    scroll-margin-top: calc(var(--site-header-height) + 62px);
  }
}

@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: minmax(140px, 185px) minmax(0, 1fr) auto auto;
    column-gap: 20px;
  }

  .site-header__menu {
    gap: 18px;
  }

  .site-header__menu a {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .site-header__cta {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 1023px) {
  :root {
    --site-header-height: 84px;
    --site-header-logo-width: 155px;
    --site-header-logo-max-height: 60px;
  }

  .site-header__inner {
    grid-template-columns: minmax(135px, 170px) 1fr auto;
    column-gap: 18px;
  }

  .site-header__logo {
    margin-top: -48px;
    margin-bottom: -48px;
  }

  .site-header__nav {
    position: absolute;
    top: var(--site-header-height);
    right: var(--mkl-gutter);
    left: var(--mkl-gutter);
    display: none;
    justify-self: stretch;
    padding: 24px;
    border: 1px solid rgba(15, 39, 66, 0.14);
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 39, 66, 0.12);
  }

  .site-header.is-menu-open .site-header__nav {
    display: block;
  }

  .site-header__menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
    white-space: normal;
  }

  .site-header__menu a {
    min-height: 34px;
    font-size: 13px;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }
}

@media (max-width: 767px) {
  :root {
    --site-header-height: 74px;
    --site-header-logo-width: 135px;
    --site-header-logo-max-height: 54px;
  }

  .site-header__inner {
    grid-template-columns: minmax(118px, 1fr) auto;
    column-gap: 16px;
  }

  .site-header__logo {
    margin-top: -42px;
    margin-bottom: -42px;
  }

  .site-header__toggle {
    width: 44px;
    height: 44px;
  }

  .site-header__nav {
    right: var(--mkl-gutter);
    left: var(--mkl-gutter);
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__menu a,
  .site-header__cta {
    transition: none;
  }

  .site-header__cta:hover {
    transform: none;
  }
}