:root {
	--bg: #f8fafc;
	--surface: #ffffff;
	--surface-2: #f1f5f9;
	--border: #e2e8f0;
	--text: #0f172a;
	--text-muted: #475569;
	--text-soft: #64748b;
	--primary: #1e40af;
	--primary-hover: #1d4ed8;
	--primary-soft: rgba(30, 64, 175, 0.1);
	--success: #059669;
	--success-soft: rgba(5, 150, 105, 0.12);
	--warning: #b45309;
	--warning-soft: rgba(245, 158, 11, 0.14);
	--info: #0369a1;
	--info-soft: rgba(14, 165, 233, 0.12);
	--code-bg: #0f172a;
	--code-text: #e2e8f0;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
	--radius: 12px;
	--topbar-h: 64px;
	--sidebar-w: 290px;
}

[data-theme="dark"] {
	--bg: #0b1120;
	--surface: #111827;
	--surface-2: #1e293b;
	--border: #273449;
	--text: #f8fafc;
	--text-muted: #cbd5e1;
	--text-soft: #94a3b8;
	--primary: #60a5fa;
	--primary-hover: #93c5fd;
	--primary-soft: rgba(96, 165, 250, 0.14);
	--success: #34d399;
	--success-soft: rgba(52, 211, 153, 0.14);
	--warning: #fbbf24;
	--warning-soft: rgba(251, 191, 36, 0.14);
	--info: #38bdf8;
	--info-soft: rgba(56, 189, 248, 0.14);
	--code-bg: #020617;
	--code-text: #e2e8f0;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--primary);
	text-decoration: none;
}

code {
	font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.87em;
	background: var(--surface-2);
	padding: 2px 6px;
	border-radius: 6px;
	border: 1px solid var(--border);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Topbar */
.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	height: var(--topbar-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 20px;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.topbar-left, .topbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
}

.brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #1e40af, #3b82f6);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	display: grid;
	place-items: center;
	letter-spacing: -0.02em;
	box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand-text strong {
	font-size: 15px;
	font-weight: 700;
}

.brand-text small {
	font-size: 11px;
	color: var(--text-soft);
}

.system-select {
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	outline: none;
}

.system-select:focus {
	border-color: var(--primary);
}

.topbar-center {
	flex: 1;
	max-width: 460px;
	display: flex;
	justify-content: center;
}

.search-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 12px;
	color: var(--text-soft);
	font-size: 13.5px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.search-trigger:hover {
	border-color: var(--primary);
	color: var(--text);
}

.search-trigger span {
	flex: 1;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-trigger kbd, .kbd-btn {
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-soft);
}

.nav-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
}

.nav-pill:hover {
	background: var(--primary);
	color: #fff;
}

.icon-btn {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	display: grid;
	place-items: center;
	cursor: pointer;
}

.icon-btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.mobile-only {
	display: none;
}

/* Hub Page */
.hub-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.hub-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
	color: #fff;
	border-radius: 20px;
	padding: 44px 40px;
	margin-bottom: 36px;
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}

.hub-hero::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(96, 165, 250, 0.35), transparent 70%);
	pointer-events: none;
}

.hub-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 14px;
}

.hub-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(26px, 3.6vw, 38px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hub-hero p {
	margin: 0 0 24px;
	max-width: 680px;
	color: rgba(241, 245, 249, 0.88);
	font-size: 15.5px;
}

.hub-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
	background: #ffffff;
	color: #0f172a;
}

.btn-primary:hover {
	background: #f1f5f9;
}

.btn-ghost-light {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost-light:hover {
	background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
	background: var(--primary);
	color: #fff;
}

.btn-accent:hover {
	background: var(--primary-hover);
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 18px;
}

.section-heading h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.section-heading span {
	font-size: 13px;
	color: var(--text-soft);
}

.systems-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 18px;
}

.system-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.system-card.is-ready:hover {
	transform: translateY(-2px);
	border-color: var(--primary);
	box-shadow: var(--shadow-md);
}

.system-card.is-planned {
	opacity: 0.78;
}

.system-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.system-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 16px;
}

.status-badge {
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

.status-ready {
	background: var(--success-soft);
	color: var(--success);
}

.status-planned {
	background: var(--surface-2);
	color: var(--text-soft);
}

.system-card h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.system-card p {
	margin: 0;
	font-size: 13.5px;
	color: var(--text-muted);
	flex: 1;
}

.tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--surface-2);
	color: var(--text-soft);
}

