/* docs.sanda-os.com.au
 *
 * The console's tokens (tokens.css, design.md) re-used for reading, on white:
 * the same cherry red and ink, Plus Jakarta Sans, the 1.25 type scale, hairline
 * rules rather than boxes. The field is white rather than the console's
 * cherry-tinted paper, and the neutrals are near-white greys with only a
 * breath of the cherry in them, because a page of reading is lighter than a
 * workspace of panels. Two additions the product itself does not need: a
 * dark scheme, on the moon toggle only (light is the house look, so a device
 * set to dark still opens the docs on white, as it opens the console),
 * and a slightly darker text colour than the console's body copy, because a
 * docs page is read, not scanned.
 *
 * Every class is prefixed dx- so nothing here can collide with the product's
 * own styles if the two ever share a page. */

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F;
}

/* ── tokens ─────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --color-paper: oklch(100% 0 0);
  --color-panel: oklch(100% 0 0);
  --color-paper-2: oklch(97.6% 0.004 44);
  --color-paper-3: oklch(96.2% 0.008 43);
  --color-raise: oklch(98.6% 0.003 44);
  --color-rule: oklch(91% 0.006 45);
  --color-rule-2: oklch(85% 0.01 45);
  --color-ink: oklch(20% 0.012 45);
  --color-text: oklch(30% 0.014 45);
  --color-muted: oklch(41% 0.016 45);
  --color-muted-2: oklch(50% 0.014 45);
  --color-accent: oklch(54% 0.145 36);
  --color-accent-hover: oklch(47% 0.13 36);
  --color-accent-ink: oklch(99% 0.003 44);
  --color-accent-quiet: oklch(96.6% 0.018 43);
  --color-link: oklch(51% 0.14 36);
  --color-blush: oklch(80% 0.09 42);
  --color-logo: oklch(74% 0.115 40); /* the three-circle mark */
  --color-blush-2: oklch(93% 0.03 43);
  --color-positive: oklch(52% 0.12 163);
  --color-positive-quiet: oklch(96.5% 0.025 163);
  --color-warn: oklch(55% 0.13 65);
  --color-warn-quiet: oklch(96.8% 0.035 80);
  --color-negative: oklch(52% 0.2 27);
  --color-negative-quiet: oklch(96.2% 0.025 25);
  --color-rail: oklch(17.5% 0.008 45);
  --color-rail-2: oklch(23% 0.01 45);
  --color-rail-ink: oklch(97.5% 0.004 45);
  --color-rail-muted: oklch(80% 0.01 45);
  --color-rail-rule: oklch(31% 0.012 45);
  --color-code-bg: oklch(98.4% 0.003 44);
  --color-mark: oklch(92% 0.05 43);
  --color-scrim: oklch(20% 0.012 45 / 0.42);

  --font-body: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.9531rem;
  --text-3xl: 2.4414rem;
  --text-4xl: 3.0518rem;
  --text-5xl: 3.8147rem;
  --tracking-display: -0.02em;
  --tracking-label: 0.06em;

  --radius-control: 8px;
  --radius-panel: 10px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-whisper: 0 1px 2px oklch(20% 0.012 45 / 0.06);
  --shadow-pop: 0 18px 48px -18px oklch(20% 0.012 45 / 0.35), 0 2px 6px oklch(20% 0.012 45 / 0.08);

  --top-h: 60px;
  --side-w: 280px;
  --toc-w: 232px;
}

