/*
 * Landing page and rendered docs of Lila Modeler (LILA-067), from the Claude Design mocks
 * `Landing.dc.html` and `Docs.dc.html`. Hand-written, no site generator and no external request:
 * fonts name Archivo and JetBrains Mono first and land on the system stack.
 *
 * The palette is the app's Lila Light / Lila Dark themes (`apps/web/public/lila-{light,dark}.json`),
 * picked by the reader's `prefers-color-scheme`. The canvases in `landing.js` read these tokens.
 */
:root {
  color-scheme: light;
  --bg-base: #faf8ee;
  --bg-surface: #ffffff;
  --bg-elevated: #f1e4f7;
  --bg-hover: #e8d5f2;
  --border: #dcc4e8;
  --border-strong: #7028f0;
  --fg-primary: #280838;
  --fg-muted: #5c4470;
  --fg-disabled: #857392;
  --fg-on-accent: #ffffff;
  --accent-primary: #7028f0;
  --accent-secondary: #f8b8b8;
  --accent-tertiary: #4b0f91;
  --status-warning: #a65d00;
  --canvas-bg: #f6f0dc;
  --canvas-grid: #ede0f5;
  --glow: rgba(112, 40, 240, 0.28);
  --header-bg: rgba(250, 248, 238, 0.88);
  --shadow: 0 24px 60px rgba(40, 8, 56, 0.14);

  --font-ui: Archivo, Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-base: #1c0f2e;
    --bg-surface: #271640;
    --bg-elevated: #331f52;
    --bg-hover: #3d2761;
    --border: #4a3468;
    --border-strong: #dcc4e8;
    --fg-primary: #f8f8e0;
    --fg-muted: #c7b8dc;
    --fg-disabled: #8b7ba3;
    --fg-on-accent: #280838;
    --accent-primary: #a98bff;
    --accent-secondary: #f8b8b8;
    --accent-tertiary: #c4a8ff;
    --status-warning: #ffb84d;
    --canvas-bg: #241536;
    --canvas-grid: #33224c;
    --glow: rgba(169, 139, 255, 0.45);
    --header-bg: rgba(28, 15, 46, 0.88);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg-base); color: var(--fg-primary);
  font-family: var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--font-mono); }
img { max-width: 100%; }
button { font-family: inherit; }
@keyframes blink { 50% { opacity: 0; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-primary); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--fg-primary);
}
.btn:hover { text-decoration: none; background: var(--bg-hover); }
.btn-primary { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--fg-on-accent); font-weight: 700; box-shadow: 0 8px 24px var(--glow); }
.btn-primary:hover { background: var(--accent-primary); filter: brightness(1.08); }
.btn-ghost { background: none; border-color: transparent; color: var(--fg-muted); padding-inline: 6px; }
.btn-ghost:hover { background: none; color: var(--accent-primary); }
.btn-sm { font-size: 13px; padding: 7px 12px; border-radius: 6px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 7px 9px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--fg-muted); cursor: pointer;
}

