/* Generated by scripts/build-guides-site.mjs from Light Sea's Obsidian theme. */
:root {
	--background: 0 0% 100%;
	--background-alt: 200 28% 96%;
	--foreground: 205 30% 12%;
	--card: 0 0% 100%;
	--popover: 0 0% 100%;
	--muted: 198 28% 96%;
	--muted-foreground: 205 14% 38%;
	--primary: 192 100% 27%;
	--primary-hover: 192 100% 22%;
	--primary-foreground: 0 0% 100%;
	--secondary: 192 38% 94%;
	--secondary-foreground: 196 80% 20%;
	--accent: 186 62% 93%;
	--accent-foreground: 192 100% 22%;
	--border: 200 24% 89%;
	--border-strong: 200 20% 81%;
	--input-border: 205 14% 52%;
	--ring: 192 100% 34%;
	--brand: 186 100% 36%;
	--brand-2: 172 100% 42%;
	--link: 192 100% 27%;
	--eyebrow: 192 100% 27%;
	--chip-border: 190 55% 80%;
	--code-bg: 200 28% 96%;
	--code-fg: 205 30% 12%;
	--mark: 176 75% 84%;
	--overlay: 205 40% 6%;
	--overlay-foreground: 0 0% 98%;
	--shadow-color: 205 50% 16%;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) {
		--background: 200 14% 4%;
		--background-alt: 200 12% 6%;
		--foreground: 190 12% 96%;
		--card: 200 12% 8%;
		--popover: 200 12% 11%;
		--muted: 200 10% 13%;
		--muted-foreground: 200 8% 66%;
		--primary: 172 90% 55%;
		--primary-hover: 172 90% 63%;
		--primary-foreground: 195 60% 6%;
		--secondary: 200 10% 15%;
		--secondary-foreground: 190 12% 92%;
		--accent: 190 40% 16%;
		--accent-foreground: 186 85% 78%;
		--border: 200 10% 15%;
		--border-strong: 200 10% 23%;
		--input-border: 200 8% 42%;
		--ring: 172 90% 55%;
		--brand: 186 90% 50%;
		--brand-2: 172 90% 55%;
		--link: 172 90% 55%;
		--eyebrow: 176 75% 62%;
		--chip-border: 186 45% 30%;
		--code-bg: 200 12% 7%;
		--code-fg: 190 12% 92%;
		--mark: 174 70% 24%;
		--overlay: 200 14% 3%;
		--overlay-foreground: 0 0% 98%;
		--shadow-color: 200 40% 1%;
	}
}
:root[data-mode="dark"] {
	--background: 200 14% 4%;
	--background-alt: 200 12% 6%;
	--foreground: 190 12% 96%;
	--card: 200 12% 8%;
	--popover: 200 12% 11%;
	--muted: 200 10% 13%;
	--muted-foreground: 200 8% 66%;
	--primary: 172 90% 55%;
	--primary-hover: 172 90% 63%;
	--primary-foreground: 195 60% 6%;
	--secondary: 200 10% 15%;
	--secondary-foreground: 190 12% 92%;
	--accent: 190 40% 16%;
	--accent-foreground: 186 85% 78%;
	--border: 200 10% 15%;
	--border-strong: 200 10% 23%;
	--input-border: 200 8% 42%;
	--ring: 172 90% 55%;
	--brand: 186 90% 50%;
	--brand-2: 172 90% 55%;
	--link: 172 90% 55%;
	--eyebrow: 176 75% 62%;
	--chip-border: 186 45% 30%;
	--code-bg: 200 12% 7%;
	--code-fg: 190 12% 92%;
	--mark: 174 70% 24%;
	--overlay: 200 14% 3%;
	--overlay-foreground: 0 0% 98%;
	--shadow-color: 200 40% 1%;
}
@media print {
	:root:not([data-print]),
	:root[data-mode] {
		--background: 0 0% 100%;
		--background-alt: 200 28% 96%;
		--foreground: 205 30% 12%;
		--card: 0 0% 100%;
		--popover: 0 0% 100%;
		--muted: 198 28% 96%;
		--muted-foreground: 205 14% 38%;
		--primary: 192 100% 27%;
		--primary-hover: 192 100% 22%;
		--primary-foreground: 0 0% 100%;
		--secondary: 192 38% 94%;
		--secondary-foreground: 196 80% 20%;
		--accent: 186 62% 93%;
		--accent-foreground: 192 100% 22%;
		--border: 200 24% 89%;
		--border-strong: 200 20% 81%;
		--input-border: 205 14% 52%;
		--ring: 192 100% 34%;
		--brand: 186 100% 36%;
		--brand-2: 172 100% 42%;
		--link: 192 100% 27%;
		--eyebrow: 192 100% 27%;
		--chip-border: 190 55% 80%;
		--code-bg: 200 28% 96%;
		--code-fg: 205 30% 12%;
		--mark: 176 75% 84%;
		--overlay: 205 40% 6%;
		--overlay-foreground: 0 0% 98%;
		--shadow-color: 205 50% 16%;
	}
}

