/* Dispatch website — one stylesheet, no JavaScript.
 * Colours from 06_UX/Dispatch-UX.md. Light is the default; dark follows the
 * reader's system setting. [data-theme] on <html> forces one scheme (used only
 * by the design review; the templates never set it).
 */

/* DispatchOCR — derived from OCR A by Matthew Skala (2011-12, 2021), based on
 * code by Richard B. Wales (1988-89) and Tor Lillqvist. Skala places his work in
 * the public domain; the Wales notice it derives from asks that the credit stay
 * intact and that the font not be sold. Keep this comment and the font's own
 * name table together. See fonts/LICENSE-DispatchOCR.txt. */
@font-face {
	font-family: 'DispatchOCR';
	src: url('fonts/DispatchOCR.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: light;
	--bg: #f7f9fb;
	--panel: #ffffff;
	--sunk: #eef2f6;
	--ink: #10171f;
	--muted: #5a6b7d;
	--line: #dde5ec;
	--brand: #01affd;      /* logo only — 2.33:1 on --bg, never text */
	--accent: #0176b0;     /* links, labels, IDs — 4.72:1 */
	--accent-ink: #ffffff; /* text on an --accent fill */
	--focus: #0176b0;
	--shadow: 0 1px 2px rgba(16, 23, 31, .05);
	--amber: #e8a600; --amber-ink: #10171f;
	--green: #2f9e57; --green-ink: #ffffff;
	--violet: #7c5cff; --violet-ink: #ffffff;
	--ocr: 'DispatchOCR', ui-monospace, Consolas, monospace;
	--sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	--mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	--wide: 72rem;
	--prose: 42rem;
	--gutter: clamp(1rem, 4vw, 2rem);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #080c11; --panel: #101823; --sunk: #0c131b;
		--ink: #d6e2ee; --muted: #8198b0; --line: #1f2d3b;
		--brand: #01affd; --accent: #01affd; --accent-ink: #080c11; --focus: #01affd;
		--shadow: none;
		--amber: #f0b429; --green: #3fbf6f; --green-ink: #080c11; --violet: #9d85ff; --violet-ink: #080c11;
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #080c11; --panel: #101823; --sunk: #0c131b;
	--ink: #d6e2ee; --muted: #8198b0; --line: #1f2d3b;
	--brand: #01affd; --accent: #01affd; --accent-ink: #080c11; --focus: #01affd;
	--shadow: none;
	--amber: #f0b429; --green: #3fbf6f; --green-ink: #080c11; --violet: #9d85ff; --violet-ink: #080c11;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 1.0625rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: var(--gutter); top: .5rem; z-index: 10;
	background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem;
	border-radius: 6px; font-weight: 600; text-decoration: none;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
/* The play triangle is always DispatchOCR's own ▷/▶ (U+25B7/U+25B6). */
.tri { font-family: var(--ocr); font-weight: 400; font-style: normal; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: .5rem 1.5rem; padding-top: .85rem; padding-bottom: .85rem;
}
.logo {
	font-family: var(--ocr); font-size: 1.6rem; line-height: 1; color: var(--brand);
	text-decoration: none; letter-spacing: .02em; white-space: nowrap;
	display: inline-flex; align-items: center; gap: .35em; padding: .2rem 0;
}
.logo:hover { text-decoration: none; }
.site-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .25rem .35rem;
}
.site-nav a {
	display: block; padding: .4rem .7rem; border-radius: 6px;
	font-family: var(--ocr); font-size: .9rem; letter-spacing: .02em;
	color: var(--ink); text-decoration: none;
}
.site-nav a:hover { background: var(--sunk); }
.site-nav a[aria-current] { color: var(--accent); background: var(--sunk); }
@media (max-width: 34rem) {
	.site-header .wrap { flex-direction: column; align-items: flex-start; }
	.site-nav { width: 100%; margin-left: -.7rem; }
	.site-nav a { padding: .55rem .7rem; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
	padding-top: 1.75rem; padding-bottom: 2.5rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0; }

/* ---------- Shared labels ---------- */
.eyebrow {
	font-family: var(--ocr); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--accent); margin: 0 0 .75rem;
}
.meta { font-family: var(--ocr); font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
.chip {
	display: inline-block; font-family: var(--ocr); font-size: .75rem; line-height: 1.4;
	color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .45rem;
	letter-spacing: .03em; white-space: nowrap;
}
.section-title {
	font-family: var(--ocr); font-weight: 400; font-size: 1.35rem; letter-spacing: .01em;
	margin: 0 0 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
/* A button moves to the next row whole instead of breaking its label; only one wider than the screen wraps. */
.actions .btn { flex-shrink: 0; max-width: 100%; }
.btn {
	display: inline-flex; align-items: center; gap: .5em; min-height: 2.75rem;
	padding: .6rem 1.1rem; border-radius: 7px; border: 1px solid var(--accent);
	font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { color: var(--accent); background: transparent; }
.btn-secondary:hover { background: var(--sunk); }
.btn .tri { font-family: var(--ocr); font-weight: 400; }

/* ---------- Home: hero ---------- */
.hero .wrap {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 3rem; align-items: center; padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: 3rem;
}
@media (max-width: 58rem) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
.hero h1 {
	font-family: var(--ocr); font-weight: 400; letter-spacing: .005em;
	font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; margin: 0; text-wrap: balance;
}
.hero h1 .tri { color: var(--brand); }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; margin: 1.25rem 0 0; text-wrap: pretty; }
.hero .requirements { margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }

/* The hero visual: a board in HTML so it themes and scales. It is decorative
 * (role="img" with a label), so its tiny text is not reading content. */
.board {
	background: var(--sunk); border: 1px solid var(--line); border-radius: 12px;
	padding: .9rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem;
}
@media (max-width: 30rem) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .board .col:nth-child(3) { display: none; } }
.board .col { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.board .col-head {
	font-size: .75rem; font-weight: 600; color: var(--muted); padding: .1rem .2rem .2rem;
	display: flex; justify-content: space-between;
}
.card {
	background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
	padding: .6rem .65rem; box-shadow: var(--shadow); font-size: .78rem; line-height: 1.35;
}
.card .id { font-family: var(--ocr); color: var(--accent); font-size: .72rem; letter-spacing: .03em; }
.card .t { margin: .2rem 0 .5rem; }
.card .foot { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.badge { font-weight: 700; font-size: .7rem; border-radius: 999px; padding: .05rem .45rem; }
.badge-amber { background: var(--amber); color: var(--amber-ink); }
.badge-green { background: var(--green); color: var(--green-ink); }
.badge-violet { background: var(--violet); color: var(--violet-ink); }
.card .pill { font-size: .68rem; color: var(--muted); background: var(--sunk); border-radius: 999px; padding: .05rem .45rem; }
.card .launch {
	margin-left: auto; font-family: var(--ocr); font-size: .68rem; color: var(--accent);
	border: 1px solid var(--accent); border-radius: 4px; padding: .05rem .4rem; white-space: nowrap;
}
.card.running { border-color: var(--accent); }
.card.running .launch { background: var(--accent); color: var(--accent-ink); }

/* ---------- Home: sections ---------- */
.home-section { padding-top: 3.5rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; align-items: start; }
@media (max-width: 58rem) { .home-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.updates { list-style: none; margin: 0; padding: 0; }
.updates li { border-bottom: 1px solid var(--line); }
.updates a.entry {
	display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .15rem 1.25rem;
	padding: 1rem 0; text-decoration: none; color: var(--ink);
}
.updates .kind { grid-row: span 2; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.updates .title { font-weight: 600; font-size: 1.05rem; color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; }
.updates a.entry:hover .title { text-decoration-color: currentColor; }
.updates .ext { font-family: var(--ocr); font-weight: 400; }
.updates .summary { color: var(--muted); font-size: .95rem; margin: 0; }
.chip-release { color: var(--accent); border-color: currentColor; }
@media (max-width: 30rem) {
	.updates a.entry { grid-template-columns: minmax(0, 1fr); }
	.updates .kind { grid-row: auto; flex-direction: row; align-items: center; gap: .6rem; }
}
.more { margin: 1rem 0 0; font-size: .95rem; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.social a {
	display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; margin: 0 -.6rem;
	border-radius: 6px; color: var(--ink); text-decoration: none;
}
.social a:hover { background: var(--sunk); }
.social svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--accent); }
.social .handle { margin-left: auto; font-family: var(--ocr); font-size: .75rem; color: var(--muted); }
@media (max-width: 58rem) { .home-aside { padding-top: 3.5rem; } .social { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .25rem 1.5rem; } .social a { margin: 0; } }

/* Testimonials: wrap the whole block in {% if testimonials %}. One quote gets
 * a single wide pull-quote; two or three sit in columns. */
.testimonials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.testimonials li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.testimonials blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; text-wrap: pretty; }
.testimonials blockquote p { margin: 0; }
.testimonials blockquote::before { content: '\201C'; display: block; font-family: var(--ocr); font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: .35rem; }
.testimonials .who { margin-top: auto; font-size: .9rem; }
.testimonials .name { font-weight: 600; display: block; }
.testimonials .role { color: var(--muted); }
.testimonials li:only-child { padding: 2rem 2.25rem; }
.testimonials li:only-child blockquote { font-size: clamp(1.2rem, 2.2vw, 1.5rem); max-width: 44rem; }

/* ---------- Page header (all inner pages) ---------- */
.page-head { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: 2rem; }
.page-head h1 {
	font-family: var(--ocr); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 2.9rem);
	line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: .005em;
}
.page-head .description { font-size: 1.2rem; color: var(--muted); margin: 1rem 0 0; max-width: var(--prose); text-wrap: pretty; }
.page-head .meta { margin: 1rem 0 0; }
.breadcrumb { font-family: var(--ocr); font-size: .85rem; margin: 0 0 1rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Article list ---------- */
.post-list { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.75rem; align-items: center; padding: 1.5rem 0; text-decoration: none; color: var(--ink); }
.post-list a:has(.teaser) { grid-template-columns: 14rem minmax(0, 1fr); }
@media (max-width: 36rem) { .post-list a:has(.teaser) { grid-template-columns: minmax(0, 1fr); } }
.post-list .teaser { border-radius: 8px; }
.post-list a:hover .teaser { border-color: var(--accent); }
.post-list h2 { font-family: var(--ocr); font-weight: 400; font-size: 1.3rem; line-height: 1.3; margin: .35rem 0 .4rem; color: var(--accent); text-wrap: balance; }
.post-list a:hover h2 { text-decoration: underline; text-underline-offset: .18em; }
.post-list p { margin: 0; color: var(--muted); max-width: 40rem; }

/* ---------- Prose (the rendered markdown body) ---------- */
.prose { max-width: var(--prose); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .3rem 0; }
.prose li::marker { color: var(--muted); }
.prose h2, .prose h3, .prose h4 { position: relative; scroll-margin-top: 1.5rem; text-wrap: balance; }
.prose h2 { font-family: var(--ocr); font-weight: 400; font-size: 1.5rem; line-height: 1.25; margin: 3rem 0 1rem; letter-spacing: .005em; }
.prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--ocr); font-weight: 400; letter-spacing: .005em; }
.prose h3 { font-size: 1.2rem; line-height: 1.3; margin: 2.25rem 0 .75rem; }
.prose h4 { font-size: 1rem; margin: 1.75rem 0 .5rem; }
.prose h5, .prose h6 { font-size: .95rem; margin: 1.5rem 0 .5rem; color: var(--muted); }
/* Every headline is DispatchOCR. It has ß and § (build 2), so "gemäß § 5" on
 * the Impressum stays in one face; what it still lacks (€, dashes, guillemets)
 * falls back to the monospace stack mid-word. */
/* Zola's heading anchors (insert_anchor_links = "right"; see anchor-link.html) */
.zola-anchor {
	margin-left: .4em; font-family: var(--ocr); font-weight: 400; color: var(--muted);
	text-decoration: none; opacity: 0;
}
.prose :is(h2, h3, h4):hover .zola-anchor, .zola-anchor:focus-visible { opacity: 1; }
@media (hover: none) { .zola-anchor { opacity: .6; } }
.prose strong { font-weight: 650; }
.prose :is(h2, h3, h4, h5, h6) code { font-family: var(--ocr); background: none; border: 0; padding: 0; font-size: 1em; color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--line); color: var(--muted); }
.prose img { border-radius: 6px; }

/* Inline code and code blocks */
.prose code, .prose kbd {
	font-family: var(--mono); font-size: .88em; background: var(--sunk);
	border: 1px solid var(--line); border-radius: 4px; padding: .05em .3em;
}
.prose pre {
	margin: 1.5rem 0; padding: 1rem 1.15rem; overflow-x: auto; max-width: 100%;
	background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
	font: .875rem/1.6 var(--mono); tab-size: 4; box-shadow: var(--shadow);
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose pre[data-lang]::before {
	content: attr(data-lang); display: block; margin: -.2rem 0 .6rem;
	font-family: var(--ocr); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* Tables scroll inside their own box — no wrapper needed from the build. */
.prose table {
	display: block; max-width: 100%; overflow-x: auto; margin: 1.5rem 0;
	border-collapse: collapse; font-size: .9rem; line-height: 1.45;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .8rem; border-bottom: 1px solid var(--line); min-width: 8rem; }
.prose th { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--sunk); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { min-width: 9.5rem; }
.prose td code { white-space: nowrap; }

/* Figures. Diagrams are black line work on transparency, so they sit on a
 * white plate in both schemes. */
.prose figure { margin: 2rem 0; }
.prose figure img { display: block; margin: 0 auto; border-radius: 6px; }
.prose figure.diagram img, .prose figure img[src$=".svg"] { background: #fff; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.prose figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted); text-wrap: pretty; }
.prose figcaption a { color: var(--muted); }
.prose .figure-desc { font-family: var(--ocr); font-size: .78rem; white-space: nowrap; }

/* Callouts from the build: <aside class="callout callout-<type>"> with a
 * <p class="callout-title">. Types: note, tip, info, warning, quote … */
.callout {
	margin: 1.75rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line);
	border-radius: 8px; background: var(--panel); box-shadow: var(--shadow);
}
.callout > :last-child { margin-bottom: 0; }
.callout-title {
	margin: 0 0 .5rem; font-family: var(--ocr); font-size: .8rem; letter-spacing: .06em;
	text-transform: uppercase; color: var(--accent);
}
.callout-title::before { content: '\25B7'; margin-right: .5em; font-family: var(--ocr); }
.callout-warning, .callout-caution, .callout-danger { border-color: #d89a00; }
.callout-warning .callout-title, .callout-caution .callout-title, .callout-danger .callout-title { color: var(--ink); }
.callout-warning .callout-title::before, .callout-caution .callout-title::before, .callout-danger .callout-title::before { content: '!'; color: #b47c00; }
.callout-quote { background: transparent; box-shadow: none; }
.callout-quote .callout-title::before { content: '\201C'; }
.callout-quote p:not(.callout-title) { font-size: 1.08rem; }

/* Footnotes: pulldown-cmark inline definitions and the bottom_footnotes section */
.footnote-reference a, .prose sup a { font-family: var(--ocr); font-size: .75em; text-decoration: none; padding: 0 .1em; }
.footnote-definition, .footnotes { font-size: .9rem; color: var(--muted); }
.footnote-definition { display: flex; gap: .6rem; margin: .5rem 0; }
.footnote-definition:first-of-type { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.footnote-definition p { margin: 0; }
.footnote-definition-label { font-family: var(--ocr); color: var(--accent); }
.footnotes { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.footnotes ol { padding-left: 1.4rem; }
/* The footnote's text under the line of its number, on hover or focus (.fn > sup + .fn-tip, from
 * the build). Its top stays where the number is (top: auto); across, it is placed in the text
 * column (.prose), not at the number, so it never reaches past the column's edges, and the column
 * always fits the screen. Touch screens have no hover: a tap follows the number to the list. */
.prose { position: relative; }
.fn-tip { display: none; }
@media (hover: hover) {
	.fn:hover .fn-tip, .fn:focus-within .fn-tip {
		display: block; position: absolute; z-index: 10; top: auto; left: 0; right: 0; margin: .35rem auto 0;
		width: fit-content; max-width: min(28rem, 100%); padding: .55rem .75rem;
		background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 7px;
		box-shadow: 0 4px 16px rgba(16, 23, 31, .12);
		font: 400 .875rem/1.45 var(--sans); font-style: normal; text-align: left; white-space: normal; letter-spacing: normal;
	}
	.fn-tip img { display: block; max-width: 100%; max-height: 12rem; width: auto; height: auto; }
}

/* ---------- Teasers (extra.teaser on articles) ----------
 * One frame for screenshots, diagrams and the Patch mark alike: a white plate
 * at 16:9, image contained. Screenshots can opt into cover with .teaser-cover. */
.teaser {
	display: block; aspect-ratio: 16 / 9; width: 100%; margin: 0;
	background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.teaser img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6%; border-radius: 0; }
.teaser-cover img { object-fit: cover; object-position: top left; padding: 0; }
.article-teaser { max-width: var(--prose); margin: 0 0 2.75rem; } /* the text column, 672 px (Kai, 2026-10-01; the design had 56rem) */

/* ---------- Article page ---------- */
.article-foot { max-width: var(--prose); margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .95rem; }

/* ---------- Docs layout ---------- */
.docs { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-top: clamp(2rem, 5vw, 3rem); }
@media (max-width: 58rem) { .docs { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.docs .page-head { padding-top: 0; }
.docs-nav { position: sticky; top: 1.5rem; font-size: .95rem; }
.docs-nav summary { display: none; }
.docs-nav h2 { font-family: var(--ocr); font-weight: 400; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.docs-nav ol { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.docs-nav a { display: block; padding: .35rem .6rem; margin-left: -.6rem; border-radius: 6px; color: var(--ink); text-decoration: none; }
.docs-nav a:hover { background: var(--sunk); }
.docs-nav a[aria-current] { color: var(--accent); background: var(--sunk); font-weight: 600; }
.docs-nav .toc a { color: var(--muted); font-size: .88rem; padding: .25rem .6rem; }
.docs-nav .toc .sub a { padding-left: 1.4rem; }
.docs-nav .toc a:hover { color: var(--ink); }
/* Narrow: the nav folds into a <details> — works without JavaScript. The
 * template renders it open; the summary only shows on narrow screens. */
@media (max-width: 58rem) {
	.docs-nav { position: static; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
	.docs-nav summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: .75rem 1rem; font-family: var(--ocr); font-size: .9rem; list-style: none; }
	.docs-nav summary::-webkit-details-marker { display: none; }
	.docs-nav summary::after { content: '\25B7'; font-family: var(--ocr); color: var(--accent); transition: transform .15s; }
	.docs-nav[open] summary::after { transform: rotate(90deg); }
	.docs-nav .inner { padding: 0 1rem .5rem; }
	.docs-nav .toc-block { display: none; }
}
.docs-pager { max-width: var(--prose); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.docs-pager a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1.1rem; text-decoration: none; background: var(--panel); }
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager .dir { display: block; font-family: var(--ocr); font-size: .75rem; color: var(--muted); letter-spacing: .04em; margin-bottom: .2rem; }
.docs-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 30rem) { .docs-pager { grid-template-columns: 1fr; } .docs-pager .next { grid-column: 1; } }

/* ---------- Releases ---------- */
.release-list { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.release-list li { border-top: 1px solid var(--line); }
.release-list li:last-child { border-bottom: 1px solid var(--line); }
.release-list a { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .1rem 1.5rem; padding: 1.25rem 0; text-decoration: none; color: var(--ink); }
.release-list .ver { font-family: var(--ocr); font-size: 1.25rem; color: var(--accent); grid-row: span 2; line-height: 1.3; }
.release-list .date { font-family: var(--ocr); font-size: .8rem; color: var(--muted); }
.release-list p { margin: 0; color: var(--ink); }
.release-list a:hover p { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 30rem) { .release-list a { grid-template-columns: minmax(0, 1fr); } .release-list .ver { grid-row: auto; } }
/* A bare issue URL on its own line (the release-body convention) */
.prose a[href*="/issues/"] { font-family: var(--ocr); font-size: .82rem; }
.issue-link { display: inline-block; margin-top: -.4rem; }

/* ---------- Legal ---------- */
.legal .prose { font-size: 1rem; }
.legal-nav { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.legal-nav a { display: block; font-family: var(--ocr); font-size: .82rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.legal-nav a:hover { border-color: var(--accent); }
.legal-nav a[aria-current] { border-color: var(--accent); color: var(--accent); }
.legal .prose address { font-style: normal; margin: 0 0 1.1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .docs-nav, .skip-link { display: none; } body { background: #fff; color: #000; } }

/* ---------- Added in the Zola conversion (US00018) ---------- */
/* A diagram's long description, folded under its figure; the caption's
 * "Diagram description" link opens it by targeting the paragraph inside. */
.prose .figure-long { margin: -1.25rem 0 2rem; font-size: .9rem; color: var(--muted); }
.prose .figure-long summary { cursor: pointer; font-family: var(--ocr); font-size: .78rem; width: fit-content; }
.prose .figure-long p { margin: .5rem 0 0; max-width: var(--prose); }
/* An SVG in an <img> follows the page's colour scheme, and draw.io exports carry a dark variant:
 * on the white plate that turns them black with dark labels. Pin the plated images to light. */
.prose figure img, .teaser img { color-scheme: light; }
/* The GitHub mark in the header, after FAQ (Kai, 2026-10-01). Same hit area and hover as the
 * text links; the mark takes the link colour, so it follows the scheme and the current state. */
.site-nav a.nav-github { display: flex; align-items: center; padding-left: .55rem; padding-right: .55rem; }
.site-nav a.nav-github svg { width: 1.25rem; height: 1.25rem; }
/* A testimonial's optional photo (Kai, 2026-10-01): a small round portrait beside the name.
 * Without one, the card is exactly the design's. */
.testimonials .who.has-photo { display: flex; align-items: center; gap: .8rem; }
.testimonials .avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--sunk); }
.testimonials li:only-child .avatar { width: 3.5rem; height: 3.5rem; }