/* --- Header ------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg-primary); font-weight: 700; font-size: 16px; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav { display: flex; gap: 16px; flex: 1; font-size: 13px; white-space: nowrap; }
.nav a, .menu a { color: var(--fg-muted); display: flex; gap: 6px; }
.nav a span, .menu a span { font-family: var(--font-mono); color: var(--fg-disabled); }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; flex: none; }
.menu-btn { display: none; width: 40px; height: 34px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--fg-primary); font-size: 16px; cursor: pointer; }
.menu { display: none; flex-direction: column; padding: 6px 20px 16px; border-top: 1px solid var(--border); }
.menu a { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--fg-primary); font-size: 15px; gap: 12px; }
.top.open .menu { display: flex; }
@media (max-width: 1100px) {
  .nav, .top-actions .gh { display: none; }
  .menu-btn { display: block; }
}

/* --- Sections ----------------------------------------------------------- */
section { border-bottom: 1px solid var(--border); }
section.alt { background: var(--bg-surface); }
.sec { padding-block: clamp(64px, 10vw, 96px); }
h2.big { margin: 14px 0 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 800; text-wrap: balance; }
.sec-p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--fg-muted); max-width: 58ch; text-wrap: pretty; }
.note { margin: 12px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--fg-disabled); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--canvas-grid) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero {
  /* Where the glow sits when nobody points at the hero: next to the content, not the far edge. */
  --gx: min(88%, calc(50% + 520px)); --gy: 120px;
}
/* The glow drifts by itself, follows the pointer (mouse or finger) and swells while it does. */
.glow { position: absolute; left: var(--gx); top: var(--gy); width: 0; height: 0; pointer-events: none; transition: left 0.9s cubic-bezier(.2, .8, .2, 1), top 0.9s cubic-bezier(.2, .8, .2, 1); }
.glow i { position: absolute; border-radius: 50%; transition: scale 0.6s ease, opacity 0.6s ease; }
.glow .a { width: 720px; height: 720px; left: -360px; top: -360px; background: radial-gradient(circle, var(--glow), transparent 65%); animation: drift-a 16s ease-in-out infinite alternate; }
.glow .b { width: 380px; height: 380px; left: -190px; top: -190px; opacity: 0.55; background: radial-gradient(circle, var(--accent-secondary), transparent 65%); animation: drift-b 11s ease-in-out infinite alternate; }
.hero.pointing .glow .a { scale: 1.15; }
.hero.pointing .glow .b { opacity: 0.8; scale: 1.25; }
@keyframes drift-a { from { translate: -60px -20px; } 50% { translate: 50px 60px; } to { translate: -30px 90px; } }
@keyframes drift-b { from { translate: 140px 40px; } 50% { translate: -120px -30px; } to { translate: 60px -110px; } }
/* Dot grid lit in the accent colour around the pointer. */
.hero .spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background-image: radial-gradient(var(--accent-primary) 1.4px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle 200px at var(--px, 50%) var(--py, 50%), #000, transparent);
  mask-image: radial-gradient(circle 200px at var(--px, 50%) var(--py, 50%), #000, transparent);
}
.hero.pointing .spot { opacity: 0.7; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(36px, 7vw, 64px) 56px; }
.logo-plate { display: inline-block; background: #fff; border-radius: 16px; padding: 14px 22px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.logo-plate img { display: block; width: clamp(220px, 32vw, 340px); height: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 26px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-surface); font-size: 12px; color: var(--fg-muted);
}
.badge b { font-family: var(--font-mono); font-size: 11px; color: var(--fg-on-accent); background: var(--accent-primary); padding: 2px 8px; border-radius: 999px; flex: none; }
.badge:hover { text-decoration: none; border-color: var(--accent-primary); }
.hero h1 { margin: 22px 0 0; font-size: clamp(38px, 6vw, 76px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; max-width: 15ch; text-wrap: balance; }
.hl { color: var(--accent-primary); }
.lede { margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--fg-muted); max-width: 60ch; text-wrap: pretty; }
.lede strong { color: var(--fg-primary); font-weight: 600; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.tags { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-disabled); letter-spacing: 0.04em; text-transform: uppercase; }

.card { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-surface); overflow: hidden; min-width: 0; }
.replay { margin-top: 48px; box-shadow: var(--shadow); }
.bar {
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 12px 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted);
}
.bar.head { border-bottom: 1px solid var(--border); }
.bar.foot { border-top: 1px solid var(--border); font-family: var(--font-ui); font-size: 12px; letter-spacing: 0; text-transform: none; }
.bar b { color: var(--fg-primary); font-weight: 500; }
.bar .grow { flex: 1; }
.live { display: flex; align-items: center; gap: 8px; color: var(--accent-primary); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 10px var(--glow); flex: none; }
.live .dot { animation: blink 1.4s steps(1) infinite; }
.dot.warn { background: var(--status-warning); box-shadow: none; }
.slot { width: 14px; height: 6px; border-radius: 2px; border: 1px solid var(--accent-primary); flex: none; }
.lg { display: flex; align-items: center; gap: 7px; }
.canvas-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--canvas-bg); }
canvas { display: block; width: 100%; height: auto; }
#hero-canvas { aspect-ratio: 1000 / 400; }
#rep-canvas { aspect-ratio: 560 / 320; background: var(--canvas-bg); }
.speed { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.speed output { min-width: 40px; color: var(--accent-primary); font-weight: 700; }
.swipe { display: none; margin: 10px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--fg-disabled); }
@media (max-width: 640px) {
  #hero-canvas { min-width: 720px; }
  .swipe { display: block; }
}
input[type='range'] { -webkit-appearance: none; appearance: none; width: 130px; height: 4px; border-radius: 2px; background: var(--border); outline: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 10px var(--glow); cursor: pointer; }
input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent-primary); cursor: pointer; }

