/* ============================================================
   VEIL Window Manager — Site Styles
   ============================================================ */

:root {
  --bg-base:       #0d0f14;
  --bg-surface:    #13161e;
  --bg-elevated:   #1a1f2e;
  --bg-card:       #1e2333;
  --border:        #2a3047;
  --border-subtle: #1f2438;

  --accent:        #4f8ef7;
  --accent-dim:    #3a6fd4;
  --accent-glow:   rgba(79, 142, 247, 0.18);
  --accent-green:  #3dd68c;
  --accent-orange: #f5a623;
  --accent-purple: #a78bfa;

  --text-primary:  #e8eaf0;
  --text-secondary:#8b92a8;
  --text-muted:    #535870;
  --text-code:     #c9d1e8;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  22px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --shadow-card:   0 2px 16px rgba(0,0,0,0.45);
  --shadow-glow:   0 0 32px rgba(79, 142, 247, 0.12);

  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-secondary); max-width: 68ch; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: #7baeff; }
code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bg-elevated);
  color: var(--text-code);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.6rem; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background 0.3s;
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-brand .brand-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
  box-shadow: 0 0 18px rgba(79, 142, 247, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-glow);
}
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 4px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 10vw, 8rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(79,142,247,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 span { color: var(--accent); }
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 4rem; }
.hero-cta .btn { padding: 11px 26px; font-size: 0.95rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stat-value { font-size: 1.55rem; font-weight: 700; color: var(--text-primary); margin-top: 2px; }

/* ── Window Diagram ────────────────────────────────────────── */
.hero-visual {
  margin-top: 4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.visual-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.visual-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red   { background: #f05151; }
.dot-amber { background: #f5a623; }
.dot-green { background: #3dd68c; }
.visual-bar .title-text { margin-left: 8px; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }
.bsp-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  padding: 10px;
  min-height: 220px;
}
.win-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  gap: 8px;
  transition: border-color 0.2s;
}
.win-tile:hover { border-color: var(--accent); }
.win-tile-bar {
  display: flex; gap: 5px; align-items: center;
}
.win-tile-bar .wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.win-tile-lines { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.win-tile-line {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
}
.win-tile-line.accent { background: rgba(79, 142, 247, 0.35); width: 60%; }
.win-tile.span-col-start { grid-column: 1; grid-row: 1 / 3; }
.win-tile.top-right       { grid-column: 2; grid-row: 1; }
.win-tile.bottom-right-a  { grid-column: 2; grid-row: 2; }

/* ── Features ──────────────────────────────────────────────── */
.features { background: var(--bg-surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,142,247,0.08);
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 0.98rem; margin-bottom: 0.45rem; color: var(--text-primary); }
.feature-card p  { font-size: 0.88rem; color: var(--text-secondary); max-width: none; }
.badge-done {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(61, 214, 140, 0.1);
  border: 1px solid rgba(61, 214, 140, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Roadmap ──────────────────────────────────────────────── */
.roadmap-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.roadmap-version {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.22);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 0.75rem;
}
.roadmap-list {
  list-style: none;
  margin-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.roadmap-list li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.roadmap-list li::before {
  content: '•';
  color: var(--accent);
  line-height: 1.1;
}

/* ── Layouts ───────────────────────────────────────────────── */
.layouts { background: var(--bg-base); }
.layout-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1px;
}
.layout-tab {
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
  margin-bottom: -1px;
}
.layout-tab.active, .layout-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.layout-panel { display: none; }
.layout-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.layout-desc h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.layout-desc p  { font-size: 0.95rem; margin-bottom: 1.25rem; }
.layout-desc ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.layout-desc ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.layout-desc ul li::before { content: '→'; color: var(--accent); flex-shrink: 0; }
.layout-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.layout-preview-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.layout-preview-bar .dot { width: 9px; height: 9px; border-radius: 50%; }
.layout-canvas {
  padding: 10px;
  display: grid;
  gap: 5px;
  min-height: 200px;
}
/* BSP canvas */
.canvas-bsp {
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.canvas-bsp .w1 { grid-row: 1/3; grid-column: 1; }
.canvas-bsp .w2 { grid-row: 1;   grid-column: 2; }
.canvas-bsp .w3 { grid-row: 2;   grid-column: 2; }
/* Float canvas */
.canvas-float { position: relative; min-height: 200px; display: block; }
.float-win {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.float-win-bar { height: 24px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; display: flex; align-items: center; padding: 0 8px; gap: 5px; }
.float-win-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
/* Stack canvas */
.canvas-stack { grid-template-columns: 1fr; }
.canvas-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 56px;
}
.canvas-tile .t-bar { display: flex; gap: 5px; align-items: center; }
.canvas-tile .t-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.canvas-tile .t-line { height: 5px; border-radius: 3px; background: var(--bg-elevated); }
.canvas-tile .t-line.a { background: rgba(79,142,247,0.35); width: 55%; }
.canvas-tile.focused { border-color: var(--accent); background: var(--bg-elevated); }

/* ── Config / Docs ─────────────────────────────────────────── */
.config-section { background: var(--bg-surface); }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.config-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.config-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.config-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.config-table tr:last-child td { border-bottom: none; }
.config-table td:first-child { color: var(--accent); font-family: var(--font-mono); font-size: 0.83rem; }
.config-table td:last-child { color: var(--text-secondary); }

/* ── Code block ────────────────────────────────────────────── */
.code-block {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.code-block-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.code-block-header .lang-tag {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { border-color: var(--accent-green); color: var(--accent-green); }
pre {
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--text-code);
}
pre .c  { color: var(--text-muted); font-style: italic; }   /* comment */
pre .k  { color: var(--accent-purple); }                     /* keyword */
pre .s  { color: var(--accent-green); }                      /* string */
pre .n  { color: var(--accent); }                            /* name */
pre .v  { color: var(--accent-orange); }                     /* value */

/* ── Install ───────────────────────────────────────────────── */
.install { background: var(--bg-base); }
.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.install-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: relative;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(79,142,247,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.install-step h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.install-step p  { font-size: 0.85rem; color: var(--text-secondary); max-width: none; }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.cta-banner p  { margin-inline: auto; margin-bottom: 2rem; }
.cta-banner .cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-brand {
  font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── Docs page extras ──────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  font-size: 0.87rem;
}
.docs-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}
.docs-sidebar-title:first-child { margin-top: 0; }
.docs-nav { list-style: none; }
.docs-nav li a {
  display: block;
  padding: 5px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  border-left: 2px solid transparent;
}
.docs-nav li a:hover, .docs-nav li a.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-left-color: var(--accent);
}
.docs-content { min-width: 0; }
.docs-content section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}
.docs-content section:last-child { border-bottom: none; margin-bottom: 0; }
.docs-content h2 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.docs-content h3 { font-size: 1.05rem; margin-top: 1.75rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.docs-content p  { margin-bottom: 1rem; font-size: 0.95rem; }
.docs-content ul, .docs-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.docs-content li { font-size: 0.93rem; color: var(--text-secondary); }
.docs-content .code-block { margin-block: 1.25rem; }
.note-box {
  background: rgba(79,142,247,0.07);
  border: 1px solid rgba(79,142,247,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-block: 1.25rem;
}
.note-box strong { color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .layout-panel.active { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 1.5rem); }
  .docs-sidebar { position: static; }
}
@media (max-width: 700px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-100%);
    transition: transform 0.25s;
    z-index: 999;
  }
  .nav-mobile.open { transform: translateY(0); }
  .nav-mobile a { display: block; padding: 10px 12px; color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 0.95rem; }
  .nav-mobile a:hover { color: var(--text-primary); background: var(--bg-elevated); }
}
