/* Developer docs — a reading layout on the same black system as landing.css.
   Loaded after landing.css; only adds the docs shell, code tabs, and tables. */

.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; max-width: 1240px; margin: 0 auto; padding: 124px clamp(16px, 3vw, 32px) 80px; }
.docs-nav { position: sticky; top: 110px; align-self: start; height: calc(100vh - 134px); overflow-y: auto; padding-right: 20px; border-right: 1px solid var(--hair); }
.docs-nav .grp { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.docs-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.docs-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.docs-main { padding-left: clamp(24px, 4vw, 56px); min-width: 0; }
.docs-main h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.02em; line-height: 1.05; }
.docs-main .lede { color: var(--text-2); font-size: 17px; max-width: 640px; margin: 0 0 8px; }
.docs-main h2 { margin: 56px 0 10px; font-weight: 500; font-size: 26px; letter-spacing: -.02em; padding-top: 24px; border-top: 1px solid var(--hair); }
.docs-main h3 { margin: 28px 0 8px; font-weight: 500; font-size: 17px; }
.docs-main p, .docs-main li { color: #e2e2e2; font-size: 15px; line-height: 1.7; }
.docs-main ul { padding-left: 20px; }
.docs-main a.inl { text-decoration: underline; text-underline-offset: 3px; }
.docs-main code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: .88em; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; }
.docs-main pre { margin: 12px 0 18px; padding: 16px 18px; border-radius: 14px; background: #060606; border: 1px solid var(--hair-strong); overflow-x: auto; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 13px; line-height: 1.6; color: #e6e6e6; }
.docs-main pre code { background: none; padding: 0; font-size: inherit; }
.base-url { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair-strong); font-family: ui-monospace, monospace; font-size: 13px; color: #ddd; }
.base-url b { color: var(--live); font-family: var(--font-display); letter-spacing: .1em; font-size: 11px; }
.method { display: inline-block; min-width: 54px; text-align: center; padding: 2px 8px; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .08em; margin-right: 8px; }
.method.get { color: #93c5fd; border: 1px solid rgba(147,197,253,.4); }
.method.post { color: var(--live); border: 1px solid rgba(74,222,128,.4); }
.method.patch { color: #fbbf24; border: 1px solid rgba(251,191,36,.4); }
.method.delete { color: var(--danger); border: 1px solid rgba(252,165,165,.4); }
.endpoint { display: flex; align-items: center; gap: 6px; margin: 22px 0 6px; font-family: ui-monospace, monospace; font-size: 14px; }
.tabs-code { border: 1px solid var(--hair-strong); border-radius: 14px; overflow: hidden; margin: 12px 0 18px; background: #060606; }
.tabs-code .bar { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--hair); background: #0a0a0a; }
.tabs-code .bar button { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: #aaa; }
.tabs-code .bar button.active { background: #fff; color: #000; }
.tabs-code .bar .copy { margin-left: auto; color: #aaa; }
.tabs-code pre { margin: 0; border: 0; border-radius: 0; }
.tabs-code pre[hidden] { display: none; }
table.doc { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
table.doc th, table.doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.doc th { color: var(--muted); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
table.doc code { white-space: nowrap; }
.callout { border: 1px solid var(--hair-strong); border-left: 3px solid #fff; border-radius: 12px; padding: 12px 16px; margin: 14px 0 18px; background: rgba(255,255,255,.03); font-size: 14px; color: #ddd; }
.callout.warn { border-left-color: #fbbf24; }
.callout.ok { border-left-color: var(--live); }
.pill-live { color: var(--live); font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; font-size: 11px; }
.pill-test { color: #93c5fd; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; font-size: 11px; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; padding-top: 88px; }
  .docs-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--hair); padding: 0 0 12px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav .grp { display: none; }
  .docs-main { padding-left: 0; }
}
