.mchp-sidetoc-more {
  list-style: none;
  padding: 0.25rem 0;
  text-align: center;
}

.mchp-sidetoc-more-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: center;
}

.mchp-sidetoc-more-button,
.mchp-sidetoc-all-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.35rem 0.5rem;
  text-decoration: underline;
}

.mchp-sidetoc-more-button:hover,
.mchp-sidetoc-more-button:focus-visible,
.mchp-sidetoc-all-button:hover,
.mchp-sidetoc-all-button:focus-visible {
  text-decoration-thickness: 2px;
}

.mchp-sidetoc-more-button[disabled],
.mchp-sidetoc-all-button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.mchp-sidetoc-more-button.mchp-sidetoc-load-error,
.mchp-sidetoc-all-button.mchp-sidetoc-load-error {
  cursor: pointer;
  opacity: 1;
}

.mchp-sidetoc-loading {
  opacity: 0.8;
}

/* Oxygen's synchronous topic controller requires an active TOC link before
   the asynchronous tree is hydrated. Keep the bootstrap node measurable for
   jQuery.offset(), but outside the visual and accessibility presentation. */
.mchp-sidetoc-bootstrap {
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* Oxygen 28 places the sticky breadcrumb at z-index 998. The toggle is inside
   this stacking context, so raise the container to let the visible control
   receive pointer input. */
#wh_publication_toc_content {
  z-index: 999 !important;
}

.mchp-sidetoc-loading-indicator {
  align-items: center;
  color: var(--wh-label-color, #666);
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.mchp-sidetoc-loading-indicator::before {
  animation: mchp-sidetoc-spin 0.8s linear infinite;
  border: 2px solid var(--wh-soft-color, #d5d5d5);
  border-radius: 50%;
  border-top-color: currentColor;
  content: '';
  height: 0.9rem;
  width: 0.9rem;
}

@keyframes mchp-sidetoc-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mchp-sidetoc-loading-indicator::before {
    animation: none;
  }
}
