:is(h2, h3, h4, h5, h6) > a {
  color: inherit;
}

:is(h2, h3, h4, h5, h6) a:hover {
  color: inherit;
}

:is(h2, h3, h4, h5, h6) a:hover:after {
  content: " #"; 
  color: var(--bs-blue) !important;
}

:is(h1, h2, h3, h4, h5, h6), :target {
  scroll-margin-top: 125px !important;
}

#results-modal .modal-body {
  padding: 0;
}

#results-modal .modal-body .list-group-item {
  padding: 5px 12px 0px 25px;
  border-bottom-width: 0px;
}

#results-modal .modal-body .list-group-item p {
  margin-bottom: 0px;
  border-bottom: 1px solid rgba(0,0,0,0.125);
  color: var(--bs-dark);
}

#results-modal .modal-body .list-group-item mark, #results-modal .modal-body .list-group-item .mark {
  padding: 0;
  background-color: var(--white);
}

#results-modal .modal-body .list-group-item p mark, #results-modal .modal-body .list-group-item p .mark {
  font-weight: 600;
}

#results-modal .modal-body .list-group-item h6 mark, #results-modal .modal-body .list-group-item h6 .mark {
  font-weight: 500;
}

.nav-secondary {
  background-color: var(--bs-white);
  z-index: 1000;
}

.sticky-top-search-offset {
  position: sticky !important;
  top: 120px;
  background-color: var(--bs-white);
  z-index: 1000;
}

.sticky-top-toc-offset {
  position: sticky !important;
  top: 200px;
  max-height: calc(95vh - 200px);
}

.sticky-top-nav-secondary-offset {
  top: 73px;
}

.sticky-top-toc-offset #toc{
  max-height: inherit;
  overflow-x: hidden;
}