.system-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	font-size: 13px;
}

/* Docs Layout */
.docs-layout {
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr) 230px;
	min-height: calc(100vh - var(--topbar-h));
}

.docs-sidebar {
	position: sticky;
	top: var(--topbar-h);
	height: calc(100vh - var(--topbar-h));
	overflow-y: auto;
	background: var(--surface);
	border-right: 1px solid var(--border);
	padding: 18px 14px 40px;
}

.sidebar-role-filter {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}

.sidebar-role-filter label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-soft);
	margin-bottom: 8px;
}

.role-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.role-pill {
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text-muted);
	cursor: pointer;
}

.role-pill.active {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.role-locked-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 12.5px;
	font-weight: 700;
	border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
}

.role-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
	flex-shrink: 0;
}

.sidebar-group {
	margin-bottom: 18px;
}

.sidebar-group-title {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-soft);
	padding: 4px 10px 6px;
}

.sidebar-link {
	display: block;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 2px;
	transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-link:hover {
	background: var(--surface-2);
	color: var(--text);
}

.sidebar-link.active {
	background: var(--primary-soft);
	color: var(--primary);
	font-weight: 600;
}

/* Main Article */
.docs-main {
	padding: 32px 44px 72px;
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-soft);
	margin-bottom: 14px;
}

.article-header {
	padding-bottom: 22px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 26px;
}

.article-header h1 {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.article-summary {
	margin: 0 0 16px;
	font-size: 15.5px;
	color: var(--text-muted);
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.meta-chip {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--primary-soft);
	color: var(--primary);
}

.meta-time {
	font-size: 12px;
	color: var(--text-soft);
	margin-left: 4px;
}

.route-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.route-pill {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	cursor: pointer;
}

.route-pill:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* Content Blocks */
.content-block {
	margin-bottom: 26px;
}

.content-block h2 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 14px;
	scroll-margin-top: 84px;
}

.content-block p {
	margin: 0 0 12px;
	color: var(--text-muted);
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.info-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow-sm);
}

.info-card-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--primary);
	background: var(--primary-soft);
	padding: 2px 8px;
	border-radius: 6px;
	margin-bottom: 8px;
}

.info-card h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
}

.info-card p {
	margin: 0;
	font-size: 13.5px;
}

/* Steps */
.steps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.step-item {
	display: flex;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 18px;
}

.step-num {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.step-body h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
}

.step-body p {
	margin: 0;
	font-size: 14px;
}

/* Callouts */
.callout {
	border-radius: var(--radius);
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-left-width: 4px;
}

.callout-info {
	background: var(--info-soft);
	border-left-color: var(--info);
}

.callout-warning {
	background: var(--warning-soft);
	border-left-color: var(--warning);
}

.callout-tip {
	background: var(--success-soft);
	border-left-color: var(--success);
}

.callout-title {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 4px;
	color: var(--text);
}

.callout-body {
	font-size: 13.5px;
	color: var(--text-muted);
	white-space: pre-line;
}

/* Tables */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.doc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.doc-table th, .doc-table td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.doc-table th {
	background: var(--surface-2);
	font-weight: 700;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-soft);
}

.doc-table tr:last-child td {
	border-bottom: none;
}

/* Code Blocks */
.code-box {
	background: var(--code-bg);
	color: var(--code-text);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid #1e293b;
}

.code-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 14px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 12px;
	color: #94a3b8;
}

.copy-btn {
	background: rgba(255, 255, 255, 0.1);
	color: #f8fafc;
	border: none;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
}

.copy-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.code-box pre {
	margin: 0;
	padding: 16px;
	overflow-x: auto;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	line-height: 1.55;
}

.code-box pre code {
	background: transparent;
	border: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

/* Tutorials Kit Gallery & Media Showcase */
.tutorials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 16px;
}

.tutorial-flow-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--shadow-sm);
}

.tutorial-flow-card video,
.media-video {
	width: 100%;
	border-radius: 10px;
	background: #020617;
	border: 1px solid var(--border);
	display: block;
}

.media-showcase {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.media-video-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	box-shadow: var(--shadow-sm);
}

.media-video-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.youtube-embed-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #020617;
	border: 1px solid var(--border);
}

