/* Builder docs. Scoped to .pg-docs. Three columns: nav, article, on this page. */
.pg-docs .dc-wrap { max-width: 1200px; margin: 0 auto; padding: 36px 24px 24px; display: grid; grid-template-columns: 208px minmax(0, 1fr) 184px; gap: 44px; align-items: start; }

/* left nav */
.pg-docs .dc-side { position: sticky; top: 92px; max-height: calc(100dvh - 110px); overflow-y: auto; display: grid; gap: 22px; padding-bottom: 12px; scrollbar-width: thin; }
.pg-docs .dc-grp { display: grid; gap: 2px; }
.pg-docs .dc-grp b { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px; }
.pg-docs .dc-grp a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; }
.pg-docs .dc-grp a:hover { background: var(--raised); color: var(--text); }
.pg-docs .dc-grp a.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.pg-docs .dc-side-fine { margin: 0; padding: 12px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.pg-docs .dc-mnav { display: none; }

/* right mini toc */
.pg-docs .dc-toc { position: sticky; top: 92px; max-height: calc(100dvh - 110px); overflow-y: auto; display: grid; gap: 1px; font-size: 13px; scrollbar-width: thin; }
.pg-docs .dc-toc b { font-size: 13px; font-weight: 600; padding-bottom: 10px; }
.pg-docs .dc-toc a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); color: var(--muted); cursor: pointer; line-height: 1.35; transition: color 0.15s, border-color 0.15s; overflow-wrap: anywhere; }
.pg-docs .dc-toc a.sub { padding-left: 22px; font-family: var(--f-mono); font-size: 12px; }
.pg-docs .dc-toc a:hover { color: var(--text); }
.pg-docs .dc-toc a.on { color: var(--text); border-left-color: var(--accent); }

