.mhc-site-header,
.mhc-site-header * {
  box-sizing: border-box;
}

.mhc-site-header {
  width: 100%;
  min-height: 88px;
  padding: 14px clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid #dfe6dc;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #002244;
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.3;
}

.mhc-site-header__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0;
  background: #fff;
  color: #002244;
  text-decoration: none;
}

.mhc-site-header__brand img {
  display: block;
  width: 210px;
  height: auto;
  max-width: none;
}

.mhc-site-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 16px;
  font-weight: 700;
}

.mhc-site-header__nav a {
  color: #002244;
  text-decoration: none;
}

.mhc-site-header__home,
.mhc-site-header__trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mhc-site-header__home:hover,
.mhc-site-header__home:focus-visible,
.mhc-site-header__nav a[aria-current="page"] {
  color: #4f9620;
}

.mhc-site-header__group {
  position: relative;
}

.mhc-site-header__trigger {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #002244;
  font: inherit;
  cursor: pointer;
}

.mhc-site-header__trigger > span {
  font-size: 12px;
  transition: transform .18s ease;
}

.mhc-site-header__group:hover .mhc-site-header__trigger > span,
.mhc-site-header__group:focus-within .mhc-site-header__trigger > span,
.mhc-site-header__group.open .mhc-site-header__trigger > span {
  transform: rotate(180deg);
}

.mhc-site-header__submenu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 120;
  min-width: 250px;
  padding: 12px;
  display: grid;
  gap: 3px;
  border: 1px solid #dfe6dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 34, 68, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.mhc-site-header__group:hover .mhc-site-header__submenu,
.mhc-site-header__group:focus-within .mhc-site-header__submenu,
.mhc-site-header__group.open .mhc-site-header__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mhc-site-header__submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #002244;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.mhc-site-header__submenu a:hover,
.mhc-site-header__submenu a:focus-visible {
  background: #f3f7f0;
  color: #376d14;
}

.mhc-site-header__submenu--wide {
  left: auto;
  right: 0;
  width: min(720px, 86vw);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#mhc-resources-menu {
  left: auto;
  right: 0;
}

.mhc-site-header__submenu--wide a {
  white-space: normal;
}

.mhc-site-header__overview {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  border-bottom: 1px solid #dfe6dc;
  border-radius: 0 !important;
  font-weight: 800 !important;
}

.mhc-site-header__toggle {
  width: 48px;
  height: 44px;
  margin-left: auto;
  padding: 9px 10px;
  display: none;
  place-content: center;
  gap: 5px;
  border: 2px solid #002244;
  border-radius: 9px;
  background: #fff;
  color: #002244;
  cursor: pointer;
}

.mhc-site-header__toggle span {
  width: 24px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.mhc-site-header.menu-open .mhc-site-header__toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mhc-site-header.menu-open .mhc-site-header__toggle span:nth-child(2) {
  opacity: 0;
}

.mhc-site-header.menu-open .mhc-site-header__toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .mhc-site-header {
    min-height: 78px;
    padding: 11px 18px;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .mhc-site-header__brand img {
    width: 190px;
  }

  .mhc-site-header__toggle {
    display: grid;
  }

  .mhc-site-header__nav {
    width: 100%;
    margin: 0;
    padding: 8px 0 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    font-size: 16px;
  }

  .mhc-site-header.menu-open .mhc-site-header__nav {
    display: flex;
  }

  .mhc-site-header__home,
  .mhc-site-header__trigger {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 7px;
  }

  .mhc-site-header__home:hover,
  .mhc-site-header__home:focus-visible,
  .mhc-site-header__trigger:hover,
  .mhc-site-header__trigger:focus-visible {
    background: #f3f7f0;
  }

  .mhc-site-header__submenu,
  .mhc-site-header__submenu--wide {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 2px 0 8px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mhc-site-header__group:hover .mhc-site-header__submenu,
  .mhc-site-header__group:focus-within .mhc-site-header__submenu {
    display: none;
  }

  .mhc-site-header__group.open .mhc-site-header__submenu {
    display: grid;
  }
}

@media (max-width: 620px) {
  .mhc-site-header {
    position: relative;
  }

  .mhc-site-header__brand img {
    width: 170px;
  }

  .mhc-site-header__submenu,
  .mhc-site-header__submenu--wide {
    grid-template-columns: 1fr;
    max-height: 60vh;
    overflow: auto;
  }
}
