/* One breakpoint keeps the disclosure button, panel and header in sync. */
.site-header {
  height: 92px;
  z-index: 31;
  mix-blend-mode: normal;
}

.mobile-nav,
.mobile-nav[hidden] {
  display: none !important;
}

.menu-toggle {
  display: none;
}

@media (max-width: 767px) {
  .site-header {
    height: 78px;
    padding-inline: 6%;
    gap: 16px;
  }

  .site-header > nav,
  .site-header .header-contact {
    display: none;
  }

  .site-header .menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    flex: 0 0 2px;
    background: #eef4f7;
    transform-origin: center;
  }

  .menu-toggle[aria-expanded="true"] {
    background: #14232c;
    border-color: #344b58;
  }

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

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

  .mobile-nav:not([hidden]) {
    display: flex !important;
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    z-index: 30;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 16px 6% 22px;
    max-height: calc(100svh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0a1117;
    border-top: 1px solid #ffffff12;
    border-bottom: 1px solid #354651;
    box-shadow: 0 20px 35px #0008;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 4px;
    border-bottom: 1px solid #253640;
    color: #edf4f7;
    font-size: 15px;
    line-height: 1.5;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    color: #8ce0ff;
  }
}
