.ccbt-toc__sticky {
  position: sticky;
  top: 79px;
  align-self: flex-start;
  z-index: 9;
}

.ccbt-toc__sticky.is__sticky .ccbt-toc {
  border-bottom: 1px solid #000;
}

.ccbt-toc.is__open .ccbt-toc__list {
  display: block;
} 

.ccbt-toc__before {
  position: absolute;
  left: 0;
  top: -160px;
  width: 10px;
  height: 80px;
  pointer-events: none;
}

.ccbt-toc {
  margin-block-start: 0 !important;
  padding: 1rem 0 0;
  background: #fff;
}

.ccbt-toc__title {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1;
  padding: 0 0 1rem;
}

.ccbt-toc__toggle {
  position: relative;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  font-size: 0;
  width: 24px;
  height: 24px;
  padding: 4px;
  border: none;
  background: transparent;
  touch-action: manipulation;
}

.ccbt-toc__toggle::before,
.ccbt-toc__toggle::after {
  display: block;
  width: 16px;
  height: 1px;
  content: '';
  background: #000;
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 4px;
  transition: transform 0.2s ease-in-out;
  transform: rotate(0deg);
  touch-action: manipulation;
}

.ccbt-toc__toggle::before {
  transform: rotate(90deg);
}

.ccbt-toc.is__open {
  .ccbt-toc__toggle::before {
    transform: rotate(0deg);
  }
}

.ccbt-toc__list {
  display: none;
  max-height: 25vh;
  overflow-y: auto;
  padding: 0 0 1rem;
  font-feature-settings: 'palt' 1;
}

.ccbt-toc__list ol {
  margin: 0;
  padding: 0;
  counter-reset: section;
  list-style-type: none;
}

.ccbt-toc__list ol ol {
  margin-left: 1.5em;
}

.ccbt-toc__list li {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  color: #7f7f7f;
}

.ccbt-toc__list li.active,
.ccbt-toc__list li.active > a {
  color: #000;
}

.ccbt-toc__list li.active > a {
  font-weight: bold;
}

.ccbt-toc__list li a {
  text-decoration: none;
  color: #7f7f7f;
}

@media (min-width: 769px) {
  .ccbt-toc__sticky.is__sticky .ccbt-toc {
    border-bottom: none;
  }
  .ccbt-toc {
    padding: 1.5rem 0 0;
    border-top: 1px solid #000;
  }
  .ccbt-toc__title {
    padding: 0 0 1.5rem;
  }
  .ccbt-toc__toggle {
    display: none;
  }
  .ccbt-toc__list {
    padding: 0 0 1.5rem;
    max-height: calc(100vh - 79px - 1.5rem - 4rem);
  }
}