/* Minimal docs layout tweaks */
:root { --docs-header-offset: 3.5rem; }

@media (min-width: 992px) {
  /* pin docs sidebars beneath the header with exact offset */
  .docs-sticky { position: sticky; top: var(--docs-header-offset); max-height: calc(100vh - var(--docs-header-offset)); overflow: auto; }
  header.sticky-top { max-height: none; overflow: visible; }
}
/* Sidebar headings */
nav[aria-label="Docs navigation"] h6 { margin-top: 1rem; margin-bottom: 0.5rem; }
/* ToC spacing */
#doc-toc ul { margin: 0; }
#doc-toc a { text-decoration: none; }
#doc-toc a.active { font-weight: 600; }

/* Compensate for sticky header overlap on anchors */
/* Apply spacing only to section headings placed directly inside the main content container */
#content > * > h2, #content > * > h3 { margin-top: 3rem; }
/* Ensure headings inside live examples/components don’t inherit extra spacing */
.bd-example h2, .bd-example h3, h2.accordion-header { margin-top: 0; }
code[class*="language-"], pre[class*="language-"]{
    text-shadow:none;
}