/* article */
.pg-docs .dc-art { min-width: 0; max-width: 760px; }
.pg-docs .dc-crumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.pg-docs .dc-crumb a { cursor: pointer; }
.pg-docs .dc-crumb a:hover { color: var(--text); }
.pg-docs .dc-art h1 { font: 900 clamp(44px, 5.4vw, 72px)/0.88 var(--f-display); text-transform: uppercase; letter-spacing: -0.008em; margin: 14px 0 16px; text-wrap: balance; }
.pg-docs .dc-lede { font-size: 17px; line-height: 1.55; color: var(--text-2); margin: 0 0 30px; max-width: 60ch; }
.pg-docs .dc-body { font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.pg-docs .dc-body h2 { font: 900 32px/0.95 var(--f-display); text-transform: uppercase; letter-spacing: 0; color: var(--text); margin: 52px 0 14px; scroll-margin-top: 90px; }
.pg-docs .dc-body h3 { font: 650 18px/1.3 var(--f-ui); letter-spacing: -0.01em; color: var(--text); margin: 32px 0 8px; scroll-margin-top: 90px; }
.pg-docs .dc-body h3 code { font: 600 17px/1.3 var(--f-mono); color: var(--text); }
.pg-docs .dc-body p { margin: 0 0 14px; max-width: 68ch; }
.pg-docs .dc-body b { color: var(--text); font-weight: 600; }
.pg-docs .dc-a { color: var(--accent-text, var(--accent)); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.pg-docs .dc-a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-docs .dc-ic { font: 500 0.86em/1 var(--f-mono); color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
.pg-docs .dc-ul, .pg-docs .dc-ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 7px; }
.pg-docs .dc-ul li::marker { color: var(--muted); }
.pg-docs .dc-ol li::marker { font-family: var(--f-mono); color: var(--accent-text, var(--accent)); font-size: 0.9em; }
.pg-docs .dc-pill { font: 600 11px/1 var(--f-mono); letter-spacing: 0.03em; color: var(--accent-text, var(--accent)); background: var(--accent-soft); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }

/* code blocks */
.pg-docs .dc-code { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 16px; overflow: hidden; min-width: 0; }
.pg-docs .dc-code-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); background: var(--raised); min-height: 40px; }
.pg-docs .dc-code-t { font: 500 12px/1 var(--f-mono); color: var(--muted); }
.pg-docs .dc-copy { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--f-mono); color: var(--text-2); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); transition: color 0.15s, border-color 0.15s, transform 0.12s var(--ease); flex: none; }
.pg-docs .dc-copy:hover { color: var(--text); border-color: var(--text-2); }
.pg-docs .dc-copy:active { transform: scale(0.96); }
.pg-docs .dc-copy.ok { color: var(--accent-text, var(--accent)); border-color: var(--accent-line); }
.pg-docs .dc-code pre { margin: 0; padding: 14px 16px 16px; font: 13px/1.65 var(--f-mono); color: var(--text-2); overflow-x: auto; white-space: pre; tab-size: 2; }
.pg-docs .dc-code pre code { font: inherit; }
.pg-docs .dc-langs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: -6px; }
.pg-docs .dc-langs button { font: 500 12.5px/1 var(--f-mono); color: var(--muted); padding: 8px 10px; border-radius: 8px; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.pg-docs .dc-langs button:hover { color: var(--text); }
.pg-docs .dc-langs button.on { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.pg-docs .dc-t-s { color: var(--up); }
.pg-docs .dc-t-k { color: var(--accent-text, var(--accent)); }
.pg-docs .dc-t-c { color: var(--muted); font-style: italic; }
.pg-docs .dc-t-w { color: var(--text); font-weight: 600; }
.pg-docs .dc-t-n { color: var(--text); }
.pg-docs .dc-t-p { color: var(--text); }
.pg-docs .dc-add { display: inline-block; min-width: 100%; color: var(--up); background: var(--up-soft); }
.pg-docs .dc-del { display: inline-block; min-width: 100%; color: var(--down); background: var(--down-soft); }
.pg-docs .dc-ctx { color: var(--muted); }
.pg-docs .dc-rr { display: grid; gap: 0; }

/* callouts */
.pg-docs .dc-call { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; }
.pg-docs .dc-call .ic { margin-top: 3px; color: var(--muted); }
.pg-docs .dc-call.warn { border-color: var(--accent-line); background: var(--accent-soft); }
.pg-docs .dc-call.warn .ic { color: var(--accent-text, var(--accent)); }
.pg-docs .dc-call > div { color: var(--text-2); }

/* tables */
.pg-docs .dc-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 18px; background: var(--bg); }
.pg-docs .dc-tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.pg-docs .dc-tbl th { text-align: left; font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pg-docs .dc-tbl td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.pg-docs .dc-tbl tr:first-child td { border-top: 0; }
.pg-docs .dc-tbl .r { text-align: right; }
.pg-docs .dc-params { min-width: 600px; }
.pg-docs .dc-params td:first-child, .pg-docs .dc-params td:nth-child(2), .pg-docs .dc-params td:nth-child(3) { white-space: nowrap; }
.pg-docs .dc-pn { font: 600 13px/1.4 var(--f-mono); color: var(--accent-text, var(--accent)); }
.pg-docs .dc-ty { font-size: 12.5px; color: var(--muted); }
.pg-docs .dc-board { min-width: 520px; }
.pg-docs .dc-board td { vertical-align: middle; white-space: nowrap; }
.pg-docs .dc-who { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--text); }
.pg-docs .dc-who:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* overview: two paths */
.pg-docs .dc-paths { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 14px; margin-bottom: 10px; }
.pg-docs .dc-path { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pg-docs .dc-path.lead { background: linear-gradient(150deg, var(--accent-soft), transparent 58%), var(--surface); border-color: var(--accent-line); }
.pg-docs .dc-path-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-docs .dc-path-top .ic { color: var(--accent-text, var(--accent)); }
.pg-docs .dc-path-top b { font: 900 24px/1 var(--f-display); text-transform: uppercase; color: var(--text); }
.pg-docs .dc-path p { margin: 0; font-size: 14.5px; }
.pg-docs .dc-mini { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font: 12.5px/1.6 var(--f-mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-docs .dc-path small { font-size: 12.5px; margin-top: -4px; }
.pg-docs .dc-path-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; font-size: 14px; }

/* definition list */
.pg-docs .dc-dl { margin: 0 0 16px; display: grid; }
.pg-docs .dc-dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.pg-docs .dc-dl > div:last-child { border-bottom: 1px solid var(--line); }
.pg-docs .dc-dl dt { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; color: var(--text); }
.pg-docs .dc-dl dt .ic { color: var(--accent-text, var(--accent)); margin-top: 4px; }
.pg-docs .dc-dl dd { margin: 0; }
.pg-docs .dc-dl.compact > div { grid-template-columns: 170px minmax(0, 1fr); padding: 11px 0; }

/* overview: link list */
.pg-docs .dc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.pg-docs .dc-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pg-docs .dc-link:hover { border-color: var(--line-strong); background: var(--surface); }
.pg-docs .dc-link-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--text-2); }
.pg-docs .dc-link b { display: block; color: var(--text); font-size: 14.5px; line-height: 1.3; }
.pg-docs .dc-link small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.pg-docs .dc-link > .ic { color: var(--muted); }

/* quickstart steps */
.pg-docs .dc-steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: st; }
.pg-docs .dc-steps > li { counter-increment: st; position: relative; padding: 0 0 12px 46px; }
.pg-docs .dc-steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font: 600 13px/1 var(--f-mono); background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); }
.pg-docs .dc-steps > li::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.pg-docs .dc-steps > li:last-child::after { display: none; }
.pg-docs .dc-steps > li > h2 { margin: 2px 0 10px; }