/* Dark, when the reader picks it: the rail's own palette carried across the page. Blush takes the
 * links and emphasis, as design.md allows on the dark rail and nowhere else. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --color-paper: oklch(16% 0.006 45);
  --color-panel: oklch(18.5% 0.007 45);
  --color-paper-2: oklch(20% 0.008 45);
  --color-paper-3: oklch(24% 0.01 45);
  --color-raise: oklch(19% 0.007 45);
  --color-rule: oklch(27% 0.01 45);
  --color-rule-2: oklch(33% 0.012 45);
  --color-ink: oklch(97% 0.004 45);
  --color-text: oklch(90% 0.006 45);
  --color-muted: oklch(79% 0.008 45);
  --color-muted-2: oklch(68% 0.01 45);
  --color-accent: oklch(66% 0.13 38);
  --color-accent-hover: oklch(71% 0.12 38);
  --color-accent-quiet: oklch(26% 0.04 40);
  --color-link: oklch(80% 0.09 42);
  --color-positive: oklch(78% 0.12 163);
  --color-positive-quiet: oklch(25% 0.04 163);
  --color-warn: oklch(82% 0.12 75);
  --color-warn-quiet: oklch(26% 0.04 70);
  --color-negative: oklch(76% 0.13 25);
  --color-negative-quiet: oklch(26% 0.05 25);
  --color-rail: oklch(13% 0.006 45);
  --color-rail-2: oklch(19.5% 0.008 45);
  --color-rail-rule: oklch(28% 0.01 45);
  --color-code-bg: oklch(14% 0.006 45);
  --color-mark: oklch(38% 0.09 44);
  --color-scrim: oklch(8% 0.004 45 / 0.62);
}

/* ── base ───────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 24px);
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
img,
svg {
  display: inline-block;
  vertical-align: middle;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--color-mark);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.dx-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 700;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.dx-skip:focus {
  top: 10px;
}
.dx-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--color-rule-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--color-panel);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
kbd:not(.dx-kbd) {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--color-rule-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--color-panel);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.5;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.dx-top {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--top-h);
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule);
}
.dx-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.dx-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--color-ink);
  text-decoration: none;
}
.dx-brand svg {
  color: var(--color-muted);
}
.dx-brand-word {
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.dx-brand-docs {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--color-rule-2);
  color: var(--color-muted);
  font-size: var(--text-md);
  font-weight: 550;
  letter-spacing: -0.01em;
}
.dx-tabs-nav {
  display: flex;
  align-self: stretch;
  gap: 4px;
  margin-left: 12px;
}
.dx-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms;
}
.dx-tab:hover {
  color: var(--color-ink);
}
.dx-tab.is-on {
  color: var(--color-ink);
}
.dx-tab.is-on::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.dx-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 264px;
  height: 36px;
  margin-left: auto;
  padding: 0 8px 0 12px;
  border: 1px solid var(--color-rule-2);
  border-radius: var(--radius-control);
  background: var(--color-panel);
  color: var(--color-muted-2);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 120ms, color 120ms;
}
.dx-search-btn:hover {
  border-color: var(--color-muted-2);
  color: var(--color-muted);
}
.dx-search-label {
  flex: 1;
  text-align: left;
}
.dx-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.dx-toplink {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}
.dx-toplink:hover {
  color: var(--color-ink);
}
.dx-cta,
.dx-button {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms;
}
.dx-cta:hover,
.dx-button:hover {
  background: var(--color-accent-hover);
}
.dx-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: none;
  color: var(--color-muted);
  cursor: pointer;
}
.dx-iconbtn:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}
.dx-menu {
  display: none;
  margin-left: -8px;
}
[data-theme-toggle] .i-moon {
  display: none;
}
:root[data-theme='dark'] [data-theme-toggle] .i-sun {
  display: none;
}
:root[data-theme='dark'] [data-theme-toggle] .i-moon {
  display: inline-block;
}

/* ── shell ──────────────────────────────────────────────────────────────── */

.dx-shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1600px;
  margin: 0 auto;
}

/* ── sidebar ────────────────────────────────────────────────────────────── */

