/* DTB docs — Stripe-clean two-column reference. Inherits brand vars + fonts from v2.css. */

.docs { min-height: 100vh; }

/* top bar */
.docs__bar { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center;
  gap: 20px; padding: 0 24px; background: rgba(246,245,239,0.85); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line-soft); }
.docs__bar .brand { font-size: 16px; }
.docs__bar .brand__by { font-size: 11px; }
.docs__crumb { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding-left: 14px; border-left: 1px solid var(--line); }
.docs__bar-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.docs__bar-right a { font-size: 14px; color: var(--body); transition: color .2s; }
.docs__bar-right a:hover { color: var(--ink); }
.docs__cta { background: var(--ink); color: #fff !important; padding: 8px 15px; border-radius: 9px;
  font-weight: 600; font-size: 13.5px; white-space: nowrap; }

/* layout */
.docs__grid { display: grid; grid-template-columns: 248px minmax(0,1fr); max-width: 1180px; margin: 0 auto; }
@media (max-width: 860px) {
  .docs__grid { grid-template-columns: 1fr; }
  /* The left nav can't sit beside the content on phones. Instead of hiding it
     (which left docs with no navigation), turn it into a horizontal, scrollable
     page-nav strip that sticks just under the top bar. */
  .docs__side {
    position: sticky; top: 60px; z-index: 30; height: auto; align-self: stretch;
    display: flex; gap: 6px; align-items: center;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    padding: 9px 16px; border-right: 0; border-bottom: 1px solid var(--line-soft);
    background: rgba(246,245,239,0.92); backdrop-filter: blur(12px) saturate(180%);
    scrollbar-width: none;
  }
  .docs__side::-webkit-scrollbar { display: none; }
  .docs__navgroup { display: none; }
  .docs__side a { flex: 0 0 auto; white-space: nowrap; margin: 0; padding: 6px 12px; font-size: 13.5px; }
  .docs__side a.is-soon::after { display: none; }
  /* top bar: drop the redundant "Docs" crumb and tighten so the CTA fits */
  .docs__crumb { display: none; }
  .docs__bar { gap: 12px; padding: 0 16px; }
}
/* Only the very narrowest phones can't fit the Methodology link next to the CTA. */
@media (max-width: 374px) { .docs__bar-right a:not(.docs__cta) { display: none; } }

/* sidebar (desktop column; mobile turns it into a horizontal strip below) */
@media (min-width: 861px) {
  .docs__side { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px);
    overflow-y: auto; padding: 30px 16px 60px 24px; border-right: 1px solid var(--line-soft); }
}
.docs__navgroup { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--faint); margin: 24px 8px 8px; }
.docs__navgroup:first-child { margin-top: 0; }
.docs__side a { display: block; padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--body);
  transition: background .15s, color .15s; }
.docs__side a:hover { background: var(--bone-2); color: var(--ink); }
.docs__side a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs__side a.is-soon { color: var(--faint); cursor: default; }
.docs__side a.is-soon:hover { background: none; color: var(--faint); }
.docs__side a.is-soon::after { content: "soon"; float: right; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); background: var(--bone-2);
  padding: 1px 6px; border-radius: 6px; margin-top: 1px; }

/* content */
.docs__main { padding: 44px clamp(24px,5vw,72px) 120px; max-width: 820px; }
.docs__eyebrow { font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.docs__main h1 { font-size: clamp(30px,4vw,42px); letter-spacing: -0.03em; margin-top: 8px; line-height: 1.1; }
.docs__lead { font-size: 18px; color: var(--body); line-height: 1.6; margin-top: 16px; max-width: 60ch; }
.docs__main h2 { font-size: 21px; letter-spacing: -0.02em; margin-top: 48px; padding-top: 8px; }
.docs__main h3 { font-size: 16px; letter-spacing: -0.01em; margin-top: 30px; }
.docs__main p { font-size: 15.5px; line-height: 1.68; color: var(--body); margin-top: 14px; }
.docs__main p b, .docs__main li b { color: var(--ink); font-weight: 600; }
.docs__main ul { margin-top: 14px; padding-left: 4px; list-style: none; }
.docs__main li { font-size: 15.5px; line-height: 1.6; color: var(--body); margin-top: 10px; padding-left: 22px; position: relative; }
.docs__main li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); opacity: 0.5; }
.docs__main a { color: var(--accent); font-weight: 500; }
.docs__main code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--bone-2);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px; color: var(--ink); }

/* steps */
.docs__steps { display: grid; gap: 14px; margin-top: 22px; }
.docs__step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.docs__step-n { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.docs__step h3 { margin-top: 0; font-size: 15.5px; color: var(--ink); }
.docs__step p { margin-top: 5px; font-size: 14px; }

/* code block */
.docs__code { margin-top: 18px; background: #17170F; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 30px -14px rgba(20,18,10,0.5); }
.docs__code-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.docs__code-dot { width: 10px; height: 10px; border-radius: 50%; }
.docs__code-label { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8a8778; letter-spacing: 0.03em; }
.docs__code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.docs__code code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.75;
  background: none; border: none; padding: 0; color: #E6E4DA; }
.c-cm { color: #6f6c5d; } .c-kw { color: #B9B5FF; } .c-fn { color: #7FD1B0; } .c-str { color: #E8B98A; } .c-ok { color: #7FD1B0; }

/* callout */
.docs__callout { margin-top: 20px; background: var(--accent-soft); border: 1px solid rgba(90,84,240,0.18);
  border-radius: 12px; padding: 15px 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.docs__callout b { font-weight: 600; }
.docs__note { margin-top: 20px; background: #FCFBF8; border-left: 3px solid var(--faint); border-radius: 0 8px 8px 0;
  padding: 12px 16px; font-size: 13.5px; color: var(--body); line-height: 1.6; }

/* pager */
.docs__pager { display: flex; justify-content: space-between; margin-top: 60px; gap: 16px; }
.docs__pager a { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  transition: border-color .2s, transform .2s; }
.docs__pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
.docs__pager .lbl { font-size: 12px; color: var(--faint); }
.docs__pager .ttl { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 3px; }
.docs__pager .next { text-align: right; }
