/* Docs page: sticky contents on the left, readable column on the right. Builds on landing.css. */
body.docs { background: radial-gradient(1000px 380px at 50% -140px, rgba(255,79,163,.12), rgba(255,122,61,.05) 45%, transparent 75%) no-repeat, var(--bg); }
.dwrap { max-width: 1120px; margin: 0 auto; padding: 108px 24px 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }

/* contents */
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc-label { color: var(--muted); font-size: 13px; font-weight: 500; padding: 0 12px 8px; }
.toc a { padding: 8px 12px; border-radius: 10px; color: rgba(255,255,255,.66); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.toc a:hover { color: #fff; background: rgba(255,255,255,.04); }
.toc a.on { color: #fff; background: rgba(255,255,255,.08); }

/* article */
.doc { max-width: 760px; min-width: 0; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 16px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.doc section { padding-top: 44px; scroll-margin-top: 80px; }
.doc section + section { border-top: 1px solid var(--line); margin-top: 44px; }
.doc h2 { font-size: 28px; letter-spacing: -.025em; margin: 0 0 14px; }
.doc h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 26px 0 8px; }
.doc p, .doc li { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.7; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--orange); }
.doc b, .doc strong { color: #fff; }
.doc code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--gold); }
.doc .muted { color: var(--muted); font-size: 14px; }
.dnote { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); color: rgba(255,255,255,.82); font-size: 15px; }

.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 20px; }
.steps4 > div { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.steps4 b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--sunset); color: #07060b; }
.steps4 span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.steps4 strong { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 6px 0 18px; }
.facts > div { display: flex; flex-direction: column; gap: 2px; padding: 13px 16px; transition: background .15s; }
.facts > div:hover { background: rgba(255,255,255,.025); }
.facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts > div:nth-child(even) { border-left: 1px solid var(--line); }
.facts span { color: var(--muted); font-size: 13px; }
.facts b { font-size: 15px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 8px; }
.ccard { padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.ccard .cx { font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: -.02em; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding-right: 3px; margin-bottom: 6px; }
.ccard p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.dtiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.dtiers > div { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.dtiers .top { border-color: rgba(255,122,61,.45); background: rgba(255,122,61,.05); }
.dtiers b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.dtiers span { font-weight: 600; }
.dtiers small { color: var(--muted); font-size: 13px; }

.flywheel { width: 100%; height: auto; margin: 8px 0 10px; }
.loop li { margin: 8px 0; }

.tstack { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tstack > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 16px; transition: background .15s; }
.tstack > div + div { border-top: 1px solid var(--line); }
.tstack > div:hover { background: rgba(255,255,255,.025); }
.tstack b { font-size: 14.5px; }
.tstack span { color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.55; }

.cta-end { margin: 54px 0 10px; text-align: center; }
body.docs footer { margin-top: 40px; }

@media (max-width: 900px) {
  .dwrap { grid-template-columns: 1fr; gap: 0; padding-top: 92px; }
  .toc { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; margin: 0 -24px 8px; padding: 0 24px 8px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc-label { display: none; }
  .toc a { white-space: nowrap; background: rgba(255,255,255,.04); font-size: 13px; }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .cards3, .dtiers { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dwrap { padding-left: 16px; padding-right: 16px; }
  .toc { margin: 0 -16px 8px; padding: 0 16px 8px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(even) { border-left: 0; }
  .facts > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .tstack > div { grid-template-columns: 1fr; gap: 4px; }
  header.top nav { display: none; }
}

/* four coin cards (Pays, Boosts, Spreads, Burns) */
.cards3.cards4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards3.cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards3.cards4 { grid-template-columns: 1fr; } }

/* Vice City field manual */
body.docs { background: linear-gradient(rgba(96,239,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(96,239,255,.025) 1px, transparent 1px), radial-gradient(900px 420px at 70% -120px, rgba(255,63,155,.22), transparent 74%), var(--bg); background-size: 46px 46px, 46px 46px, auto, auto; }
.toc { border-left: 3px solid var(--pink); padding-left: 8px; }
.toc-label { color: var(--accent2); font-family: Anton, Impact, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.toc a { border-radius: 2px; }
.toc a:hover { color: var(--accent2); background: rgba(96,239,255,.07); }
.toc a.on { color: #090d25; background: var(--gold); box-shadow: 3px 3px 0 var(--pink); }
.doc h1, .doc h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; }
.doc h1 { font-size: clamp(52px,7vw,84px); color: var(--text); text-shadow: 4px 4px 0 var(--pink); }
.doc section + section { border-top: 3px solid rgba(96,239,255,.16); }
.doc li::marker { color: var(--accent2); }
.doc code { color: #090d25; background: var(--gold); border-radius: 2px; }
.steps4 > div, .facts, .ccard, .dtiers > div, .tstack, .dnote { border: 2px solid #050715; border-radius: 3px; background: #141a38; box-shadow: 5px 5px 0 rgba(96,239,255,.25); }
.steps4 > div:nth-child(even), .ccard:nth-child(even) { box-shadow: 5px 5px 0 rgba(255,63,155,.32); }
.steps4 b { border-radius: 2px; color: #090d25; background: var(--gold); box-shadow: 2px 2px 0 var(--pink); }
.ccard .cx { color: var(--gold); background: none; text-shadow: 2px 2px 0 var(--pink); }
.dtiers .top { color: #090d25; background: var(--pink); border-color: #050715; box-shadow: 6px 6px 0 var(--accent2); }
@media (max-width: 900px) { .toc { border-left: 0; padding-left: 24px; } }

/* Deep-violet field manual */
body.docs { background: linear-gradient(rgba(196,181,253,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(196,181,253,.022) 1px,transparent 1px),radial-gradient(900px 440px at 72% -120px,rgba(124,58,237,.24),transparent 74%),var(--bg); background-size:52px 52px,52px 52px,auto,auto; }
.toc { border-left-color:#7c3aed; }
.toc-label { color:#c4b5fd; }
.toc a:hover { color:#c4b5fd; background:rgba(157,108,255,.08); }
.toc a.on { color:#080512; background:#c4b5fd; box-shadow:3px 3px 0 #7c3aed; }
.doc h1 { color:#f7f1ff; text-shadow:4px 4px 0 #7c3aed; }
.doc section + section { border-top-color:rgba(196,181,253,.16); }
.doc li::marker { color:#9d6cff; }
.doc code { color:#080512; background:#c4b5fd; }
.steps4 > div,.facts,.ccard,.dtiers > div,.tstack,.dnote { background:#120b25; border-color:#080512; box-shadow:5px 5px 0 rgba(124,58,237,.38); }
.steps4 > div:nth-child(even),.ccard:nth-child(even) { box-shadow:5px 5px 0 rgba(226,107,255,.28); }
.steps4 b { color:#080512; background:#c4b5fd; box-shadow:2px 2px 0 #7c3aed; }
.ccard .cx { color:#f3d7ff; text-shadow:2px 2px 0 #7c3aed; }
.dtiers .top { color:#f7f1ff; background:#28134a; border-color:#080512; box-shadow:6px 6px 0 #9d6cff; }