.youtube-embed-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.status-youtube {
	background: rgba(220, 38, 38, 0.12);
	color: #dc2626;
}

.youtube-label-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.youtube-open-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--primary);
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--primary-soft);
}

.youtube-open-link:hover {
	background: var(--primary);
	color: #fff;
}

[data-theme="dark"] .status-youtube {
	background: rgba(248, 113, 113, 0.16);
	color: #f87171;
}

.shot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.shot-grid.pdf-gallery {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}

.shot-grid.pdf-gallery.shot-grid-single {
	grid-template-columns: minmax(0, 680px);
}

.shot-grid.pdf-gallery .shot-card img {
	aspect-ratio: 16 / 10;
	object-fit: contain;
	object-position: center;
	padding: 6px;
	background: var(--surface-2);
}

.shot-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.shot-card:hover {
	transform: translateY(-2px);
	border-color: var(--primary);
	box-shadow: var(--shadow-md);
}

.shot-card img,
.shot-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top center;
	display: block;
	background: var(--surface-2);
}

.shot-card-caption {
	padding: 10px 12px;
	border-top: 1px solid var(--border);
}

.shot-card-caption strong {
	display: block;
	font-size: 13px;
	color: var(--text);
	margin-bottom: 2px;
}

.shot-card-caption span {
	display: block;
	font-size: 12px;
	color: var(--text-soft);
	line-height: 1.4;
}

.shot-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
}

.shot-strip img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top center;
	border-radius: 6px;
	border: 1px solid var(--border);
	cursor: zoom-in;
}

.shot-strip img:hover {
	border-color: var(--primary);
}

/* Lightbox Modal */
.lightbox-backdrop {
	padding: 28px 16px;
	align-items: center;
}

.lightbox-dialog {
	width: 100%;
	max-width: 1140px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.lightbox-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 13.5px;
	font-weight: 600;
}

.lightbox-dialog img {
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
	display: block;
	background: #0b1120;
}

/* Right TOC */
.docs-toc {
	position: sticky;
	top: var(--topbar-h);
	height: calc(100vh - var(--topbar-h));
	overflow-y: auto;
	padding: 32px 18px;
	border-left: 1px solid var(--border);
}

.toc-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-soft);
	margin-bottom: 10px;
}

.toc-link {
	display: block;
	font-size: 12.5px;
	color: var(--text-soft);
	padding: 4px 0;
}

.toc-link:hover {
	color: var(--primary);
}

/* Prev/Next Nav */
.article-nav {
	margin-top: 42px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.article-nav-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
}

.article-nav-card:hover {
	border-color: var(--primary);
}

.article-nav-card small {
	font-size: 11.5px;
	color: var(--text-soft);
}

.article-nav-card strong {
	font-size: 14px;
	color: var(--primary);
}

.article-nav-card.next {
	text-align: right;
}

/* Search Modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 80px 16px 24px;
}

.modal-backdrop[hidden] {
	display: none;
}

.search-modal {
	width: 100%;
	max-width: 620px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.search-modal-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
}

.search-modal-header input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	color: var(--text);
	font-size: 15px;
}

.search-results {
	max-height: 400px;
	overflow-y: auto;
	padding: 8px;
}

.search-item {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--text);
}

.search-item:hover {
	background: var(--surface-2);
}

.search-item-title {
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.search-item-sub {
	font-size: 12.5px;
	color: var(--text-soft);
	margin-top: 2px;
}

.toast {
	position: fixed;
	bottom: 22px;
	right: 22px;
	z-index: 120;
	background: #0f172a;
	color: #fff;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1120px) {
	.docs-layout {
		grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	}
	.docs-toc {
		display: none;
	}
}

@media (max-width: 820px) {
	.mobile-only {
		display: grid;
	}
	.system-switcher, .nav-pill span {
		display: none;
	}
	.docs-layout {
		grid-template-columns: 1fr;
	}
	.docs-sidebar {
		position: fixed;
		left: 0;
		top: var(--topbar-h);
		width: 280px;
		z-index: 50;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: var(--shadow-md);
	}
	.docs-sidebar.open {
		transform: translateX(0);
	}
	.docs-main {
		padding: 24px 18px 60px;
	}
	.hub-hero {
		padding: 28px 22px;
	}
	.article-nav {
		grid-template-columns: 1fr;
	}
}
