/* Reserve the original 140px header row within the current hero grid. */
.home-nav-slot {
  height: 128px;
}

@media (max-width: 600px) {
  .home-nav-slot {
    height: 112px;
  }
}

.anasa-home-nav.navigation.w-nav {
  overflow-x: clip;
}

.anasa-home-nav .brand-8.blackout {
  cursor: default;
}

/* Retain the two source shortcut columns so the replacement stays in Team's slot. */
.anasa-home-nav .home-about.menu-link.white {
  padding-inline: 0;
  transform: none;
}

.anasa-home-nav .home-about > span {
  display: block;
  position: relative;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  white-space: nowrap;
}

.anasa-home-nav .home-about:focus-visible > span {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.anasa-home-nav .support .column-40[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.anasa-home-nav .home-nav-side {
  display: contents;
}

.anasa-home-nav .home-nav-row .home-about-desktop {
  display: none;
}

@media (min-width: 992px) {
  .anasa-home-nav > .navigation.w-container {
    position: absolute;
    inset: 0;
    display: block;
    width: min(calc(100% - 40px), 1280px);
    max-width: none;
    height: 140px;
    margin: 0 auto;
    padding: 0;
  }

  .anasa-home-nav .menu-group.white {
    position: absolute;
    inset: auto 0 30px;
    display: block;
    width: auto;
    height: auto;
  }

  .anasa-home-nav .menu-group .home-nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 147px minmax(0, 1fr);
    margin: 0;
  }

  .anasa-home-nav .home-nav-row::before,
  .anasa-home-nav .home-nav-row::after {
    display: none;
  }

  .anasa-home-nav .home-nav-side {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 8px;
  }

  .anasa-home-nav .home-nav-right {
    grid-column: 3;
  }

  .anasa-home-nav .home-nav-side > .w-col {
    float: none;
    width: auto;
    min-height: 0;
    padding: 0;
  }

  .anasa-home-nav .home-nav-row .menu-link {
    width: max-content;
    margin: 0;
    padding-inline: 0;
    white-space: nowrap;
    transform: none;
  }

  .anasa-home-nav .home-nav-row .menu-link.w--current {
    width: 80px;
  }

  .anasa-home-nav .home-nav-row .home-about-desktop {
    display: flex;
    text-decoration: none;
  }

  .anasa-home-nav .brand-8.blackout {
    position: absolute;
    inset: 7.625px auto auto 50%;
    width: 115px;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
  }

  .anasa-home-nav .support.white {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1055px) {
  .anasa-home-nav .home-nav-row .menu-link:not(.w--current) {
    font-size: 14.5px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* The trial's open toggle moves over the logo. Keep the original closed position. */
  .anasa-home-nav .menu-mobile.white.w--open {
    position: absolute;
  }

  .anasa-home-nav .menu-group .home-nav-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 12px;
    margin: 0;
    padding-inline: 16px;
  }

  .anasa-home-nav .home-nav-row::before,
  .anasa-home-nav .home-nav-row::after {
    display: none;
  }

  .anasa-home-nav .home-nav-side > .w-col {
    display: flex;
    justify-content: center;
    width: auto;
    padding: 0;
  }

  .anasa-home-nav .home-nav-row .menu-link {
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    text-align: center;
    text-wrap: balance;
    transform: none;
  }

  .anasa-home-nav .home-nav-row .menu-link.w--current {
    width: 80px;
  }

  .anasa-home-nav .home-about > span {
    left: auto;
    transform: none;
  }
}

@media (max-width: 991px) {
  .anasa-home-nav .menu-group[data-nav-menu-open] {
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
  }
}

@media (max-width: 767px) {
  .anasa-home-nav .home-nav-row .menu-link:not(.home-about-desktop) {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .anasa-home-nav .support.white {
    left: clamp(30px, calc(30px + (100vw - 480px) / 4), 60px);
  }
}

@media (max-width: 350px) {
  .anasa-home-nav .home-about > span {
    left: calc(50% + (350px - 100vw) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anasa-home-nav .w-nav-menu {
    transition: none !important;
  }
}
