/* What the documentation needs beyond the legal pages' stylesheet: code, and commands to copy. */
code {
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 0.88em;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--paper);
	border: 1px solid var(--line);
}
pre {
	margin: 10px 0 18px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--ink);
	color: var(--paper);
	font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
	overflow-x: auto;
}
td code {
	white-space: nowrap;
}
.asks li {
	font-style: italic;
}
ol {
	padding-left: 22px;
}
.card pre {
	margin-bottom: 8px;
}
h3 {
	margin: 22px 0 6px;
	font-size: 16px;
}
.toc {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 8px;
	font-size: 14px;
}
/* The index: one paper card per page, tilted a little, the way the wall draws a card. */
.docs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
	margin: 28px 0 8px;
}
.doc {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 210px;
	padding: 18px 18px 16px;
	border-radius: 3px;
	color: var(--ink);
	text-decoration: none;
	box-shadow:
		0 1px 2px rgba(46, 42, 38, 0.12),
		0 8px 18px -8px rgba(46, 42, 38, 0.3);
	transform: rotate(var(--tilt, -1deg));
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}
.doc:nth-child(2) {
	--tilt: 0.8deg;
}
.doc:nth-child(3) {
	--tilt: -0.4deg;
}
.doc:hover {
	transform: rotate(0deg) translateY(-2px);
	box-shadow:
		0 2px 4px rgba(46, 42, 38, 0.12),
		0 14px 26px -10px rgba(46, 42, 38, 0.35);
}
.doc.yellow {
	background: #fff3a6;
}
.doc.blue {
	background: #d8ecfb;
}
.doc.green {
	background: #d9f2d4;
}
.doc .kind {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.doc b {
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.doc .what {
	flex: 1;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-soft);
}
.doc .go {
	font-size: 14px;
	font-weight: 800;
	color: var(--accent);
}
.page.wide {
	max-width: 1000px;
}
.page.wide .lead {
	max-width: 62ch;
}
.docs {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.toc a {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	font-weight: 700;
	text-decoration: none;
}
.toc a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* The guides: a list under the big cards, one line each, so there is room for many. */
.guides-title {
	margin: 40px 0 2px;
}
.guides-lead {
	margin: 0 0 12px;
	color: var(--ink-soft);
}
.guides {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: grid;
	gap: 8px;
}
.guides a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 16px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}
.guides a:hover {
	border-color: var(--accent);
}
.guides b {
	font-size: 16px;
}
.guides span {
	grid-column: 1;
	color: var(--ink-soft);
	font-size: 14px;
	line-height: 1.5;
}
.guides small {
	grid-column: 2;
	grid-row: 1;
	color: var(--ink-muted);
	font-size: 12px;
	font-weight: 700;
}
/* A guide's own furniture: where it sits in the docs, and its pictures. */
.crumbs {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--ink-muted);
}
.crumbs a {
	color: var(--ink-soft);
}
figure {
	margin: 14px 0 22px;
}
figure img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 8px 18px -12px rgba(46, 42, 38, 0.35);
}
figcaption {
	margin-top: 6px;
	font-size: 13px;
	color: var(--ink-muted);
}
.see {
	padding: 10px 14px;
	border-left: 3px solid var(--accent);
	background: var(--paper);
	border-radius: 0 8px 8px 0;
}
li pre {
	margin-top: 8px;
}
/* A block of code with its copy button (added by the guide's own script). */
.code {
	position: relative;
}
.code .copy {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 10px;
	border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--ink) 80%, var(--paper));
	color: var(--paper);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	opacity: 0.85;
}
.code .copy:hover {
	opacity: 1;
}
figure a {
	display: block;
	cursor: zoom-in;
}
.code pre {
	padding-right: 72px;
}