/* 01 Capabilities */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1px; margin-top: 44px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.caps > div { background: var(--bg-surface); padding: 26px 24px; }
.caps .path { font-family: var(--font-mono); font-size: 11px; color: var(--fg-disabled); }
.caps h3 { margin: 8px 0 16px; font-size: 19px; font-weight: 700; }
.caps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--fg-muted); }
.caps li::before { content: '+'; color: var(--accent-primary); margin-right: 10px; font-weight: 700; }

/* 02 How it runs */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: center; }
.levels { list-style: none; margin: 36px 0 0; padding: 0; border-left: 1px solid var(--border); }
.levels li { display: flex; gap: 16px; padding: 10px 0 10px 20px; font-size: 15px; }
.levels .k { font-family: var(--font-mono); font-size: 12px; color: var(--status-warning); padding-top: 2px; }
.levels b { font-weight: 600; }
.levels span.d { color: var(--fg-muted); }
.acc { color: var(--accent-primary) !important; }

/* 03 Compare */
.kpis { margin-top: 40px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-surface); }
.kpis .bar { background: var(--bg-elevated); }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.sw.a { background: var(--accent-secondary); }
.sw.b { background: var(--accent-primary); }
.kpi { display: grid; grid-template-columns: minmax(140px, 1.1fr) minmax(0, 3fr) 170px; gap: 10px 16px; padding: 16px 18px; border-top: 1px solid var(--border); align-items: center; }
.kpi .name { font-size: 14px; font-weight: 600; }
.kpi .bars { display: flex; flex-direction: column; gap: 6px; }
.kpi .bars i { display: block; height: 8px; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.kpi .bars i.a { background: var(--accent-secondary); }
.kpi .bars i.b { background: var(--accent-primary); box-shadow: 0 0 12px var(--glow); }
.kpis.on .bars i { width: var(--w); }
.kpi .delta { display: flex; gap: 14px; justify-content: flex-end; font-family: var(--font-mono); font-size: 12px; }
.kpi .sig { color: var(--accent-primary); }
.kpi .sig.no { color: var(--fg-disabled); }
@media (max-width: 640px) {
  .kpi { grid-template-columns: minmax(0, 1fr) auto; }
  .kpi .bars { grid-column: 1 / -1; grid-row: 2; }
}

/* 04 Quick start */
.qs-links { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin-top: 32px; font-size: 14px; }
.qs-links span { font-family: var(--font-mono); color: var(--fg-disabled); }
.term { background: var(--canvas-bg); }
.term .tabs { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.term .tabs button { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 6px; border: 0; cursor: pointer; background: transparent; color: var(--fg-muted); }
.term .tabs button[aria-selected='true'] { background: var(--bg-surface); color: var(--accent-primary); font-weight: 700; }
.term .tabs .path { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-disabled); }
.term pre { margin: 0; padding: 18px 20px; min-height: 340px; font-size: 12.5px; line-height: 1.75; overflow-x: auto; color: var(--fg-primary); }
.term .ok { color: var(--accent-primary); }
.term .mut { color: var(--fg-muted); }
.term .warn { color: var(--status-warning); }
.term .dim { color: var(--fg-disabled); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-primary); vertical-align: middle; animation: blink 1s steps(1) infinite; }

/* 05 Screens */
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pills button { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-surface); color: var(--fg-primary); }
.pills button[aria-pressed='true'] { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--fg-on-accent); }
.shot { margin: 20px 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); background: var(--bg-surface); }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--fg-muted); }

/* 06 FAQ */
.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent-primary); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--fg-muted); max-width: 70ch; }

/* Footer */
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; padding-block: 48px 64px; font-size: 14px; color: var(--fg-muted); }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid .h { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-disabled); }
.foot-grid .fine { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.6; color: var(--fg-disabled); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live .dot, .caret { animation: none; }
  .kpi .bars i { transition: none; }
  .glow i { animation: none; }
}

