@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Dastkhat"; src: url(fonts/dastkhat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	/* brand: the slate and coral of the plugin icon */
	--ink: #18202b;
	--ink-2: #222c3a;
	--ink-line: #35425380;
	--coral: #ff8a5b;
	--paper: #f5f3ee;

	--bg: #fbfaf7;
	--surface: #ffffff;
	--sunk: #f1eee8;
	--text: #1b232e;
	--muted: #5b6573;
	--line: #e2ddd3;
	--link: #ad3f15;
	--mark: #ffe0d1;
	--focus: #d9541f;
	--code-bg: #f3f1ec;

	--display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
	--body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--fa: "Dastkhat", Tahoma, sans-serif;

	--top: 60px;
	--r: 10px;
	color-scheme: light;
}
[data-theme="dark"] {
	--bg: #0f141b;
	--surface: #151c26;
	--sunk: #121821;
	--text: #e7e5e0;
	--muted: #9ba4b0;
	--line: #273140;
	--link: #ff9d75;
	--mark: #5a2b18;
	--focus: #ff8a5b;
	--code-bg: #111821;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); }
:lang(fa) { font-family: var(--fa); }
[lang="fa"] body, body:lang(fa) { font-size: 17px; line-height: 1.95; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
kbd { font: 12px/1 var(--mono); padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); background: var(--surface); }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 10px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.home .top { background: color-mix(in srgb, var(--ink) 90%, transparent); border-color: var(--ink-line); color: #f5f3ee; --line: #3a475a; --surface: #222c3a; --muted: #aab3bf; }
.top-in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.01em; margin-inline-end: 12px; }
.top-nav { display: flex; gap: 2px; }
.top-nav a { color: inherit; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 15px; opacity: .82; }
.top-nav a:hover, .top-nav a[aria-current] { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.search-btn { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; height: 36px; min-width: 210px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.search-btn kbd { margin-inline-start: auto; }
.search-btn svg { width: 17px; height: 17px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.menu-btn { display: none; margin-inline-start: -6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn:lang(fa) { font-family: var(--fa); }
.btn-dl { background: var(--coral); color: var(--ink); }
.btn-dl:hover { background: #ff9d75; transform: translateY(-1px); }
.btn-dl svg { stroke-width: 2.2; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-ghost { border: 1px solid currentColor; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* ---------- home ---------- */
.home { background: var(--bg); }
.hero { background: var(--ink); color: #f5f3ee; position: relative; overflow: hidden; margin-top: calc(-1 * var(--top)); padding-top: var(--top); }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% 35%; height: 90%; background: radial-gradient(closest-side, #ff8a5b40, transparent); pointer-events: none; }
.hero-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 72px 24px 88px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--coral); font: 600 14px/1.2 var(--body); letter-spacing: .02em; }
.hero h1 { margin: 0; font: 760 clamp(38px, 5.4vw, 66px)/1.02 var(--display); letter-spacing: -.03em; font-stretch: 92%; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #c9cfd8; font-weight: 500; }
.hero-lede { max-width: 34em; margin: 24px 0 32px; font-size: 18px; line-height: 1.6; color: #c9cfd8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .btn-ghost { color: #f5f3ee; border-color: #5b6a80; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; color: #98a3b2; font-size: 14px; }
.hero-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #5b6a80; vertical-align: middle; margin-inline-end: 18px; margin-inline-start: -10px; }

/* the delivery board: one submission, three receivers */
.board { position: relative; display: grid; grid-template-columns: 1fr; gap: 18px; font-size: 14px; }
.b-form { justify-self: start; width: min(300px, 88%); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px 16px 14px; box-shadow: 0 18px 40px -18px #000; position: relative; z-index: 1; }
.b-cap { display: flex; justify-content: space-between; margin: 0 0 10px; font-weight: 700; }
.b-cap span + span { font: 12px var(--mono); color: #7a8391; font-weight: 400; }
.b-form dl { margin: 0; display: grid; gap: 6px; }
.b-form dl div { background: #fff; border: 1px solid #e2ddd3; border-radius: 7px; padding: 5px 9px; }
.b-form dt { font-size: 11px; color: #7a8391; line-height: 1.3; }
.b-form dd { margin: 0; line-height: 1.35; }
.b-send { display: inline-block; margin-top: 10px; padding: 6px 16px; border-radius: 7px; background: var(--ink); color: #f5f3ee; font-weight: 600; font-size: 13px; }
.b-out { list-style: none; margin: 0; padding: 0 0 0 44px; display: grid; gap: 12px; position: relative; }
.b-out::before { content: ""; position: absolute; inset-inline-start: 18px; top: -18px; bottom: 30px; border-inline-start: 2px dashed #ff8a5b80; }
.b-out li { position: relative; background: var(--ink-2); border: 1px solid #35425399; border-radius: 12px; padding: 10px 12px 10px; }
.b-out li::before { content: ""; position: absolute; inset-inline-start: -27px; top: 22px; width: 26px; border-top: 2px dashed #ff8a5b80; }
.b-out li::after { content: ""; position: absolute; inset-inline-start: -31px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px #ff8a5b33; }
.b-where { margin: 0 0 7px; color: #98a3b2; font-size: 12.5px; }
.b-where span { color: #f5f3ee; font-weight: 600; margin-inline-end: 4px; }
.bubble { margin: 0; background: #2c3747; border-radius: 10px; padding: 8px 11px; color: #e9ecf0; line-height: 1.45; }
.b-tg .bubble { border-end-start-radius: 3px; }
pre.bubble { font: 12px/1.5 var(--mono); white-space: pre; overflow: hidden; }
.glass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 0; }
.glass span { text-align: center; padding: 5px; border-radius: 7px; background: #ffffff14; backdrop-filter: blur(4px); color: #e9ecf0; font-size: 12.5px; }
.b-ok { position: absolute; top: 9px; inset-inline-end: 12px; margin: 0; font-size: 12px; color: #7ee2a8; display: flex; align-items: center; gap: 5px; }
.b-ok::before { content: ""; width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
	.b-form { animation: rise .5s .1s both cubic-bezier(.2, .7, .2, 1); }
	.b-out li { animation: rise .45s both cubic-bezier(.2, .7, .2, 1); }
	.b-out li:nth-child(1) { animation-delay: .55s; }
	.b-out li:nth-child(2) { animation-delay: .8s; }
	.b-out li:nth-child(3) { animation-delay: 1.05s; }
	.b-ok { animation: fade .3s both; }
	.b-out li:nth-child(1) .b-ok { animation-delay: 1.3s; }
	.b-out li:nth-child(2) .b-ok { animation-delay: 1.5s; }
	.b-out li:nth-child(3) .b-ok { animation-delay: 1.7s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }

.band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.band h2 { margin: 0; font: 720 clamp(30px, 3.6vw, 44px)/1.08 var(--display); letter-spacing: -.025em; font-stretch: 94%; }
.band h2:lang(fa) { font-family: var(--fa); letter-spacing: 0; font-weight: 800; }
.sub { margin: 12px 0 0; max-width: 40em; color: var(--muted); font-size: 18px; }
.more { margin: 28px 0 0; font-weight: 600; }

.channels h2 .big { color: var(--link); }
.ch-list { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ch-list div { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.ch-list div:not(:nth-child(3n + 1)) { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.ch-list dt { font: 700 19px/1.2 var(--display); margin-bottom: 6px; }
.ch-list dd { margin: 0; color: var(--muted); }

.shots { overflow: hidden; }
.strip { list-style: none; margin: 40px 0 0; padding: 0 max(24px, calc((100vw - 1240px) / 2 + 24px)) 12px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - 1240px) / 2 + 24px)); scrollbar-width: thin; }
.strip li { flex: 0 0 min(560px, 82vw); scroll-snap-align: start; }
.strip a { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.strip img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .3s ease; }
.strip a:hover img { transform: scale(1.015); }
.strip p { margin: 10px 2px 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: s; border-top: 2px solid var(--text); padding-top: 16px; }
.steps h3 { margin: 0 0 8px; font: 700 21px/1.2 var(--display); }
.steps h3::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 10px; border-radius: 50%; background: var(--coral); color: var(--ink); font: 700 14px/1 var(--body); vertical-align: 3px; }
.steps p { margin: 0; color: var(--muted); }

.dev { background: var(--sunk); }
.dev-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.facts a { color: var(--text); text-decoration: none; font-size: 17px; }
.facts a:hover { color: var(--link); }
.facts strong { display: inline-block; min-width: 82px; font: 760 22px/1 var(--display); color: var(--link); }
.code { margin: 0; background: var(--ink); color: #e3e7ec; border-radius: 14px; padding: 24px 26px; font: 14px/1.7 var(--mono); overflow-x: auto; tab-size: 4; }
.code .c { color: #8794a6; }
.code .s { color: #ffb08f; }
.code .k { color: #9fd3ff; }

.fa-band { background: var(--surface); }
.fa-in p { max-width: 46em; font-size: 19px; }
.fa-in .btn { margin-inline-end: 8px; margin-top: 8px; }
.install .hero-cta { margin-top: 36px; }
.install .btn-ghost { color: var(--text); }

/* ---------- docs ---------- */
.docs-grid { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 264px minmax(0, 1fr) 232px; }
.side { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto; padding: 24px 16px 40px 20px; border-inline-end: 1px solid var(--line); font-size: 15px; }
.side-home { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 600; }
.side-group { margin-top: 22px; }
.side-group p { margin: 0 0 6px; padding: 0 10px; font: 600 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.side-group[lang="fa"] p { font-family: var(--fa); text-transform: none; letter-spacing: 0; font-size: 14px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--text); text-decoration: none; line-height: 1.4; }
.side a:hover { background: var(--sunk); }
.side a[aria-current="page"] { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--coral); }
[dir="rtl"] .side a[aria-current="page"], .side [dir="rtl"] a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--coral); }

main:focus { outline: none; }
.docs main { min-width: 0; padding: 40px 56px 64px; }
.prose { max-width: 760px; margin: 0 auto; }
.after { max-width: 760px; margin: 48px auto 0; }
.toc { position: sticky; top: var(--top); align-self: start; max-height: calc(100vh - var(--top)); overflow-y: auto; padding: 40px 20px 40px 0; font-size: 13.5px; }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--text); }
.toc ul { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 3px 12px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc .l3 a { padding-inline-start: 24px; }
.toc a:hover { color: var(--text); }
.toc a[aria-current] { color: var(--link); border-color: var(--coral); }

.prose h1 { margin: 0 0 18px; font: 760 clamp(32px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.025em; font-stretch: 94%; }
.prose h2 { margin: 52px 0 14px; font: 700 27px/1.2 var(--display); letter-spacing: -.015em; padding-top: 6px; }
.prose h3 { margin: 34px 0 10px; font: 700 20px/1.3 var(--display); }
.prose h4 { margin: 28px 0 8px; font: 650 16.5px/1.4 var(--body); }
.prose:lang(fa) h1, .prose:lang(fa) h2, .prose:lang(fa) h3, .prose:lang(fa) h4, .cards-group[lang="fa"] h2 { font-family: var(--fa); letter-spacing: 0; font-stretch: normal; }
.prose h2 code, .prose h3 code, .prose h4 code { font-size: .88em; }
.prose .hash { margin-inline-start: 8px; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity .15s; }
.prose .hash::after { content: "#"; font-weight: 400; }
.prose :is(h2, h3, h4):hover .hash, .prose .hash:focus { opacity: 1; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose:lang(fa) ol { list-style-type: persian; }
.prose li > ul, .prose li > ol { margin: 4px 0; }
.prose .lede { font-size: 18px; color: var(--muted); }
.prose strong { font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose blockquote { margin: 0 0 16px; padding: 4px 16px; border-inline-start: 3px solid var(--coral); color: var(--muted); }
.prose :not(pre) > code { font: .88em var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; overflow-wrap: anywhere; }
.prose pre { position: relative; margin: 0 0 20px; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font: 13.5px/1.65 var(--mono); tab-size: 4; direction: ltr; text-align: left; }
.prose pre code { font: inherit; }
.copy { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font: 12px var(--body); cursor: pointer; opacity: 0; transition: opacity .15s; }
.prose pre:hover .copy, .copy:focus-visible { opacity: 1; }
.tw { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { padding: 9px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--sunk); font-weight: 650; white-space: nowrap; }

.cards-group { margin-top: 36px; }
.cards-group h2 { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--coral); transform: translateY(-1px); }
.card strong { display: block; font: 700 17px/1.3 var(--display); }
.card span { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.cards-group[lang="fa"] .card strong { font-family: var(--fa); }

.edit { margin: 0 0 20px; font-size: 14px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--coral); }
.pager span { display: block; font-size: 13px; color: var(--muted); }
.pager strong { font-weight: 600; }
.pager .next { text-align: end; grid-column: 2; }
.nf { max-width: 640px; margin: 0 auto; padding: 96px 24px; }
.nf h1 { font: 760 40px/1.1 var(--display); }
.scrim { position: fixed; inset: 0; z-index: 30; background: #0008; }

/* ---------- search ---------- */
dialog { color: var(--text); }
.search { width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); margin: 72px auto auto; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 30px 80px -20px #0007; overflow: hidden; }
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: #0f141b80; backdrop-filter: blur(2px); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.search-box svg { color: var(--muted); }
.search-box input { flex: 1; height: 56px; border: 0; background: none; color: inherit; font: 17px var(--body); outline: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.esc { border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--muted); font: 12px var(--mono); padding: 4px 7px; cursor: pointer; }
.results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.results [aria-selected="true"] a, .results a:hover { background: color-mix(in srgb, var(--coral) 16%, transparent); }
.results strong { display: block; font-weight: 600; }
.r-doc { display: block; font-size: 12px; color: var(--muted); }
.r-x { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.results mark { background: var(--mark); color: inherit; border-radius: 3px; }
.empty { padding: 28px 12px; color: var(--muted); text-align: center; }
.search-foot { display: flex; gap: 18px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.lightbox { max-width: min(1280px, 96vw); padding: 0; border: 0; border-radius: 12px; background: var(--surface); }
.lightbox::backdrop { background: #0f141bd9; }
.lightbox img { display: block; max-height: 82vh; width: auto; cursor: zoom-out; }
.lightbox p { margin: 0; padding: 10px 16px; color: var(--muted); }
.lightbox form { position: absolute; top: 8px; right: 8px; }
.lightbox .icon-btn { background: var(--surface); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.home .foot { border-top: 0; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 32px 24px 40px; font-size: 14.5px; }
.foot p { margin: 0 0 6px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
	.docs-grid { grid-template-columns: 248px minmax(0, 1fr); }
	.toc { display: none; }
	.docs main { padding: 36px 40px 56px; }
}
@media (max-width: 960px) {
	.hero-in { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
	.ch-list { grid-template-columns: 1fr 1fr; }
	.ch-list div:not(:nth-child(3n + 1)) { padding-inline-start: 0; border-inline-start: 0; }
	.ch-list div:nth-child(even) { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
	.steps { grid-template-columns: 1fr 1fr; }
	.dev-in { grid-template-columns: 1fr; }
	.top-nav { display: none; }
}
@media (max-width: 860px) {
	.docs-grid { grid-template-columns: minmax(0, 1fr); }
	.menu-btn { display: inline-grid; }
	.side { position: fixed; z-index: 35; top: var(--top); inset-inline-start: 0; width: min(300px, 86vw); background: var(--bg); transform: translateX(-105%); transition: transform .2s ease; }
	[dir="rtl"] .side { transform: translateX(105%); }
	.side.open { transform: none; }
	.docs main { padding: 28px 20px 48px; }
	.search-btn { min-width: 0; }
}
@media (max-width: 640px) {
	.search-btn span, .search-btn kbd { display: none; }
	.search-btn { border: 0; background: none; width: 36px; padding: 0; justify-content: center; color: inherit; }
	.top .btn-dl span span { display: none; }
	.top-in { padding: 0 12px; gap: 4px; }
	.brand span { display: none; }
	.band { padding: 64px 0; }
	.ch-list, .steps, .steps-3, .cards { grid-template-columns: 1fr; }
	.ch-list div:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
	.b-out { padding-inline-start: 34px; }
	.b-out::before { inset-inline-start: 10px; }
	.b-out li::before { inset-inline-start: -23px; width: 22px; }
	.b-out li::after { inset-inline-start: -27px; }
	.prose h2 { font-size: 24px; }
	.pager { grid-template-columns: 1fr; }
	.pager .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.top, .side, .toc, .after, .foot, .copy { display: none !important; }
	.docs-grid { display: block; }
}
