/* Documentation pages (/fr|en/documentation): additions to knowledge.css and lesson.css. Loaded by the "docs" layouts. */

.docs-subtitle { max-width: 760px; margin: .75rem 0 0; color: var(--l-muted, #5b6472); font-size: 1.15rem; line-height: 1.6; }
.docs-lang { display: inline-block; margin-top: 1rem; font-weight: 600; color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.docs-lang:hover { color: #0e1320; }

.docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-article .lesson-body { max-width: 820px; min-width: 0; }
.docs-article .lesson-body img { max-width: 100%; height: auto; border-radius: 12px; }
.docs-article .lesson-body :is(h2, h3) { scroll-margin-top: 96px; }
.docs-article .lesson-body table { display: block; overflow-x: auto; }
.docs-article .lesson-body pre { overflow-x: auto; }
/* The sidebar replaces the "in this guide" list stored at the top of the guides. */
.docs-article .documentation-article > nav.alert { display: none; }

.docs-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .92rem; line-height: 1.4; }
.docs-side h2 { margin: 0 0 .6rem; font: 700 .76rem/1.3 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5b6472; }
.docs-side ul { list-style: none; margin: 0; padding: 0; }
.docs-side li { margin: 0; }
.docs-side a { display: block; padding: .28rem 0; color: #2c3340; text-decoration: none; }
.docs-side a:hover, .docs-side a:focus-visible { color: #1d4ed8; text-decoration: underline; }
.docs-toc-h3 { padding-left: .85rem; font-size: .86rem; }
.docs-related { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #e7e3da; }

.docs-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 18px; background: #0d1424; color: #fff; }
.docs-cta h2 { margin: 0 0 .4rem; font-family: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.docs-cta p { margin: 0; max-width: 560px; color: #cbd5e1; }
.docs-cta a { padding: .8rem 1.4rem; border-radius: 999px; background: #fff; color: #0e1320; font-weight: 700; text-decoration: none; white-space: nowrap; }
.docs-cta a:hover { background: #e7e3da; }

@media (max-width: 991.98px) {
    .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .docs-side { position: static; max-height: 260px; padding: 1rem 1.15rem; border: 1px solid #e7e3da; border-radius: 14px; background: #fff; }
}

.docs-page .kb-back, .docs-article .lesson-back { display: flex; width: fit-content; margin-bottom: 1rem; }
.docs-page a.docs-lang { color: #1d4ed8; }
