/* node.kadia.io — Kadia "prism" appearance, matching explorer.kadia.io. */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('/assets/fonts/manrope-latin-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('/assets/fonts/space-grotesk-latin-var.woff2') format('woff2');
}

:root {
	color-scheme: light;
	--bg: #e9eef6;
	--bg-sunk: #dfe7f3;
	--surface: #f7faff;
	--surface-solid: #ffffff;
	--surface-hover: #edf3ff;
	--fg: #15233e;
	--fg-muted: #53647f;
	--hairline: #cdd8e9;
	--accent: #a9c9ff;
	--accent-ink: #3659c7;
	--accent-wash: #e3ecff;
	--ink-panel: #0a1428;
	--ink-panel-soft: #152643;
	--ink-fg: #edf4ff;
	--ink-fg-muted: #b0c0db;
	--ink-hairline: #2a3c59;
	--btn-fill: #213b72;
	--btn-fill-fg: #f5f8ff;
	--btn-hover: #345695;
	--btn-hover-fg: #ffffff;
	--ok: #1f9d63;
	--warn: #c98a00;
	--warn-ink: #805000;
	--warn-wash: #fbf0d6;
	--danger: #d24b4b;
	--danger-ink: #a62b2b;
	--head-wash: #eef0f4;
	--page-glow: #cbdcfc8c;
	--shadow-lift: 0 24px 48px #19335a26;
	--shadow-rest: 0 12px 24px -10px #19335a36, inset 0 1px 0 #ffffff;
	--radius-card: 16px;
	--radius-control: 9px;
	--font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Space Grotesk', var(--font-sans);
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--gutter: 32px;
}
@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--bg: #080d18;
		--bg-sunk: #070b13;
		--surface: #111b2d;
		--surface-solid: #111b2d;
		--surface-hover: #1a2a45;
		--fg: #e9f1ff;
		--fg-muted: #a5b5ce;
		--hairline: #2a3c59;
		--accent-ink: #a9c9ff;
		--accent-wash: #1a3154;
		--ink-panel: #060c19;
		--btn-fill: #a9c9ff;
		--btn-fill-fg: #0a1428;
		--btn-hover: #c7dcff;
		--btn-hover-fg: #0a1428;
		--ok: #58d292;
		--warn: #d9a441;
		--warn-ink: #efc26d;
		--warn-wash: #3a2e14;
		--danger: #e07070;
		--danger-ink: #ffaaaa;
		--head-wash: #1a2436;
		--page-glow: #20407430;
		--shadow-lift: 0 24px 48px #00000060;
		--shadow-rest: 0 12px 24px -10px #00000070, inset 0 1px 0 #d3e5ff14;
	}
}
@media (max-width: 900px) {
	:root {
		--gutter: 18px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 16px;
}
body {
	margin: 0;
	min-height: 100vh;
	font: 400 15px/1.6 var(--font-sans);
	color: var(--fg);
	background: radial-gradient(ellipse at 95% 0, var(--page-glow), transparent 60%) var(--bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}
a {
	color: var(--accent-ink);
	text-underline-offset: 3px;
}
a:hover {
	text-decoration-thickness: 2px;
}
code,
pre,
input,
textarea,
select {
	font-family: var(--font-mono);
}
code {
	font-size: 0.92em;
	overflow-wrap: anywhere;
}
:focus-visible {
	outline: 2px solid var(--accent-ink);
	outline-offset: 2px;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip {
	position: absolute;
	left: 12px;
	top: -48px;
	padding: 8px 14px;
	border-radius: var(--radius-control);
	background: var(--btn-fill);
	color: var(--btn-fill-fg);
	z-index: 10;
}
.skip:focus {
	top: 12px;
}
.wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-inline: var(--gutter);
}

/* Header */
.top-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-block: 22px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}
.mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 11px;
	background: var(--accent);
	color: var(--ink-panel);
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
}
.wordmark {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.name {
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.sub {
	font-size: 11px;
	font-weight: 500;
	color: var(--fg-muted);
}
.top-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.top-links a {
	padding: 7px 12px;
	border-radius: 999px;
	color: var(--fg);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.top-links a:hover {
	background: var(--surface-hover);
}

/* Hero */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 28px;
	align-items: stretch;
	padding: 36px;
	margin-top: 8px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	background: linear-gradient(135deg, var(--surface-solid), var(--bg-sunk));
	box-shadow: var(--shadow-lift);
}
.eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
}
h1 {
	font-size: clamp(36px, 5.4vw, 60px);
}
h1 em {
	font-style: normal;
	color: var(--accent-ink);
}
h2 {
	font-size: clamp(26px, 3.4vw, 36px);
	margin-bottom: 18px;
}
h3 {
	font-size: 18px;
	margin-bottom: 6px;
}
.lead {
	max-width: 56ch;
	margin: 18px 0 24px;
	font-size: 17px;
	color: var(--fg-muted);
}
.base {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 100%;
	padding: 8px 8px 8px 14px;
	border: 1px solid var(--hairline);
	border-radius: 12px;
	background: var(--surface-solid);
}
.base-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--fg-muted);
}
.base code {
	font-size: 15px;
	font-weight: 600;
}