/* prompts */
.pg-docs .dc-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 8px; }
.pg-docs .dc-check > div { padding: 14px 0 12px; border-top: 1px solid var(--line); }
.pg-docs .dc-check b { display: block; margin-bottom: 4px; }
.pg-docs .dc-check p { margin: 0; font-size: 14.5px; }
.pg-docs .dc-ex { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.pg-docs .dc-ex-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pg-docs .dc-ex-h > a { flex: none; }
.pg-docs .dc-ex-t { flex: 1; min-width: 150px; line-height: 1.35; }
.pg-docs .dc-ex-t b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.pg-docs .dc-ex-t b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-docs .dc-ex-t small { color: var(--muted); font-size: 13px; }
.pg-docs .dc-ex-s { display: flex; gap: 18px; }
.pg-docs .dc-ex-s span { display: grid; gap: 3px; text-align: right; }
.pg-docs .dc-ex-s small { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pg-docs .dc-ex-s b { font: 600 15px/1.1 var(--f-mono); color: var(--text); }
.pg-docs .dc-pr { padding: 12px 16px 12px 10px; background: var(--bg); border-bottom: 1px solid var(--line); font: 13.5px/1.6 var(--f-mono); color: var(--text); }
.pg-docs .dc-pl { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 3px 0; }
.pg-docs .dc-pl > span:last-child { overflow-wrap: anywhere; }
.pg-docs .dc-mk { width: 20px; height: 20px; margin-top: 1px; border-radius: 999px; display: grid; place-items: center; font: 700 11px/1 var(--f-mono); background: var(--accent-soft); color: var(--accent-text, var(--accent)); border: 1px solid var(--accent-line); }
.pg-docs .dc-mk.off { background: none; border: 0; }
.pg-docs .dc-notes { list-style: none; margin: 0; padding: 14px 16px 6px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.pg-docs .dc-notes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.pg-docs .dc-ex-f { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 16px 14px; font-size: 14px; }
.pg-docs .dc-guard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.pg-docs .dc-guard > div { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px 10px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pg-docs .dc-guard .ic { color: var(--accent-text, var(--accent)); margin-top: 3px; }
.pg-docs .dc-guard p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.5; }

/* mcp tool list */
.pg-docs .dc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 12px; }
.pg-docs .dc-sub { display: block; font-size: 14px; margin-bottom: 6px; }
.pg-docs .dc-tool { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: background 0.15s; border: 1px solid transparent; }
.pg-docs .dc-tool:hover { background: var(--surface); border-color: var(--line); }
.pg-docs .dc-tool code { font: 600 13.5px/1.4 var(--f-mono); color: var(--accent-text, var(--accent)); }
.pg-docs .dc-tool span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.pg-docs .dc-toolsec { padding-top: 2px; }
.pg-docs .dc-toolsec + .dc-toolsec { border-top: 1px solid var(--line); margin-top: 28px; }

/* rest endpoints */
.pg-docs .dc-m { display: inline-block; min-width: 54px; text-align: center; font: 700 11px/1 var(--f-mono); letter-spacing: 0.04em; padding: 5px 7px; border-radius: 6px; flex: none; }
.pg-docs .dc-m.get { border: 1px solid var(--line-strong); color: var(--text-2); }
.pg-docs .dc-m.post { background: var(--accent); color: var(--on-accent, var(--accent-ink)); }
.pg-docs .dc-m.patch { border: 1px solid var(--accent-line); color: var(--accent-text, var(--accent)); }
.pg-docs .dc-m.delete { background: var(--raised); color: var(--muted); border: 1px solid var(--line); }
.pg-docs .dc-ep { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; min-width: 0; }
.pg-docs .dc-ep code { font: 500 13.5px/1.4 var(--f-mono); color: var(--text); overflow-wrap: anywhere; }
.pg-docs .dc-eps { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.pg-docs .dc-eprow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.pg-docs .dc-eprow:first-child { border-top: 0; }
.pg-docs .dc-eprow .dc-ep { margin: 0; }
.pg-docs .dc-eprow > span { color: var(--muted); }

/* trading */
.pg-docs .dc-yn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.pg-docs .dc-yn > div { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.pg-docs .dc-yn > div:first-child { border-color: var(--accent-line); }
.pg-docs .dc-yn b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pg-docs .dc-yn > div:first-child b .ic { color: var(--accent-text, var(--accent)); }
.pg-docs .dc-yn > div:last-child b .ic { color: var(--muted); }
.pg-docs .dc-yn ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.pg-docs .dc-yn li::marker { color: var(--muted); }

/* scoring */
.pg-docs .dc-calc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: 4px 0 18px; overflow: hidden; }
.pg-docs .dc-calc > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pg-docs .dc-calc > div b { font: 600 14.5px/1.3 var(--f-mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.pg-docs .dc-calc > div.sum { background: var(--raised); }
.pg-docs .dc-calc > div.sum span { color: var(--text); font-weight: 600; }
.pg-docs .dc-calc > div.sum b.up { color: var(--up); }
.pg-docs .dc-calc > div.sum b.down { color: var(--down); }
.pg-docs .dc-calc > .dc-calc-h { border-top: 0; align-items: center; justify-content: flex-start; gap: 10px; }
.pg-docs .dc-calc-h b { font: 600 15px/1.2 var(--f-ui) !important; text-align: left !important; flex: 1; }

/* tokens */
.pg-docs .dc-curves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.pg-docs .dc-curve { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.15s; }
.pg-docs .dc-curve:hover { border-color: var(--line-strong); }
.pg-docs .dc-curve .ln span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.pg-docs .dc-receipt { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); padding: 14px; margin: 4px 0 18px; }
.pg-docs .dc-receipt-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 14px; }
.pg-docs .dc-receipt-h b { color: var(--text); }
.pg-docs .dc-receipt .card-trade { margin-top: 12px; }

/* coming soon */
.pg-docs .dc-soon { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-accent, var(--accent-ink)); background: var(--accent); padding: 4px 6px 3px; border-radius: 3px; vertical-align: middle; white-space: nowrap; }
.pg-docs .dc-grp a .dc-soon { margin-left: 8px; font-size: 10px; padding: 3px 5px 2px; }
.pg-docs .dc-link b .dc-soon { margin-left: 4px; }
.pg-docs .dc-soon-row { margin: -4px 0 14px; }
.pg-docs .dc-soon-row .dc-soon { font-size: 13px; padding: 6px 9px 5px; }
.pg-docs .dc-haz { height: 10px; background: var(--hazard); border-radius: 2px; margin: 8px 0 20px; opacity: 0.9; }
.pg-docs .dc-body > .dc-haz:last-child { margin: 28px 0 0; }
.pg-docs .dc-body .dc-path-go { margin: 6px 0 0; }

/* prev / next */
.pg-docs .dc-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 56px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.pg-docs .dc-prevnext a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; min-width: 0; }
.pg-docs .dc-prevnext a:hover { border-color: var(--accent-line); background: var(--surface); }
.pg-docs .dc-prevnext a.next { text-align: right; justify-items: end; }
.pg-docs .dc-prevnext small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.pg-docs .dc-prevnext .prev small .ic { transform: scaleX(-1); }
.pg-docs .dc-prevnext b { font-size: 16px; color: var(--text); }

/* responsive */
@media (max-width: 1140px) {
  .pg-docs .dc-wrap { grid-template-columns: 200px minmax(0, 1fr); gap: 36px; }
  .pg-docs .dc-toc { display: none; }
}
@media (max-width: 860px) {
  .pg-docs .dc-wrap { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 16px; gap: 0; }
  .pg-docs .dc-side { display: none; }
  .pg-docs .dc-mnav { display: block; position: relative; margin-bottom: 18px; }
  .pg-docs .dc-mnav select { appearance: none; -webkit-appearance: none; padding-right: 40px; font-weight: 600; background: var(--surface); cursor: pointer; }
  .pg-docs .dc-mnav > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
  .pg-docs .dc-art { max-width: none; }
  .pg-docs .dc-paths, .pg-docs .dc-links, .pg-docs .dc-check, .pg-docs .dc-guard, .pg-docs .dc-tools, .pg-docs .dc-yn, .pg-docs .dc-curves { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pg-docs .dc-art h1 { font-size: 44px; }
  .pg-docs .dc-lede { font-size: 16px; }
  .pg-docs .dc-body { font-size: 15px; }
  .pg-docs .dc-body h2 { font-size: 28px; margin-top: 40px; }
  .pg-docs .dc-dl > div, .pg-docs .dc-dl.compact > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pg-docs .dc-eprow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pg-docs .dc-ex-s { width: 100%; justify-content: space-between; padding-top: 4px; }
  .pg-docs .dc-ex-s span { text-align: left; }
  .pg-docs .dc-steps > li { padding-left: 0; }
  .pg-docs .dc-steps > li::before { position: static; display: inline-grid; margin-bottom: 8px; }
  .pg-docs .dc-steps > li::after { display: none; }
  .pg-docs .dc-code pre { font-size: 12.5px; padding: 12px 14px 14px; }
  .pg-docs .dc-prevnext { grid-template-columns: minmax(0, 1fr); }
  .pg-docs .dc-prevnext a.next { order: -1; }
}
.pg-docs .dc-calc > div b.up { color: var(--up); }
.pg-docs .dc-calc > div b.down { color: var(--down); }
.pg-docs .dc-tbl .dc-ic { white-space: nowrap; overflow-wrap: normal; }
.pg-docs .dc-ic { line-height: 1.7; }
