/* Cadmus website. Colours are tokens, redefined for dark mode. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-raised: #ffffff;
  --ink: #0d1324;
  --ink-2: #29324a;
  --muted: #5d667c;
  --line: #e5e8f0;
  --line-strong: #d3d8e4;
  --brand: #4f46e5;
  --brand-ink: #4338ca;
  --brand-soft: #eef0ff;
  --violet: #9333ea;
  --accent: #d97706;
  --ok: #059669;
  --code-bg: #0f1324;
  --code-ink: #e3e7f3;
  --code-muted: #8b93ab;
  --inline-code-bg: #f1f3f9;
  --shadow: 0 1px 2px rgba(13, 19, 36, .06), 0 8px 24px rgba(13, 19, 36, .06);
  --shadow-lg: 0 2px 6px rgba(13, 19, 36, .06), 0 24px 60px rgba(13, 19, 36, .12);
  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d16;
    --bg-soft: #0f1320;
    --bg-raised: #131827;
    --ink: #e9ecf5;
    --ink-2: #c9cfde;
    --muted: #98a1b7;
    --line: #20263a;
    --line-strong: #2c3450;
    --brand: #8b85ff;
    --brand-ink: #a7a2ff;
    --brand-soft: #1b1d3a;
    --violet: #b37cff;
    --accent: #f5a524;
    --ok: #34d399;
    --code-bg: #0d111e;
    --inline-code-bg: #1a2033;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0d16;
  --bg-soft: #0f1320;
  --bg-raised: #131827;
  --ink: #e9ecf5;
  --ink-2: #c9cfde;
  --muted: #98a1b7;
  --line: #20263a;
  --line-strong: #2c3450;
  --brand: #8b85ff;
  --brand-ink: #a7a2ff;
  --brand-soft: #1b1d3a;
  --violet: #b37cff;
  --accent: #f5a524;
  --ok: #34d399;
  --code-bg: #0d111e;
  --inline-code-bg: #1a2033;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.filled { fill: currentColor; stroke: none; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--brand); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1320px; margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.topnav a:hover, .topnav a[aria-current] { color: var(--ink); text-decoration: none; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.version { font: 500 .78rem var(--mono); color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; margin-right: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.menu-btn { display: none; margin-left: -8px; }
[data-theme-toggle] .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-theme-toggle] .sun { display: none; } :root:not([data-theme="light"]) [data-theme-toggle] .moon { display: block; } }
:root[data-theme="dark"] [data-theme-toggle] .sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .moon { display: block; }

/* ---- shared pieces ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { background: var(--bg-raised); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: #1a1446; margin-top: 8px; }
.eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.center { text-align: center; }
.gradient-text { background: linear-gradient(120deg, var(--brand) 10%, var(--violet) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- landing: hero ---- */
.hero { position: relative; overflow: hidden; padding: 84px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 340px at 18% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(520px 320px at 82% 18%, color-mix(in srgb, var(--violet) 18%, transparent), transparent 70%),
    radial-gradient(420px 260px at 60% 75%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--ink-2); font-size: .85rem; font-weight: 500; }
