.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: 6px 12px;
  text-decoration: none;
  box-sizing: border-box;
  background-color:#FCFCFC;
}

.lt-toc--link.is-active {
  border-left: 2px solid var(--color-brand-primary) !important;
  display:block;
}

.lt-toc--link.is-active span {

}

.lt-toc--current {
  padding: 6px 12px;
}

.lt-toc_is-desktop {
  position: relative;
}

.lt-toc_is-desktop .lt-toc--title {
  background-color:#FCFCFC;
  padding-top:10px;
  padding-bottom:10px;
  padding-left:12px;
  margin:0;
  font-size: var(--font-size-h4);
  border-left: 1px solid #DADADA; /* Replace 'yourColor' with the desired color code or name */
  display:block;
}

.lt-toc_is-desktop .lt-toc--current {
  display: none;
}

.lt-toc_is-desktop .lt-toc--item {
  margin-bottom: 0px;
}

.lt-toc_is-desktop .lt-toc--list {
  display: block !important;
}

.lt-toc_is-desktop .lt-toc--link {
  border-left: 1px solid #DADADA; /* Replace 'yourColor' with the desired color code or name */
}

.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: transparent;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.lt-toc--title{
  color:var(--color-text-secondary);
}

.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: 600;
  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: 0.875rem;
  line-height: 1.2;
}

.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 > a {
  color:#191D24;
}

.lt-toc--item > a:hover {
  color:var(--color-brand-primary);
  text-decoration:underline;
}

.lt-toc--item-h2 > a > span{
  font-weight:600;
}

.lt-toc--item-h3 > a > span{
  padding-left:15px;
  display:block;
}

.lt-toc--item-h4 > a > span{
  padding-left:25px;
  display:block;
}

/* Define padding between h2 sections */
.lt-toc--item-h2 a {
    padding-top: 12px; /* Adjust the value as needed */
}

/* Define padding between h3 sections */
.lt-toc--item-h3 a {
    padding-top: 1px; /* Adjust the value as needed */
}

/* Define padding between h4 sections */
.lt-toc--item-h4 a {
    padding-top: 1px; /* Adjust the value as needed */
}

/* Define margin-top for adjacent h2 and h3 sections */
.lt-toc--item-h2 + .lt-toc--item-h3 a{
    padding-top: 8px; /* Adjust the value as needed */
}

.lt-toc--item-h3 + .lt-toc--item-h4 a {
    padding-top: 3px; /* Adjust the value as needed */
}