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

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

.lt-toc--link {
  display: block;
  padding: 6px 12px;
  text-decoration: none; }
  .lt-toc--link.is-active {
    background: currentColor; }
    .lt-toc--link.is-active span {
      color: #ffffff; }

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

/* Desktop version */
.lt-toc_is-desktop {
  position: relative; }
  .lt-toc_is-desktop .lt-toc--title {
    margin: 0 0 12px;
    font-size: 20px; }
  .lt-toc_is-desktop .lt-toc--current {
    display: none; }
  .lt-toc_is-desktop .lt-toc--item {
    margin-bottom: 6px; }
  .lt-toc_is-desktop .lt-toc--list {
    display: block !important; }
  .lt-toc_is-desktop .lt-toc--link {
    border-radius: 4px; }

/* Mobile version */
.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: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px; }
  .lt-toc_is-mobile .lt-toc--title {
    position: absolute;
    top: 0;
    left: 12px;
    display: block;
    margin: 0;
    padding: 2px 4px;
    font-weight: normal;
    font-size: 14px;
    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;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer; }
    .lt-toc_is-mobile .lt-toc--current:before, .lt-toc_is-mobile .lt-toc--current:after {
      position: absolute;
      right: 22px;
      bottom: 50%;
      display: block;
      background: #4e5565;
      border-radius: 1px;
      transform: translate(50%, 50%);
      transition: all 0.3s;
      content: ""; }
    .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 {
    transform: translate(50%, 50%) rotate(-90deg);
    opacity: 0; }
  .lt-toc_is-mobile .lt-toc--item:last-child a {
    border-radius: 0 0 4px 4px; }
