:root {
	--bg: #151a1e;
	--bg-elevated: #1a2125;
	--surface: #20272c;
	--surface-strong: #262e34;
	--surface-soft: rgba(38, 46, 52, .65);
	--border: #323c43;
	--border-accent: rgba(39, 214, 204, .28);
	--text: #eef3f4;
	--muted: #9eabb1;
	--accent: #27d6cc;
	--accent-strong: #14b8ae;
	--accent-soft: rgba(39, 214, 204, .1);
	--danger: #ff7b7b;
	--warning: #f5c56f;
	--info: #73b6ff;
	--header-height: 70px;
	--sidebar-width: 310px;
	--outline-width: 210px;
	--shadow: 0 18px 48px rgba(0, 0, 0, .22);
	--radius: 14px;
}

html[data-theme="light"] {
	--bg: #f1f5f5;
	--bg-elevated: #fff;
	--surface: #fff;
	--surface-strong: #e8eeee;
	--surface-soft: rgba(255, 255, 255, .75);
	--border: #d3dddd;
	--border-accent: rgba(8, 148, 140, .28);
	--text: #152125;
	--muted: #5d6c72;
	--accent: #079b92;
	--accent-strong: #087d77;
	--accent-soft: rgba(7, 155, 146, .09);
	--shadow: 0 18px 48px rgba(29, 49, 54, .12);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(circle at 75% 5%, rgba(39, 214, 204, .055), transparent 25rem),
		var(--bg);
	font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	transition: color .2s ease, background-color .2s ease;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: var(--accent);
}

button,
input {
	font: inherit;
}

code,
kbd,
pre {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
	padding: .12em .38em;
	border: 1px solid var(--border);
	border-radius: 5px;
	color: var(--accent);
	background: var(--accent-soft);
	font-size: .9em;
}

kbd {
	display: inline-block;
	min-width: 25px;
	padding: 2px 7px;
	border: 1px solid var(--border);
	border-bottom-width: 2px;
	border-radius: 5px;
	color: var(--muted);
	background: var(--surface-strong);
	font-size: 11px;
	font-weight: 700;
	text-align: center;
}

.sr-only,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	z-index: 1000;
	top: 10px;
	left: 10px;
	padding: 10px 16px;
	color: #091516;
	background: var(--accent);
	border-radius: 6px;
	font-weight: 700;
}

.site-header {
	position: fixed;
	z-index: 100;
	inset: 0 0 auto;
	display: grid;
	grid-template-columns: var(--sidebar-width) minmax(240px, 660px) auto;
	align-items: center;
	gap: 28px;
	height: var(--header-height);
	padding: 0 24px;
	border-bottom: 1px solid var(--border);
	background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
	backdrop-filter: blur(18px);
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--text);
	text-decoration: none;
	line-height: 1.2;
}

.brand-mark {
	display: block;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border-accent);
	border-radius: 10px;
	background: var(--accent-soft);
	object-fit: cover;
	box-shadow: 0 0 0 3px rgba(39, 214, 204, .06);
}

.brand strong,
.brand small {
	display: block;
}

.brand strong {
	font-size: 18px;
}

.brand small {
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
}

.header-search {
	position: relative;
	width: min(100%, 660px);
}

.header-search input {
	width: 100%;
	height: 42px;
	padding: 0 54px 0 42px;
	border: 1px solid var(--border);
	border-radius: 9px;
	outline: none;
	color: var(--text);
	background: var(--surface);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.header-search input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.header-search > kbd {
	position: absolute;
	top: 9px;
	right: 10px;
}

.search-icon {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 15px;
	width: 14px;
	height: 14px;
	border: 2px solid var(--muted);
	border-radius: 50%;
	pointer-events: none;
}

.search-icon::after {
	content: "";
	position: absolute;
	width: 6px;
	height: 2px;
	right: -5px;
	bottom: -3px;
	background: var(--muted);
	transform: rotate(45deg);
}

.search-results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	max-height: 420px;
	overflow: auto;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 11px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.search-result {
	display: block;
	padding: 10px 12px;
	border-radius: 7px;
	color: var(--text);
	text-decoration: none;
}

.search-result:hover,
.search-result:focus {
	background: var(--accent-soft);
	outline: none;
}

.search-result strong,
.search-result span {
	display: block;
}

.search-result span {
	margin-top: 2px;
	color: var(--muted);
	font-size: 14px;
}

.search-empty {
	padding: 14px;
	color: var(--muted);
	text-align: center;
}

.header-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 9px;
}

