/* conForm docs — shared styles derived from the landing page tokens. */
:root {
  color-scheme: light;
  --canvas: oklch(0.992 0.003 250);
  --field: oklch(0.965 0.007 252);
  --field-strong: oklch(0.94 0.011 254);
  --ink: oklch(0.205 0.025 262);
  --muted: oklch(0.48 0.022 258);
  --quiet: oklch(0.61 0.018 256);
  --rule: oklch(0.88 0.012 254);
  --rule-soft: oklch(0.925 0.008 252);
  --action: oklch(0.225 0.032 262);
  --paper: oklch(0.998 0.002 250);
  --success: oklch(0.55 0.105 153);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.shell { width: var(--chrome-shell); margin-inline: auto; }

/* Header and footer live in chrome.css, shared with centrst.com. This file is
   the document body only. */

/* The document column shares the chrome's outer container and left edge, so the
   brand, the nav and the prose all start on the same line — a centred 860px
   measure under a 1280px header reads as two unrelated layouts. The measure
   itself stays narrow: it is the content that is capped, not the container. */
main.doc.shell {
  /* Fallback repeats chrome.css's value so the column keeps a width if that
     stylesheet fails to load; this file does not define the token itself. */
  width: var(--chrome-shell, min(1216px, calc(100% - 48px)));
  margin-inline: auto;
  padding-block: 52px 80px;
}
main.doc > * { max-width: 860px; }
.crumbs { margin: 0 0 22px; color: var(--quiet); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs a { text-decoration: none; }
h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 380; letter-spacing: -0.03em; line-height: 1.1; }
.lede { max-width: 62ch; margin: 0 0 34px; color: var(--muted); font-size: 1.02rem; }
h2 { margin: 42px 0 12px; font-size: 1.15rem; font-weight: 670; letter-spacing: -0.01em; }
p, li { max-width: 68ch; color: var(--ink); font-size: 0.93rem; }
p.muted, li span.muted { color: var(--muted); }
ul, ol { padding-left: 1.2em; }
li { margin-block: 6px; }
hr { border: 0; border-top: 1px solid var(--rule); margin-block: 40px; }

pre {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 16px 18px;
  font-size: 0.78rem;
  line-height: 1.6;
}
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  background: var(--field-strong);
  padding: 0.1em 0.35em;
}
pre code { background: none; padding: 0; font-size: inherit; }

table { border-collapse: collapse; width: 100%; margin-block: 14px; font-size: 0.85rem; }
th, td { border: 1px solid var(--rule); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--field); font-size: 0.76rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--success);
  background: var(--field);
  padding: 14px 18px;
  margin-block: 20px;
  font-size: 0.88rem;
}

/* Narrow screens get narrower gutters. Overriding the shared token keeps the
   chrome and the document column moving together. */
@media (max-width: 560px) {
  :root { --chrome-shell: calc(100% - 32px); }
}
