/* ===========================================================================
   Coommit Connect — developer reference (/developers)
   ---------------------------------------------------------------------------
   Loaded on top of homepage.css, which owns the shared chrome (dock, footer)
   and the [data-theme] tokens. Everything here is scoped under .dv so it can
   never reach the shared nav or footer.

   Direction. Every other API on the internet returns an invoice, a row, a
   webhook — something you have to imagine. This one returns a BOARD: a call
   lands boxes on a grid that people are looking at while it happens. So the
   page is built out of the product's own materials — the canvas dot grid, the
   box, the connector, the mauve — and the hero is not a claim about the API,
   it is the API running.

   Palette is inherited, not invented: #050208 ground and #6366F1 accent are
   the brand's. The only colours added are the four HTTP methods, and they are
   information (what a call does to your data), not decoration.

   Type is Manrope throughout — the brand face, self-hosted — against the
   system monospace stack for anything a machine reads. No webfont is added:
   this site's CSS is written by people who watch Lighthouse.
   =========================================================================== */

.dv {
  /* LIGHT is the base, because every other page on this site forces
     data-theme="light" and this one must not be the odd one out. The dark set
     below is a token swap, not a second stylesheet: geometry never moves.

     Two things stay dark in BOTH themes on purpose. The code panels are an
     editor, not a document, and keeping them dark is what lets one syntax
     palette work everywhere. And the canvas panel follows the PRODUCT: a real
     Coommit board is a white ground with a grey dot grid, so the light version
     is the faithful one and the dark version is the adaptation. */
  --dv-ground: #f9fafb;
  --dv-panel: #ffffff;
  --dv-line: rgba(17, 20, 28, 0.1);
  --dv-line-soft: rgba(17, 20, 28, 0.06);
  --dv-ink: #16181c;
  --dv-ink-2: #4b5563;
  --dv-ink-3: #5c6472;
  --dv-accent: #6366f1;
  --dv-accent-lt: #4f46e5;
  --dv-accent-glow: rgba(99, 102, 241, 0.36);
  --dv-accent-wash: rgba(99, 102, 241, 0.1);
  --dv-accent-edge: rgba(99, 102, 241, 0.28);

  --dv-fill: rgba(17, 20, 28, 0.035);
  --dv-fill-hi: rgba(17, 20, 28, 0.07);
  --dv-inline-code: rgba(17, 20, 28, 0.06);
  --dv-shadow: 0 1px 2px rgba(22, 24, 28, 0.05), 0 18px 44px -24px rgba(22, 24, 28, 0.22);

  /* The board, in the product's own materials. */
  --dv-board-bg: #ffffff;
  --dv-board-dot: #d9dbe3;
  --dv-page-dot: rgba(17, 20, 28, 0.07);
  --dv-box-bg: #ffffff;
  --dv-box-line: rgba(17, 20, 28, 0.12);
  --dv-box-shadow: 0 1px 2px rgba(22, 24, 28, 0.05), 0 10px 26px -16px rgba(22, 24, 28, 0.4);
  --dv-track: rgba(17, 20, 28, 0.1);

  /* HTTP methods. Cool for reads, green for creates, amber for edits, red for
     removals. Darkened on light so each still clears 4.5:1 on its own ground. */
  --dv-get: #0369a1;
  --dv-post: #047857;
  --dv-patch: #b45309;
  --dv-delete: #be123c;
  --dv-flag-wash: rgba(180, 83, 9, 0.06);
  --dv-flag-edge: rgba(180, 83, 9, 0.24);

  /* Always dark: an editor is an editor in either theme. */
  --dv-code-bg: #0b0912;
  --dv-code-bar: rgba(255, 255, 255, 0.03);
  --dv-code-line: rgba(255, 255, 255, 0.07);
  --dv-code-ink: #dcdcf0;
  --dv-code-ink-2: rgba(255, 255, 255, 0.58);
  --dv-code-key: #a5a8fb;
  --dv-code-str: #86e0b6;
  --dv-code-num: #f2b544;

  --dv-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono",
    "Segoe UI Mono", "Roboto Mono", monospace;

  --dv-rail: 236px;
  --dv-max: 1180px;

  position: relative;
  background: var(--dv-ground);
  color: var(--dv-ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: clip;
}

/* ---- dark ------------------------------------------------------------------
   Only tokens move. Redefined for all three viewer states: an explicit dark
   choice, a dark OS with no explicit choice, and nothing else. Guarded with
   :not([data-theme="light"]) so an explicit light beats a dark system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dv {
    --dv-ground: #050208;
    --dv-panel: rgba(255, 255, 255, 0.035);
    --dv-line: rgba(255, 255, 255, 0.09);
    --dv-line-soft: rgba(255, 255, 255, 0.055);
    --dv-ink: #f7f7fb;
    --dv-ink-2: rgba(255, 255, 255, 0.68);
    --dv-ink-3: rgba(255, 255, 255, 0.56);
    --dv-accent-lt: #a5a8fb;
    --dv-accent-glow: rgba(99, 102, 241, 0.32);
    --dv-accent-wash: rgba(99, 102, 241, 0.11);
    --dv-accent-edge: rgba(99, 102, 241, 0.3);
    --dv-fill: rgba(255, 255, 255, 0.045);
    --dv-fill-hi: rgba(255, 255, 255, 0.08);
    --dv-inline-code: rgba(255, 255, 255, 0.06);
    --dv-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
    --dv-board-bg: #08060f;
    --dv-board-dot: rgba(255, 255, 255, 0.07);
    --dv-page-dot: rgba(255, 255, 255, 0.06);
    --dv-box-bg: rgba(255, 255, 255, 0.055);
    --dv-box-line: rgba(255, 255, 255, 0.14);
    --dv-box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.9);
    --dv-track: rgba(255, 255, 255, 0.13);
    --dv-get: #56b6f5;
    --dv-post: #3ddc9a;
    --dv-patch: #f2b544;
    --dv-delete: #f4736f;
    --dv-flag-wash: rgba(242, 181, 68, 0.05);
    --dv-flag-edge: rgba(242, 181, 68, 0.26);
  }
}
:root[data-theme="dark"] .dv {
  --dv-ground: #050208;
  --dv-panel: rgba(255, 255, 255, 0.035);
  --dv-line: rgba(255, 255, 255, 0.09);
  --dv-line-soft: rgba(255, 255, 255, 0.055);
  --dv-ink: #f7f7fb;
  --dv-ink-2: rgba(255, 255, 255, 0.68);
  --dv-ink-3: rgba(255, 255, 255, 0.56);
  --dv-accent-lt: #a5a8fb;
  --dv-accent-glow: rgba(99, 102, 241, 0.32);
  --dv-accent-wash: rgba(99, 102, 241, 0.11);
  --dv-accent-edge: rgba(99, 102, 241, 0.3);
  --dv-fill: rgba(255, 255, 255, 0.045);
  --dv-fill-hi: rgba(255, 255, 255, 0.08);
  --dv-inline-code: rgba(255, 255, 255, 0.06);
  --dv-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --dv-board-bg: #08060f;
  --dv-board-dot: rgba(255, 255, 255, 0.07);
  --dv-page-dot: rgba(255, 255, 255, 0.06);
  --dv-box-bg: rgba(255, 255, 255, 0.055);
  --dv-box-line: rgba(255, 255, 255, 0.14);
  --dv-box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.9);
  --dv-track: rgba(255, 255, 255, 0.13);
  --dv-get: #56b6f5;
  --dv-post: #3ddc9a;
  --dv-patch: #f2b544;
  --dv-delete: #f4736f;
  --dv-flag-wash: rgba(242, 181, 68, 0.05);
  --dv-flag-edge: rgba(242, 181, 68, 0.26);
}

.dv *,
.dv *::before,
.dv *::after { box-sizing: border-box; }

.dv a { color: inherit; }
.dv code { font-family: var(--dv-mono); }

/* The product's own ground, at the product's own 26px pitch. */
.dv__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dv-page-dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62vh, transparent 96vh);
  mask-image: linear-gradient(180deg, #000 0, #000 62vh, transparent 96vh);
  pointer-events: none;
  z-index: 0;
}