.version-badge {
	padding: 4px 10px;
	border: 1px solid var(--border-accent);
	border-radius: 100px;
	color: var(--accent);
	background: var(--accent-soft);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
}

.icon-button {
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 9px;
	color: var(--text);
	background: var(--surface);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.icon-button:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

.theme-icon {
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-shadow: -5px -4px 0 -3px currentColor;
}

.menu-toggle {
	display: none;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
	display: block;
	width: 17px;
	height: 2px;
	background: currentColor;
}

.menu-toggle span {
	position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle span::before {
	top: -5px;
}

.menu-toggle span::after {
	top: 5px;
}

.site-layout {
	display: grid;
	grid-template-columns: var(--sidebar-width) minmax(0, 940px) var(--outline-width);
	gap: 34px;
	max-width: 1530px;
	min-height: 100vh;
	margin: 0 auto;
	padding: calc(var(--header-height) + 28px) 24px 0;
}

.sidebar {
	position: sticky;
	top: calc(var(--header-height) + 28px);
	height: calc(100vh - var(--header-height) - 56px);
	overflow: auto;
	padding-right: 12px;
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar {
	width: 6px;
}

.sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
	border-radius: 100px;
	background: var(--border);
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: var(--accent);
}

.sidebar-product {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 14px;
	margin-bottom: 20px;
	border: 1px solid var(--border);
	border-radius: 11px;
	background: var(--surface-soft);
}

.product-icon {
	display: grid;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	place-items: center;
	border-radius: 9px;
	color: #082020;
	background: var(--accent);
	font-size: 12px;
	font-weight: 900;
}

.sidebar-product strong,
.sidebar-product div span {
	display: block;
}

.sidebar-product strong {
	font-size: 14px;
	line-height: 1.35;
}

.sidebar-product div span {
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
}

.docs-nav {
	display: grid;
	gap: 2px;
}

.nav-label {
	margin: 18px 10px 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.docs-nav a {
	position: relative;
	padding: 7px 10px 7px 16px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.docs-nav a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 4px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(-50%);
}

.docs-nav a:hover,
.docs-nav a.is-active {
	color: var(--accent);
	background: var(--accent-soft);
}

.sidebar-card {
	padding: 16px;
	margin-top: 28px;
	border: 1px solid var(--border-accent);
	border-radius: 11px;
	background: linear-gradient(145deg, var(--accent-soft), transparent);
}

.sidebar-card strong {
	font-size: 14px;
}

.sidebar-card p {
	margin: 5px 0 9px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.55;
}

.sidebar-card a {
	font-size: 14px;
	font-weight: 700;
}

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

.doc-section {
	padding: 38px;
	margin-bottom: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-soft);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
}

.doc-section h2 {
	margin: 0;
	font-size: clamp(25px, 4vw, 34px);
	line-height: 1.15;
	letter-spacing: -.035em;
}

.doc-section h3 {
	margin: 28px 0 8px;
	font-size: 16px;
}

.doc-section p {
	color: var(--muted);
}

.doc-section > p {
	max-width: 760px;
}

.hero {
	position: relative;
	overflow: hidden;
	padding: 64px 54px 46px;
	background:
		linear-gradient(135deg, rgba(39, 214, 204, .11), transparent 55%),
		var(--surface-soft);
}

.hero::after {
	content: "CSS";
	position: absolute;
	z-index: -1;
	right: -10px;
	bottom: -90px;
	color: transparent;
	-webkit-text-stroke: 1px var(--border-accent);
	font-size: 250px;
	font-weight: 900;
	line-height: 1;
	opacity: .7;
}

.hero h1 {
	max-width: 700px;
	margin: 10px 0 16px;
	font-size: clamp(38px, 6vw, 66px);
	line-height: 1.02;
	letter-spacing: -.055em;
}

.hero-lead {
	max-width: 680px;
	margin: 0;
	font-size: 17px;
}

.eyebrow {
	color: var(--accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 17px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button-primary {
	border-color: var(--accent);
	color: #07201f;
	background: var(--accent);
	box-shadow: 0 8px 24px rgba(39, 214, 204, .14);
}

.button-primary:hover {
	border-color: var(--accent-strong);
	background: var(--accent-strong);
}

.button-secondary {
	color: var(--text);
	background: var(--surface-strong);
}

.button-secondary:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin-top: 50px;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--border);
}

.hero-stats div {
	padding: 14px 16px;
	background: var(--surface);
}

.hero-stats strong,
.hero-stats span {
	display: block;
}

.hero-stats strong {
	color: var(--accent);
	font-size: 20px;
}

.hero-stats span {
	color: var(--muted);
	font-size: 12px;
}

.section-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.section-heading .eyebrow {
	margin: 0 0 4px;
}

.step-number {
	display: grid;
	width: 43px;
	height: 43px;
	flex: 0 0 43px;
	place-items: center;
	border: 1px solid var(--border-accent);
	border-radius: 10px;
	color: var(--accent);
	background: var(--accent-soft);
	font-size: 11px;
	font-weight: 900;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
}

.feature-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
}

.feature-card > span {
	display: inline-flex;
	min-width: 32px;
	height: 28px;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border: 1px solid var(--border-accent);
	border-radius: 6px;
	color: var(--accent);
	background: var(--accent-soft);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.feature-card h3 {
	margin: 14px 0 5px;
	font-size: 14px;
}

.feature-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.callout {
	position: relative;
	padding: 16px 18px 16px 47px;
	margin: 22px 0;
	border: 1px solid var(--border);
	border-left-width: 3px;
	border-radius: 8px;
	background: var(--surface);
}

.callout::before {
	content: "i";
	position: absolute;
	top: 16px;
	left: 16px;
	display: grid;
	width: 19px;
	height: 19px;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	font: 800 11px/1 Georgia, serif;
}

.callout-info {
	border-left-color: var(--info);
}

.callout-info::before {
	color: var(--info);
}

.callout-warning {
	border-left-color: var(--warning);
}

.callout-warning::before {
	content: "!";
	color: var(--warning);
}

.callout-tip {
	border-left-color: var(--accent);
}

.callout-tip::before {
	content: "+";
	color: var(--accent);
	font-family: inherit;
}

.callout strong {
	font-size: 14px;
}

.callout p {
	margin: 2px 0 0;
	font-size: 14px;
}

.steps {
	display: grid;
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.steps li {
	display: flex;
	gap: 15px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--surface);
}

.steps li > span {
	display: grid;
	width: 29px;
	height: 29px;
	flex: 0 0 29px;
	place-items: center;
	border-radius: 7px;
	color: #07201f;
	background: var(--accent);
	font-size: 11px;
	font-weight: 900;
}

.steps h3 {
	margin: 0 0 3px;
	font-size: 15px;
}

.steps p {
	margin: 0;
	font-size: 14px;
}

.workflow {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 22px 0;
}

.workflow article {
	position: relative;
	padding: 19px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
}

.workflow article:not(:last-child)::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: 31px;
	right: -7px;
	width: 12px;
	height: 12px;
	border-top: 1px solid var(--accent);
	border-right: 1px solid var(--accent);
	background: var(--surface);
	transform: rotate(45deg);
}

.workflow span {
	color: var(--accent);
	font-size: 10px;
	font-weight: 900;
}

.workflow h3 {
	margin: 12px 0 5px;
	font-size: 14px;
}

.workflow p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
}