.dx-side {
  position: sticky;
  top: var(--top-h);
  align-self: start;
  height: calc(100vh - var(--top-h));
  height: calc(100dvh - var(--top-h));
  border-right: 1px solid var(--color-rule);
}
.dx-side-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 14px 64px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-rule-2) transparent;
}
.dx-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dx-side-section {
  margin: 0 0 4px;
}
.dx-side-section > ul {
  margin: 2px 0 12px;
}
.dx-side-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 6px;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.dx-side-heading::-webkit-details-marker,
.dx-side-group summary::-webkit-details-marker {
  display: none;
}
.dx-side-heading:hover {
  background: var(--color-paper-2);
}
.dx-side-section.is-solo .dx-side-heading {
  padding-left: 10px;
  color: var(--color-muted-2);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  cursor: default;
}
.dx-side-section.is-solo .dx-side-heading:hover {
  background: none;
}
.dx-chev {
  flex: none;
  color: var(--color-muted-2);
  transition: transform 160ms var(--ease-out);
}
details[open] > summary > .dx-chev {
  transform: rotate(90deg);
}
.dx-side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px 0;
  padding: 5px 10px 5px 26px;
  border-radius: 6px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
  text-decoration: none;
}
.dx-side-section.is-solo .dx-side-link {
  padding-left: 10px;
}
.dx-side-link.is-nested {
  padding-left: 38px;
}
.dx-side-section.is-solo .dx-side-link.is-nested {
  padding-left: 22px;
}
.dx-side-link:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}
.dx-side-link.is-on {
  background: var(--color-accent-quiet);
  color: var(--color-ink);
  font-weight: 650;
}
.dx-side-link.is-on::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--color-accent);
}
.dx-side-section.is-solo .dx-side-link.is-on::before {
  left: -8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  height: auto;
  margin: 0;
  border-radius: 2px;
}
.dx-side-group summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 10px 5px 20px;
  border-radius: 6px;
  color: var(--color-muted-2);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.dx-side-section.is-solo .dx-side-group summary {
  padding-left: 4px;
}
.dx-side-group summary:hover {
  color: var(--color-muted);
}
.dx-side-badge {
  margin-left: auto;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-paper-3);
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 600;
}
.dx-side-mobile {
  display: none;
}

/* ── main column ────────────────────────────────────────────────────────── */

.dx-main {
  min-width: 0;
  padding: 36px 56px 96px;
}
.dx-article {
  max-width: 780px;
}
.dx-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: var(--text-xs);
  font-weight: 600;
}
.dx-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted-2);
}
.dx-crumbs li + li::before {
  content: '·';
  color: var(--color-muted-2);
}
.dx-crumbs a {
  color: var(--color-muted);
  text-decoration: none;
}
.dx-crumbs a:hover {
  color: var(--color-link);
}
.dx-article-head h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-3xl);
  font-weight: 750;
  letter-spacing: var(--tracking-display);
  line-height: 1.12;
  text-wrap: balance;
}
.dx-lead {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--color-muted);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.dx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-rule);
}
.dx-meta:not(:has(*)) {
  display: none;
}
.dx-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.dx-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-control);
  background: var(--color-panel);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.dx-action:hover {
  border-color: var(--color-rule-2);
  color: var(--color-ink);
}

/* chips: editions, roles, tool annotations */
.dx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.dx-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
a.dx-chip:hover {
  border-color: var(--color-rule-2);
  color: var(--color-ink);
}
.dx-chip.is-edition {
  border-color: transparent;
  background: var(--color-accent-quiet);
  color: var(--color-link);
}
.dx-chip.is-read {
  border-color: transparent;
  background: var(--color-positive-quiet);
  color: var(--color-positive);
}
.dx-chip.is-write {
  border-color: transparent;
  background: var(--color-warn-quiet);
  color: var(--color-warn);
}
.dx-chip.is-danger {
  border-color: transparent;
  background: var(--color-negative-quiet);
  color: var(--color-negative);
}
.dx-chip.is-scope {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ── prose ──────────────────────────────────────────────────────────────── */

.dx-prose {
  margin-top: 28px;
  font-size: 1rem;
  line-height: 1.72;
}
.dx-prose > :first-child {
  margin-top: 0;
}
.dx-prose p,
.dx-prose ul,
.dx-prose ol {
  margin: 0 0 18px;
}
.dx-prose ul,
.dx-prose ol {
  padding-left: 1.4em;
}
.dx-prose li {
  margin: 6px 0;
  padding-left: 2px;
}
.dx-prose li::marker {
  color: var(--color-muted-2);
}
.dx-prose li > p {
  margin-bottom: 8px;
}
.dx-prose strong {
  color: var(--color-ink);
  font-weight: 650;
}
.dx-prose h2,
.dx-prose h3 {
  position: relative;
  color: var(--color-ink);
  text-wrap: balance;
}
.dx-prose h2 {
  margin: 56px 0 14px;
  font-size: var(--text-xl);
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.dx-prose h3 {
  margin: 36px 0 10px;
  font-size: 1.1875rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.dx-prose h2 + h3 {
  margin-top: 20px;
}
.dx-prose h2 code,
.dx-prose h3 code {
  font-size: 0.9em;
}
.dx-anchor {
  margin-left: 8px;
  color: var(--color-muted-2);
  text-decoration: none;
  opacity: 0;
  transition: opacity 120ms;
}
.dx-anchor::before {
  content: '#';
  font-weight: 500;
}
h2:hover .dx-anchor,
h3:hover .dx-anchor,
.dx-anchor:focus-visible {
  opacity: 1;
}
.dx-prose a:not([class]),
.dx-prose a[data-doc],
.dx-prose a.dx-ext {
  color: var(--color-link);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--color-link) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms;
}
.dx-prose a:not([class]):hover,
.dx-prose a[data-doc]:hover,
.dx-prose a.dx-ext:hover {
  text-decoration-color: currentColor;
}
.dx-prose code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--color-rule);
  border-radius: 5px;
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.86em;
  word-break: break-word;
}
.dx-prose a code {
  color: inherit;
}
.dx-prose hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--color-rule);
}
.dx-prose blockquote {
  margin: 0 0 18px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--color-rule-2);
  color: var(--color-muted);
}

