:root {
	color-scheme: light;
	--ink: #173e32;
	--text: #26372f;
	--muted: #637168;
	--paper: #fbfaf6;
	--line: #dedfd5;
	--green: #1b5942;
	font:
		16px/1.65 system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	background: var(--paper);
	color: var(--text);
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
a {
	color: var(--green);
	text-underline-offset: 4px;
}
a:hover {
	text-decoration-thickness: 2px;
}
button,
a {
	touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid #bb6b21;
	outline-offset: 4px;
}
.topbar {
	height: 78px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 max(24px, calc((100vw - 1300px) / 2));
	gap: 20px;
	background: var(--paper);
	position: sticky;
	top: 0;
	z-index: 3;
}
.topbar > a:last-child {
	font-size: 0.9rem;
}
.brand {
	font-weight: 800;
	font-size: 1.8rem;
	letter-spacing: -1.5px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 20px;
}
.brand span {
	letter-spacing: 0;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--muted);
	border-left: 1px solid var(--line);
	padding-left: 20px;
}
.layout {
	max-width: 1300px;
	margin: auto;
	display: grid;
	grid-template-columns: 235px minmax(0, 1fr);
	gap: 72px;
	padding: 0 24px;
}
nav {
	position: sticky;
	top: 78px;
	height: calc(100vh - 78px);
	overflow: auto;
	padding: 38px 10px 36px 0;
	font-size: 0.88rem;
}
nav > a {
	display: block;
	text-decoration: none;
	padding: 7px 10px;
	border-radius: 6px;
}
nav > a:hover {
	background: #ebeee4;
}
.nav-bottom {
	margin-top: 30px;
	border-top: 1px solid var(--line);
	padding-top: 18px;
	display: grid;
	gap: 6px;
}
.eyebrow {
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 1.7px;
	color: var(--muted);
	margin: 0 0 18px;
}
.hero {
	padding: 64px 0 38px;
}
h1,
h2,
h3 {
	color: var(--ink);
	line-height: 1.16;
	letter-spacing: -0.025em;
}
h1 {
	font-size: clamp(2.8rem, 5.4vw, 5rem);
	margin: 0 0 25px;
	font-weight: 650;
}
h2 {
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	margin: 0 0 22px;
	font-weight: 650;
}
h3 {
	font-size: 1.2rem;
	margin: 30px 0 12px;
}
.lead {
	font-size: 1.18rem;
	max-width: 670px;
	color: #4d6054;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0;
}
.button {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid var(--green);
	border-radius: 6px;
	background: var(--green);
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 650;
}
.button.secondary {
	background: transparent;
	color: var(--green);
}
.facts {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 0.79rem;
	color: var(--muted);
	margin-top: 34px;
}
.facts span:before {
	content: '●';
	font-size: 0.55rem;
	vertical-align: middle;
	margin-right: 8px;
	color: #729472;
}
main {
	min-width: 0;
	max-width: 900px;
}
main > section:not(.hero) {
	border-top: 1px solid var(--line);
	padding: 48px 0 20px;
	margin-top: 30px;
}
p {
	margin: 14px 0;
}
li {
	padding-left: 4px;
	margin: 9px 0;
}
.callout {
	background: #edf0e3;
	border: 1px solid #dce2cb;
	border-radius: 8px;
	padding: 20px 24px;
	font-size: 0.9rem;
}
.callout p {
	margin-bottom: 0;
}
code {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.87em;
	overflow-wrap: anywhere;
}
p code,
li code,
td code {
	background: #e9ece4;
	border-radius: 3px;
	padding: 2px 4px;
}
.codebox {
	border-radius: 8px;
	overflow: hidden;
	background: #142b24;
	margin: 24px 0;
	color: #eef4e8;
	max-width: 100%;
}
.codebar {
	padding: 10px 16px;
	background: #213b30;
	border-bottom: 1px solid #425648;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.76rem;
	color: #d1ddca;
}
.copy {
	border: 1px solid #60715e;
	border-radius: 4px;
	background: transparent;
	color: #f5f7ed;
	min-height: 36px;
	padding: 5px 10px;
	cursor: pointer;
}
.codebox pre {
	margin: 0;
	padding: 22px;
	overflow-x: auto;
	line-height: 1.7;
	font-size: 0.88rem;
	tab-size: 2;
}
.codebox pre code {
	overflow-wrap: normal;
	white-space: pre;
}
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 7px;
	margin: 24px 0;
}
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.87rem;
	text-align: left;
}
th {
	background: #eff0e8;
	color: var(--ink);
	font-weight: 650;
}
td,
th {
	padding: 13px 15px;
	vertical-align: top;
	min-width: 130px;
}
tr + tr td {
	border-top: 1px solid var(--line);
}
details {
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 16px 20px;
	margin: 22px 0;
	background: #fffefb;
}
summary {
	cursor: pointer;
	color: var(--green);
	font-size: 0.92rem;
	font-weight: 650;
}
details .table-wrap {
	margin-bottom: 0;
}
.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.cards article {
	border: 1px solid var(--line);
	padding: 22px 18px;
	border-radius: 7px;
	background: #fffefb;
}
.cards h3 {
	margin: 0;
}
.cards p {
	font-size: 0.88rem;
	margin-bottom: 0;
}
.endpoint {
	display: grid;
	grid-template-columns: 65px minmax(0, 1fr);
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
}
.endpoint small {
	display: block;
	color: var(--muted);
	font-size: 0.76rem;
	margin-top: 5px;
}
.method {
	font:
		700 0.7rem/1.5 ui-monospace,
		monospace;
	color: var(--green);
	padding-top: 2px;
}
footer {
	border-top: 1px solid var(--line);
	padding: 35px 0 60px;
	margin-top: 50px;
	font-size: 0.8rem;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: center;
}
.skip {
	position: fixed;
	top: -100px;
	left: 15px;
	z-index: 10;
	padding: 12px;
	background: var(--paper);
}
.skip:focus {
	top: 10px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
@media (max-width: 1050px) {
	.layout {
		gap: 35px;
		grid-template-columns: 200px minmax(0, 1fr);
	}
	.cards {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 760px) {
	.topbar {
		height: 68px;
		padding: 0 20px;
	}
	.brand {
		font-size: 1.55rem;
		gap: 10px;
	}
	.brand span {
		padding-left: 10px;
		font-size: 0.7rem;
	}
	.layout {
		display: block;
		padding: 0 20px;
	}
	nav {
		position: static;
		height: auto;
		display: flex;
		overflow-x: auto;
		gap: 6px;
		padding: 15px 0;
		border-bottom: 1px solid var(--line);
	}
	nav > a {
		flex-shrink: 0;
		padding: 6px 10px;
		white-space: nowrap;
		font-size: 0.8rem;
	}
	nav .eyebrow,
	nav .nav-bottom {
		display: none;
	}
	.hero {
		padding: 36px 0 28px;
	}
	h1 {
		font-size: 3.2rem;
	}
	.lead {
		font-size: 1.04rem;
	}
	.facts {
		gap: 14px;
	}
	.callout {
		padding: 18px;
	}
	main > section:not(.hero) {
		padding-top: 34px;
	}
	.codebox pre {
		padding: 16px;
		font-size: 0.79rem;
	}
	.cards {
		grid-template-columns: 1fr;
	}
	.table-wrap {
		margin: 20px 0;
	}
	td,
	th {
		padding: 11px;
	}
	footer {
		display: block;
	}
	.topbar > a:last-child {
		font-size: 0.75rem;
	}
	section {
		scroll-margin-top: 15px;
	}
}
@media (prefers-reduced-motion: reduce) {
	:root {
		scroll-behavior: auto;
	}
}
