.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.375rem;

  @include bp("tablet") {
    display: none;
  }
}

.menuButton {
  position: relative;
  cursor: pointer;
  height: 2rem;
  display: flex;
  align-items: center;
  color: var(--color-navy);

  svg {
    height: 100%;
  }
}

.wrapper {
  position: fixed;
  inset: 0;
  z-index: 15;
  background-color: var(--color-smoke);
}

.innerWrapper {
  width: 100%;
  height: 100%;
  padding: 0.625rem 0.4375rem;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 4.125rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border-radius: 1.25rem;
  background-color: var(--color-white);
  color: var(--color-navy);
}

.logo {
  width: auto;
  height: 1.5rem;
  margin-top: -0.4375rem;
  color: var(--color-cyan);
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2.375rem;

  a {
    display: inline-flex;
    align-items: center;
  }

  svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-navy);
  }

  .close-icon {
    height: 1.3125rem;
    cursor: pointer;
  }

  button {
    height: 2rem;
    display: flex;
    align-items: center;
  }
}

.navigationWrapper {
  max-height: 100%;
  overflow-y: scroll;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  list-style-type: none;
  font-family: var(--font-atyp-text);
  font-size: 1.125rem;
  line-height: 1.4;
  height: max-content;

  .label {
    display: flex;
    align-items: center;
    .dot {
      margin-right: 0.75rem;
    }
    .external {
      #icon-new-tab {
        color: var(--color-cyan);
      }
      margin-left: 0.5rem;
    }

    &:has(.external) .dot {
      visibility: hidden;
    }
  }
}

.menuItem,
.menuItem > a {
  height: max-content;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-height: 1.125rem;
  text-decoration: none;

  .dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: 1px solid var(--color-navy);
    transition: background-color 0.2s ease;
  }

  .external {
    width: 0.625rem;
    height: 0.625rem;
  }

  &.active {
    .dot {
      background-color: var(--color-navy);
    }

    .submenu {
      display: flex;
    }
  }
}

.submenu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  margin-top: 0.75rem;

  &.right {
    flex-direction: row;
    gap: 0.5rem;
  }
}

.submenu:not(.right) {
  .submenuItem {
    width: 100%;
  }
}

.submenuItem a {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.375rem;
  text-decoration: none;

  .external {
    width: 0.5rem;
    height: 0.5rem;
  }

  &.iconItem {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.375rem;
    background-color: var(--color-cyan);
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      width: 100%;
      height: auto;
    }
  }

  &:hover,
  &:focus {
    text-decoration: underline;
  }
}
