/* Wisteria Tech Docs — sidebar reading behavior overrides.
 * Keep the sidebar quiet: no TOC recentering, no animated expansion,
 * no active background/indicator. Only the current item changes text color.
 */

@media (min-width: 992px) {
  .sidebar-inner {
    height: calc(100vh - var(--wt-topbar-height) - 28px) !important;
    max-height: calc(100vh - var(--wt-topbar-height) - 28px) !important;
  }

  .sidebar-panel-container {
    flex: 1 1 auto !important;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .sidebar-inner > .wt-related-posts {
    flex: 0 0 auto;
  }
}

/* Minimal article TOC -------------------------------------------------
 * NexT normally animates nested sections and styles every active ancestor.
 * For this documentation site we intentionally disable those visual effects.
 */
.post-toc,
.post-toc-wrap,
.post-toc .nav,
.post-toc .nav * {
  animation: none !important;
  transition: none !important;
}

/* Keep all TOC levels visible; do not collapse/expand as the article scrolls. */
.post-toc .nav .nav-child {
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
  visibility: visible !important;
}

/* Neutral state: plain text only. */
.post-toc .nav .nav-item > .nav-link,
.post-toc .nav .active > .nav-link {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--wt-muted) !important;
  font-weight: 400 !important;
}

/* Hover should not compete with the article for attention. */
.post-toc .nav .nav-item > .nav-link:hover,
.post-toc .nav .active > .nav-link:hover {
  background: transparent !important;
  color: var(--wt-muted) !important;
}

/* The only reading-position cue: current heading text color. */
.post-toc .nav .active-current > .nav-link,
.post-toc .nav .active-current > .nav-link:hover,
.post-toc .nav .active-current > .nav-link .nav-number {
  background: transparent !important;
  border: 0 !important;
  color: var(--wt-primary) !important;
  font-weight: 400 !important;
}

/* Home sidebar author/social block ------------------------------------
 * A quiet identity/signature area below the short recent-post list.
 */
.wt-sidebar-author {
  border-top: 1px solid var(--wt-border);
  margin-top: 18px;
  padding-top: 16px;
  text-align: left;
}

.wt-sidebar-author-name {
  color: var(--wt-text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.wt-sidebar-author-role {
  color: var(--wt-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 3px;
}

.wt-sidebar-author-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
}

.wt-sidebar-author-links a {
  border: 0 !important;
  color: var(--wt-menu-text);
  font-size: 0.79rem;
  line-height: 1.4;
  padding: 2px 0;
  text-decoration: none;
  transition: color 120ms ease;
}

.wt-sidebar-author-links a:hover {
  color: var(--wt-primary);
}