/* code blocks */
.dx-code {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-panel);
  background: var(--color-code-bg);
}
.dx-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-paper-2);
}
.dx-code-title {
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 650;
}
.dx-code-title.is-lang {
  color: var(--color-muted-2);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-size: var(--text-2xs);
}
.dx-copy {
  height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.dx-copy:hover {
  border-color: var(--color-rule-2);
  background: var(--color-panel);
  color: var(--color-ink);
}
.dx-copy.is-done {
  color: var(--color-positive);
}
.dx-code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: transparent !important;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  tab-size: 2;
  scrollbar-width: thin;
}
.dx-prose .dx-code code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  word-break: normal;
}
.shiki span {
  color: var(--shiki-light);
  font-style: var(--shiki-light-font-style, inherit);
}
.shiki code {
  color: var(--color-ink);
}
:root[data-theme='dark'] .shiki span {
  color: var(--shiki-dark);
  font-style: var(--shiki-dark-font-style, inherit);
}

/* tables */
.dx-table {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-panel);
  scrollbar-width: thin;
}
.dx-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.dx-table th {
  padding: 10px 14px;
  background: var(--color-paper-2);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-rule);
}
.dx-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--color-rule);
  vertical-align: top;
}
.dx-table tr:first-child td {
  border-top: 0;
}
.dx-table td:first-child {
  color: var(--color-ink);
}
.dx-table code {
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* callouts */
.dx-callout {
  margin: 0 0 22px;
  padding: 14px 18px 2px;
  border: 1px solid var(--color-rule);
  border-left: 3px solid var(--color-muted-2);
  border-radius: 4px var(--radius-panel) var(--radius-panel) 4px;
  background: var(--color-paper-2);
}
.dx-callout-title {
  margin: 0 0 4px !important;
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.dx-callout-body > :last-child {
  margin-bottom: 12px;
}
.dx-callout-body {
  font-size: 0.9375rem;
}
.dx-callout--tip {
  border-left-color: var(--color-positive);
  background: var(--color-positive-quiet);
}
.dx-callout--tip .dx-callout-title {
  color: var(--color-positive);
}
.dx-callout--caution {
  border-left-color: var(--color-warn);
  background: var(--color-warn-quiet);
}
.dx-callout--caution .dx-callout-title {
  color: var(--color-warn);
}
.dx-callout--danger {
  border-left-color: var(--color-negative);
  background: var(--color-negative-quiet);
}
.dx-callout--danger .dx-callout-title {
  color: var(--color-negative);
}

/* steps */
.dx-steps > ol {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.dx-steps > ol > li {
  position: relative;
  margin: 0;
  padding: 0 0 18px 46px;
  counter-increment: step;
}
.dx-steps > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-rule-2);
  border-radius: 50%;
  background: var(--color-panel);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 750;
  line-height: 1;
}
.dx-steps > ol > li::after {
  content: '';
  position: absolute;
  left: 13.5px;
  top: 34px;
  bottom: 4px;
  width: 1.5px;
  border-radius: 2px;
  background: var(--color-rule);
}
.dx-steps > ol > li:last-child::after {
  display: none;
}
.dx-steps > ol > li > p:first-child {
  padding-top: 1px;
}
.dx-steps > ol > li > :last-child {
  margin-bottom: 0;
}

/* tabs */
.dx-tabs {
  margin: 0 0 24px;
}
.dx-tab-list {
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-rule);
  scrollbar-width: none;
}
.dx-tab-btn {
  position: relative;
  flex: none;
  padding: 8px 14px 10px;
  border: 0;
  background: none;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 650;
  cursor: pointer;
}
.dx-tab-btn:hover {
  color: var(--color-ink);
}
.dx-tab-btn[aria-selected='true'] {
  color: var(--color-ink);
}
.dx-tab-btn[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.dx-tab-label {
  margin: 0 0 8px !important;
  color: var(--color-muted-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.js .dx-tab-label {
  display: none;
}
.js .dx-tab-panel:not(:first-of-type) {
  display: none;
}
.js .dx-tabs.is-ready .dx-tab-panel {
  display: none;
}
.js .dx-tabs.is-ready .dx-tab-panel.is-active {
  display: block;
}
html:not(.js) .dx-tab-list {
  display: none;
}

/* link lists */
.dx-links ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-rule);
}
.dx-links li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--color-rule);
}
.dx-link-row {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 14px 4px;
  color: inherit;
  text-decoration: none;
}
.dx-link-title {
  color: var(--color-ink);
  font-weight: 650;
  transition: color 120ms;
}
.dx-link-desc {
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.dx-link-arrow {
  color: var(--color-muted-2);
  transition: transform 160ms var(--ease-out), color 120ms;
}
.dx-link-row:hover .dx-link-title {
  color: var(--color-link);
}
.dx-link-row:hover .dx-link-arrow {
  color: var(--color-link);
  transform: translateX(3px);
}

/* screenshots */
.dx-shot {
  display: block;
  margin: 4px 0 26px;
}
.dx-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-whisper);
}
.dx-shot figcaption {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: center;
}
figure.dx-shot {
  margin-left: 0;
  margin-right: 0;
}

