.article-sidebar,
.toc-sidebar-relative {
  position: relative;
}

@media (min-width: 768px) {
  .esc-table-of-contents {
    display: block;
    padding-top: 14px;
  }
}
@media (max-width: 767px) {
  .esc-table-of-contents {
    display: block;
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0;
    font-size: 14px;
    background-color: #fff;
    z-index: 1;
  }
  .esc-table-of-contents .toc-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .esc-table-of-contents.is-open .toc-list {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .esc-table-of-contents.is-open .section__title.toc-header::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .esc-table-of-contents.is-sticky {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #F3F2FF;
    margin: 0 -16px !important;
    width: calc(100% + 32px);
  }
  .esc-table-of-contents.is-sticky .section__title.toc-header {
    background-color: #F3F2FF;
    color: #464664;
    font-size: 17px;
    line-height: 1.5;
    padding-left: 16px;
    border-bottom: 1px solid rgba(166, 166, 182, 0.4);
  }
  .esc-table-of-contents.is-sticky .toc-list {
    padding-left: 16px;
    padding-right: 16px;
    left: 0;
    right: 0;
  }
}
.esc-table-of-contents .section__title {
  margin: 0 0 15px 0;
  font-size: 26px;
  line-height: 38px;
  font-weight: 700;
}
.esc-table-of-contents .section__title.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  max-width: 100vw;
}
@media (max-width: 767px) {
  .esc-table-of-contents .section__title.toc-header {
    font-size: 26px;
    line-height: 38px;
    padding: 10px 32px 10px 0;
    margin: 0;
    background-color: #fff;
    color: #000;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .esc-table-of-contents .section__title.toc-header::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url("../images/toc-arrow.svg") center/contain no-repeat;
    transition: transform 0.3s ease;
  }
  .esc-table-of-contents .section__title.toc-header span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
  }
}
.esc-table-of-contents .toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.esc-table-of-contents .toc-list li {
  font-size: 17px;
  line-height: 1.5;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 8px 4px 8px 22px;
  border-left: 1px solid rgba(166, 166, 182, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.esc-table-of-contents .toc-list li:hover {
  color: #4856A9;
}
.esc-table-of-contents .toc-list li.active {
  border-left: 1px solid #4856A9;
  color: #4856A9;
  font-weight: 600;
  background-color: #F3F2FF;
}
@media (min-width: 768px) {
  .esc-table-of-contents.is-fixed {
    position: fixed;
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    top: 88px;
    width: 100%;
    max-width: 330px;
    padding-top: 10px;
    margin-top: 0 !important;
  }
  .esc-table-of-contents.is-fixed .section__title {
    flex-shrink: 0;
  }
  .esc-table-of-contents.is-fixed .toc-list {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
  }
}
@media (min-width: 768px) {
  .esc-table-of-contents.is-absolute {
    position: absolute;
    bottom: 24px;
    background-color: #fff;
    z-index: 10;
    width: 100%;
    max-width: 330px;
  }
}
@media (max-width: 320px) {
  .esc-table-of-contents {
    padding: 12px;
  }
  .esc-table-of-contents .toc-list li {
    font-size: 12px;
    padding: 2px 0;
  }
}

@media (min-width: 768px) {
  .wp-block-gamurs-article-content .esc-table-of-contents {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .wp-block-gamurs-article-content .esc-table-of-contents {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .article-sidebar .esc-table-of-contents,
  .wp-block-gamurs-article-group__sidebar__wrapper .esc-table-of-contents {
    position: sticky;
    top: 88px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
  }
  .article-sidebar .esc-table-of-contents .section__title,
  .wp-block-gamurs-article-group__sidebar__wrapper .esc-table-of-contents .section__title {
    flex-shrink: 0;
    padding-top: 10px;
  }
  .article-sidebar .esc-table-of-contents .toc-list,
  .wp-block-gamurs-article-group__sidebar__wrapper .esc-table-of-contents .toc-list {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
  }
}
@media (max-width: 767px) {
  .article-sidebar .esc-table-of-contents,
  .wp-block-gamurs-article-group__sidebar__wrapper .esc-table-of-contents {
    display: none !important;
  }
}

.theme-dark .esc-table-of-contents {
  color: #fff;
  background-color: transparent;
}
.theme-dark .esc-table-of-contents .toc-header {
  color: #fff;
  background-color: transparent;
}
.theme-dark .esc-table-of-contents.is-sticky, .theme-dark .esc-table-of-contents.is-fixed {
  background-color: #040629;
}
.theme-dark .esc-table-of-contents.is-sticky .toc-header, .theme-dark .esc-table-of-contents.is-fixed .toc-header {
  background-color: #292B4B;
  color: #fff;
}
@media (max-width: 767px) {
  .theme-dark .esc-table-of-contents .toc-list {
    background-color: #040629;
  }
}
.theme-dark .esc-table-of-contents .toc-list li.active {
  background-color: #292B4B;
  border-left: 1px solid #98A3FF;
  color: #94A0FF;
}

.toc-fixed .wp-block-gamurs-header-nav {
  display: none;
}

.theme-dark .esc-table-of-contents .section__title.toc-header::after {
  background: url("../images/toc-arrow-white.svg") center/contain no-repeat;
}

/*# sourceMappingURL=table-of-contents.css.map */
