/* Retrospective website. Taken from the combined pilot (pilot.css), current design (plan PD-16):
   font Muli, accent orange #e75c00, light and dark theme (PD-15). */

@font-face { font-family: 'Muli'; font-weight: 300; font-display: swap; src: url(../fonts/muli-300.woff2) format('woff2'); }
@font-face { font-family: 'Muli'; font-weight: 400; font-display: swap; src: url(../fonts/muli-400.woff2) format('woff2'); }
@font-face { font-family: 'Muli'; font-weight: 600; font-display: swap; src: url(../fonts/muli-600.woff2) format('woff2'); }
@font-face { font-family: 'Muli'; font-weight: 700; font-display: swap; src: url(../fonts/muli-700.woff2) format('woff2'); }
@font-face { font-family: 'Muli'; font-weight: 800; font-display: swap; src: url(../fonts/muli-800.woff2) format('woff2'); }

/* Buttons (PD-16): in light mode the gradient of the logo icon and the old site, #f4840c → #e75c00,
   white text; hover lighter, as on the old site. White on it is 2.6–3.5:1, below WCAG AA for 16px
   text; accepted for the look (2026-10-26). --btn-bg is the flat colour where no gradient fits.
   Dark mode: flat orange with dark text (6.1:1) instead of white (2.6:1). */
:root {
	--accent: #e75c00;
	--accent-dark: #b84800;
	--accent-soft: #fdf0e7;
	--btn-bg: #e75c00;
	--btn-bg-hover: #f5690c;
	--btn-grad: linear-gradient(90deg, #f4840c, #e75c00);
	--btn-grad-hover: linear-gradient(90deg, #ff9019, #f5690c);
	--btn-text: #ffffff;
	--text: #26303a;
	--muted: #5d6b78;
	--line: #dde3e8;
	--bg: #ffffff;
	--bg-alt: #f5f7f9;
	--code-bg: #eef1f4;
	--note-bg: #fff8d6;
	--note-line: #e6c64a;
	--ok: #1b7a31;
	--width: 1080px;
	--narrow: 720px;
	color-scheme: light;
}

/* Dark colours: from the system (no choice stored) or from the switch (data-theme="dark") */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--accent: #ff7a26;
		--accent-dark: #ff9a55;
		--accent-soft: #3a2a1f;
		--btn-bg: #ff7a26;
		--btn-bg-hover: #ff9a55;
		--btn-grad: none;
		--btn-grad-hover: none;
		--btn-text: #1d2329;
		--text: #e4e8ec;
		--muted: #a3afba;
		--line: #3a444e;
		--bg: #1d2329;
		--bg-alt: #242b32;
		--code-bg: #2c353e;
		--note-bg: #3a3420;
		--note-line: #8a7630;
		--ok: #4fbf68;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--accent: #ff7a26;
	--accent-dark: #ff9a55;
	--accent-soft: #3a2a1f;
	--btn-bg: #ff7a26;
	--btn-bg-hover: #ff9a55;
	--btn-grad: none;
	--btn-grad-hover: none;
	--btn-text: #1d2329;
	--text: #e4e8ec;
	--muted: #a3afba;
	--line: #3a444e;
	--bg: #1d2329;
	--bg-alt: #242b32;
	--code-bg: #2c353e;
	--note-bg: #3a3420;
	--note-line: #8a7630;
	--ok: #4fbf68;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: 'Muli', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
code, kbd {
	font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
	font-size: .88em;
	background: var(--code-bg);
	padding: .1em .35em;
	border-radius: 3px;
}
pre {
	font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
	font-size: 14px;
	background: var(--code-bg);
	padding: 14px 16px;
	border-radius: 4px;
	overflow-x: auto;
	line-height: 1.45;
}
pre code { background: none; padding: 0; font-size: inherit; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 44px; font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Site header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-header nav a:hover, .site-header nav a.active { color: var(--accent); }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .logo-light { display: none; }
	:root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Theme switch button (PD-15) */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text); cursor: pointer; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }
.site-header nav .theme-btn { margin-left: -6px; }

/* Screenshot in both themes (PD-14): two <img>, CSS shows the one that matches the page.
   <picture media="(prefers-color-scheme: dark)"> would ignore the switch, so it is not used.
   Hidden images with loading="lazy" are not downloaded. */
.for-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .for-light { display: none !important; }
	:root:not([data-theme="light"]) .for-dark { display: block !important; }
}
:root[data-theme="dark"] .for-light { display: none !important; }
:root[data-theme="dark"] .for-dark { display: block !important; }