/*
 * Light Sea test guides: site styles.
 *
 * Every colour comes from a custom property. The values are generated by
 * scripts/build-guides-site.mjs from Light Sea's Obsidian theme
 * (light-sea/apps/web/theme/presets/obsidian.ts) and prepended to this file,
 * so this file only ever says hsl(var(--token)). No green, anywhere.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 5rem;
	color-scheme: light;
}

:root[data-mode="dark"] {
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) {
		color-scheme: dark;
	}
}

body {
	margin: 0;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-wrap: break-word;
	accent-color: hsl(var(--primary));
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: hsl(var(--link));
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

button,
input {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid hsl(var(--ring));
	outline-offset: 2px;
	border-radius: 4px;
}

[hidden] {
	display: none !important;
}

/* Theme button: a moon offers dark, a sun offers light. */
.i-sun {
	display: none;
}

:root[data-mode="dark"] .i-sun {
	display: block;
}

:root[data-mode="dark"] .i-moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) .i-sun {
		display: block;
	}

	:root:not([data-mode="light"]) .i-moon {
		display: none;
	}
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	border-radius: 8px;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 0.75rem;
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.55rem 1.1rem;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
	background: hsl(var(--primary-hover));
}

.btn-secondary {
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	border-color: hsl(var(--border-strong));
}

.btn-secondary:hover {
	background: hsl(var(--muted));
}

.btn[disabled],
.btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

.btn-large {
	min-height: 3.1rem;
	padding: 0.75rem 1.5rem;
	font-size: 1.0625rem;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid hsl(var(--border));
	border-radius: 10px;
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	cursor: pointer;
}

.icon-btn:hover {
	background: hsl(var(--muted));
}

.linklike {
	padding: 0;
	border: 0;
	background: none;
	color: hsl(var(--muted-foreground));
	text-decoration: underline;
	text-underline-offset: 3px;
	font-size: 0.9375rem;
	cursor: pointer;
}

.linklike:hover {
	color: hsl(var(--foreground));
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 4rem;
	padding: 0 1.25rem;
	background: hsl(var(--background) / 0.92);
	border-bottom: 1px solid hsl(var(--border));
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 0.55rem;
	color: hsl(var(--foreground));
	text-decoration: none;
	white-space: nowrap;
	margin-right: auto;
}

