/* Public docs content styles. Pairs with landing.css, which provides the brand
   tokens (:root), body font, sticky pill nav, .container, buttons and footer.
   This file only styles the prose + doc-specific components (callouts, TOC,
   numbered steps, code) so the docs match the rest of the site. */

/* Docs nav has no center links (just logo + CTA), so push the CTA to the right
   the way the removed nav-links list used to with its auto margins. */
.nav-bar .nav-cta-group {
  margin-left: auto;
}

.docs-body {
  padding: 32px 0 80px;
}

.docs-body h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.15; }
.docs-body h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; }
.docs-body h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.docs-body p, .docs-body ul, .docs-body ol { margin: 0 0 14px; }
.docs-body ul, .docs-body ol { padding-left: 22px; }
.docs-body li { margin-bottom: 6px; }
.docs-body a { color: var(--brand); text-decoration: none; font-weight: 500; }
.docs-body a:hover { text-decoration: underline; }
.docs-body strong { font-weight: 700; }

.docs-body code, .docs-body pre { font-family: ui-monospace, Menlo, Consolas, monospace; }
.docs-body code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}
.docs-body pre {
  background: #0d1117;
  color: #c9d1d9;
  padding: 16px 18px;
  border-radius: 12px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.docs-body pre code { background: none; border: none; padding: 0; font-size: inherit; }

/* Copy-paste agent prompt: a pre with a sticky copy button in the corner. */
.agent-prompt { position: relative; }
.agent-prompt pre { white-space: pre-wrap; padding-top: 44px; }
.agent-prompt .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #c9d1d9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.agent-prompt .copy-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* Callouts: semantic accent bars, matching the app's badge color language. */
.callout {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 10px;
}
.callout.green { background: var(--green-light, #ecfdf5); border-color: #bbf7d0; border-left-color: var(--green); }
.callout.red { background: var(--brand-light); border-color: #fecaca; border-left-color: var(--brand); }
.callout > :last-child { margin-bottom: 0; }

/* Table of contents card. */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.toc .group {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin: 12px 0 4px;
}
.toc .group:first-child { margin-top: 0; }
.toc a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--brand); }

/* Numbered steps with brand circles. */
.docs-body ol.steps { counter-reset: step; padding-left: 0; }
.docs-body ol.steps li {
  list-style: none;
  counter-increment: step;
  padding-left: 40px;
  position: relative;
  margin-bottom: 14px;
  min-height: 26px;
}
.docs-body ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Tabbed code section (one handler, switch language). */
.code-tabs { margin: 0 0 16px; }
.code-tab-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 0; flex-wrap: wrap; }
.code-tab {
  background: transparent;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.code-tab:hover { color: var(--text); }
.code-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.code-tabs .code-panel { display: none; margin: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.code-tabs .code-panel.active { display: block; }

/* Back link above each page title. */
.docs-back {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.docs-back:hover { color: var(--brand); }
