/* BuildFlow user docs — single stylesheet, no build step. */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1c1a;
  --text-2: #55554f;
  --text-3: #8a8a82;
  --border: #e4e4de;
  --accent: #2f6f4f;
  --accent-soft: #eaf3ee;
  --warn-soft: #fdf3e4;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --surface: #1e1e1b;
    --text: #ecece6;
    --text-2: #b4b4aa;
    --text-3: #7c7c72;
    --border: #32322c;
    --accent: #6fbf95;
    --accent-soft: #22312a;
    --warn-soft: #33291a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
.layout { max-width: 1040px; margin: 0 auto; padding: 0 20px; display: flex; gap: 40px; }
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
header.site .inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); }
.tagline { color: var(--text-3); font-size: 13px; }
nav.side {
  flex: 0 0 210px; padding: 28px 0; font-size: 14px;
  position: sticky; top: 56px; align-self: flex-start;
}
nav.side a { display: block; padding: 5px 0; color: var(--text-2); text-decoration: none; }
nav.side a:hover { color: var(--text); }
nav.side a.active { color: var(--accent); font-weight: 600; }
nav.side .group { margin: 14px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
main { flex: 1; min-width: 0; padding: 28px 0 80px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 36px 0 8px; padding-top: 8px; }
h3 { font-size: 16px; margin: 24px 0 6px; }
p, li { color: var(--text-2); }
p.lead { font-size: 17px; color: var(--text-2); margin-top: 0; }
a { color: var(--accent); }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }
.tip {
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; margin: 16px 0; font-size: 14px;
}
.tip::before { content: "Tip — "; font-weight: 600; color: var(--accent); }
.note {
  background: var(--warn-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; margin: 16px 0; font-size: 14px;
}
.note::before { content: "Good to know — "; font-weight: 600; }
code, .kbd {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px;
}
table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
th, td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
footer.site {
  border-top: 1px solid var(--border); margin-top: 40px;
  padding: 18px 20px; font-size: 13px; color: var(--text-3); text-align: center;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; text-decoration: none;
}
.card b { color: var(--text); display: block; margin-bottom: 4px; }
.card span { color: var(--text-3); font-size: 13.5px; }
@media (max-width: 760px) {
  .layout { flex-direction: column; gap: 0; }
  nav.side { position: static; flex: none; padding: 16px 0 0;
    display: flex; flex-wrap: wrap; gap: 2px 14px; border-bottom: 1px solid var(--border); }
  nav.side .group { width: 100%; margin: 8px 0 0; }
}
