/* Layout styles - Navigation, header, breadcrumb, megamenu, mobile menu */

@media (min-width:75em) {
  div.hnf-breadcrumb {
    display: block
  }
}

.hnf-megamenu {
  display: none;
  order: 3
}

@media (min-width:75em) {
  .hnf-megamenu {
    display: block
  }
}

.hnf-megamenu__dropdown-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--hnf-megamenu-dropdown-top, 0);
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 400;
  pointer-events: none;
  color: rgb(var(--colour-text-and-icon-2, 72, 72, 72))
}

.hnf-megamenu__dropdown-wrapper .hnf-megamenu__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--colour-static-black, 17, 17, 17), 0.4)
}

@media (prefers-reduced-motion:no-preference) {
  .hnf-megamenu__dropdown-wrapper .hnf-megamenu__backdrop {
    transition: opacity cubic-bezier(0, 0, 1, 1) 200ms
  }
}

.hnf-megamenu__dropdown-wrapper--close .hnf-megamenu__backdrop {
  opacity: 0;
  animation: hnf-modalBackdropClose 200ms;
  visibility: hidden;
  pointer-events: none
}

@keyframes hnf-modalBackdropEnter {
  0% {
    visibility: hidden
  }

  1% {
    visibility: visible
  }
}

@keyframes hnf-modalBackdropClose {

  0%,
  99% {
    visibility: visible
  }

  100% {
    visibility: hidden
  }
}

.hnf-megamenu__entrypoints {
  max-width: 550px;
  display: flex;
  align-items: center
}

@media (min-width:1300px) {
  .hnf-megamenu__entrypoints {
    max-width: 650px
  }
}

@media (min-width:1400px) {
  .hnf-megamenu__entrypoints {
    max-width: 700px
  }
}

.hnf-megamenu__entrypoints .hnf-megamenu__entrypoint {
  display: block;
  padding: .75rem .625rem;
  text-align: center;
  white-space: nowrap
}

.hnf-megamenu__entrypoints .hnf-megamenu__entrypoint:last-of-type {
  overflow: hidden;
  text-overflow: ellipsis
}

@media (min-width:1300px) {
  .hnf-megamenu__entrypoints .hnf-megamenu__entrypoint {
    padding-inline: 1rem
  }
}

.hnf-megamenu__entrypoints .hnf-megamenu__entrypoint::after {
  display: block;
  content: attr(data-title);
  font-weight: 700;
  height: 0;
  visibility: hidden
}

@media (min-width:75em) {
  html[lang$=-US] .hnf-breadcrumb:not(.hnf-breadcrumb--footer) {
    margin-top: 0
  }
}

.hnf-mobile-menu__container {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  background-color: rgb(var(--colour-elevation-2, 255, 255, 255));
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 200ms 0s;
  transition-property: transform, visibility
}

@media (min-width:56.25em) {
  .hnf-mobile-menu__container {
    transition-property: transform, visibility, width;
    width: 30rem;
    inset-inline-start: auto
  }
}

.hnf-mobile-menu__container--hidden {
  transform: translateX(100%);
  visibility: hidden
}

.hnf-overlay {
  display: block;
  position: fixed;
  z-index: 300;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgb(var(--colour-static-black, 17, 17, 17));
  transition: all 200ms ease;
  opacity: 0;
  pointer-events: none
}
