/* Shared styles for BenchBOM content pages (docs, about). Matches the landing tokens. */
:root { color-scheme: light dark; }
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #eaedf2; --surface-3: #e0e4ea;
  --border: #d7dce3; --border-strong: #c2c9d3; --text: #191d25; --text-dim: #5c6470; --text-faint: #8a929e;
  --accent: #2f5cff; --accent-ink: #ffffff; --accent-weak: rgba(47,92,255,0.10); --accent-line: rgba(47,92,255,0.30);
  --good: #1c9a53; --good-weak: rgba(28,154,83,0.12);
  --shadow: 0 1px 2px rgba(20,26,40,0.06), 0 8px 24px rgba(20,26,40,0.07);
  --radius: 14px; --radius-sm: 9px;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --grid: rgba(47,92,255,0.055);
}
:root:not([data-theme="light"]) { @media (prefers-color-scheme: dark) {
  --bg: #0e1116; --surface: #161b22; --surface-2: #1d242d; --surface-3: #262f3a;
  --border: #2a323d; --border-strong: #3a4552; --text: #e7ebf1; --text-dim: #99a3b1; --text-faint: #6b7482;
  --accent: #5b82ff; --accent-ink: #0b0e13; --accent-weak: rgba(91,130,255,0.14); --accent-line: rgba(91,130,255,0.38);
  --good: #3ecb7f; --good-weak: rgba(62,203,127,0.15);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.45); --grid: rgba(91,130,255,0.07);
} }
:root[data-theme="dark"] {
  --bg: #0e1116; --surface: #161b22; --surface-2: #1d242d; --surface-3: #262f3a;
  --border: #2a323d; --border-strong: #3a4552; --text: #e7ebf1; --text-dim: #99a3b1; --text-faint: #6b7482;
  --accent: #5b82ff; --accent-ink: #0b0e13; --accent-weak: rgba(91,130,255,0.14); --accent-line: rgba(91,130,255,0.38);
  --good: #3ecb7f; --good-weak: rgba(62,203,127,0.15);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.45); --grid: rgba(91,130,255,0.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.btn:hover { box-shadow: var(--shadow); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }

header.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 62px; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.logo svg { width: 20px; height: 20px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a.txt { padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--text-dim); border-radius: 8px; }
.nav-links a.txt:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
@media (max-width: 680px) { .nav-links a.txt { display: none; } }

main.doc { padding: 48px 0 30px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 10px; }
.doc .lede { font-size: 18px; color: var(--text-dim); margin: 0 0 8px; max-width: 62ch; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 42px 0 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p { color: var(--text); margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.doc .kicker { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
.callout b { color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 20px; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.dcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.dcard h3 { margin: 0 0 6px; font-size: 16px; }
.dcard p { color: var(--text-dim); font-size: 14.5px; margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 28px; }
.toc h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
@media (max-width: 620px) { .toc ul { grid-template-columns: 1fr; } }
.toc a { font-size: 14.5px; }

footer { border-top: 1px solid var(--border); padding: 30px 0 50px; margin-top: 40px; }
.foot-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text-faint); font-size: 13.5px; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.foot-inner .brand { font-size: 15px; }
.foot-inner .spacer { margin-left: auto; }
.foot-inner a { color: var(--text-dim); }
.foot-inner a:hover { color: var(--text); }
