/* pSTABLES research: shared editorial and tool styling. */
body[data-ps-section="research"] {
  --bg:#070f1d;--bg1:#0d1a2c;--bg2:#0d1a2c;--bg3:#122237;
  --panel:#0d1a2c;--panel2:#122237;--line:#263c51;--edge:#263c51;
  --border:#263c51;--border2:#3d6b80;--cyan:#56d8e8;--t:#56d8e8;
  --green:#6ee7bd;--gn:#6ee7bd;--mint:#6ee7bd;--mint-dim:#173a3d;
  --v:#56d8e8;--v2:#378caa;--pk:#6ee7bd;--violet:#a4c1df;
  --text:#e2edf5;--tx:#e2edf5;--ink:#e2edf5;--text-dim:#9eb2c6;
  --muted:#9eb2c6;--dim:#9eb2c6;--faint:#8ba2b8;
  --ui:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --sans:var(--ui);--display:var(--ui);
  --mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  margin:0;padding:0;background:#070f1d;color:var(--text);
  font-family:var(--ui);font-size:15px;line-height:1.7;
}
body[data-ps-section="research"] :where(section,[id]) {scroll-margin-top:calc(var(--ps-header-height,72px) + 20px)}
body[data-ps-section="research"] :where(pre,.table-wrap,.codebox) {max-width:100%;overflow:auto;overscroll-behavior-x:contain}
body[data-ps-section="research"] :where(main,.main,.layout,.wrap,.container,section,.panel,.card) {min-width:0}
body[data-ps-section="research"] :where(a,code) {overflow-wrap:anywhere}
body[data-ps-section="research"] :where(button,input,select,summary,a):focus-visible {outline:2px solid #6ee7bd;outline-offset:4px}
body[data-ps-section="research"]>.topbar,
body[data-ps-section="research"]>.site-header {position:relative;top:auto;z-index:2;height:auto;min-height:52px;padding:10px 28px;background:#0a1524;border-color:#263c51}
body[data-ps-section="research"]>.topbar>.brand,
body[data-ps-section="research"]>.topbar .topbar-inner>.brand,
body[data-ps-section="research"]>.site-header>.site-logo {display:none}
body[data-ps-section="research"]>.topbar .topbar-inner {max-width:1280px;padding:0;min-height:32px;width:100%;justify-content:space-between;flex-wrap:wrap}
body[data-ps-section="research"]>.topbar .topmeta {flex-wrap:wrap;gap:14px}
.ps-research-back {display:inline-flex;align-items:center;gap:8px;color:#9eb2c6!important;font:12px/1.4 var(--ui)!important;text-decoration:none!important;white-space:nowrap}
.ps-research-back:hover {color:#6ee7bd!important}
body[data-ps-section="research"] .sidebar {top:calc(var(--ps-header-height,72px) + 22px);max-height:calc(100vh - var(--ps-header-height,72px) - 44px);max-height:calc(100dvh - var(--ps-header-height,72px) - 44px);overflow-y:auto}
body[data-ps-section="research"] .layout {max-width:1440px;grid-template-columns:190px minmax(0,1fr);gap:32px;padding:32px 28px 64px}
body[data-ps-section="research"] .hero h1 {font-size:clamp(30px,4.2vw,48px);letter-spacing:-.045em}
body[data-ps-section="research"] .hero {padding-top:4px}
body[data-ps-section="research"] .nav a,
body[data-ps-section="research"] .navlinks a {font-size:12px}
body[data-ps-section="research"] :where(.tool,.btn,.nav-btn) {border-color:#2c455b;background:#112237;border-radius:6px;color:#dceaf4;transition:background .15s,border-color .15s}
body[data-ps-section="research"] :where(.tool,.btn,.nav-btn):hover {background:#173348;border-color:#56d8e8}
body[data-ps-section="research"] .progress {top:var(--ps-header-height,72px);z-index:40}
body[data-ps-report="peg"] .layout {max-width:1240px;gap:38px}
body[data-ps-report="peg"] .hero h1 {font-size:clamp(35px,5vw,54px)}
body[data-ps-report="peg"] .dek {font-size:17px}
body[data-ps-report="governance"] .metrics {background:#0d1a2c}
body[data-ps-report="governance"] .metric {padding:17px}
body[data-ps-report="governance"] .hero {grid-template-columns:minmax(0,1fr) 210px}
body[data-ps-report="governance"] .protocol-body {padding:20px}
body[data-ps-report="btc"]::before {display:none}
body[data-ps-report="btc"]>.site-header {justify-content:space-between}
body[data-ps-report="btc"] .site-nav {flex-wrap:wrap}
body[data-ps-report="btc"]>.hero {padding:32px 24px 28px;text-align:left;max-width:1240px;margin:auto;background:transparent}
body[data-ps-report="btc"]>.hero::after {display:none}
body[data-ps-report="btc"] .hero-title {font-family:var(--ui);font-size:clamp(30px,4vw,46px);letter-spacing:-.035em}
body[data-ps-report="btc"] .hero-sub {font-size:12px;letter-spacing:.025em;line-height:1.7}
body[data-ps-report="btc"] .hero-stats {justify-content:flex-start;gap:10px}
body[data-ps-report="btc"] .stat {padding:12px 16px;background:#0d1a2c;border-color:#263c51;text-align:left;flex:1;min-width:140px}
body[data-ps-report="btc"] .stat-val {font-size:21px}
body[data-ps-report="btc"] .container {max-width:1240px;padding:28px 24px 60px}
body[data-ps-report="btc"] .card {padding:20px 22px;background:#0d1a2c;border-color:#263c51}
body[data-ps-report="btc"] .section-title {font-family:var(--ui);font-size:20px;text-transform:none;letter-spacing:-.015em}
body[data-ps-report="btc"] .section {margin-bottom:38px}
body[data-ps-report="btc"] :where(.data-table,.tx-table,table) {font-size:13px}
body[data-ps-report="coin-tracer"]>.wrap {max-width:1440px;margin:0 auto;padding:28px}
body[data-ps-report="coin-tracer"] .wrap>h1 {font:600 29px/1.2 var(--ui);text-transform:none;letter-spacing:-.03em;text-shadow:none;color:#e2edf5;margin:12px 0 8px}
body[data-ps-report="coin-tracer"] .sub {font:13px/1.7 var(--ui);max-width:760px;color:#9eb2c6}
body[data-ps-report="coin-tracer"] .controls {grid-template-columns:minmax(200px,1.3fr) minmax(155px,.8fr) minmax(230px,1.8fr) 100px auto;gap:14px;padding:18px;background:#0d1a2c;align-items:end}
body[data-ps-report="coin-tracer"] .field {min-width:0}
body[data-ps-report="coin-tracer"] .field label {font:11px/1.4 var(--mono);letter-spacing:.05em}
body[data-ps-report="coin-tracer"] .dir-toggle {min-height:40px}
body[data-ps-report="coin-tracer"] .dir-toggle button {padding:9px 10px;font:12px/1.3 var(--ui);letter-spacing:0;flex:1}
body[data-ps-report="coin-tracer"] input[type=text] {background:#091421;min-height:40px;font-size:13px}
body[data-ps-report="coin-tracer"] button.go {min-height:40px;font:600 12px var(--ui);letter-spacing:0;text-transform:none;border-radius:5px}
body[data-ps-report="coin-tracer"] .status,
body[data-ps-report="coin-tracer"] .legend {font-size:12px;line-height:1.7}
body[data-ps-report="coin-tracer"] .map-viewport {height:min(68vh,720px)}
body[data-ps-report="coin-tracer"] .tree-stage {height:min(72vh,760px);min-height:400px}
body[data-ps-report="coin-tracer"] .detail-pane {min-width:0}
body[data-ps-report="coin-tracer"] :where(.hop,.utxo-pick,.tree-stage,.map-stage) {border-radius:8px;background:#0d1a2c}
body[data-ps-report="coin-tracer"] .hop-addr {font:13px/1.6 var(--mono)}
body[data-ps-report="coin-tracer"] .map-tip {z-index:1200}
/* Research overview */
.ps-r-main,.ps-r-main * {box-sizing:border-box}
.ps-r-main {max-width:1200px;margin:auto;padding:34px 28px 70px}
.ps-r-label {font:11px/1.5 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:#6ee7bd;margin:0 0 12px}
.ps-r-heading {display:flex;align-items:end;justify-content:space-between;gap:24px;padding-bottom:26px;border-bottom:1px solid #263c51}
.ps-r-heading h1 {font-size:clamp(30px,4.2vw,45px);letter-spacing:-.045em;line-height:1.1;margin:0 0 12px;font-weight:650}
.ps-r-heading p {margin:0;color:#9eb2c6;max-width:630px;font-size:15px;line-height:1.7}
.ps-r-heading-note {font:11px/1.8 var(--mono);color:#91a9bd;text-align:right;white-space:nowrap}
.ps-r-feature {display:grid;grid-template-columns:1.4fr .8fr;gap:28px;padding:28px 0;border-bottom:1px solid #263c51}
.ps-r-feature h2 {font-size:clamp(27px,3vw,36px);line-height:1.15;font-weight:600;letter-spacing:-.03em;margin:0 0 14px}
.ps-r-feature h2 a {color:#e2edf5;text-decoration:none}
.ps-r-feature h2 a:hover {color:#6ee7bd}
.ps-r-feature p {color:#9eb2c6;max-width:650px;margin:0 0 20px;font-size:15px;line-height:1.75}
.ps-r-meta {font:10px/1.6 var(--mono);color:#9eb2c6;display:flex;gap:14px;flex-wrap:wrap;margin:0 0 14px;letter-spacing:.03em}
.ps-r-link {display:inline-flex;align-items:center;justify-content:space-between;gap:24px;text-decoration:none;color:#6ee7bd;font-size:13px;font-weight:600;min-height:36px}
.ps-r-link:hover {color:#c5ffe6;text-decoration:underline;text-underline-offset:4px}
.ps-r-note {border:1px solid #2c485c;border-radius:9px;background:linear-gradient(130deg,#102a35,#0d1a2c);padding:21px;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.ps-r-note-title {font:11px/1.6 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#56d8e8;margin:0 0 13px}
.ps-r-note ol {list-style:none;padding:0;margin:0;display:grid;gap:13px;counter-reset:research-step}
.ps-r-note li {counter-increment:research-step;display:flex;gap:12px;font-size:13px;line-height:1.55;color:#d8e7f1}
.ps-r-note li::before {content:"0" counter(research-step);font:11px/1.8 var(--mono);color:#6ee7bd}
.ps-r-note .ps-r-small {border-top:1px solid #2c485c;padding-top:13px;color:#9eb2c6;font-size:12px;line-height:1.7;margin:0}
.ps-r-section-head {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 9px}
.ps-r-section-head h2 {font-size:18px;font-weight:600;letter-spacing:-.02em;margin:0}
.ps-r-section-head span {font:10px var(--mono);color:#8ba2b8}
.ps-r-entry {display:grid;grid-template-columns:40px minmax(0,1fr) 150px;gap:17px;padding:22px 0;border-bottom:1px solid #263c51;align-items:start}
.ps-r-number {font:12px/1.8 var(--mono);color:#56d8e8}
.ps-r-entry h3 {font-size:19px;line-height:1.35;font-weight:600;letter-spacing:-.015em;margin:0 0 7px}
.ps-r-entry h3 a {color:#e2edf5;text-decoration:none}
.ps-r-entry h3 a:hover {color:#56d8e8}
.ps-r-entry p {font-size:14px;line-height:1.7;max-width:760px;color:#9eb2c6;margin:0}
.ps-r-entry-type {font:10px/1.7 var(--mono);color:#9eb2c6;text-align:right;letter-spacing:.03em}
.ps-r-tools {display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px}
.ps-r-tool {padding:22px;border:1px solid #263c51;border-radius:8px;background:#0d1a2c}
.ps-r-tool h3 {font-size:18px;line-height:1.4;letter-spacing:-.02em;font-weight:600;margin:0 0 8px;color:#e2edf5}
.ps-r-tool p {font-size:13px;color:#9eb2c6;line-height:1.75;margin:0 0 12px}
.ps-r-foot {margin:30px 0 0;padding-top:20px;border-top:1px solid #263c51;font-size:12px;line-height:1.8;color:#91a9bd}
/* A warm, distinctive lead for the peg investigation, across both research views. */
body[data-ps-report="hub"] .ps-r-feature {
  position:relative;
  background:radial-gradient(ellipse at 12% 40%,#ff943b0e,transparent 60%);
}
body[data-ps-report="hub"] .ps-r-feature::before {
  content:"";position:absolute;left:0;top:0;width:130px;height:2px;
  background:linear-gradient(90deg,#ffad64,#ff943b14);
  box-shadow:0 0 16px #ff943b44;pointer-events:none;
}
body[data-ps-report="hub"] .ps-r-feature h2,
body[data-ps-report="peg"] .hero h1 {
  color:#ffa457;text-transform:uppercase;font-weight:750;
  letter-spacing:-.035em;line-height:1.12;
  text-shadow:0 0 22px #ff943b35,0 2px 16px #0005;
}
body[data-ps-report="hub"] .ps-r-feature h2 {font-size:clamp(29px,3.7vw,43px)}
body[data-ps-report="hub"] .ps-r-feature h2 a {color:inherit;text-decoration:none;transition:color .2s,text-shadow .2s}
body[data-ps-report="hub"] .ps-r-feature h2 a:hover,
body[data-ps-report="hub"] .ps-r-feature h2 a:focus-visible {color:#ffc58c;text-shadow:0 0 26px #ff943b60}
body[data-ps-report="hub"] .ps-r-feature .ps-r-meta>span:first-child {color:#ffc18b;letter-spacing:.12em}
body[data-ps-report="hub"] .ps-r-feature>.ps-r-note {border-color:#6e4e335c}
body[data-ps-report="hub"] .ps-r-feature>div>.ps-r-link {color:#ffb775}
body[data-ps-report="hub"] .ps-r-feature>div>.ps-r-link:hover {color:#ffd5af}
body[data-ps-report="peg"] .hero {
  position:relative;
  background:radial-gradient(ellipse at 16% 35%,#ff943b0d,transparent 65%);
  border-bottom-color:#634a35;
}
body[data-ps-report="peg"] .hero h1 em {color:#ffc68f;text-shadow:0 0 24px #ff943b4d}
body[data-ps-report="peg"] .hero .issue>.eyebrow:first-child {color:#ffb775}
@media(prefers-reduced-motion:reduce){
 body[data-ps-report="hub"] .ps-r-feature h2 a {transition:none}
}
@media print {
 body[data-ps-report="hub"] .ps-r-feature h2,
 body[data-ps-report="peg"] .hero h1,
 body[data-ps-report="peg"] .hero h1 em {text-shadow:none}
}
@media(max-width:1150px){
 body[data-ps-report="coin-tracer"] .controls {grid-template-columns:1fr 1fr 1fr}
 body[data-ps-report="coin-tracer"] .controls>.field:nth-child(3) {grid-column:3}
 body[data-ps-report="coin-tracer"] .controls>.field:nth-child(4) {max-width:none!important}
}
@media(max-width:900px){
 body[data-ps-section="research"] .layout {grid-template-columns:minmax(0,1fr);gap:24px;padding:24px 20px 50px}
 body[data-ps-section="research"] .sidebar {position:static;max-height:none;overflow:visible}
 body[data-ps-section="research"] .sidebar .nav,
 body[data-ps-section="research"] .sidebar .navlinks {display:flex;flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:8px}
 body[data-ps-section="research"] .sidebar .nav a,
 body[data-ps-section="research"] .sidebar .navlinks a {flex:0 0 auto;border:1px solid #263c51;border-radius:5px;padding:8px 11px;font-size:11px;white-space:nowrap}
 body[data-ps-section="research"] .sidebar :where(.side-meta,.side-note,.side-tags) {display:none}
 body[data-ps-section="research"] .nav-label,
 body[data-ps-section="research"] .nav-title {margin:0 0 9px}
 body[data-ps-report="governance"] .hero {grid-template-columns:minmax(0,1fr)}
 body[data-ps-report="governance"] .scopebox {display:none}
 body[data-ps-report="coin-tracer"] .controls {grid-template-columns:1fr 1fr}
 body[data-ps-report="coin-tracer"] .controls>.field:nth-child(3) {grid-column:1/-1}
 .ps-r-feature {grid-template-columns:1fr 1fr;gap:20px}
}
@media(max-width:600px){
 body[data-ps-section="research"] {font-size:14px}
 body[data-ps-section="research"]>.topbar,
 body[data-ps-section="research"]>.site-header {padding:10px 16px;gap:10px;flex-wrap:wrap}
 body[data-ps-section="research"] .layout {padding:20px 16px 42px;gap:18px}
 body[data-ps-section="research"] .top-actions {flex-wrap:wrap;gap:6px}
 body[data-ps-section="research"] .top-actions .snapshot-pill {font-size:9px;padding:5px 7px}
 body[data-ps-section="research"] :where(.btn,.tool) {padding:8px 10px;font-size:11px}
 body[data-ps-section="research"] :where(.two-col,.cols) {grid-template-columns:minmax(0,1fr)}
 body[data-ps-report="governance"] .metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-ps-report="governance"] .metric:nth-child(2) {border-right:0}
 body[data-ps-report="governance"] .metric:nth-child(-n+2) {border-bottom:1px solid #263c51}
 body[data-ps-report="governance"] :where(.panel,.protocol-body) {padding:16px}
 body[data-ps-report="governance"] .protocol-title {padding:15px 16px;flex-wrap:wrap}
 body[data-ps-report="governance"] .section-head {display:block}
 body[data-ps-report="btc"]>.hero {padding:25px 16px}
 body[data-ps-report="btc"] .container {padding:24px 16px}
 body[data-ps-report="btc"] .hero-stats {gap:8px}
 body[data-ps-report="btc"] .stat {min-width:calc(50% - 8px);padding:11px}
 body[data-ps-report="btc"] .card {padding:16px}
 body[data-ps-report="btc"] :where(table,.tx-table) {display:block;width:100%;overflow-x:auto}
 body[data-ps-report="coin-tracer"]>.wrap {padding:20px 16px}
 body[data-ps-report="coin-tracer"] .controls {padding:14px;gap:12px}
 body[data-ps-report="coin-tracer"] .controls>.field:first-child {grid-column:1/-1}
 body[data-ps-report="coin-tracer"] .controls>.field:nth-child(2) {grid-column:1/-1}
 body[data-ps-report="coin-tracer"] .dir-toggle button {min-height:40px;font-size:12px}
 body[data-ps-report="coin-tracer"] .controls>.field:last-child {align-self:end}
 body[data-ps-report="coin-tracer"] .controls>.field:last-child .go {width:100%}
 body[data-ps-report="coin-tracer"] .tree-stage {flex-direction:column;height:75vh;min-height:500px}
 body[data-ps-report="coin-tracer"] .tree-pane {width:100%;height:175px;flex-shrink:0;border-right:0;border-bottom:1px solid #263c51}
 body[data-ps-report="coin-tracer"] .detail-pane {min-height:200px;overflow:auto}
 body[data-ps-report="coin-tracer"] :where(.detail-header,.detail-row) {min-width:590px}
 body[data-ps-report="coin-tracer"] .detail-list {overflow:visible}
 body[data-ps-report="coin-tracer"] .pin-panel {right:8px;width:min(300px,calc(100% - 16px));max-height:calc(100% - 60px)}
 body[data-ps-report="coin-tracer"] .hop-head {gap:10px;flex-wrap:wrap}
 .ps-r-main {padding:26px 16px 45px}
 .ps-r-heading {display:block;padding-bottom:22px}
 .ps-r-heading-note {display:none}
 .ps-r-feature {grid-template-columns:minmax(0,1fr);gap:20px;padding:24px 0}
 .ps-r-feature p {font-size:14px}
 .ps-r-note {padding:18px}
 .ps-r-entry {grid-template-columns:25px minmax(0,1fr);gap:10px;padding:20px 0}
 .ps-r-entry-type {grid-column:2;text-align:left;display:flex;gap:10px}
 .ps-r-entry-type br {display:none}
 .ps-r-entry h3 {font-size:18px}
 .ps-r-tools {grid-template-columns:1fr;gap:12px}
 .ps-r-tool {padding:18px}
}
@media print {
 body[data-ps-section="research"] :where(#ps-shell,.topbar,.site-header,.ps-research-back,.sidebar) {display:none!important}
 body[data-ps-section="research"] .layout {display:block;padding:0}
}
