.lt-toc * {
  box-sizing: border-box;
}

.lt-toc--list {
  padding-left: 0;
  margin: 0;
  overflow-y: auto;
  list-style: none;
}

.lt-toc--link {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
}

.lt-toc--link:not(.is-active) span {
  color: #000;
}

.lt-toc--link:not(.is-active):hover {
  background: rgba(242, 242, 242, 1);
}

.lt-toc--link.is-active {
  background: #0d0d0d;
}

.lt-toc--link.is-active span {
  color: #fff;
}

.lt-toc--current {
  padding: 6px 12px;
}

.lt-toc_is-desktop {
  position: relative;
}

.lt-toc_is-desktop .lt-toc--title {
  margin: 0 0 12px;
  font-size: 20px;
  margin-bottom: calc(var(--line-height-computed) / 2);
}

.lt-toc_is-desktop .lt-toc--current {
  display: none;
}

.lt-toc_is-desktop .lt-toc--item {
  margin-bottom: calc(var(--line-height-computed) / 2);
}

.lt-toc_is-desktop .lt-toc--list {
  display: block !important;
}

.lt-toc_is-desktop .lt-toc--link {
  border-radius: 0px;
}

.lt-toc-mobile {
  display: none;
}

.lt-toc-mobile.is-active {
  display: block;
}

.lt-toc-mobile,
.lt-toc_is-mobile {
  width: 100%;
  height: 50px;
}

.lt-toc-mobile_start {
  margin-bottom: 24px;
}

.lt-toc-mobile_end {
  margin-top: 24px;
}

.lt-toc_is-mobile {
  position: absolute;
  z-index: 99;
}

.lt-toc_is-mobile.lt-toc_is-bottom {
  top: 0 !important;
}

.lt-toc_is-mobile .lt-toc--container {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.lt-toc_is-mobile .lt-toc--title {
  position: absolute;
  top: 0;
  left: 12px;
  display: block;
  padding: 2px 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  background: #eee;
  border-radius: 4px;
  transform: translateY(-50%);
}

.lt-toc_is-mobile .lt-toc--list {
  display: none;
  border-top: 1px solid #e8e8e8;
}

.lt-toc_is-mobile .lt-toc--current,
.lt-toc_is-mobile .lt-toc--link {
  padding: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.lt-toc_is-mobile .lt-toc--current {
  position: relative;
  padding-right: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.lt-toc_is-mobile .lt-toc--current:after,
.lt-toc_is-mobile .lt-toc--current:before {
  position: absolute;
  right: 22px;
  bottom: 50%;
  display: block;
  content: "";
  background: #4e5565;
  border-radius: 1px;
  transition: all 0.3s;
  transform: translate(50%, 50%);
}

.lt-toc_is-mobile .lt-toc--current:before {
  width: 2px;
  height: 12px;
}

.lt-toc_is-mobile .lt-toc--current:after {
  width: 12px;
  height: 2px;
}

.lt-toc_is-mobile .lt-toc--container.is-active .lt-toc--current:before {
  transform: translate(50%, 50%) rotate(-90deg);
}

.lt-toc_is-mobile .lt-toc--container.is-active .lt-toc--current:after {
  opacity: 0;
  transform: translate(50%, 50%) rotate(-90deg);
}

.lt-toc_is-mobile .lt-toc--item:last-child a {
  border-radius: 0 0 4px 4px;
}

.lt-toc--item-h2 {
  font-weight: 700;
}

.lt-toc--item-h3 .lt-toc--link {
  padding-left: 1rem;
}

.lt-toc--item-h4 .lt-toc--link {
  padding-left: 2rem;
}

.lt-toc--item-h5 .lt-toc--link {
  padding-left: 3rem;
}

.lt-toc--item-h6 .lt-toc--link {
  padding-left: 4rem;
}

.lt-toc_is-mobile,
.lt-toc_is-mobile.lt-toc_is-fixed .lt-toc--container {
  position: static !important;
  top: unset !important;
  right: unset !important;
  left: unset !important;
}

@media (max-width: 991px) {
  .lt-toc_is-mobile {
    height: auto;
  }

  .lt-toc_is-mobile .lt-toc--container {
    border: none;
    margin-top: 1rem;
  }

  .lt-toc_is-mobile .lt-toc--title {
    position: static;
    font-size: 20px;
    background: transparent;
    margin-bottom: 1rem;
  }

  .lt-toc_is-mobile .lt-toc--current:after,
  .lt-toc_is-mobile .lt-toc--current:before {
    display: none;
  }

  .lt-toc--current {
    display: none;
  }

  .lt-toc_is-mobile .lt-toc--list {
    display: block;
    border: none;
  }

  .lt-toc_is-mobile .lt-toc--link {
    border-radius: 0px;
    font-size: 13px;
  }

  .lt-toc_is-mobile .lt-toc--title {
    padding: 0 4px;
  }
}

@media (min-width: 992px) {
  .lt-toc_is-fixed > .lt-toc--container {
    top: calc(var(--custom-header-height) + 20px) !important;
  }
}