.dv__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--dv-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---------------------------------------------------------------- headings */
.dv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dv-accent-lt);
}
.dv-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.dv-h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.033em;
  line-height: 1.12;
  margin: 0.85rem 0 0;
  text-wrap: balance;
}
.dv-lede {
  margin: 0.85rem 0 0;
  max-width: 60ch;
  color: var(--dv-ink-2);
  font-size: 1.0625rem;
  font-weight: 500;
}
/* Inline code in prose carries unbreakable tokens: a base URL, a path with a
   :param, an error code. Measured at 320px, the reference lede's base URL was
   29px wider than the viewport. Prose wraps; only a <pre> gets to scroll. */
.dv-lede code,
.dv-card__p code,
.dv-step__p code,
.dv-rail__p code,
.dv-group__b code { overflow-wrap: anywhere; }

.dv-section { padding: 5.5rem 0 0; }

/* ============================================================ 1. THE HERO ==
   The thesis, and the only place the page raises its voice: the request on
   the left, and on the right the board that request builds, one box at a
   time. Same timeline drives both, so the highlighted line and the box that
   lands are always the same action.                                          */
.dv-hero {
  padding: clamp(6.5rem, 12vh, 8.5rem) 0 0;
}
.dv-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 3.25rem;
  align-items: center;
}
.dv-hero__h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 1.03;
  margin: 1rem 0 0;
  text-wrap: balance;
}
.dv-hero__h1 em {
  font-style: normal;
  color: var(--dv-accent-lt);
}
.dv-hero__sub {
  margin: 1.15rem 0 0;
  max-width: 44ch;
  color: var(--dv-ink-2);
  font-size: 1.075rem;
  font-weight: 500;
}
.dv-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.dv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.25rem;
  border-radius: 11px;
  border: 1px solid var(--dv-line);
  background: var(--dv-fill);
  color: var(--dv-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}