/* ── page foot, pager ───────────────────────────────────────────────────── */

.dx-pagefoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.dx-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.dx-feedback svg {
  color: var(--color-muted-2);
}
.dx-feedback a {
  color: var(--color-link);
  font-weight: 600;
}
.dx-updated {
  margin: 0;
  color: var(--color-muted-2);
}
.dx-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.dx-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-panel);
  text-decoration: none;
  transition: border-color 120ms;
}
.dx-pager-link.is-next {
  align-items: flex-end;
  text-align: right;
}
.dx-pager-link:hover {
  border-color: var(--color-rule-2);
}
.dx-pager-link:hover .dx-pager-title {
  color: var(--color-link);
}
.dx-pager-dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted-2);
  font-size: var(--text-xs);
  font-weight: 600;
}
.dx-pager-title {
  color: var(--color-ink);
  font-weight: 650;
}

/* ── on this page ───────────────────────────────────────────────────────── */

.dx-toc {
  position: sticky;
  top: var(--top-h);
  align-self: start;
  max-height: calc(100vh - var(--top-h));
  overflow-y: auto;
  padding: 40px 24px 40px 8px;
  scrollbar-width: none;
}
.dx-toc-title {
  margin: 0 0 10px;
  color: var(--color-muted-2);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.dx-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--color-rule);
}
.dx-toc a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 13px;
  border-left: 2px solid transparent;
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 120ms;
}
.dx-toc li.d3 a {
  padding-left: 25px;
  font-size: var(--text-xs);
}
.dx-toc a:hover {
  color: var(--color-ink);
}
.dx-toc a.is-on {
  border-left-color: var(--color-accent);
  color: var(--color-ink);
  font-weight: 600;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.dx-foot {
  border-top: 1px solid var(--color-rule);
  background: var(--color-paper);
}
.dx-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 24px;
}
.dx-brand.is-foot .dx-brand-word {
  font-size: var(--text-md);
}
.dx-brand.is-foot .dx-brand-docs {
  font-size: var(--text-sm);
}
.dx-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.dx-foot-links a {
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}
.dx-foot-links a:hover {
  color: var(--color-ink);
}
.dx-foot-note {
  margin: 0 0 0 auto;
  color: var(--color-muted-2);
  font-size: var(--text-xs);
}

