/* 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);
  --shell: min(860px, calc(100% - 48px));
}

* { 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(--shell); margin-inline: auto; }

header.masthead {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--canvas);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  font-size: 0.82rem;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 600; }
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); }
.nav-links a { text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }

main.doc { padding-block: 52px 80px; }
.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;
}

footer.doc-footer { border-top: 1px solid var(--rule); color: var(--quiet); font-size: 0.72rem; }
.doc-footer .shell { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 22px; }
.doc-footer a { text-decoration: none; }

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .nav { flex-direction: column; align-items: flex-start; padding-block: 12px; }
}
