/* The Colijn sites. Tokens follow the Colijn++ app (crates/ui-egui/src/theme.rs): the shadcn
   "neutral" palette and Geist. The accent colour (--brand) comes from the page's brand: the
   theme sets --brand-light / --brand-dark (and -fg, the colour on top of it) on <html>, from
   colijn.yaml. */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --sidebar: #fafafa;
  --muted: #f5f5f5;
  --fg: #0a0a0a;
  --muted-fg: #737373;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-fg: #fafafa;
  --brand: var(--brand-light, #1a8cff);
  --brand-fg: var(--brand-fg-light, #ffffff);
  --canvas: #1c1c1e;
  --added: #10b981;
  --removed: #ef4444;
  --moved: #f59e0b;
  --changed: #38bdf8;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px -12px rgb(0 0 0 / 0.18);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --card: #171717;
    --sidebar: #171717;
    --muted: #262626;
    --fg: #fafafa;
    --muted-fg: #a1a1a1;
    --border: rgb(255 255 255 / 0.1);
    --primary: #e5e5e5;
    --primary-fg: #171717;
    --canvas: #0a0a0a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 20px 60px -20px rgb(0 0 0 / 0.8);
    --brand: var(--brand-dark, var(--brand-light, #1a8cff));
    --brand-fg: var(--brand-fg-dark, var(--brand-fg-light, #ffffff));
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --card: #171717;
  --sidebar: #171717;
  --muted: #262626;
  --fg: #fafafa;
  --muted-fg: #a1a1a1;
  --border: rgb(255 255 255 / 0.1);
  --primary: #e5e5e5;
  --primary-fg: #171717;
  --canvas: #0a0a0a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 20px 60px -20px rgb(0 0 0 / 0.8);
  --brand: var(--brand-dark, var(--brand-light, #1a8cff));
  --brand-fg: var(--brand-fg-dark, var(--brand-fg-light, #ffffff));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 Geist, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
code { font: 0.9em "Geist Mono", ui-monospace, monospace; padding: 0.1em 0.35em; border-radius: 6px; background: var(--muted); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.muted { color: var(--muted-fg); }
.small { font-size: 13px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; }
.brand img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted-fg); font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--muted); }
/* Narrow screens: the links fold into a menu button. */
.nav-menu { display: none; position: relative; }
.nav-menu summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; list-style: none; color: var(--fg); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--muted); }
.nav-menu summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-menu-links {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid; gap: 2px; padding: 6px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card); box-shadow: var(--shadow);
}
.nav-menu-links a { text-decoration: none; color: var(--muted-fg); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-menu-links a:hover, .nav-menu-links a.active { color: var(--fg); background: var(--muted); }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu { display: block; margin-left: auto; }
  .nav-inner { gap: 12px; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--primary); color: var(--primary-fg);
  font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: opacity 0.15s;
}
.button:hover { opacity: 0.88; }
.button.ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.button.ghost:hover { background: var(--muted); opacity: 1; }
.button.small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 24px; text-align: center; }
.eyebrow { margin: 0 0 12px; font: 500 13px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
h1 { margin: 0 auto; max-width: 14ch; font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 650; }
.lede { margin: 24px auto 0; max-width: 60ch; font-size: clamp(17px, 2vw, 19px); color: var(--muted-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.fineprint { margin-top: 20px; font-size: 13px; color: var(--muted-fg); }

/* Features */
.feature { padding-top: 96px; }
.feature .copy { display: grid; gap: 8px 48px; grid-template-columns: 1fr; margin-bottom: 32px; }
.feature .copy p { margin: 0 0 12px; max-width: 60ch; }
@media (min-width: 900px) {
  .feature .copy { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .feature .copy > .eyebrow, .feature .copy > h2 { grid-column: 1 / -1; }
  .feature .copy > .points, .feature .copy > .stats { grid-column: 2; grid-row: 3 / span 3; margin-top: 0; }
}
.points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding: 10px 14px 10px 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 15px; color: var(--muted-fg); }
.points li strong { color: var(--fg); font-weight: 600; }
.points li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brand); }
.legend li::before { display: none; }
.legend .sw { position: absolute; left: 13px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 3px; }
.sw.added { background: var(--added); }
.sw.removed { background: var(--removed); }
.sw.moved { background: var(--moved); }
.sw.changed { background: var(--changed); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 0; }
.stats div { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--card); }
.stats dt { font-size: 13px; color: var(--muted-fg); }
.stats dd { margin: 2px 0 0; font: 600 28px/1.1 Geist, sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Live embeds: a fixed-size viewer, scaled to the figure (page.js) */
.embed { margin: 0; }
.embed figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted-fg); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 "Geist Mono", monospace; text-transform: uppercase; letter-spacing: 0.06em; color: var(--added); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.stage {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 1280 / 708; pointer-events: none;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--canvas); box-shadow: var(--shadow);
}
.stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--canvas); }
.stage .placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #a1a1a1; font-size: 13px; transition: opacity 0.4s; pointer-events: none; z-index: 1; background: var(--canvas);
}
.stage .placeholder img { width: min(200px, 40%); opacity: 0.9; }
.stage .placeholder .bar { width: min(160px, 30%); height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.stage .placeholder .bar::after { content: ""; display: block; width: 40%; height: 100%; background: var(--brand); border-radius: 3px; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.stage.ready .placeholder { opacity: 0; }

/* Call to action */
.cta { padding-top: 112px; }
.cta-card {
  display: grid; gap: 24px; align-items: center; padding: 32px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--sidebar);
  background-image: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%);
}
.cta-card p { margin: 0; max-width: 62ch; color: var(--muted-fg); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1fr auto; padding: 48px; } .cta-actions { align-items: center; } }