.dv-btn:hover {
  background: var(--dv-fill-hi);
  border-color: var(--dv-accent-edge);
  transform: translateY(-1px);
}
/* The primary button sets its own ink. Inheriting --dv-ink put near-black
   text on the indigo fill in light mode (3.98:1, measured). White on
   --dv-accent #6366f1 is 4.43:1, still short of 4.5, so the fill is the
   deeper indigo the rest of the site already uses for light-mode calls to
   action: white on #4f46e5 is 6.1:1, and the hover stays above AA too. */
/* Written as `.dv a.dv-btn--primary` on purpose: `.dv a { color: inherit }`
   further down this sheet outranks a bare `.dv-btn--primary`, which is how
   the ink stayed dark here in the first place. */
.dv a.dv-btn--primary,
.dv-btn--primary {
  background: #4f46e5;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px var(--dv-accent-glow);
}
.dv a.dv-btn--primary:hover,
.dv-btn--primary:hover {
  background: #4338ca;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 38px -10px var(--dv-accent-glow);
}
.dv-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* The three numbers that say how much surface there is. Tabular so they hold
   a column, Manrope so they stay in the brand's voice. */
.dv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.6rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--dv-line-soft);
}
.dv-stat__n {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dv-stat__l {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dv-ink-3);
}

/* ---- the two halves of the signature ---- */
.dv-demo {
  display: grid;
  gap: 0.9rem;
}
.dv-demo__panel {
  border: 1px solid var(--dv-line);
  border-radius: 16px;
  background: var(--dv-code-bg);
  overflow: hidden;
  box-shadow: var(--dv-shadow);
}
.dv-demo__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--dv-code-line);
  background: var(--dv-code-bar);
  font-family: var(--dv-mono);
  font-size: 0.75rem;
  color: var(--dv-code-ink-2);
}
.dv-demo__code {
  margin: 0;
  padding: 0.85rem 0.2rem 0.95rem;
  font-family: var(--dv-mono);
  font-size: 0.775rem;
  line-height: 1.7;
  overflow-x: auto;
}
.dv-demo__code .ln {
  display: block;
  padding: 0 0.95rem 0 0.75rem;
  border-left: 2px solid transparent;
  color: var(--dv-code-ink);
  white-space: pre;
}
.dv-demo__code .ln--act {
  border-left-color: rgba(99, 102, 241, 0);
  background: rgba(99, 102, 241, 0);
}

