/* ============================================
   Truzor MM Docs — stylesheet
   ============================================ */

:root,
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0a0d0a;
  --surface: #0e1311;
  --surface-2: #131a17;
  --surface-3: #1a221d;
  --border: #1c241f;
  --border-2: #233028;
  --text: #ffffff;
  --text-dim: #9aa39c;
  --text-faint: #6b7670;
  --green: #22e07a;
  --green-2: #16b863;
  --green-3: #3dff90;
  --green-text: #3dff90;
  --green-glow: rgba(34, 224, 122, 0.45);
  --green-glow-soft: rgba(34, 224, 122, 0.12);
  --orange: #ffb454;
  --red: #ff6363;
  --blue: #5eb5ff;
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar-width: 280px;
  --topbar-height: 64px;
  --container: 920px;

  /* theme-aware tokens */
  --topbar-bg: rgba(8, 11, 9, 0.85);
  --topbar-border: var(--border);
  --hover-bg: rgba(255, 255, 255, 0.04);
  --hover-bg-strong: rgba(255, 255, 255, 0.06);
  --kbd-bg: rgba(255, 255, 255, 0.04);
  --modal-backdrop: rgba(0, 0, 0, 0.7);
  --title-fade-start: #ffffff;
  --title-fade-end: rgba(255, 255, 255, 0.65);
  --code-text: var(--green-3);
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7faf8;
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --surface-3: #e6ece9;
  --border: #e0e6e2;
  --border-2: #cdd5d0;
  --text: #0a1410;
  --text-dim: #4a5450;
  --text-faint: #7a847d;
  --green: #14a85a;
  --green-2: #0f8a48;
  --green-3: #14a85a;
  --green-text: #0f8a48;
  --green-glow: rgba(20, 168, 90, 0.32);
  --green-glow-soft: rgba(20, 168, 90, 0.10);
  --orange: #d97706;
  --red: #dc2626;
  --blue: #1d6eda;

  --topbar-bg: rgba(255, 255, 255, 0.85);
  --topbar-border: var(--border);
  --hover-bg: rgba(10, 20, 16, 0.05);
  --hover-bg-strong: rgba(10, 20, 16, 0.07);
  --kbd-bg: rgba(10, 20, 16, 0.05);
  --modal-backdrop: rgba(15, 25, 20, 0.45);
  --title-fade-start: #0a1410;
  --title-fade-end: rgba(10, 20, 16, 0.6);
  --code-text: #0f8a48;
}

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

a { color: var(--green); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--green-3); }

img, svg { display: block; max-width: 100%; }

