.docs-shell { width: 100%; max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 19rem minmax(0, 1fr); }
.docs-sidebar { border-right: 1px solid var(--bs-border-color); background: color-mix(in srgb, var(--portal-surface) 94%, var(--portal-primary)); }
.docs-sidebar-sticky { position: sticky; top: 4.6rem; max-height: calc(100vh - 4.6rem); overflow-y: auto; padding: 1.5rem; }
.docs-home { display: block; margin-bottom: 1rem; color: var(--portal-ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.docs-nav { display: grid; gap: .2rem; }
.docs-nav a { padding: .55rem .7rem; border-radius: .55rem; color: var(--portal-muted); line-height: 1.25; text-decoration: none; }
.docs-nav a:hover,.docs-nav a:focus,.docs-nav a.active { color: var(--portal-primary); background: color-mix(in srgb, var(--portal-primary) 10%, transparent); }
.docs-nav a.active { font-weight: 700; }
.docs-content { min-width: 0; max-width: 70rem; padding: clamp(1.5rem, 4vw, 3.5rem); }
.docs-breadcrumb { display: flex; gap: .5rem; margin-bottom: 2rem; color: var(--portal-muted); font-size: .9rem; }
.documentation h1 { margin-bottom: 1.5rem; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; }
.documentation h2 { margin-top: 2.5rem; padding-top: .5rem; font-weight: 750; letter-spacing: -.025em; }
.documentation h3 { margin-top: 2rem; font-weight: 700; }
.documentation p,.documentation li { line-height: 1.75; }
.documentation img { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; border: 1px solid var(--bs-border-color); border-radius: .8rem; box-shadow: var(--portal-shadow); }
.documentation pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: .7rem; background: color-mix(in srgb, var(--portal-surface) 82%, #6c757d); }
.documentation code { overflow-wrap: anywhere; }
.documentation table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.documentation th,.documentation td { padding: .7rem; border: 1px solid var(--bs-border-color); vertical-align: top; }
.documentation th { background: color-mix(in srgb, var(--portal-primary) 8%, transparent); }
.documentation blockquote { padding: .8rem 1rem; border-left: .3rem solid var(--portal-accent); background: color-mix(in srgb, var(--portal-accent) 10%, transparent); }
.docs-source-note { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); color: var(--portal-muted); font-size: .85rem; }
.docs-search-results { display: grid; gap: .35rem; margin-top: .5rem; }
.docs-search-results a { display: grid; gap: .15rem; padding: .6rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--portal-surface); text-decoration: none; }
.docs-search-results span { display: -webkit-box; overflow: hidden; color: var(--portal-muted); font-size: .75rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.docs-search-empty { margin: .6rem 0; color: var(--portal-muted); font-size: .85rem; }
@media (max-width: 991.98px) { .docs-shell { display: block; }.docs-sidebar { border-right: 0; border-bottom: 1px solid var(--bs-border-color); }.docs-sidebar-sticky { position: static; max-height: none; }.docs-nav { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