/* The canvas half: the product's grid, and boxes that land on it. */
.dv-board {
  position: relative;
  border: 1px solid var(--dv-line);
  border-radius: 16px;
  background: var(--dv-board-bg);
  background-image: radial-gradient(circle, var(--dv-board-dot) 1px, transparent 1px);
  background-size: 26px 26px;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  box-shadow: var(--dv-shadow);
}
.dv-board__tag {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  font-family: var(--dv-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--dv-ink-3);
}
.dv-box {
  position: absolute;
  border-radius: 9px;
  border: 1px solid var(--dv-box-line);
  background: var(--dv-box-bg);
  backdrop-filter: blur(2px);
  padding: 0.5rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--dv-ink);
  line-height: 1.35;
  opacity: 0;
  transform: scale(0.9);
  box-shadow: var(--dv-box-shadow);
}
.dv-box__k {
  display: block;
  font-family: var(--dv-mono);
  font-size: 0.575rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dv-ink-3);
  margin-bottom: 0.22rem;
}
.dv-box--title { border-color: var(--dv-accent-edge); background: color-mix(in srgb, var(--dv-accent) 13%, var(--dv-box-bg)); }
.dv-box--title strong { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.02em; }
.dv-box--poll { border-color: color-mix(in srgb, var(--dv-post) 42%, transparent); }
.dv-box--chart { border-color: color-mix(in srgb, var(--dv-patch) 40%, transparent); }

/* Poll bars and a pie: real product furniture, drawn with the tokens rather
   than an illustration of them. */
.dv-bar { height: 5px; border-radius: 99px; background: var(--dv-track); margin-top: 4px; }
.dv-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--dv-post); opacity: 0.8; }
.dv-pie {
  width: 34px; height: 34px; border-radius: 50%; margin-top: 3px;
  background: conic-gradient(var(--dv-accent) 0 60%, var(--dv-patch) 0 85%, var(--dv-track) 0);
}
.dv-check {
  width: 12px; height: 12px; border-radius: 3px;
  border: 1.5px solid var(--dv-ink-3);
  display: inline-block; vertical-align: -2px; margin-right: 5px;
}
.dv-conn {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.9), rgba(99, 102, 241, 0.55));
  transform-origin: left center;
  opacity: 0;
}

/* ---- the shared timeline ----------------------------------------------
   One 11s cycle. Each element carries a --d delay; the same keyframe drives
   the code line and the box it creates, which is what keeps them honest. */
@keyframes dv-land {
  0%, 2% { opacity: 0; transform: scale(0.9) translateY(6px); }
  6% { opacity: 1; transform: scale(1.015) translateY(0); }
  9%, 84% { opacity: 1; transform: scale(1) translateY(0); }
  93%, 100% { opacity: 0; transform: scale(0.97) translateY(-4px); }
}
@keyframes dv-draw {
  0%, 40% { opacity: 0; }
  48%, 84% { opacity: 1; }
  93%, 100% { opacity: 0; }
}
/* Code-panel tokens, not page tokens: this panel is dark in BOTH themes, and
   the first light pass painted the inactive lines with the page's dark-grey
   body colour, on a near-black ground. Unreadable, and only visible on the
   screenshot. Anything inside .dv-demo__code reads from the --dv-code-* set. */
@keyframes dv-read {
  0%, 2% { border-left-color: transparent; background: transparent; color: var(--dv-code-ink-2); }
  6%, 16% { border-left-color: var(--dv-accent-lt); background: rgba(99, 102, 241, 0.16); color: #fff; }
  26%, 100% { border-left-color: transparent; background: transparent; color: var(--dv-code-ink-2); }
}
.dv-anim .dv-box { animation: dv-land 11s cubic-bezier(0.2, 0.9, 0.3, 1.1) infinite; animation-delay: var(--d, 0s); }
.dv-anim .dv-conn { animation: dv-draw 11s ease infinite; animation-delay: var(--d, 0s); }
.dv-anim .ln--act { animation: dv-read 11s ease infinite; animation-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .dv-anim .dv-box,
  .dv-anim .dv-conn,
  .dv-anim .ln--act { animation: none; }
  .dv-anim .dv-box { opacity: 1; transform: none; }
  .dv-anim .dv-conn { opacity: 1; }
}

/* =========================================================== 2. THE FORK ==
   REST or MCP is a real decision with real consequences, so it gets a real
   two-up rather than a bullet in a list.                                     */
.dv-fork {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.dv-card {
  border: 1px solid var(--dv-line);
  border-radius: 16px;
  background: var(--dv-panel);
  padding: 1.6rem 1.5rem;
}
.dv-card__h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dv-card__h svg { width: 18px; height: 18px; color: var(--dv-accent-lt); }
.dv-card__p { margin: 0.6rem 0 0; color: var(--dv-ink-2); font-size: 0.9375rem; font-weight: 500; }
.dv-card__for {
  margin-top: 1.05rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dv-line-soft);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dv-ink-3);
}
.dv-card__for b { color: var(--dv-ink-2); font-weight: 700; }

