/* AdCtrl documentation. Vanilla CSS, no inline styles (strict CSP). */
@font-face {
  font-family: Plex;
  src: url("/fonts/IBMPlexSans.ttf") format("truetype");
  font-weight: 100 700;
  font-display: swap;
}
:root {
  --bg: #f7f5ee;
  --surface: #eeece3;
  --raised: #e3e5d8;
  --lime: #b7f37b;
  --accent-ink: #355b2b;
  --text: #243127;
  --secondary: #596252;
  --label: #636b59;
  --line: #bcc3ad;
  --line-soft: #dddfd2;
  --ink: #1c2a20;
  --paper: #faf8f0;
  --key: #243127;
  --ink-fill: #243127;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Plex, "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
svg[hidden],
[hidden] {
  display: none !important;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
:is(a, button, summary):focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus {
  left: 12px;
}

.dx-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.dx-top-row {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.dx-brand svg {
  width: 104px;
  height: auto;
  aspect-ratio: 640/205;
}
.dx-brand span {
  font-size: 14px;
  font-weight: 500;
  color: var(--label);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.dx-top-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 14.5px;
}
.dx-top-links a {
  color: var(--secondary);
  text-decoration: none;
}
.dx-top-links a:hover {
  color: var(--text);
}
.dx-top-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}
.dx-top-links .dx-cta {
  background: var(--lime);
  color: var(--ink);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}
.dx-top-links .dx-cta:hover {
  background: #c6f794;
  color: var(--ink);
}

.dx-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
.dx-side {
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 72px);
  overflow: auto;
  padding: 36px 0 40px;
}
.dx-toc summary {
  display: none;
}
.dx-toc nav {
  display: grid;
  gap: 2px;
}
.dx-toc-group {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--label);
  margin: 18px 0 6px;
}
.dx-toc-group:first-child {
  margin-top: 0;
}
.dx-toc a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.dx-toc a:hover {
  background: var(--surface);
  color: var(--text);
}
.dx-toc a.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  border-left-color: var(--lime);
}

.dx-main {
  min-width: 0;
  max-width: 820px;
  padding: 40px 0 96px;
}
.dx-main > section {
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--line-soft);
}
.dx-main > section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.dx-main h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 16px;
}
.dx-main h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 28px 0 8px;
}
.dx-main p {
  color: var(--secondary);
  margin: 0 0 14px;
}
.dx-main p strong {
  color: var(--text);
  font-weight: 600;
}
.dx-main em {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}

.dx-hero {
  padding-top: 16px;
}
.dx-eyebrow {
  display: inline-block;
  background: var(--lime);
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px !important;
}
.dx-hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}
.dx-lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
}
.dx-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 20px;
}
.dx-facts div {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 2px;
}
.dx-facts strong {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--label);
}
.dx-facts span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.dx-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dx-jump a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  background: var(--paper);
  transition:
    border-color 0.16s,
    transform 0.16s;
}
.dx-jump a:hover {
  border-color: var(--accent-ink);
  transform: translateY(-2px);
}
.dx-jump strong {
  color: var(--text);
  font-size: 16px;
}
.dx-jump span {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.4;
}

.dx-diagram {
  margin: 24px 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px;
}
.dx-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.dg-box {
  fill: var(--surface);
  stroke: var(--line);
}
.dg-us {
  fill: var(--ink-fill);
  stroke: var(--ink-fill);
}
.dg-h {
  font:
    600 15px Plex,
    sans-serif;
  fill: var(--text);
}
.dg-s {
  font:
    400 12.5px Plex,
    sans-serif;
  fill: var(--secondary);
}
.dg-on {
  fill: #edf0eb;
}
.dg-h.dg-on {
  fill: var(--lime);
  font-size: 20px;
}
.dg-line {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
}

