/* ─── Brand fonts (bundled, offline) ─────────────────────────────
   Copied into dist/assets/fonts by the build. Relative url() resolves
   from this stylesheet at dist root. No CDN / no @import http. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/sora-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/sora-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/sora-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin-600-normal.woff2) format('woff2');
}

/* ─── Design tokens (palette maps 1:1 to the app's --sp-* variables) ───
   Self-contained for offline dist/. No external @import or url(http...). */
:root {
  --sp-accent: #00dbe9;
  --sp-grad1: #00dbe9;
  --sp-grad2: #0060a8;

  --bg: #07070F;
  --bg-elev: rgba(255, 255, 255, 0.025);
  --bg-card: rgba(255, 255, 255, 0.022);
  --bg-card-strong: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --fg: #e7ecf3;
  --fg-mute: #8b94a6;
  --fg-dim: #8992a3;

  --accent: var(--sp-accent);
  --accent-deep: var(--sp-grad2);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --shadow-card: 0 8px 30px -10px rgba(0, 0, 0, 0.55);

  /* Brand display + body fonts, mono stays a system stack. */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --ds-sidebar-w: 282px;
  --ds-toc-w: 230px;
  --ds-measure: 740px;
  --ds-header-clear: 92px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.ds-languages { margin: 12px 0 20px; font-size: 12px; line-height: 1.8; }
.ds-languages a[aria-current] { color: var(--fg); font-weight: 600; }

.ds-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

.ds-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--ds-sidebar-w) minmax(0, 1fr) var(--ds-toc-w);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* App-matched aurora wash + brand texture, fixed behind everything. */
.ds-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 78% at 100% -10%,
      color-mix(in srgb, var(--sp-grad1) 26%, transparent) 0%,
      transparent 60%),
    radial-gradient(ellipse 52% 66% at -10% 110%,
      color-mix(in srgb, var(--sp-grad2) 24%, transparent) 0%,
      transparent 60%);
}
.ds-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84'><g><circle cx='14' cy='14' r='1.6' fill='rgb(255,255,255)' fill-opacity='0.04'/><rect x='39.5' y='39.5' width='5' height='5' rx='1' fill='rgb(0,219,233)' fill-opacity='0.13' stroke='rgb(255,255,255)' stroke-opacity='0.06' stroke-width='0.7'/><circle cx='70' cy='70' r='1.6' fill='rgb(255,255,255)' fill-opacity='0.04'/></g></svg>");
  background-size: 84px 84px;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 80%, transparent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ─── Sidebar (glass, sticky) ────────────────────────────────── */
.ds-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 22px 44px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.ds-sidebar::-webkit-scrollbar { width: 9px; }
.ds-sidebar::-webkit-scrollbar-track { background: transparent; }
.ds-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.ds-sidebar::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--fg-dim) 60%, transparent);
  background-clip: padding-box;
}

.ds-brand {
  display: flex;
  align-items: center;
  padding-bottom: 2px;
}
.ds-brand img {
  display: block;
  width: 126px;
  height: auto;
  max-width: 100%;
}
.ds-brand-tm {
  align-self: flex-start;
  margin: 1px 0 0 2px;
  color: var(--fg);
  font: 400 9px/1 Inter, sans-serif;
  opacity: .8;
}

/* ─── Search ─────────────────────────────────────────────────── */
.ds-search-wrap { position: relative; }
.ds-search {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.ds-search::placeholder { color: var(--fg-dim); }
.ds-search:focus {
  background: var(--bg-card-strong);
  border-color: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 15%, transparent);
}

.ds-search-results {
  position: absolute;
  z-index: 60;
  left: 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 7px;
  padding: 6px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.ds-search-results a {
  display: block;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--fg-mute);
  transition: background 0.12s ease, color 0.12s ease;
}
.ds-search-results a strong { font-weight: 600; color: var(--fg); }
.ds-search-results a span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 2px;
}
.ds-search-results a:hover strong,
.ds-search-results a.is-active strong { color: var(--bot-accent, var(--sp-accent)); }
.ds-search-results a:hover,
.ds-search-results a.is-active { background: var(--bg-card-strong); color: var(--fg); }
.ds-search-results .ds-search-empty {
  padding: 11px;
  font-size: 13px;
  color: var(--fg-dim);
}