/* ============================================================ 3. CODE ==== */
.dv-code {
  position: relative;
  border: 1px solid var(--dv-line);
  border-radius: 14px;
  background: var(--dv-code-bg);
  overflow: hidden;
}
.dv-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--dv-code-line);
  background: var(--dv-code-bar);
  font-family: var(--dv-mono);
  font-size: 0.7188rem;
  color: var(--dv-code-ink-2);
}
.dv-code pre {
  margin: 0;
  padding: 0.95rem 1.05rem 1.1rem;
  overflow-x: auto;
  font-family: var(--dv-mono);
  font-size: 0.8125rem;
  line-height: 1.72;
  color: var(--dv-code-ink);
  tab-size: 2;
}
.dv-code .c-key { color: var(--dv-code-key); }
.dv-code .c-str { color: var(--dv-code-str); }
.dv-code .c-num { color: var(--dv-code-num); }
.dv-code .c-cm { color: var(--dv-code-ink-2); font-style: italic; }

.dv-copy {
  border: 1px solid var(--dv-code-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dv-code-ink-2);
  border-radius: 7px;
  padding: 0.2rem 0.55rem;
  font-family: var(--dv-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.dv-copy:hover { background: rgba(99, 102, 241, 0.28); border-color: rgba(99, 102, 241, 0.5); color: #fff; }
.dv-copy[data-done="1"] { color: #3ddc9a; border-color: rgba(61, 220, 154, 0.45); }

/* ====================================================== 4. THE QUICKSTART ==
   Three steps because there are three: get a key, call it, look at the board.
   Numbered because the order is load-bearing — you cannot do 2 before 1.     */
.dv-steps { display: grid; gap: 1.1rem; margin-top: 2.4rem; counter-reset: dvstep; }
.dv-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}
.dv-step__n {
  counter-increment: dvstep;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--dv-accent-edge);
  background: var(--dv-accent-wash);
  color: var(--dv-accent-lt);
  font-family: var(--dv-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}
.dv-step__n::before { content: counter(dvstep); }
.dv-step__t { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.25rem 0 0; }
.dv-step__p { margin: 0.4rem 0 0.9rem; color: var(--dv-ink-2); font-size: 0.9375rem; font-weight: 500; max-width: 62ch; }

/* ======================================================== 5. AGENT RAILS ==
   The part of this API that is genuinely unlike a normal one, so it is a
   section and not a footnote.                                               */
.dv-rails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.4rem; }
.dv-rail__k {
  display: inline-block;
  font-family: var(--dv-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dv-accent-lt);
  background: var(--dv-accent-wash);
  border: 1px solid var(--dv-accent-edge);
  border-radius: 7px;
  padding: 0.1rem 0.45rem;
}
.dv-rail__t { margin: 0.75rem 0 0; font-size: 1.0125rem; font-weight: 800; letter-spacing: -0.02em; }
.dv-rail__p { margin: 0.45rem 0 0; color: var(--dv-ink-2); font-size: 0.9063rem; font-weight: 500; }

/* ============================================================= 6. SCOPES ==*/
.dv-scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 2.2rem; }
.dv-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--dv-line);
  border-radius: 12px;
  background: var(--dv-panel);
  padding: 0.85rem 1rem;
}
.dv-scope__id {
  font-family: var(--dv-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dv-ink);
}
.dv-scope__c { margin: 0.25rem 0 0; font-size: 0.8438rem; color: var(--dv-ink-3); font-weight: 500; }
.dv-scope__n {
  font-family: var(--dv-mono);
  font-size: 0.7188rem;
  font-variant-numeric: tabular-nums;
  color: var(--dv-ink-3);
  white-space: nowrap;
}
.dv-scope--flag { border-color: var(--dv-flag-edge); background: var(--dv-flag-wash); }
.dv-scope--flag .dv-scope__id { color: var(--dv-patch); }