/* Footer */
.footer { margin-top: 112px; border-top: 1px solid var(--border); padding: 32px 0 48px; }
.footer-inner { display: grid; gap: 12px; font-size: 14px; }
.footer-inner > div { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.footer-mark { width: 22px; height: 22px; flex: none; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner p { margin: 0; max-width: 80ch; }

.hero h1 { max-width: none; }
.hero h1 .edition { color: var(--muted-fg); font-weight: 600; font-size: 0.55em; letter-spacing: -0.02em; }
.note { color: var(--brand); text-decoration: none; font-weight: 600; margin-left: 1px; }
.note:hover { text-decoration: underline; }
.disclaimer { display: grid; gap: 8px; scroll-margin-top: 80px; }
.disclaimer p { margin: 0; max-width: 90ch; }
.disclaimer .star { color: var(--brand); font-weight: 600; }
.points li { padding-top: 11px; padding-bottom: 11px; }
.footer-link { color: var(--muted-fg); font-weight: 500; text-decoration: none; }
.footer-link:hover { color: var(--fg); }

/* Compliance band on the main page */
.compliance-band { padding-top: 112px; }
.band-card {
  display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 18px; text-decoration: none;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.15s;
}
.band-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--added) 45%, var(--border)); }
.band-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.band-text .eyebrow { margin: 0; color: var(--added); }
.band-text strong { font-size: clamp(17px, 2.2vw, 21px); letter-spacing: -0.01em; }
.band-text .muted { font-size: 14px; }
.band-ticks { display: grid; grid-template-columns: repeat(3, 14px); gap: 5px; flex: none; }
.band-ticks i { width: 14px; height: 14px; border-radius: 50%; background: var(--added); position: relative; }
.band-ticks i::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.band-go { font-size: 22px; color: var(--muted-fg); flex: none; }
@media (max-width: 560px) { .band-ticks { display: none; } }

/* Compliance page */
:root { --verified: var(--added); --gallery: var(--brand); --parsed: #8b5cf6; --kept: #a3a3a3; }
.c-hero h1 { max-width: none; }
.scoreboard { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; margin-top: 48px; text-align: left; }
.ring { position: relative; width: 168px; height: 168px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--muted); }
.ring .ring-fg { stroke: var(--verified); stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; animation: ring 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
@media (prefers-reduced-motion: reduce) { .ring .ring-fg { animation: none; } }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font: 700 44px/1 Geist, sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 13px; color: var(--muted-fg); margin-top: 4px; }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kinds li { display: grid; grid-template-columns: 24px 40px 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-fg); }
.kinds li strong { font: 600 20px/1 Geist, sans-serif; color: var(--fg); font-variant-numeric: tabular-nums; text-align: right; }
.kinds li b { color: var(--fg); font-weight: 600; }

