.toc-button {
  width: 70px;
  height: 70px;
  padding: 5px;
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 98;
  border: 0;
  border-radius: 40px;
  background: var(--green);
  color: var(--white);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.toc-button:hover, .toc-button:focus {
  background: var(--green-dark);
}
.toc-button:hover .bar, .toc-button:focus .bar {
  background: var(--white);
}
@media screen and (min-width: 576px) {
  .toc-button {
    bottom: 15px;
    left: 15px;
  }
}
@media screen and (min-width: 768px) {
  .toc-button {
    width: 80px;
    height: 80px;
  }
}
@media screen and (min-width: 992px) {
  .toc-button {
    left: 30px;
  }
}
.toc-button__lines {
  width: max-content;
  margin: 0 auto 5px;
}
.toc-button[aria-expanded=true] .bar:nth-child(1) {
  transform: translate(2px, 6px) rotateZ(-35deg);
}
.toc-button[aria-expanded=true] .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(5px);
}
.toc-button[aria-expanded=true] .bar:nth-child(3) {
  transform: translate(2px, -6px) rotateZ(35deg);
}
.toc-button .bar {
  height: 1px;
  margin-bottom: 5px;
  display: block;
  background: var(--white);
  transform-origin: center;
  transition-property: transform, opacity;
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
}
.toc-button .bar:nth-child(1) {
  width: 28px;
}
.toc-button .bar:nth-child(2) {
  width: 19px;
}
.toc-button .bar:nth-child(3) {
  width: 28px;
}

.toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 99;
}
.toc-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.toc {
  width: 95%;
  max-width: calc(100vw - 30px);
  max-height: 70vh;
  padding: 24px;
  position: fixed;
  left: 2%;
  bottom: 90px;
  z-index: 99;
  overflow: auto;
  background: var(--green-dark);
  border-radius: 12px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
@media screen and (min-width: 576px) {
  .toc {
    width: 360px;
    left: 95px;
  }
}
@media screen and (min-width: 768px) {
  .toc {
    left: 105px;
  }
}
@media screen and (min-width: 992px) {
  .toc {
    left: 120px;
  }
}
.toc.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.toc h3 {
  padding-bottom: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid;
  color: white;
  text-transform: uppercase;
}
.toc ul {
  margin: 20px 0 0;
  padding-left: 18px;
}
.toc li::marker {
  color: var(--white);
}
.toc li + li {
  margin-top: 10px;
}
.toc a {
  text-decoration: none;
  color: var(--white);
}
.toc a:hover {
  text-decoration: underline;
}