/* Minimal docs stylesheet — keeps the feel of fathomdx.io. */
:root {
  --ink: #0d1f26;
  --paper: #f5efe6;
  --muted: #6b7a83;
  --accent: #c8612c;
  --rule: #d6cdbf;
  --code-bg: #ecdfcc;
  --max: 72ch;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.docs-body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
.docs-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.docs-brand { color: var(--ink); text-decoration: none; font-weight: 600; }
.docs-brand-sep { color: var(--muted); }
.docs-docs-link { color: var(--muted); text-decoration: none; }
.docs-docs-link:hover { color: var(--ink); }
.docs-header-spacer { flex: 1; }
.docs-source { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.docs-source:hover { color: var(--accent); }
.docs-layout { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; max-width: 80rem; margin: 0 auto; padding: 2rem 1.5rem; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } }
.docs-sidebar { font-size: 0.92rem; position: sticky; top: 2rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; }
.nav-group { margin-bottom: 1.5rem; }
.nav-label { font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.4rem; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; }
.docs-nav li { padding: 0.2rem 0; }
.docs-nav a { color: var(--ink); text-decoration: none; }
.docs-nav a:hover { color: var(--accent); }
.docs-nav a.active { color: var(--accent); font-weight: 600; }
.nav-empty { color: var(--muted); font-style: italic; font-size: 0.85rem; }

.docs-main { min-width: 0; }
.docs-article { max-width: var(--max); }
.docs-article h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
.docs-article h2 { margin: 2rem 0 0.75rem; font-size: 1.4rem; }
.docs-article h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.docs-article p, .docs-article ul, .docs-article ol { margin: 0.75rem 0; }
.docs-article a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.docs-article code { background: var(--code-bg); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.92em; }
.docs-article pre { background: var(--ink); color: var(--paper); padding: 1rem; border-radius: 4px; overflow-x: auto; line-height: 1.5; }
.docs-article pre code { background: transparent; padding: 0; color: inherit; font-size: 0.9rem; }
.docs-article table { border-collapse: collapse; margin: 1rem 0; width: 100%; }
.docs-article th, .docs-article td { border: 1px solid var(--rule); padding: 0.4rem 0.7rem; text-align: left; vertical-align: top; }
.docs-article th { background: var(--code-bg); font-weight: 600; }
.docs-article blockquote { border-left: 3px solid var(--accent); margin: 1rem 0; padding: 0.5rem 1rem; color: var(--muted); }
.docs-lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 1rem; }
.docs-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }

.docs-quadrant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.quadrant-card { border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.25rem; }
.quadrant-card h2 { margin-top: 0; font-size: 1.15rem; }
.quadrant-card p { color: var(--muted); font-size: 0.9rem; }
.quadrant-card ul { list-style: none; padding: 0; }
.quadrant-card li { padding: 0.15rem 0; }
.quadrant-card a { color: var(--accent); text-decoration: none; }
.quadrant-card a:hover { text-decoration: underline; }

.docs-footer { text-align: center; padding: 2rem 1rem; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--rule); }
