/* Docs layout: content + sticky TOC sidebar */
.docs-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.docs-content {
	flex: 1;
	min-width: 0;
}

.docs-page-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 24px 0;
	color: #111827;
}

/* Markdown content styling */
.docs-content h2 {
	font-size: 20px;
	font-weight: 600;
	margin: 40px 0 12px 0;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
	color: #111827;
}

.docs-content h2:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.docs-content h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 28px 0 8px 0;
	color: #1f2937;
}

.docs-content p {
	margin: 0 0 12px 0;
	line-height: 1.7;
	color: #374151;
}

.docs-content ul, .docs-content ol {
	margin: 0 0 16px 0;
	padding-left: 24px;
	color: #374151;
}

.docs-content li {
	margin-bottom: 6px;
	line-height: 1.6;
}

.docs-content code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13px;
	color: #1f2937;
}

.docs-content pre {
	background: #1f2937;
	color: #e5e7eb;
	padding: 16px;
	border-radius: 8px;
	overflow-x: auto;
	margin: 0 0 16px 0;
	font-size: 13px;
	line-height: 1.5;
}

.docs-content pre code {
	background: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.docs-content a {
	color: #2563eb;
	text-decoration: none;
}
.docs-content a:hover {
	text-decoration: underline;
}

.docs-content strong {
	color: #111827;
}

.docs-content blockquote {
	border-left: 3px solid #2563eb;
	margin: 0 0 16px 0;
	padding: 8px 16px;
	background: #eff6ff;
	border-radius: 0 6px 6px 0;
	color: #1e40af;
}

.docs-content blockquote p {
	margin: 0;
	color: inherit;
}

/* TOC sidebar */
.docs-toc {
	width: 220px;
	flex-shrink: 0;
	position: sticky;
	top: 16px;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
}

.docs-toc-inner {
	border-left: 2px solid #e5e7eb;
	padding-left: 16px;
}

.docs-toc-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin-bottom: 8px;
}

.docs-toc-page {
	display: block;
	padding: 4px 0;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
}
.docs-toc-page:hover { color: #2563eb; }
.docs-toc-page.active {
	color: #2563eb;
	font-weight: 600;
}

.docs-toc-sections {
	margin: 2px 0 4px 0;
	padding-left: 12px;
	border-left: 1px solid #e5e7eb;
}

.docs-toc-link {
	display: block;
	padding: 3px 0;
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
	transition: color 0.15s;
}
.docs-toc-link:hover { color: #2563eb; }
.docs-toc-link.active { color: #2563eb; font-weight: 500; }

.docs-toc-sub {
	padding-left: 12px;
	font-size: 12px;
}

/* Public site wrapper */
.docs-public {
	padding: 48px 0 64px;
}

/* Responsive: hide TOC on narrow screens */
@media (max-width: 900px) {
	.docs-toc { display: none; }
}
