/* CAFE Docs */

/* Cyboweb brand fonts, served from the main site. */
@font-face{font-family:"Manrope";font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/xn7gYHE41ni1AdIRggexSg.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/xn7gYHE41ni1AdIRggmxSuXd.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:600 800;font-display:swap;src:url(/fonts/plus-jakarta-sans-latin-600-800.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Rules target separate components; their order is not about specificity. */
/* stylelint-disable no-descending-specificity */

:root {
	--bg: #f3f6fa;
	--glow: rgb(20 120 240 / 12%);
	--surface: #fff;
	--sidebar: #f8fafc;
	--text: #101820;
	--muted: #475569;
	--faint: #8391a7;
	--border: #dfe6f2;
	--accent: #1478f0;
	--accent-strong: #0b5ed7;
	--accent-soft: #e8f2fe;
	--on-accent: #fff;
	--code-bg: #f5f8fe;
	--code-text: #1e293b;
	--inline-code: #edf2fd;
	--inline-code-text: #0b4fb3;
	--table-head: #f3f7fe;
	--mark: #ffe680;
	--shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);
	--t-kw: #0b4fb3;
	--t-str: #9a5b00;
	--t-var: #b4471c;
	--t-fn: #1478f0;
	--t-num: #a16207;
	--t-com: #8a8f98;
	--t-type: #31506f;
	--t-key: #0b5ed7;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
	--mono: ui-monospace, "Cascadia Code", "SF Mono", menlo, consolas, monospace;
	--top: 60px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme="light"]) {
		--bg: #0a1017;
		--glow: rgb(74 168 255 / 10%);
		--surface: #101820;
		--sidebar: #0c131b;
		--text: #e2e8f0;
		--muted: #a3b1c6;
		--faint: #6b7a90;
		--border: #1f2b3a;
		--accent: #4aa8ff;
		--accent-strong: #8cc7ff;
		--accent-soft: #11263f;
		--on-accent: #06121f;
		--code-bg: #070b10;
		--code-text: #d5deeb;
		--inline-code: #16263a;
		--inline-code-text: #b9dcff;
		--table-head: #0e1722;
		--mark: #6b5a12;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
		--t-kw: #4aa8ff;
		--t-str: #ffd666;
		--t-var: #fdba74;
		--t-fn: #b9dcff;
		--t-num: #fcd34d;
		--t-com: #64748b;
		--t-type: #9fb8d4;
		--t-key: #7cc0ff;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #0a1017;
	--glow: rgb(74 168 255 / 10%);
	--surface: #101820;
	--sidebar: #0c131b;
	--text: #e2e8f0;
	--muted: #a3b1c6;
	--faint: #6b7a90;
	--border: #1f2b3a;
	--accent: #4aa8ff;
	--accent-strong: #8cc7ff;
	--accent-soft: #11263f;
	--on-accent: #06121f;
	--code-bg: #070b10;
	--code-text: #d5deeb;
	--inline-code: #16263a;
	--inline-code-text: #b9dcff;
	--table-head: #0e1722;
	--mark: #6b5a12;
	--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
	--t-kw: #4aa8ff;
	--t-str: #ffd666;
	--t-var: #fdba74;
	--t-fn: #b9dcff;
	--t-num: #fcd34d;
	--t-com: #64748b;
	--t-type: #9fb8d4;
	--t-key: #7cc0ff;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: calc(var(--top) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: radial-gradient(1400px 520px at 50% -260px, var(--glow), transparent 70%) no-repeat, var(--bg);
	color: var(--text);
	font: 16px/1.65 var(--font);
}

a {
	color: var(--accent);
	text-underline-offset: 2px;
}

a:hover {
	color: var(--accent-strong);
}

svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

kbd {
	display: inline-block;
	min-width: 20px;
	padding: 0 5px;
	border: 1px solid var(--border);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: var(--surface);
	color: var(--muted);
	font: 12px/18px var(--mono);
	text-align: center;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 8px 12px;
	background: var(--accent);
	color: var(--on-accent);
	border-radius: 6px;
}

.skip-link:focus {
	left: 8px;
}