/* ── search ─────────────────────────────────────────────────────────────── */

.dx-search {
  position: fixed;
  inset: 0;
  z-index: 400;
}
.dx-search[hidden] {
  display: none;
}
.dx-search-scrim {
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
}
.dx-search-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 12vh - 32px));
  margin: 10vh auto 0;
  overflow: hidden;
  border: 1px solid var(--color-rule-2);
  border-radius: 14px;
  background: var(--color-panel);
  box-shadow: var(--shadow-pop);
  animation: dx-pop 180ms var(--ease-out);
}
@keyframes dx-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }
}
.dx-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-muted-2);
}
.dx-search-field input {
  flex: 1;
  height: 58px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--color-ink);
  font: inherit;
  font-size: 1.0625rem;
}
.dx-search-field input::placeholder {
  color: var(--color-muted-2);
}
.dx-search-field input::-webkit-search-cancel-button {
  display: none;
}
.dx-search-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}
.dx-search-group + .dx-search-group {
  margin-top: 6px;
}
.dx-search-group-title {
  margin: 8px 10px 4px;
  color: var(--color-muted-2);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.dx-hit {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-control);
  text-decoration: none;
  scroll-margin: 8px;
}
.dx-hit[aria-selected='true'] {
  background: var(--color-accent-quiet);
}
.dx-hit-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
}
.dx-hit-title .dx-hit-sep {
  color: var(--color-muted-2);
  font-weight: 500;
}
.dx-hit-title .dx-hit-sub {
  color: var(--color-muted);
  font-weight: 550;
}
.dx-hit-text {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dx-hit mark {
  padding: 0 1px;
  border-radius: 3px;
  background: var(--color-mark);
  color: inherit;
}
.dx-search-empty {
  padding: 28px 16px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: center;
}
.dx-search-foot {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--color-rule);
  background: var(--color-paper-2);
  color: var(--color-muted-2);
  font-size: var(--text-xs);
}
.dx-search-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── home ───────────────────────────────────────────────────────────────── */

.dx-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-paper);
  /* A breath of cherry in the top corner, as the marketing site's hero has
   * on its dark field: light enough to read over, and gone by the fold. */
  background-image:
    radial-gradient(60rem 28rem at 88% -18%, oklch(81% 0.075 43 / 0.22), transparent 68%),
    radial-gradient(36rem 20rem at 8% 120%, oklch(93% 0.03 43 / 0.5), transparent 70%);
  color: var(--color-ink);
}
.dx-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px 84px;
}
.dx-eyebrow {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.dx-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.dx-hero-lead {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.dx-hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(580px, 100%);
  height: 56px;
  margin-top: 36px;
  padding: 0 12px 0 18px;
  border: 1px solid var(--color-rule-2);
  border-radius: 12px;
  background: var(--color-panel);
  box-shadow: 0 1px 2px oklch(20% 0.012 45 / 0.04), 0 8px 24px -12px oklch(20% 0.012 45 / 0.12);
  color: var(--color-muted);
  font-size: var(--text-md);
  cursor: pointer;
  transition: border-color 120ms, box-shadow 120ms;
}
.dx-hero-search:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-quiet), 0 8px 24px -12px oklch(20% 0.012 45 / 0.12);
}
.dx-hero-search span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* On the dark field the light washes read as smoke: one ember of the red
 * instead, the way the marketing site's hero glows. */
