:root {
  --ink: #171717;
  --paper: #f5f0e8;
  --panel: #fffdf8;
  --accent: #0f6b4f;
  --line: #cfc6b8;
  --muted: #625c54;
}

* { box-sizing: border-box; }

.bonsai-doc-body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.bonsai-doc-shell {
  width: min(100% - 2rem, 820px);
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a, .bonsai-doc-shell a { color: var(--accent); }

.bonsai-doc-header h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dek { max-width: 64ch; font-size: 1.25rem; }
.meta { color: var(--muted); font-size: 0.9rem; }

.direct-answer {
  margin: 3rem 0;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--ink);
}

.direct-answer h2 { margin-top: 0; font-size: 1.15rem; }
.direct-answer p { margin-bottom: 0; font-size: 1.12rem; }

.bonsai-doc-shell section { margin-top: 3.5rem; }
.bonsai-doc-shell h2 { line-height: 1.15; letter-spacing: -0.025em; }
.bonsai-doc-shell p, .bonsai-doc-shell li { max-width: 72ch; }
.bonsai-doc-shell li + li { margin-top: 0.55rem; }

.bonsai-doc-shell pre {
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid #2a2a2a;
  border-radius: 0.35rem;
  color: #f7f7f2;
  background: #1f2421;
}

.bonsai-doc-shell code { font-family: "SFMono-Regular", Consolas, monospace; }

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 750; }

.source-panel {
  padding: 1.5rem;
  border-left: 5px solid var(--accent);
  background: var(--panel);
}

.related-list { columns: 2; column-gap: 2rem; }
.hub-link { display: inline-block; font-weight: 800; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.guide-card > p:first-child { margin: 0; color: var(--accent); font-weight: 800; }
.guide-card h2 { margin: 0.65rem 0; font-size: 1.25rem; }
.guide-card h2 a { color: var(--ink); text-decoration-thickness: 2px; }

@media (max-width: 640px) {
  .bonsai-doc-shell { width: min(100% - 1.25rem, 820px); padding-top: 2rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .related-list { columns: 1; }
  .direct-answer { box-shadow: 5px 5px 0 var(--ink); }
}
