/* ═══════════════════════════════════════════════════════════
   Relativity6 · Public Documentation
   Standalone docs site — Marvin-inspired lighter blue palette.
   Uses brand design tokens: Onest, SUSE Mono, signal blue.
   ═══════════════════════════════════════════════════════════ */

:root {
  --signal:       #1C7AFE;
  --signal-soft:  rgba(28,122,254,0.08);
  --signal-mid:   rgba(28,122,254,0.14);
  --mainframe:    #111E45;
  --ghost:        #E8ECF1;
  --hud-haze:     #DBE6FF;
  --cloud:        #8AB5F6;
  --warm-50:      color-mix(in oklch, white 92%, #8A7B6E);
  --indigo-50:    color-mix(in oklch, white 92%, #1E1A4E);
  --paper:        #FFFFFF;
  --raised:       #FAFAFA;
  --sunken:       #F3F5F9;
  --line:         #E1E6EE;
  --line-strong:  #C7D0DE;
  --text-1:       #0F1A3C;
  --text-2:       #4C5880;
  --text-3:       #7C88A8;
  --adverse:      #DC3E3E;
  --caution:      #E5A33A;
  --matrix:       #1FB879;
  --indigo-500:       #1E1A4E;
  --ease:         cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--text-1);
  background: var(--paper);
  margin: 0;
  line-height: 1.5;
  background-image: linear-gradient(180deg, var(--indigo-50) 0%, var(--paper) 420px);
  background-attachment: fixed;
}

/* ── Brand header ─────────────────────────────────────────── */
.docs-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--warm-50);
  border-bottom: 1px solid color-mix(in oklch, white 82%, #8A7B6E);
  padding: 0 32px;
  display: flex; align-items: center;
  height: 64px;
  gap: 0;
}
.docs-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.docs-brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal) 0%, #0F4FB8 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  font-family: 'Onest', sans-serif;
}
.docs-brand-name {
  font-size: 17px; font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.docs-brand-sep {
  width: 1px; height: 24px;
  background: #D4CDC4;
  margin: 0 20px 0 24px;
  flex-shrink: 0;
}

/* Search bar */
.docs-search {
  margin-left: auto;
  flex-shrink: 0;
  width: 280px;
  position: relative;
}
.docs-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid #D4CDC4;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  font-family: 'Onest', sans-serif;
  font-size: 13px; color: var(--text-1);
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.docs-search-input::placeholder { color: var(--text-3); }
.docs-search-input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(28,122,254,0.10);
  background: var(--paper);
}
.docs-search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: var(--text-3);
  pointer-events: none;
}
.docs-search-kbd {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Onest', sans-serif;
  font-size: 10px; font-weight: 600;
  color: var(--text-3);
  background: var(--paper);
  border: 1px solid #D4CDC4;
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

/* Header tabs */
.docs-header-tabs {
  display: flex; gap: 4px;
  flex-shrink: 0;
}
.docs-tab {
  background: none; border: none; outline: none; cursor: pointer;
  font-family: 'Onest', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
  white-space: nowrap;
}
.docs-tab:hover { color: var(--text-1); background: rgba(0,0,0,0.04); }
.docs-tab.active {
  color: var(--signal);
  font-weight: 600;
  background: rgba(28,122,254,0.08);
}

/* ── Page body ────────────────────────────────────────────── */
.docs-body {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* ── Light sidebar nav ────────────────────────────────────── */
.docs-nav {
  width: 240px; min-width: 240px;
  background: var(--raised);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 20px 0 32px;
}
.docs-nav-group { display: none; }
.docs-nav-group.active { display: block; }

.docs-nav-section { padding: 0 16px; margin-bottom: 2px; }
.docs-nav-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  transition: background 120ms;
}
.docs-nav-section-head:hover { background: rgba(28,122,254,0.04); }
.docs-nav-section-label {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.docs-nav-section-caret {
  font-size: 10px; color: var(--text-3);
  transition: transform 200ms var(--ease);
  display: inline-block;
}
.docs-nav-section.open .docs-nav-section-caret {
  transform: rotate(180deg);
}
.docs-nav-section-items {
  max-height: 0; overflow: hidden;
  transition: max-height 240ms var(--ease);
}
.docs-nav-section.open .docs-nav-section-items {
  max-height: 600px;
}
.docs-nav-item {
  display: block;
  padding: 6px 12px;
  margin: 1px 0;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.docs-nav-item:hover {
  background: rgba(28,122,254,0.05);
  color: var(--text-1);
}
.docs-nav-item.active {
  background: var(--hud-haze);
  color: var(--signal);
  font-weight: 600;
}

/* ── Article content area ─────────────────────────────────── */
.docs-article-wrap {
  flex: 1; min-width: 0;
  overflow-y: auto;
  padding: 36px 48px 72px;
}
.docs-panel { display: none; }
.docs-panel.active {
  display: block;
  max-width: 720px;
}

/* ── Article typography ───────────────────────────────────── */
.docs-panel .docs-kicker {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 8px;
}
.docs-panel h1 {
  font-family: 'Onest', sans-serif;
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0 0 10px;
  line-height: 1.25;
}
.docs-panel .docs-lead {
  font-size: 16px; color: var(--text-2);
  line-height: 1.6; margin: 0 0 32px;
}
.docs-panel h2 {
  font-family: 'Onest', sans-serif;
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.docs-panel h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.docs-panel h3 {
  font-family: 'Onest', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--text-1);
  margin: 28px 0 8px;
  scroll-margin-top: 80px;
}
.docs-panel p {
  font-size: 14px; line-height: 1.75;
  color: var(--text-2); margin: 0 0 16px;
}
.docs-panel ul, .docs-panel ol {
  font-size: 14px; line-height: 1.75;
  color: var(--text-2);
  padding-left: 24px; margin: 0 0 16px;
}
.docs-panel li { margin-bottom: 6px; }
.docs-panel strong { color: var(--text-1); font-weight: 600; }
.docs-panel em { font-style: italic; }
.docs-panel a { color: var(--signal); text-decoration: none; font-weight: 500; }
.docs-panel a.docs-cta-button { color: white; }
.docs-panel a:hover { text-decoration: underline; }

/* Inline code */
.docs-panel code {
  font-family: 'SUSE Mono', ui-monospace, monospace;
  font-size: 12.5px; font-weight: 500;
  background: var(--hud-haze);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--signal);
}

/* ── Code blocks ──────────────────────────────────────────── */
.docs-code {
  background: var(--mainframe);
  border-radius: 10px;
  margin: 0 0 20px;
  overflow: hidden;
}
.docs-code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.docs-code-lang {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.docs-code-copy {
  background: none; border: 1px solid rgba(255,255,255,0.10);
  border-radius: 5px; padding: 3px 10px;
  font-family: 'Onest', sans-serif;
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: border-color 140ms, color 140ms;
}
.docs-code-copy:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.docs-code pre {
  margin: 0; padding: 16px 20px;
  overflow-x: auto;
  font-family: 'SUSE Mono', monospace;
  font-size: 13px; line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

/* ── Callout blocks ───────────────────────────────────────── */
.docs-callout {
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--signal);
  background: var(--hud-haze);
  margin: 0 0 20px;
  font-size: 14px; line-height: 1.65;
  color: var(--text-2);
}
.docs-callout-label {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 4px;
}
.docs-callout.info { border-color: var(--signal); background: var(--hud-haze); }
.docs-callout.info .docs-callout-label { color: var(--signal); }
.docs-callout.warning { border-color: var(--caution); background: rgba(229,163,58,0.08); }
.docs-callout.warning .docs-callout-label { color: #B8841C; }
.docs-callout.tip { border-color: var(--matrix); background: rgba(31,184,121,0.08); }
.docs-callout.tip .docs-callout-label { color: #148C58; }

/* ── Feature grid ────────────────────────────────────────── */
.docs-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 28px;
}
.docs-feature-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.docs-feature-card:hover {
  border-color: var(--cloud);
  box-shadow: 0 2px 12px rgba(28,122,254,0.06);
}
.docs-feature-icon {
  font-size: 22px;
  margin-bottom: 8px;
}
.docs-feature-card h3 {
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
  margin: 0 0 6px;
}
.docs-feature-card p {
  font-size: 13px; line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

/* ── Content table ───────────────────────────────────────── */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 13px;
}
.docs-table thead th {
  text-align: left;
  padding: 10px 16px;
  background: var(--sunken);
  font-weight: 600; font-size: 12px;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.docs-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  line-height: 1.6;
  vertical-align: top;
}
.docs-table tbody tr:last-child td { border-bottom: none; }

/* ── CTA block ───────────────────────────────────────────── */
.docs-cta-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hud-haze) 0%, rgba(138,181,246,0.18) 100%);
  border: 1px solid var(--cloud);
  margin: 24px 0 28px;
}
.docs-cta-button {
  display: inline-flex; align-items: center;
  padding: 10px 24px;
  background: var(--signal);
  color: white;
  font-family: 'Onest', sans-serif;
  font-size: 14px; font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.docs-cta-button:hover {
  background: #0A64E0;
  box-shadow: 0 4px 16px rgba(28,122,254,0.25);
  text-decoration: none;
  color: white;
}
.docs-cta-sub {
  font-size: 13px;
  color: var(--text-2);
}

/* ── Numbered steps ──────────────────────────────────────── */
ol.docs-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
  margin: 0 0 24px;
}
ol.docs-steps li {
  counter-increment: step;
  padding: 16px 16px 16px 52px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  font-size: 14px; line-height: 1.65;
  color: var(--text-2);
}
ol.docs-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 16px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--signal);
  color: white;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Stat blocks ─────────────────────────────────────────── */
