/* ==========================================================================
   Page Sub Navigation
   Units: px | Layout: flex (no grid)
   Figma: 2100:3868
   ========================================================================== */

.lg-page-subnav {
  position: sticky;
  top: 0;
  z-index: 1010;
  background-color: #f8f8fa;
}

/* Hash fallback — JS sets --lg-page-subnav-scroll-pad on pages with subnav */
html:has(.lg-page-subnav) {
  scroll-padding-top: var(--lg-page-subnav-scroll-pad, 0);
}


.lg-page-subnav.has-stuck {
  box-shadow: 0 1px 0 #dfe1ef;
}

.lg-page-subnav__nav {
  width: 100%;
  /* box-shadow: 0 20px 20px rgba(0, 0, 0, 0.05); */
}

.lg-page-subnav__inner {
  width: 100%;
}

.lg-page-subnav__dropdown {
  width: 100%;
}

.lg-page-subnav__toggle {
  display: none;
}

.lg-page-subnav__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  padding-top: 14px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.lg-page-subnav__link {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: #5a5c76;
  font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.lg-page-subnav__link.is-active {
  color: #0835ff;
  border-bottom-color: #0027d6;
}

.lg-page-subnav__hint {
  margin: 12px 0;
  color: #5a5c76;
  font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

@media (min-width: 1200px) {
  .lg-page-subnav__link:hover {
    color: #0835ff;
    text-decoration: none;
  }
}

@media (max-width: 1199.98px) {
  .lg-page-subnav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: #0835ff;
    font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
  }

  .lg-page-subnav__toggle-label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .lg-page-subnav__toggle-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%230835ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
  }

  .lg-page-subnav__dropdown.is-open .lg-page-subnav__toggle-icon {
    transform: rotate(180deg);
  }

  .lg-page-subnav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-top: 0;
    padding-bottom: 8px;
    overflow: visible;
  }

  .lg-page-subnav__dropdown.is-open .lg-page-subnav__list {
    display: flex;
  }

  .lg-page-subnav__link {
    padding: 10px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .lg-page-subnav__link.is-active {
    border-bottom: 0;
    font-weight: 600;
  }
}

@media (max-width: 767.98px) {
  .lg-page-subnav__toggle {
    padding: 10px 0;
    font-size: 16px;
    line-height: 24px;
  }

  .lg-page-subnav__link {
    padding: 8px 0;
    font-size: 14px;
    line-height: 22px;
  }
  .lg-page-subnav__nav {
    position: relative;
    .lg-page-subnav__inner {
      .lg-page-subnav__dropdown {
        padding: 0 1.5rem;
      }
      position: relative;
      width: 100%;
      padding: 0;
      margin: 0 auto;
      max-width: 100%;
      .lg-page-subnav__list {
        position: absolute;
        left: 0;
        top: 43px;
        background-color: #fff;
        width: 100%;
        padding: 0 1.5rem;
        box-shadow: 0 20px 20px rgba(0, 0, 0, 0.05);
      }
    }
  }
}
