/* Public docs page. Builds on styles.css (colors, buttons, details). */
body.docs { line-height: 1.6; }
body.docs main { max-width: 780px; padding-top: 8px; }
body.docs h1 { font-size: 2rem; margin: 24px 0 8px; }
body.docs h2 { font-size: 1.4rem; margin: 0 0 10px; padding-top: 8px; scroll-margin-top: 72px; }
body.docs h3 { font-size: 1.05rem; margin: 20px 0 6px; }
body.docs section { margin: 40px 0; }
body.docs .lead { font-size: 1.15rem; color: var(--muted); }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.topbar .brand { margin: 0; text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { padding: 8px 10px; font-weight: 600; text-decoration: none; color: var(--text); border-radius: 8px; }
.topbar nav a.cta { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 520px) { .topbar nav a:not(.cta) { display: none; } }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.toc a {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  background: var(--card); color: var(--text); font-size: .92rem;
}

ol.steps { padding-left: 22px; }
ol.steps li, ul li { margin: 6px 0; }
ul.prompts { list-style: none; padding: 0; }
ul.prompts li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.note { border-left: 4px solid var(--brand); background: var(--card); border-radius: 8px; padding: 10px 14px; }

.tool { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 16px 0; }
.tool h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px;
  border-radius: 999px; background: var(--ok-bg); color: var(--text); border: 1px solid var(--line);
}
.pill.warn { background: var(--warn-bg); }

table.ref { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
table.ref th, table.ref td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.ref th { color: var(--muted); font-size: .8rem; letter-spacing: .4px; text-transform: uppercase; }
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  overflow-x: auto; margin: 8px 0;
}
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.docs-foot { max-width: 780px; margin: 0 auto; padding: 8px 16px 56px; text-align: center; }
table.ref td:first-child code { white-space: nowrap; word-break: normal; }
table.ref td:first-child { min-width: 9.5em; }
