html {
  scroll-padding: 200px;
}

.paragraph--type--toc {
  position: fixed;
  top: 160px;
  right: 8px;
  z-index: 500;
  transition: all 0.25s ease-in-out;
  display: flex;
  background: blue;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #57BEEC;
  color: white;
  border-radius: 20px;
  clip-path: circle(20px at calc(100% - 20px) 20px);
  opacity: 0.6;
}

.paragraph--type--toc:hover {
  opacity:1;
}

.paragraph--type--toc.open:hover {
  opacity:1;
}

.paragraph--type--toc > button {
  background: none;
  border: 0;
  width: 30px;
  height: 36px;
  align-self: flex-end;
  position: relative;
  right: 5px;
  top: 2px;
  cursor: pointer;
}

.paragraph--type--toc > button > span {
  background: white;
  width: 100%;
  height: 2px;
  display: block;
  position: relative;
  transition: all 0.25s ease-in-out;
}

.paragraph--type--toc > button > span::before, 
.paragraph--type--toc > button > span::after {
  content: "";
  background: white;
  width: 100%;
  height: 2px;
  display: block;
  position: absolute;
  transition: all 0.25s ease-in-out;
}

.paragraph--type--toc > button > span::before {
  top: -6px;
}

.paragraph--type--toc > button > span::after {
  bottom: -6px;
}

.paragraph--type--toc:hover > button > span::before {
  top: -8px;
}

.paragraph--type--toc:hover > button > span::after {
  bottom: -8px;
}

.paragraph--type--toc .field--name-field-toc-items {
  transition: all 0.25s ease-in-out;
  width: 200px;
  transform-origin: 0 0;
  border-radius: 7px 0px 7px 7px;
  padding: 0 2rem 1rem 2rem;
}

.paragraph--type--toc .field--name-field-toc-items a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0rem;
  margin-bottom: 1rem;
  padding-right: 0.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
}

.paragraph--type--toc .field--name-field-toc-items a:hover {
  padding-left: 0.5em;
  padding-right: 0em;
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.paragraph--type--toc.open {
  clip-path: circle(200% at calc(100% - 15px) 15px);
  opacity:1;
}

.paragraph--type--toc.open > button > span {
  background: transparent;
}

.paragraph--type--toc.open > button > span::before {
  transform: rotate(45deg);
  top: 0;
}

.paragraph--type--toc.open > button > span::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.paragraph--type--toc.open .field--name-field-toc-items {
}

@media only screen and (max-width: 991px) {
  .paragraph--type--toc {
    top: 170px;
  }

  .paragraph--type--toc .field--name-field-toc-items {
    max-width: 90vw;
  }
}