::selection {
  background: var(--green);
  color: #00120a;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--topbar-border);
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.topbar-brand:hover { color: var(--text); }
.topbar-brand img { width: 32px; height: 32px; }
.topbar-brand .docs-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--green-glow-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.topbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================
   SEARCH TRIGGER (top bar)
   ============================================ */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font: inherit;
  font-size: 13.5px;
  width: 320px;
  max-width: 320px;
  cursor: text;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  margin-left: auto;
}
.search-trigger:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  color: var(--text-dim);
}
.search-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.search-trigger-text {
  flex: 1;
  text-align: left;
}
.search-trigger-kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  color: var(--text-faint);
}
.search-trigger-kbd .kbd-pc { display: none; }
@supports (-webkit-touch-callout: none) {
  /* iOS / macOS */
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.search-modal.is-open { display: flex; }
.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.search-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -12px rgba(0,0,0,0.7),
    0 0 0 1px rgba(34,224,122,0.06),
    0 0 80px -20px rgba(34,224,122,0.15);
  animation: search-pop 0.18s cubic-bezier(0.2, 0.8, 0.4, 1.2);
}
@keyframes search-pop {
  0% { opacity: 0; transform: translateY(-12px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap > svg {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.search-input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--green);
  padding: 4px 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-input::placeholder {
  color: var(--text-faint);
  opacity: 1;
  -webkit-text-fill-color: var(--text-faint);
}
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 30px var(--bg-2) inset;
  caret-color: var(--green);
}
.search-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.search-close:hover { background: var(--surface); color: var(--text-dim); }
.search-close svg { width: 14px; height: 14px; }

.search-results {
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  transition: background 0.1s ease;
}
.search-result:hover,
.search-result.is-active {
  background: var(--surface);
}
.search-result.is-active {
  background: var(--surface-2);
  outline: 1px solid rgba(34,224,122,0.25);
}
.search-result-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.search-result-title {
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.search-result-snippet {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result mark {
  background: var(--green-glow-soft);
  color: var(--green-text);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}
.search-empty {
  padding: 36px 20px 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}
.search-empty strong { color: var(--text-dim); display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; }

.search-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-faint);
}
.search-footer kbd {
  display: inline-block;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 4px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  min-width: 18px;
  text-align: center;
}
.topbar-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.topbar-link:hover {
  color: var(--text);
  background: var(--hover-bg);
}
.topbar-link.cta {
  background: var(--green);
  color: #00120a;
}
.topbar-link.cta:hover {
  background: var(--green-3);
  color: #00120a;
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ============================================
   LAYOUT
   ============================================ */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 48px;
  align-items: start;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  padding: 32px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 3px;
}

.sidebar-section {
  margin-bottom: 28px;
}

/* ============================================
   FLOATING THEME SWITCHER (bottom-right corner)
   ============================================ */
.theme-switcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 40;
  display: flex;
  gap: 2px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow:
    0 10px 30px -8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(34, 224, 122, 0.04),
    0 0 40px -16px rgba(34, 224, 122, 0.18);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.theme-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  color: var(--text-faint);
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.theme-btn:hover {
  background: var(--hover-bg-strong);
  color: var(--text);
}
.theme-btn.is-active {
  background: var(--green-glow-soft);
  color: var(--green-text);
}
.theme-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.theme-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.theme-btn:hover svg { transform: scale(1.08); }
@media (max-width: 920px) {
  .theme-switcher {
    bottom: 16px;
    right: 16px;
  }
}
.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #c8d3cd;
  margin-bottom: 12px;
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-section-title .section-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--green);
  opacity: 0.95;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.sidebar-link .sidebar-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  transition: color 0.15s ease, transform 0.15s ease;
}
.sidebar-link:hover {
  color: var(--text);
  background: var(--hover-bg);
}
.sidebar-link:hover .sidebar-icon {
  color: var(--green);
  transform: scale(1.08);
}
.sidebar-link.active {
  color: var(--green);
  background: var(--green-glow-soft);
  font-weight: 600;
}
.sidebar-link.active .sidebar-icon {
  color: var(--green);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* ============================================
   CONTENT
   ============================================ */
.content {
  padding: 48px 0 120px;
  min-width: 0;
  max-width: var(--container);
}

.doc-section {
  margin-bottom: 80px;
  scroll-margin-top: calc(var(--topbar-height) + 24px);
}
.doc-section:last-child { margin-bottom: 0; }

.doc-section h1 {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(to right, var(--title-fade-start) 0%, var(--title-fade-start) 60%, var(--title-fade-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doc-section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 56px 0 16px;
  scroll-margin-top: calc(var(--topbar-height) + 24px);
  color: var(--text);
}
.doc-section h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin: 36px 0 14px;
  color: var(--text);
}

.doc-section h2:first-child,
.doc-section h3:first-child { margin-top: 0; }

.doc-section .lead {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}

.doc-section p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 16px;
}
.doc-section p strong,
.doc-section li strong { color: var(--text); font-weight: 700; }

.doc-section ul, .doc-section ol {
  margin: 0 0 20px 22px;
  color: var(--text-dim);
}
.doc-section li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.65;
}
.doc-section li::marker { color: var(--green); }

