/* docs.css — layout + typography for the /docs pages. Consumes marketing.css
   blueprint tokens (--paper, --ink, --ink-2, --red, --mono, --rule, --dark).
   No new fonts, no new tokens — the self-hosted families live in marketing.css. */

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

/* Top nav is the shared component (css/nav.css + partials/nav.html). It is
   position: fixed at 60px tall, so the shell adds that to its top padding. */

/* ── Two-column shell (sidebar + prose), centered ────────────────────────── */
.docs-shell {
  max-width: 1080px; margin: 0 auto; padding: 100px 32px 96px;
  display: grid; grid-template-columns: 220px minmax(0, 72ch);
  gap: 56px; align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.docs-nav {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 2px;
}
.docs-nav a {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  padding: 7px 12px; border-radius: 7px; border-left: 2px solid transparent;
  transition: color .15s, background .15s;
}
.docs-nav a:hover { color: var(--ink); background: var(--paper-2); }
.docs-nav a[aria-current="page"] {
  color: var(--ink); font-weight: 700;
  border-left-color: var(--red); background: var(--paper-2);
}

/* ── Prose column ────────────────────────────────────────────────────────── */
.docs-main { min-width: 0; }
.docs-main h1 {
  font-size: 32px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.15; margin-bottom: 14px;
}
.docs-main h2 {
  font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 12px;
}
.docs-main h3 { font-size: 16px; font-weight: 700; margin: 28px 0 10px; }
.docs-main p { margin-bottom: 16px; color: var(--ink-2); }
.docs-main .docs-lead { font-size: 17px; color: var(--ink); }
.docs-main a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.docs-main a:hover { text-decoration: none; }
.docs-main ul, .docs-main ol { margin: 0 0 16px 22px; color: var(--ink-2); }
.docs-main li { margin-bottom: 6px; }
.docs-main code {
  font-family: var(--mono); font-size: .88em;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 5px; padding: 1px 5px;
}
.docs-main pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  background: var(--dark); color: var(--dark-ink);
  border-radius: 10px; padding: 16px 18px; margin: 0 0 20px; overflow-x: auto;
}
.docs-main pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.docs-main table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.docs-main th, .docs-main td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.docs-main th { font-weight: 700; color: var(--ink); }
.docs-main td { color: var(--ink-2); }

/* ── Callout (notes / warnings) — --red accent ───────────────────────────── */
.docs-callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--red);
  background: var(--paper-2); border-radius: 8px;
  padding: 14px 16px; margin: 0 0 20px;
}
.docs-callout p { margin: 0; color: var(--ink); font-size: 14px; }

/* ── Responsive: below 900px the sidebar wraps horizontally above the prose ─ */
@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 88px 20px 72px;
  }
  .docs-nav {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 6px;
    padding-bottom: 20px; border-bottom: 1px solid var(--rule);
  }
  .docs-nav a, .docs-nav a[aria-current="page"] { border-left: 0; padding: 6px 10px; }
}

/* ── Agents-first callout (docs home) ─────────────────────────────────
   The one deliberately-loud element on the page: coding-agent users should
   never read the manual walkthrough. Whole card is the link. */
.docs-callout {
  display: block;
  margin: 20px 0 28px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  text-decoration: none !important;
  transition: border-color 0.12s, transform 0.12s;
}
.docs-callout:hover { border-color: var(--red); transform: translateY(-1px); }
.docs-callout-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.docs-callout-body {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.docs-callout-cta {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}
.docs-callout-cta { display: inline-block; }
.docs-callout-prompt { margin-top: 14px; border-top: 1px dashed var(--rule); padding-top: 12px; }
.docs-callout-prompt-label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--ink-2); margin-bottom: 8px;
}
.docs-callout-prompt-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: 10px 12px;
}
.docs-callout-prompt-text {
  flex: 1; font-family: var(--mono, ui-monospace, monospace);
  font-size: 12.5px; line-height: 1.6; color: var(--ink);
  user-select: all;
}
.docs-callout-copy {
  flex-shrink: 0; font-size: 12px; font-weight: 700;
  color: var(--red); background: none; border: 1px solid var(--rule);
  border-radius: 6px; padding: 4px 10px; cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.docs-callout-copy:hover { border-color: var(--red); background: var(--paper-2); }