.code-block {
	overflow: hidden;
	margin: 24px 0;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #101518;
	box-shadow: var(--shadow);
}

.code-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	border-bottom: 1px solid #293237;
	color: #93a2a8;
	font-size: 12px;
	font-weight: 700;
}

.code-toolbar button {
	padding: 3px 8px;
	border: 1px solid #344147;
	border-radius: 5px;
	color: #b9c5c9;
	background: #192126;
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
}

.code-toolbar button:hover {
	border-color: #27d6cc;
	color: #27d6cc;
}

.code-block pre {
	margin: 0;
	padding: 20px;
	overflow: auto;
	color: #d9e2e4;
	font-size: 14px;
	line-height: 1.75;
}

.code-block code {
	padding: 0;
	border: 0;
	color: inherit;
	background: none;
	font-size: inherit;
}

.split-card {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin: 22px 0;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--border);
}

.split-card div {
	padding: 22px;
	background: var(--surface);
}

.split-card h3 {
	margin: 0 0 6px;
	font-size: 14px;
}

.split-card p {
	margin: 0;
	font-size: 14px;
}

.screenshot-grid,
.screenshot-pair {
	display: grid;
	gap: 14px;
	margin: 24px 0;
}

.screenshot-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screenshot-pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screenshot-card,
.screenshot-wide {
	margin: 24px 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
}

