/* Nevian — static pages of nevian.io: About, Privacy, Terms, Data Deletion, the /docs/connect/ tutorials and the 404
   (templates/page.html and public/404.html; the home page has its own CSS, built by Vite).
   Look of the Sale journey home (Sale journey ticket 10, 06/11/2026): tokens, buttons, header and footer repeat
   site/home/src/styles.css, the visual source of truth; change both together (qa/site_shots.py compares them).
   Panel colours: white page, #191919 dark footer, ONE accent blue #5EA8FF, magenta only for loss or failure. No green,
   no red. The pages are complete without JavaScript (Meta's crawlers): nothing here hides content waiting for a script.
   No inline styles anywhere: the CSP in _headers blocks style attributes. */

/* ------------------------------------------------------------------ TOKENS (= site/home/src/styles.css) */
:root {
  --white: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --ink-3: #737373;
  --line: #e5e5e5;
  --inner: #f5f5f5;
  --dark: #191919;
  --dark-raised: #2a2a2f;
  --on-dark: #fafafa;
  --on-dark-2: #d4d4d4;
  --on-dark-3: #a1a1a1;
  --on-dark-4: #737373;
  --blue: #5ea8ff;
  --loss-light: #cc1f75;
  --loss-dark: #ff66b3;

  /* roles: light by default, re-declared on [data-section="dark"] and on documents in the dark colour scheme */
  --bg: var(--white);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --border: var(--line);
  --raised: var(--inner);
  --loss: var(--loss-light);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-lead: clamp(17px, 1.35vw, 21px);
  --fs-label: 12px;
  --fs-read: 17px;           /* long reading: ~80 characters per line at the 660px measure */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  /* header and hero (ticket 22): not centred in --container but near the window edge, one left edge at every width */
  --edge: clamp(20px, 2.5vw, 40px);
  --header-h: 64px;
  --radius: 14px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

[data-section="dark"] {
  --bg: var(--dark);
  --text: var(--on-dark);
  --text-2: var(--on-dark-2);
  --text-3: var(--on-dark-3);
  --border: rgba(255, 255, 255, .12);
  --raised: var(--dark-raised);
  --loss: var(--loss-dark);
}

/* ------------------------------------------------------------------ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: rgba(94, 168, 255, .3); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ BUTTONS (= home) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: 500 14px/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-outline, .btn-secondary { border-color: var(--border); color: var(--text); background: transparent; }
.btn-quiet { color: var(--text); padding: 0 10px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
@media (hover: hover) {
  .btn-primary:hover { background: #7cb9ff; }
  .btn-outline:hover, .btn-secondary:hover { border-color: var(--text); }
  .btn-quiet:hover { color: var(--text-2); }
}

/* ------------------------------------------------------------------ HEADER (= home: floats, no bar, no line) */
/* It holds its own space at the top (anchors and the rail line up with no script). Without JavaScript it scrolls away
   with the page; with it (site.js) it sticks, hides on scroll down and comes back on scroll up. A soft halo in the page
   colour around the links; once the page has scrolled (.is-scrolled) a veil in that colour fades in behind it, with
   no edge, so it reads over the text below; the open phone menu gets the solid colour. */
.site-header {
  position: relative; z-index: 50;
  height: var(--header-h);
  color: var(--text);
  text-shadow: 0 0 3px var(--bg), 0 0 14px var(--bg);
  transition: transform .35s cubic-bezier(.445, .05, .55, .95), background-color .3s, color .3s;
}
.js .site-header { position: sticky; top: 0; }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header .btn-primary { text-shadow: none; }
.site-header .brand img { filter: drop-shadow(0 0 6px var(--bg)); }
.site-header:has(.site-nav.is-open) { background: var(--bg); }
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -32px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 50%, transparent); opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { max-width: none; padding: 0 var(--edge); height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 20px; width: auto; }
.site-header .brand-on-dark { display: none; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { font-size: 14px; text-decoration: none; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

@media (max-width: 991px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 767px) {
  /* Without JavaScript the menu cannot open: the links sit on a second row of the header. */
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; gap: 8px 16px; }
  .nav-links { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
  .nav-links a { display: inline-block; padding: 4px 0; font-size: 15px; }

  /* With JavaScript (site.js marks <html class="js"> before the first paint): menu button and a solid panel. */
  .js .site-header { height: var(--header-h); }
  .js .header-inner { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; padding: 0;
    border: 0; background: none; color: var(--text); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 1px;
    transition: transform .25s var(--ease-out), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  /* the page dims behind the open menu; a tap on the scrim closes it (site.js) */
  .js .site-nav::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(0, 0, 0, .32); }
  .js .nav-links { flex-direction: column; gap: 4px; }
  .js .nav-links a { display: block; padding: 10px 0; font-size: 20px; color: var(--text); }
  .js .nav-actions .btn { flex: 1; height: 48px; }
}

/* ------------------------------------------------------------------ FOOTER (= home) */
.site-footer { background: var(--bg); color: var(--text); padding: 72px 0 40px; font-size: 14px; }
.footer-top {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--text-3); max-width: 32ch; }
.footer-col h2 {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--text); }  /* current page: marked by build.py */
.footer-legal {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; color: var(--text-3); font-size: 13px;
}
.footer-legal strong { font-weight: 500; color: var(--text-2); }
@media (max-width: 991px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-top { grid-template-columns: 1fr; } }
/* Company detail still waiting for the owner (site_constants.py): the marker goes away with the real value. */
[data-pending] { padding: 0 4px; border-radius: 4px; background: #fff4d6; color: #7a5200; white-space: nowrap; }

/* ------------------------------------------------------------------ DOCUMENTS (templates/page.html) */
/* Reading measure: 660px at 17px = ~80 characters per line. */
.prose {
  max-width: 660px; margin: 0 auto; box-sizing: content-box;
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(80px, 10vw, 136px);
  counter-reset: doc-sec;
}
.prose > :first-child { margin-top: 0; }
.prose h1 {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600;
  color: var(--text); text-wrap: balance;
}
/* Document dates, in the home's eyebrow style; each label stays with its date when the line wraps. */
.prose .doc-meta {
  display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 22px 0 36px;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.prose .doc-meta > span { white-space: nowrap; }
/* The first paragraph after the dates opens the document. */
.prose .doc-meta + p:not([class]) { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.prose h2, .prose h3 { position: relative; color: var(--text); font-weight: 600; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 { margin: 64px 0 16px; padding-top: 32px; border-top: 1px solid var(--border); font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
/* Sections numbered like the table of contents (01 Summary ... 16 Contact us); build.py keeps the same order. */
.prose > h2 { counter-increment: doc-sec; }
.prose > h2::before {
  content: counter(doc-sec, decimal-leading-zero); display: block; margin-bottom: 12px;
  font: 400 var(--fs-label)/1 var(--mono); letter-spacing: .08em; color: var(--text-3);
}
.prose h3 { margin: 36px 0 10px; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.prose p, .prose li, .prose dd { font-size: var(--fs-read); line-height: 1.7; color: var(--text-2); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); font-weight: 600; }
/* Links: the text keeps the ink (readable), the underline carries the one blue. */
.prose a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose code, .prose kbd { padding: 2px 6px; border-radius: 6px; background: var(--raised); font-size: .86em; color: var(--text); overflow-wrap: anywhere; }
.prose kbd { border: 1px solid var(--border); }
.prose pre { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); }
.prose pre code { padding: 0; background: transparent; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }

/* Table of contents inside the text (below 1280px; above it the rail takes over). */
.prose .toc { margin: 40px 0 8px; padding: 22px 26px; border-radius: var(--radius); background: var(--raised); }
.prose .toc > p { margin: 0 0 12px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.prose .toc > p strong { color: inherit; font-weight: 400; }
.prose .toc ol { margin: 0; padding-left: 28px; columns: 2; column-gap: 32px; list-style: decimal-leading-zero; }
/* padding (not margin) so both columns start level */
.prose .toc li { margin: 0; padding: 3px 0 3px 4px; font-size: 14px; line-height: 1.5; break-inside: avoid; }
.prose .toc li::marker { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.prose .toc a { color: var(--text-2); text-decoration: none; }
.prose .toc a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--blue); }

/* Company facts (About): label left, value right; stacked on phones. */
.prose .facts { margin: 4px 0 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prose .facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 2px 20px; padding: 14px 20px; border-top: 1px solid var(--border); }
.prose .facts > div:first-child { border-top: 0; }
.prose .facts dt { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; line-height: 2.4; color: var(--text-3); }
.prose .facts dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .prose .facts > div { grid-template-columns: 1fr; padding: 12px 16px; } }

/* Permanent link of each heading (build.py): the heading is the link, without looking like one. The "#" sits in the
   left margin and shows on hover, keyboard focus and the section opened from the table of contents (:target).
   content "#" / "" = empty alternative text: screen readers do not read the "#". */
.prose .heading-anchor, .prose .heading-anchor:hover { color: inherit; text-decoration: none; }
.prose .heading-anchor::before {
  content: "#"; content: "#" / ""; position: absolute; left: -.95em; font-weight: 500; color: var(--text-3);
  opacity: 0; transition: opacity .15s;
}
.prose .heading-anchor:hover::before, .prose .heading-anchor:focus-visible::before { opacity: 1; }
.prose :target > .heading-anchor::before { opacity: 1; color: var(--blue); }

/* Rail "On this page" (copy of the table of contents, made by build.py): wide screens only, where it replaces the
   table of contents in the text. site.js marks the visible section with aria-current. */
.doc-rail { display: none; }
.doc-rail-title { margin: 0 0 14px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.doc-rail ol { margin: 0; padding-left: 28px; list-style: decimal-leading-zero; }
.doc-rail li { padding: 4px 0; font-size: 14px; line-height: 1.45; }
.doc-rail li::marker { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.doc-rail a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.doc-rail a:hover, .doc-rail a[aria-current] { color: var(--text); }
.doc-rail li:has(> a[aria-current])::marker { color: var(--blue); }
@media (min-width: 1280px) {
  .doc-shell { display: grid; grid-template-columns: 220px minmax(0, 660px); gap: 72px; justify-content: center; padding: 0 var(--gutter); }
  .doc-shell .prose { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
  .doc-shell .prose .toc { display: none; }
  .doc-rail {
    display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start;
    max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; overscroll-behavior: contain;
    margin-top: clamp(56px, 8vw, 112px); padding: 2px 8px 2px 2px;
  }
}
@media (max-width: 720px) {
  .prose .toc ol { columns: 1; }
  .prose .heading-anchor::before { display: none; }  /* no side margin for the "#" on phones */
}

/* Connection tutorials (/docs/connect/): sections are not numbered (the numbers belong to the steps, and the index is
   a list of groups). Each step: its number in a circle, one or two sentences and the step drawing (640px PNG at 2x,
   site/tools/render_art.py). */
.prose:has(.guide-steps, .guide-index) > h2::before { content: none; }
.prose .guide-steps { list-style: none; counter-reset: guide-step; margin: 0 0 8px; padding: 0; }
.prose .guide-steps > li { position: relative; counter-increment: guide-step; margin: 0 0 44px; padding: 0 0 0 48px; }
.prose .guide-steps > li::before {
  content: counter(guide-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--bg);
  font: 500 13px/1 var(--mono); color: var(--text);
}
.prose .guide-steps > li > p { margin: 2px 0 16px; }
.prose .guide-steps img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.prose .guide-index { list-style: none; padding-left: 0; }
.prose .guide-index li { padding-left: 0; }
.prose .guide-index a { margin-right: 6px; font-weight: 600; }
@media (max-width: 640px) {
  /* the step number goes above the text and the drawing takes the full width */
  .prose .guide-steps > li { padding-left: 0; }
  .prose .guide-steps > li::before { position: static; margin-bottom: 10px; }
}

/* Status of a data deletion request (site.js fills it on /data-deletion?code=). Blue = done, neutral = waiting,
   magenta = not done or not available. */
.deletion-status { margin: 32px 0; scroll-margin-top: calc(var(--header-h) + 24px); padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.deletion-status .ds-title { margin: 0; padding: 0; border: 0; font-size: 18px; letter-spacing: -.01em; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ds-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; background: var(--raised); color: var(--text-2);
}
.ds-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ds-badge.is-completed { background: rgba(94, 168, 255, .16); color: var(--text); }
.ds-badge.is-completed::before { background: var(--blue); }
.ds-badge.is-refused, .ds-badge.is-error { background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); }
.ds-badge.is-loading::before { animation: ds-pulse 1s ease-in-out infinite alternate; }
@keyframes ds-pulse { from { opacity: .25; } to { opacity: 1; } }
/* the answer fades in place (a change of state, no movement) */
.deletion-status:not([data-state="loading"]) > * { transition: opacity .2s ease; }
@starting-style { .deletion-status:not([data-state="loading"]) > * { opacity: 0; } }
.prose .deletion-status .ds-text { margin: 14px 0 0; }
.ds-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.ds-list dt { color: var(--text-3); }
.prose .ds-list dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.ds-code { font-family: var(--mono); font-size: 13px; }
.ds-retry { margin-top: 16px; }
@media (max-width: 640px) {
  .ds-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ds-list dd + dt { margin-top: 10px; }
}

/* ------------------------------------------------------------------ 404 */
.notfound { display: flex; align-items: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound .container { display: grid; gap: 24px; justify-items: start; }
.notfound h1 { font-size: clamp(44px, 7vw, 112px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; max-width: 12ch; }
.notfound .actions { margin-top: 8px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15px; }
.notfound-links a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.notfound-links a:hover { color: var(--text); }

/* ------------------------------------------------------------------ DARK COLOUR SCHEME (documents only) */
/* Documents follow the system theme with the panel's dark tokens; the tutorial drawings stay light on purpose. */
@media (prefers-color-scheme: dark) {
  .document-page {
    color-scheme: dark;
    --bg: var(--dark); --text: var(--on-dark); --text-2: var(--on-dark-2); --text-3: var(--on-dark-3);
    --border: rgba(255, 255, 255, .12); --raised: var(--dark-raised); --loss: var(--loss-dark);
  }
  .document-page .site-header .brand-on-light { display: none; }
  .document-page .site-header .brand-on-dark { display: block; }
  .document-page .btn-primary, .document-page .ds-badge.is-completed { color: var(--ink); }
  .document-page .ds-badge.is-completed { background: var(--blue); }
  .document-page .site-footer { border-top: 1px solid var(--border); }
  .document-page .guide-steps img { background: var(--inner); }
}

/* ------------------------------------------------------------------ PRINT (legal texts on paper or PDF) */
@media print {
  .site-header, .skip-link, .footer-top, .doc-rail { display: none; }
  body { display: block; }
  .site-footer { padding: 24px 0 0; background: none; color: #000; }
  .prose { max-width: none; padding: 0; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose .toc { break-inside: avoid; }
  .prose .heading-anchor::before { display: none; }
  .prose a { color: inherit; }
}

/* ------------------------------------------------------------------ ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header, .js .site-nav, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
  .js .site-nav { transform: none; }
  .btn:active { transform: none; }
  .ds-badge.is-loading::before { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #b3b3b3; --ink-3: #404040; }
  .site-header { background: var(--bg); border-bottom-color: var(--border); }
}