.docs-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}
.docs-stat-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
}
.docs-stat-block.accent {
  border-color: var(--cloud);
  background: linear-gradient(135deg, var(--raised) 0%, rgba(219,230,255,0.3) 100%);
}
.docs-stat-value {
  font-family: 'Onest', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
}
.docs-stat-block.accent .docs-stat-value { color: var(--signal); }
.docs-stat-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.docs-stat-desc {
  font-size: 13px; line-height: 1.6;
  color: var(--text-2);
}

/* ── Tier cards ──────────────────────────────────────────── */
.docs-tier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 20px 0 28px;
}
.docs-tier-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--paper);
  display: flex; flex-direction: column;
  position: relative;
}
.docs-tier-card.featured {
  border-color: var(--signal);
  box-shadow: 0 4px 20px rgba(28,122,254,0.10);
}
.docs-tier-badge {
  position: absolute; top: -10px; left: 20px;
  background: var(--signal);
  color: white;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.docs-tier-name {
  font-size: 20px; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.docs-tier-price {
  font-size: 32px; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1;
}
.docs-tier-price span {
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  margin-left: 4px;
}
.docs-tier-desc {
  font-size: 13px; line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.docs-tier-features {
  list-style: none;
  padding: 0; margin: 0 0 16px;
  flex: 1;
}
.docs-tier-features li {
  font-size: 12.5px; line-height: 1.5;
  padding: 4px 0 4px 22px;
  position: relative;
  color: var(--text-2);
}
.docs-tier-features li.included::before {
  content: "✓";
  position: absolute; left: 0; top: 4px;
  color: var(--matrix); font-weight: 700; font-size: 13px;
}
.docs-tier-features li.excluded {
  color: var(--text-3);
}
.docs-tier-features li.excluded::before {
  content: "—";
  position: absolute; left: 2px; top: 4px;
  color: var(--line-strong); font-weight: 500;
}
.docs-tier-cta { margin-top: auto; }
.docs-tier-button {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.docs-tier-button:hover {
  background: var(--sunken);
  border-color: var(--line-strong);
  text-decoration: none;
}
.docs-tier-button.primary {
  background: var(--signal);
  color: white;
  border-color: var(--signal);
}
.docs-tier-button.primary:hover {
  background: #0A64E0;
  box-shadow: 0 4px 12px rgba(28,122,254,0.2);
}

/* ── Feature comparison table ────────────────────────────── */
.docs-compare-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0 28px;
}
.docs-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.docs-compare-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--sunken);
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.docs-compare-table thead th.highlight {
  background: var(--hud-haze);
  color: var(--signal);
}
.docs-compare-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: middle;
}
.docs-compare-table tbody td.highlight {
  background: rgba(219,230,255,0.18);
}
.docs-compare-table tbody tr:last-child td { border-bottom: none; }
.docs-compare-table .category-row td {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--sunken);
  padding: 8px 16px;
}
.docs-check { color: var(--matrix); font-weight: 700; }
.docs-dash { color: var(--line-strong); }

