/* PRPZ How it works — one interactive, read-only guide.
 * Static HTML is emitted for search engines; the page controller only swaps
 * the visible chapter. No balances, wallets, signatures or transfers here. */
html[data-theme] body.prpz-guide main.terminal-root{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;
 min-height:calc(100dvh - 60px)!important;overflow:visible!important;
 gap:0!important;padding:0 clamp(18px,3.6vw,56px)!important;
 background:var(--pd-bg,var(--theme-bg))!important;
}
html[data-theme] body.prpz-guide .terminal-root>:is(
 .instrument-strip,.venue-strip,.trading-grid,#account,#platform,#swapPage,
 #legalPage,.feed-warning,.rw-invitation){display:none!important}
html[data-theme] body.prpz-guide #howItWorksPage{
 display:block!important;order:0!important;flex:1 0 auto!important;align-self:center!important;
 width:100%!important;max-width:1190px!important;min-width:0!important;
 margin:0 auto!important;padding:0 0 28px!important;
 color:var(--pd-ink,var(--theme-text))!important;
}
html[data-theme] body.prpz-guide #howItWorksPage[hidden]{display:none!important}
html[data-theme] body.prpz-guide .site-footer{
 display:flex!important;order:1!important;align-self:center!important;
 width:100%!important;max-width:1190px!important;min-width:0!important;
 margin:0 auto!important;min-height:50px!important;
 border:0!important;border-top:1px solid var(--pd-line,var(--theme-border))!important;
 background:transparent!important;
}
.gh {
  --gh-surface:var(--pd-panel,var(--theme-surface));
  --gh-ink:var(--pd-ink,var(--theme-text));
  --gh-muted:var(--pd-muted,var(--theme-muted));
  --gh-line:var(--pd-line,var(--theme-border));
  --gh-soft:var(--pd-elevated,var(--theme-surface-2));
  --gh-orange:var(--theme-orange,#ff5a1f);
  --gh-teal:var(--theme-teal,#00cdbb);
  width:100%; min-width:0; color:var(--gh-ink); font-family:var(--prpz-font,'Satoshi',system-ui);
}
.gh *, .gh *::before, .gh *::after {box-sizing:border-box}
.gh [hidden] {display:none!important}
.gh :is(a, select, summary):focus-visible {outline:2px solid var(--gh-orange)!important;outline-offset:3px}
.gh-hero {padding:clamp(25px,4vw,55px) 0 clamp(20px,2.8vw,36px);border-bottom:1px solid var(--gh-line)}
.gh-hero h1,.gh h2,.gh h3,.gh p {margin:0;color:inherit}
.gh-hero h1 {font-size:clamp(2.25rem,4.5vw,4rem);line-height:1.06;letter-spacing:-.055em}
.gh .gh-hero p {margin-top:.7rem;color:var(--gh-muted);font-size:1.06rem;line-height:1.5}
.gh-book {display:grid;grid-template-columns:minmax(155px,.27fr) minmax(0,1fr);gap:clamp(22px,4vw,58px);padding:clamp(20px,3vw,38px) 0}
.gh-index {align-self:start;display:grid;gap:4px;position:sticky;top:1.25rem}
.gh .gh-index a {display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 15px;color:var(--gh-muted);border:1px solid transparent;border-radius:10px;text-decoration:none;font-size:1rem;font-weight:650;line-height:1.3}
.gh-index a::before {content:'';display:block;width:6px;height:6px;flex:none;border-radius:50%;border:1px solid currentColor}
.gh .gh-index a:hover {color:var(--gh-ink);background:var(--gh-soft)}
.gh .gh-index a[aria-current] {color:var(--gh-ink);border-color:var(--gh-line);background:var(--gh-surface)}
.gh .gh-index a[aria-current]::before {background:var(--gh-orange);border-color:var(--gh-orange)}
.gh-paper,.gh-static {min-width:0;padding:clamp(22px,3.2vw,44px);border:1px solid var(--gh-line);border-radius:20px;background:var(--gh-surface)}
.gh h2 {font-size:clamp(1.65rem,2.65vw,2.45rem);line-height:1.1;letter-spacing:-.045em;scroll-margin-block-start:80px}
.gh .gh-intro p,.gh-static>p {margin-top:.65rem;color:var(--gh-muted);max-width:64ch;font-size:1rem;line-height:1.5}
.gh-controls {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:14px;margin-top:22px}
.gh-controls label {min-width:0;font-size:.875rem;font-weight:650;line-height:1.4}
.gh-input {position:relative;display:block;margin-top:6px}
.gh-input img {position:absolute;top:50%;left:12px;transform:translateY(-50%);pointer-events:none;object-fit:contain}
.gh-input::after {content:'';position:absolute;right:16px;top:calc(50% - 5px);width:8px;height:8px;border:solid var(--gh-muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
.gh .gh-input select {width:100%;height:46px;padding:0 36px 0 13px;appearance:none;border:1px solid var(--gh-line);border-radius:9px;color:var(--gh-ink);background:var(--gh-soft);font:inherit;cursor:pointer}
.gh .gh-input img+select {padding-left:44px}
.gh-guide-steps {counter-reset:guide-step;list-style:none;margin:24px 0 0;padding:0}
.gh-guide-step {counter-increment:guide-step;position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:15px;padding:16px 0;border-top:1px solid var(--gh-line)}
.gh-guide-step::before {content:counter(guide-step);display:grid;place-items:center;width:30px;height:30px;margin-top:1px;border-radius:50%;background:var(--gh-soft);border:1px solid var(--gh-line);font:650 .86rem/1 var(--prpz-mono,monospace);color:var(--gh-ink)}
.gh h3 {font-size:1.065rem;line-height:1.4;letter-spacing:-.015em}
.gh .gh-guide-step p,.gh .gh-help p {margin-top:4px;max-width:67ch;font-size:1rem;line-height:1.5;color:var(--gh-muted)}
.gh-result {display:flex;align-items:baseline;gap:11px;margin:10px 0 0!important;padding:13px 16px;border-inline-start:3px solid var(--gh-teal);border-radius:0 8px 8px 0;background:var(--gh-soft);font-size:1rem;line-height:1.5}
.gh-result span {flex:none;font-weight:750}
.gh-asset-note {margin-top:12px!important;font-size:.9rem;line-height:1.45;color:var(--gh-muted)!important}
.gh-help {margin-top:14px;border-bottom:1px solid var(--gh-line)}
.gh-help summary,.gh-static summary {padding:12px 2px;cursor:pointer;font-size:.96rem;font-weight:650}
.gh .gh-help p {margin:0 0 14px}
.gh-end {display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:20px}
.gh-end a {font-size:.95rem;font-weight:650;line-height:1.45;color:var(--gh-ink);text-underline-offset:4px}
.gh .gh-button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;background:var(--gh-orange);border-radius:9px;text-decoration:none;color:#111!important}
.gh-static {margin:16px 0}
.gh-static details>h3 {margin-top:18px}
.gh-sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px) {
  .gh-hero {padding:20px 0 16px}
  .gh-book {grid-template-columns:minmax(0,1fr);gap:14px;padding:14px 0 24px}
  .gh-index {position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;background:var(--gh-soft);border:1px solid var(--gh-line);border-radius:12px}
  .gh .gh-index a {min-width:0;min-height:44px;padding:5px 4px;justify-content:center;text-align:center;overflow-wrap:anywhere;font-size:.92rem}
  .gh-index a::before {display:none}
  .gh .gh-index a[aria-current] {box-shadow:inset 0 -2px var(--gh-orange)}
  .gh-paper,.gh-static {padding:clamp(16px,4vw,25px);border-radius:14px}
  .gh-guide-step {gap:10px;padding:14px 0}
  .gh-controls {gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .gh-controls:not(:has(#ghAssetWrap:not([hidden]))) {grid-template-columns:minmax(0,1fr)}
  .gh-guide-steps {margin-top:18px}
}
@media(max-width:430px) {
  .gh-controls {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px) {
  .gh .gh-index a {font-size:.86rem}
}

/* Read-only route maps. Same design tokens as the guide, no remote imagery. */
.gh-diagram{margin:20px 0 0;padding:16px 18px;border:1px solid var(--gh-line);border-radius:14px;background:var(--gh-soft);min-width:0}
.gh-route+.gh-route{margin-top:14px;padding-top:14px;border-top:1px solid var(--gh-line)}
.gh .gh-route-label{font-size:.72rem;line-height:1.35;letter-spacing:.095em;text-transform:uppercase;font-weight:750;color:var(--gh-muted);margin-bottom:12px}
.gh-route-nodes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;list-style:none;margin:0;padding:0}
.gh-route-node{position:relative;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.gh-route-node:not(:last-child)::after{content:'';position:absolute;top:19px;left:52px;right:-17px;height:1px;background:var(--gh-line)}
.gh-route-node:not(:last-child)::before{content:'';position:absolute;top:16px;right:-17px;width:7px;height:7px;border-top:1px solid var(--gh-muted);border-right:1px solid var(--gh-muted);transform:rotate(45deg)}
.gh-route-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid var(--gh-line);border-radius:10px;background:var(--gh-surface);color:var(--gh-muted)}
.gh-route-icon svg{width:21px;height:21px}
.gh-route-node[data-kind="bridge"] .gh-route-icon{color:var(--gh-orange)}
.gh-route-node[data-kind="trade"] .gh-route-icon{color:var(--gh-teal)}
.gh-route-copy{display:grid;gap:3px;min-width:0}
.gh-route-copy strong{font-size:.89rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.gh-route-copy small{font-size:.78rem;line-height:1.35;color:var(--gh-muted);overflow-wrap:anywhere}
@media(max-width:560px){
 .gh-diagram{padding:13px 14px;margin-top:16px}
 .gh-route-nodes{grid-template-columns:minmax(0,1fr);gap:15px}
 .gh-route-node{flex-direction:row;align-items:center;gap:11px;min-height:38px}
 .gh-route-node:not(:last-child)::after{top:39px;bottom:-14px;left:19px;right:auto;width:1px;height:auto}
 .gh-route-node:not(:last-child)::before{top:auto;bottom:-13px;left:16px;right:auto;transform:rotate(135deg)}
 .gh-route-copy strong{font-size:.88rem}
}

/* Editorial finish: a quiet, technical product handbook rather than a dashboard. */
.gh-hero{position:relative;padding-top:clamp(26px,3.5vw,48px)}
.gh-hero::before{content:"PRPZ / PRODUCT GUIDE";display:block;margin-bottom:12px;color:var(--gh-muted);font:700 .72rem/1.3 var(--prpz-mono,monospace);letter-spacing:.13em}
.gh-hero::after{content:"";position:absolute;bottom:-1px;left:0;width:68px;height:2px;background:linear-gradient(90deg,var(--gh-orange),var(--gh-teal))}
.gh-paper{position:relative;border-radius:16px}
.gh-intro{min-width:0}
.gh .gh-intro h2{font-size:clamp(1.5rem,2.6vw,2.3rem);text-wrap:balance}
.gh .gh-intro p{line-height:1.6}
.gh-diagram{background:linear-gradient(145deg,var(--gh-soft),var(--gh-surface));padding:18px 20px}
.gh-route-label{font-family:var(--prpz-mono,monospace)}
.gh-route-node:not(:last-child)::after{background:linear-gradient(90deg,var(--gh-line),var(--gh-muted))}
.gh-route-icon{border-radius:11px}
.gh-route-copy{gap:4px}
.gh-route-copy strong{font-weight:700}
.gh-guide-step{grid-template-columns:34px minmax(0,1fr);padding:18px 0}
.gh-guide-step::before{font-variant-numeric:tabular-nums;border-radius:8px}
.gh-result{border-inline-start-width:2px}
@media(min-width:761px){
 .gh-index{counter-reset:chapter;gap:3px;top:24px}
 .gh-index::before{content:"CONTENTS";padding:0 12px 12px;color:var(--gh-muted);font:700 .7rem/1.3 var(--prpz-mono,monospace);letter-spacing:.13em}
 .gh .gh-index a{counter-increment:chapter;position:relative;border-color:transparent;border-radius:7px;min-height:44px;padding:10px 12px;gap:11px}
 .gh-index a::before{content:counter(chapter,decimal-leading-zero);width:22px;height:auto;border:0;border-radius:0;background:none!important;color:var(--gh-muted);font:600 .72rem/1.4 var(--prpz-mono,monospace)}
 .gh .gh-index a[aria-current]{border-color:var(--gh-line)}
 .gh .gh-index a[aria-current]::before{color:var(--gh-orange)}
 .gh .gh-index a[aria-current]::after{content:"";position:absolute;right:0;top:12px;bottom:12px;width:2px;border-radius:2px;background:var(--gh-orange)}
}
@media(max-width:560px){
 .gh-hero::before{margin-bottom:8px;font-size:.65rem}
 .gh-diagram{padding:14px}
 .gh-route-node:not(:last-child)::after{background:linear-gradient(var(--gh-line),var(--gh-muted))}
 .gh-guide-step{grid-template-columns:30px minmax(0,1fr);padding:14px 0}
}
