.binfoToc {
  display: none;
}

/* Desktop wide: show TOC as the left column without shrinking content/sidebar. */
@media (min-width: 1500px) {
  body.has-binfo-toc.has-binfo-toc-docked {
    --container: 1480px;
  }

  body.has-binfo-toc.has-binfo-toc-docked .binfoToc {
    display: block;
    align-self: start;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    background: var(--panel, rgba(255, 255, 255, 0.06));
  }

  body.has-binfo-toc.has-binfo-toc-docked .articlePage {
    grid-template-columns: 260px minmax(720px, 1fr) 360px;
    gap: 44px;
  }

  body.has-binfo-toc.has-binfo-toc-docked .binfoToc__title {
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted, rgba(255, 255, 255, 0.64));
    margin: 2px 0 10px;
  }

  body.has-binfo-toc.has-binfo-toc-docked .binfoToc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  body.has-binfo-toc.has-binfo-toc-docked .binfoToc__item.is-h3 {
    padding-left: 12px;
    opacity: 0.92;
  }

  body.has-binfo-toc.has-binfo-toc-docked .binfoToc__link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--text, rgba(255, 255, 255, 0.92));
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.25;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
  }

  body.has-binfo-toc.has-binfo-toc-docked .binfoToc__link:hover {
    background: rgba(124, 92, 255, 0.12);
    border-color: rgba(124, 92, 255, 0.25);
    transform: translateY(-1px);
  }

  body.has-binfo-toc.has-binfo-toc-docked .binfoToc__link.is-active {
    background: rgba(124, 92, 255, 0.18);
    border-color: rgba(124, 92, 255, 0.35);
  }

  body.has-binfo-toc.has-binfo-toc-docked .articleContent :where(h2, h3) {
    scroll-margin-top: 90px;
  }
}