/* Buttons */
.btn {
	display: inline-block;
	background-color: var(--btn-bg);
	background-image: var(--btn-grad);
	color: var(--btn-text) !important;
	text-decoration: none;
	font: inherit;
	font-weight: 700;
	padding: 11px 22px;
	border-radius: 4px;
	font-size: 16px;
	border: 0;
	cursor: pointer;
}
.btn:hover { background-color: var(--btn-bg-hover); background-image: var(--btn-grad-hover); }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-ghost {
	background: transparent;
	color: var(--accent-dark) !important;
	border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
section.tight { padding: 36px 0; }
.lead { font-size: 21px; color: var(--muted); line-height: 1.5; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero h1 { max-width: 820px; }
.hero .lead { max-width: 760px; }

/* Screenshot frame */
.shot { margin: 28px 0; }
.shot img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.08); background: #fff; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.shot.plain img { box-shadow: none; }
.shot a { display: block; cursor: zoom-in; }
figure { margin: 0; }
/* Screenshot view (site.js): full window, the next click closes it */
.viewer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 19, 23, .88); cursor: zoom-out; outline: none; }
.viewer img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.viewer-open, .viewer-open body { overflow: hidden; }
/* Placeholder while a screenshot pair from the kits is missing (local and staging builds only) */
.shot-missing { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 15px; color: var(--muted); border: 2px dashed var(--line); border-radius: 6px; background: var(--bg-alt); }

/* Use case pages (layouts/story.njk) */
.story-notes { margin-top: 24px; }
.story-download { margin: 28px 0 14px; }