/* Top bar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--top);
	padding: 0 20px;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}

.brand:hover {
	color: var(--text);
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.brand-text {
	display: grid;
	line-height: 1.15;
}

.brand-name {
	font-size: 16px;
}

.brand-sub {
	color: var(--faint);
	font-size: 12px;
	font-weight: 500;
}

.search-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(420px, 100%);
	margin-left: auto;
	padding: 8px 10px 8px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	color: var(--faint);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.search-trigger span {
	flex: 1;
	text-align: left;
}

.search-trigger:hover {
	border-color: var(--accent);
}

.icon-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: none;
	color: var(--muted);
	cursor: pointer;
}

.icon-btn:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.menu-btn {
	display: none;
}

/* Shell */

.shell {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr) 230px;
	max-width: 1480px;
	margin: 0 auto;
}

/* Sidebar */

.sidebar {
	position: sticky;
	top: var(--top);
	height: calc(100vh - var(--top));
	overflow-y: auto;
	padding: 18px 14px 40px;
	border-right: 1px solid var(--border);
	background: var(--sidebar);
	scrollbar-width: thin;
}

.nav-section {
	margin-bottom: 2px;
}

.nav-section summary {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px;
	border-radius: 8px;
	color: var(--text);
	font-size: 14px;
	font-weight: 650;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.nav-section summary::-webkit-details-marker {
	display: none;
}

.nav-section summary:hover {
	background: var(--accent-soft);
}

.nav-section summary svg {
	width: 14px;
	height: 14px;
	color: var(--faint);
	transition: transform 0.15s;
}

.nav-section[open] summary svg {
	transform: rotate(90deg);
}

.nav-num {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
}

.nav-title {
	flex: 1;
}

.nav-section ul {
	margin: 2px 0 10px 19px;
	padding: 0 0 0 10px;
	border-left: 1px solid var(--border);
	list-style: none;
}

.nav-section li a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 8px;
	border-radius: 7px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.nav-section li a:hover {
	color: var(--text);
	background: var(--accent-soft);
}

.nav-section li a.is-current {
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
}

.nav-label.is-code {
	font-family: var(--mono);
	font-size: 12.5px;
}

.backdrop {
	display: none;
}

/* Content */

.content {
	min-width: 0;
	padding: 28px 48px 40px;
}

.is-doc .content {
	max-width: 940px;
	margin: 24px 0 32px 28px;
	padding: 36px 52px 28px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--faint);
	font-size: 13px;
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--accent);
}

.doc {
	overflow-wrap: break-word;
}

.doc h1 {
	margin: 6px 0 18px;
	font-size: clamp(28px, 4vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.doc h2 {
	margin: 44px 0 12px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	font-size: 24px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.doc h3 {
	margin: 30px 0 8px;
	font-size: 19px;
	line-height: 1.35;
}

.doc h4 {
	margin: 24px 0 6px;
	font-size: 16px;
}

.doc h2,
.doc h3,
.doc h4 {
	position: relative;
}

.anchor {
	position: absolute;
	left: -22px;
	width: 22px;
	color: var(--faint);
	text-decoration: none;
	opacity: 0;
	font-weight: 400;
}

h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
.anchor:focus {
	opacity: 1;
}

.doc p,
.doc ul,
.doc ol {
	margin: 0 0 16px;
}

.doc li {
	margin: 4px 0;
}

.doc li > ul,
.doc li > ol {
	margin: 4px 0;
}

.doc code {
	padding: 1px 6px;
	border-radius: 5px;
	background: var(--inline-code);
	color: var(--inline-code-text);
	font-family: var(--mono);
	font-size: 0.875em;
}

.doc a code {
	color: inherit;
}

.doc blockquote {
	margin: 20px 0;
	padding: 12px 18px;
	border-left: 4px solid var(--accent);
	border-radius: 0 10px 10px 0;
	background: var(--accent-soft);
}

.doc blockquote p:last-child {
	margin-bottom: 0;
}

.doc hr {
	margin: 32px 0;
	border: 0;
	border-top: 1px solid var(--border);
}

.doc img {
	max-width: 100%;
}

.table-wrap {
	margin: 0 0 20px;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
}

.table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.table-wrap th,
.table-wrap td {
	padding: 9px 14px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.table-wrap th {
	background: var(--table-head);
	font-size: 13px;
	font-weight: 650;
	white-space: nowrap;
}

.table-wrap tr:last-child td {
	border-bottom: 0;
}

.table-wrap code {
	white-space: nowrap;
}

/* Code blocks */

.code-block {
	position: relative;
	margin: 0 0 20px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--code-bg);
}

.code-block[data-lang]::before {
	content: attr(data-lang);
	position: absolute;
	top: 7px;
	right: 64px;
	color: var(--faint);
	font: 600 11px/1 var(--mono);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.code-block pre {
	margin: 0;
	padding: 16px 18px;
	overflow-x: auto;
	color: var(--code-text);
	font: 13.5px/1.6 var(--mono);
	tab-size: 4;
	font-variant-ligatures: none;
}

.code-block code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.copy-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	padding: 3px 9px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--surface);
	color: var(--muted);
	font: 600 11px/1.6 var(--font);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s;
}

.code-block:hover .copy-btn,
.copy-btn:focus {
	opacity: 1;
}

.t-kw {
	color: var(--t-kw);
}

.t-str {
	color: var(--t-str);
}

.t-var {
	color: var(--t-var);
}

.t-fn {
	color: var(--t-fn);
}

.t-num {
	color: var(--t-num);
}

.t-com {
	color: var(--t-com);
	font-style: italic;
}

.t-type {
	color: var(--t-type);
}

.t-key {
	color: var(--t-key);
}

/* Page actions + pager */

.source {
	color: var(--faint);
	font-size: 13px;
}

.source code {
	font-family: var(--mono);
}

.pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 24px;
}

.pager-card {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pager-card:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow);
	color: var(--text);
}