.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; color: #fff; }
.mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mark.verified { background: var(--verified); }
.mark.gallery { background: var(--gallery); }
.mark.parsed { background: var(--parsed); }
.mark.brand { background: var(--brand); color: var(--brand-fg); }
.mark.added { background: var(--added); }
.mark.removed { background: var(--removed); }
.mark.moved { background: var(--moved); }
.mark.changed { background: var(--changed); }
.mark.kept { background: transparent; color: var(--kept); box-shadow: inset 0 0 0 1.6px var(--kept); }

.kinds li span { color: var(--fg); font-weight: 500; }
.c-hero .lede a, .list-head a { color: var(--brand); text-decoration: none; }
.c-hero .lede a:hover, .list-head a:hover { text-decoration: underline; }

.c-legend { padding-top: 96px; }
.c-legend > p.muted { margin: 0; max-width: 62ch; }
.legend-grid { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.legend-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.legend-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.legend-card p { margin: 0; font-size: 14px; color: var(--muted-fg); }
.list-head p.muted { margin: 10px 0 0; max-width: 60ch; }

.c-gallery { padding-top: 64px; }
.c-gallery figure, .neg-fig { margin: 0; }
.c-gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: #0a0a0a; }
.c-gallery figcaption, .neg-fig figcaption { margin-top: 12px; font-size: 13px; color: var(--muted-fg); }

.c-negative { padding-top: 96px; }
.neg-head { margin-bottom: 28px; }
.neg-head p.muted { margin: 0; max-width: 60ch; }
.neg-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.neg-grid .neg-ticks { grid-column: 1 / -1; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .neg-grid { grid-template-columns: 220px 220px 1fr; }
  .neg-grid .neg-ticks { grid-column: 3; grid-row: 1 / span 2; }
}
.neg-fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }

