/* Structured Service section navigation — Theme 2.23.3 */
.msvc-section-nav__sentinel {
  display: block;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.msvc-section-nav {
  --msvc-service-nav-top: 72px;
  /* Fixed design height. Never bind layout size to the JS-measured outer height. */
  --msvc-service-nav-row-height: 58px;
  /* Runtime outer height used only for placeholders and anchor offsets. */
  --msvc-service-nav-height: 60px;
  position: sticky;
  top: clamp(0px, var(--msvc-service-nav-top), 160px);
  z-index: 960;
  width: 100%;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--medspa-border, #eae6e7);
  border-bottom: 1px solid var(--medspa-border, #eae6e7);
  box-shadow: 0 8px 22px rgba(28,26,30,.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .2s ease, background-color .2s ease;
}

/* JS-managed mode avoids the containing-block limit of position:sticky. */
.msvc-section-nav.is-managed {
  position: relative;
  top: auto;
}

.msvc-section-nav.is-managed.is-fixed {
  position: fixed;
  top: clamp(0px, var(--msvc-service-nav-top), 160px);
  right: 0;
  left: 0;
  width: 100%;
}

.msvc-section-nav.is-stuck {
  box-shadow: 0 12px 28px rgba(28,26,30,.12);
}

.msvc-section-nav__inner {
  width: min(100% - 36px, 1340px);
  min-height: var(--msvc-service-nav-row-height, 58px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.msvc-section-nav__viewport {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.msvc-section-nav__viewport::-webkit-scrollbar {
  display: none;
}

.msvc-section-nav__track {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 2px;
}

.msvc-section-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--medspa-text-light, #6b6668);
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--medspa-font, inherit);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.msvc-section-nav__link:hover,
.msvc-section-nav__link:focus-visible {
  color: var(--medspa-navy, #4a3b44);
  background: var(--medspa-bg-light, #f9f9f9);
  outline: none;
}

.msvc-section-nav__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(176,141,87,.24);
}

.msvc-section-nav__link.is-active {
  color: var(--medspa-navy, #4a3b44);
  background: #f7f0ea;
  border-color: rgba(176,141,87,.28);
}

.msvc-section-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--medspa-green, #b08d57);
}

.msvc-section-nav__control {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--medspa-border, #eae6e7);
  border-radius: 999px;
  background: #fff;
  color: var(--medspa-navy, #4a3b44);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background-color .18s ease, opacity .18s ease, border-color .18s ease;
}

.msvc-section-nav__control:hover,
.msvc-section-nav__control:focus-visible {
  background: #f7f0ea;
  border-color: rgba(176,141,87,.42);
  outline: none;
}

.msvc-section-nav__control:disabled {
  opacity: .32;
  cursor: default;
}

.msvc > section[id],
.msvc > .msvc-sec[id],
.msvc > .msvc-related-section[id],
.msvc > .msvc-reviews-section[id],
.msvc > .msvc-cta-section[id] {
  scroll-margin-top: calc(var(--msvc-service-nav-top, 72px) + var(--msvc-service-nav-height, 58px) + 18px);
}

@media (max-width: 767px) {
  .msvc-section-nav {
    --msvc-service-nav-row-height: 52px;
    --msvc-service-nav-height: 54px;
  }

  .msvc-section-nav__inner {
    width: 100%;
    padding: 0 12px;
    gap: 0;
  }

  .msvc-section-nav__track {
    gap: 3px;
    padding: 6px 0;
  }

  .msvc-section-nav__link {
    min-height: 36px;
    padding: 7px 11px;
    font-size: .8rem;
  }

  .msvc-section-nav__link.is-active::after {
    left: 11px;
    right: 11px;
  }

  .msvc-section-nav__control {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msvc-section-nav,
  .msvc-section-nav__link,
  .msvc-section-nav__control,
  .msvc-section-nav__viewport {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Zero-height targets added only when a section renderer omitted an ID. */
.msvc-section-anchor {
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  scroll-margin-top: calc(var(--msvc-service-nav-height, 64px) + 100px);
}