/* --- Rendered docs (docs/*.html, generated by tools/build-docs.mjs) ---- */
.docs-top .top-row { gap: 10px 20px; flex-wrap: wrap; padding-block: 10px; }
.docs-top .wrap { max-width: none; }
.docs-top .nav { flex: none; font-size: 14px; gap: 18px; }
.docs-top .nav a.on { color: var(--accent-primary); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; max-width: 300px; min-width: 0; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-surface); margin-left: auto; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg-primary); font: inherit; font-size: 13px; }
.search kbd, .ver { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.ver { font-size: 11px; padding: 5px 8px; border-radius: 6px; }
.drawer-btn { display: none; width: 100%; align-items: center; gap: 10px; padding: 10px 20px; border: 0; border-top: 1px solid var(--border); background: var(--bg-surface); color: var(--fg-primary); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.docs-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; }
.side { position: sticky; top: 57px; align-self: start; height: calc(100vh - 57px); overflow-y: auto; border-right: 1px solid var(--border); padding: 22px 14px 40px; }
.side details { margin-bottom: 6px; }
.side summary { list-style: none; display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; }
.side summary::-webkit-details-marker { display: none; }
.side summary::after { content: '▸'; font-family: var(--font-mono); font-size: 11px; color: var(--fg-disabled); }
.side details[open] summary::after { content: '▾'; }
.side ul { list-style: none; margin: 2px 0 8px 10px; padding: 0 0 0 8px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.side a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 6px; font-size: 14px; color: var(--fg-muted); }
.side a:hover { text-decoration: none; background: var(--bg-hover); }
.side a[aria-current='page'] { color: var(--accent-primary); background: var(--bg-elevated); font-weight: 600; }
.side a small { font-family: var(--font-mono); font-size: 10px; color: var(--fg-disabled); }
.toc { position: sticky; top: 57px; align-self: start; padding: 34px 20px; font-size: 13px; }
.toc .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-disabled); margin-bottom: 12px; }
.toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.toc a { padding: 4px 0 4px 12px; color: var(--fg-muted); }
.doc-main { min-width: 0; padding: 30px clamp(18px, 4vw, 56px) 80px; }
.doc { max-width: 760px; font-size: 16px; line-height: 1.7; color: var(--fg-primary); }
.crumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--fg-disabled); }
.doc h1 { margin: 16px 0 0; font-size: clamp(30px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.02em; }
.doc h3 { margin: 32px 0 8px; font-size: 19px; }
.doc p, .doc li { color: var(--fg-primary); }
.doc .lead { font-size: 18px; color: var(--fg-muted); }
.doc code { font-size: 0.88em; background: var(--bg-elevated); padding: 1px 5px; border-radius: 4px; }
.doc pre { position: relative; margin: 14px 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--canvas-bg); font-size: 13px; line-height: 1.7; overflow-x: auto; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.copy { position: absolute; top: 8px; right: 8px; font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-surface); color: var(--fg-muted); cursor: pointer; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-elevated); }
.doc blockquote { margin: 22px 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--status-warning); border-radius: 10px; background: var(--bg-surface); color: var(--fg-muted); }
.doc blockquote p { color: inherit; margin: 0; }
.doc img { border-radius: 8px; border: 1px solid var(--border); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.cards a { display: block; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-surface); }
.cards a:hover { text-decoration: none; border-color: var(--accent-primary); }
.cards b { display: block; color: var(--fg-primary); font-size: 15px; }
.cards span { font-size: 13px; color: var(--fg-muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; }
.pager a:hover { text-decoration: none; border-color: var(--accent-primary); }
.pager a.next { text-align: right; grid-column: 2; }
.pager span { display: block; font-size: 12px; color: var(--fg-disabled); }
.pager b { color: var(--fg-primary); }
.doc-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--fg-disabled); }
@media (max-width: 1180px) {
  .docs-grid { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer-btn { display: flex; }
  .side { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: auto; z-index: 15; background: var(--bg-base); padding-top: 120px; }
  body.drawer .side { display: block; }
  .docs-top .nav, .ver, .docs-top .btn, .search kbd { display: none; }
}
.nav i, .menu i { font-style: normal; }