.brand-word {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.brand-word .sea {
	background: linear-gradient(120deg, hsl(var(--brand-2)), hsl(var(--brand)));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.brand-sub {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	font-weight: 500;
}

.menu-btn,
.search-toggle {
	display: none;
}

.search {
	position: relative;
	width: min(28rem, 40vw);
}

.search-field {
	position: relative;
	display: flex;
	align-items: center;
}

.search-field .icon {
	position: absolute;
	left: 0.75rem;
	color: hsl(var(--muted-foreground));
	pointer-events: none;
}

.search input {
	width: 100%;
	height: 2.5rem;
	padding: 0 0.85rem 0 2.5rem;
	border: 1px solid hsl(var(--input-border));
	border-radius: 10px;
	background: hsl(var(--card));
	font-size: 0.9375rem;
}

.search input::placeholder {
	color: hsl(var(--muted-foreground));
}

.search input:focus-visible {
	outline-offset: 0;
}

.search-results {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	width: min(36rem, calc(100vw - 2rem));
	max-height: min(70vh, 34rem);
	overflow-y: auto;
	padding: 0.4rem;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 12px;
	background: hsl(var(--popover));
	box-shadow: 0 18px 48px -16px hsl(var(--shadow-color) / 0.45);
}

.search-results[hidden] {
	display: none;
}

.search-option {
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: 8px;
	color: hsl(var(--foreground));
	text-decoration: none;
}

.search-option[aria-selected="true"],
.search-option:hover {
	background: hsl(var(--accent));
}

.search-option .so-where {
	display: block;
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
}

.search-option .so-title {
	display: block;
	font-weight: 600;
	line-height: 1.35;
}

.search-option .so-snip {
	display: block;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.45;
	margin-top: 0.15rem;
}

.search-empty {
	padding: 0.75rem;
	color: hsl(var(--muted-foreground));
	font-size: 0.9375rem;
}

mark {
	background: hsl(var(--mark));
	color: inherit;
	border-radius: 3px;
	padding: 0 0.1em;
}

/* ── Layout ──────────────────────────────────────────────────────────── */

.layout {
	display: grid;
	grid-template-columns: 18.5rem minmax(0, 1fr);
	min-height: calc(100vh - 4rem);
}

.sidebar {
	position: sticky;
	top: 4rem;
	height: calc(100vh - 4rem);
	overflow-y: auto;
	padding: 1.25rem 0.9rem 2.5rem;
	border-right: 1px solid hsl(var(--border));
	background: hsl(var(--background-alt));
	overscroll-behavior: contain;
}

.sidebar-title {
	margin: 0 0.6rem 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.guide-list,
.toc,
.toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.guide-list > li {
	margin: 0.1rem 0;
}

.guide-link {
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	gap: 0.25rem;
	padding: 0.45rem 0.6rem;
	border-radius: 8px;
	color: hsl(var(--foreground));
	text-decoration: none;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.guide-link:hover {
	background: hsl(var(--muted));
}

.guide-link .gl-num {
	font-weight: 700;
	color: hsl(var(--muted-foreground));
	font-variant-numeric: tabular-nums;
}

.guide-link[aria-current="page"] {
	background: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
	font-weight: 600;
}

.guide-link[aria-current="page"] .gl-num {
	color: hsl(var(--accent-foreground));
}

.toc {
	margin: 0.35rem 0 0.75rem 1.15rem;
	padding-left: 0.6rem;
	border-left: 1px solid hsl(var(--border-strong));
}

.toc-part {
	display: block;
	margin: 0.75rem 0 0.2rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	line-height: 1.35;
}

.toc a {
	position: relative;
	display: flex;
	gap: 0.4rem;
	align-items: flex-start;
	padding: 0.3rem 0.55rem;
	border-radius: 6px;
	color: hsl(var(--muted-foreground));
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.4;
}

.toc .toc-sub a {
	padding-left: 1.4rem;
}

.toc a:hover {
	color: hsl(var(--foreground));
	background: hsl(var(--muted));
}

.toc a.is-current {
	color: hsl(var(--foreground));
	font-weight: 600;
	background: hsl(var(--muted));
}

.toc a.is-current::before {
	content: "";
	position: absolute;
	left: -0.65rem;
	top: 0.3rem;
	bottom: 0.3rem;
	width: 3px;
	border-radius: 3px;
	background: hsl(var(--primary));
}

.toc .tick {
	display: none;
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	color: hsl(var(--primary));
	stroke-width: 3;
}

.toc a.is-done .tick {
	display: inline-block;
}

.toc a .toc-text {
	flex: 1;
	min-width: 0;
}

.drawer-backdrop {
	display: none;
}

.main {
	min-width: 0;
	padding: 2.5rem 3rem 4rem;
}

.content {
	max-width: 58rem;
	margin: 0 auto;
}

/* ── Guide header ────────────────────────────────────────────────────── */

.guide-head {
	margin-bottom: 1.5rem;
}

.guide-title {
	margin: 0;
	font-size: 2.125rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 700;
	max-width: 32ch;
}

.guide-title .gt-num {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: hsl(var(--eyebrow));
}

.guide-title .gt-sep {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.guide-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 1.25rem;
}

.view-switch {
	display: inline-flex;
	padding: 3px;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 10px;
	background: hsl(var(--muted));
}

.view-switch button {
	min-height: 2.25rem;
	padding: 0.3rem 0.9rem;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: hsl(var(--muted-foreground));
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
}

.view-switch button[aria-pressed="true"] {
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	box-shadow: 0 1px 3px hsl(var(--shadow-color) / 0.18);
}

.tool-status {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

/* ── Progress ────────────────────────────────────────────────────────── */

.progress {
	margin: 0 0 1.75rem;
}

.progress-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-size: 0.9375rem;
	margin-bottom: 0.45rem;
}

.progress-label {
	font-weight: 700;
}

.progress-done {
	color: hsl(var(--muted-foreground));
	font-size: 0.875rem;
}

.progress-bar {
	height: 6px;
	border-radius: 999px;
	background: hsl(var(--muted));
	border: 1px solid hsl(var(--border));
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, hsl(var(--brand-2)), hsl(var(--primary)));
	border-radius: 999px;
	transition: width 0.25s ease;
}

/* ── Walkthrough vs Read all ─────────────────────────────────────────── */

html.js[data-view="walk"] .guide-article > .step:not(.is-current) {
	display: none;
}

html:not(.js) .wt-only,
html:not([data-view="walk"]) .wt-only,
html:not(.js) .walk-ui,
html:not([data-view="walk"]) .walk-ui {
	display: none !important;
}

/* ── Article / prose ─────────────────────────────────────────────────── */

.guide-article > .step {
}

html[data-view="read"] .guide-article > .step + .step,
html:not(.js) .guide-article > .step + .step {
	margin-top: 2.75rem;
}

.step-eyebrow,
html[data-view="walk"] .part-title {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: hsl(var(--eyebrow));
	line-height: 1.4;
}

.part-head {
}

html[data-view="read"] .part-title,
html:not(.js) .part-title {
	margin: 1rem 0 1.25rem;
	padding-top: 2rem;
	border-top: 1px solid hsl(var(--border-strong));
	font-size: 1.625rem;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

html[data-view="read"] .part-title::before,
html:not(.js) .part-title::before {
	content: "";
	display: block;
}

.step-title {
	margin: 0 0 1rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	max-width: 40ch;
}

h2.step-title {
	font-size: 1.625rem;
}

h3.step-title {
	font-size: 1.375rem;
}

html[data-view="walk"] .step-title {
	font-size: 1.75rem;
}

.step-title:focus {
	outline: none;
}

.step-title:focus-visible {
	outline: 3px solid hsl(var(--ring));
}

.step-num {
	color: hsl(var(--eyebrow));
	font-variant-numeric: tabular-nums;
}

.prose > * {
	max-width: 70ch;
}

.prose > figure,
.prose > .table-wrap,
.prose > .code-block,
.prose li > .code-block,
.prose > .callout {
	max-width: none;
}

.prose > .callout {
	max-width: 76ch;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
	padding-left: 1.5rem;
}

.prose li {
	margin: 0.4rem 0;
	padding-left: 0.2rem;
}

.prose li > p {
	margin-bottom: 0.5rem;
}

.prose li::marker {
	color: hsl(var(--muted-foreground));
}

.prose ol > li::marker {
	font-weight: 700;
	color: hsl(var(--eyebrow));
}

.prose strong {
	font-weight: 650;
}

.prose code {
	padding: 0.1em 0.38em;
	border: 1px solid hsl(var(--border));
	border-radius: 5px;
	background: hsl(var(--muted));
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.86em;
	overflow-wrap: anywhere;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.prose a code {
	color: hsl(var(--link));
}

.repo-path {
	text-decoration: none;
}

.repo-path code {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Test ID chips */

.chip {
	display: inline-block;
	padding: 0.02em 0.5em;
	border: 1px solid hsl(var(--chip-border));
	border-radius: 999px;
	background: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	text-decoration: none;
	vertical-align: 0.05em;
}

a.chip:hover {
	border-color: hsl(var(--primary));
}

/* Figures */

.prose figure {
	margin: 1.75rem 0 2rem;
}

.zoom {
	display: block;
	border-radius: 12px;
	cursor: zoom-in;
}

.zoom img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 12px;
	background: hsl(var(--muted));
	box-shadow: 0 10px 30px -18px hsl(var(--shadow-color) / 0.45);
}

.zoom:hover img {
	border-color: hsl(var(--primary) / 0.6);
}

.prose figcaption {
	max-width: 70ch;
	margin-top: 0.7rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: hsl(var(--muted-foreground));
}

.prose figcaption em {
	font-style: normal;
}

/* Callouts */

.callout {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-left-width: 4px;
	border-radius: 10px;
}

.callout > :last-child {
	margin-bottom: 0;
}

.callout p {
	margin: 0 0 0.6rem;
}

.callout-note {
	background: hsl(var(--muted));
	border-left-color: hsl(var(--muted-foreground) / 0.55);
}

.callout-check {
	background: hsl(var(--accent) / 0.6);
	border-color: hsl(var(--chip-border));
	border-left-color: hsl(var(--primary));
}

.callout-label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.45rem !important;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: hsl(var(--eyebrow));
}

.callout-label .icon {
	width: 1rem;
	height: 1rem;
	stroke-width: 2.5;
}

/* Tables */

.table-wrap {
	margin: 1.5rem 0 1.75rem;
	overflow-x: auto;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 10px;
	-webkit-overflow-scrolling: touch;
	/* A soft edge shows when the table scrolls sideways inside its box. */
	background:
		linear-gradient(to right, hsl(var(--card)) 30%, hsl(var(--card) / 0)) 0 0 / 2.5rem 100% no-repeat local,
		linear-gradient(to left, hsl(var(--card)) 30%, hsl(var(--card) / 0)) 100% 0 / 2.5rem 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, hsl(var(--shadow-color) / 0.22), hsl(var(--shadow-color) / 0)) 0 0 / 0.9rem 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, hsl(var(--shadow-color) / 0.22), hsl(var(--shadow-color) / 0)) 100% 0 / 0.9rem 100% no-repeat scroll,
		hsl(var(--card));
}

.table-wrap td a {
	font-weight: 650;
}

.table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.table-wrap.cols-2 table {
	min-width: 26rem;
}

.table-wrap.cols-3 table {
	min-width: 34rem;
}

.table-wrap.cols-4 table {
	min-width: 42rem;
}

.table-wrap.cols-5 table {
	min-width: 50rem;
}

.table-wrap th,
.table-wrap td {
	padding: 0.65rem 0.9rem;
	text-align: left;
	vertical-align: top;
}

.table-wrap th {
	background: hsl(var(--muted));
	font-weight: 650;
	font-size: 0.875rem;
	border-bottom: 1px solid hsl(var(--border-strong));
}

.table-wrap td {
	border-top: 1px solid hsl(var(--border));
}

.table-wrap tbody tr:first-child td {
	border-top: 0;
}

.table-wrap code {
	font-size: 0.82em;
}

/* Code blocks */

.code-block {
	position: relative;
	margin: 1rem 0 1.4rem;
}

.code-block pre {
	margin: 0;
	padding: 1rem 1.1rem;
	padding-right: 5.5rem;
	overflow-x: auto;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 10px;
	background: hsl(var(--code-bg));
	color: hsl(var(--code-fg));
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.84rem;
	line-height: 1.6;
	tab-size: 4;
}

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

.copy-btn {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 2rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 7px;
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

.copy-btn .icon {
	width: 0.95rem;
	height: 0.95rem;
}

.copy-btn:hover {
	background: hsl(var(--muted));
}

.copy-btn.is-copied {
	border-color: hsl(var(--primary));
	color: hsl(var(--link));
}

/* "What to check" checklist */

.checklist {
	list-style: none;
	padding-left: 0 !important;
	max-width: 76ch;
}

.checklist > li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin: 0 0 0.6rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid hsl(var(--border));
	border-radius: 10px;
	background: hsl(var(--card));
}

.checklist > li.is-checked {
	background: hsl(var(--accent) / 0.45);
	border-color: hsl(var(--chip-border));
}

.checklist input,
.done input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.2rem 0 0;
	cursor: pointer;
}

.checklist label {
	flex: 1;
	min-width: 0;
	cursor: pointer;
}

/* Done tick */

.done-row {
	margin: 2rem 0 0;
	max-width: 70ch;
}

.done {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.7rem 1rem;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 10px;
	background: hsl(var(--card));
	font-weight: 600;
	cursor: pointer;
}

.done input {
	margin: 0;
}

.done.is-checked {
	border-color: hsl(var(--primary));
	background: hsl(var(--accent) / 0.6);
	color: hsl(var(--accent-foreground));
}

/* Step navigation */

.step-nav {
	position: sticky;
	bottom: 0;
	z-index: 20;
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding: 0.85rem 0;
	background: hsl(var(--background) / 0.94);
	border-top: 1px solid hsl(var(--border));
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.step-nav .btn {
	min-width: 7.5rem;
}

.step-nav .next-guide-btn {
	max-width: 70%;
	min-width: 0;
	text-align: left;
	line-height: 1.3;
}

.ngb-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.ngb-pre {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.85;
}

.ngb-name {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.next-guide {
	margin-top: 3rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 12px;
	background: hsl(var(--background-alt));
}

.next-guide p {
	margin: 0 0 0.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.next-guide a {
	font-size: 1.125rem;
	font-weight: 650;
}

html[data-view="walk"] .read-only {
	display: none;
}

.live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ── Lightbox ────────────────────────────────────────────────────────── */

.lightbox {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: hsl(var(--overlay) / 0.97);
	color: hsl(var(--overlay-foreground));
	overflow: hidden;
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox[open] {
	display: flex;
	flex-direction: column;
}

.lb-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	flex: none;
}

.lb-count {
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

.lb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.85rem;
	border: 1px solid hsl(var(--overlay-foreground) / 0.25);
	border-radius: 10px;
	background: hsl(var(--overlay-foreground) / 0.08);
	color: hsl(var(--overlay-foreground));
	font-weight: 600;
	cursor: pointer;
}

.lb-btn:hover {
	background: hsl(var(--overlay-foreground) / 0.16);
}

.lb-btn[disabled] {
	opacity: 0.3;
	cursor: default;
}

.lb-btn:focus-visible {
	outline-color: hsl(var(--overlay-foreground));
}

.lb-stage {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4.5rem;
	overflow: hidden;
}

.lb-stage img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: 8px;
	border: 1px solid hsl(var(--overlay-foreground) / 0.2);
	cursor: zoom-in;
	background: hsl(var(--overlay-foreground) / 0.05);
}

.lightbox.is-zoomed .lb-stage {
	display: block;
	overflow: auto;
	padding: 0 1rem;
}

.lightbox.is-zoomed .lb-stage img {
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}

.lb-prev,
.lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.lb-prev {
	left: 0.85rem;
}

.lb-next {
	right: 0.85rem;
}

.lb-caption {
	flex: none;
	max-width: 70ch;
	margin: 0 auto;
	padding: 0.85rem 1.25rem 1.1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	text-align: center;
	opacity: 0.92;
}

.lb-caption code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
}

.lb-caption em {
	font-style: normal;
}

/* ── Home page ───────────────────────────────────────────────────────── */

.home-main {
	max-width: 76rem;
	margin: 0 auto;
	padding: 3.5rem 2rem 5rem;
}

.hero {
	max-width: 48rem;
	margin-bottom: 2.75rem;
}

.hero h1 {
	margin: 0 0 0.75rem;
	font-size: 2.75rem;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.hero h1 .sea {
	background: linear-gradient(120deg, hsl(var(--brand-2)), hsl(var(--brand)));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero .lead {
	margin: 0 0 1.75rem;
	font-size: 1.25rem;
	line-height: 1.55;
	color: hsl(var(--muted-foreground));
}

.tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.panel {
	padding: 1.25rem 1.4rem;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 14px;
	background: hsl(var(--card));
}

.panel h2 {
	margin: 0 0 0.75rem;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}

.find-field input {
	width: 100%;
	height: 2.75rem;
	padding: 0 0.9rem;
	border: 1px solid hsl(var(--input-border));
	border-radius: 10px;
	background: hsl(var(--background));
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1rem;
	text-transform: uppercase;
}

.find-field input::placeholder {
	text-transform: none;
	color: hsl(var(--muted-foreground));
}

.find-results {
	margin-top: 0.85rem;
	font-size: 0.9375rem;
}

.find-results:empty {
	display: none;
}

.find-head {
	margin: 0 0 0.5rem;
	font-weight: 650;
}

.find-head .chip {
	margin-right: 0.4rem;
}

.find-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.find-list li {
	margin: 0 0 0.35rem;
}

.find-list a {
	display: block;
	padding: 0.5rem 0.7rem;
	border: 1px solid hsl(var(--border));
	border-radius: 8px;
	text-decoration: none;
	color: hsl(var(--foreground));
	line-height: 1.4;
}

.find-list a:hover {
	border-color: hsl(var(--primary));
	background: hsl(var(--accent) / 0.5);
}

.find-list .fl-guide {
	display: block;
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
}

.find-list .fl-step {
	font-weight: 600;
}

.find-list .fl-via {
	display: block;
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
}

.find-suggest {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.find-suggest button {
	cursor: pointer;
}

.find-note {
	margin: 0;
	color: hsl(var(--muted-foreground));
}

.role-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.role-btn {
	min-height: 2.5rem;
	padding: 0.35rem 1rem;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 999px;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
}

.role-btn:hover {
	border-color: hsl(var(--primary));
}

.role-btn[aria-pressed="true"] {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.filter-status {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.3rem 1.35rem 1.15rem;
	border: 1px solid hsl(var(--border-strong));
	border-radius: 14px;
	background: hsl(var(--card));
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
	border-color: hsl(var(--primary) / 0.7);
	box-shadow: 0 16px 36px -22px hsl(var(--shadow-color) / 0.55);
}

.card:focus-within {
	border-color: hsl(var(--primary));
}

.card[hidden] {
	display: none;
}

.card-num {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: hsl(var(--eyebrow));
}

.card-title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.card-title a {
	color: hsl(var(--foreground));
	text-decoration: none;
}

.card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
}

.card-title a:focus-visible {
	outline: none;
}

.card-title a:focus-visible::after {
	outline: 3px solid hsl(var(--ring));
	outline-offset: 2px;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.badge {
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	background: hsl(var(--secondary));
	color: hsl(var(--secondary-foreground));
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.6;
}

.card-tests {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: hsl(var(--muted-foreground));
}

.card-tests strong {
	color: hsl(var(--foreground));
	font-weight: 650;
}

.card-tests code {
	font-size: 0.9em;
}

.card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid hsl(var(--border));
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.card-steps {
	font-weight: 650;
	color: hsl(var(--foreground));
}

.card-done {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.card-done .mini-bar {
	width: 4rem;
	height: 5px;
	border-radius: 999px;
	background: hsl(var(--muted));
	overflow: hidden;
}

.card-done .mini-fill {
	display: block;
	height: 100%;
	background: hsl(var(--primary));
}

.home-foot {
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid hsl(var(--border));
	display: flex;
	gap: 1rem;
	align-items: center;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

/* ── Phone and tablet ────────────────────────────────────────────────── */

@media (max-width: 960px) {
	.layout {
		display: block;
	}

	.menu-btn {
		display: inline-flex;
	}

	.sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 60;
		width: min(86vw, 22rem);
		height: auto;
		padding-top: 1rem;
		transform: translateX(-102%);
		visibility: hidden;
		transition: transform 0.22s ease, visibility 0s linear 0.22s;
		box-shadow: 0 0 40px -10px hsl(var(--shadow-color) / 0.6);
		border-right: 1px solid hsl(var(--border-strong));
	}

	body.nav-open .sidebar {
		transform: none;
		visibility: visible;
		transition: transform 0.22s ease, visibility 0s;
	}

	body.nav-open .drawer-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 55;
		background: hsl(var(--overlay) / 0.5);
	}

	.drawer-close {
		display: inline-flex !important;
	}

	.drawer-head {
		position: sticky;
		top: -1rem;
		z-index: 1;
		margin: -1rem -0.9rem 0.75rem;
		padding: 0.75rem 0.9rem 0.75rem 1.5rem;
		background: hsl(var(--background-alt));
		border-bottom: 1px solid hsl(var(--border));
	}

	.main {
		padding: 1.75rem 1.5rem 3rem;
	}
}

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.75rem 0.6rem;
}

.drawer-head .sidebar-title {
	margin: 0;
}

.drawer-close {
	display: none !important;
}

@media (max-width: 720px) {
	body {
		font-size: 17px;
	}

	.site-header {
		height: 3.5rem;
		padding: 0 1rem;
		gap: 0.5rem;
	}

	html {
		scroll-padding-top: 4.5rem;
	}

	.layout {
		min-height: calc(100vh - 3.5rem);
	}

	.brand-sub {
		display: none;
	}

	.search-toggle {
		display: inline-flex;
	}

	.search {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		padding: 0.6rem 1rem 0.75rem;
		background: hsl(var(--background));
		border-bottom: 1px solid hsl(var(--border));
	}

	.site-header.search-open .search {
		display: block;
	}

	.search-results {
		left: 1rem;
		right: 1rem;
		width: auto;
	}

	.main {
		padding: 1.25rem 1rem 2.5rem;
	}

	.guide-title {
		font-size: 1.625rem;
	}

	.guide-tools {
		margin-top: 1rem;
	}

	html[data-view="walk"] .step-title,
	h2.step-title {
		font-size: 1.375rem;
	}

	h3.step-title {
		font-size: 1.25rem;
	}

	html[data-view="read"] .part-title {
		font-size: 1.375rem;
	}

	.prose figure {
		margin: 1.25rem 0 1.5rem;
	}

	.zoom,
	.zoom img {
		border-radius: 8px;
	}

	.prose ul,
	.prose ol {
		padding-left: 1.25rem;
	}

	.code-block pre {
		padding-right: 1rem;
		padding-top: 2.75rem;
	}

	/* Back / Next pinned to the bottom of the screen. */
	html[data-view="walk"] body.guide-page {
		padding-bottom: 5rem;
	}

	.step-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		margin: 0;
		padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
		box-shadow: 0 -8px 24px -16px hsl(var(--shadow-color) / 0.5);
	}

	.step-nav .btn {
		flex: 1;
		min-width: 0;
	}

	.step-nav .next-guide-btn {
		max-width: none;
		flex: 2.2;
		font-size: 0.9375rem;
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	.lb-stage {
		padding: 0 0.5rem;
	}

	.lb-prev,
	.lb-next {
		position: static;
		transform: none;
	}

	.lb-nav-row {
		display: flex;
		justify-content: center;
		gap: 0.75rem;
		padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
	}

	.home-main {
		padding: 2rem 1rem 3.5rem;
	}

	.hero h1 {
		font-size: 2.125rem;
	}

	.hero .lead {
		font-size: 1.125rem;
	}

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

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

@media (min-width: 721px) {
	.lb-nav-row {
		display: contents;
	}
}

/* ── Reduced motion ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ── Print: the whole guide, no navigation ──────────────────────────── */

@media print {
	body {
		font-size: 11pt;
		background: none;
	}

	.site-header,
	.sidebar,
	.drawer-backdrop,
	.skip-link,
	.guide-tools,
	.progress,
	.step-nav,
	.done-row,
	.copy-btn,
	.wt-only,
	.walk-ui,
	.next-guide,
	.lightbox,
	.home-foot {
		display: none !important;
	}

	html.js[data-view="walk"] .guide-article > .step:not(.is-current) {
		display: block !important;
	}

	.guide-article > .step + .step {
		margin-top: 1.75rem !important;
	}

	html .part-title {
		margin: 1rem 0 0.75rem !important;
		padding-top: 0.75rem !important;
		font-size: 16pt !important;
		text-transform: none !important;
		letter-spacing: normal !important;
		color: hsl(var(--foreground)) !important;
	}

	.layout {
		display: block;
	}

	.main {
		padding: 0;
	}

	.content {
		max-width: none;
	}

	.step-title,
	html[data-view="walk"] .step-title {
		font-size: 14pt;
		break-after: avoid;
	}

	.guide-title {
		font-size: 20pt;
	}

	.prose > * {
		max-width: none;
	}

	.prose figure {
		break-inside: avoid;
		margin: 0.75rem 0 1rem;
	}

	.zoom img {
		max-width: 100% !important;
		max-height: 22cm;
		width: auto;
		box-shadow: none;
	}

	.callout,
	.checklist > li,
	.table-wrap tr {
		break-inside: avoid;
	}

	.table-wrap {
		overflow: visible;
	}

	.table-wrap table {
		min-width: 0 !important;
	}

	.code-block pre {
		white-space: pre-wrap;
		overflow-wrap: anywhere;
		padding-right: 1rem;
	}

	a {
		color: inherit;
	}

	.chip {
		border-color: hsl(var(--border-strong));
	}
}
