/* Docs page only. The landing page stays deliberately short; everything that
   needs paragraphs lives here, so this file carries the reading typography. */

.doc { padding: 44px 0 72px; }

.doc-grid { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }

/* sticky table of contents */
.doc-toc { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 2px; }
.doc-toclabel {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); padding: 0 0 8px;
}
.doc-toc a {
  font-size: 13.5px; color: var(--ink-soft); padding: 6px 12px;
  border-left: 2px solid var(--hairline); transition: color 0.12s ease, border-color 0.12s ease;
}
.doc-toc a:hover { color: var(--green); border-left-color: var(--green); }

/* body: a comfortable measure, not the full page width */
.doc-body { max-width: 720px; min-width: 0; }
.doc-body h1 { font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.doc-lede { font-size: 17px; color: var(--ink-soft); margin: 12px 0 8px; line-height: 1.6; }
.doc-body h2 {
  font-size: 25px; letter-spacing: -0.02em; line-height: 1.2;
  margin: 52px 0 14px; padding-top: 20px; border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.doc-body h3 { font-size: 17px; margin: 30px 0 10px; letter-spacing: -0.01em; }
.doc-body p { line-height: 1.65; margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 20px; }
.doc-body li { line-height: 1.6; margin-bottom: 9px; }
.doc-body strong { font-weight: 600; }
.doc-body .split, .doc-body .wallets, .doc-body .tiers { margin: 18px 0 22px; }

/* numbered flow: the step number does the work a heading would */
.doc-steps { counter-reset: s; list-style: none; padding-left: 0; }
.doc-steps li {
  counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 13px;
}
.doc-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--green);
}

.doc-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14px; }
.doc-table th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
  padding: 0 12px 9px 0; border-bottom: 1px solid var(--rule);
}
.doc-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.doc-table td:not(:first-child) { font-family: var(--mono); white-space: nowrap; }

.doc-q { font-weight: 600; margin-top: 22px; margin-bottom: 6px; }
.doc-foot {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft);
}

@media (max-width: 900px) {
  /* the contents list becomes a scrolling row above the text */
  .doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc {
    position: static; flex-direction: row; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
    padding-bottom: 10px; border-bottom: 1px solid var(--rule);
  }
  .doc-toc::-webkit-scrollbar { display: none; }
  .doc-toclabel { display: none; }
  .doc-toc a { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; padding: 6px 10px; }
  .doc-toc a:hover { border-left: none; border-bottom-color: var(--green); }
  .doc { padding: 28px 0 56px; }
  .doc-body h1 { font-size: 31px; }
  .doc-body h2 { font-size: 22px; margin-top: 40px; }
  /* a wide table must scroll inside itself, never push the page sideways */
  .doc-table { display: block; overflow-x: auto; white-space: nowrap; }
}