.c-checklist { padding-top: 96px; }
.list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.list-head h2 { margin: 0; }
.list-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: 500 13px/1 Geist, sans-serif; color: var(--muted-fg); background: var(--card); border: 1px solid var(--border);
}
.chip:hover { color: var(--fg); }
.chip.on { color: var(--primary-fg); background: var(--primary); border-color: var(--primary); }
.chip.ghost { background: transparent; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.verified { background: var(--verified); }
.dot.gallery { background: var(--gallery); }
.dot.parsed { background: var(--parsed); }
.dot.kept { background: var(--kept); }

.group { padding-top: 40px; }
.group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.group-head h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.group-head .part { font: 500 12px/1 "Geist Mono", monospace; color: var(--muted-fg); padding: 5px 8px; border-radius: 6px; background: var(--muted); }
.group-head .score { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 Geist, sans-serif; color: var(--verified); font-variant-numeric: tabular-nums; }
.group-head .score svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.ticks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
@media (max-width: 400px) { .ticks { grid-template-columns: 1fr; } }
.tick { border: 1px solid var(--border); border-radius: 10px; background: var(--card); transition: border-color 0.15s; }
.tick:hover, .tick[open] { border-color: color-mix(in srgb, var(--fg) 22%, var(--border)); }
.tick summary { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.tick summary::-webkit-details-marker { display: none; }
.tick summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
.tick .name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; padding-top: 1px; overflow-wrap: anywhere; }
.tick .ref { flex: none; max-width: 38%; font: 500 11px/1.3 "Geist Mono", monospace; color: var(--muted-fg); padding: 4px 6px; border-radius: 6px; background: var(--muted); text-align: right; }
.tick .chev { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--muted-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.tick[open] .chev { transform: rotate(180deg); }
.tick .why { display: flex; gap: 12px; align-items: flex-start; padding: 0 14px 14px 44px; font-size: 13.5px; color: var(--muted-fg); }
.tick .why p { margin: 0 0 6px; }
.tick .why img { width: 72px; height: 72px; flex: none; border-radius: 8px; border: 1px solid var(--border); background: #0a0a0a; }
.tick .why .spec { font-size: 12.5px; }
.tick .why .spec a { color: var(--brand); text-decoration: none; }
.tick .why .spec a:hover { text-decoration: underline; }
.tick .why p:first-child { color: var(--fg); }
.tick .kind { font: 500 11px/1.4 "Geist Mono", monospace; text-transform: uppercase; letter-spacing: 0.04em; }
.kind.verified { color: var(--verified); }
.kind.gallery { color: var(--gallery); }
.kind.parsed { color: var(--parsed); }
.kind.kept { color: var(--kept); }

.c-note { padding-top: 64px; }
.c-note p { max-width: 80ch; }

/* ------------------------------------------------------------------ Grav additions */

/* A tick list (checklist module) that is not the compliance page's. */
.c-checklist .list-head a { color: var(--brand); }

/* Embeds of a picture or a video instead of a live viewer. */
.stage.media { aspect-ratio: auto; pointer-events: auto; }
.stage.media > img, .stage.media > video { display: block; width: 100%; height: auto; }

/* Sections laid out without the two-column copy grid (no points or stats). */
.feature.plain .copy { display: block; }

/* A section of plain Markdown (text module) and regular pages. */
.page { padding-top: 88px; }
.c-text { padding-top: 96px; }
.prose { font-size: 16px; }
.prose > :where(p, ul:not(.points), ol, h1, h2, h3, h4, blockquote, pre, table, hr) { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
/* Centred text (style="text-align:center") centres its column as well, not only the text in it. */
.prose > [style*="text-align:center"], .prose > [style*="text-align: center"] { margin-left: auto; margin-right: auto; }
.prose h1 { max-width: none; margin: 0 0 24px; text-align: left; font-size: clamp(36px, 6vw, 56px); }
.prose h2 { margin: 64px 0 14px; }
.prose h3 { margin: 36px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.prose h4 { margin: 28px 0 8px; font-size: 16px; font-weight: 600; }
.prose p, .prose ul:not(.points), .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 16px; }
.prose ul:not(.points), .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 4px; }
.prose a:not(.button):not(.band-card) { color: var(--brand); text-decoration: none; }
.prose a:not(.button):not(.band-card):hover { text-decoration: underline; }
.prose .eyebrow { margin: 64px 0 12px; }
.prose > .eyebrow:first-child { margin-top: 0; }
.prose .eyebrow + h1, .prose .eyebrow + h2, .prose .eyebrow + h3 { margin-top: 0; }
.prose .lede { margin: 0 0 24px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--muted-fg); }
.prose pre { overflow-x: auto; padding: 14px 16px; border-radius: 10px; background: var(--muted); }
.prose pre code { padding: 0; background: none; }
.prose hr { margin: 48px 0; border: 0; border-top: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { font-weight: 600; }
.prose .points, .prose .stats { margin: 24px 0; max-width: 72ch; }
.prose .embed, .prose .legend-grid, .prose .band-card, .prose .cta-card, .prose .ticks, .prose .scoreboard { margin-top: 32px; margin-bottom: 32px; }
.prose .actions { justify-content: flex-start; margin: 24px 0; }
.prose .scoreboard { justify-content: flex-start; }
.prose .cta-card h2 { margin-top: 0; }
.prose .legend-card h3 { margin: 0 0 6px; font-size: 16px; }
.prose .legend-card p { margin: 0; }

/* Section text from Markdown: the lede and introductions are a block of paragraphs. */
.lede > p { margin: 0; }
.lede > p + p { margin-top: 12px; }
.lede a { color: var(--brand); text-decoration: none; }
.lede a:hover { text-decoration: underline; }
/* A link to a place on the page from the lede reads as a footnote: [specification*](#disclaimer). */
.lede a[href^="#"] { font-weight: 600; margin-left: 1px; }
.intro p { margin: 0 0 10px; max-width: 62ch; }
.intro p:last-child { margin-bottom: 0; }
.intro a { color: var(--brand); text-decoration: none; }
.intro a:hover { text-decoration: underline; }
.list-head .intro { margin-top: 10px; }
.c-gallery > .eyebrow + h2, .c-gallery > h2 { margin-bottom: 14px; }
.c-gallery > .intro { margin-bottom: 28px; }
.gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.c-text.c-note { padding-top: 64px; }
.c-text.c-note p { max-width: 80ch; }

/* Band cards: brand-coloured, unless they carry the green ticks. Stacked bands sit closer. */
.band-text .eyebrow { color: var(--brand); }
.band-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.band-card:has(.band-ticks) .band-text .eyebrow { color: var(--added); }
.band-card:has(.band-ticks):hover { border-color: color-mix(in srgb, var(--added) 45%, var(--border)); }
.compliance-band + .compliance-band { padding-top: 16px; }
