/* ---------------------------------------------------------------------------
   Orpheus Documentation page — extracted from the two inline <style> blocks
   that previously lived in:
     - app/views/orpheus/documentation/index.html.erb
     - app/views/layouts/orpheus_documentation.html.erb
   Rules under `body.orpheus-doc-body { ... }` were originally global in the
   layout's <style>; they're scoped to the doc layout's body class so they
   don't bleed into other orpheus pages now that this file ships with
   orpheus.tailwind.css.
   --------------------------------------------------------------------------- */

/* ===== Layout shell (was inline in orpheus_documentation.html.erb) ========= */
body.orpheus-doc-body {
  --bg-primary: #0a0f1a;
  --bg-card: #111827;
  --border-color: rgba(255, 255, 255, 0.06);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;

  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[data-theme="light"] body.orpheus-doc-body {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  background: #f8fafc;
  color: #334155;
}
body.orpheus-doc-body code,
body.orpheus-doc-body pre {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
}

/* ===== Hero ===== */
.doc-h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  text-align: left;
}
@media (min-width: 640px) {
  .doc-h1 { font-size: 2.25rem; }
}
.doc-intro {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 640px;
}

/* ===== Long-form section ===== */
.doc-section {
  margin-top: 80px;
  scroll-margin-top: 32px;
}
.doc-section.is-first { margin-top: 56px; }

.doc-section-header {
  margin-bottom: 20px;
}
.doc-section-header .doc-section-title { margin-bottom: 0; }
.doc-section-intro {
  margin-top: 14px;
  margin-bottom: 0;
}

.doc-section-asset {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.55) 100%);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  container-type: inline-size;
}
.doc-section-asset:hover {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 40px -24px rgba(59, 130, 246, 0.35);
}
.doc-section-asset::after {
  content: 'Open page \2192';
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.6);
  color: #93c5fd;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.doc-section-asset:hover::after,
.doc-section-asset:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .doc-section-asset::after { transition: none; transform: none; }
}

/* ===== Mockup framework =====
   Each mockup is authored at a fixed 800x500 native size and scaled to
   fit the .doc-section-asset frame using a container query. This gives
   real px-aligned borders and integer font sizes at any rendered width. */
.doc-mockup {
  width: 800px;
  height: 500px;
  transform: scale(calc(100cqw / 800px));
  transform-origin: top left;
  padding: 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  overflow: hidden;
}
.doc-mockup * { box-sizing: border-box; }

.doc-mockup-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.doc-mockup-row.is-between { justify-content: space-between; }
.doc-mockup-row.is-tight { gap: 4px; }
.doc-mockup-row.is-wide { gap: 14px; }
.doc-mockup-grow { flex: 1; min-width: 0; }
.doc-mockup-spacer { flex: 1; }