.pager-card.is-next {
	text-align: right;
}

.pager-dir {
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
}

.pager-title {
	font-weight: 650;
}

.pager-section {
	color: var(--faint);
	font-size: 12.5px;
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-top: 48px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
	color: var(--faint);
	font-size: 13px;
}

.site-footer code {
	font-family: var(--mono);
}

/* On this page */

.toc {
	padding: 28px 18px;
}

.toc-inner {
	position: sticky;
	top: calc(var(--top) + 24px);
	max-height: calc(100vh - var(--top) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.toc-title {
	margin: 0 0 8px;
	color: var(--faint);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--border);
}

.toc a {
	display: block;
	margin-left: -1px;
	padding: 4px 0 4px 12px;
	border-left: 2px solid transparent;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
}

.toc .lvl-3 a {
	padding-left: 24px;
	font-size: 12.5px;
}

.toc a:hover {
	color: var(--text);
}

.toc a.is-active {
	border-left-color: var(--accent);
	color: var(--accent);
	font-weight: 600;
}

/* Top navigation */

.topnav {
	display: flex;
	gap: 4px;
	margin-left: 24px;
}

.topnav a {
	padding: 7px 12px;
	border-radius: 8px;
	color: var(--muted);
	font-size: 14.5px;
	font-weight: 550;
	text-decoration: none;
	white-space: nowrap;
}

.topnav a:hover,
.topnav a.is-active {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Home */

.about {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 32px;
	align-items: center;
	margin-top: -72px;
	padding: 28px 32px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.about-text p {
	margin: 0 0 12px;
	color: var(--muted);
}

.about-text p.about-by {
	margin: 0;
	color: var(--text);
}

.about-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-facts li {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--accent-soft);
}

.about-facts strong {
	color: var(--accent);
	font-size: 20px;
}

.about-facts span {
	color: var(--muted);
	font-size: 13.5px;
}

.is-home .shell {
	display: block;
	max-width: none;
}

.is-home .content {
	padding: 0;
}

.hero {
	padding: 72px 24px 128px;
	background:
		radial-gradient(900px 400px at 85% -10%, rgb(74 168 255 / 35%), transparent 60%),
		radial-gradient(700px 380px at 0% 120%, rgb(255 204 0 / 12%), transparent 60%),
		linear-gradient(135deg, #101820 0%, #0b5ed7 60%, #1478f0 100%);
	color: #fff;
	text-align: center;
}

.hero-inner {
	max-width: 760px;
	margin: 0 auto;
}

.eyebrow {
	margin: 0;
	color: #ffcc00;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 10px 0 12px;
	font-size: clamp(36px, 6vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.lead {
	max-width: 620px;
	margin: 0 auto 30px;
	color: #dbeafe;
	font-size: 18.5px;
}

.hero-search {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	padding: 16px 18px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: #64748b;
	font: inherit;
	font-size: 17px;
	text-align: left;
	box-shadow: 0 20px 50px rgb(2 6 23 / 35%);
	cursor: text;
}

.hero-search svg {
	width: 22px;
	height: 22px;
	color: #1478f0;
}

.hero-search span {
	flex: 1;
}

.hero-search kbd {
	border-color: #e2e8f0;
	background: #f1f5f9;
	color: #64748b;
}

.hero-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 22px 0 0;
	color: #bfdbfe;
	font-size: 14px;
}

.hero-links a {
	padding: 4px 12px;
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: 99px;
	background: rgb(255 255 255 / 8%);
	color: #fff;
	text-decoration: none;
}

.hero-links a:hover {
	background: rgb(255 255 255 / 18%);
	color: #fff;
}

.home-body {
	display: grid;
	gap: 56px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 24px;
}

.is-home .site-footer {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 18px 24px 32px;
}

.section-title {
	margin: 0 0 18px;
	font-size: 22px;
	letter-spacing: -0.01em;
}

.start-row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.steps {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}

.steps a:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--text);
}

.steps strong {
	display: block;
	font-size: 15.5px;
}

.steps a span span {
	color: var(--muted);
	font-size: 13.5px;
}

.step-num {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 14px;
	font-weight: 700;
}

.start-code .code-block {
	margin-bottom: 10px;
}

.start-note {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.start-note code {
	font-family: var(--mono);
	font-size: 13px;
}

.topics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topic {
	display: flex;
	flex-direction: column;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.topic:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.topic-head {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	text-decoration: none;
}

.topic-head:hover {
	color: var(--accent);
}

.topic-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: var(--accent-soft);
	color: var(--accent);
}

.topic-icon svg {
	width: 22px;
	height: 22px;
}

.topic-title {
	font-size: 18px;
	font-weight: 700;
}

.topic p {
	margin: 12px 0;
	color: var(--muted);
	font-size: 14.5px;
}

.topic ul {
	display: grid;
	gap: 4px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

.topic ul a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	text-decoration: none;
}

.topic ul a:hover {
	color: var(--accent);
}

.topic-foot {
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	color: var(--faint);
	font-size: 13px;
}

.topic-foot a {
	font-weight: 600;
	text-decoration: none;
}

.home-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.popular ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
}

.popular li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 15px;
}

.popular li:last-child {
	border-bottom: 0;
}

.popular li a {
	font-weight: 600;
	text-decoration: none;
}

.popular li span {
	color: var(--faint);
	font-size: 13px;
	white-space: nowrap;
}

.link-btn {
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 1100px) {

	.topnav {
		display: none;
	}

	.topics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 800px) {

	.about,
	.start-row,
	.home-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.about {
		padding: 20px;
	}

	.start-row {
		padding: 20px;
	}

	.topics {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 48px 16px 112px;
	}

	.home-body {
		padding: 0 16px 16px;
	}
}

@media (min-width: 901px) {

	.is-home .sidebar,
	.is-home .menu-btn {
		display: none;
	}
}


/* Search */

.search-modal {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 10vh 16px 16px;
	background: rgb(10 14 20 / 45%);
	backdrop-filter: blur(2px);
}

.search-modal[hidden] {
	display: none;
}

.search-panel {
	display: flex;
	flex-direction: column;
	width: min(680px, 100%);
	max-height: 76vh;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: 0 24px 64px rgb(0 0 0 / 30%);
	overflow: hidden;
}

.search-field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
	color: var(--faint);
}

