/* Contentstack Canoe developer docs: MCP server, API and webhooks, Agent OS, Agent skills and FAQ.
   Owner: docs-dev. Loaded after /assets/css/pages/docs.css (shared docs components from docs-core).
   Everything here is scoped with a dd- prefix and uses site.css tokens only. */

/* Header badges and at-a-glance facts ----------------------------------------------------------- */
.dd-glance { margin-top: 24px; }
.dd-glance dd code { font-size: 13px; overflow-wrap: anywhere; }
.docs-header .dd-actions { margin-top: 20px; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
@media (max-width: 479px) { .dd-actions .btn { width: 100%; } }

/* Small uppercase label used above examples and returns ---------------------------------------- */
.dd-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose > .dd-label { margin-top: 1.6em; }
.prose > .dd-label + * { margin-top: 8px; }

/* The loop: discover, assess, fix, re-measure ----------------------------------------------------- */
.dd-loop { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); counter-reset: ddloop; }
.dd-loop > li {
  position: relative; display: grid; gap: 6px; align-content: start; min-width: 0;
  padding: 16px 16px 16px 58px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2);
}
:root[data-theme="light"] .dd-loop > li { background: var(--card); }
.dd-loop > li::before {
  counter-increment: ddloop; content: counter(ddloop);
  position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text);
  font: 600 13px/1 var(--font); font-variant-numeric: tabular-nums;
}
.dd-loop > li.is-yours { border-style: dashed; background: transparent; }
.dd-loop > li.is-yours::before { border-color: var(--line-strong); background: var(--surface); color: var(--ink-2); }
.dd-loop-k { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.dd-loop-v { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.dd-loop-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dd-loop-tools code { font-size: 12px; overflow-wrap: anywhere; }
.dd-loop-tools .dd-plain { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 12.5px; }
.dd-loop-return {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--ink-2); font-size: 13.5px; line-height: 1.45;
}
.dd-loop-return .icon { width: 18px; height: 18px; flex: none; color: var(--accent); }
.dd-loop-return code { font-size: 12px; }
.prose .dd-loop > li + li, .prose .dd-pipe > li + li { margin-top: 0; }

/* Horizontal pipeline (Agent OS flow) --------------------------------------------------------------- */
.dd-pipe { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.dd-pipe > li {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-items: start; min-width: 0;
  padding: 14px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2);
}
:root[data-theme="light"] .dd-pipe > li { background: var(--card); }
.dd-pipe > li + li::before {
  content: ""; position: absolute; left: 31px; top: -11px; width: 12px; height: 12px; background: var(--muted);
  -webkit-mask: var(--m-chevron-down) center / contain no-repeat; mask: var(--m-chevron-down) center / contain no-repeat;
}
.dd-pipe .icon-tile { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; }
.dd-pipe .icon-tile .icon { width: 18px; height: 18px; }
.dd-pipe b { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; padding-top: 1px; }
.dd-pipe i { font-style: normal; color: var(--muted); font-size: 13px; line-height: 1.45; }
.dd-pipe > li.is-key { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
@media (min-width: 640px) {
  .dd-pipe > li { grid-template-columns: 36px minmax(0, 190px) minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 16px; }
  .dd-pipe .icon-tile { grid-row: auto; }
  .dd-pipe b { padding-top: 0; }
  .dd-pipe i { font-size: 14px; }
}

/* Client tabs (nine clients): one row that scrolls sideways on phones, chips that wrap from 768 ------ */
.dd-tabs > .tab-list { gap: 6px; border-bottom: 0; margin-bottom: 16px; padding: 2px 0; }
.dd-tabs > .tab-list:not(.tab-list-scroll) { flex-wrap: wrap; overflow: visible; }
.dd-tabs > .tab-list .tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 14px;
}
.dd-tabs > .tab-list .tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.dd-tabs > .tab-list .tab .dd-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
@media (hover: hover) { .dd-tabs > .tab-list .tab:hover { border-color: var(--line-strong); color: var(--ink); } }
/* Match the shared 40px tab height below 1024 (this rule outranks the site.css one) */
@media (max-width: 1023px) { .dd-tabs > .tab-list .tab { min-height: 40px; } }
@media (pointer: coarse) { .dd-tabs > .tab-list .tab { min-height: 44px; } }
.dd-tabs > .tab-list .tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (max-width: 767px) {
  .dd-tabs > .tab-list-scroll { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (min-width: 768px) {
  .dd-tabs > .tab-list-scroll { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
/* Each client panel opens with its status: a badge and one line */
.dd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.dd-tabs .tab-panel > p.dd-status { color: var(--ink-2); }
.dd-status code { font-size: 12.5px; }
.dd-tabs .tab-panel > * + * { margin-top: 14px; }
.dd-tabs .tab-panel > .code-block + .code-block { margin-top: 12px; }
.dd-tabs .tab-panel p { color: var(--ink-2); }
html:not(.js) .dd-tabs .tab-panel + .tab-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.dd-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.dd-check .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* Status badges ---------------------------------------------------------------------------------- */
.dd-badge-limited { color: var(--ink); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.dd-badge-act { color: var(--ink); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.dd-badge-act::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
:root[data-theme="light"] .badge-good { color: #1E6B3E; border-color: color-mix(in srgb, #2E7D4F 35%, transparent); background: color-mix(in srgb, #2E7D4F 9%, transparent); }

/* Tables in these pages ---------------------------------------------------------------------------- */
.dd-table .table td .badge { vertical-align: 1px; }
.dd-table .table td code, .dd-table .table th code { white-space: normal; overflow-wrap: anywhere; }
.dd-table .table th[scope="row"] { min-width: 150px; }
.dd-table .table th[scope="row"] a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
@media (hover: hover) { .dd-table .table th[scope="row"] a:hover { text-decoration-color: currentColor; } }
.dd-table .table small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
@media (max-width: 639px) { .dd-table .table th[scope="row"] { min-width: 0; } }
@media (min-width: 1024px) { .dd-table .table th[scope="row"] > code:only-child { white-space: nowrap; overflow-wrap: normal; } }

/* Tool reference: collapsed rows (<details>), one line each; "Expand all" opens every row -------------- */
.dd-tools { display: grid; gap: 8px; }
.prose > .dd-tools { margin-top: 1.4em; }
.dd-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.dd-expand { flex: none; min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--accent-text); font-size: 14px; font-weight: 500; border-radius: 6px; }
@media (pointer: coarse) { .dd-expand { min-height: 44px; } }
@media (hover: hover) { .dd-expand:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: .2em; } }
.dd-expand:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dd-tool {
  min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); scroll-margin-top: calc(var(--header-h) + 64px);
}
.dd-tool-sum {
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "name chev" "meta meta"; gap: 6px 12px; align-items: center;
  min-height: 64px; padding: 14px 16px; list-style: none; cursor: pointer; border-radius: var(--r-lg);
}
.dd-tool-sum::-webkit-details-marker { display: none; }
.dd-tool-sum h3 { grid-area: name; margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: 0; min-width: 0; }
.dd-tool-sum h3 code { padding: 0; border: 0; background: none; font-size: 15.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
:root[data-theme="dark"] .dd-tool-sum h3 code { background: none; }
.dd-tool-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.dd-tool-sum::after {
  grid-area: chev; content: ""; width: 16px; height: 16px; justify-self: end; background: var(--muted);
  -webkit-mask: var(--m-chevron-down) center / contain no-repeat; mask: var(--m-chevron-down) center / contain no-repeat;
  transition: transform var(--t) var(--ease);
}
.dd-tool[open] > .dd-tool-sum::after { transform: rotate(180deg); }
.dd-tool[open] > .dd-tool-sum { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.dd-tool-sum:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) { .dd-tool-sum:hover { background: var(--hover); } }
.dd-tool-body { padding: 0 16px 16px; border-top: 1px solid var(--line-soft); }
.dd-tool-body > * + * { margin-top: 12px; }
.dd-tool-body > :first-child { margin-top: 14px; }
.dd-tool-body > p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.dd-tool-body .table { font-size: 14px; }
/* Every width stacks the name over the badge and summary, so all nine rows share one left edge */
@media (min-width: 768px) {
  .dd-tool-body .table-wrap > .table { table-layout: fixed; }
  .dd-tool-body .table thead th:nth-child(1) { width: 32%; }
  .dd-tool-body .table thead th:nth-child(2) { width: 22%; }
}
.dd-tool .dd-returns { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.dd-tool .dd-returns code { font-size: 12.5px; }
.dd-tool-body > .dd-label + * { margin-top: 6px; }
.dd-none { color: var(--muted); font-size: 14.5px; }

/* Prompts: a code block that wraps like prose ---------------------------------------------------- */
.dd-prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font); font-size: 15px; line-height: 1.55; padding: 14px 18px 16px; }
.dd-prompt pre code { font-family: inherit; }

/* Small code chips list (tools used) ------------------------------------------------------------- */
.dd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dd-chips code { font-size: 12px; }
.dd-chips .dd-chip-ext { border-style: dashed; }

/* Coming soon list ------------------------------------------------------------------------------- */
.dd-soon { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.prose > .dd-soon { margin-top: 1.2em; }
@media (min-width: 640px) { .dd-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dd-soon > li { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 0; }
.prose .dd-soon > li + li { margin-top: 0; }
.dd-soon b { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.dd-soon span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
/* Compact version: one panel, one row per item (title and badge, then one line) */
.dd-soon-rows { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.prose > .dd-soon-rows { margin-top: 1.2em; }
.prose .dd-soon-rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.prose .dd-soon-rows > li:first-child { border-top: 0; }
.dd-soon-rows b { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.dd-soon-rows > li > span:last-child { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* Download card ------------------------------------------------------------------------------------ */
.dd-download {
  position: relative; display: grid; gap: 14px 18px; grid-template-columns: minmax(0, 1fr); align-items: center;
  padding: clamp(18px, 3vw, 24px); border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: var(--highlight), var(--shadow-sm);
}
.prose > .dd-download { margin-top: 1.6em; }
.dd-download-main { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; min-width: 0; }
.dd-download .icon-tile { grid-row: span 3; width: 44px; height: 44px; }
.dd-download-title { color: var(--ink); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.dd-download-text { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.dd-download-meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dd-download-meta code { font-size: 12px; overflow-wrap: anywhere; }
.dd-download .dd-actions { justify-content: flex-start; }
@media (min-width: 720px) {
  .dd-download { grid-template-columns: minmax(0, 1fr) auto; }
  .dd-download .dd-actions { justify-content: flex-end; }
}
@media (max-width: 479px) { .dd-download .dd-actions .btn { width: 100%; } }

/* Placeholder list (things to replace) --------------------------------------------------------------- */
.dd-placeholders { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.prose > .dd-placeholders { margin-top: 1.2em; }
.dd-placeholders > li { display: grid; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--line-soft); margin: 0; }
.prose .dd-placeholders > li + li { margin-top: 0; }
.dd-placeholders > li:first-child { border-top: 0; }
.dd-placeholders code { justify-self: start; font-size: 12.5px; overflow-wrap: anywhere; }
.dd-placeholders span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
@media (min-width: 640px) {
  .dd-placeholders > li { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 16px; align-items: baseline; }
}

/* Skills: collapsed rows (<details>) like the tool reference; "Expand all" opens every row ------------ */
.dd-skills { display: grid; gap: 8px; }
.prose > .dd-skills { margin-top: 1.4em; }
.dd-skill { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: calc(var(--header-h) + 64px); }
.dd-skill-sum {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; grid-template-areas: "n name chev" ". badges badges"; gap: 6px 12px; align-items: center;
  min-height: 64px; padding: 14px 16px; list-style: none; cursor: pointer; border-radius: var(--r-lg);
}
.dd-skill-sum::-webkit-details-marker { display: none; }
.dd-skill-sum::after {
  grid-area: chev; content: ""; width: 16px; height: 16px; justify-self: end; background: var(--muted);
  -webkit-mask: var(--m-chevron-down) center / contain no-repeat; mask: var(--m-chevron-down) center / contain no-repeat;
  transition: transform var(--t) var(--ease);
}
.dd-skill[open] > .dd-skill-sum::after { transform: rotate(180deg); }
.dd-skill-sum:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) { .dd-skill-sum:hover { background: var(--hover); } }
.dd-skill-n { grid-area: n; align-self: start; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font: 600 12.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.dd-skill-name { grid-area: name; min-width: 0; }
.dd-skill h3 { margin: 0; font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.dd-skill-slug { display: block; margin-top: 2px; color: var(--muted); font: 500 12px/1.4 var(--mono); overflow-wrap: anywhere; }
.dd-skill-badges { grid-area: badges; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 768px) {
  .dd-skill-sum { grid-template-columns: 28px minmax(0, 1fr) auto 20px; grid-template-areas: "n name badges chev"; }
  .dd-skill-badges { justify-content: flex-end; }
}
.dd-skill-body { display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--line-soft); }
.dd-skill-body > p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.dd-skill-note { color: var(--muted); font-size: 14px; line-height: 1.55; }
.dd-skill-note b { color: var(--ink-2); font-weight: 600; }
.dd-skill .code-block { margin: 0; }
.dd-skill-foot { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.dd-skill-foot .btn { font-size: 14px; }

/* Use it without a connector: three surfaces as pill tabs */
.dd-nc { margin-top: 1.2em; }
.dd-nc > .tab-list { margin-bottom: 14px; }
.dd-nc .tab-panel > * + * { margin-top: 12px; }
.prose .dd-nc + .callout { margin-top: 1.2em; }
.callout-body ul { margin: 6px 0 0; padding-left: 1.1em; list-style: disc; display: grid; gap: 4px; }
.prose .callout-body ul > li + li { margin-top: 0; }

/* Recipe chain (skills page) ------------------------------------------------------------------------ */
.dd-chain { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); counter-reset: ddchain; }
.prose > .dd-chain { margin-top: 1.2em; }
.dd-chain > li {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; margin: 0;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.prose .dd-chain > li + li { margin-top: 0; }
.dd-chain > li::before {
  counter-increment: ddchain; content: counter(ddchain); grid-row: span 2;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font: 600 12.5px/1 var(--font);
}
.dd-chain a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
@media (hover: hover) { .dd-chain a:hover { color: var(--accent-text); } }
.dd-chain span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* FAQ groups --------------------------------------------------------------------------------------- */
.prose > .accordion { margin-top: 1em; }
.prose > .accordion + h2 { margin-top: 2.2em; }
.dd-faq .accordion-item > summary { font-size: 16.5px; padding: 18px 0; }
.dd-faq .accordion-body { font-size: 15.5px; line-height: 1.65; padding-right: 8px; }
@media (min-width: 640px) { .dd-faq .accordion-body { padding-right: 44px; } }
.dd-faq .accordion-body code { font-size: 13px; }
.dd-faq-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.prose > .dd-faq-jump { margin-top: 1.4em; }
.dd-faq-jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.dd-faq-jump a span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .dd-faq-jump a:hover { border-color: var(--accent-line); background: var(--card); } }
@media (pointer: coarse) { .dd-faq-jump a { min-height: 44px; } }

/* Response anatomy (MCP page) ---------------------------------------------------------------------- */
.dd-anatomy { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.prose > .dd-anatomy { margin-top: 1.2em; }
@media (min-width: 640px) { .dd-anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dd-anatomy > div { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.dd-anatomy dt { margin: 0; }
.dd-anatomy dt code { font-size: 13px; font-weight: 600; }
.dd-anatomy dd { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.prose .dd-anatomy dt { margin-top: 0; }

/* Endpoint groups (API page) ------------------------------------------------------------------------ */
.dd-endpoints { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.prose > .dd-endpoints { margin-top: 1.2em; }
.dd-endpoints > li { display: grid; gap: 10px; padding: 14px 16px; margin: 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.prose .dd-endpoints > li + li { margin-top: 0; }
.dd-endpoints > li:first-child { border-top: 0; }
.dd-ep-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.dd-ep-info b { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.dd-ep-info .badge { height: 22px; font-size: 12px; }
.dd-ep-info > span:last-child { flex-basis: 100%; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.dd-ep-paths { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.dd-ep-paths code { max-width: 100%; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.dd-m { color: var(--accent-text); font-weight: 600; margin-right: 2px; }
@media (min-width: 720px) {
  .dd-endpoints > li { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; align-items: start; }
}
@media (max-width: 479px) { .dd-skill-foot .btn { flex: 1 1 140px; } }

/* Safety defaults panel (skills page) ------------------------------------------------------------- */
.dd-rules { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); gap: 10px 24px; }
.prose > .dd-rules { margin-top: 1.2em; }
.prose .dd-rules > li + li { margin-top: 0; }
.dd-rules li { font-size: 15px; }
.dd-rules code { font-size: 12.5px; }
@media (min-width: 720px) { .dd-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Engine logos inside an FAQ answer ---------------------------------------------------------------- */
.prose .accordion-body .dd-faq-engines { margin: 0 0 12px; }
.prose .dd-faq-engines > li + li { margin-top: 0; }

/* Row tables: stay one bordered panel on phones, no repeated labels -------------------------------- */
@media (max-width: 639px) {
  .dd-rows > .table { min-width: 0; display: block; }
  .dd-rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .dd-rows tbody { display: block; }
  .dd-rows .table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  .dd-rows .table tbody tr:last-child { border-bottom: 0; }
  .dd-rows .table th, .dd-rows .table td { display: block; padding: 0; border: 0; }
  .dd-rows .table td { font-size: 14px; }
  .dd-rows-badge .table tr { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .dd-rows-badge .table tr > td:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  .dd-rows-badge .table tr > td:last-child { grid-column: 1 / -1; }

  /* Tool parameters: one line each, `name` · type · what it is */
  .dd-params { overflow: visible; border: 0; border-radius: 0; background: none; }
  .dd-params::before { content: "Parameters"; display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .dd-params > .table { min-width: 0; display: block; font-size: 14px; }
  .dd-params thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .dd-params tbody { display: block; }
  .dd-params .table tr { display: block; padding: 8px 0; border-top: 1px solid var(--line-soft); line-height: 1.5; }
  .dd-params .table tbody tr:last-child { border-bottom: 1px solid var(--line-soft); }
  .dd-params .table th, .dd-params .table td { display: inline; padding: 0; border: 0; }
  .dd-params .table td::before { content: "\00B7"; margin: 0 7px; color: var(--muted); }
  .dd-params .table td:nth-child(2) { color: var(--muted); }
}
.docs-article > .dd-glance { margin: 0 0 40px; }

/* Endpoint paths break only at the <wbr> after each slash, never at a hyphen */
.dd-ep-paths code { overflow-wrap: normal; }

/* UX pass 2026-09-27 (WP-G) ------------------------------------------------------------------------ */
/* The loop figure is a swipe row on phones (shared .snap-row), inside its padded frame */
.dd-loop.snap-row { --snap-w: 82%; }
@media (max-width: 767px) { .dd-loop.snap-row { grid-template-columns: none; align-items: stretch; } }
@media (min-width: 768px) { .dd-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Response anatomy reads inline on phones */
@media (max-width: 767px) {
  .dd-anatomy { gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
  .dd-anatomy > div { display: block; padding: 12px 16px; border: 0; border-radius: 0; background: none; }
  .dd-anatomy > div + div { border-top: 1px solid var(--line-soft); }
  .dd-anatomy dt, .dd-anatomy dd { display: inline; }
  .dd-anatomy dt { margin-right: 6px; }
}

/* Errors and troubleshooting: the shared accordion, tighter; the code or symptom leads the summary */
.dd-errors .accordion-item > summary { justify-content: flex-start; gap: 10px; padding: 12px 0; font-size: 15px; line-height: 1.45; letter-spacing: 0; }
.dd-errors .accordion-item > summary > code { flex: none; }
.dd-errors .accordion-item > summary > span { flex: 1; min-width: 0; }
.dd-errors .accordion-item > summary::after { margin-left: auto; width: 18px; height: 18px; }
.dd-errors .accordion-body { padding: 0 0 16px; font-size: 15px; line-height: 1.6; }
.dd-errors .accordion-body code { font-size: 12.5px; }
@media (min-width: 768px) { .dd-errors .accordion-body { padding-right: 44px; } }
.prose > .dd-errors { margin-top: 1em; }
.dd-errors .accordion-item > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The intro says every tool but trigger_geo_test_run is read only, so rows show only the exception */
.dd-tool-meta > .badge:not(.dd-badge-act) { display: none; }
/* Tool error codes share one column so their summaries line up */
.dd-errors-codes .accordion-item > summary > code { min-width: 8.8rem; }
@media (max-width: 479px) { .dd-errors-codes .accordion-item > summary > code { min-width: 0; } .dd-errors-codes .accordion-item > summary { flex-wrap: wrap; row-gap: 4px; } .dd-errors-codes .accordion-item > summary > span { flex-basis: calc(100% - 40px); } }
/* Skills on phones: the slug shows once a row is open; tighter rows */
@media (max-width: 767px) {
  .dd-skill:not([open]) .dd-skill-slug { display: none; }
  .dd-skill-sum, .dd-tool-sum { padding-block: 12px; min-height: 56px; }
  /* The longest name (get_geo_latest_prompt_details) fits on one line down to 360 */
  .dd-tool-sum h3 code { font-size: 14px; }
}
/* Under 360 the name takes the full row and the chevron moves beside the summary, so no name breaks mid-word */
@media (max-width: 359px) {
  .dd-tool-sum { grid-template-areas: "name name" "meta chev"; }
  .dd-tool-sum h3 code { font-size: 13.5px; }
}
/* Weekly loop: the chain of skills as one line of linked steps */
.dd-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; counter-reset: ddflow; }
.prose > .dd-flow { margin-top: 1em; }
.prose .dd-flow > li { display: inline-flex; align-items: center; gap: 6px; margin: 0; counter-increment: ddflow; }
.prose .dd-flow > li + li::before { content: ""; width: 14px; height: 14px; background: var(--faint); -webkit-mask: var(--m-chevron-right) center / contain no-repeat; mask: var(--m-chevron-right) center / contain no-repeat; }
.dd-flow a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
}
.dd-flow a::before { content: counter(ddflow); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .dd-flow a { min-height: 44px; } }
@media (hover: hover) { .dd-flow a:hover { border-color: var(--accent-line); background: var(--card); } }
.dd-flow a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* From 768 the chevron trails each step, so a wrapped line never starts with one */
@media (min-width: 768px) {
  .prose .dd-flow > li + li::before { content: none; }
  .prose .dd-flow > li:not(:last-child)::after { content: ""; width: 14px; height: 14px; background: var(--faint); -webkit-mask: var(--m-chevron-right) center / contain no-repeat; mask: var(--m-chevron-right) center / contain no-repeat; }
}
@media (max-width: 767px) { .dd-rules { padding: 0; border: 0; background: none; } }
@media (max-width: 767px) {
  .dd-flow { display: block; line-height: 28px; }
  .prose .dd-flow > li { display: inline; }
  .prose .dd-flow > li + li::before { display: inline-block; margin: 0 4px; vertical-align: -2px; }
  .dd-flow a { display: inline-block; min-height: 28px; padding: 0; border: 0; background: none; color: var(--accent-text); font-size: 15px; line-height: 28px; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: .2em; }
  .dd-flow a::before { display: none; }
}
/* Agent OS flow on phones: tighter steps */
@media (max-width: 767px) {
  .dd-pipe { gap: 8px; }
  .dd-pipe > li { grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; padding: 10px 12px; }
  .dd-pipe > li + li::before { left: 22px; top: -10px; width: 10px; height: 10px; }
  .dd-pipe .icon-tile { width: 32px; height: 32px; border-radius: 9px; }
  .docs-frame:has(> .dd-pipe) { padding: 12px; }
}
@media (min-width: 768px) { .dd-tool-meta { flex-wrap: nowrap; align-items: baseline; } .dd-tool-meta > .badge { flex: none; align-self: center; } }