.doc-section code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--code-text);
  white-space: nowrap;
}
.doc-section pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 16px 0 24px;
  font-size: 13.5px;
  line-height: 1.6;
}
.doc-section pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
  white-space: pre;
  font-size: inherit;
}

/* ============================================
   CALLOUTS
   ============================================ */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 20px 0 24px;
}
.callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.callout-body {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
.callout-body strong { color: var(--text); }
.callout-body p { margin: 0 0 8px; font-size: 15px; }
.callout-body p:last-child { margin: 0; }

.callout.info {
  border-color: rgba(94,181,255,0.25);
  background: rgba(94,181,255,0.05);
}
.callout.info .callout-icon { background: rgba(94,181,255,0.18); color: var(--blue); }

.callout.success {
  border-color: rgba(34,224,122,0.3);
  background: rgba(34,224,122,0.06);
}
.callout.success .callout-icon { background: rgba(34,224,122,0.2); color: var(--green); }

.callout.warning {
  border-color: rgba(255,180,84,0.3);
  background: rgba(255,180,84,0.05);
}
.callout.warning .callout-icon { background: rgba(255,180,84,0.18); color: var(--orange); }

.callout.danger {
  border-color: rgba(255,99,99,0.3);
  background: rgba(255,99,99,0.05);
}
.callout.danger .callout-icon { background: rgba(255,99,99,0.18); color: var(--red); }

/* ============================================
   STEP LIST (deal flow)
   ============================================ */
.steps {
  list-style: none;
  margin: 0 0 24px !important;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 16px 18px 16px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px !important;
  counter-increment: step;
  color: var(--text-dim);
  font-size: 15px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-glow-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(34,224,122,0.3);
}
.steps li::marker { content: ''; }
.steps li strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ============================================
   COMMAND TABLE
   ============================================ */
.cmd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.cmd-table th, .cmd-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
}
.cmd-table td { background: var(--surface); color: var(--text-dim); }
.cmd-table td:first-child { color: var(--green-3); font-family: 'JetBrains Mono', monospace; font-size: 13px; white-space: nowrap; }
.cmd-table .badge-admin {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255,180,84,0.15);
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
  font-family: 'Manrope', sans-serif;
}

/* ============================================
   COIN GRID
   ============================================ */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.coin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.coin-card img { width: 36px; height: 36px; }
.coin-card-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.coin-card-meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}
.coin-card.soon {
  opacity: 0.5;
}
.coin-card.soon .coin-card-name::after {
  content: 'soon';
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--hover-bg-strong);
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  background: transparent;
  background-color: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}
.faq-q:hover { background: var(--surface-2); }
.faq-q:focus { outline: 0; }
.faq-q:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.faq-q .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-faint);
}
.faq-item.open .faq-q .chevron { transform: rotate(180deg); color: var(--green); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.docs-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 36px 0 60px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
}
.docs-footer a { color: var(--text-dim); }
.docs-footer a:hover { color: var(--green); }
.docs-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 84%;
    max-width: 320px;
    height: calc(100vh - var(--topbar-height));
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 40;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--topbar-height) 0 0 0;
    background: rgba(0,0,0,0.6);
    z-index: 35;
  }
  .sidebar-backdrop.is-open { display: block; }
  .menu-toggle { display: inline-flex; }
  .topbar-links .topbar-link:not(.cta) { display: none; }
  .content { padding: 32px 0 80px; }
  .doc-section { margin-bottom: 56px; }
  .doc-section h1 { font-size: 36px; }
  .doc-section h2 { font-size: 26px; margin-top: 40px; }
  .topbar-brand .docs-tag { display: none; }
  .search-trigger { width: auto; padding: 8px; }
  .search-trigger-text,
  .search-trigger-kbd { display: none; }
  .search-trigger svg { width: 16px; height: 16px; }
  .search-footer { display: none; }
}
@media (max-width: 540px) {
  .topbar-brand span:not(.docs-tag) { display: none; }
}
