html {
  scroll-behavior: smooth;
  --toc-omnia-offset: calc(var(--drupal-displace-offset-top, 0px) + 6rem);
}

.toc-omnia {
  position: sticky;
  top: var(--toc-omnia-offset);
  max-height: calc(100vh - var(--toc-omnia-offset) - 1rem);
  overflow-y: auto;
  padding: 3.5rem 0 0 0 !important;
  background: #fff;
}

@media (min-width: 992px) {
  .toc-omnia-sidebar {
    align-self: flex-start;
    height: fit-content;
  }

  .toc-omnia-block--sticky {
    position: sticky;
    top: var(--toc-omnia-offset);
  }

  .toc-omnia-block--sticky .toc-omnia {
    position: static;
    top: auto;
  }

  .toc-omnia-sidebar--js {
    position: relative;
    align-self: stretch;
    height: auto;
  }

  .toc-omnia-block--js {
    position: static;
    top: auto;
  }

  .toc-omnia-block--js .toc-omnia {
    position: static;
    top: auto;
  }

  .toc-omnia__placeholder {
    height: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

.toc-omnia__title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.toc-omnia__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-omnia__item + .toc-omnia__item {
  margin-top: 0.35rem;
}
.toc-omnia__item{
  padding-left: 2.3125rem;
  position: relative;
}
.toc-omnia__item::before {
  background-color: #fff;
  border: .0625rem solid #ddd;
  border-radius: 50%;
  content: "";
  height: .5rem;
  left: .5625rem;
  position: absolute;
  top: .4375rem;
  width: .5rem;
  z-index: 1;
}
.toc-omnia__item::after {
  background-color: #ddd;
  content: "";
  height: calc(100% + 10px);
  left: .8125rem;
  position: absolute;
  top: 1.15rem;
  width: .0625rem;
}
.toc-omnia__link {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 150%;
  text-decoration: underline;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  color: #333;
}

.toc-omnia__link:hover {
  text-decoration: underline;
  color: #900000;
}
.toc-omnia__item:hover::before{
  background-color: #900000;
  border: .0625rem solid #900000;
}
.toc-omnia__item.is-active::before {
  background-color: #900000;
  border: .0625rem solid #900000;
  border-radius: .5rem;
  height: .5rem;
  width: 1.25rem;
}
.toc-omnia__item:last-child::after{
  display: none;
}