/* ─── Nav ────────────────────────────────────────────────────── */
.ds-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-nav-group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 10px;
  min-height: 32px;
  border-radius: var(--r-sm);
  cursor: pointer;
  list-style: none;
}
.ds-nav-group > summary::-webkit-details-marker { display: none; }
.ds-nav-group > summary::after {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}
.ds-nav-group[open] > summary::after { transform: rotate(45deg); }
.ds-nav-group.is-current > summary { color: var(--fg); }
.ds-nav-group ul { list-style: none; margin: 4px 0 12px; }
.ds-nav a {
  position: relative;
  display: block;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--fg-mute);
  transition: color 0.13s ease, background 0.13s ease;
}
.ds-nav a:hover,
.ds-nav-group > summary:hover {
  color: var(--fg);
  background: var(--bg-card);
}
.ds-nav .ds-nav-start {
  border-left: 2px solid var(--bot-accent, var(--sp-accent));
  margin-bottom: 8px;
}
.ds-nav a.active {
  color: var(--fg);
  font-weight: 500;
  background: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 11%, transparent);
}
.ds-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 99px;
  background: var(--bot-accent, var(--sp-accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 65%, transparent);
}

/* ─── Main / article ─────────────────────────────────────────── */
.ds-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px clamp(28px, 5vw, 76px) 120px;
}
.ds-history:not([hidden]) {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: var(--ds-measure);
  margin-bottom: 24px;
}
.ds-history button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--fg-mute);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ds-history button:hover { color: var(--fg); background: var(--bg-card); }
.ds-article {
  width: 100%;
  max-width: var(--ds-measure);
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.ds-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--fg-dim);
}
.ds-breadcrumb a {
  color: var(--fg-mute);
  transition: color 0.13s ease;
}
.ds-breadcrumb a:hover { color: var(--bot-accent, var(--sp-accent)); }
.ds-breadcrumb [aria-current='page'] { color: var(--fg); font-weight: 500; }
.ds-bc-sep { color: var(--fg-dim); opacity: 0.6; }

/* ─── Article typography ─────────────────────────────────────── */
.ds-article h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin-bottom: 24px;
  scroll-margin-top: var(--ds-header-clear);
}
.ds-article h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin: 52px 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: var(--ds-header-clear);
}
.ds-article h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 34px 0 13px;
  scroll-margin-top: var(--ds-header-clear);
}
.ds-article p {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--fg) 90%, var(--fg-mute));
}
.ds-article ul,
.ds-article ol { margin: 0 0 18px 24px; }
.ds-article li { margin-bottom: 7px; }
.ds-article li::marker { color: var(--fg-dim); }

.ds-article a {
  color: var(--bot-accent, var(--sp-accent));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 40%, transparent);
  transition: text-decoration-color 0.14s ease;
}
.ds-article a:hover { text-decoration-color: var(--bot-accent, var(--sp-accent)); }
/* Component links inside the article are not prose links: no inherited underline. */
.ds-breadcrumb a,
a.ds-home-card,
a.ds-pn-card { text-decoration: none; }

.ds-article code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  color: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 55%, var(--fg));
}
.ds-article pre {
  margin: 0 0 20px;
  padding: 17px 19px;
  overflow-x: auto;
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.ds-article pre code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 13.5px;
  line-height: 1.65;
}

.ds-article blockquote {
  margin: 0 0 20px;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 5%, var(--bg-card));
  border-left: 3px solid color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 55%, transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--fg-mute);
}
.ds-article blockquote p:last-child { margin-bottom: 0; }

.sp-help-quote {
  display: block;
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 55%, transparent);
  background: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 6%, var(--bg-card));
  border-radius: 6px;
  font-size: 1.02em;
  scroll-margin-top: 5rem;
}

.ds-article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ─── Tables (the generated reference renders as markdown tables) ─ */
/* Wide reference tables (the role matrix) scroll horizontally inside this
   wrapper instead of cramming into the reading measure. The first column is
   sticky so the row label stays visible while scrolling sideways. */