/* Buttons */
.btn,
.copy,
.try {
	font: 700 13px/1 var(--font-sans);
	border-radius: var(--radius-control);
	cursor: pointer;
	white-space: nowrap;
}
.btn {
	padding: 11px 18px;
	border: 0;
	background: var(--btn-fill);
	color: var(--btn-fill-fg);
}
.btn:hover {
	background: var(--btn-hover);
	color: var(--btn-hover-fg);
}
.btn:disabled {
	opacity: 0.6;
	cursor: progress;
}
.copy,
.try {
	padding: 7px 11px;
	border: 1px solid var(--hairline);
	background: var(--surface);
	color: var(--fg);
}
.copy:hover,
.try:hover {
	background: var(--surface-hover);
	border-color: var(--accent-ink);
}

/* Live status */
.status {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border: 1px solid var(--hairline);
	border-radius: 14px;
	background: var(--surface-solid);
	box-shadow: var(--shadow-rest);
}
.status-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.status-head h2 {
	font-size: 18px;
	margin: 0;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border: 1px solid var(--hairline);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fg-muted);
}
.pill[data-tone='ok'] .dot {
	background: var(--ok);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
}
.pill[data-tone='warn'] .dot {
	background: var(--warn);
}
.pill[data-tone='danger'] .dot {
	background: var(--danger);
}
.facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
	margin: 0;
}
.facts div {
	min-width: 0;
	padding-top: 10px;
	border-top: 1px solid var(--hairline);
}
.facts dt {
	font-size: 12px;
	font-weight: 600;
	color: var(--fg-muted);
}
.facts dd {
	margin: 2px 0 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.facts dd.num {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 26px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}
.status-foot {
	margin: auto 0 0;
	font-size: 12px;
	color: var(--fg-muted);
}

/* Sections */
.band {
	padding-top: 72px;
}
.intro {
	max-width: 72ch;
	margin: -6px 0 24px;
	color: var(--fg-muted);
}
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
}
.cards.two {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--shadow-rest);
}
.card p {
	margin: 0 0 14px;
	color: var(--fg-muted);
}
.card pre {
	margin-top: auto;
}
.card.wide {
	margin-top: 16px;
}
.card ul {
	margin: 4px 0 0;
	padding-left: 18px;
	color: var(--fg-muted);
}
.card li + li {
	margin-top: 6px;
}
pre {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--ink-panel);
	color: var(--ink-fg);
	font-size: 13px;
	line-height: 1.55;
	overflow-x: auto;
}
pre code {
	font-size: inherit;
	overflow-wrap: normal;
}

