/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * Secondary navigation styling.
 */

/*
 * Media query breakpoints.
 * Processed by postcss/postcss-custom-media.
 */

/* Navigation related breakpoints */

/* Grid related breakpoints */

/* Grid shifts from 6 to 14 columns. */

/* Width of the entire grid maxes out. */

.secondary-nav {
  letter-spacing: 0.02em;
  font-size: var(--font-size-s);
  font-weight: 600;
}

[dir="ltr"] .secondary-nav__menu {
  margin-left: 0;
}

[dir="rtl"] .secondary-nav__menu {
  margin-right: 0;
}

[dir="ltr"] .secondary-nav__menu {
  margin-right: 0;
}

[dir="rtl"] .secondary-nav__menu {
  margin-left: 0;
}

[dir="ltr"] .secondary-nav__menu {
  padding-left: 0;
}

[dir="rtl"] .secondary-nav__menu {
  padding-right: 0;
}

[dir="ltr"] .secondary-nav__menu {
  padding-right: 0;
}

[dir="rtl"] .secondary-nav__menu {
  padding-left: 0;
}

.secondary-nav__menu {
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
}

.secondary-nav__menu-item {
  /* Parent element is set to flex-basis: 0. We
   * don't want text to wrap unless it goes over a
   * certain arbitrary width.
   */

  /* @todo should this be scoped to desktop nav? */
  width: max-content;
  max-width: 12.5rem
}

[dir="ltr"] .secondary-nav__menu-item:not(:last-child) {
    margin-right: var(--sp1-5);
}

[dir="rtl"] .secondary-nav__menu-item:not(:last-child) {
    margin-left: var(--sp1-5);
}

.secondary-nav__menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--sp2);
  text-decoration: none;
  color: inherit
}

.secondary-nav__menu-link:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    content: "";
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(0.3125rem);
    opacity: 0;
    /* Intentionally not using CSS logical properties. */
    border-top: solid 2px currentColor;
  }

.secondary-nav__menu-link:hover:after {
      transform: translateY(0);
      opacity: 0.8;
    }

@media (min-width: 75rem) {
    [dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav {
      margin-left: var(--sp);
  }
    [dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav {
      margin-right: var(--sp);
  }
    [dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav {
      padding-left: var(--sp2);
  }
    [dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav {
      padding-right: var(--sp2);
  }
    body:not(.is-always-mobile-nav) .secondary-nav {
      position: relative;
      display: flex
    }

      [dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav:before {
        left: 0;
  }

      [dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav:before {
        right: 0;
  }

      body:not(.is-always-mobile-nav) .secondary-nav:before {
        position: absolute;
        top: 50%;
        width: 2px;
        height: var(--sp2);
        content: "";
        transform: translateY(-50%);
        background-color: var(--color--gray-90);
      }

    [dir="ltr"] body:not(.is-always-mobile-nav) .secondary-nav__menu-item:not(:last-child) {
      margin-right: var(--sp2);
  }

    [dir="rtl"] body:not(.is-always-mobile-nav) .secondary-nav__menu-item:not(:last-child) {
      margin-left: var(--sp2);
  }
      body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus {
        position: relative;
        outline: 0
      }

        body:not(.is-always-mobile-nav) .secondary-nav__menu-link:focus:before {
          position: absolute;
          top: 50%;
          left: 50%;
          width: calc(100% + var(--sp));
          height: var(--sp3);
          content: "";
          transform: translate(-50%, -50%);
          border: solid 2px var(--color--primary-50);
          border-radius: 0.25rem;
        }
  }