.ds-table-wrap {
  margin: 0 0 24px;
  /* Both-axis scroll pane: capping the height lets the sticky thead + sticky
     first column work (an overflow ancestor is required for sticky to anchor). */
  overflow: auto;
  max-height: 72vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.ds-table-wrap::-webkit-scrollbar { height: 10px; }
.ds-table-wrap::-webkit-scrollbar-track { background: transparent; }
.ds-table-wrap::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.ds-article table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.ds-article th,
.ds-article td {
  padding: 11px 16px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ds-article th:first-child,
.ds-article td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: color-mix(in srgb, var(--bg) 80%, var(--bg-card-strong));
  border-right: 1px solid var(--border);
}
.ds-article thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  background: color-mix(in srgb, var(--bg) 72%, var(--bg-card-strong));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ds-article thead th:first-child { z-index: 2; }
.ds-article tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.012); }
.ds-article tbody tr:nth-child(even) td:first-child { background: color-mix(in srgb, var(--bg) 76%, var(--bg-card-strong)); }
.ds-article tbody tr:last-child td { border-bottom: 0; }
.ds-article tbody tr:hover td { background: var(--bg-elev); }
.ds-article tbody tr:hover td:first-child { background: color-mix(in srgb, var(--bg) 70%, var(--bg-card-strong)); }
.ds-article td code { font-size: 0.88em; }
/* Checkmark cells read clearly; the row-label column is emphasized. */
.ds-article tbody td { color: color-mix(in srgb, var(--fg) 88%, var(--fg-mute)); }
.ds-article tbody td:first-child { color: var(--fg); font-weight: 500; }

/* ─── Prev / Next footer ─────────────────────────────────────── */
.ds-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.ds-pn-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ds-pn-next { text-align: right; align-items: flex-end; }
.ds-pn-empty {
  border: 0;
  background: none;
  pointer-events: none;
}
.ds-pn-dir {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ds-pn-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
a.ds-pn-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 50%, var(--border));
  box-shadow: 0 14px 36px -18px color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 45%, transparent);
}
a.ds-pn-card:hover .ds-pn-title { color: var(--bot-accent, var(--sp-accent)); }

/* ─── Right-rail TOC ─────────────────────────────────────────── */
.ds-toc-rail {
  min-width: 0;
  padding: 56px 24px 0 4px;
}
.ds-toc {
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.ds-toc-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.ds-toc ul { list-style: none; }
.ds-toc li { line-height: 1.35; }
.ds-toc a {
  position: relative;
  display: block;
  padding: 5px 0 5px 14px;
  font-size: 13px;
  color: var(--fg-mute);
  border-left: 1px solid var(--border);
  transition: color 0.13s ease, border-color 0.13s ease;
}
.ds-toc-sub a { padding-left: 26px; font-size: 12.5px; color: var(--fg-dim); }
.ds-toc a:hover { color: var(--fg); }
.ds-toc a.active {
  color: var(--bot-accent, var(--sp-accent));
  border-left-color: var(--bot-accent, var(--sp-accent));
}

/* ─── Documentation home (root index.html) ───────────────────── */
.ds-home { max-width: 960px; }
.ds-home-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bot-accent, var(--sp-accent));
}
.ds-home h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fg);
  border: 0;
  padding: 0;
}
.ds-home-lede {
  margin: 0 0 42px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-mute);
}
.ds-home-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ds-home-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ds-home-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 50%, var(--border));
  box-shadow: 0 18px 48px -20px color-mix(in srgb, var(--bot-accent, var(--sp-accent)) 48%, transparent);
}
.ds-home-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--fg);
}
.ds-home-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-mute);
}
.ds-home-go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bot-accent, var(--sp-accent));
}

/* ─── Responsive ─────────────────────────────────────────────── */
/* Drop the right TOC rail first. */
@media (max-width: 1180px) {
  .ds-body { grid-template-columns: var(--ds-sidebar-w) minmax(0, 1fr); }
  .ds-toc-rail { display: none; }
}
/* Then collapse the sidebar to a top band. */
@media (max-width: 820px) {
  .ds-body { grid-template-columns: 1fr; }
  .ds-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .ds-nav a { min-height: 44px; display: flex; align-items: center; }
  .ds-nav-group > summary { min-height: 44px; }
  .ds-history button { min-height: 44px; }
  .ds-main { padding: 40px 24px 80px; }
  .ds-article h1 { font-size: 32px; }
  .ds-home h1 { font-size: 34px; }
  .ds-prevnext { grid-template-columns: 1fr; }
  .ds-pn-next { text-align: left; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