/* ========================================================== 7. REFERENCE ==
   Sticky rail + one column. 64 endpoints is a reference, not a narrative:
   the rail is how you get to one, the anchor is how you send someone to it. */
.dv-ref { display: grid; grid-template-columns: var(--dv-rail) minmax(0, 1fr); gap: 3rem; margin-top: 2.75rem; }
.dv-ref__rail { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; }
.dv-ref__rail::-webkit-scrollbar { width: 6px; }
.dv-ref__rail::-webkit-scrollbar-thumb { background: var(--dv-track); border-radius: 99px; }
.dv-ref__railh {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dv-ink-3);
  padding: 0 0 0.6rem 0.75rem;
}
.dv-ref__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.75rem;
  border-left: 2px solid transparent;
  color: var(--dv-ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 7px 7px 0;
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.dv-ref__link:hover { color: var(--dv-ink); background: var(--dv-fill); }
.dv-ref__link.is-on { color: var(--dv-accent-lt); border-left-color: var(--dv-accent); background: var(--dv-accent-wash); }
.dv-ref__link span {
  font-family: var(--dv-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--dv-ink-3);
}

.dv-group { scroll-margin-top: 5rem; }
.dv-group + .dv-group { margin-top: 3.25rem; }
.dv-group__t { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.028em; margin: 0; }
.dv-group__b { margin: 0.45rem 0 1.25rem; color: var(--dv-ink-2); font-size: 0.9375rem; font-weight: 500; max-width: 66ch; }

.dv-ep {
  border: 1px solid var(--dv-line);
  border-radius: 13px;
  background: var(--dv-panel);
  padding: 0.95rem 1.05rem;
  scroll-margin-top: 5rem;
}
.dv-ep + .dv-ep { margin-top: 0.55rem; }
.dv-ep__sig { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.dv-m {
  font-family: var(--dv-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  padding: 0.16rem 0.44rem;
  border: 1px solid currentColor;
  flex: 0 0 auto;
}
.dv-m--get { color: var(--dv-get); }
.dv-m--post { color: var(--dv-post); }
.dv-m--patch { color: var(--dv-patch); }
.dv-m--delete { color: var(--dv-delete); }
/* On the always-dark code bars, the light set's darkened methods measure 3.4:1.
   They take the dark set there, which is the ground those values were chosen
   against. Measured on the rendered page, not eyeballed. */
.dv-demo__bar .dv-m--get, .dv-code__bar .dv-m--get { color: #56b6f5; }
.dv-demo__bar .dv-m--post, .dv-code__bar .dv-m--post { color: #3ddc9a; }
.dv-demo__bar .dv-m--patch, .dv-code__bar .dv-m--patch { color: #f2b544; }
.dv-demo__bar .dv-m--delete, .dv-code__bar .dv-m--delete { color: #f4736f; }
.dv-ep__path {
  font-family: var(--dv-mono);
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--dv-ink);
  word-break: break-word;
}
.dv-ep__path b { color: var(--dv-accent-lt); font-weight: 600; }
.dv-ep__scope {
  margin-left: auto;
  font-family: var(--dv-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--dv-ink-3);
  border: 1px solid var(--dv-line);
  border-radius: 6px;
  padding: 0.14rem 0.44rem;
  white-space: nowrap;
}
.dv-ep__note {
  margin: 0.6rem 0 0;
  color: var(--dv-ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  /* API notes carry unbroken tokens like recapId/callId/taskProposals. On a
     390px card that is one word wider than the card, so it must be allowed to
     break rather than push the border off screen. */
  overflow-wrap: anywhere;
}
.dv-ep__note strong { color: var(--dv-ink); font-weight: 700; }
.dv-ep__note code, .dv-fields code, .dv-tbl code {
  font-family: var(--dv-mono);
  font-size: 0.9em;
  background: var(--dv-inline-code);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}
.dv-dry {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dv-patch);
  background: var(--dv-flag-wash);
  border: 1px solid var(--dv-flag-edge);
  border-radius: 7px;
  padding: 0.16rem 0.5rem;
}
.dv-fields { margin-top: 0.75rem; display: grid; gap: 0.3rem; }
.dv-fields__h {
  font-size: 0.6563rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dv-ink-3);
  margin-bottom: 0.1rem;
}
.dv-field {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 0.85rem;
  font-size: 0.8125rem;
  padding: 0.22rem 0;
  border-top: 1px solid var(--dv-line-soft);
}
.dv-field__n { font-family: var(--dv-mono); font-weight: 600; color: var(--dv-ink); word-break: break-word; }
.dv-field__s { color: var(--dv-ink-3); font-weight: 500; overflow-wrap: anywhere; }

/* ==================================================== 8. CANVAS ACTIONS ===*/
.dv-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.3rem; }
.dv-act__t {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dv-ink-3);
  margin: 0 0 0.65rem;
}
.dv-act__l { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.32rem; }
.dv-act__l li {
  font-family: var(--dv-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dv-ink-2);
  border: 1px solid var(--dv-line);
  background: var(--dv-fill);
  border-radius: 7px;
  padding: 0.16rem 0.44rem;
}

/* ============================================================= 9. TABLES ==*/
.dv-tbl { width: 100%; border-collapse: collapse; margin-top: 1.6rem; font-size: 0.875rem; }
.dv-tbl th {
  text-align: left;
  font-size: 0.6563rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dv-ink-3);
  padding: 0 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--dv-line);
  white-space: nowrap;
}
.dv-tbl td {
  padding: 0.65rem 0.9rem 0.65rem 0;
  border-bottom: 1px solid var(--dv-line-soft);
  color: var(--dv-ink-2);
  font-weight: 500;
  vertical-align: top;
}
.dv-tbl td:first-child { color: var(--dv-ink); font-weight: 700; }
.dv-tbl .n {
  font-family: var(--dv-mono);
  font-variant-numeric: tabular-nums;
  color: var(--dv-ink);
  white-space: nowrap;
}
.dv-tbl .code { font-family: var(--dv-mono); font-size: 0.8125rem; }
.dv-tbl .st { font-family: var(--dv-mono); font-variant-numeric: tabular-nums; font-weight: 700; }
/* td.st, not .st: `.dv-tbl td:first-child` above sets the colour at (0,2,1)
   and would otherwise win, painting every status the same white. Measured on
   a screenshot, not guessed. */
.dv-tbl td.st--4 { color: var(--dv-patch); }
.dv-tbl td.st--5 { color: var(--dv-delete); }
.dv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================== 10. CTA ===*/
.dv-end {
  margin: 6rem 0 5rem;
  border: 1px solid var(--dv-line);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 50% 0%, var(--dv-accent-wash), transparent 62%),
    var(--dv-panel);
  padding: 3.1rem 2rem;
  text-align: center;
}
.dv-end h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.032em; margin: 0; }
.dv-end p { margin: 0.75rem auto 0; max-width: 48ch; color: var(--dv-ink-2); font-weight: 500; }
.dv-end .dv-hero__cta { justify-content: center; }