:root[data-theme='dark'] .dx-hero {
  background-image: radial-gradient(60rem 28rem at 88% -18%, oklch(51% 0.19 47 / 0.18), transparent 68%);
}
.dx-hero-search .dx-kbd {
  border-color: var(--color-rule-2);
  background: var(--color-paper-2);
  color: var(--color-muted);
}
.dx-home-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.dx-home-body > * + * {
  margin-top: 72px;
}
.dx-home-kicker,
.dx-home-band-head h2 {
  margin: 0 0 18px;
  color: var(--color-muted-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.dx-home-start {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dx-home-start.is-four {
  grid-template-columns: repeat(3, 1fr);
}
.dx-home-start a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px 36px 22px 0;
  border-top: 2px solid var(--color-accent);
  text-decoration: none;
}
.dx-home-start-title {
  color: var(--color-ink);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 120ms;
}
.dx-home-start-text {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.dx-home-start-go {
  position: absolute;
  right: 4px;
  top: 24px;
  color: var(--color-muted-2);
  transition: transform 160ms var(--ease-out), color 120ms;
}
.dx-home-start a:hover .dx-home-start-title,
.dx-home-start a:hover .dx-home-start-go {
  color: var(--color-link);
}
.dx-home-start a:hover .dx-home-start-go {
  transform: translateX(3px);
}
.dx-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
}
.dx-home-sec {
  padding-top: 18px;
  border-top: 1px solid var(--color-rule-2);
}
.dx-home-sec h3 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 700;
}
.dx-home-sec h3 a {
  color: var(--color-ink);
  text-decoration: none;
}
.dx-home-sec h3 a:hover {
  color: var(--color-link);
}
.dx-home-sec p {
  margin: 6px 0 10px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.dx-home-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dx-home-sec li a {
  display: inline-block;
  padding: 3px 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}
.dx-home-sec li a:hover {
  color: var(--color-link);
}
.dx-home-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.dx-home-band-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-link);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
}
.dx-home-connectors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-rule);
  border-left: 1px solid var(--color-rule);
}
.dx-home-connectors li {
  border-right: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
.dx-home-connectors a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 120ms;
}
.dx-home-connectors a:hover {
  background: var(--color-raise);
}

/* ── connectors ─────────────────────────────────────────────────────────── */

.dx-cicon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 7px;
}
.dx-cicon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dx-cicon.is-lg {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.dx-cicon.is-mono {
  border: 1px solid var(--color-rule);
  background: var(--color-paper-3);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0;
}
.dx-cicon.is-lg.is-mono {
  font-size: var(--text-sm);
}
:root[data-theme='dark'] .dx-cicon:not(.is-mono) {
  padding: 3px;
  background: oklch(97% 0.006 42);
}
.dx-catalogue {
  margin-top: 8px;
}
.dx-catalogue-bar {
  position: sticky;
  top: var(--top-h);
  z-index: 10;
  margin: 0 -8px 8px;
  padding: 12px 8px;
  background: var(--color-paper);
}
.dx-filter input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-rule-2);
  border-radius: var(--radius-control);
  background: var(--color-panel);
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-md);
}
.dx-filter input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -1px;
}
.dx-fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
html:not(.js) .dx-catalogue-bar {
  display: none;
}
.dx-fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.dx-fchip span {
  color: var(--color-muted-2);
  font-weight: 500;
}
.dx-fchip:hover {
  border-color: var(--color-rule-2);
  color: var(--color-ink);
}
.dx-fchip[aria-pressed='true'] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.dx-fchip[aria-pressed='true'] span {
  color: inherit;
  opacity: 0.7;
}
.dx-cgroup {
  margin-top: 26px;
}
.dx-cgroup[hidden] {
  display: none;
}
.dx-prose .dx-cgroup-title {
  margin: 0 0 8px;
  color: var(--color-muted-2);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.dx-cgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.dx-cgrid li {
  margin: 0;
  padding: 0;
}
.dx-cgrid li[hidden] {
  display: none;
}
.dx-connector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}
.dx-connector:hover {
  background: var(--color-paper-2);
}
.dx-connector-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dx-connector-tag {
  margin-left: auto;
  color: var(--color-muted-2);
  font-size: var(--text-2xs);
  font-weight: 600;
  white-space: nowrap;
}
.dx-catalogue-empty {
  padding: 24px 0;
  color: var(--color-muted);
}

/* ── mobile scrim (the nav drawer) ──────────────────────────────────────── */