/* Home page blocks */
.version { font-size: 14px; color: var(--muted); margin-top: 12px; }
.sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; padding: 0; margin: 0; }
.sources li { padding: 9px 0; border-top: 1px solid var(--line); list-style: none; }
.sources b { display: block; }
.sources-more { margin-top: 18px; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cases .card h3 { font-size: 19px; }
.fits { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.customers { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.customers img { height: 30px; width: auto; }
/* Dark: the logos keep their colours (no recolouring of customer marks); their dark lettering needs a
   light tile behind it */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .customers img { box-sizing: content-box; padding: 7px 12px; border-radius: 4px; background: #e4e8ec; } }
:root[data-theme="dark"] .customers img { box-sizing: content-box; padding: 7px 12px; border-radius: 4px; background: #e4e8ec; }
@media (max-width: 1000px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .sources, .fits { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cases { grid-template-columns: 1fr; } }

/* Concept graphic (parts/concept-graphic.njk): grey lines, orange only for Retrospective; one colour
   per source, repeated on the table rows to show the merge. */
.concept { margin: 0 0 28px; color: var(--text); }
.concept svg { display: block; width: 100%; height: auto; overflow: visible; }
.concept .cg-narrow { display: none; }
.cg-icon { color: var(--text); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cg-label { font-size: 15px; font-weight: 700; fill: var(--text); }
.cg-sub { font-size: 13px; fill: var(--muted); }
.cg-note { font-size: 13px; fill: var(--muted); }
.cg-flow { fill: none; stroke: var(--cg-line); stroke-width: 1.6; }
.cg-box { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.cg-arrow { stroke: var(--accent); stroke-width: 2.2; fill: none; }
.cg-head { fill: var(--accent); }
.cg-name { font-size: 16px; font-weight: 800; fill: var(--text); }
.cg-table { fill: var(--bg); stroke: var(--cg-line); stroke-width: 1.4; }
.cg-bar { fill: var(--cg-line); }
.cg-sep { stroke: var(--line); stroke-width: 1; }
.cg-cell { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.cg-host { font-size: 12px; fill: var(--text); }
.cg-msg { fill: var(--line); }
.cg-s1 { fill: var(--cg-s1); } .cg-s2 { fill: var(--cg-s2); } .cg-s3 { fill: var(--cg-s3); } .cg-s4 { fill: var(--cg-s4); } .cg-s5 { fill: var(--cg-s5); }
:root { --cg-line: #b9c3cc; --cg-s1: #3f7cc0; --cg-s2: #2f9e8f; --cg-s3: #8b62c4; --cg-s4: #c0912a; --cg-s5: #6b7a88; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cg-line: #5a6672; --cg-s1: #6fa3dd; --cg-s2: #4fc0b0; --cg-s3: #ad8ae0; --cg-s4: #e0b04a; --cg-s5: #93a2b0; } }
:root[data-theme="dark"] { --cg-line: #5a6672; --cg-s1: #6fa3dd; --cg-s2: #4fc0b0; --cg-s3: #ad8ae0; --cg-s4: #e0b04a; --cg-s5: #93a2b0; }
@media (max-width: 640px) { .concept .cg-wide { display: none; } .concept .cg-narrow { display: block; max-width: 400px; margin: 0 auto; } }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.split.rev { grid-template-columns: 7fr 5fr; }

/* Cards */
.card {
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 22px;
	background: var(--bg);
	text-decoration: none;
	color: var(--text);
	display: block;
}
a.card:hover { border-color: var(--accent); }
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }

/* Story steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step::before {
	content: counter(step);
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--btn-bg);
	color: var(--btn-text);
	font-weight: 800;
	display: flex; align-items: center; justify-content: center;
	font-size: 19px;
}
.step .time { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--muted); }

/* Simple lists */
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 10px 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
/* <li><b>Label</b><span>Text</span></li>: label column on wide screens, stacked on narrow ones */
.facts li { display: grid; grid-template-columns: 190px 1fr; column-gap: 12px; }
.facts b { display: block; }

.nolist { list-style: none; padding: 0; }
.check li, .cross li { list-style: none; position: relative; padding-left: 26px; margin-bottom: 6px; }
.check, .cross { padding: 0; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.cross li::before { content: "–"; position: absolute; left: 2px; color: var(--muted); font-weight: 800; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--bg-alt); }
.table-wrap { overflow-x: auto; }
.table-note { margin-top: 14px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details > *:not(summary) { margin-top: 14px; }

/* Download page (PD-4): three cards; the visitor's system first and marked (site.js) */
.dl-hero { padding-bottom: 24px; }
.dl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.dl-card { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--bg); display: flex; flex-direction: column; scroll-margin-top: 20px; cursor: pointer; }
.dl-card:hover { border-color: var(--accent); }
.dl-card h2 { font-size: 24px; margin-bottom: 14px; }
.dl-card .yours { display: none; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 6px; }
.dl-card.chosen { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.dl-card.first { order: -1; }
.dl-card.detected .yours { display: block; }
.dl-card .btn { text-align: center; }
.dl-card .meta { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.dl-card .more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.dl-card > :nth-last-child(2) { margin-bottom: 18px; }
.dl-card .more p { margin: 0 0 12px; }
.dl-card .more p:last-child { margin-bottom: 0; }
.dl-card .more .meta { margin-top: 2px; }
.dl-card .os-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.dl-card .os-note code { display: inline-block; margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.cmd { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cmd code { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.cmd button { font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-alt); color: var(--text); cursor: pointer; }
.links-row { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; }
.dl-more { padding-top: 12px; }
.sums td:last-child { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
.versions td:first-child { font-weight: 700; white-space: nowrap; }
.versions tr.group td { background: var(--bg-alt); white-space: normal; font-size: 14px; padding-top: 14px; }
@media (max-width: 860px) { .dl-cards { grid-template-columns: 1fr; } }

/* Pricing page (PD-10) */
.compare th:nth-child(n+2), .compare td:nth-child(n+2) { text-align: center; width: 120px; }
.compare td.yes span, .compare td.no span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare td.yes::before { content: "✓"; color: var(--ok); font-weight: 800; }
.compare td.no::before { content: "–"; color: var(--muted); font-weight: 800; }
.compare td small { display: block; color: var(--muted); font-size: 13px; }
.compare tr.sep td { background: var(--bg-alt); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--bg); display: flex; flex-direction: column; }
.plan h3 { margin-bottom: 2px; }
.plan .for { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.plan .price { font-size: 38px; font-weight: 800; line-height: 1.1; margin: 0; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul { margin: 16px 0 20px; flex: 1; }
.plan .btn { text-align: center; }
.pricing-details h2 { margin-top: 44px; }
.pricing-details h2:first-child { margin-top: 0; }
.disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 1em; }
.disc div { border: 1px solid var(--line); border-radius: 6px; padding: 14px; text-align: center; }
.disc b { display: block; font-size: 26px; color: var(--accent-dark); }
.disc span { font-size: 14px; color: var(--muted); }
.pricing-end { margin-top: 40px; }
@media (max-width: 760px) {
	.plans { grid-template-columns: 1fr; }
	.disc { grid-template-columns: 1fr 1fr; }
	.compare th:nth-child(n+2), .compare td:nth-child(n+2) { width: 72px; }
}

/* Quote */
blockquote { margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); font-size: 19px; }
blockquote footer { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Download element (PD-2): desktop vs. phone variant, class set on <html> by head.js */
.only-phone { display: none; }
.os-phone .only-phone { display: block; }
.os-phone .only-desktop { display: none !important; }
.phone-box { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 16px 18px; margin: 4px 0 8px; max-width: 760px; }
.phone-box p { margin: 0 0 12px; }
.dl-also { font-size: 15px; }

/* Compact header on phones (PD-3) */
.menu-btn { display: none; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px; color: var(--text); cursor: pointer; }

/* Responsive */
@media (max-width: 860px) {
	h1 { font-size: 34px; }
	h2 { font-size: 25px; }
	.grid-2, .grid-3, .split, .split.rev { grid-template-columns: 1fr; }
	.site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
	.facts li { display: block; }
	section { padding: 44px 0; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	h1 { font-size: 29px; }
	.lead { font-size: 18px; }
	.step { grid-template-columns: 1fr; gap: 8px; }
	.site-header.compact .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.site-header.compact .menu-btn { display: block; }
	.site-header.compact nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0 8px; }
	.site-header.compact.open nav { display: flex; }
	/* Screenshot crop on phones (PD-3): <figure class="shot crop" style="--crop: x% y%"><a href=full.png><img></a> */
	.shot.crop img { aspect-ratio: 4 / 3 !important; object-fit: none; object-position: var(--crop, left top); }
	.shot.crop figcaption::after { content: " Tap to see the full screenshot."; }
}

/* Analytics consent banner (plan §4.4, consent.js): fixed at the bottom, the page stays usable */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.12); padding: 14px 0; font-size: 15px; }
.consent .wrap { display: flex; align-items: center; gap: 20px; }
.consent p { margin: 0; flex: 1; }
.consent-btns { display: flex; gap: 10px; flex-shrink: 0; }
/* "Privacy settings" clicked while the banner is already open */
.consent-nudge { animation: consent-nudge .9s ease-out; }
@keyframes consent-nudge { 0%, 40% { box-shadow: 0 0 0 3px var(--accent), 0 -6px 24px rgba(0,0,0,.12); } 100% { box-shadow: 0 -6px 24px rgba(0,0,0,.12); } }
@media (prefers-reduced-motion: reduce) { .consent-nudge { animation: none; } }
@media (max-width: 560px) { .consent .wrap { flex-direction: column; align-items: stretch; gap: 10px; } .consent-btns .btn { flex: 1; text-align: center; } }

/* ---- Pages: about, history, FAQ, contact, privacy, notes ---- */
/* Small grey topic headings (FAQ groups, Notes topics) */
.faq-topic > h2, .notes-topic > h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 0; }

/* About (PD-12) */
.about-hero { padding-bottom: 24px; }
.miles { list-style: none; padding: 0; margin: 0; }
.miles li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.miles li:first-child { border-top: 0; }
.miles b { color: var(--accent-dark); }
.miles-more { margin-top: 14px; }
/* Customer cards: the logo row reuses .customers (home page), so dark mode puts the same light tile
   behind the unchanged logos */
.customer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.customer-cards .customers { margin-bottom: 16px; }
.customer-cards .customers img { height: auto; max-height: 30px; max-width: calc(100% - 24px); }
.customer-cards .card p { font-size: 15px; }
@media (max-width: 860px) { .customer-cards { grid-template-columns: 1fr; } }

/* History (PD-7) */
.releases { list-style: none; padding: 0; margin: 0; }
.releases li { display: grid; grid-template-columns: 96px 64px 1fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; }
.releases .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.releases .v { font-weight: 700; }
.releases a { text-decoration: none; color: var(--text); }
.releases a:hover { color: var(--accent); text-decoration: underline; }
.releases li.now { background: var(--accent-soft); margin: 0 -12px; padding: 12px; border-radius: 4px; border-top: 0; }
.releases li.release-year { display: block; border-top: 0; padding: 22px 0 6px; font-weight: 800; font-size: 14px; letter-spacing: 1px; color: var(--accent-dark); }
.releases li.release-year:first-child { padding-top: 0; }
.articles { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; font-size: 15px; }
.articles li { break-inside: avoid; padding: 5px 0; }
.articles .d { color: var(--muted); font-size: 13px; display: inline-block; min-width: 76px; }
@media (max-width: 700px) { .articles { columns: 1; } }
@media (max-width: 560px) { .releases li { grid-template-columns: 80px 1fr; gap: 4px 16px; } .releases .t { grid-column: 1 / -1; } }

/* FAQ (PD-11): every answer is in the HTML, in <details> */
.faq-hero { padding-bottom: 16px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.faq-body { padding-top: 8px; }
.faq-topic { margin-top: 40px; scroll-margin-top: 16px; }
.qa { border-top: 0; border-bottom: 1px solid var(--line); padding: 0; }
.qa summary { padding: 14px 0; list-style: none; display: flex; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; color: var(--accent); font-weight: 800; width: 14px; flex: none; }
.qa[open] summary::before { content: "–"; }
.qa > .a { margin-top: 0; padding: 0 0 16px 26px; }
.qa .a p:last-child, .qa .a ul:last-child { margin-bottom: 0; }
.faq-more { margin-top: 28px; }

/* Contact (PD-5) */
.contact-address { margin-top: 18px; }
.contact-company { margin-top: 24px; }

/* Privacy policy (PD-13) */
.privacy h2 { font-size: 24px; margin-top: 40px; }
.privacy h3 { font-size: 18px; margin-top: 26px; }
.privacy-updated { margin-top: 36px; }

/* Notes index (PD-8) */
.notes-hero { padding-bottom: 20px; }
.notes-topic { margin-top: 44px; }
.notes-topic:first-child { margin-top: 0; }
.note { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.note:hover h3 { color: var(--accent); }
.note h3 { margin-bottom: 6px; }
.note p { margin: 0 0 6px; color: var(--muted); }
.note .by { font-size: 14px; color: var(--muted); }
.notes-more { margin-top: 36px; }

/* ---- Archived release notes and articles (src/archive-post.njk, plan §3.3) ----
   The old texts keep their own markup; images were made for a white page, so in dark mode they keep
   a white background (transparent dialogs and icons stay readable), and screenshots get a frame. */
.archive { padding: 56px 0 64px; }
.archive-date { margin: -4px 0 18px; font-size: 15px; }
.archive-note { margin: 0 0 32px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 15px; }
.archive-cover { width: 100%; border-radius: 6px; margin: 0 0 32px; }
.archive-body h2 { font-size: 24px; margin-top: 1.6em; }
.archive-body h3 { font-size: 19px; margin-top: 1.4em; }
.archive-body img { margin: 12px 0 20px; }
.archive-body img.icon { display: inline; margin: 0 2px; vertical-align: middle; }
.archive-body table { margin: 0 0 20px; }
.archive-body td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.archive-body pre { white-space: pre-wrap; }
.archive-nav { margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .archive-body img, :root:not([data-theme="light"]) .archive-cover { background: #fff; }
	:root:not([data-theme="light"]) .archive-body img:not(.icon), :root:not([data-theme="light"]) .archive-cover { border: 1px solid var(--line); border-radius: 4px; }
}
:root[data-theme="dark"] .archive-body img, :root[data-theme="dark"] .archive-cover { background: #fff; }
:root[data-theme="dark"] .archive-body img:not(.icon), :root[data-theme="dark"] .archive-cover { border: 1px solid var(--line); border-radius: 4px; }
/* Old inline styles: "width:100%" plus a left margin would run past the edge; the blue UI label of
   6.3 gets a lighter blue in dark mode */
.archive-body table[style] { width: auto !important; max-width: calc(100% - 2em); }
@media (max-width: 560px) { .archive-body [style*="margin-left"] { margin-left: 1em !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .archive-body [style*="#0000FF"] { color: #7fb0ff !important; } }
:root[data-theme="dark"] .archive-body [style*="#0000FF"] { color: #7fb0ff !important; }

/* ---- Release pages ---- */
/* src/_includes/layouts/release.njk (PD-9): hero with the release line, then the topics as h2 */
.release-hero { padding-bottom: 20px; }
.release-hero .eyebrow a { color: inherit; text-decoration: none; }
.release-hero .eyebrow a:hover { color: var(--accent); }
.release-meta { color: var(--muted); font-size: 15px; margin: -4px 0 18px; }
.release-body h2 { font-size: 24px; margin-top: 40px; }
.release-body > h2:first-child { margin-top: 0; }
.release-notes { margin-top: 40px; }
.release-download { margin: 28px 0 14px; }

/* ---- Notes (src/_includes/layouts/note.njk, plan PD-8) ---- */
.note-hero { padding-bottom: 8px; }
.note-meta { color: var(--muted); font-size: 15px; margin: 0; }
.note-body h2 { font-size: 24px; margin-top: 40px; }
.note-body > h2:first-child { margin-top: 0; }
.note-body h3 { font-size: 19px; margin-top: 28px; }
.note-body li { margin-bottom: 6px; }
.note-related { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.note-more { margin-top: 12px; }
/* Open question for the author in a draft ({% ask %}); never on a production page */
.ask { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--note-line); background: var(--note-bg); font-size: 15px; }
.ask b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* Note figures (src/_includes/parts/notes/*.njk): line drawings in the concept graphic's style */
.note-fig { margin: 32px 0; }
.note-fig svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; overflow: visible; }
.note-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.nf-frame { fill: none; stroke: var(--cg-line); stroke-width: 1.4; stroke-dasharray: 6 5; }
.nf-box { fill: var(--bg-alt); stroke: var(--cg-line); stroke-width: 1.6; }
.nf-dash { stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 5 4; fill: none; }
.nf-lock { fill: var(--bg); }
.nf-skip { fill: none; stroke: var(--cg-line); stroke-width: 1.4; stroke-dasharray: 4 4; }
.nf-gap { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.nf-axis { stroke: var(--cg-line); stroke-width: 1.2; }
.nf-tick { stroke: var(--muted); stroke-width: 1.4; }
