/* Nebus design system: base layer shared verbatim by the website (site/), the docs (docs-site/) and the
   client area (app/public/). Source of truth: design/base.css — copy with `bash ops/design-sync.sh`,
   never edit the copies. Rules and usage: design/DESIGN.md. Surface-specific styles live in each
   surface's own stylesheet, loaded after this one. */

/* ---------------------------------------------------------------- Fonts
   Self-hosted (design/fonts/, SIL Open Font License): no request to Google, no visitor IP shared.
   Subsets latin, latin-ext, cyrillic, cyrillic-ext; relative URLs = fonts/ next to each copy of base.css. */
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Ink scale (text, borders, surfaces) */
  --ink: #12141f;          /* headings, strong text */
  --ink-2: #3a3f55;        /* body text */
  --muted: #676d85;        /* secondary text */
  --faint: #9298ad;        /* placeholders, disabled */
  --line: #e4e6ee;         /* borders */
  --line-strong: #cfd3df;
  --bg: #ffffff;
  --bg-soft: #f6f7fa;      /* alternate sections, table heads */
  --bg-sunken: #eef0f5;

  /* Brand: one accent, no gradients */
  --accent: #5a45f0;
  --accent-hover: #4733d8;
  --accent-ink: #3a28b8;   /* accent text on light backgrounds (AA) */
  --accent-soft: #efedff;  /* tinted backgrounds */
  --accent-line: #d6d0ff;

  /* Status */
  --ok: #15803d;      --ok-soft: #e9f8ef;     --ok-line: #bfe8cd;
  --warn: #a15c07;    --warn-soft: #fff6e5;   --warn-line: #f6d9a8;
  --err: #c81e1e;     --err-soft: #fdeeee;    --err-line: #f5c2c2;
  --info: #1d5fc9;    --info-soft: #ecf3ff;   --info-line: #c7dafc;

  /* Dark band (footer, contrast sections) */
  --night: #12141f;
  --night-2: #1b1e2d;
  --night-text: #c9cddb;
  --night-muted: #8b91a8;

  /* Shape and depth */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(18, 20, 31, 0.06);
  --shadow-sm: 0 1px 2px rgba(18, 20, 31, 0.05), 0 2px 8px rgba(18, 20, 31, 0.05);
  --shadow-md: 0 2px 4px rgba(18, 20, 31, 0.04), 0 12px 32px rgba(18, 20, 31, 0.08);
  --ring: 0 0 0 3px rgba(90, 69, 240, 0.22);

  /* Type */
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: 20px;
  --topbar-h: 68px;

  color-scheme: light;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong, b { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }

code, kbd, pre { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--bg-sunken); color: var(--ink); padding: 0.12em 0.4em; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
kbd { background: var(--bg); border: 1px solid var(--line-strong); border-bottom-width: 2px; padding: 0.05em 0.4em; border-radius: var(--radius-sm); color: var(--ink); }
pre { background: var(--night); color: #e6e8f2; padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.55; }
pre code { background: none; color: inherit; padding: 0; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--muted); line-height: 1.65; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.04em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }

/* ---------------------------------------------------------------- Top bar (same on every surface) */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--topbar-h); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a, .topnav .linklike { color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; padding: 8px 12px; border-radius: var(--radius-sm); }
.topnav a:hover, .topnav .linklike:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--bg-sunken); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .topnav .hide-mobile { display: none; } }

/* ---------------------------------------------------------------- Language menu (<details class="lang-menu">) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); font-size: 0.875rem; font-weight: 600; background: var(--bg); }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-menu > summary svg { width: 16px; height: 16px; }
.lang-menu[open] > summary { border-color: var(--accent-line); box-shadow: var(--ring); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 50; }
.lang-menu li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 0.9375rem; }
.lang-menu li a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.lang-menu li a[aria-current] { color: var(--accent-ink); font-weight: 600; }
.lang-menu li a span { color: var(--faint); font-size: 0.8125rem; text-transform: uppercase; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-xs); transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--faint); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: transparent; }
.btn-danger { background: var(--bg); color: var(--err); border-color: var(--err-line); }
.btn-danger:hover { background: var(--err-soft); color: var(--err); border-color: var(--err); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; box-shadow: none; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; }
button.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Cards */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.card > :last-child { margin-bottom: 0; }
.card-title { font-size: 1.0625rem; margin: 0 0 4px; }
.card-sub { color: var(--muted); font-size: 0.9375rem; margin: 0 0 16px; }
a.card { display: block; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); text-decoration: none; }

/* ---------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.badge-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.badge-err { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }
.badge-info { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
.badge-muted { color: var(--muted); background: var(--bg-soft); border-color: var(--line); }
.badge-accent { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.badge-plain::before { display: none; }

/* ---------------------------------------------------------------- Alerts / callouts */
.alert { display: block; padding: 12px 16px; border: 1px solid; border-left-width: 4px; border-radius: var(--radius); margin: 0 0 20px; font-size: 0.9375rem; }
.alert > :last-child { margin-bottom: 0; }
.alert-ok { color: #0f5130; background: var(--ok-soft); border-color: var(--ok-line); border-left-color: var(--ok); }
.alert-warn { color: #6b3d05; background: var(--warn-soft); border-color: var(--warn-line); border-left-color: var(--warn); }
.alert-error, .alert-err { color: #8a1414; background: var(--err-soft); border-color: var(--err-line); border-left-color: var(--err); }
.alert-info { color: #133f86; background: var(--info-soft); border-color: var(--info-line); border-left-color: var(--info); }

/* ---------------------------------------------------------------- Forms */
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 1rem; font-weight: 400; box-shadow: var(--shadow-xs); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; min-height: 110px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: var(--faint); }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
label small, .hint { display: block; margin-top: 6px; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.form > * + * { margin-top: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-2); }
.check input { margin-top: 3px; flex: none; }

/* ---------------------------------------------------------------- Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- Long-form text (legal pages, docs) */
.prose { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.375rem; margin: 2.2em 0 0.6em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.0625rem; margin: 1.8em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--faint); }
.prose table { margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; display: block; overflow-x: auto; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent-line); color: var(--muted); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }

/* ---------------------------------------------------------------- Illustrations (unDraw, recoloured) */
.illus { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- Footer (dark band, same on every surface) */
.footer { background: var(--night); color: var(--night-text); font-size: 0.9375rem; margin-top: 0; }
.footer a { color: var(--night-text); }
.footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 56px 0 40px; }
.footer .brand { color: #fff; }
.footer-about { color: var(--night-muted); max-width: 320px; margin: 14px 0 0; font-size: 0.875rem; }
.footer-note { margin: 12px 0 0; max-width: 320px; color: var(--night-muted); font-size: 0.75rem; }
.footer h4 { color: #fff; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer li a[aria-current] { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--night-muted); font-size: 0.8125rem; }
@media (max-width: 860px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-main > :first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Utilities */
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