.dx-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 20px 22px;
}
.dx-card h3 {
  margin: 0 0 8px;
}
.dx-card p:last-child {
  margin-bottom: 0;
}
.dx-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dx-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}
.dx-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 2px;
}
.dx-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.dx-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.dx-cap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.dx-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.dx-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 56px;
  border-left: 1px solid var(--line);
  margin-left: 17px;
}
.dx-steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.dx-steps > li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-fill);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
}
.dx-steps h3 {
  margin: 4px 0 6px;
}
.dx-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-fill);
  border-radius: 12px;
  padding: 10px 10px 10px 16px;
  margin: 6px 0 4px;
  max-width: 520px;
}
.dx-copy code {
  background: none;
  border: 0;
  padding: 0;
  color: #edf0eb;
  font-size: 15px;
  flex: 1;
}
.dx-copy button {
  font:
    500 13.5px Plex,
    sans-serif;
  background: var(--lime);
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
}
.dx-copy button:hover {
  background: #c6f794;
}
.dx-prompts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  margin: 8px 0;
}
.dx-prompts li {
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}
.dx-card .dx-prompts li {
  padding: 10px 14px;
}
.dx-card .dx-prompts li::before {
  display: none;
}

.dx-note {
  display: flex;
  gap: 14px;
  background: #edf4e4;
  border: 1px solid #c4dca5;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 20px 0;
}
.dx-note strong {
  color: var(--accent-ink);
  font-size: 14px;
  white-space: nowrap;
}
.dx-note p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.dx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.dx-table th,
.dx-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  line-height: 1.45;
}
.dx-table thead th {
  border-top: 0;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--label);
}
.dx-table tbody tr:first-child td,
.dx-table tbody tr:first-child th {
  border-top: 0;
}
.dx-table thead + tbody tr:first-child td {
  border-top: 1px solid var(--line-soft);
}
.dx-table td:first-child {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.dx-spec th {
  width: 200px;
  font-weight: 500;
  color: var(--label);
  font-size: 14px;
}
.dx-spec td:first-child {
  white-space: normal;
  font-weight: 400;
}
.dx-compact {
  font-size: 14px;
}
.dx-compact td {
  padding: 8px 12px;
}
.dx-small {
  font-size: 14px !important;
  color: var(--label) !important;
}

.dx-flow {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
  counter-reset: fl;
}
.dx-flow li {
  counter-increment: fl;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 6px;
  align-content: start;
  position: relative;
}
.dx-flow li::before {
  content: counter(fl);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.dx-flow strong {
  font-size: 16px;
  color: var(--text);
}
.dx-flow span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--secondary);
}
.dx-list {
  padding-left: 20px;
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}
.dx-list li {
  color: var(--secondary);
  line-height: 1.55;
}
.dx-list li strong {
  color: var(--text);
  font-weight: 600;
}

.dx-faq {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.dx-faq details {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 0 18px;
}
.dx-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 28px 15px 0;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.dx-faq summary::-webkit-details-marker {
  display: none;
}
.dx-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 20px;
  color: var(--label);
}
.dx-faq details[open] summary::after {
  content: "–";
}
.dx-faq details p {
  padding-bottom: 16px;
}

@media (max-width: 1000px) {
  .dx-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dx-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dx-grid3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .dx-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dx-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 20px 0 0;
  }
  .dx-toc {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 0 16px;
  }
  .dx-toc summary {
    display: block;
    cursor: pointer;
    padding: 13px 0;
    font-weight: 500;
    list-style: none;
  }
  .dx-toc summary::-webkit-details-marker {
    display: none;
  }
  .dx-toc nav {
    padding-bottom: 12px;
  }
  .dx-main {
    padding-top: 28px;
  }
  .dx-top-links a:not(.dx-cta):not([aria-current]) {
    display: none;
  }
}
@media (max-width: 640px) {
  .dx-jump,
  .dx-grid2,
  .dx-cap {
    grid-template-columns: 1fr;
  }
  .dx-flow {
    grid-template-columns: 1fr;
  }
  .dx-steps > li {
    padding-left: 40px;
  }
  .dx-table {
    font-size: 14px;
  }
  .dx-table th,
  .dx-table td {
    padding: 10px 12px;
  }
  .dx-table td:first-child {
    white-space: normal;
  }
  .dx-spec th {
    width: auto;
    display: block;
    padding-bottom: 0;
    border-top: 1px solid var(--line-soft);
  }
  .dx-spec td {
    display: block;
    border-top: 0;
    padding-top: 4px;
  }
  .dx-spec tr:first-child th {
    border-top: 0;
  }
  .dx-brand span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .dx-jump a {
    transition: none;
  }
}