.screenshot-card {
	margin: 0;
}

.screenshot-card a,
.screenshot-wide a {
	display: block;
	background: #101518;
}

.screenshot-card img,
.screenshot-wide img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: top center;
	transition: transform .25s ease, opacity .25s ease;
}

.screenshot-card img {
	aspect-ratio: 16 / 10;
}

.screenshot-wide img {
	max-height: 620px;
}

.screenshot-card a:hover img,
.screenshot-card a:focus img,
.screenshot-wide a:hover img,
.screenshot-wide a:focus img {
	opacity: .92;
	transform: scale(1.01);
}

.screenshot-card figcaption,
.screenshot-wide figcaption {
	padding: 12px 14px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	background: var(--surface);
	font-size: 14px;
	font-weight: 700;
}

.docs-table {
	width: 100%;
	margin: 22px 0;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--surface);
	font-size: 14px;
}

.docs-table th,
.docs-table td {
	padding: 11px 13px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.docs-table tr:last-child td {
	border-bottom: 0;
}

.docs-table th {
	color: var(--text);
	background: var(--surface-strong);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.docs-table td {
	color: var(--muted);
}

.check-list {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 24px;
	color: var(--muted);
	font-size: 14px;
}

.check-list li::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 2px;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg);
}

.example-map {
	display: grid;
	grid-template-columns: 1fr 40px 1fr;
	gap: 8px;
	align-items: center;
	max-width: 580px;
	margin: 24px 0;
}

.example-map span,
.example-map strong {
	padding: 11px 14px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: var(--surface);
	font-size: 14px;
}

.example-map strong {
	color: var(--accent);
}

.example-map i {
	position: relative;
	height: 1px;
	background: var(--border-accent);
}

.example-map i::after {
	content: "";
	position: absolute;
	right: 0;
	top: -3px;
	width: 6px;
	height: 6px;
	border-top: 1px solid var(--accent);
	border-right: 1px solid var(--accent);
	transform: rotate(45deg);
}

.recovery-path {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}

.recovery-path div {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 18px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
}

.recovery-path strong {
	color: var(--accent);
	font-size: 14px;
}

.recovery-path span {
	color: var(--muted);
	font-size: 14px;
}

.accordion-list {
	display: grid;
	gap: 9px;
}

.accordion-list details {
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
}

.accordion-list details[open] {
	border-color: var(--border-accent);
}

.accordion-list summary {
	position: relative;
	padding: 14px 42px 14px 16px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	list-style: none;
}

.accordion-list summary::-webkit-details-marker {
	display: none;
}

.accordion-list summary::after {
	content: "+";
	position: absolute;
	top: 11px;
	right: 14px;
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 5px;
	color: var(--accent);
}

.accordion-list details[open] summary::after {
	content: "−";
}

.accordion-list details div {
	padding: 0 16px 14px;
	border-top: 1px solid var(--border);
}

.accordion-list p {
	margin: 12px 0 0;
	font-size: 14px;
}

.changelog-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.changelog-list article {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 18px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
}

.changelog-list article > span {
	display: inline-flex;
	height: 32px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-accent);
	border-radius: 100px;
	color: var(--accent);
	background: var(--accent-soft);
	font-size: 14px;
	font-weight: 900;
}

.changelog-list h3 {
	margin: 0 0 5px;
	font-size: 16px;
}

.changelog-list p {
	margin: 0;
	font-size: 14px;
}

.support-section {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 30px;
	background:
		linear-gradient(140deg, rgba(39, 214, 204, .1), transparent 55%),
		var(--surface-soft);
}