.search-field input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: none;
	color: var(--text);
	font: inherit;
	font-size: 17px;
}

.search-field input::-webkit-search-cancel-button {
	display: none;
}

.search-results {
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	list-style: none;
}

.search-results li a {
	display: grid;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 9px;
	color: var(--text);
	text-decoration: none;
}

.search-results li[aria-selected="true"] a,
.search-results li a:hover {
	background: var(--accent-soft);
}

.sr-section {
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sr-title {
	font-weight: 650;
}

.sr-heading {
	color: var(--muted);
	font-weight: 500;
}

.sr-snippet {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.search-results mark {
	border-radius: 3px;
	background: var(--mark);
	color: inherit;
}

.search-empty {
	padding: 22px 12px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.search-foot {
	display: flex;
	gap: 16px;
	padding: 9px 16px;
	border-top: 1px solid var(--border);
	color: var(--faint);
	font-size: 12px;
}

.search-foot kbd {
	margin-right: 3px;
}

body.search-open {
	overflow: hidden;
}

/* Responsive */

@media (max-width: 1240px) {

	.shell {
		grid-template-columns: 270px minmax(0, 1fr);
	}

	.toc {
		display: none;
	}
}

@media (max-width: 900px) {

	.is-doc .content {
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.shell,
	.is-home .shell {
		grid-template-columns: minmax(0, 1fr);
	}

	.menu-btn {
		display: grid;
	}

	.sidebar {
		position: fixed;
		top: var(--top);
		left: 0;
		z-index: 40;
		width: min(320px, 86vw);
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: var(--shadow);
	}

	.nav-open .sidebar {
		transform: none;
	}

	.nav-open .backdrop {
		display: block;
		position: fixed;
		inset: var(--top) 0 0;
		z-index: 35;
		background: rgb(10 14 20 / 40%);
	}

	.content {
		padding: 22px 16px 32px;
	}
}

@media (max-width: 600px) {

	.topbar {
		gap: 8px;
		padding: 0 10px;
	}

	.search-trigger span,
	.search-trigger kbd {
		display: none;
	}

	.search-trigger {
		width: auto;
		padding: 9px;
	}

	.pager {
		grid-template-columns: 1fr;
	}

	.path-card {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 16px;
	}

	.path-num {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.doc h2 {
		font-size: 21px;
	}
}

@media print {

	.topbar,
	.sidebar,
	.toc,
	.pager,
	.copy-btn {
		display: none;
	}

	.shell {
		display: block;
	}
}

/* Screenshots */

.shot {
	margin: 8px 0 28px;
}

.shot a {
	display: block;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow);
	cursor: zoom-in;
}

.shot img {
	display: block;
	width: 100%;
	height: auto;
}

.shot figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 13.5px;
	text-align: center;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 70;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgb(10 14 20 / 82%);
	cursor: zoom-out;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgb(0 0 0 / 50%);
}

@media (max-width: 600px) {

	.hero-search {
		width: 100%;
		padding: 14px 16px;
		font-size: 16px;
	}

	.hero-search span {
		display: block;
	}

	.hero-search kbd {
		display: none;
	}

	.brand-name {
		font-size: 15px;
	}

	.brand-sub {
		display: none;
	}
}

/* Company card */

.home-side {
	display: grid;
	gap: 20px;
}

.promo {
	padding: 24px;
	border-radius: 16px;
	background:
		radial-gradient(500px 240px at 100% 0%, rgb(74 168 255 / 30%), transparent 60%),
		linear-gradient(135deg, #101820 0%, #0b5ed7 70%, #1478f0 100%);
	color: #fff;
}

.promo-tag {
	margin: 0;
	color: #ffcc00;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.promo h2 {
	margin: 4px 0 10px;
	font-size: 22px;
}

.promo p {
	margin: 0 0 14px;
	color: #dbeafe;
	font-size: 15px;
}

.promo ul {
	display: grid;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

.promo li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.promo li svg {
	width: 16px;
	height: 16px;
	color: #ffcc00;
}

.promo-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 10px;
	background: #ffcc00;
	color: #101820;
	font-weight: 700;
	text-decoration: none;
}

.promo-btn:hover {
	background: #ffd633;
	color: #101820;
}

.promo p.promo-contact {
	margin: 12px 0 0;
	font-size: 14px;
}

.promo-contact a {
	color: #fff;
}

h1, h2, h3, h4, .brand-name, .nav-title {
	font-family: "Plus Jakarta Sans", var(--font);
}

/* Cyboweb header */
.topbar {
	border-bottom: 1px solid var(--border);
	box-shadow: 0 1px 0 rgb(16 24 32 / 3%), 0 6px 18px rgb(16 24 32 / 5%);
}

.brand {
	gap: 12px;
}

.brand-logo {
	flex: none;
	width: 40px;
	height: 40px;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgb(16 24 32 / 18%));
}

.brand-name {
	font-weight: 800;
	letter-spacing: -0.01em;
}

.brand-sub {
	margin-top: 2px;
}

.brand-company {
	color: var(--accent);
	font-weight: 700;
}
