/* Documentation reading view — wider measure, quieter chrome than the studio. */
body.guide { background: var(--bg); }

.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 30px 90px;
  align-items: start;
}
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 18px; }
  .guide-nav { position: static !important; }
}

/* ── contents ── */
.guide-nav {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 1px;
  border-left: 1px solid var(--line);
  padding-left: 2px;
}
.guide-nav a {
  padding: 6px 12px;
  color: var(--text-mute);
  text-decoration: none;
  font-size: 12.5px;
  border-left: 2px solid transparent;
  margin-left: -3px;
  transition: color .13s, border-color .13s;
}
.guide-nav a:hover { color: var(--text); }
.guide-nav a.current { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* ── prose ── */
.guide-body { min-width: 0; font-size: 14px; }
.guide-body section { margin-bottom: 52px; scroll-margin-top: 78px; }

.guide-body h1 { font-size: 30px; font-weight: 690; letter-spacing: -.025em; margin-bottom: 10px; }
.guide-body h2 {
  font-size: 20px; font-weight: 670; letter-spacing: -.015em;
  margin-bottom: 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.guide-body h3 { font-size: 14.5px; font-weight: 650; margin: 26px 0 9px; color: var(--text); }
.guide-body p  { color: var(--text-dim); margin-bottom: 13px; max-width: 74ch; }
.guide-body .lede { font-size: 16px; color: var(--text); max-width: 68ch; }
.guide-body a { color: var(--accent); text-decoration: none; }
.guide-body a:hover { text-decoration: underline; }
.guide-body em { color: var(--text); font-style: italic; }
.guide-body strong { color: var(--text); }

code {
  font-family: var(--mono); font-size: .88em;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: #cbd5e1;
  white-space: nowrap;
}
code.ok  { color: #7ad6a6; }
code.bad { color: #f79999; }

.method { font-weight: 700; letter-spacing: .04em; }
.method.post   { color: #7ad6a6; }
.method.delete { color: #f79999; }
.method.patch  { color: #e2bd7c; }
.method.get    { color: #8fb4f5; }

pre.code {
  margin: 0 0 16px;
  padding: 15px 17px;
  background: #08090c;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
  max-height: none;
}
pre.code code {
  background: none; border: none; padding: 0;
  white-space: pre; color: #a8bccf; font-size: 12.3px; line-height: 1.68;
}

.code-tabs { position: static; padding: 0; background: none; margin-bottom: -1px; }

/* ── callouts ── */
.callout {
  padding: 14px 17px; margin: 16px 0;
  border: 1px solid var(--line-str);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: rgba(255,255,255,.022);
}
.callout.warn { border-left-color: var(--warn); }
.callout strong { display: block; margin-bottom: 5px; font-size: 13px; }
.callout p { margin: 0; font-size: 13px; }

/* ── tables ── */
table.ref {
  width: 100%; border-collapse: collapse; margin: 6px 0 18px;
  font-size: 13px;
}
table.ref th {
  text-align: left; padding: 8px 12px;
  color: var(--text-mute); font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid var(--line-str);
  white-space: nowrap;
}
table.ref td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}
table.ref td.ok  { color: #7ad6a6; }
table.ref td.bad { color: #f79999; }
table.ref tr:last-child td { border-bottom: none; }

.fmt-cell { display: flex; align-items: center; gap: 10px; }
.fmt-cell i {
  display: block; flex: none;
  border: 1.6px solid var(--accent);
  background: rgba(229,100,77,.14);
  border-radius: 2px;
}

.guide-body .hint { font-size: 12.5px; color: var(--text-mute); }
