:root {
	color-scheme: light dark;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
	font-synthesis: none;
	--accent: #0867d9;
	--accent-strong: #004fac;
	--background: #f3f7fc;
	--card: rgba(255, 255, 255, 0.92);
	--line: #d8e1ec;
	--muted: #5f6f83;
	--text: #142033;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--background);
	color: var(--text);
	font-size: 18px;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at 12% -10%, rgba(8, 103, 217, 0.15), transparent 32rem),
		var(--background);
}

a {
	color: var(--accent-strong);
	text-underline-offset: 0.16em;
}

a:hover {
	text-decoration-thickness: 0.12em;
}

a:focus-visible {
	border-radius: 0.2rem;
	outline: 3px solid rgba(8, 103, 217, 0.35);
	outline-offset: 3px;
}

.site-header,
.site-footer,
main {
	width: calc(100% - 2rem);
	max-width: 48rem;
	margin-inline: auto;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.3rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--text);
	font-size: 1rem;
	font-weight: 750;
	text-decoration: none;
}

.brand-mark {
	display: grid;
	width: 2.15rem;
	height: 2.15rem;
	place-items: center;
	border-radius: 0.7rem;
	background: var(--accent);
	color: white;
	font-size: 0.85rem;
	font-weight: 850;
	letter-spacing: -0.03em;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.45rem 1rem;
	font-size: 0.88rem;
}

.site-nav a {
	color: var(--muted);
	font-weight: 650;
	text-decoration: none;
}

.site-nav a[aria-current="page"] {
	color: var(--accent-strong);
}

main {
	padding-block: 3.5rem 5rem;
}

.hero {
	padding-block: clamp(2rem, 7vw, 5.5rem);
}

.eyebrow {
	margin: 0 0 0.75rem;
	color: var(--accent-strong);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	line-height: 1.15;
	letter-spacing: -0.025em;
}

h1 {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(2.5rem, 8vw, 5rem);
}

.document h1 {
	font-size: clamp(2.35rem, 7vw, 4.25rem);
}

h2 {
	margin: 2.8rem 0 0.65rem;
	font-size: 1.45rem;
}

h3 {
	margin: 1.7rem 0 0.45rem;
	font-size: 1.08rem;
}

p,
ul,
ol {
	margin-block: 0.65rem 1rem;
}

li + li {
	margin-top: 0.45rem;
}

.lede {
	max-width: 38rem;
	margin-block: 1.2rem 0;
	color: var(--muted);
	font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	min-height: 2.8rem;
	padding: 0.65rem 1rem;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
	background: var(--card);
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 0.2rem 0.8rem rgba(35, 58, 86, 0.08);
}

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

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
	margin-top: 2.5rem;
}

.card,
.notice {
	padding: 1.25rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--card);
	box-shadow: 0 0.35rem 1.4rem rgba(35, 58, 86, 0.07);
}

.card h2,
.card h3 {
	margin-top: 0;
}

.card p:last-child,
.notice p:last-child {
	margin-bottom: 0;
}

.document {
	max-width: 43rem;
}

.document--wide {
	max-width: 68rem;
}

.document-header {
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--line);
}

.updated {
	margin-top: 1rem;
	color: var(--muted);
	font-size: 0.88rem;
}

.notice {
	margin-block: 1.6rem;
	border-color: rgba(8, 103, 217, 0.35);
	background: rgba(225, 238, 255, 0.68);
}

.contact-address {
	font-style: normal;
}

.guide-layout {
	display: grid;
	grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	margin-top: 2.5rem;
}

.guide-toc {
	position: sticky;
	top: 1.25rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.9rem;
	background: var(--card);
	font-size: 0.84rem;
}

.guide-toc strong {
	display: block;
	margin-bottom: 0.55rem;
}

.guide-toc ol {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding-left: 1.3rem;
}

.guide-toc li + li {
	margin-top: 0;
}

.guide-content {
	min-width: 0;
	font-size: clamp(1.06rem, 1.01rem + 0.25vw, 1.16rem);
	line-height: 1.68;
}

.guide-content > h2:first-child {
	margin-top: 0;
}

.guide-content h2,
.guide-content h3,
.guide-content h4 {
	scroll-margin-top: 1rem;
}

.guide-content h4 {
	margin: 1.35rem 0 0.35rem;
	font-size: 0.98rem;
}

.guide-content code {
	padding: 0.08em 0.3em;
	border: 1px solid var(--line);
	border-radius: 0.32rem;
	background: var(--card);
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.84em;
	overflow-wrap: anywhere;
}

.guide-content pre {
	max-width: 100%;
	margin-block: 1rem 1.35rem;
	padding: 1rem;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
	background: #111b29;
	color: #edf5ff;
	font-size: 0.9rem;
	line-height: 1.55;
	tab-size: 2;
}

.guide-content pre code {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
	overflow-wrap: normal;
}

.table-scroll {
	max-width: 100%;
	margin-block: 1rem 1.5rem;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
	background: var(--card);
}

.guide-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.guide-content th,
.guide-content td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.guide-content th {
	background: rgba(8, 103, 217, 0.08);
	font-weight: 750;
}

.guide-content tbody tr:last-child td {
	border-bottom: 0;
}

.guide-content blockquote {
	margin: 1rem 0;
	padding: 0.25rem 1rem;
	border-left: 0.25rem solid var(--accent);
	color: var(--muted);
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	padding-block: 1.5rem 2.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.82rem;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 34rem) {
	.site-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-nav {
		justify-content: flex-start;
	}

	main {
		padding-top: 2rem;
	}
}

@media (max-width: 52rem) {
	.guide-layout {
		grid-template-columns: 1fr;
	}

	.guide-toc {
		position: static;
	}
}

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

@media (prefers-color-scheme: dark) {
	:root {
		--accent: #1888ff;
		--accent-strong: #75b7ff;
		--background: #0e1621;
		--card: rgba(23, 34, 48, 0.94);
		--line: #304156;
		--muted: #a9b7c8;
		--text: #f4f7fb;
	}

	.notice {
		background: rgba(13, 75, 145, 0.28);
	}

	.button--primary {
		color: #07111e;
	}
}