.support-checklist {
	padding: 20px;
	border: 1px solid var(--border-accent);
	border-radius: 10px;
	background: var(--surface);
}

.support-checklist strong {
	font-size: 14px;
}

.support-checklist ul {
	display: grid;
	gap: 8px;
	padding-left: 18px;
	color: var(--muted);
	font-size: 14px;
}

.docs-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 4px 34px;
	color: var(--muted);
	font-size: 12px;
}

.docs-footer a {
	font-weight: 700;
}

.page-outline {
	position: sticky;
	top: calc(var(--header-height) + 28px);
	align-self: start;
	display: grid;
	gap: 5px;
	padding: 14px 0 14px 16px;
	border-left: 1px solid var(--border);
}

.page-outline p {
	margin: 0 0 7px;
	color: var(--text);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.page-outline a {
	color: var(--muted);
	font-size: 13px;
	text-decoration: none;
}

.page-outline a:hover {
	color: var(--accent);
}

.toast {
	position: fixed;
	z-index: 200;
	right: 20px;
	bottom: 20px;
	padding: 9px 13px;
	border: 1px solid var(--border-accent);
	border-radius: 7px;
	color: var(--text);
	background: var(--surface);
	box-shadow: var(--shadow);
	font-size: 13px;
	font-weight: 700;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1220px) {
	.site-layout {
		grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
	}

	.page-outline {
		display: none;
	}
}

@media (max-width: 900px) {
	:root {
		--header-height: 62px;
	}

	.site-header {
		grid-template-columns: 1fr auto;
		gap: 10px;
		padding: 0 14px;
	}

	.brand small,
	.version-badge {
		display: none;
	}

	.header-search {
		position: fixed;
		z-index: 99;
		top: calc(var(--header-height) + 10px);
		left: 14px;
		right: 14px;
		width: auto;
	}

	.header-search input {
		box-shadow: var(--shadow);
	}

	.header-actions {
		grid-column: 2;
	}

	.menu-toggle {
		display: grid;
	}

	.site-layout {
		display: block;
		padding: calc(var(--header-height) + 76px) 14px 0;
	}

	.sidebar {
		position: fixed;
		z-index: 98;
		top: var(--header-height);
		left: 0;
		bottom: 0;
		width: min(86vw, 320px);
		height: auto;
		padding: 18px;
		border-right: 1px solid var(--border);
		background: var(--bg-elevated);
		box-shadow: var(--shadow);
		transform: translateX(-104%);
		transition: transform .25s ease;
	}

	body.menu-open .sidebar {
		transform: translateX(0);
	}

	body.menu-open::after {
		content: "";
		position: fixed;
		z-index: 90;
		inset: var(--header-height) 0 0;
		background: rgba(0, 0, 0, .52);
	}

	.doc-section {
		padding: 27px;
	}

	.hero {
		padding: 42px 28px 30px;
	}

	.workflow,
	.feature-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.workflow article::after {
		display: none;
	}
}

@media (max-width: 620px) {
	.brand strong {
		font-size: 15px;
	}

	.brand-mark {
		width: 34px;
		height: 34px;
	}

	.site-layout {
		padding-right: 8px;
		padding-left: 8px;
	}

	.doc-section,
	.hero {
		padding: 22px 18px;
		border-radius: 10px;
	}

	.hero h1 {
		font-size: 38px;
	}

	.hero-lead {
		font-size: 14px;
	}

	.hero-stats,
	.feature-grid,
	.feature-grid-3,
	.workflow,
	.split-card,
	.screenshot-grid,
	.screenshot-pair,
	.support-section {
		grid-template-columns: 1fr;
	}

	.section-heading {
		align-items: flex-start;
	}

	.docs-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.recovery-path div {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.changelog-list article {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.changelog-list article > span {
		width: fit-content;
		padding: 0 14px;
	}

	.example-map {
		grid-template-columns: 1fr;
	}

	.example-map i {
		width: 1px;
		height: 20px;
		margin-left: 18px;
	}

	.example-map i::after {
		right: -3px;
		top: auto;
		bottom: 0;
		transform: rotate(135deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
	}
}
