/* Public styles */

.oxygen-toc-parent {
  position: -webkit-sticky;
  position: sticky;
  top: 50px;
}

@media (max-width: 991px) {
  .oxygen-toc-parent {
    position: unset !important;
  }
  .oxygen-toc .oxygen-toc-title {
    text-align: left !important;
    padding-left: 0.5rem !important;
  }
}

.oxygen-toc .oxygen-toc-title {
  color: #111;
  width: 100%;
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
  background-color: #f5f5f5;
  padding: 10px 0px;
  margin: 0px;
}

.oxygen-toc-content {
  background-color: #f5f5f5;
}

.oxygen-toc li {
  list-style: none;
  margin: 0 0 5px 5px;
  font-weight: 500;
}

.oxygen-toc-item a {
  color: #111;
}

@keyframes stuckMoveDownOpacity {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.oxygen-toc-title {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.3rem 0.3rem 0 0;
  padding: 0.5rem;
}

.oxygen-toc-title::after {
  content: " +";
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  font-size: 1.4rem;
}

.oxygen-toc-title.active::after {
  content: " -";
  top: 0.1rem;
  font-size: 1.8rem;
}

.oxygen-toc-content {
  margin: 0px;
  max-height: 0;
  overflow: hidden;
  animation: stuckMoveDownOpacity 0.6s;
  border: none;
  border-top: none;
  border-radius: 0 0 0.3rem 0.3rem;
}

.oxygen-toc-title.active {
  border-bottom: 1px solid #a29d9d;
}

.oxygen-toc-content.active {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: none;
  padding: 15px 10px;
}

.oxygen-toc-content:not(.active) {
  border-radius: 0.3rem;
  box-shadow: 0px 4px 14px -3px rgba(0, 0, 0, 0.12);
}

.oxygen-toc-title:not(.active):hover {
  box-shadow: 0 0 0 4px rgb(10 149 255 / 10%);
  transition: 0.3s ease;
}

.oxygen-toc-title:hover {
  cursor: pointer;
}

.oxygen-toc-content.active {
  max-height: 60vh !important;
  overflow-y: auto;
}

.oxygen-toc-title:not(.active) {
  border-radius: 0.3rem;
  box-shadow: 0px 4px 14px -3px rgba(0, 0, 0, 0.12);
}

.oxygen-toc-wrap.active {
  box-shadow: 0px 4px 14px -3px rgba(0, 0, 0, 0.12);
  border-radius: 0.3rem;
}

.oxygen-toc-wrap.active:hover {
  box-shadow: 0 0 0 4px rgb(10 149 255 / 10%);
  transition: 0.3s ease;
}

.oxygen-toc li.h1 {
  font-weight: 700;
}

.oxygen-toc li.h5,
.oxygen-toc li.h6 {
  font-size: 0.9em;
}

.oxygen-toc-item a.active-anchor {
  font-weight: 700;
  color: #0073aa; /* WordPress blue color - you can change this */
  text-decoration: none;
}

.oxygen-toc-item a.active-anchor:hover {
  text-decoration: underline;
}
