.icepro-article-nav[hidden] {
  display: none !important;
}

.icepro-article-nav {
  --icepro-an-pink: #ff4f93;
  --icepro-an-pink-soft: rgba(255, 79, 147, 0.115);
  --icepro-an-lilac: #d5b4ff;
  position: sticky;
  top: 86px;
  z-index: 8;
  margin-bottom: 20px;
  padding: 14px 13px 13px;
  overflow: hidden;
  border: 1px solid rgba(31, 40, 55, 0.035);
  border-radius: 14px;
  background: var(--main-bg-color, #fff);
  box-shadow: 0 8px 24px rgba(32, 42, 57, 0.055);
}

.icepro-article-nav__custom-host {
  position: sticky;
  top: 86px;
  z-index: 8;
}

.icepro-article-nav__custom-host .icepro-article-nav {
  position: relative;
  top: auto;
  z-index: auto;
}

.icepro-article-sidebar-stack {
  --icepro-article-stack-visible-top: 86px;
  --icepro-article-stack-hidden-top: 18px;
  --icepro-article-stack-top: var(--icepro-article-stack-visible-top);
  --icepro-article-stack-glass-gap: 18px;
  position: sticky;
  top: var(--icepro-article-stack-top);
  z-index: 8;
  display: block;
  max-height: calc(100vh - var(--icepro-article-stack-top) - 20px);
  max-height: calc(100dvh - var(--icepro-article-stack-top) - 20px);
  margin-bottom: 20px;
  overflow: visible;
  border-radius: 14px;
  background: var(--body-bg-color, #f5f6f8);
  background: color-mix(in srgb, var(--body-bg-color, #f5f6f8) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.12) blur(18px);
  backdrop-filter: saturate(1.12) blur(18px);
  isolation: isolate;
  transition: top 0.15s ease, max-height 0.15s ease;
}

.icepro-article-sidebar-stack__glass-cap {
  position: absolute;
  top: calc(0px - var(--icepro-article-stack-glass-gap));
  right: 0;
  left: 0;
  z-index: 0;
  height: calc(var(--icepro-article-stack-glass-gap) + 1px);
  background: var(--body-bg-color, #f5f6f8);
  background: color-mix(in srgb, var(--body-bg-color, #f5f6f8) 94%, transparent);
  content: "";
  pointer-events: none;
  -webkit-backdrop-filter: saturate(1.12) blur(18px);
  backdrop-filter: saturate(1.12) blur(18px);
}

.scroll-down.nav-fixed .icepro-article-sidebar-stack.is-header-scroll-linked {
  --icepro-article-stack-top: var(--icepro-article-stack-hidden-top);
}

.icepro-article-sidebar-stack::before,
.icepro-article-sidebar-stack::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 3;
  height: 24px;
  opacity: 0;
  content: "";
  pointer-events: none;
  transition: opacity 0.18s ease;
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  backdrop-filter: blur(6px) saturate(1.05);
}

.icepro-article-sidebar-stack::before {
  top: 0;
  background: linear-gradient(to bottom, var(--body-bg-color, #f5f6f8) 0%, transparent 100%);
}

.icepro-article-sidebar-stack::after {
  bottom: 0;
  background: linear-gradient(to top, var(--body-bg-color, #f5f6f8) 0%, transparent 100%);
}

.icepro-article-sidebar-stack.is-scrollable:not(.is-scroll-start)::before,
.icepro-article-sidebar-stack.is-scrollable:not(.is-scroll-end)::after {
  opacity: 1;
}

.icepro-article-sidebar-stack__viewport {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.icepro-article-sidebar-stack__viewport::-webkit-scrollbar {
  display: none;
}

.icepro-article-sidebar-stack__viewport:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-color, #ff4f93) 35%, transparent);
  outline-offset: 3px;
}

.icepro-article-sidebar-stack__viewport > * {
  min-width: 0;
  flex: 0 0 auto;
}

.icepro-article-sidebar-stack__viewport > .widget-container,
.icepro-article-sidebar-stack__viewport > .icepro-quick-links,
.icepro-article-sidebar-stack__viewport > .icepro-article-nav,
.icepro-article-sidebar-stack .icepro-article-nav__custom-host,
.icepro-article-sidebar-stack .icepro-quick-links,
.icepro-article-sidebar-stack .icepro-article-nav {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.icepro-article-sidebar-stack .icepro-article-nav__custom-host,
.icepro-article-sidebar-stack .icepro-article-nav {
  position: relative;
  top: auto;
  z-index: auto;
}

@media (min-width: 992px) {
  .sidebar.icepro-article-sidebar--stacked {
    min-height: var(--icepro-article-sidebar-boundary-height, 0);
  }

  .icepro-article-sidebar-stack__viewport > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

.icepro-article-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22.5px;
  padding: 0 5px;
}

.icepro-article-nav__head h3 {
  margin: 0;
}

.icepro-article-nav__counter {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.icepro-article-nav__progress {
  position: relative;
  height: 4px;
  margin: 9px 3px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(190, 177, 218, 0.17);
}

.icepro-article-nav__progress > span {
  display: block;
  width: var(--icepro-article-nav-progress, 16.667%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--icepro-an-pink), var(--icepro-an-lilac));
  box-shadow: 0 0 9px rgba(255, 79, 147, 0.24);
  transition: width 0.25s ease;
}

.icepro-article-nav__viewport {
  /* The complete sidebar (or mobile menu) owns scrolling. */
  max-height: none;
  overflow: visible;
}

.icepro-article-nav__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.icepro-article-nav__list::before {
  position: absolute;
  top: 17px;
  bottom: 12px;
  left: 16px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 79, 147, 0.42), rgba(178, 184, 195, 0.66) 36%, rgba(213, 180, 255, 0.48));
  content: "";
  pointer-events: none;
}

.icepro-article-nav__list::after {
  position: absolute;
  bottom: 5px;
  left: 16px;
  width: 8px;
  height: 7px;
  border-bottom: 1px solid rgba(255, 79, 147, 0.45);
  border-left: 1px solid rgba(255, 79, 147, 0.45);
  border-radius: 0 0 0 8px;
  content: "";
  pointer-events: none;
}

.icepro-article-nav__item {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.icepro-article-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px 7px 35px;
  border-radius: 10px;
  color: var(--main-color, #394252) !important;
  font-size: 13px;
  font-weight: 620;
  line-height: 20px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.icepro-article-nav__label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icepro-article-nav__node {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 13px;
  height: 13px;
  color: var(--icepro-an-pink);
  transform: translateY(-50%);
}

.icepro-article-nav__node::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 2px solid var(--main-bg-color, #fff);
  border-radius: 50%;
  background: #adb4c0;
  box-shadow: 0 0 0 1px rgba(154, 162, 174, 0.2);
  content: "";
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.icepro-article-nav__node svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor !important;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(255, 79, 147, 0.28));
  transform: scale(0.75);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icepro-article-nav__link:hover,
.icepro-article-nav__link:focus-visible {
  color: var(--icepro-an-pink) !important;
  background: rgba(255, 79, 147, 0.055);
}

.icepro-article-nav__link:focus-visible {
  outline: 2px solid rgba(255, 79, 147, 0.34);
  outline-offset: -2px;
}

.icepro-article-nav__item.is-active .icepro-article-nav__link {
  color: #ff3f88 !important;
  background: linear-gradient(90deg, rgba(255, 79, 147, 0.145), rgba(255, 117, 169, 0.075));
  box-shadow: inset 0 0 0 1px rgba(255, 79, 147, 0.035), 0 5px 14px rgba(255, 79, 147, 0.07);
  font-weight: 750;
}

.icepro-article-nav__item.is-active .icepro-article-nav__node::before {
  opacity: 0;
}

.icepro-article-nav__item.is-active .icepro-article-nav__node svg {
  opacity: 1;
  transform: scale(1.52);
}

.icepro-article-nav__item.is-depth-1 .icepro-article-nav__link::before,
.icepro-article-nav__item.is-depth-2 .icepro-article-nav__link::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 12px;
  height: 1px;
  background: rgba(166, 174, 187, 0.46);
  content: "";
}

.icepro-article-nav__item.is-depth-2 .icepro-article-nav__link::before {
  width: 22px;
}

.icepro-article-nav__item.is-depth-1 .icepro-article-nav__link {
  padding-left: 45px;
  color: var(--muted-color, #707987) !important;
  font-size: 12px;
  font-weight: 560;
}

.icepro-article-nav__item.is-depth-1 .icepro-article-nav__node {
  left: 22px;
}

.icepro-article-nav__item.is-depth-2 .icepro-article-nav__link {
  padding-left: 55px;
  color: var(--muted-color, #7d8591) !important;
  font-size: 11.5px;
  font-weight: 520;
}

.icepro-article-nav__item.is-depth-2 .icepro-article-nav__node {
  left: 32px;
  transform: translateY(-50%) scale(0.82);
}

.icepro-article-nav__item.is-active.is-depth-1 .icepro-article-nav__link,
.icepro-article-nav__item.is-active.is-depth-2 .icepro-article-nav__link {
  color: #ff3f88 !important;
  font-weight: 720;
}

.icepro-article-nav__item.is-active.is-depth-1 .icepro-article-nav__link::before,
.icepro-article-nav__item.is-active.is-depth-2 .icepro-article-nav__link::before {
  background: rgba(255, 79, 147, 0.38);
}

.icepro-article-nav__target {
  scroll-margin-top: 104px;
}

.icepro-article-nav-ready .icepro-article-nav__native-host,
.icepro-article-nav-ready .sidebar .posts-nav-box,
.icepro-article-nav-mobile-ready .mobile-header .posts-nav-box {
  display: none !important;
}

.icepro-article-nav--mobile-sidebar {
  display: none !important;
  position: relative;
  top: auto;
  width: 100%;
}

body.dark-theme .icepro-article-nav {
  --icepro-an-pink-soft: rgba(255, 92, 151, 0.15);
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.16);
}

body.dark-theme .icepro-article-nav__progress {
  background: rgba(225, 216, 242, 0.1);
}

body.dark-theme .icepro-article-nav__item.is-active .icepro-article-nav__link {
  color: #ff75aa !important;
  background: linear-gradient(90deg, rgba(255, 79, 147, 0.2), rgba(213, 180, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 120, 169, 0.07);
}

@media (max-width: 1199px) and (min-width: 992px) {
  .icepro-article-nav {
    padding-right: 11px;
    padding-left: 11px;
  }

  .icepro-article-nav__link {
    padding-right: 7px;
    font-size: 12.5px;
  }
}

@media (max-width: 991px) {
  .icepro-article-sidebar-stack {
    position: relative;
    top: auto;
    display: block;
    max-height: none;
    margin-bottom: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: none;
  }

  .icepro-article-sidebar-stack::before,
  .icepro-article-sidebar-stack::after {
    display: none;
  }

  .icepro-article-sidebar-stack__glass-cap {
    display: none;
  }

  .icepro-article-sidebar-stack__viewport {
    display: block;
    max-height: none;
    overflow: visible;
  }

  .sidebar .icepro-article-nav {
    display: none !important;
  }

  .mobile-header .icepro-article-nav--mobile-sidebar {
    display: block !important;
    box-sizing: border-box;
    margin: 18px 0 24px;
    padding: 12px 10px 11px;
    border-color: transparent;
    border-radius: 12px;
    background: var(--muted-border-color, #f5f6f8);
    box-shadow: none;
  }

  .mobile-header .icepro-article-nav__head {
    min-height: 21px;
    padding: 0 2px;
  }

  .mobile-header .icepro-article-nav__progress {
    margin: 8px 2px 9px;
  }

  .mobile-header .icepro-article-nav__link {
    min-height: 33px;
    padding-right: 7px;
    padding-left: 32px;
    font-size: 12px;
  }

  .mobile-header .icepro-article-nav__list::before {
    left: 14px;
  }

  .mobile-header .icepro-article-nav__list::after {
    left: 14px;
  }

  .mobile-header .icepro-article-nav__node {
    left: 8px;
  }

  .mobile-header .icepro-article-nav__item.is-depth-1 .icepro-article-nav__link {
    padding-left: 42px;
  }

  .mobile-header .icepro-article-nav__item.is-depth-1 .icepro-article-nav__node {
    left: 19px;
  }

  .mobile-header .icepro-article-nav__item.is-depth-1 .icepro-article-nav__link::before {
    left: 14px;
    width: 11px;
  }

  .mobile-header .icepro-article-nav__item.is-depth-2 .icepro-article-nav__link {
    padding-left: 50px;
  }

  .mobile-header .icepro-article-nav__item.is-depth-2 .icepro-article-nav__node {
    left: 28px;
  }

  .mobile-header .icepro-article-nav__item.is-depth-2 .icepro-article-nav__link::before {
    left: 14px;
    width: 21px;
  }

  body.dark-theme .mobile-header .icepro-article-nav--mobile-sidebar {
    border-color: transparent;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icepro-article-sidebar-stack,
  .icepro-article-sidebar-stack::before,
  .icepro-article-sidebar-stack::after,
  .icepro-article-nav__progress > span,
  .icepro-article-nav__link,
  .icepro-article-nav__node::before,
  .icepro-article-nav__node svg {
    transition: none;
  }
}
