  :root {
    --base: 247 248 251; --surface: 255 255 255; --ink: 11 18 32; --muted: 91 102 120;
    --track: 22 163 74; --route: 2 132 199; --elev: 180 83 9; --onbrand: 255 255 255;
    --hairline: 11 18 32; --hairline-a: 0.10; --grid-a: 0.045; color-scheme: light;
  }
  @media (prefers-color-scheme: dark) { :root {
    --base: 11 18 32; --surface: 18 26 43; --ink: 230 236 245; --muted: 154 167 189;
    --track: 74 222 128; --route: 56 189 248; --elev: 245 158 11; --onbrand: 11 18 32;
    --hairline: 255 255 255; --hairline-a: 0.09; --grid-a: 0.05; color-scheme: dark;
  } }
  :root[data-theme="dark"] {
    --base: 11 18 32; --surface: 18 26 43; --ink: 230 236 245; --muted: 154 167 189;
    --track: 74 222 128; --route: 56 189 248; --elev: 245 158 11; --onbrand: 11 18 32;
    --hairline: 255 255 255; --hairline-a: 0.09; --grid-a: 0.05; color-scheme: dark;
  }
  :root[data-theme="light"] {
    --base: 247 248 251; --surface: 255 255 255; --ink: 11 18 32; --muted: 91 102 120;
    --track: 22 163 74; --route: 2 132 199; --elev: 180 83 9; --onbrand: 255 255 255;
    --hairline: 11 18 32; --hairline-a: 0.10; --grid-a: 0.045; color-scheme: light;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; color: rgb(var(--ink)); background: rgb(var(--base));
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65; -webkit-font-smoothing: antialiased; }
  a { color: rgb(var(--route)); text-decoration: none; }
  a:hover { text-decoration: underline; }
  .wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
  header.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px);
    background: rgb(var(--base) / 0.72); border-bottom: 1px solid rgb(var(--hairline) / var(--hairline-a)); }
  .nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between; }
  .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: rgb(var(--ink)); }
  .brand:hover { text-decoration: none; }
  .logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 14px;
    background: linear-gradient(135deg, rgb(var(--track)), rgb(var(--route))); }
  .nav-links { display: flex; gap: 22px; font-size: 14px; }
  .nav-links a { color: rgb(var(--muted)); }
  .nav-links a:hover { color: rgb(var(--ink)); text-decoration: none; }
  .nav-right { display: flex; align-items: center; gap: 8px; }
  .icon-btn { color: rgb(var(--muted)); padding: 8px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgb(var(--hairline) / var(--hairline-a)); background: transparent;
    display: grid; place-items: center; }
  .icon-btn:hover { color: rgb(var(--ink)); }
  .lang-switch { color: rgb(var(--muted)); font-size: 13px; font-weight: 600; padding: 6px 10px;
    border-radius: 10px; border: 1px solid rgb(var(--hairline) / var(--hairline-a)); }
  .lang-switch:hover { color: rgb(var(--ink)); text-decoration: none; background: rgb(var(--surface)); }
  .nav-dl { background: rgb(var(--track)); color: rgb(var(--onbrand)); font-weight: 600;
    font-size: 13px; padding: 8px 14px; border-radius: 10px; }
  .nav-dl:hover { text-decoration: none; }
  .icon-sun { display: none; } :root[data-theme="dark"] .icon-sun { display: inline; }
  :root[data-theme="dark"] .icon-moon { display: none; }
  @media (max-width: 720px) { .nav-links { display: none; } }
  main.page { padding: 48px 0 72px; }
  .banner { border: 1px solid rgb(var(--elev) / 0.5); background: rgb(var(--elev) / 0.10);
    color: rgb(var(--ink)); border-radius: 12px; padding: 12px 16px; margin-bottom: 32px; font-size: 14px; }
  .prose h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; line-height: 1.1;
    margin: 0 0 24px; text-wrap: balance; }
  .prose h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 12px; }
  .prose h3 { font-size: 18px; margin: 28px 0 8px; }
  .prose ul, .prose ol { padding-left: 22px; }
  .prose li { margin: 4px 0; }
  .prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em;
    background: rgb(var(--hairline) / 0.06); padding: 2px 6px; border-radius: 6px; }
  .prose pre { background: rgb(var(--surface)); border: 1px solid rgb(var(--hairline) / var(--hairline-a));
    border-radius: 12px; padding: 16px; overflow-x: auto; }
  .prose pre code { background: none; padding: 0; }
  /* Inline command box with a copy button (e.g. install one-liners) --
     sits inline in running text/list items, unlike .prose pre which is
     block-level. See the copy-to-clipboard script near the end of body. */
  .cmd-box { display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
    background: rgb(var(--surface)); border: 1px solid rgb(var(--hairline) / var(--hairline-a));
    border-radius: 10px; padding: 3px 3px 3px 10px; vertical-align: middle; }
  .cmd-box code { background: none; padding: 0; white-space: pre-wrap; word-break: break-all; font-size: 0.78em; }
  .copy-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
    border: none; background: transparent; border-radius: 7px; cursor: pointer; color: rgb(var(--muted)); }
  .copy-btn:hover { background: rgb(var(--hairline) / 0.08); color: rgb(var(--ink)); }
  .copy-btn svg { width: 14px; height: 14px; }
  .copy-btn .icon-check { display: none; color: rgb(var(--track)); }
  .copy-btn.copied .icon-copy { display: none; }
  .copy-btn.copied .icon-check { display: inline; }
  .prose img { max-width: 100%; height: auto; border-radius: 12px; }
  .crumbs { font-size: 13px; color: rgb(var(--muted)); padding: 18px 0 0; }
  .crumbs a { color: rgb(var(--muted)); }
  .crumbs a:hover { color: rgb(var(--ink)); }
  .ad-slot { margin: 32px 0; }
  /* Pages with a right-hand ad column (news, downloads): wider container so
     the column has room without crowding the reading text, plus a
     two-column grid (article + a 160px-wide vertical unit pinned to the
     outer edge). Collapses to a single column (ad falls below the content)
     below 860px. */
  .wrap--ad-sidebar { max-width: 1040px; }
  .ad-sidebar-layout { display: grid; grid-template-columns: 1fr 160px; gap: 64px; align-items: start; }
  .ad-slot-right { width: 160px; }
  @media (max-width: 860px) { .ad-sidebar-layout { grid-template-columns: 1fr; } .ad-slot-right { width: auto; margin: 32px 0; } }
  /* Imprint address: each line's characters are reversed in the source, then
     laid out right-to-left with the override forced — this un-reverses them
     back to correct reading order on screen (and in copy/paste), while a
     naive text-scraper reading raw HTML/DOM text sees only the reversed
     nonsense string. Defeats plain-text address harvesting, not a rendering
     engine that also applies CSS. */
  .prose .addr-r { unicode-bidi: bidi-override; direction: rtl; }
  .prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 14px; }
  .prose th, .prose td { text-align: left; padding: 8px 12px;
    border-bottom: 1px solid rgb(var(--hairline) / var(--hairline-a)); }
  .prose th { color: rgb(var(--muted)); font-weight: 600; }
  footer { border-top: 1px solid rgb(var(--hairline) / var(--hairline-a)); font-size: 14px; }
  .foot-main { max-width: 1100px; margin: 0 auto; padding: 56px 24px; display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  @media (max-width: 860px) { .foot-main { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .foot-main { grid-template-columns: 1fr; } }
  .foot-brand p { color: rgb(var(--muted)); margin: 14px 0 0; }
  .foot-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
    color: rgb(var(--muted)); margin-bottom: 12px; }
  .foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
  .foot-col a { color: rgb(var(--ink)); }
  .foot-col a:hover { color: rgb(var(--track)); text-decoration: none; }
  .foot-bar { border-top: 1px solid rgb(var(--hairline) / var(--hairline-a)); }
  .foot-bar-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 56px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
    font-size: 13px; color: rgb(var(--muted)); }
