.toc {
  position: sticky;
  top: 20px;
  display: block;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 2em;
  border: 1px solid #ddd;
  contain: content;
  z-index: 99;
  max-height: 90vh;
  overflow-y: auto;
}

.toc:not([open]) {
  width: fit-content;
	min-width: 250px;
}

.toc:not([open]):hover {
  border-color: #0088c1;
}

.toc:not([open]):hover summary {
  color: #0088c1;
}

.toc summary {
  padding: .75em 1em;
  color: #0088c1;
  margin-bottom: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc summary::-webkit-details-marker {
  display:none;
}

.toc summary:hover {
  cursor: pointer;
}

.toc .toggler {
	width: 24px;
	height: 24px;
}

.toc[open] .toggler {
  transform: rotate(180deg);
}

.toc ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 0;
}

.toc li {
  margin: 0;
}

.toc ul.intoc {
  margin: 0;
  padding-bottom: 10px;
}

.intoc a {
  line-height: 1.9em;
  display: block;
  text-decoration: none;
  padding: 0 1em;
}

.intoc a:hover {
  color: #fff;
  background-color: #0088c1;
}

.intoc .active > a {
	background-color: #e2017b;
	color: white;
}

.intoc ul a {
  padding-left: 2em;
}

.intoc a {
  text-wrap: balance;
}

h2[id^="toc-"]::before,
h3[id^="toc-"]::before {
	display: block;
    height: 75px;
    margin-top: -75px;
    visibility: hidden;
    content: " ";
}