/* stylelint-disable media-feature-range-notation */
.table-of-contents {
  list-style-type: none;
  padding-left: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-3);
}

.sub-table-of-contents {
  padding-left: var(--spacing-1);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-2);
}

.sub-table-of-contents .sub-table-of-contents {
  padding-left: var(--spacing-3);
  margin-bottom: 0;
}

.table-of-contents li.toc-heading {
  margin-top: var(--spacing-4);
  color: var(--color-gray-600);
}

.table-of-contents li.toc-heading:first-child {
  margin-top: 0;
}

.table-of-contents li {
  margin: 3px 0;
  list-style-type: none;
}

.table-of-contents a:link {
  background: none;
}

.sub-table-of-contents .toc-item a {
  display: block;
  padding: var(--spacing-1);
  border-radius: var(--radius);
  line-height: var(--line-height-xs);
  color: var(--color-gray-700);
  border-left: 0 solid transparent;
  transition: border-width 0.3s;
}

.sub-table-of-contents .toc-item a:hover {
  border-left: 4px solid var(--color-gray-400);
  border-radius: 0;
}

.sub-table-of-contents .toc-item.selected > a,
.sub-table-of-contents .toc-item > a.active {
  border-left: 4px solid var(--color-brand-hc-dark);
  border-radius: 0;
}

@media (max-width: 844px) {
  .table-of-contents {
    font-size: var(--font-size-lg);
  }
}
