/* QuintEdge — Landing-page sticky section nav.
   Used by partials/landing-nav-{cfa,frm,acca,ib}.html.
   Pairs with js/qe-landing-nav.js. */

html.qe-has-lnav { scroll-padding-top: 146px; }

.qe-lnav {
  position: sticky;
  /* JS mirrors the topbar's current height into this CSS var so the lnav
     stays flush regardless of topbar's scrolled/un-scrolled state. */
  top: var(--qe-lnav-top, 64px);
  z-index: 990;
  background: #000000;
  /* Top border at ~12% white — visible enough to separate the lnav from
     the near-black section above it, but quiet enough to feel like a hairline
     rather than a hard divider. */
  border-top: 1px solid #ffffff1f;
  border-bottom: 1px solid #ffffff14;
}
.qe-lnav__inner {
  max-width: var(--mw, 1200px);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.qe-lnav__items-wrap {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
}
/* Right-edge soft black fade — only when items overflow AND we haven't
   scrolled to the end. JS toggles .qe-has-more via scroll/resize.
   The "scroll for more" cue comes from a brief JS-driven scroll-bump
   animation (see qe-landing-nav.js) when the nav first enters view —
   no persistent static icon overlay. */
.qe-lnav__items-wrap.qe-has-more::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  /* Stronger curve: 0%→30% is nearly transparent, then ramps to fully
     black so the rightmost item visibly dims rather than barely tinting. */
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .35) 30%,
    rgba(0, 0, 0, .85) 70%,
    #000 100%);
  z-index: 1;
}
.qe-lnav__items {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.qe-lnav__items::-webkit-scrollbar { display: none; }
.qe-lnav__item {
  color: rgba(255, 255, 255, 0.7);
  font-family: Poppins, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color .2s ease;
  background: transparent;
  border: 0;
  text-decoration: none;
  height: 100%;
}
.qe-lnav__item:hover { color: rgba(255, 255, 255, 0.92); }
.qe-lnav__item.is-active { color: #ffffff; }
.qe-lnav__item.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #00d4aa 0%, #9b8aff 35%, #ff6b6b 65%, #ffcc66 100%);
}
.qe-lnav__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0071e3;
  color: #ffffff;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.qe-lnav__cta:hover {
  transform: translateY(-1px);
  background: #0077ed;
  box-shadow: 0 6px 18px -4px rgba(0, 113, 227, 0.55);
}
.qe-lnav__cta-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.qe-lnav__cta:hover .qe-lnav__cta-icon { transform: translateX(2px); }
.qe-lnav__cta-arrow { font-size: 15px; line-height: 1; }

@media (max-width: 900px) {
  html.qe-has-lnav { scroll-padding-top: 130px; }
  .qe-lnav__inner { padding: 12px 16px; gap: 14px; }
  .qe-lnav__item { padding: 0 10px; gap: 5px; }
  .qe-lnav__item.is-active::after { left: 8px; right: 8px; }
  .qe-lnav__cta { font-size: 12px; padding: 5px 12px; }
}
@media (max-width: 600px) {
  /* Mobile: pin the Enroll CTA to the right edge of the lnav (anchored
     because it sits outside the .qe-lnav__items-wrap), and let the items
     list scroll horizontally beneath the right-edge fade. The CTA stays
     visible at all times so enrolment is always one tap away — even
     when the user scrolls deep into the items strip. */
  html.qe-has-lnav { scroll-padding-top: 110px; }
  .qe-lnav__inner { gap: 8px; padding: 10px 12px; }
  .qe-lnav__item { padding: 0 10px; }
  .qe-lnav__cta { font-size: 11.5px; padding: 5px 11px; }
  .qe-lnav__cta-icon { width: 11px; height: 11px; }
  /* Mobile: wider fade so the rightmost item visibly dims toward the
     Enroll pill, telegraphing "more sections to scroll". */
  .qe-lnav__items-wrap.qe-has-more::after { width: 64px; }
}
