/* Docs page. Builds on styles.css (tokens, buttons, fee split). */
.docs-body { background: var(--ink); }
.docs-body section { padding: 0; }

.docs-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 24px;
  background: rgba(18, 10, 5, .82); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 -1px 0 var(--line);
}
.docs-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.docs-brand img { width: 30px; height: 30px; border-radius: 50%; }
.docs-bar-links { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; }
.docs-bar-links > a:not(.btn) { color: var(--muted); transition: color .15s; }
.docs-bar-links > a:not(.btn):hover { color: var(--text); }
.docs-toggle { display: none; }

.docs-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; }
.docs-side { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; padding: 24px 18px 40px 24px; }
.docs-search {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; font: 400 14px var(--sans);
  background: var(--tile); box-shadow: var(--tile-rim); margin-bottom: 18px;
}
.docs-search:focus { background: var(--tile-hover); box-shadow: var(--tile-rim), inset 0 0 0 1px var(--orange); }
.docs-side nav { display: flex; flex-direction: column; gap: 2px; }
.docs-group { margin: 18px 0 6px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.docs-group:first-child { margin-top: 0; }
.docs-side nav a { padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: color .15s, background .15s; }
.docs-side nav a:hover { color: var(--text); }
.docs-side nav a.is-on { color: var(--text); background: var(--tile); box-shadow: var(--tile-rim); }
.docs-empty { margin: 8px 10px; font-size: 13px; color: var(--dim); }

.docs-main { padding: 48px 40px 60px; max-width: 860px; min-width: 0; }
.docs-hero { padding-bottom: 20px !important; }
.docs-kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); }
.docs-kicker img { width: 24px; height: 24px; border-radius: 50%; }
.docs-hero h1 { margin: 14px 0 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -.045em; font-weight: 300; }
.docs-hero h1 b { font-weight: 700; color: var(--orange); }
.docs-lede { margin: 16px 0 0; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.docs-legend { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.docs-legend .st { display: inline-block; min-width: 82px; }

/* Status words: coloured by state, no pill. */
.st { font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.st-live { color: #8fd18b; }
.st-preview { color: var(--orange-hot); }
.st-soon { color: var(--sepia); }

.docs-sub { margin: 52px 0 16px; text-align: left; font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0; max-width: none; }
.docs-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide {
  position: relative; display: block; padding: 22px 22px 20px; min-height: 140px; border-radius: 16px;
  background: var(--tile); box-shadow: var(--tile-rim); transition: background .2s, transform .2s;
}
.guide:hover { background: var(--tile-hover); transform: translateY(-2px); }
.guide h3 { margin: 30px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.guide p { margin: 0; padding-right: 26px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.guide span { position: absolute; right: 20px; bottom: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.guide:hover span { transform: translateX(3px); color: var(--orange-hot); }

.doc { padding-top: 64px !important; scroll-margin-top: 50px; }
.doc-num { display: flex; align-items: center; gap: 14px; margin: 0; font: 500 14px var(--mono); color: var(--orange); }
.doc h2 { margin: 10px 0 14px; text-align: left; max-width: none; font-size: 30px; font-weight: 500; color: var(--text); letter-spacing: -.03em; }
.doc p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.doc p b { color: var(--text); font-weight: 600; }
.doc code { font: 500 14px var(--mono); color: var(--orange-hot); }
.doc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 0; }
.doc-stats div { padding: 16px; border-radius: 12px; background: var(--surface); }
.doc-stats dt { font: 700 26px var(--mono); color: var(--text); letter-spacing: -.03em; }
.doc-stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.doc-feats { list-style: none; margin: 0 0 16px; padding: 0; border-radius: 12px; overflow: hidden; background: var(--surface); }
.doc-feats li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 16px; font-size: 15px; color: var(--text); }
.doc-feats li + li { box-shadow: inset 0 1px 0 var(--line); }
.doc-steps { margin: 0 0 16px; padding-left: 22px; color: var(--text); line-height: 1.9; font-size: 16px; }
.doc-steps li::marker { color: var(--orange); font-family: var(--mono); }
.doc-note { padding: 14px 16px; border-radius: 12px; background: var(--surface); }
.doc-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-ways li { padding: 14px 16px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 15px; line-height: 1.55; }
.doc-ways b { color: var(--text); font-weight: 600; }
.doc-split { margin: 18px 0; }
.phases { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.phases li { padding: 18px 20px; border-radius: 14px; background: var(--tile); box-shadow: var(--tile-rim); }
.phases .ph-n { display: flex; gap: 14px; align-items: center; margin: 0; font: 500 13px var(--mono); color: var(--dim); }
.phases h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 600; }
.phases li p:last-child { margin: 0; font-size: 15px; }
.docs-foot { display: flex; justify-content: space-between; margin-top: 72px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--line); font-size: 13px; color: var(--dim); }
.docs-foot p { margin: 0; }
.docs-foot a:hover { color: var(--orange-hot); }

@media (max-width: 860px) {
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-toggle {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
    font: 500 14px var(--sans); color: var(--text); background: var(--tile); box-shadow: var(--tile-rim);
  }
  .docs-bar-links > a:not(.btn) { display: none; }
  .docs-side {
    position: fixed; top: 60px; left: 0; right: 0; z-index: 15; height: auto; max-height: calc(100vh - 60px);
    background: var(--ink); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); padding: 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .docs-side.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .docs-main { padding: 32px 16px 48px; }
}
@media (max-width: 600px) {
  .docs-bar { padding: 0 16px; gap: 10px; }
  .docs-brand span { display: none; }
  .docs-guides, .doc-stats { grid-template-columns: 1fr 1fr; }
  .doc-feats li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .doc h2 { font-size: 26px; }
}
@media (max-width: 420px) {
  .docs-guides { grid-template-columns: 1fr; }
}
