/*
 * Keep nested TOC items visible when a long parent heading wraps.
 * Fluid clamps the whole .toc-list-item, which also clips child <ol> lists.
 */
.toc-list-item {
  display: block;
  overflow: visible;
  text-overflow: initial;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.toc-list-item > .tocbot-link {
  display: -webkit-inline-box;
  max-width: calc(100% - 1rem);
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
