/* hyperdesk.com/docs, in the help center's layout (app.hyperdesk.com/help, proposal/help/help.css in website_builder):
   the logo with "Docs" beside it, the page with an "In short" box, every page in the column beside it, a dark box at
   the end and the site's footer. Built on conduit.css and brand.css; pages from tools/docs-pages.mjs, behaviour in
   docs.js. Light only. */
.docs-app {
  --d-ink: var(--ink);
  --d-muted: var(--ink-muted);
  --d-faint: #8c877f;
  --d-line: #ecebe7;
  --d-line-2: var(--line);
  --d-bg: #fff;
  --d-soft: #f7f6f6;
  --d-soft-2: #ecebe7;
  --d-sky: #0b5c75;
  --d-sky-soft: #e6f7fc;
  --d-mint-soft: #ecf8f1;
  --d-mint-ink: #1f5a3d;
  --d-warn-soft: #fdf4e3;
  --d-warn-ink: #7a4b0c;
  --d-red-soft: #fcefeb;
  --d-red-ink: #8a2f1c;
  --d-code: #28241e;
  --d-code-2: #322d26;
  --d-sans: var(--body);
  --d-mono: var(--mono-font);
  background: #fff;
}
html:has(.docs-app) { scroll-padding-top: 88px; }
.docs-app [hidden] { display: none !important; }
.agent-note { display: none; }