/* ── Metrics row ─────────────────────────────────────────── */
.docs-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}
.docs-metric {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
}
.docs-metric-value {
  font-family: 'Onest', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--signal);
  line-height: 1;
  margin-bottom: 6px;
}
.docs-metric-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-3);
}

/* ── FAQ accordion ───────────────────────────────────────── */
.docs-faq {
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.docs-faq-item {
  border-bottom: 1px solid var(--line);
}
.docs-faq-item:last-child { border-bottom: none; }
.docs-faq-item summary {
  padding: 14px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 120ms;
}
.docs-faq-item summary:hover { background: var(--sunken); }
.docs-faq-item summary::-webkit-details-marker { display: none; }
.docs-faq-item summary::after {
  content: "+";
  font-size: 18px; font-weight: 400;
  color: var(--text-3);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 200ms var(--ease);
}
.docs-faq-item[open] summary::after {
  content: "−";
}
.docs-faq-body {
  padding: 0 20px 16px;
  font-size: 13px; line-height: 1.7;
  color: var(--text-2);
}

/* ── Endpoint bar ────────────────────────────────────────── */
.docs-endpoint-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 28px;
}
.docs-endpoint-path {
  font-family: 'SUSE Mono', monospace;
  font-size: 14px; font-weight: 500;
  color: var(--text-1);
}