.dx-scrim {
  display: none;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1279px) {
  .dx-shell {
    grid-template-columns: var(--side-w) minmax(0, 1fr);
  }
  .dx-toc {
    display: none;
  }
  .dx-main {
    padding: 32px 44px 88px;
  }
  .dx-top-actions .dx-toplink {
    display: none;
  }
}
@media (max-width: 1099px) {
  .dx-search-btn {
    width: 200px;
  }
  .dx-tabs-nav {
    margin-left: 4px;
  }
  .dx-tab {
    padding: 0 7px;
  }
  .dx-tab.is-on::after {
    left: 7px;
    right: 7px;
  }
}
@media (max-width: 959px) {
  :root {
    --top-h: 56px;
  }
  .dx-menu {
    display: inline-grid;
  }
  .dx-tabs-nav {
    display: none;
  }
  .dx-top-row {
    gap: 10px;
    padding: 0 16px;
  }
  .dx-search-btn {
    width: auto;
    flex: 0 1 220px;
  }
  .dx-shell {
    display: block;
  }
  .dx-side {
    position: fixed;
    top: var(--top-h);
    left: 0;
    bottom: 0;
    z-index: 300;
    width: min(320px, 86vw);
    height: auto;
    /* The desktop rule's align-self: start would size a fixed box to its
     * content and shift it up to fit the viewport, over the header. */
    align-self: auto;
    background: var(--color-paper);
    transform: translateX(-102%);
    transition: transform 240ms var(--ease-out);
    visibility: hidden;
  }
  .nav-open .dx-side {
    transform: none;
    visibility: visible;
    box-shadow: var(--shadow-pop);
  }
  .nav-open .dx-scrim {
    display: block;
    position: fixed;
    inset: var(--top-h) 0 0 0;
    z-index: 250;
    background: var(--color-scrim);
  }
  .nav-open {
    overflow: hidden;
  }
  .dx-side {
    display: flex;
    flex-direction: column;
  }
  .dx-side-mobile {
    display: block;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--color-rule);
  }
  .dx-mtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .dx-mtab {
    padding: 5px 11px;
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-pill);
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: 650;
    text-decoration: none;
  }
  .dx-mtab.is-on {
    border-color: var(--color-ink);
    background: var(--color-ink);
    color: var(--color-paper);
  }
  .dx-side-scroll {
    flex: 1;
    height: auto;
  }
  .dx-main {
    padding: 28px 20px 72px;
  }
  .dx-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dx-home-connectors {
    grid-template-columns: repeat(4, 1fr);
  }
  .dx-cgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .dx-top-actions .dx-cta {
    display: none;
  }
  .dx-brand-docs {
    padding-left: 8px;
  }
  .dx-search-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    padding: 0;
    justify-content: center;
    border-color: transparent;
    background: none;
    color: var(--color-muted);
  }
  .dx-search-btn .dx-search-label,
  .dx-search-btn .dx-kbd {
    display: none;
  }
  .dx-article-head h1 {
    font-size: var(--text-2xl);
  }
  .dx-lead {
    font-size: 1.0625rem;
  }
  .dx-actions {
    margin-left: 0;
  }
  .dx-link-row {
    grid-template-columns: 1fr auto;
  }
  .dx-link-desc {
    grid-column: 1;
  }
  .dx-link-arrow {
    grid-row: 1;
    grid-column: 2;
  }
  .dx-pager {
    grid-template-columns: 1fr;
  }
  .dx-pager-link.is-next {
    align-items: flex-start;
    text-align: left;
  }
  .dx-hero-inner {
    padding: 56px 16px 52px;
  }
  .dx-hero h1 {
    font-size: 2.375rem;
  }
  .dx-hero-lead {
    font-size: var(--text-md);
  }
  .dx-hero-search .dx-kbd {
    display: none;
  }
  .dx-home-body {
    padding: 40px 16px 72px;
  }
  .dx-home-start,
  .dx-home-start.is-four,
  .dx-home-grid {
    grid-template-columns: 1fr;
  }
  .dx-home-connectors {
    grid-template-columns: repeat(3, 1fr);
  }
  .dx-cgrid {
    grid-template-columns: 1fr;
  }
  .dx-foot-note {
    margin-left: 0;
  }
  .dx-search-panel {
    margin-top: 12px;
    max-height: calc(100vh - 24px);
  }
  .dx-search-foot {
    display: none;
  }
}

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

@media print {
  .dx-top,
  .dx-side,
  .dx-toc,
  .dx-foot,
  .dx-pager,
  .dx-actions,
  .dx-pagefoot,
  .dx-copy,
  .dx-search {
    display: none !important;
  }
  .dx-shell {
    display: block;
  }
  .dx-main {
    padding: 0;
  }
  .dx-code pre {
    white-space: pre-wrap;
  }
}