/* ---------- Header: hyperdesk.com's, with "Docs" beside the logo ---------- */
.docs-app .hdr { background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid transparent; }
.docs-app .hdr.scrolled { border-bottom-color: var(--line); }
.docs-app .hdr-in { height: 64px; gap: 40px; }
.docs-app .brand img { width: auto; height: 22px; }
.hc-brand { flex: none; display: flex; align-items: center; gap: 14px; }
.hc-name { padding-left: 14px; border-left: 1px solid var(--line); font: 400 18px/22px var(--heading); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.docs-app .nav { gap: 28px; margin-right: auto; }
.docs-app .nav a { font-size: 14px; opacity: 0.8; }
.docs-app .nav a:hover { opacity: 1; }
.docs-app .hdr-link { height: auto; padding: 0; border: 0; background: none; font-size: 14px; opacity: 0.8; }
.docs-app .hdr-link:hover { opacity: 1; }
.docs-app .hdr .hdr-link + .btn { margin-left: -16px !important; }
.docs-app .hdr .btn.sm { height: 36px; padding: 0 14px; border-radius: var(--radius-md); font-size: 14px; }
.dh-search-top { display: none; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center; margin-right: -12px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.dh-search-top:hover { background: var(--surface); }

/* ---------- The page and the column beside it ---------- */
.hc-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 56px; padding-bottom: 112px; }
.hc-article { grid-column: 2; grid-row: 1; min-width: 0; max-width: 760px; }
.hc-side { grid-column: 1; grid-row: 1; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding-bottom: 8px; scrollbar-width: thin; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-muted); font: 500 12px/14px var(--mono-font); letter-spacing: 0.04em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b9b6af; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.hc-article .h1 { max-width: none; margin-top: 20px; font-size: 48px; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.dm-endpoint .hc-article .h1 { font: 500 32px/1.15 var(--mono-font); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.hc-answer { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-xl); background: #e6f7fc; }
.hc-answer p { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.55; text-wrap: pretty; }
.hc-answer p.hc-answer-tag { margin-bottom: 8px; color: #2d6f80; font: 500 11px/14px var(--mono-font); letter-spacing: 0.06em; text-transform: uppercase; }
/* The docs home's top, like Mintlify's: lede, the first step, "Copy setup prompt for your agent" with the agents' official
   marks, and the setup commands as tabs (docsHero in tools/docs-pages.mjs). */
.dh-lede { margin: 18px 0 0; max-width: 640px; color: var(--d-muted); font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.dh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.dh-first { height: 44px; padding: 0 20px; font-size: 15px; }
.dh-prompt { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--d-line-2); border-radius: var(--radius-md); background: var(--d-soft); color: var(--d-ink); font: 500 15px/1 var(--d-sans); cursor: pointer; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.js .dh-prompt { display: inline-flex; }
.dh-prompt:hover { background: var(--d-soft-2); }
.dh-prompt:focus-visible { outline: 2px solid var(--d-sky); outline-offset: 2px; }
.dh-prompt.is-done { border-color: #b9e2cb; background: var(--d-mint-soft); color: var(--d-mint-ink); }
.dh-marks { display: inline-flex; align-items: center; gap: 6px; }
.dh-marks img { display: block; width: 18px; height: 18px; object-fit: contain; }
.cb.dh-code { margin: 28px 0 4px; }
.dh-code .cg-tabs button { white-space: nowrap; }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 20px; }
.dc-meta .post-meta { margin: 0; }
.dc-meta .post-meta a { color: inherit; text-underline-offset: 3px; }
.dc-meta .post-meta a:hover { color: var(--ink); }
.hc-toc { margin-top: 28px; padding: 18px 0 4px; border-top: 1px solid var(--line); }
.hc-toc-h { margin: 0 0 8px; color: var(--ink-muted); font: 500 11px/14px var(--mono-font); letter-spacing: 0.04em; text-transform: uppercase; }
.hc-toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.hc-toc li { break-inside: avoid; }
.hc-toc a { display: inline-block; padding: 5px 0; color: var(--ink); font-size: 15px; line-height: 1.35; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hc-toc a:hover { text-decoration-color: var(--ink); }
.docs-app .prose { max-width: none; padding-bottom: 0; font-size: 17px; font-weight: 400; line-height: 1.6; }
.hc-prose { margin-top: 8px; }

/* Side column: search, then every page by group */
.hc-search-h { display: block; margin: 0 0 8px; color: var(--ink-muted); font: 500 11px/14px var(--mono-font); letter-spacing: 0.04em; text-transform: uppercase; }
.hc-side .hc-field { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #8c877f; font: 400 15px/1 var(--body); text-align: left; cursor: pointer; transition: border-color 0.15s; }
.hc-side .hc-field:hover { border-color: var(--ink-muted); }
.hc-side .hc-field svg { flex: none; color: var(--ink-muted); }
.dh-search-t { flex: 1; }
.dh-k, .sr kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--ink-muted); font: 500 11px/16px var(--mono-font); white-space: nowrap; }
.hc-side-h { margin: 24px 0 6px; color: var(--ink-muted); font: 500 11px/14px var(--mono-font); letter-spacing: 0.04em; text-transform: uppercase; }
.hc-side ul { margin: 0; padding: 0; list-style: none; }
.hc-side li a { display: flex; align-items: center; gap: 8px; margin-left: -10px; padding: 6px 10px; border-radius: var(--radius-md); color: var(--ink-muted); font-size: 14px; line-height: 1.3; text-decoration: none; transition: background 0.15s, color 0.15s; }
.hc-side li a:hover { background: var(--surface); color: var(--ink); }
.hc-side li a[aria-current="page"] { background: #e6f7fc; color: var(--ink); }
.hc-side li a code { overflow: hidden; font: 13px/1.35 var(--mono-font); text-overflow: ellipsis; white-space: nowrap; }
.hc-area summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.hc-area summary::-webkit-details-marker { display: none; }
.sb-n { color: #8c877f; }
.mth { flex: none; padding: 0 5px; border-radius: 5px; background: #e6f7fc; color: #0b5c75; font: 600 10px/17px var(--mono-font); letter-spacing: 0.02em; }

/* End of the page: previous and next as cards, then the dark box */
.dc-agents { margin: 40px 0 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-xl); color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.dc-agents a { color: var(--ink); text-underline-offset: 3px; }
.hc-related { margin-top: 64px; }
.hc-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hc-related a { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-xl); text-decoration: none; transition: border-color 0.15s var(--ease); }
.hc-related a:hover { border-color: var(--ink); }
.hc-related small { color: var(--ink-muted); font: 500 11px/14px var(--mono-font); letter-spacing: 0.04em; text-transform: uppercase; }
.hc-related b { font: 400 19px/1.15 var(--heading); letter-spacing: -0.02em; }
.hc-related b code { font: 500 15px var(--mono-font); }
.hc-related span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--ink-muted); font-size: 14px; line-height: 1.4; }
.hc-related li:only-child a.pn-next, .hc-related .pn-next { text-align: right; align-items: flex-end; }
.hc-related li:only-child:has(.pn-next) { grid-column: 2; }
.hc-help { margin-top: 48px; padding: 32px; border-radius: var(--radius-2xl); background: var(--coal); color: #fff; }
.hc-help h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; }
.hc-help p { max-width: 56ch; margin: 0 0 22px; color: rgba(255, 255, 255, 0.7); font-size: 16px; line-height: 1.45; }
.hc-help p a { color: #fff; text-underline-offset: 3px; }
.hc-help-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-help .btn.light { background: #fff; color: var(--ink); }
.hc-help .btn.light:hover { background: var(--surface); }
.hc-help .btn.ghost { border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: #fff; }
.hc-help .btn.ghost:hover { border-color: #fff; }

/* An endpoint's request and response sit under its title */
.ex { margin: 28px 0 8px; }
.ex-in { display: grid; gap: 12px; }

/* Copy page */
.pa { position: relative; display: flex; flex: none; }
.pa-copy, .pa-more summary { display: inline-flex; align-items: center; gap: 7px; height: 32px; border: 1px solid var(--d-line-2); background: #fff; color: var(--d-ink); font: 500 13px/1 var(--d-sans); cursor: pointer; transition: background 140ms; }
.pa-copy { padding: 0 11px; border-radius: 8px 0 0 8px; }
.pa-more summary { padding: 0 8px; border-left: 0; border-radius: 0 8px 8px 0; list-style: none; }
.pa-more summary::-webkit-details-marker { display: none; }
.pa-copy:hover, .pa-more summary:hover { background: var(--d-soft); }
.pa-copy.is-done { color: var(--d-mint-ink); }
.pa-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 280px; padding: 6px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px -12px rgba(41, 37, 30, 0.28), 0 2px 6px rgba(41, 37, 30, 0.06); animation: d-pop 160ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.pa-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--d-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.pa-item:hover { background: var(--d-soft); }
.pa-item > svg:first-child { flex: none; margin-top: 3px; color: var(--d-muted); }
.pa-item > svg:last-child:not(:first-child) { flex: none; margin: 4px 0 0 auto; color: var(--d-faint); }
.pa-item span { display: flex; flex-direction: column; }
.pa-item b { font-size: 14px; font-weight: 500; line-height: 1.4; }
.pa-item small { color: var(--d-muted); font-size: 12px; line-height: 1.4; }
@keyframes d-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Prose ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { position: relative; margin: 0; padding-top: 44px; margin-bottom: 12px; font-family: var(--heading); font-size: 26px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; scroll-margin-top: 64px; }
.prose h2:target { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.prose h3 { position: relative; margin: 28px 0 8px; font-family: var(--body); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; scroll-margin-top: 88px; }
.prose .anchor { position: absolute; left: -22px; bottom: 0; padding-right: 6px; color: var(--d-faint); font-weight: 400; text-decoration: none; opacity: 0; transition: opacity 140ms; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li::marker { color: var(--d-faint); }
.prose strong { font-weight: 600; }
.prose a { color: var(--d-ink); text-decoration: underline; text-decoration-color: var(--d-line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 140ms; }
.prose a:hover { text-decoration-color: var(--d-ink); }
.prose :not(pre) > code { padding: 1px 6px; border: 1px solid var(--d-line-2); border-radius: 6px; background: var(--d-soft-2); font: 500 0.82em/1.4 var(--d-mono); overflow-wrap: anywhere; }
.prose a code { color: var(--d-ink); }

/* Tables */
.tb { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--d-line); border-radius: 12px; }
.tb table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.tb th, .tb td { padding: 10px 14px; border-bottom: 1px solid var(--d-line); text-align: left; vertical-align: top; }
.tb thead th { background: var(--d-soft); color: var(--d-muted); font-size: 12px; font-weight: 600; }
.tb tbody tr:last-child > * { border-bottom: 0; }
.tb tbody th { font-weight: 500; }

/* Callouts */
.callout { display: flex; gap: 12px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.callout > div > :last-child { margin-bottom: 0; }
.callout p { margin: 0 0 8px; }
.callout-i { flex: none; margin-top: 1px; }
.c-note { border-color: #c7e8f3; background: var(--d-sky-soft); }
.c-note .callout-i { color: var(--d-sky); }
.c-tip { border-color: #cde9d9; background: var(--d-mint-soft); }
.c-tip .callout-i { color: var(--d-mint-ink); }
.c-warning { border-color: #f1dcb4; background: var(--d-warn-soft); }
.c-warning .callout-i { color: var(--d-warn-ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.prose a.card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color 160ms, box-shadow 160ms, transform 160ms; }
.prose a.card:hover { border-color: #bcd9e3; box-shadow: 0 8px 24px -16px rgba(11, 92, 117, 0.45); transform: translateY(-1px); }
.card-i { display: inline-flex; width: 34px; height: 34px; margin-bottom: 8px; align-items: center; justify-content: center; border-radius: 9px; background: var(--d-sky-soft); color: var(--d-sky); }
.card-t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.card-n { padding: 0 7px; border-radius: 999px; background: var(--d-soft-2); color: var(--d-muted); font-size: 12px; font-weight: 500; }
.card-d { color: var(--d-muted); font-size: 14px; line-height: 1.5; }

/* Steps */
.steps { margin: 8px 0 28px; padding: 0; list-style: none; counter-reset: step; }
.prose .step { position: relative; margin: 0; padding: 0 0 28px 44px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--d-line-2); border-radius: 50%; background: #fff; color: var(--d-ink); font-size: 13px; font-weight: 600; }
.step::after { content: ''; position: absolute; top: 34px; bottom: 4px; left: 14px; width: 1px; background: var(--d-line); }
.step:last-child::after { display: none; }
.prose .step h3 { margin: 2px 0 8px; }

/* ---------- Code ---------- */
.cb { margin: 0 0 20px; overflow: hidden; border: 1px solid #2f2d29; border-radius: 12px; background: var(--d-code); }
.cb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 6px 0 14px; border-bottom: 1px solid #2f2d29; background: var(--d-code-2); }
.cb-t { color: #b8b3aa; font: 500 12px/1 var(--d-sans); }
.cg-tabs { display: flex; gap: 2px; margin-left: -8px; overflow-x: auto; scrollbar-width: none; }
.cg-tabs button { height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: #a29d94; font: 500 12px/1 var(--d-sans); white-space: nowrap; cursor: pointer; }
.cg-tabs button:hover { color: #f1efe9; }
.cg-tabs button[aria-selected="true"] { background: #3a3732; color: #fff; }
.cb-copy { display: none; flex: none; width: 30px; height: 30px; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: none; color: #a29d94; cursor: pointer; }
.js .cb-copy { display: inline-flex; }
.cb-copy:hover { background: #3a3732; color: #fff; }
.cb-copy .i-done, .cb-copy.is-done .i-copy { display: none; }
.cb-copy.is-done .i-done { display: inline-flex; color: #7fd7a3; }
.cb pre.code { margin: 0; padding: 14px 16px; overflow-x: auto; background: none; color: #ece9e2; font: 13px/1.7 var(--d-mono); tab-size: 2; scrollbar-width: thin; }
.cb pre[hidden] { display: none; }
.cb code { padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; white-space: pre; }
.t-s { color: #a8dcb6; }
.t-k { color: #8fd3ef; }
.t-n, .t-b { color: #f3c98b; }
.t-c { color: #8c877f; font-style: italic; }
.t-w { color: #f0a5c1; }
.t-f { color: #c9b8f0; }

/* ---------- Endpoint ---------- */
.ep { margin: 0 0 22px; }
.ep-url { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px 6px 10px; border: 1px solid var(--d-line-2); border-radius: 12px; background: var(--d-soft); }
.ep-url .mth { font-size: 11px; line-height: 20px; padding: 0 7px; }
.ep-url code { flex: 1; min-width: 0; overflow: hidden; border: 0; background: none; font: 14px/1.4 var(--d-mono); text-overflow: ellipsis; white-space: nowrap; }
.prose .ep-url code { padding: 0; border: 0; background: none; font-size: 14px; }
.ep-base { color: var(--d-faint); }
.ep-copy { color: var(--d-muted); }
.ep-copy:hover { background: #fff; color: var(--d-ink); }
.ep-copy.is-done .i-done { color: var(--d-mint-ink); }
.ep-bd { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prose .bd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; color: var(--d-muted); font-size: 12px; font-weight: 500; line-height: 20px; text-decoration: none; }
.prose a.bd:hover { border-color: var(--d-line-2); color: var(--d-ink); }
.prose .bd code { padding: 0; border: 0; background: none; font-size: 11.5px; }
.prose .bd-read { border-color: #cde9d9; background: var(--d-mint-soft); color: var(--d-mint-ink); }
.prose .bd-write, .prose .bd-appr { border-color: #c7e8f3; background: var(--d-sky-soft); color: var(--d-sky); }
.prose .bd-destructive { border-color: #f1c9c0; background: var(--d-red-soft); color: var(--d-red-ink); }
.pf-ct { margin: -4px 0 4px; color: var(--d-faint); font: 12px var(--d-mono); }
.pf { padding: 14px 0; border-bottom: 1px solid var(--d-line); scroll-margin-top: 88px; }
.pf:last-of-type { border-bottom: 0; }
.pf-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.prose .pf-n { padding: 0; border: 0; background: none; color: var(--d-ink); font: 600 14px/1.4 var(--d-mono); }
.pf-t { color: var(--d-muted); font: 12.5px var(--d-mono); }
.pf-r { color: #b3401f; font-size: 12px; font-weight: 500; }
.pf-o { color: var(--d-faint); font-size: 12px; }
.pf-b { margin-top: 4px; color: var(--d-muted); font-size: 14px; line-height: 1.6; }
.pf-b p { margin: 0 0 4px; }
.pf-v { font-size: 13px; }
.pf-kids { margin-top: 8px; }
.pf-kids summary { display: inline-flex; padding: 3px 10px; border: 1px solid var(--d-line); border-radius: 999px; color: var(--d-muted); font-size: 12.5px; cursor: pointer; list-style: none; }
.pf-kids summary::-webkit-details-marker { display: none; }
.pf-kids[open] summary { margin-bottom: 4px; }
.pf-kids > .pf { margin-left: 4px; padding: 10px 0 10px 14px; border-bottom: 0; border-left: 1px solid var(--d-line); }
.pf-none { color: var(--d-muted); }
.ex .cb { margin: 0; }
.ex .cb pre.code { overflow: auto; }
.ex-res pre.code { max-height: 360px; }

/* Reference index */
.eps { margin: 0 0 24px; border: 1px solid var(--d-line); border-radius: 12px; overflow: hidden; }
.prose a.eps-row { display: grid; grid-template-columns: auto minmax(0, 260px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--d-line); color: var(--d-ink); text-decoration: none; transition: background 140ms; }
.prose a.eps-row:last-child { border-bottom: 0; }
.prose a.eps-row:hover { background: var(--d-soft); }
.prose .eps-row code { padding: 0; border: 0; background: none; color: var(--d-ink); font-size: 13.5px; }
.eps-row span:last-child { color: var(--d-muted); font-size: 14px; }

/* ---------- Search ---------- */
.sr { width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--d-line); border-radius: 16px; background: #fff; color: var(--d-ink); box-shadow: 0 32px 64px -24px rgba(41, 37, 30, 0.4); overflow: hidden; }
.sr[open] { display: flex; flex-direction: column; animation: d-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.sr::backdrop { background: rgba(41, 37, 30, 0.28); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sr-f { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--d-line); color: var(--d-muted); }
.sr-in { flex: 1; min-width: 0; height: 56px; border: 0; background: none; color: var(--d-ink); font: 16px var(--d-sans); outline: none; }
.sr-in::-webkit-search-cancel-button { display: none; }
.docs-app .sr-in:focus, .docs-app .sr-in:focus-visible { outline: none; box-shadow: none; }
.sr-x { padding: 2px 7px; border: 1px solid var(--d-line-2); border-radius: 6px; background: #fff; color: var(--d-muted); font: 500 11px/18px var(--d-mono); cursor: pointer; }
.sr-list { flex: 1; margin: 0; padding: 8px; overflow-y: auto; list-style: none; }
.sr-list a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 10px; text-decoration: none; }
.sr-list a[aria-selected="true"] { background: var(--d-sky-soft); }
.sr-list .sr-g { color: var(--d-faint); font-size: 12px; }
.sr-list .sr-t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.sr-list .sr-t code { font: 13.5px var(--d-mono); }
.sr-list .sr-d { overflow: hidden; color: var(--d-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sr-list mark { border-radius: 3px; background: #d4f0fa; color: inherit; }
.sr-empty { margin: 0; padding: 28px 20px; color: var(--d-muted); font-size: 14px; text-align: center; }
.sr-foot { display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--d-line); background: var(--d-soft); color: var(--d-faint); font-size: 12px; }
.sr-foot kbd { margin-right: 4px; }

@media (prefers-reduced-motion: reduce) {
  .docs-app * { animation: none !important; transition: none !important; }
}

/* ---------- Narrower screens (the help center's breakpoints) ---------- */
@media (max-width: 1080px) {
  .docs-app .nav { gap: 20px; }
  .hc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 960px) {
  .docs-app .nav { display: none; }
  .dh-search-top { display: inline-flex; margin-left: auto; }
  .docs-app .hdr .hdr-link { margin-left: 0; }
  /* One column: the page first, every docs page after it */
  .hc-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
  .hc-article, .hc-side { grid-column: 1; }
  .hc-article { max-width: none; }
  .hc-side { grid-row: 2; position: static; max-height: none; overflow: visible; padding-top: 32px; border-top: 1px solid var(--line); }
  .hc-side nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .hc-article .h1 { font-size: 44px; }
}
@media (max-width: 560px) {
  .docs-app .wrap { padding: 0 16px; }
  .docs-app .hdr-in { gap: 12px; }
  .hc-brand { gap: 10px; }
  .docs-app .brand img { height: 20px; }
  .hc-name { padding-left: 10px; font-size: 16px; }
  .docs-app .hdr .hdr-link { display: none; }
  .docs-app .hdr .btn.sm { padding: 0 12px; font-size: 13px; }
  .dh-search-top { margin-right: -4px; }
  .hc-article .h1 { font-size: 36px; }
  .dm-endpoint .hc-article .h1 { font-size: 24px; }
  .hc-answer { margin-top: 22px; padding: 18px; }
  .dh-lede { font-size: 18px; }
  .dh-cta > * { width: 100%; justify-content: center; }
  .dh-prompt { padding: 0 12px; font-size: 14px; }
  .dh-code .cg-tabs { overflow-x: auto; scrollbar-width: none; }
  .hc-answer p { font-size: 17px; }
  .hc-toc ul { columns: 1; }
  .docs-app .prose { font-size: 16px; }
  .prose h2 { padding-top: 36px; font-size: 23px; }
  .prose .anchor { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .tb table { font-size: 13px; }
  .tb th, .tb td { padding: 9px 10px; }
  .prose a.eps-row { grid-template-columns: auto minmax(0, 1fr); }
  .eps-row span:last-child { grid-column: 2; }
  .hc-related ul { grid-template-columns: minmax(0, 1fr); }
  .hc-related li:only-child:has(.pn-next) { grid-column: 1; }
  .hc-side nav { display: block; }
  .hc-help { padding: 26px 20px; }
  .hc-help h2 { font-size: 26px; }
  .hc-help-btns .btn { flex: 1 1 auto; }
  .sr { margin-top: 8px; max-height: calc(100vh - 16px); }
  .pa-menu { right: auto; left: 0; }
}
