/* ---------------------------------------------------------------------------
   Noerra documentation visuals: /docs, /developers and /agent-guide.
   Loaded after studio.css and uses its tokens (--bg, --surface, --line, --accent ...).
   Diagrams are plain HTML lists and figures with CSS connectors, so every step
   stays readable text for search, screen readers and print. Each diagram is a
   size container and switches from a row to a column when it gets narrow, so
   nothing scrolls sideways on a phone. No data URIs, no inline styles.
   --------------------------------------------------------------------------- */
body.docs-shell,body.discovery{--dv-arrow:#5d5572;--dv-node:#1c1d27;--dv-ring:#453d5a;--dv-soft:#d9c8fc14;--dv-head:clip-path}

/* One arrow shape for every connector: a 1.6px shaft with an 8px head, pointing right or down. */
.dv-cycle li:not(:last-child)::after,.dv-flow>li:not(:last-child)::after,.dv-shared li:first-child::after,
body.discovery .agent-guide .stage-rail li:not(:last-child)::after,.dv-gate-door::before,.dv-gate-door::after{
  content:'';position:absolute;background:var(--dv-arrow);pointer-events:none;
  clip-path:polygon(0 42%,calc(100% - 8px) 42%,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,calc(100% - 8px) 58%,0 58%)
}

/* ---------- Article rhythm ---------- */
body.docs-shell .docs-article .docs-topic>.dv-h,body.docs-shell .docs-article .dv-h{display:flex;align-items:center;gap:14px;margin:52px 0 20px;font-size:19px;font-weight:580;letter-spacing:-.02em;line-height:1.3;color:var(--text)}
body.docs-shell .docs-article .dv-h::after{content:'';flex:1;height:1px;background:var(--line)}
body.docs-shell .docs-article .dv-h+p{margin-top:-6px}
body.docs-shell .docs-article .docs-topic>.lead{max-width:62ch}
body.docs-shell .docs-article .topic-nav{margin-top:48px}

/* Brand art accents: wide, quiet, faded into the page. */
body.docs-shell .dv-art,.dv-art{position:relative;margin:28px 0 8px;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
.dv-art img{display:block;width:100%;height:auto;aspect-ratio:12/5;object-fit:cover}
.dv-art::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#10111600 50%,#101116b3);pointer-events:none}
.dv-art--short img{aspect-ratio:3/1}

/* Key figures: large numerals, a hairline rule, no boxes. */
.dv-figures{list-style:none;margin:32px 0;padding:0!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:22px 30px}
.dv-figures li{display:flex;flex-direction:column;gap:6px;min-width:0;padding:2px 0 2px 16px;border-left:2px solid var(--dv-ring)}
.dv-figures li:first-child{border-left-color:var(--accent)}
.dv-figures strong{font-size:28px;font-weight:560;letter-spacing:-.03em;line-height:1.1;color:var(--text);white-space:nowrap}
.dv-figures span{font-size:13px;line-height:1.55;color:var(--muted)}
.dv-figures--wide{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}

/* Definition rows replace stacks of bordered cards. */
/* Detail rows and folds are native <details>. Phones (700px and below) get closed accordions; wider screens and print
   show every row open through ::details-content, without script and without changing the element's open state. */
.dv-defs{margin:18px 0 8px;padding:0}
.dv-more>summary{list-style:none;cursor:pointer}
.dv-more>summary::-webkit-details-marker{display:none}
.dv-defs>.dv-more{border-top:1px solid var(--line)}
.dv-defs>.dv-more:last-child{border-bottom:1px solid var(--line)}
.dv-defs>.dv-more>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:50px;padding:12px 0;font-size:14.5px;font-weight:600;line-height:1.4;color:var(--text)}
.dv-more>summary::after{content:'+';flex:none;width:18px;font-size:19px;font-weight:400;line-height:1;text-align:center;color:var(--accent)}
.dv-more[open]>summary::after{content:'\2212'}
.dv-defs>.dv-more>summary code{font:600 13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);overflow-wrap:anywhere}
body.docs-shell .docs-article .dv-defs>.dv-more>p{margin:0 0 16px;font-size:14.5px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.dv-fold{margin:14px 0 18px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.dv-fold>summary{display:flex;align-items:center;gap:10px;min-height:50px;padding:12px 16px;font-size:14px;font-weight:600;color:var(--text)}
.dv-fold>summary::after{margin-left:auto}
.dv-fold>summary>span{font:600 10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.dv-fold[open]>summary{border-bottom:1px solid var(--line)}
body.docs-shell .docs-article .dv-fold>p{margin:0;padding:14px 16px 16px}
.dv-fold>.dv-bar{padding:0 16px}
.dv-fold.dv-code>.code-block{margin:0;border:0;border-radius:0 0 13px 13px}
.dv-calls{margin:16px 0 22px}
@media(min-width:701px){
  .dv-more::details-content{content-visibility:visible}
  .dv-more>summary{pointer-events:none}
  .dv-more>summary::after{content:none}
  .dv-defs>.dv-more{position:relative;padding:18px 0 18px 178px;min-height:64px}
  .dv-defs>.dv-more>summary{position:absolute;left:0;top:18px;width:150px;min-height:0;padding:0;font-size:14px;line-height:1.75}
  body.docs-shell .docs-article .dv-defs>.dv-more>p{margin:0;font-size:15px;line-height:1.75}
  .dv-calls>.dv-more{padding:13px 0 13px calc(38% + 16px);min-height:0}
  .dv-calls>.dv-more>summary{top:13px;width:38%;line-height:1.6}
  body.docs-shell .docs-article .dv-calls>.dv-more>p{font-size:14px;line-height:1.6}
  .dv-fold{margin:0;border:0;border-radius:0;background:none}
  .dv-fold>summary{display:none}
  body.docs-shell .docs-article .dv-fold>p{margin:0 0 14px;padding:0}
  .dv-fold>.dv-bar{padding:0}
  .dv-fold.dv-code>.code-block{margin:14px 0 22px;border:1px solid #2c2d39;border-radius:13px}
  .dv-fold-h>summary{display:flex;margin:52px 0 20px;padding:0;min-height:0;font-size:19px;font-weight:580;letter-spacing:-.02em}
  .dv-fold-h>summary::after{content:'';flex:1;width:auto;height:1px;margin-left:4px;background:var(--line)}
}

/* Numbered dot used by every diagram. */
.dv-dot{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid var(--dv-ring);border-radius:50%;background:var(--dv-node);color:var(--accent);font-size:13px;font-weight:620;font-variant-numeric:tabular-nums;line-height:1}
.dv-dot--live{border-color:#4f7564;background:#17231e;color:var(--green)}

/* ---------- Overview: the agent's loop ---------- */
body.docs-shell .dv-cycle-fig,.dv-cycle-fig{container-type:inline-size;margin:30px 0 8px}
.dv-cycle{list-style:none;margin:0;padding:0!important;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.dv-cycle li{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.dv-cycle li:not(:last-child)::after{top:13px;left:46px;right:-12px;height:10px}
.dv-cycle strong{font-size:15px;font-weight:600;line-height:1.3;color:var(--text)}
.dv-cycle li>span:last-child{font-size:13px;line-height:1.55;color:var(--muted)}
.dv-cycle li:nth-child(n+3) .dv-dot{border-color:#5a4f74;background:#221d2e}
.dv-cycle-return{position:relative;height:30px;margin:16px 0 0 calc((100% - 64px)*.4 + 50px);width:calc((100% - 64px)*.4 + 32px);border:1.5px dashed var(--dv-arrow);border-top:0;border-radius:0 0 18px 18px}
.dv-cycle-return::before{content:'';position:absolute;left:-6.5px;top:-9px;width:12px;height:9px;background:var(--dv-arrow);clip-path:polygon(50% 0,100% 100%,0 100%)}
.dv-cycle-fig figcaption{display:flex;align-items:center;gap:8px;margin:10px 0 0 calc((100% - 64px)*.4 + 50px);width:calc((100% - 64px)*.4 + 32px);justify-content:center;text-align:center;font-size:13px;line-height:1.5;color:var(--dim)}
.dv-cycle-fig figcaption svg{flex:none;width:16px;height:16px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@container (max-width:620px){
  .dv-cycle{grid-template-columns:1fr;gap:18px}
  .dv-cycle li{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:16px;row-gap:2px;align-items:start}
  .dv-cycle .dv-dot{grid-row:span 2}
  .dv-cycle strong{padding-top:7px}
  .dv-cycle li:not(:last-child)::after{top:44px;left:13px;right:auto;width:10px;height:calc(100% - 30px);clip-path:polygon(42% 0,58% 0,58% calc(100% - 8px),100% calc(100% - 8px),50% 100%,0 calc(100% - 8px),42% calc(100% - 8px))}
  .dv-cycle-return{display:none}
  .dv-cycle-fig figcaption{width:auto;margin:16px 0 0;justify-content:flex-start;text-align:left}
}

/* ---------- Topic index ---------- */
.dv-index{list-style:none;margin:20px 0 8px;padding:0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px}
body.docs-shell .docs-article .dv-index a{display:grid;grid-template-columns:34px minmax(0,1fr) 14px;column-gap:10px;row-gap:3px;align-items:baseline;padding:16px 0;border-top:1px solid var(--line);color:var(--text);text-decoration:none}
.dv-index-no{grid-row:span 2;font:500 12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent)}
.dv-index strong{font-size:15.5px;font-weight:600}
.dv-index a>span:last-child{grid-column:2;font-size:13.5px;line-height:1.5;color:var(--muted)}
.dv-index a::after{content:'';grid-column:3;grid-row:1;align-self:center;width:12px;height:10px;background:var(--dv-arrow);clip-path:polygon(0 42%,calc(100% - 6px) 42%,calc(100% - 6px) 0,100% 50%,calc(100% - 6px) 100%,calc(100% - 6px) 58%,0 58%);transition:transform .18s,background .18s}
body.docs-shell .docs-article .dv-index a:hover strong{color:var(--accent)}
.dv-index a:hover::after{background:var(--accent);transform:translateX(3px)}

/* ---------- Launch: shared steps, a fork into two lanes, and a merge ---------- */
body.docs-shell .dv-fork,.dv-fork{container-type:inline-size;margin:32px 0 36px}
.dv-shared{list-style:none;margin:0 auto;padding:0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;max-width:600px}
.dv-shared li{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 14px;align-items:start}
.dv-shared .dv-dot{grid-row:span 2}
.dv-shared strong{padding-top:6px;font-size:15px;font-weight:600;color:var(--text)}
.dv-shared li>span:last-child{grid-column:2;font-size:13px;line-height:1.55;color:var(--muted)}
.dv-shared li:first-child::after{top:13px;right:-42px;width:34px;height:10px}
.dv-split,.dv-merge{position:relative;margin-left:calc((100% - 44px)/4);margin-right:calc((100% - 44px)/4);height:22px;border:1.6px solid var(--dv-arrow)}
.dv-split{margin-top:46px;border-bottom:0;border-radius:16px 16px 0 0}
.dv-split::before{content:'';position:absolute;left:50%;top:-24px;width:1.6px;height:23px;background:var(--dv-arrow);transform:translateX(-50%)}
.dv-split i{position:absolute;bottom:-9px;width:12px;height:9px;background:var(--dv-arrow);clip-path:polygon(0 0,100% 0,50% 100%)}
.dv-split i:first-child{left:-7px}.dv-split i:last-child{right:-7px}
.dv-merge{border-top:0;border-radius:0 0 16px 16px}
.dv-merge::before{content:'';position:absolute;left:50%;top:100%;width:1.6px;height:22px;background:var(--dv-arrow);transform:translateX(-50%)}
.dv-merge::after{content:'';position:absolute;left:50%;top:calc(100% + 20px);width:12px;height:9px;margin-left:-6px;background:var(--dv-arrow);clip-path:polygon(0 0,100% 0,50% 100%)}
.dv-lanes{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:stretch;margin:10px 0 0}
.dv-or{align-self:center;justify-self:center;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line-strong);border-radius:50%;background:var(--bg);font-size:12px;color:var(--dim)}
.dv-lane{display:flex;flex-direction:column;min-width:0;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.dv-lane--token{border-color:#43395a;background:linear-gradient(180deg,#211c2d,var(--surface) 70%)}
.dv-lane .label{margin-bottom:8px}
body.docs-shell .docs-article .dv-lane h3{margin:0 0 18px;font-size:19px}
.dv-lane ol{list-style:none;margin:0 0 16px;padding:0!important;display:grid;gap:14px}
.dv-lane li{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:start;font-size:14px;line-height:1.5;color:var(--text)}
.dv-lane li .dv-dot{width:28px;height:28px;font-size:12px}
.dv-lane li>span:last-child{padding-top:4px}
.dv-lane li:not(:last-child)::before{content:'';position:absolute;left:13.5px;top:32px;bottom:-12px;width:1px;background:var(--line-strong)}
body.docs-shell .docs-article .dv-lane p{margin:0;font-size:13.5px;line-height:1.65}
.dv-lane-meta{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px dashed var(--line-strong);font-size:12.5px;color:var(--dim)}
.dv-lane-meta b{font-weight:600;color:var(--text)}
.dv-lane p+.dv-lane-meta{margin-top:16px}
.dv-fork-end{display:flex;align-items:center;gap:14px;max-width:470px;margin:40px auto 0;padding:14px 20px 14px 14px;border:1px solid #35463f;border-radius:999px;background:#151c19}
.dv-fork-end strong{display:block;font-size:15px;color:var(--text)}
.dv-fork-end span:last-child{font-size:13px;line-height:1.5;color:var(--muted)}
body.docs-shell .docs-article .dv-lane .dv-later,.dv-later{display:flex;align-items:center;gap:10px;margin:14px 0 0;font-size:13px;color:var(--dim)}
.dv-later::before{content:'';flex:none;width:28px;border-top:1.6px dashed var(--dv-arrow)}
@container (max-width:600px){
  .dv-shared{grid-template-columns:1fr;gap:22px}
  .dv-shared li:first-child::after{top:44px;left:13px;right:auto;width:10px;height:calc(100% - 30px);clip-path:polygon(42% 0,58% 0,58% calc(100% - 8px),100% calc(100% - 8px),50% 100%,0 calc(100% - 8px),42% calc(100% - 8px))}
  .dv-split,.dv-merge{display:none}
  .dv-lanes{grid-template-columns:1fr;margin-top:26px}
  .dv-or{margin:12px auto}
  .dv-lane{padding:18px}
  .dv-fork-end{margin-top:20px;border-radius:18px}
}

/* ---------- Flows: small nodes joined by arrows (brain fund, remixes, SDK steps) ---------- */
body.docs-shell .dv-flow-fig,.dv-flow-fig{container-type:inline-size;margin:24px 0 30px}
.dv-flow{list-style:none;margin:0;padding:0!important;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:28px}
.dv-flow>li{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.dv-flow>li:not(:last-child)::after{top:50%;right:-25px;width:22px;height:10px;margin-top:-5px}
.dv-flow small{font-size:10.5px;font-weight:650;letter-spacing:.13em;text-transform:uppercase;color:var(--accent)}
.dv-flow strong{font-size:14.5px;font-weight:600;line-height:1.35;color:var(--text)}
.dv-flow strong code{font:600 13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);overflow-wrap:anywhere}
.dv-flow span{font-size:13px;line-height:1.5;color:var(--muted)}
.dv-flow .dv-tag{margin-top:auto}
.dv-flow>li.dv-end{border-color:#35463f;background:#151c19}
.dv-flow>li.dv-end small{color:var(--green)}
.dv-flow-fig figcaption{margin:12px 0 0;font-size:13px;line-height:1.55;color:var(--dim)}
.dv-tag{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;margin-top:8px;padding:3px 9px;border-radius:999px;background:var(--dv-soft);font-size:12px;font-weight:560;line-height:1.4;color:var(--accent)}
@container (max-width:560px){
  .dv-flow{grid-auto-flow:row;gap:24px}
  .dv-flow>li:not(:last-child)::after{top:auto;right:auto;bottom:-21px;left:24px;width:10px;height:18px;margin:0;clip-path:polygon(42% 0,58% 0,58% calc(100% - 8px),100% calc(100% - 8px),50% 100%,0 calc(100% - 8px),42% calc(100% - 8px))}
  .dv-flow .dv-tag{margin-top:6px}
}

/* ---------- Token: launch fee by block ---------- */
body.docs-shell .dv-curve-fig,.dv-curve-fig{margin:24px 0 34px}
.dv-curve{display:grid;grid-template-columns:repeat(11,minmax(0,1fr)) minmax(0,3fr);grid-template-rows:auto 168px auto;column-gap:5px;align-items:end}
.dv-curve-band{grid-row:1;grid-column:1/11;align-self:end;margin:0 0 30px;padding:6px 0 0;border-top:1.6px solid var(--amber);font-size:12px;line-height:1.4;color:var(--amber)}
.dv-curve>b{grid-row:2;position:relative;display:block;min-height:6px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,var(--accent),#8f78cf)}
.dv-curve>b:nth-of-type(1){height:100%}.dv-curve>b:nth-of-type(2){height:90.8%}.dv-curve>b:nth-of-type(3){height:81.6%}.dv-curve>b:nth-of-type(4){height:72.4%}
.dv-curve>b:nth-of-type(5){height:63.2%}.dv-curve>b:nth-of-type(6){height:54%}.dv-curve>b:nth-of-type(7){height:44.8%}.dv-curve>b:nth-of-type(8){height:35.6%}
.dv-curve>b:nth-of-type(9){height:26.4%}.dv-curve>b:nth-of-type(10){height:17.2%}.dv-curve>b:nth-of-type(11){height:8%;background:#a7d6be}
.dv-curve>b.dv-curve-flat{grid-column:12;height:8%;border-radius:5px;background:repeating-linear-gradient(90deg,#a7d6be 0 10px,#a7d6be99 10px 14px)}
.dv-curve-val{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);font-size:12px;font-weight:650;color:var(--text);white-space:nowrap}
.dv-curve-axis{grid-row:3;margin-top:10px;font-size:11.5px;line-height:1.35;color:var(--dim);white-space:nowrap}
.dv-curve-axis.a0{grid-column:1}.dv-curve-axis.a5{grid-column:6;justify-self:center}.dv-curve-axis.a10{grid-column:11;justify-self:center}.dv-curve-axis.after{grid-column:12;white-space:normal;color:var(--green)}
.dv-curve-fig figcaption{margin:16px 0 0;font-size:13px;line-height:1.55;color:var(--dim)}

/* ---------- Stacked bars with legends (fee splits, recovery reserve) ---------- */
body.docs-shell .dv-bar,.dv-bar{container-type:inline-size;margin:22px 0 30px}
.dv-bar>figcaption{display:flex;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:14px;font-weight:600;color:var(--text)}
.dv-bar>figcaption small{font-size:12.5px;font-weight:500;color:var(--dim)}
.dv-bar-track{display:flex;gap:3px;height:42px;border-radius:12px;overflow:hidden}
.dv-bar-track>span{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;font-size:12.5px;font-weight:650;white-space:nowrap;color:#18131f}
.dv-bar-track .fee-treasury,.dv-bar-track .fee-burn,.dv-bar-track .dv-c-ink{color:var(--text)}
.dv-bar-track .fee-burn,.dv-legend i.fee-burn{box-shadow:inset 0 0 0 1px #7b7493}
.dv-w-5{flex:5}.dv-w-8{flex:8}.dv-w-10{flex:10}.dv-w-15{flex:15}.dv-w-20{flex:20}.dv-w-25{flex:25}.dv-w-40{flex:40}.dv-w-70{flex:70}.dv-w-75{flex:75}.dv-w-92{flex:92}
.dv-bar-track .dv-w-5,.dv-bar-track .dv-w-8{font-size:0}
.dv-c-amber{background:var(--amber)}
.dv-c-ink{background:#6f6a85}
.dv-legend{list-style:none;margin:14px 0 0;padding:0!important;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:0 28px}
.dv-legend li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.dv-legend i{flex:none;width:10px;height:10px;border-radius:3px}
.dv-legend b{margin-left:auto;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}

/* ---------- Funding: where the budget comes from and what it pays ---------- */
body.docs-shell .dv-money,.dv-money{container-type:inline-size;margin:26px 0 34px}
.dv-money-grid{display:grid;grid-template-columns:minmax(0,1fr) 48px minmax(0,.9fr) 48px minmax(0,1fr);grid-template-rows:auto auto;align-items:center}
.dv-money-head{grid-row:1;margin-bottom:10px;font-size:11px;font-weight:650;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.dv-money-head.c1{grid-column:1}.dv-money-head.c3{grid-column:3;text-align:center}.dv-money-head.c5{grid-column:5}
.dv-money ul{grid-row:2;list-style:none;margin:0;padding:0!important;display:grid;grid-template-rows:repeat(3,1fr);gap:10px;align-self:stretch}
.dv-money ul.in{grid-column:1}.dv-money ul.out{grid-column:5}
.dv-money li{display:flex;flex-direction:column;justify-content:center;min-height:62px;padding:10px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.dv-money li strong{font-size:14px;font-weight:600;color:var(--text);line-height:1.35}
.dv-money li span{font-size:12.5px;line-height:1.45;color:var(--muted)}
.dv-money ul.out li{border-color:#3a3448}
.dv-money svg{grid-row:2;align-self:stretch;width:100%;height:100%;fill:none;stroke:var(--dv-arrow);stroke-width:1.6;overflow:visible}
.dv-money svg.s2{grid-column:2}.dv-money svg.s4{grid-column:4}
.dv-money-hub{grid-row:2;grid-column:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:1;max-width:190px;width:100%;justify-self:center;padding:16px;border:1px solid #5a4f74;border-radius:50%;background:radial-gradient(circle at 50% 35%,#2b2440,#191a22 70%);text-align:center}
.dv-money-hub strong{font-size:15px;font-weight:600;line-height:1.3;color:var(--text)}
.dv-money-hub span{font-size:12px;line-height:1.45;color:var(--muted)}
@container (max-width:560px){
  .dv-money-grid{grid-template-columns:1fr;grid-template-rows:none}
  .dv-money-head,.dv-money ul,.dv-money-hub{grid-row:auto;grid-column:1!important}
  .dv-money-head.c3{display:none}
  .dv-money-head.c5{margin-top:6px}
  .dv-money svg{display:none}
  .dv-money ul{grid-template-rows:none}
  .dv-money li{min-height:0}
  .dv-money-hub{position:relative;aspect-ratio:auto;max-width:none;margin:36px 0;border-radius:16px}
  .dv-money-hub::before,.dv-money-hub::after{content:'';position:absolute;left:50%;width:10px;height:24px;margin-left:-5px;background:var(--dv-arrow);clip-path:polygon(42% 0,58% 0,58% calc(100% - 8px),100% calc(100% - 8px),50% 100%,0 calc(100% - 8px),42% calc(100% - 8px))}
  .dv-money-hub::before{top:-31px}.dv-money-hub::after{bottom:-31px}
}

/* ---------- Funding: computer tiers ---------- */
body.docs-shell .dv-tiers,.dv-tiers{margin:22px 0 32px}
.dv-tiers ul{list-style:none;margin:0;padding:0!important;display:grid;gap:10px}
.dv-tiers li{display:grid;grid-template-columns:76px minmax(0,1fr) 46px;align-items:center;gap:14px;font-size:13.5px;color:var(--muted)}
.dv-tiers li>b{display:block;height:14px;min-width:8px;border-radius:7px;background:linear-gradient(90deg,#6f5fa3,var(--accent))}
.dv-tiers li>strong{text-align:right;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.dv-t1{width:7.5%}.dv-t2{width:15%}.dv-t3{width:24.9%}.dv-t4{width:50.3%}.dv-t5{width:100%}
.dv-tiers figcaption{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:12.5px;line-height:1.5;color:var(--dim)}

/* ---------- Agent work: capabilities with line icons ---------- */
.dv-features{list-style:none;margin:30px 0 8px;padding:0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 40px}
.dv-features li{display:grid;grid-template-columns:42px minmax(0,1fr);gap:4px 16px;align-content:start}
.dv-features li:last-child:nth-child(odd){grid-column:1/-1}
.dv-features svg{grid-row:span 2;width:42px;height:42px;padding:10px;border-radius:12px;background:var(--dv-soft);stroke:var(--accent);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dv-features strong{padding-top:2px;font-size:15.5px;font-weight:600;color:var(--text)}
body.docs-shell .docs-article .dv-features p{grid-column:2;margin:0;font-size:14px;line-height:1.7}
body.docs-shell .dv-steps-line,.dv-steps-line{container-type:inline-size;margin:28px 0 8px}
.dv-steps-line ol{list-style:none;margin:0;padding:0!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.dv-steps-line li{position:relative;padding:0 14px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.dv-steps-line li::before{content:'';display:block;height:2px;margin:0 0 14px;border-radius:2px;background:linear-gradient(90deg,var(--accent),#d9c8fc40)}
.dv-steps-line li strong{display:block;margin-bottom:4px;font-size:14px;font-weight:600;color:var(--text)}
.dv-steps-line li small{display:block;margin-bottom:6px;font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent)}
@container (max-width:560px){
  .dv-steps-line ol{grid-template-columns:1fr 1fr;gap:22px 0}
}

/* ---------- Privacy: private side, the publishing gate, public side ---------- */
body.docs-shell .dv-gate,.dv-gate{container-type:inline-size;margin:28px 0 30px}
.dv-gate-grid{display:grid;grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr);align-items:center}
.dv-gate-side{min-width:0;padding:20px;border-radius:18px}
.dv-gate-side .label{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.dv-gate-side .label svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dv-gate-side ul{list-style:none;margin:0;padding:0!important;display:grid;gap:8px}
.dv-gate-side li{display:flex;gap:10px;font-size:14px;line-height:1.5;color:var(--text)}
.dv-gate-side li::before{content:'';flex:none;width:6px;height:6px;margin-top:8px;border-radius:50%;background:currentColor;opacity:.6}
.dv-gate-private{border:1.5px dashed var(--line-strong);background:#14151b}
.dv-gate-private .label{color:var(--muted)}
.dv-gate-private li{color:var(--muted)}
.dv-gate-public{border:1px solid #4a3f62;background:linear-gradient(160deg,#241e33,var(--surface) 75%)}
.dv-gate-door{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;margin:0 16px;padding:14px 8px;border:1px solid var(--line-strong);border-radius:14px;background:var(--bg);text-align:center}
.dv-gate-door strong{font-size:13.5px;color:var(--text)}
.dv-gate-door span{font-size:12px;line-height:1.45;color:var(--muted)}
.dv-gate-door::before,.dv-gate-door::after{top:50%;width:16px;height:10px;margin-top:-5px}
.dv-gate-door::before{left:-17px}.dv-gate-door::after{right:-17px}
@container (max-width:600px){
  .dv-gate-grid{grid-template-columns:1fr}
  .dv-gate-door{margin:26px 0}
  .dv-gate-door::before,.dv-gate-door::after{left:50%;right:auto;width:10px;height:20px;margin:0 0 0 -5px;clip-path:polygon(42% 0,58% 0,58% calc(100% - 8px),100% calc(100% - 8px),50% 100%,0 calc(100% - 8px),42% calc(100% - 8px))}
  .dv-gate-door::before{top:-23px}.dv-gate-door::after{top:auto;bottom:-23px}
}

/* ---------- Recovery: two paths as vertical rails ---------- */
body.docs-shell .dv-paths,.dv-paths{container-type:inline-size;margin:28px 0 30px}
.dv-paths-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px}
.dv-path{min-width:0;padding:22px 22px 8px;border-radius:18px;border:1px solid var(--line);background:var(--surface)}
.dv-path--dry{background:#1a1813;border-color:#3d3628}
.dv-path--dry .label{color:var(--amber)}
.dv-path .label{margin-bottom:16px}
.dv-rail{list-style:none;margin:0;padding:0!important}
.dv-rail li{position:relative;padding:0 0 18px 30px}
.dv-rail li::before{content:'';position:absolute;left:0;top:5px;width:12px;height:12px;border:2px solid var(--accent);border-radius:50%;background:var(--bg)}
.dv-rail li:not(:last-child)::after{content:'';position:absolute;left:6px;top:21px;bottom:2px;width:1.6px;background:var(--dv-arrow)}
.dv-path--dry .dv-rail li::before{border-color:var(--amber)}
.dv-rail li.dv-ok::before{border-color:var(--green);background:var(--green)}
.dv-rail strong{display:block;font-size:14.5px;font-weight:600;line-height:1.4;color:var(--text)}
.dv-rail span{display:block;font-size:13px;line-height:1.55;color:var(--muted)}
@container (max-width:600px){.dv-paths-grid{grid-template-columns:1fr}}

/* ---------- Developers ---------- */
.dv-chips{list-style:none;margin:6px 0 22px;padding:0!important;display:flex;flex-wrap:wrap;gap:8px}
.dv-chips li{padding:4px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent)}
body.docs-shell .dv-arch,.dv-arch{container-type:inline-size;margin:28px 0 30px}
.dv-arch-app{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:280px;margin:0 auto;padding:14px 20px;border:1px solid #4a3f62;border-radius:14px;background:linear-gradient(160deg,#241e33,var(--surface) 80%);text-align:center}
.dv-arch-app strong{font-size:15px;color:var(--text)}
.dv-arch-app span{font-size:12.5px;color:var(--muted)}
.dv-arch .dv-split{margin-top:24px}
.dv-arch-cols{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);margin-top:12px}
.dv-arch-cols>div{display:flex;flex-direction:column;gap:6px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.dv-arch-cols>div:last-child{grid-column:3}
.dv-arch-cols code{align-self:flex-start;padding:2px 8px;border-radius:6px;background:var(--dv-soft);font:12.5px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);overflow-wrap:anywhere}
.dv-arch-cols strong{font-size:15px;color:var(--text)}
.dv-arch-cols span{font-size:13px;line-height:1.55;color:var(--muted)}
@container (max-width:560px){
  .dv-arch .dv-split{display:none}
  .dv-arch-cols{grid-template-columns:1fr;gap:12px;margin-top:20px}
  .dv-arch-cols>div:last-child{grid-column:1}
}
.dv-api{width:100%;margin:18px 0 22px;border-collapse:collapse;font-size:14px}
.dv-api th{padding:0 0 8px;border-bottom:1px solid var(--line-strong);text-align:left;font-size:11px;font-weight:650;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.dv-api td{padding:12px 16px 12px 0;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.6;color:var(--muted)}
.dv-api td:first-child{width:38%}
.dv-api td code{font:12.5px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);overflow-wrap:anywhere}
@media(max-width:560px){.dv-api td:first-child{width:46%}}
.dv-launch{list-style:none;margin:24px 0 28px;padding:0!important;counter-reset:dv-step}
.dv-launch li{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 16px;padding:0 0 22px}
.dv-launch li .dv-dot{grid-row:span 2}
.dv-launch li:not(:last-child)::after{content:'';position:absolute;left:17.2px;top:40px;bottom:4px;width:1.6px;background:var(--dv-arrow)}
.dv-launch li code{align-self:center;justify-self:start;padding:2px 8px;border-radius:6px;background:var(--dv-soft);font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--accent);overflow-wrap:anywhere}
.dv-launch li span:last-child{grid-column:2;font-size:14px;line-height:1.6;color:var(--muted)}
.dv-launch li.dv-end .dv-dot{border-color:#4f7564;background:#17231e;color:var(--green)}
.dv-launch li.dv-end strong{align-self:center;font-size:14.5px;color:var(--text)}

/* Code blocks: a calmer frame and light syntax colour. */
body.docs-shell .code-block{border-color:#2c2d39;background:#14151c;box-shadow:0 1px 0 #ffffff06 inset}
body.docs-shell .code-head{padding-left:14px;background:#181922}
body.docs-shell .code-head>span{display:inline-flex;align-items:center;gap:8px;font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
body.docs-shell .code-head>span::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--accent);opacity:.75}
body.docs-shell .code-block pre{padding:20px 22px;color:#e6e0f0}
.tk-k{color:#c4a8ff}.tk-s{color:#a7d6be}.tk-c{color:#8a8799;font-style:italic}.tk-f{color:#ecd09a}

/* ---------- Agent guide: a connected stage rail and a spec strip ---------- */
@media(min-width:901px){
  body.discovery .agent-guide .stage-rail ol{gap:30px}
  body.discovery .agent-guide .stage-rail li{position:relative}
  body.discovery .agent-guide .stage-rail li:not(:last-child)::after{top:50%;right:-27px;width:24px;height:10px;margin-top:-5px}
}
body.discovery .agent-guide .guide-facts{grid-template-columns:repeat(3,minmax(0,1fr));margin:28px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
body.discovery .agent-guide .guide-facts>div{flex-direction:column-reverse;justify-content:flex-end;align-items:flex-start;gap:4px;padding:16px 16px 16px 18px;border-left:1px solid var(--line)}
body.discovery .agent-guide .guide-facts>div:first-child{padding-left:0;border-left:0}
body.discovery .agent-guide .guide-facts>div::before,body.discovery .agent-guide .guide-facts dt::after{content:none}
body.discovery .agent-guide .guide-facts dt{font-size:12px;line-height:1.4;color:var(--dim);white-space:normal}
body.discovery .agent-guide .guide-facts dd{font-size:15.5px;font-weight:560;line-height:1.35}
body.discovery .agent-guide .guide-facts>div[aria-current=true] dd{color:var(--accent)}
body.discovery .agent-guide img.guide-art{border:1px solid var(--line);box-shadow:0 30px 80px -40px #8f78cf55}
@media(max-width:600px){
  body.discovery .agent-guide .guide-facts{grid-template-columns:1fr}
  body.discovery .agent-guide .guide-facts>div{flex-direction:row;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 0;border-left:0;border-top:1px solid var(--line)}
  body.discovery .agent-guide .guide-facts>div:first-child{border-top:0}
  body.discovery .agent-guide .guide-facts dd{text-align:right}
}

/* Narrow screens: tighter type, no wide art crops. */
@media(max-width:600px){
  .dv-art img,.dv-art--short img{aspect-ratio:3/1}
  .dv-figures strong{font-size:24px}
  .dv-index{grid-template-columns:1fr 1fr;gap:0 18px}
  .dv-features{grid-template-columns:1fr;gap:24px}
  body.docs-shell .docs-article .docs-topic>.dv-h,body.docs-shell .docs-article .dv-h{margin-top:42px}
  .dv-curve{grid-template-rows:auto 132px auto;column-gap:3px}
  .dv-curve-axis{font-size:10.5px}
  .dv-tiers li{grid-template-columns:62px minmax(0,1fr) 42px;gap:10px}
}

@media print{
  .dv-art{display:none!important}
  .dv-cycle-return,.dv-split,.dv-merge{display:none!important}
  .dv-figures,.dv-flow,.dv-cycle,.dv-lanes,.dv-money-grid,.dv-gate-grid,.dv-paths-grid,.dv-arch-cols{break-inside:avoid}
  .dv-bar-track>span,.dv-curve>b,.dv-tiers li>b,.dv-legend i{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Segment names inside a bar give way to the bare share when the bar is narrow. */
.dv-bar-track small{font:inherit;white-space:pre}
@container (max-width:560px){
  .dv-bar-track small{display:none}
  .dv-arch-app{position:relative}
  .dv-arch-app::after{content:'';position:absolute;left:50%;bottom:-29px;width:10px;height:22px;margin-left:-5px;background:var(--dv-arrow);clip-path:polygon(42% 0,58% 0,58% calc(100% - 8px),100% calc(100% - 8px),50% 100%,0 calc(100% - 8px),42% calc(100% - 8px))}
  .dv-arch-cols{margin-top:36px}
}
/* The overview's topic index is navigation (excluded from topic search text), not a previous/next bar. */
body.docs-shell .docs-article .topic-nav.dv-topic-index{display:block;margin:0;padding:0;border:0;font-size:inherit}
body.docs-shell .docs-article .dv-topic-index a{min-height:0}
body.docs-shell .docs-article .dv-topic-index a::before{content:none}

/* ---------- Phones: a compact topic menu and tighter rhythm ---------- */
.dv-jump{display:none}
@media(max-width:900px){
  body.docs-shell .docs-topics-drawer{margin:0 0 18px;padding:0;border:0}
  body.docs-shell .docs-topics-drawer>summary{display:flex;justify-content:space-between;width:100%;min-height:46px;padding:0 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--text)}
  body.docs-shell .docs-topics-drawer[open]>summary{border-radius:12px 12px 0 0}
  body.docs-shell .docs-topics-drawer[open]>nav,body.docs-shell .docs-topics-drawer[open]>.docs-search{padding-left:16px;padding-right:16px}
  body.docs-shell .docs-topics-drawer[open]{border:1px solid var(--line-strong);border-radius:12px;padding-bottom:8px}
  body.docs-shell .docs-topics-drawer[open]>summary{border:0;border-bottom:1px solid var(--line)}
  body.docs-shell .docs-article .breadcrumb{display:none}
  body.docs-shell .docs-article .topic-nav.dv-jump{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px;padding:0;border:0}
  body.docs-shell .docs-article .dv-jump a{min-height:36px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--text);font-size:13px}
  body.docs-shell .docs-article .dv-jump a::before,body.docs-shell .docs-article .dv-jump a::after{content:none}
}
@media(max-width:700px){
  body.docs-shell .docs-article .docs-topic{padding-bottom:20px;margin-bottom:28px}
  body.docs-shell .docs-article .lead{font-size:16px;line-height:1.65}
  body.docs-shell .docs-article p{line-height:1.7}
  body.docs-shell .docs-article .docs-topic>.dv-h,body.docs-shell .docs-article .dv-h{margin:30px 0 14px;font-size:17.5px}
  body.docs-shell .docs-article .topic-nav{margin-top:26px}
  body.docs-shell .docs-article .article-meta{margin-bottom:16px}
  body.docs-shell .dv-art{margin:18px 0 4px;border-radius:14px}
  body.docs-shell .dv-figures{margin:22px 0;gap:16px 20px}
  .dv-figures strong{font-size:22px}
  .dv-figures span{font-size:12.5px;line-height:1.45}
  body.docs-shell .dv-cycle-fig{margin-top:18px}
  .dv-cycle{gap:12px}
  .dv-cycle li>span:last-child{font-size:12.5px;line-height:1.45}
  .dv-legend{grid-template-columns:1fr 1fr;gap:0 16px}
  .dv-legend li{padding:7px 0;font-size:12.5px;gap:8px}
  body.docs-shell .dv-bar{margin:16px 0 22px}
  body.docs-shell .dv-flow-fig{margin:16px 0 22px}
  body.docs-shell .dv-curve-fig{margin:16px 0 22px}
  .dv-flow>li{padding:10px 12px 11px}
  .dv-flow span{font-size:12.5px}
  .dv-features{gap:18px}
  .dv-features li{grid-template-columns:34px minmax(0,1fr);column-gap:12px}
  .dv-features svg{width:34px;height:34px;padding:7px;border-radius:10px}
  body.docs-shell .docs-article .dv-features p{font-size:13.5px;line-height:1.6}
  .dv-index a{grid-template-columns:24px minmax(0,1fr) 12px;padding:12px 0}
  .dv-index a>span:last-child{display:none}
  .dv-index strong{font-size:14px}
  body.docs-shell .docs-article .dv-index a{padding:12px 0}
  .dv-lane{padding:16px}
  body.docs-shell .docs-article .dv-lane h3{margin-bottom:12px;font-size:17px}
  body.docs-shell .dv-fork{margin:22px 0 24px}
  body.docs-shell .dv-gate,body.docs-shell .dv-paths,body.docs-shell .dv-money,body.docs-shell .dv-arch{margin:20px 0 24px}
  .dv-gate-side{padding:16px}
  .dv-path{padding:16px 16px 4px}
  .dv-rail li{padding-bottom:12px}
  .dv-money li{padding:8px 12px}
  body.docs-shell .docs-article .doc-note{margin:12px 0;font-size:13.5px}
  .dv-launch li{padding-bottom:16px}
  .dv-arch-cols>div{padding:14px}
  body.docs-shell .code-block pre{padding:14px 16px;font-size:12.5px}
  /* On the non-paged developer page the previous/next bars repeat the jump menu; the last one (the SDK reference) stays. */
  body.docs-shell main.docs-article:not([data-topics=paged]) .docs-topic:not(:last-of-type)>.topic-nav{display:none}
  body.docs-shell main.docs-article:not([data-topics=paged]) .docs-topic>.topic-nav.dv-jump{display:flex}
  body.docs-shell .docs-article .docs-topic>h2{font-size:24px}
}
/* Short flows stay in a row on phones and drop the sentence under each step; the same words are in the text beside them. */
@container (max-width:560px){
  .dv-flow.dv-flow--brief{grid-auto-flow:column;gap:22px}
  .dv-flow.dv-flow--brief>li:not(:last-child)::after{top:50%;bottom:auto;left:auto;right:-19px;width:16px;height:10px;margin-top:-5px;clip-path:polygon(0 42%,calc(100% - 8px) 42%,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,calc(100% - 8px) 58%,0 58%)}
  .dv-flow.dv-flow--brief>li>span{display:none}
  .dv-flow.dv-flow--brief strong{font-size:13px}
  .dv-flow.dv-flow--brief strong code{font-size:11.5px}
}
@media print{
  .dv-more::details-content{content-visibility:visible!important}
  .dv-more>summary::after{content:none!important}
  .dv-fold>summary{display:none!important}
}
.dv-fold>.github-link{margin:0 0 6px 16px}
@media(min-width:701px){.dv-fold>.github-link{margin:0}}
@container (max-width:560px){
  .dv-flow.dv-flow--terse>li>span{display:none}
  .dv-flow.dv-flow--terse{gap:20px}
  .dv-flow.dv-flow--terse>li:not(:last-child)::after{bottom:-18px;height:16px}
  /* The SDK map on phones: the two entry points side by side; their sentences repeat the sections below. */
  .dv-arch-app,.dv-arch-app::after{display:none}
  .dv-arch-cols{grid-template-columns:1fr 1fr;gap:10px;margin-top:0}
  .dv-arch-cols>div{padding:12px;gap:4px}
  .dv-arch-cols>div:last-child{grid-column:2}
  .dv-arch-cols span{display:none}
  .dv-arch-cols strong{font-size:13.5px}
  .dv-arch-cols code{font-size:11px;padding:2px 6px}
}
@media(max-width:700px){
  body.docs-shell main.docs-article{padding-bottom:28px}
  body.docs-shell .docs-article .docs-topic{margin-bottom:24px}
  body.docs-shell .docs-article .docs-topic>h2{font-size:22px;margin-bottom:10px}
  body.docs-shell .docs-article .docs-topic>.eyebrow{margin-bottom:8px}
  .dv-launch li{grid-template-columns:28px minmax(0,1fr);column-gap:12px;padding-bottom:12px}
  .dv-launch li .dv-dot{width:28px;height:28px;font-size:12px}
  .dv-launch li:not(:last-child)::after{left:13.2px;top:32px}
  .dv-launch li code{font-size:12px}
  .dv-launch li span:last-child{font-size:13px;line-height:1.5}
  .dv-chips{gap:6px;margin-bottom:16px}
  .dv-chips li{padding:2px 8px;font-size:11.5px}
  .dv-defs>.dv-more>summary,.dv-fold>summary{min-height:46px;padding-top:10px;padding-bottom:10px}
  body.docs-shell .docs-article .callout{margin:14px 0 16px;padding:13px 14px}
  body.docs-shell .docs-article .dv-jump a{min-height:34px}
}
.dv-calls>.dv-more>summary>span{min-width:0}
body.docs-shell .docs-article .callout span a{display:inline;min-height:0;margin:0}
@media(max-width:700px){
  body.docs-shell .docs-article .docs-topic{padding-bottom:16px;margin-bottom:20px}
  body.docs-shell .docs-article .dv-jump{gap:6px}
  body.docs-shell .docs-article .dv-jump a{min-height:34px;padding:0 10px;font-size:12.5px}
  body.docs-shell .docs-article .docs-topic>p{margin-bottom:12px}
  .dv-arch .dv-h,body.docs-shell .docs-article .dv-h{margin-top:26px}
}
@media(max-width:700px){
  /* The meta line repeats the lead; the SDK map's two cards name themselves. */
  body.docs-shell .docs-article .article-meta,body.docs-shell .docs-article .dv-arch-title{display:none}
  body.docs-shell .dv-arch{margin-top:18px}
  body.docs-shell .site-footer{gap:6px;padding-top:14px;padding-bottom:20px}
  body.docs-shell .site-footer nav{display:flex;flex-wrap:wrap;gap:0 16px}
  body.docs-shell .site-footer nav a{min-height:36px;display:inline-flex;align-items:center}
}
@media(max-width:700px){
  body.docs-shell .docs-article .docs-topic>p{font-size:14.5px;line-height:1.65}
  body.docs-shell .docs-article .lead{font-size:15.5px;line-height:1.6}
  body.docs-shell .docs-article .callout span{font-size:13.5px;line-height:1.55}
}
@media(max-width:700px){body.docs-shell .docs-article .docs-topic>.dv-h.dv-arch-title{display:none}}

/* ---------- Legal pages: /terms, /privacy and /risk (20 Oct 2026 drafts) ----------
   Same shell as the docs, one long article with numbered sections and a subtle "last updated" line. */
body.legal-shell .docs-article .legal>.eyebrow{margin-bottom:12px}
body.legal-shell .docs-article .legal>.lead{max-width:62ch}
body.legal-shell .docs-article .legal-updated{margin:-4px 0 22px;font-size:12.5px;letter-spacing:.02em;color:var(--dim)}
body.legal-shell .docs-article .legal-section{padding:0 0 28px;margin:0 0 28px;border-bottom:1px solid var(--line);scroll-margin-top:calc(var(--header) + 20px)}
body.legal-shell .docs-article .legal-section:last-of-type{border-bottom:0;margin-bottom:0}
body.legal-shell .docs-article .legal-section>h2{margin:0 0 12px;font-size:21px;letter-spacing:-.02em;line-height:1.25}
body.legal-shell .docs-article .legal-section ul{margin:0 0 14px;padding-left:20px}
body.legal-shell .docs-article .legal-section li{margin:0 0 8px;font-size:15px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}
body.legal-shell .docs-article .legal-section li strong{color:var(--text);font-weight:600}
body.legal-shell .docs-article .legal-section p{overflow-wrap:anywhere}
body.legal-shell .docs-article .legal-draft-note{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line);font-size:13px;line-height:1.6;color:var(--dim)}
body.legal-shell .docs-article .doc-note{margin:0 0 28px}
@media(max-width:700px){
  body.legal-shell .docs-article .legal-section{padding-bottom:18px;margin-bottom:18px}
  body.legal-shell .docs-article .legal-section>h2{font-size:19px}
  body.legal-shell .docs-article .legal-section li{font-size:14.5px;line-height:1.65}
  body.legal-shell .docs-article .legal-updated{margin-bottom:16px}
}
/* 22 Oct 2026: the essentials are accordions at every width (closed until opened). */
@media(min-width:701px){
  .dv-defs>.dv-more:not([open])::details-content{content-visibility:hidden}
  .dv-defs>.dv-more{padding:0;min-height:0}
  .dv-defs>.dv-more>summary{position:static;width:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:12px 0;font-size:15px;pointer-events:auto}
  .dv-defs>.dv-more>summary::after{content:'+'}
  .dv-defs>.dv-more[open]>summary::after{content:'\2212'}
  body.docs-shell .docs-article .dv-defs>.dv-more>p{margin:0 0 16px}
}