.dv :focus-visible { outline: 2px solid var(--dv-accent-lt); outline-offset: 3px; border-radius: 6px; }

/* ========================================================== RESPONSIVE ====
   Three real breaks, each where a specific thing stops fitting: the reference
   rail (1080), the hero split and the 3-up action grid (900), and the
   two-ups (620).                                                            */
@media (max-width: 1080px) {
  .dv-ref { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .dv-ref__rail {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dv-line-soft);
  }
  .dv-ref__railh { width: 100%; padding-left: 0; }
  .dv-ref__link { border-left: 0; border: 1px solid var(--dv-line); border-radius: 8px; padding: 0.3rem 0.6rem; }
  .dv-ref__link.is-on { border-color: var(--dv-accent-edge); }
  .dv-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dv-hero__split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .dv-hero { padding-top: 6rem; }
  .dv-section { padding-top: 4.25rem; }
  .dv__grid { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 46vh, transparent 76vh); mask-image: linear-gradient(180deg, #000 0, #000 46vh, transparent 76vh); }
}
@media (max-width: 620px) {
  .dv__wrap { padding: 0 1.15rem; }
  .dv-fork, .dv-rails, .dv-scopes, .dv-acts { grid-template-columns: minmax(0, 1fr); }
  .dv-stats { gap: 1.5rem; }
  .dv-field { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .dv-ep__scope { margin-left: 0; }
  .dv-step { grid-template-columns: 28px minmax(0, 1fr); gap: 0.85rem; }
  .dv-step__n { width: 28px; height: 28px; font-size: 0.75rem; }
  .dv-end { padding: 2.4rem 1.25rem; }
}
