/* Pine docs: one quiet black page. shadcn-style neutrals, nothing moving. */
:root {
	--bg: #0a0a0a;
	--text: #fafafa;
	--muted: #a1a1a1;
	--border: #262626;
	--card: #141414;
	--pine: #4f8d64;
	--sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
	--mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-color: #525252; }
a:hover { text-decoration-color: var(--text); }

/* ── Top bar ── */
.bar {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(10, 10, 10, 0.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.logo { width: 12px; height: 18px; fill: var(--pine); }
.sep, .muted { color: var(--muted); font-weight: 400; }
.bar-actions { display: flex; gap: 8px; }

.btn {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	border-radius: 6px;
	border: 1px solid var(--text);
	background: var(--text);
	color: var(--bg);
	font: 500 13px var(--sans);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.btn:hover { opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--card); opacity: 1; }

/* ── Document ── */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
.doc h2 {
	font-size: 20px;
	letter-spacing: -0.01em;
	margin: 48px 0 12px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	scroll-margin-top: 64px;
}
.doc p, .doc li { color: #d4d4d4; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); font-weight: 600; }

.doc code {
	font-family: var(--mono);
	font-size: 0.88em;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--card);
	border: 1px solid var(--border);
}

/* Code block with its copy button */
.code {
	position: relative;
	margin: 0 0 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--card);
}
.code pre { margin: 0; padding: 14px 80px 14px 16px; overflow-x: auto; }
.code pre code { padding: 0; border: 0; background: none; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.code .copy {
	position: absolute;
	top: 8px;
	right: 8px;
	height: 26px;
	padding: 0 10px;
	border-radius: 5px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--muted);
	font: 500 12px var(--sans);
	cursor: pointer;
}
.code .copy:hover { color: var(--text); }

/* Tables */
.table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 500; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { white-space: nowrap; }

.foot { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }

@media (max-width: 520px) {
	.doc h1 { font-size: 26px; }
	.bar .btn.ghost { display: none; }
}