/* ── Param inline row ────────────────────────────────────── */
.docs-param-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.docs-param-row-name {
  font-family: 'SUSE Mono', monospace;
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
}
.docs-param-row-type {
  font-family: 'SUSE Mono', monospace;
  font-size: 12px; font-weight: 500;
  color: var(--text-3);
}
.docs-param-row-in {
  font-size: 11px; font-weight: 500;
  color: var(--text-3);
  background: var(--sunken);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Body content type label ─────────────────────────────── */
.docs-body-content-type {
  font-family: 'SUSE Mono', monospace;
  font-size: 12px; font-weight: 500;
  color: var(--text-3);
  margin: -4px 0 16px;
  text-align: right;
}

/* ── API method badges ────────────────────────────────────── */
.docs-method {
  display: inline-block;
  font-family: 'SUSE Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}
.docs-method.get { background: rgba(31,184,121,0.12); color: var(--matrix); }
.docs-method.post { background: var(--hud-haze); color: var(--signal); }
.docs-method.put { background: rgba(229,163,58,0.10); color: #B8841C; }
.docs-method.delete { background: rgba(220,62,62,0.10); color: var(--adverse); }

.docs-endpoint {
  font-family: 'SUSE Mono', monospace;
  font-size: 13px; font-weight: 500;
  color: var(--text-1);
  vertical-align: middle;
}

/* ── Parameter tables ─────────────────────────────────────── */
.docs-params {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 13px;
}
.docs-params thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--sunken);
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.docs-params tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
.docs-params .param-name {
  font-family: 'SUSE Mono', monospace;
  font-weight: 600; color: var(--text-1);
}
.docs-params .param-type {
  font-family: 'SUSE Mono', monospace;
  font-size: 11px; color: var(--text-3);
}
.docs-params .param-required {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adverse);
  background: rgba(220,62,62,0.08);
  padding: 2px 6px; border-radius: 3px;
  margin-left: 6px;
}
.docs-params .param-optional {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-left: 6px;
}

/* Response status badges */
.docs-status {
  display: inline-block;
  font-family: 'SUSE Mono', monospace;
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  margin-right: 6px;
}
.docs-status.s200 { background: rgba(31,184,121,0.12); color: var(--matrix); }
.docs-status.s400 { background: rgba(229,163,58,0.10); color: #B8841C; }
.docs-status.s401 { background: rgba(220,62,62,0.08); color: var(--adverse); }
.docs-status.s429 { background: rgba(30,26,78,0.10); color: var(--indigo-500); }

/* ── Two-column API layout ────────────────────────────────── */
.docs-panel.api-layout.active {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.docs-api-left {
  padding-right: 40px;
  max-width: 640px;
}
.docs-api-right {
  background: var(--mainframe);
  border-radius: 12px 12px 12px 12px;
  padding: 24px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.docs-api-right .docs-code {
  margin: 0 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.docs-api-right .docs-code:last-child { margin-bottom: 0; }
.docs-api-right .docs-api-right-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.docs-api-right .docs-api-response-label {
  font-family: 'Onest', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  margin: 20px 0 10px;
  text-transform: uppercase;
}

/* ── TOC sidebar (API Reference) ──────────────────────────── */
.docs-toc {
  width: 180px; min-width: 180px;
  padding: 28px 20px 28px 0;
  overflow-y: auto;
  display: none;
}
.docs-toc.visible { display: block; }
.docs-toc-label {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.docs-toc-link {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--text-3);
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: color 140ms, border-color 140ms;
}
.docs-toc-link:hover { color: var(--text-2); }
.docs-toc-link.active {
  color: var(--signal);
  border-left-color: var(--signal);
}
.docs-toc-link.indent { padding-left: 22px; font-size: 11.5px; }

/* ── Coming soon placeholder ──────────────────────────────── */
.docs-coming-soon {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 48px 28px;
  text-align: center;
  margin: 28px 0;
}
.docs-coming-soon-icon {
  font-size: 28px; color: var(--cloud);
  margin-bottom: 12px;
}
.docs-coming-soon-text {
  font-size: 14px; font-weight: 500;
  color: var(--text-3); margin-bottom: 4px;
}
.docs-coming-soon-sub {
  font-size: 12px; color: var(--text-3);
  opacity: 0.7;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .docs-panel.api-layout.active {
    grid-template-columns: 1fr;
  }
  .docs-api-right {
    position: static;
    max-height: none;
    margin-top: 24px;
  }
}
@media (max-width: 1080px) {
  .docs-toc { display: none !important; }
}
@media (max-width: 900px) {
  .docs-nav { width: 200px; min-width: 200px; }
  .docs-article-wrap { padding: 28px 24px 48px; }
  .docs-search { max-width: 260px; }
}
@media (max-width: 720px) {
  .docs-brand-label, .docs-brand-sep { display: none; }
  .docs-search-kbd { display: none; }
}

/* ── Visual Guides (CSS UI Mockups) ──────────────────────── */
.docs-visual {
  margin: 24px 0 32px;
  padding: 32px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.docs-visual.centered {
  align-items: center;
}
.docs-visual-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.docs-visual-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--signal);
  color: white;
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.docs-visual-step-content {
  flex: 1;
}
.docs-visual-step-content h3 {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  padding: 0 !important;
  border: none !important;
}
.docs-visual-step-content p {
  margin: 0 0 16px !important;
}