.pill:hover { text-decoration: none; border-color: var(--brand); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; }
.hero-lead { margin: 0 0 30px; max-width: 34em; font-size: 1.16rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.install { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--code-bg); color: var(--code-ink); box-shadow: var(--shadow); }
.install code { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install .prompt { color: var(--code-muted); font-family: var(--mono); }
.copy { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #2a3150; background: #1a2036; color: #cfd5e8; font: 600 .8rem var(--font); cursor: pointer; }
.copy:hover { background: #242b47; }

.terminal { border-radius: var(--radius); background: var(--code-bg); box-shadow: var(--shadow-lg); border: 1px solid #1f2540; overflow: hidden; min-width: 0; }
.terminal-bar, .browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1f2540; }
.terminal-bar span, .browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #39405c; }
.terminal-bar span:nth-child(1), .browser-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2), .browser-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3), .browser-bar span:nth-child(3) { background: #28c840; }
.terminal-bar p, .browser-bar p { margin: 0 0 0 10px; font: 500 .8rem var(--mono); color: var(--code-muted); }
.terminal pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; color: var(--code-ink); font-size: .86rem; line-height: 1.75; }
.t-p { color: #8b85ff; } .t-o { color: #aab2c8; } .t-g { color: #4ade80; } .t-l { color: #7dd3fc; } .t-c { color: #6b7391; }

/* ---- landing: screenshot ---- */
.showcase { padding: 24px 0 40px; }
.browser { border-radius: var(--radius); overflow: hidden; background: var(--code-bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.browser img { width: 100%; }

/* ---- landing: sections ---- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2, .cta h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; }
.section h2.center { max-width: 20em; margin: 0 auto 48px; }
.section-lead { margin: 0 0 22px; font-size: 1.08rem; color: var(--muted); max-width: 36em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.code-card { border-radius: var(--radius); background: var(--code-bg); border: 1px solid #1f2540; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.code-tabs { display: flex; padding: 10px 14px 0; border-bottom: 1px solid #1f2540; }
.code-tabs span { padding: 6px 10px 10px; font: 500 .8rem var(--mono); color: var(--code-muted); }
.code-tabs .active { color: #e3e7f3; box-shadow: inset 0 -2px 0 #8b85ff; }
.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.7; color: var(--code-ink); background: transparent; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: block; padding: 24px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.feature:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.feature h3 { margin: 16px 0 6px; font-size: 1.05rem; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.feature-icon svg { width: 22px; height: 22px; }

.agents { background: radial-gradient(800px 400px at 15% 20%, rgba(139, 133, 255, .25), transparent 70%), linear-gradient(160deg, #141036, #0b0d1c 60%); color: #e9ebf6; }
.agents .eyebrow { color: #b8b4ff; }
.agents .section-lead, .agents .checks li { color: #c4c8dc; }
.agents a:not(.btn) { color: #c2bfff; }
.agents code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.agents .code-card pre code { background: none; padding: 0; }
.agents .checks li::before { background-color: rgba(139, 133, 255, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E"); }
.code-card.dark .code-tabs:not(:first-child) { border-top: 1px solid #1f2540; }

.steps { list-style: none; margin: 0 auto 40px; padding: 0; max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps li { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); }
.steps li > div { min-width: 0; flex: 1; }
.step-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-weight: 700; }
.steps h3 { margin: 4px 0 10px; font-size: 1.02rem; }
.steps pre { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font-size: .86rem; }

.cta { padding: 72px 0; border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.cta p { color: var(--muted); max-width: 30em; }
.cta-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-card { display: block; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink); }
.link-card:hover { text-decoration: none; border-color: var(--brand); }
.link-card strong { display: block; font-family: var(--mono); font-size: .95rem; }
.link-card span { color: var(--muted); font-size: .88rem; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 20px; }
.notfound h1 { margin: 18px 0 6px; letter-spacing: -.03em; }
.notfound p { color: var(--muted); }

/* ---- docs layout ---- */
.docs-layout { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 270px minmax(0, 1fr) 220px; gap: 40px; padding: 0 20px; }
.sidebar { position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 24px 6px 40px 0; }
.search { position: relative; display: flex; align-items: center; margin-bottom: 18px; }
.search svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 40px 0 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--ink); font: 400 .92rem var(--font); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); background: var(--bg); }
.search kbd { position: absolute; right: 10px; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: .75rem; color: var(--muted); background: var(--bg); }
.search-results { list-style: none; margin: -8px 0 18px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); box-shadow: var(--shadow); }
.search-results a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--brand-soft); text-decoration: none; }
.search-results strong { display: block; font-size: .9rem; }
.search-results span { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .empty { padding: 8px 10px; color: var(--muted); font-size: .88rem; }
.nav-group { margin-bottom: 22px; }
.nav-title { margin: 0 0 6px; padding: 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: .93rem; }
.docs-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.docs-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.content { padding: 40px 0 64px; min-width: 0; }
.toc { position: sticky; top: var(--topbar); align-self: start; max-height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 44px 0 40px; font-size: .86rem; }
.toc-title { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; color: var(--muted); border-left: 2px solid transparent; }
.toc .toc-3 a { padding-left: 26px; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.active { color: var(--brand); border-left-color: var(--brand); }

/* ---- prose ---- */
.prose { max-width: 780px; color: var(--ink-2); }
.prose h1 { margin: 0 0 12px; font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; color: var(--ink); font-weight: 800; }
.prose .lead { margin: 0 0 32px; font-size: 1.14rem; color: var(--muted); }
.prose h2 { margin: 48px 0 14px; padding-top: 8px; font-size: 1.5rem; letter-spacing: -.025em; color: var(--ink); line-height: 1.25; }
.prose h3 { margin: 32px 0 10px; font-size: 1.15rem; color: var(--ink); }
.prose h2, .prose h3 { position: relative; }
.prose .anchor { position: absolute; left: -1.1em; padding-right: .3em; color: var(--muted); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; text-decoration: none; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 4px 0; }
.prose li > p { margin: 0; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--inline-code-bg); color: var(--ink); font-size: .86em; overflow-wrap: anywhere; }
.prose kbd { padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; font-size: .82em; background: var(--bg-raised); }
.prose blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose pre { position: relative; margin: 0 0 22px; padding: 16px 18px; border-radius: 12px; background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font-size: .86rem; line-height: 1.7; border: 1px solid #1c2238; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose pre .copy { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .15s; }
.prose pre:hover .copy, .prose pre .copy:focus { opacity: 1; }
.table-wrap { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 650; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.pager { max-width: 780px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.pager-next { text-align: right; grid-column: 2; }
.edit-link { max-width: 780px; margin-top: 24px; font-size: .9rem; }
.edit-link a { color: var(--muted); }

/* Code colours: blocks are dark in both themes. */
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-meta .hljs-keyword { color: #c792ea; }
.hljs-string, .hljs-attr-value, .hljs-template-string { color: #a5e07c; }
.hljs-number, .hljs-literal { color: #f9a861; }
.hljs-comment, .hljs-quote { color: #6b7391; font-style: italic; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #82aaff; }
.hljs-type, .hljs-title.class_ { color: #ffcb6b; }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-params { color: #7fdbca; }
.hljs-meta, .hljs-symbol { color: #89ddff; }
.hljs-punctuation { color: #9aa3bd; }

/* ---- smaller screens ---- */
@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 32px; }
  .hero-grid, .split, .cta-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .section { padding: 64px 0; }
  .topnav { display: none; }
  .docs-page .menu-btn { display: inline-grid; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar {
    position: fixed; z-index: 40; top: var(--topbar); left: 0; bottom: 0; width: min(320px, 86vw); height: auto;
    padding: 20px 16px 40px; background: var(--bg); border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: none; }
  .content { padding-top: 28px; }
  .prose .anchor { display: none; }
}
@media (max-width: 560px) {
  .wrap, .topbar-inner, .docs-layout, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .topbar-inner { gap: 12px; }
  .version { display: none; }
  .features, .cta-links { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .install { display: flex; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .steps li { padding: 16px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