.doc-mockup-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-mockup-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doc-mockup-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.doc-mockup-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.doc-mockup-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.doc-mockup-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #94a3b8;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(100, 116, 139, 0.28);
  white-space: nowrap;
}
.doc-mockup-pill.is-sm { height: 22px; padding: 0 10px; font-size: 11px; }
.doc-mockup-pill.is-active { color: #93c5fd; background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.5); }
.doc-mockup-pill.is-success { color: #34d399; background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.45); }
.doc-mockup-pill.is-warn { color: #fcd34d; background: rgba(234, 179, 8, 0.18); border-color: rgba(234, 179, 8, 0.45); }
.doc-mockup-pill.is-amber { color: #fcd34d; background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.45); }
.doc-mockup-pill.is-danger { color: #fca5a5; background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.45); }
.doc-mockup-pill.is-purple { color: #c4b5fd; background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.45); }
.doc-mockup-pill.is-cyan { color: #67e8f9; background: rgba(6, 182, 212, 0.18); border-color: rgba(6, 182, 212, 0.45); }

.doc-mockup-stat {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-top: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
}
.doc-mockup-stat.is-compact { padding: 10px 12px; }
.doc-mockup-stat.color-amber { border-top-color: #f59e0b; }
.doc-mockup-stat.color-red { border-top-color: #ef4444; }
.doc-mockup-stat.color-purple { border-top-color: #a855f7; }
.doc-mockup-stat.color-cyan { border-top-color: #06b6d4; }
.doc-mockup-stat.color-emerald { border-top-color: #10b981; }
.doc-mockup-stat.color-yellow { border-top-color: #eab308; }
.doc-mockup-stat.color-indigo { border-top-color: #6366f1; }
.doc-mockup-stat.color-rose { border-top-color: #f43f5e; }
.doc-mockup-stat-label {
  font-size: 10px; font-weight: 600; color: #64748b;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
}
.doc-mockup-stat-value {
  font-size: 22px; font-weight: 700; color: #f1f5f9; line-height: 1.05;
}
.doc-mockup-stat-value.is-sm { font-size: 18px; }
.doc-mockup-stat-value.color-amber { color: #fbbf24; }
.doc-mockup-stat-value.color-emerald { color: #10b981; }
.doc-mockup-stat-value.color-rose { color: #fda4af; }
.doc-mockup-stat-value.color-yellow { color: #fde047; }

.doc-mockup-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}
.doc-mockup-card.is-flat { background: rgba(15, 23, 42, 0.5); }
.doc-mockup-card.is-success { border-color: rgba(16, 185, 129, 0.45); }
.doc-mockup-card.is-amber { border-color: rgba(245, 158, 11, 0.5); }
.doc-mockup-card.is-danger-bg { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.35); }

.doc-mockup-row-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-left: 3px solid #10b981;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  min-width: 0;
}
.doc-mockup-row-item.is-success { border-left-color: #10b981; }
.doc-mockup-row-item.is-warn { border-left-color: #eab308; background: rgba(234, 179, 8, 0.05); }
.doc-mockup-row-item.is-amber { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.05); }
.doc-mockup-row-item.is-orange { border-left-color: #f97316; background: rgba(249, 115, 22, 0.05); }
.doc-mockup-row-item.is-danger { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.doc-mockup-row-item.is-medium { border-left-color: #eab308; background: rgba(234, 179, 8, 0.05); }

.doc-mockup-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 18px; padding: 0 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  white-space: nowrap;
}
.doc-mockup-badge.is-success { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
.doc-mockup-badge.is-warn { background: rgba(234, 179, 8, 0.22); color: #fde047; }
.doc-mockup-badge.is-amber { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.doc-mockup-badge.is-danger { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.doc-mockup-badge.is-orange { background: rgba(249, 115, 22, 0.22); color: #fed7aa; }
.doc-mockup-badge.is-info { background: rgba(59, 130, 246, 0.22); color: #93c5fd; }
.doc-mockup-badge.is-cyan { background: rgba(6, 182, 212, 0.22); color: #67e8f9; }
.doc-mockup-badge.is-purple { background: rgba(168, 85, 247, 0.22); color: #c4b5fd; }
.doc-mockup-badge.is-neutral { background: rgba(100, 116, 139, 0.28); color: #cbd5e1; }
.doc-mockup-badge.is-solid-success { background: rgba(16, 185, 129, 0.85); color: #fff; }
.doc-mockup-badge.is-solid-amber { background: rgba(245, 158, 11, 0.85); color: #fff; }

.doc-mockup-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(100, 116, 139, 0.22); color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.35);
}
.doc-mockup-chip.is-success { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.45); }
.doc-mockup-chip.is-danger { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border-color: rgba(239, 68, 68, 0.45); }
.doc-mockup-chip.is-purple { background: rgba(168, 85, 247, 0.18); color: #c4b5fd; border-color: rgba(168, 85, 247, 0.45); }
.doc-mockup-chip.is-amber { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border-color: rgba(245, 158, 11, 0.45); }
.doc-mockup-chip.is-info { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border-color: rgba(59, 130, 246, 0.45); }
.doc-mockup-chip.is-indigo { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.45); }

.doc-mockup-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: #3b82f6; flex-shrink: 0; position: relative;
}
.doc-mockup-avatar.is-purple { background: #a855f7; }
.doc-mockup-avatar.is-emerald { background: #10b981; }
.doc-mockup-avatar.is-amber { background: #f59e0b; }
.doc-mockup-avatar.is-rose { background: #f43f5e; }
.doc-mockup-avatar.is-sm { width: 22px; height: 22px; font-size: 10px; }
.doc-mockup-avatar-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; border: 2px solid #0f172a;
}
.doc-mockup-avatar-dot.is-warn { background: #eab308; }
.doc-mockup-avatar-dot.is-danger { background: #ef4444; }

.doc-mockup-toggle {
  width: 30px; height: 16px; border-radius: 999px;
  background: rgba(100, 116, 139, 0.4); position: relative; flex-shrink: 0;
}
.doc-mockup-toggle::after {
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; position: absolute; top: 2px; left: 2px;
}
.doc-mockup-toggle.is-on { background: rgba(16, 185, 129, 0.7); }
.doc-mockup-toggle.is-on::after { left: 16px; }
.doc-mockup-toggle.is-on-cyan { background: rgba(6, 182, 212, 0.8); }
.doc-mockup-toggle.is-on-cyan::after { left: 16px; }

.doc-mockup-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  background: rgba(59, 130, 246, 0.6); color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.7);
  white-space: nowrap;
}
.doc-mockup-btn.is-sm { height: 24px; padding: 0 10px; font-size: 11px; }
.doc-mockup-btn.is-block { display: flex; width: 100%; }
.doc-mockup-btn.is-cyan { background: rgba(6, 182, 212, 0.7); border-color: rgba(6, 182, 212, 0.8); }
.doc-mockup-btn.is-success { background: rgba(16, 185, 129, 0.85); border-color: rgba(16, 185, 129, 0.95); }
.doc-mockup-btn.is-success-ghost { background: rgba(16, 185, 129, 0.18); color: #34d399; border-color: rgba(16, 185, 129, 0.45); }
.doc-mockup-btn.is-danger-ghost { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border-color: rgba(239, 68, 68, 0.45); }
.doc-mockup-btn.is-ghost { background: transparent; color: #cbd5e1; border-color: rgba(100, 116, 139, 0.4); }

.doc-mockup-link { font-size: 12px; color: #67e8f9; font-weight: 600; }
.doc-mockup-muted { color: #94a3b8; }
.doc-mockup-dim { color: #64748b; }
.doc-mockup-mono { font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

.doc-mockup-eyebrow {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.doc-mockup-h {
  font-size: 14px; font-weight: 700; color: #f1f5f9; line-height: 1.2;
}

.doc-mockup-shield {
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(6, 182, 212, 0.18); color: #67e8f9;
}
.doc-mockup-shield.color-cyan { background: rgba(6, 182, 212, 0.18); color: #67e8f9; }
.doc-mockup-shield.color-purple { background: rgba(168, 85, 247, 0.2); color: #c4b5fd; }
.doc-mockup-shield.color-red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.doc-mockup-shield.color-amber { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.doc-mockup-shield.color-emerald { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.doc-mockup-shield.color-indigo { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.doc-mockup-shield.is-sm { width: 18px; height: 18px; }
.doc-mockup-shield svg { width: 14px; height: 14px; }

.doc-mockup-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 100%; padding-top: 4px;
}
.doc-mockup-bar { flex: 1; background: #3b82f6; border-radius: 1px 1px 0 0; min-height: 6px; }
.doc-mockup-bar.alt { background: #6366f1; }

.doc-mockup-code {
  background: #02060f;
  border: 1px solid rgba(100, 116, 139, 0.4);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.55;
}
.doc-mockup-code .prompt { color: #34d399; }
.doc-mockup-code .comment { color: #64748b; }
.doc-mockup-caret {
  display: inline-block; width: 6px; height: 13px;
  background: #34d399; vertical-align: -2px;
  animation: doc-cursor-blink 1s step-end infinite;
}

.doc-mockup-progress {
  width: 100%; height: 6px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.7); overflow: hidden;
}
.doc-mockup-progress > span {
  display: block; height: 100%; background: #06b6d4; border-radius: 999px;
}

.doc-mockup-rule {
  display: flex; align-items: center; gap: 10px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}
.doc-mockup-rule.is-fail {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.3);
}
.doc-mockup-check {
  width: 14px; height: 14px; border-radius: 50%;
  background: #10b981; color: #022c22;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-mockup-x {
  width: 14px; height: 14px; border-radius: 50%;
  background: #ef4444; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.doc-mockup-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 12px;
}
.doc-mockup-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: doc-pulse 1.6s ease-in-out infinite;
}

.doc-mockup-tv {
  background: #0a0f1a; border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
}
.doc-mockup-tv-head {
  background: rgba(245, 158, 11, 0.15);
  padding: 6px 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; color: #fcd34d;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
}
.doc-mockup-tv-body {
  flex: 1;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 10px; color: #94a3b8;
}
.doc-mockup-tv-line { height: 2px; border-radius: 1px; background: currentColor; opacity: 0.5; }
.doc-mockup-tv-foot {
  padding: 6px 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  color: #94a3b8;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.doc-mockup-table {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 8px; overflow: hidden;
  background: rgba(15, 23, 42, 0.45);
}
.doc-mockup-table-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.6fr 0.5fr 0.5fr 0.6fr;
  align-items: center;
  gap: 8px; padding: 10px 14px;
  border-top: 1px solid rgba(100, 116, 139, 0.18);
  font-size: 12px;
}
.doc-mockup-table-row.is-head {
  border-top: none; background: rgba(15, 23, 42, 0.6);
  font-size: 10px; font-weight: 700; color: #64748b;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px;
}

.doc-mockup-divider { height: 1px; background: rgba(100, 116, 139, 0.18); }

.doc-mockup-footer {
  margin-top: auto; padding-top: 6px;
  text-align: center; font-size: 11px; color: #475569;
}

.doc-mockup-os-tab {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.28);
}
.doc-mockup-os-tab.is-active {
  color: #93c5fd; background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.55);
}

.doc-mockup-dropzone {
  border: 1.5px dashed rgba(6, 182, 212, 0.55);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 8px;
  padding: 18px 16px;
  display: flex; align-items: center; gap: 16px;
}

.doc-mockup-svg-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== Numbered pin overlay (authored at native 800x500 px so they scale with the mockup transform) ===== */
.doc-mockup-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font: 700 12px/1 'Inter', system-ui, -apple-system, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.28), 0 4px 12px rgba(2, 6, 23, 0.45);
  z-index: 5;
  pointer-events: auto;
  cursor: help;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.doc-mockup-pin.is-active {
  background: #2563eb;
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.45), 0 8px 20px rgba(2, 6, 23, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .doc-mockup-pin, .doc-mockup-pin.is-active { transition: none; transform: none; }
}

/* ===== Per-section callout caption list (between asset and body) ===== */
.doc-callouts {
  margin-top: 16px;
  margin-bottom: 0;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  counter-reset: doc-callout;
}
.doc-callouts li {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #cbd5e1;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 8px;
  cursor: help;
  transition: background 0.15s ease, color 0.15s ease;
}
.doc-callouts li::before {
  counter-increment: doc-callout;
  content: counter(doc-callout);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  font: 700 11px/1 'Inter', system-ui, -apple-system, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.doc-callouts li.is-active {
  background: rgba(59, 130, 246, 0.10);
  color: #f1f5f9;
}
.doc-callouts li.is-active::before {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .doc-callouts li, .doc-callouts li::before { transition: none; transform: none; }
}
.doc-callouts strong { color: #f1f5f9; font-weight: 600; }
@media (max-width: 720px) {
  .doc-callouts { grid-template-columns: 1fr; }
}

/* ===== Inline admonitions (Tip / Note / Important / Warning) ===== */
.doc-callout {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.doc-callout-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.doc-callout-label { font-weight: 700; margin-right: 4px; }
.doc-callout-body { color: #cbd5e1; min-width: 0; }
.doc-callout.is-tip       { background: rgba(6, 182, 212, 0.08);  border-color: rgba(6, 182, 212, 0.35); }
.doc-callout.is-note      { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.35); }
.doc-callout.is-important { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.35); }
.doc-callout.is-warning   { background: rgba(239, 68, 68, 0.08);  border-color: rgba(239, 68, 68, 0.35); }
.doc-callout.is-tip       .doc-callout-icon, .doc-callout.is-tip       .doc-callout-label { color: #67e8f9; }
.doc-callout.is-note      .doc-callout-icon, .doc-callout.is-note      .doc-callout-label { color: #93c5fd; }
.doc-callout.is-important .doc-callout-icon, .doc-callout.is-important .doc-callout-label { color: #fcd34d; }
.doc-callout.is-warning   .doc-callout-icon, .doc-callout.is-warning   .doc-callout-label { color: #fca5a5; }

.doc-section-body {
  margin-top: 24px;
}
.doc-section-eyebrow {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 8px;
}
.doc-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.doc-section-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #cbd5e1;
}
.doc-section-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 16px;
  background: rgba(59, 130, 246, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.6);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 6px 16px -8px rgba(59, 130, 246, 0.55);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, gap 0.2s ease;
}
.doc-section-cta:hover {
  gap: 10px;
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(59, 130, 246, 0.7);
  transform: translateY(-1px);
}
.doc-section-cta:active { transform: translateY(0); }
.doc-section-cta:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.doc-section-cta svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .doc-section-cta { transition: none; }
  .doc-section-cta:hover { transform: none; }
}

/* ===== POC phase cards ===== */
.doc-phase {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.doc-phase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.doc-phase.phase-1::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.doc-phase.phase-2::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.doc-phase.phase-3::before { background: linear-gradient(90deg, #10b981, #34d399); }
.doc-phase-num {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.08em;
}
.doc-phase-week {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.doc-phase-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 4px;
}
.doc-phase-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-phase-list li {
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.doc-phase-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ===== Page shell =====
   Hand-rolled so the docs layout doesn't depend on a Tailwind JIT class —
   Tailwind v4's class scanner doesn't pick up arbitrary values containing
   nested parens with commas (e.g. `lg:grid-cols-[200px_minmax(0,1fr)]`),
   which silently dropped the desktop two-column grid and overlapped the
   TOC with the main content. */
.doc-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
}
@media (min-width: 1024px) {
  .doc-shell { grid-template-columns: 200px minmax(0, 1fr); }
}

/* ===== Mini in-page TOC ===== */
.doc-toc-heading {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 10px 8px;
}
.doc-toc nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.doc-toc-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border-left: 2px solid transparent;
  line-height: 1.3;
}
.doc-toc-link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}
.doc-toc-link.is-active {
  color: #f1f5f9;
  background: rgba(59, 130, 246, 0.08);
  border-left-color: #60a5fa;
}
.doc-toc-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: currentColor;
}
.doc-toc-divider {
  height: 1px;
  background: rgba(100, 116, 139, 0.18);
  margin: 10px 8px;
}

@media (min-width: 1024px) {
  .doc-toc {
    position: sticky;
    top: 16px;
    align-self: flex-start;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding-right: 4px;
  }
  .doc-toc::-webkit-scrollbar { width: 4px; }
  .doc-toc::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
}

@media (max-width: 1023px) {
  .doc-toc {
    overflow-x: auto;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .doc-toc-heading { display: none; }
  .doc-toc nav {
    flex-direction: row;
    gap: 4px;
    padding-bottom: 4px;
  }
  .doc-toc-link {
    flex-shrink: 0;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
  }
  .doc-toc-link.is-active {
    border-left-color: transparent;
    border-bottom-color: #60a5fa;
  }
  .doc-toc-divider { display: none; }

  .doc-section { margin-top: 64px; }
  .doc-section.is-first { margin-top: 40px; }
}

/* ===== Animations used inside preview SVGs ===== */
@keyframes doc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.doc-pulse { transform-origin: center; transform-box: fill-box; animation: doc-pulse 1.6s ease-in-out infinite; }

@keyframes doc-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.doc-cursor-blink { animation: doc-cursor-blink 1s step-end infinite; }

/* ===== Light-mode overrides ===== */
[data-theme="light"] .doc-h1 { color: #0f172a; }
[data-theme="light"] .doc-intro { color: #475569; }

[data-theme="light"] .doc-section-asset {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-color: #e2e8f0;
}
[data-theme="light"] .doc-section-asset:hover {
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px -24px rgba(59, 130, 246, 0.18);
}
[data-theme="light"] .doc-section-asset::after {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.4);
  color: #2563eb;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .doc-section-eyebrow { color: #94a3b8; }
[data-theme="light"] .doc-section-title { color: #0f172a; }
[data-theme="light"] .doc-section-desc { color: #475569; }
[data-theme="light"] .doc-section-cta {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, 0.45);
}
[data-theme="light"] .doc-section-cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(29, 78, 216, 0.6);
}

[data-theme="light"] .doc-callouts li { color: #475569; }
[data-theme="light"] .doc-callouts li::before {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
  color: #2563eb;
}
[data-theme="light"] .doc-callouts li.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: #0f172a;
}
[data-theme="light"] .doc-callouts li.is-active::before {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}
[data-theme="light"] .doc-callouts strong { color: #0f172a; }
[data-theme="light"] .doc-callout-body { color: #334155; }
[data-theme="light"] .doc-callout.is-tip       { background: rgba(8, 145, 178, 0.08);  border-color: rgba(8, 145, 178, 0.4); }
[data-theme="light"] .doc-callout.is-note      { background: rgba(37, 99, 235, 0.08);  border-color: rgba(37, 99, 235, 0.4); }
[data-theme="light"] .doc-callout.is-important { background: rgba(217, 119, 6, 0.08);  border-color: rgba(217, 119, 6, 0.4); }
[data-theme="light"] .doc-callout.is-warning   { background: rgba(220, 38, 38, 0.08);  border-color: rgba(220, 38, 38, 0.4); }
[data-theme="light"] .doc-callout.is-tip       .doc-callout-icon, [data-theme="light"] .doc-callout.is-tip       .doc-callout-label { color: #0891b2; }
[data-theme="light"] .doc-callout.is-note      .doc-callout-icon, [data-theme="light"] .doc-callout.is-note      .doc-callout-label { color: #2563eb; }
[data-theme="light"] .doc-callout.is-important .doc-callout-icon, [data-theme="light"] .doc-callout.is-important .doc-callout-label { color: #d97706; }
[data-theme="light"] .doc-callout.is-warning   .doc-callout-icon, [data-theme="light"] .doc-callout.is-warning   .doc-callout-label { color: #dc2626; }

[data-theme="light"] .doc-phase {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .doc-phase-num { color: #94a3b8; }
[data-theme="light"] .doc-phase-week { color: #64748b; }
[data-theme="light"] .doc-phase-title { color: #0f172a; }
[data-theme="light"] .doc-phase-list li { color: #334155; }
[data-theme="light"] .doc-phase-list li::before { background: #cbd5e1; }

[data-theme="light"] .doc-toc-heading { color: #94a3b8; }
[data-theme="light"] .doc-toc-link { color: #64748b; }
[data-theme="light"] .doc-toc-link:hover { color: #0f172a; background: #f1f5f9; }
[data-theme="light"] .doc-toc-link.is-active {
  color: #0f172a;
  background: #eff6ff;
  border-left-color: #3b82f6;
}
[data-theme="light"] .doc-toc-link.is-active svg { color: #3b82f6; }
[data-theme="light"] .doc-toc-divider { background: #e2e8f0; }
@media (max-width: 1023px) {
  [data-theme="light"] .doc-toc-link.is-active { border-bottom-color: #3b82f6; }
}

/* ===== Light-theme overrides for the .doc-mockup framework =====
   Strategy: re-skin every dark surface (cards, pills, tables, code, etc.)
   to white-on-slate, and override the most common inline text colors via
   attribute selectors so all 13 mockups are readable in light mode without
   touching markup. */
[data-theme="light"] .doc-mockup { color: #0f172a; }
[data-theme="light"] .doc-mockup-h { color: #0f172a; }
[data-theme="light"] .doc-mockup-eyebrow { color: #64748b; }
[data-theme="light"] .doc-mockup-muted { color: #475569; }
[data-theme="light"] .doc-mockup-dim { color: #94a3b8; }
[data-theme="light"] .doc-mockup-link { color: #0e7490; }

[data-theme="light"] .doc-mockup-pill {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
[data-theme="light"] .doc-mockup-pill.is-active {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.40);
}

[data-theme="light"] .doc-mockup-stat {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .doc-mockup-stat-label { color: #64748b; }
[data-theme="light"] .doc-mockup-stat-value { color: #0f172a; }

[data-theme="light"] .doc-mockup-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .doc-mockup-card.is-flat { background: #f8fafc; }
[data-theme="light"] .doc-mockup-card.is-success { border-color: rgba(16, 185, 129, 0.55); }
[data-theme="light"] .doc-mockup-card.is-amber   { border-color: rgba(217, 119, 6, 0.55);  }

[data-theme="light"] .doc-mockup-row-item {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .doc-mockup-row-item.is-warn   { background: rgba(234, 179, 8, 0.06);  }
[data-theme="light"] .doc-mockup-row-item.is-amber  { background: rgba(245, 158, 11, 0.06); }
[data-theme="light"] .doc-mockup-row-item.is-orange { background: rgba(249, 115, 22, 0.06); }
[data-theme="light"] .doc-mockup-row-item.is-danger { background: rgba(239, 68, 68, 0.06);  }
[data-theme="light"] .doc-mockup-row-item.is-medium { background: rgba(234, 179, 8, 0.06);  }

/* Badges keep their accent backgrounds but switch to higher-contrast text on white */
[data-theme="light"] .doc-mockup-badge.is-success { color: #065f46; }
[data-theme="light"] .doc-mockup-badge.is-warn    { color: #92400e; }
[data-theme="light"] .doc-mockup-badge.is-amber   { color: #92400e; }
[data-theme="light"] .doc-mockup-badge.is-danger  { color: #991b1b; }
[data-theme="light"] .doc-mockup-badge.is-orange  { color: #9a3412; }
[data-theme="light"] .doc-mockup-badge.is-info    { color: #1e40af; }
[data-theme="light"] .doc-mockup-badge.is-cyan    { color: #155e75; }
[data-theme="light"] .doc-mockup-badge.is-purple  { color: #6b21a8; }
[data-theme="light"] .doc-mockup-badge.is-neutral { background: #e2e8f0; color: #1e293b; }

/* Chips get the same treatment */
[data-theme="light"] .doc-mockup-chip          { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
[data-theme="light"] .doc-mockup-chip.is-success { color: #065f46; }
[data-theme="light"] .doc-mockup-chip.is-danger  { color: #991b1b; }
[data-theme="light"] .doc-mockup-chip.is-purple  { color: #6b21a8; }
[data-theme="light"] .doc-mockup-chip.is-amber   { color: #92400e; }
[data-theme="light"] .doc-mockup-chip.is-info    { color: #1e40af; }
[data-theme="light"] .doc-mockup-chip.is-indigo  { color: #3730a3; }

/* Shields: tinted square icons */
[data-theme="light"] .doc-mockup-shield.color-cyan    { color: #0891b2; }
[data-theme="light"] .doc-mockup-shield.color-purple  { color: #6d28d9; }
[data-theme="light"] .doc-mockup-shield.color-red     { color: #b91c1c; }
[data-theme="light"] .doc-mockup-shield.color-amber   { color: #b45309; }
[data-theme="light"] .doc-mockup-shield.color-emerald { color: #047857; }
[data-theme="light"] .doc-mockup-shield.color-indigo  { color: #4338ca; }

[data-theme="light"] .doc-mockup-toggle { background: #cbd5e1; }
[data-theme="light"] .doc-mockup-toggle.is-on      { background: rgba(16, 185, 129, 0.85); }
[data-theme="light"] .doc-mockup-toggle.is-on-cyan { background: rgba(6, 182, 212, 0.9); }

[data-theme="light"] .doc-mockup-btn.is-success-ghost { color: #047857; }
[data-theme="light"] .doc-mockup-btn.is-danger-ghost  { color: #b91c1c; }
[data-theme="light"] .doc-mockup-btn.is-ghost         { color: #475569; border-color: #cbd5e1; }

[data-theme="light"] .doc-mockup-table {
  background: #ffffff;
  border-color: #e2e8f0;
}
[data-theme="light"] .doc-mockup-table-row { border-top-color: #e2e8f0; }
[data-theme="light"] .doc-mockup-table-row.is-head {
  background: #f1f5f9;
  color: #475569;
}

[data-theme="light"] .doc-mockup-divider { background: #e2e8f0; }
[data-theme="light"] .doc-mockup-footer  { color: #94a3b8; }

[data-theme="light"] .doc-mockup-os-tab {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
[data-theme="light"] .doc-mockup-os-tab.is-active {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.40);
}

[data-theme="light"] .doc-mockup-dropzone {
  background: #f0f9ff;
  border-color: rgba(8, 145, 178, 0.55);
}

[data-theme="light"] .doc-mockup-strip {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.45);
}

[data-theme="light"] .doc-mockup-progress { background: #e2e8f0; }
[data-theme="light"] .doc-mockup-progress > span { background: #0891b2; }

[data-theme="light"] .doc-mockup-rule {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.40);
}
[data-theme="light"] .doc-mockup-rule.is-fail {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.40);
}

[data-theme="light"] .doc-mockup-bar     { background: #2563eb; }
[data-theme="light"] .doc-mockup-bar.alt { background: #4f46e5; }

/* Code & terminal surfaces stay dark by design (industry-standard for code in
   light-mode docs — Stripe, Mintlify, Linear all do this) but the frame is
   softened so it doesn't fight the page. */
[data-theme="light"] .doc-mockup-code {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.20);
}
[data-theme="light"] .doc-mockup-tv         { border-color: rgba(217, 119, 6, 0.35); }
[data-theme="light"] .doc-mockup-avatar-dot { border-color: #ffffff; }

/* ----- Inline color attribute overrides ------------------------------
   107 inline `style="color: #..."` declarations in the mockups would otherwise
   beat any class rule. Mapping each dark-theme inline color to a light-mode
   equivalent here keeps all 13 mockups readable without touching markup. */
[data-theme="light"] .doc-mockup [style*="color: #f1f5f9"] { color: #0f172a !important; }
[data-theme="light"] .doc-mockup [style*="color: #cbd5e1"] { color: #1e293b !important; }
[data-theme="light"] .doc-mockup [style*="color: #94a3b8"] { color: #475569 !important; }
[data-theme="light"] .doc-mockup [style*="color: #64748b"] { color: #64748b !important; }
[data-theme="light"] .doc-mockup [style*="color: #475569"] { color: #94a3b8 !important; }
[data-theme="light"] .doc-mockup [style*="color: #bfdbfe"] { color: #1e40af !important; }
[data-theme="light"] .doc-mockup [style*="color: #6ee7b7"] { color: #047857 !important; }
[data-theme="light"] .doc-mockup [style*="color: #34d399"] { color: #047857 !important; }
[data-theme="light"] .doc-mockup [style*="color: #fcd34d"] { color: #b45309 !important; }
[data-theme="light"] .doc-mockup [style*="color: #fbbf24"] { color: #b45309 !important; }
[data-theme="light"] .doc-mockup [style*="color: #fde047"] { color: #a16207 !important; }
[data-theme="light"] .doc-mockup [style*="color: #f87171"] { color: #b91c1c !important; }
[data-theme="light"] .doc-mockup [style*="color: #fca5a5"] { color: #b91c1c !important; }
[data-theme="light"] .doc-mockup [style*="color: #fb923c"] { color: #c2410c !important; }
[data-theme="light"] .doc-mockup [style*="color: #fda4af"] { color: #be123c !important; }
[data-theme="light"] .doc-mockup [style*="color: #f43f5e"] { color: #be123c !important; }
[data-theme="light"] .doc-mockup [style*="color: #60a5fa"] { color: #2563eb !important; }
[data-theme="light"] .doc-mockup [style*="color: #93c5fd"] { color: #1e40af !important; }
[data-theme="light"] .doc-mockup [style*="color: #67e8f9"] { color: #0e7490 !important; }
[data-theme="light"] .doc-mockup [style*="color: #22d3ee"] { color: #0891b2 !important; }
[data-theme="light"] .doc-mockup [style*="color: #c4b5fd"] { color: #6d28d9 !important; }
[data-theme="light"] .doc-mockup [style*="color: #a5b4fc"] { color: #4338ca !important; }
/* ...except inside the terminal-style code/TV blocks where dark text would clash with the dark surface */
[data-theme="light"] .doc-mockup-code [style*="color:"],
[data-theme="light"] .doc-mockup-tv   [style*="color:"] { color: revert !important; }
