.subnav {
  z-index: 1002;
  /* set higher z-index than mt_engagement */
  background: #f9f9f9;
  border-bottom: solid 1px #cccccc;
  position: fixed;
  top: -170px;
  transition: top .6s;
  width: 100%;
}
.subnav.subnav--visible {
  top: 0;
}
.subnav .subnav__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  max-width: var(--desktop-content-width);
  margin: 0 auto;
  column-gap: 20px;
}
.subnav .subnav__current-location-label {
  grid-column-start: 1;
  grid-row-start: 1;
}
.subnav .subnav__current-location {
  grid-column-start: 2;
  grid-row-start: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.subnav .subnav__current-location,
.subnav .subnav__current-location-label {
  padding: 20px 0;
}
.subnav .subnav__current-location-label,
.subnav .subnav__current-location__text {
  font-size: 16px;
  line-height: 24px;
  font-weight: bold;
  color: #004494;
}
.subnav .MTArrow--down {
  border: solid #004494;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
  margin: 0 0 4px 20px;
}
.subnav .MTArrow--up {
  border: solid #004494;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
  transform: rotate(-135deg);
  margin: 4px 0 0 20px;
  display: none;
}
.subnav .subnav__menu {
  grid-row-start: 2;
  grid-column-start: 2;
  max-height: 0;
  overflow-y: scroll;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}
.subnav .subnav__menu::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}
.subnav nav {
  display: flex;
  gap: 20px;
  font-size: 16px;
  line-height: 24px;
  padding: 0 0 15px 0;
}
.subnav.subnav--open .MTArrow--down {
  display: none;
}
.subnav.subnav--open .MTArrow--up {
  display: inline-block;
}
.subnav.subnav--open .subnav__menu {
  animation-name: slide-subnav-down;
  animation-duration: .6s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}
.subnav.subnav--close .subnav__menu {
  animation-name: slide-subnav-up;
  animation-duration: .6s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.subnav ul {
  list-style-image: none !important;
  list-style-type: none;
  padding: 0;
}
.subnav ul a:hover {
  color: #004494 !important;
}
.subnav ul li {
  margin: 10px 0;
  padding: 0;
}
.subnav ul li:first-child {
  margin-top: 0;
  padding-top: 0;
}
.subnav ul li a {
  color: #666666;
  font-size: 16px;
  line-height: 24px;
}
.subnav ul li.active a {
  color: #004494;
}
.subnav ul li.chapter a,
.subnav ul li.subchapter a {
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
}
.subnav ul li.chapter {
  padding: 0;
}
.subnav ul li.subchapter {
  padding: 0 0 0 20px;
}
.subnav ul li.section a {
  font-weight: 700;
  display: inline-block;
  position: relative;
}
.subnav ul li.sectionChild:not(.active) {
  display: none;
}
.subnav.stick {
  position: -webkit-sticky;
  position: sticky;
}
.subnav.stick nav {
  top: 0 !important;
}
.subnav:has(nav ul:empty) nav {
  display: none;
}
.subnav__overlay {
  width: 100vw;
  height: 0;
  background: black;
  position: absolute;
  z-index: 102;
  top: 0;
  bottom: 0;
}
.subnav--open ~ .subnav__overlay {
  height: 100vh;
  animation-name: turn-on-subnav-overlay;
  animation-duration: .6s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.subnav--close ~ .subnav__overlay {
  animation-name: turn-off-subnav-overlay;
  animation-duration: .6s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.subNavAnchor {
  scroll-margin-top: 100px;
}
.mt_direction_right_to_left .subnav .MTArrow--down {
  margin: 0 20px 4px 0;
}
.mt_direction_right_to_left .subnav .MTArrow--up {
  margin: 4px 20px 0 0;
}
@keyframes slide-subnav-down {
  from {
    max-height: 0;
  }
  to {
    max-height: calc(100vh - 100px);
  }
}
@keyframes slide-subnav-up {
  from {
    max-height: calc(100vh - 100px);
  }
  to {
    max-height: 0;
  }
}
@keyframes turn-on-subnav-overlay {
  from {
    opacity: 0;
  }
  to {
    opacity: .25;
  }
}
@keyframes turn-off-subnav-overlay {
  from {
    opacity: .25;
    height: 100vh;
  }
  to {
    opacity: 0;
    height: 0;
  }
}
@media (max-width: 1009px) {
  .subnav .subnav__grid {
    margin: 0 20px;
  }
}
@media (max-width: 480px) {
  .subnav .subnav__grid {
    column-gap: 0;
  }
  .subnav .subnav__current-location-label {
    display: none;
  }
  .subnav.subnav--open .subnav__menu {
    animation-duration: .4s;
  }
  .subnav.subnav--close .subnav__menu {
    animation-duration: .4s;
  }
  .subnav--open ~ .subnav__overlay,
  .subnav--close ~ .subnav__overlay {
    animation-duration: .4s;
  }
}