/* Routes */
.groups {
	display: grid;
	gap: 16px;
}
.group {
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--shadow-rest);
	overflow: hidden;
}
.group-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 4px 14px;
	padding: 16px 20px;
	background: var(--head-wash);
	border-bottom: 1px solid var(--hairline);
}
.group-head h3 {
	margin: 0;
}
.group-head p {
	margin: 0;
	color: var(--fg-muted);
	font-size: 14px;
}
.count {
	font-size: 12px;
	font-weight: 700;
	color: var(--fg-muted);
}
.route-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.route {
	display: grid;
	grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 10px 20px;
}
.route + .route {
	border-top: 1px solid var(--hairline);
}
.route:hover {
	background: var(--surface-hover);
}
.method {
	justify-self: start;
	padding: 3px 7px;
	border-radius: 6px;
	font: 800 11px/1.3 var(--font-mono);
	letter-spacing: 0.04em;
}
.m-get {
	background: var(--accent-wash);
	color: var(--accent-ink);
}
.m-post {
	background: var(--warn-wash);
	color: var(--warn-ink);
}
.m-head {
	background: var(--bg-sunk);
	color: var(--fg-muted);
}
.path {
	font-size: 13px;
	font-weight: 600;
}
.param {
	color: var(--accent-ink);
}
.summary {
	font-size: 14px;
	color: var(--fg-muted);
}

/* Console */
.console {
	padding: 18px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card) var(--radius-card) 0 0;
	background: var(--surface);
}
.console-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
select,
input,
textarea {
	font-size: 14px;
	color: var(--fg);
	background: var(--surface-solid);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-control);
}
select {
	padding: 10px 12px;
	font-weight: 700;
}
.path-field {
	display: flex;
	align-items: center;
	flex: 1 1 320px;
	min-width: 0;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-control);
	background: var(--surface-solid);
}
.path-field:focus-within {
	outline: 2px solid var(--accent-ink);
	outline-offset: 1px;
}
.path-base {
	padding-left: 12px;
	font: 13px var(--font-mono);
	color: var(--fg-muted);
	white-space: nowrap;
}
.path-field input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px 10px 1px;
	border: 0;
	background: transparent;
	outline: none;
}
.console-body {
	margin-top: 12px;
}
.console-body label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--fg-muted);
}
textarea {
	width: 100%;
	padding: 10px 12px;
	resize: vertical;
}
.console-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--fg-muted);
}
.console-note.error {
	color: var(--danger-ink);
	font-weight: 600;
}
.response {
	border: 1px solid var(--hairline);
	border-top: 0;
	border-radius: 0 0 var(--radius-card) var(--radius-card);
	background: var(--ink-panel);
	overflow: hidden;
}
.response-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--ink-hairline);
	color: var(--ink-fg-muted);
	font-size: 13px;
}
.response-head #c-curl {
	margin-left: auto;
}
.response-head .copy {
	background: transparent;
	color: var(--ink-fg);
	border-color: var(--ink-hairline);
}
.response-head .copy:hover {
	background: var(--ink-panel-soft);
}
.code-status {
	font: 800 13px var(--font-mono);
	color: var(--ink-fg);
}
.code-status[data-tone='ok'] {
	color: #58d292;
}
.code-status[data-tone='warn'] {
	color: #efc26d;
}
.code-status[data-tone='danger'] {
	color: #ff9d9d;
}
.output {
	max-height: 520px;
	overflow: auto;
	border-radius: 0;
}

/* Footer */
.foot {
	margin-top: 88px;
	border-top: 1px solid var(--hairline);
}
.foot-in {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-block: 28px 40px;
}
.brand.small .mark {
	width: 26px;
	height: 26px;
	border-radius: 9px;
	font-size: 15px;
	background: var(--fg);
	color: var(--bg);
}
.brand.small .name {
	font-size: 15px;
}
.foot-line {
	margin: 0;
	font-size: 13px;
	color: var(--fg-muted);
}
.foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 900px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		padding: 22px;
	}
	.band {
		padding-top: 52px;
	}
	.route {
		grid-template-columns: 50px minmax(0, 1fr) auto;
		gap: 4px 10px;
		padding: 12px 16px;
	}
	.route .summary {
		grid-column: 2 / 3;
		grid-row: 2;
		font-size: 13px;
	}
	.route .try {
		grid-row: 1 / span 2;
		grid-column: 3;
	}
	.group-head {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 14px 16px;
	}
	.group-head p {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.foot-links {
		margin-left: 0;
	}
}
@media (max-width: 480px) {
	.facts dd.num {
		font-size: 22px;
	}
	.path-base {
		display: none;
	}
	.path-field input {
		padding-left: 12px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
