/* Public docs (generated by docs/site/build.py). Self-contained: the same tokens as the site, so the
   pages look like the home page without depending on its stylesheet. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0b111c; --panel: #131d31; --bg3: #16223a; --border: #23324f; --hair: rgba(147, 164, 195, .14);
  --text: #c4cfe2; --text-hi: #eef3fb; --muted: #8494b2; --accent: #3ccf91;
  --blue: #4f8cff; --green: #3ccf91; --amber: #ffb547; --red: #ff6b6b; --violet: #a67cff; --cyan: #38c6e0;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'DejaVu Sans', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'DejaVu Sans Mono', Consolas, monospace;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text-hi); text-decoration-color: var(--accent); text-underline-offset: 3px; }
code { font-family: var(--font-mono); font-size: .92em; color: var(--text-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.d-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

.d-top { position: sticky; top: 0; z-index: 10; background: rgba(11, 17, 28, .85); border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.d-top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 3.5rem; }
.d-brand { color: var(--text-hi); font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.d-nav { display: flex; gap: 1.2rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.d-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; padding: .2rem 0; border-bottom: 2px solid transparent; }
.d-nav a:hover { color: var(--text-hi); }
.d-nav a[aria-current] { color: var(--text-hi); border-bottom-color: var(--accent); }
.d-cta { color: #06130d; background: var(--accent); border-radius: 999px; padding: .35rem .9rem; font-weight: 650; font-size: .875rem; text-decoration: none; white-space: nowrap; }

main section { padding: 2.2rem 0; }
.d-hero { padding-top: clamp(2.5rem, 6vw, 4rem); }
.d-kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.d-kicker::before { content: ""; width: 1.4rem; height: 1.5px; background: var(--accent); }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; color: var(--text-hi); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.015em; color: var(--text-hi); margin-bottom: .6rem; }
h3 { font-size: 1.05rem; color: var(--text-hi); margin-bottom: .35rem; }
.d-lead { font-size: 1.125rem; color: var(--text); max-width: 62ch; }
.d-sub { color: var(--muted); max-width: 70ch; margin-bottom: 1.2rem; }
.d-count { display: inline-block; vertical-align: middle; font-size: .8rem; color: var(--muted); border: 1px solid var(--hair);
  border-radius: 999px; padding: 0 .55rem; margin-left: .4rem; }

.d-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; align-items: start; }
.d-card { padding: 1.2rem 1.25rem; border-radius: 16px; border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(22, 34, 58, .75), rgba(15, 23, 38, .75)); }
.d-card p { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }
.d-card a { font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }

.d-search { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.6rem; max-width: 28rem; }
.d-search span { font-size: .8rem; color: var(--muted); }
.d-search input { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; color: var(--text-hi);
  font: inherit; padding: .7rem .9rem; }
.d-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 207, 145, .15); }

.d-cmds { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.d-cmd { padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--hair); background: rgba(19, 29, 49, .6); }
.d-cmd[hidden] { display: none; }
.d-cmd-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin-bottom: .3rem; }
.d-name { color: var(--accent); font-weight: 700; font-size: 1rem; }
.d-args { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.d-alias { color: var(--muted); font-size: .85rem; }
.d-cmd p { color: var(--text); font-size: .95rem; }
.d-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.d-sup { display: contents; }
.d-chip { display: inline-block; font-size: .78rem; color: var(--text); border: 1px solid var(--hair); border-radius: 999px; padding: .05rem .6rem; }
.d-chip.t-green { color: var(--green); border-color: rgba(60, 207, 145, .35); }
.d-chip.t-muted { color: var(--muted); }
.d-models { display: flex; flex-wrap: wrap; gap: .35rem; }
.d-models .d-chip { font-family: var(--font-mono); font-size: .75rem; }

.d-table { overflow-x: auto; border: 1px solid var(--hair); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .92rem; }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--hair); }
thead th { color: var(--muted); font-weight: 600; font-size: .8rem; letter-spacing: .04em; background: rgba(19, 29, 49, .7); }
tbody th { color: var(--text-hi); font-weight: 650; }
tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
td.yes { color: var(--green); font-weight: 700; text-align: center; }
td.no { color: var(--muted); text-align: center; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(147, 164, 195, .04); }

.d-foot { border-top: 1px solid var(--hair); margin-top: 3rem; padding: 1.5rem 0; color: var(--muted); font-size: .85rem; }

@media (max-width: 640px) {
  .d-top-in { gap: .8rem; flex-wrap: wrap; padding: .4rem 0; }
  .d-nav { order: 3; flex-basis: 100%; }
  .d-brand { flex: 1; }
  .d-cta { display: none; }   /* the reference pages are not a sales page; the home page has the button */
}
