/* ============================================================
   Hover docs — docs-specific styles.
   Imports site-wide tokens from ../style.css (Image Hero design
   system: --bg-page, --t-1, --olive, Inter + JetBrains Mono).
   This file only defines docs-shaped layout + components.
   ============================================================ */

/* Docs sub-nav: appears below the main site nav on every docs page */
.docs-nav {
  border-bottom: 1px solid var(--hair-1);
  background: var(--bg-1);
}
.docs-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 26px;
}
.docs-nav-label {
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
  font-weight: 600;
  margin-right: 6px;
}
.docs-nav a {
  font-size: var(--text-sm);
  color: var(--t-2);
  letter-spacing: 0.01em;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease;
}
.docs-nav a:hover { color: var(--t-1); }
.docs-nav a.is-current {
  color: var(--t-1);
  border-bottom-color: var(--olive);
}

/* Docs page header — leaner than the marketing hero */
.docs-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 28px 36px;
}
.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 16px;
}
.docs-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 22ch;
  color: var(--t-1);
}
.docs-title em {
  font-style: italic;
  color: var(--olive);
  font-weight: 600;
}
.docs-lede {
  font-size: var(--text-xl);
  color: var(--t-2);
  max-width: 60ch;
  line-height: 1.55;
  margin: 0;
}

/* Long-form prose container */
.docs-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 88px;
  display: grid;
  grid-template-columns: minmax(0, 65ch);
  gap: 0;
}

.docs-body h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  color: var(--t-1);
}
.docs-body h2:first-child { margin-top: 0; }

.docs-body h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 28px 0 8px;
  color: var(--t-1);
}

.docs-body p {
  margin: 0 0 16px;
  color: var(--t-2);
  line-height: 1.65;
  font-size: var(--text-lg);
}
.docs-body p strong { color: var(--t-1); font-weight: 600; }

.docs-body ul, .docs-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--t-2);
}
.docs-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: var(--text-lg);
}
.docs-body li::marker { color: var(--olive); }

.docs-body a:not(.btn) {
  color: var(--olive);
  border-bottom: 1px solid var(--hair-2);
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease;
}
.docs-body a:not(.btn):hover { color: #c8c074; border-bottom-color: var(--olive); }

.docs-body code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--hair-1);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--t-1);
}

/* Command / code block (e.g. CLI snippets in integration docs) */
.docs-body pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84em;
  line-height: 1.55;
  background: var(--bg-2);
  border: 1px solid var(--hair-1);
  padding: 14px 16px;
  border-radius: 6px;
  margin: 16px 0;
  overflow-x: auto;
  color: var(--t-1);
}
.docs-body pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

/* Pull-quote / definition callout */
.docs-callout {
  border-left: 3px solid var(--olive);
  background: rgba(184, 176, 106, 0.05);
  padding: 14px 18px;
  margin: 22px 0;
  border-radius: 0 6px 6px 0;
}
.docs-callout p { margin: 0; color: var(--t-1); }
.docs-callout strong { color: var(--olive); letter-spacing: 0.04em; }

/* Screenshot figure (DJI streaming guides) */
.docs-figure {
  margin: 22px 0;
  padding: 0;
}
.docs-figure img {
  display: block;
  width: 100%;
  max-width: 620px;
  border-radius: 8px;
  border: 1px solid var(--hair-1);
}
.docs-figure figcaption {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--t-3);
  max-width: 620px;
}

/* Index / cards grid for /docs/ landing */
.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.docs-card {
  background: var(--bg-2);
  border: 1px solid var(--hair-1);
  border-radius: 8px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 140ms ease, border-color 140ms ease;
  color: inherit;
  text-decoration: none;
}
.docs-card:hover {
  background: var(--bg-3);
  border-color: var(--hair-2);
}
.docs-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}
.docs-card-h {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--t-1);
}
.docs-card-p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--t-3);
  line-height: 1.55;
}

/* Definition table for security / FAQ */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: var(--text-sm);
}
.docs-table th, .docs-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hair-1);
  vertical-align: top;
}
.docs-table th {
  color: var(--t-1);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom-color: var(--olive);
}
.docs-table td { color: var(--t-2); }

/* FAQ Q/A pattern */
.docs-faq-q {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: var(--text-2xl);
  color: var(--t-1);
  margin: 28px 0 8px;
  letter-spacing: -0.005em;
}
.docs-faq-q::before {
  content: "Q.  ";
  color: var(--olive);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.85em;
}

/* Inline tag (e.g., "PRODUCTION", "PLANNED") */
.docs-tag {
  display: inline-block;
  font-size: var(--text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  color: var(--t-2);
  font-weight: 600;
  margin-right: 6px;
  vertical-align: middle;
}
.docs-tag-prod { color: var(--olive); border-color: rgba(184,176,106,0.5); background: rgba(184,176,106,0.08); }
.docs-tag-planned { color: var(--amber); border-color: rgba(179,135,61,0.5); background: rgba(179,135,61,0.08); }

/* CTA block at bottom of each doc page */
.docs-cta {
  border-top: 1px solid var(--hair-1);
  padding: 32px 0 0;
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.docs-cta p {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--t-2);
}

@media (max-width: 700px) {
  .docs-title { font-size: 32px; }
  .docs-header { padding: 48px 28px 28px; }
  .docs-body h2 { font-size: 22px; }
}

/* ============================================================
   Grouped sidebar navigation (replaces the horizontal .docs-nav).
   Each page wraps its header + body in .docs-content, beside a
   sticky .docs-sidebar. Collapses to a wrapped top bar on mobile.
   ============================================================ */
.docs-layout {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}
.docs-sidebar {
  flex: 0 0 250px;
  width: 250px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 40px 22px 56px;
  border-right: 1px solid var(--hair-1);
}
.docs-sidebar-group { margin-bottom: 24px; }
.docs-sidebar-group:last-child { margin-bottom: 0; }
.docs-sidebar-label {
  display: block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--olive);
  font-weight: 600;
  margin: 0 0 10px 10px;
}
.docs-sidebar a {
  display: block;
  font-size: var(--text-lg);
  color: var(--t-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}
.docs-sidebar a:hover { color: var(--t-1); background: var(--bg-2); }
.docs-sidebar a.is-current {
  color: var(--t-1);
  background: var(--bg-2);
  border-left-color: var(--olive);
  font-weight: 600;
}
.docs-content { flex: 1 1 auto; min-width: 0; }
.docs-content > .docs-header { max-width: none; margin: 0; padding: 56px 48px 32px; }
.docs-content > .docs-body { max-width: none; margin: 0; padding: 0 48px 88px; }

@media (max-width: 900px) {
  .docs-layout { flex-direction: column; }
  .docs-sidebar {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--hair-1);
    background: var(--bg-1);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 22px;
    padding: 14px 28px;
  }
  .docs-sidebar-group { margin-bottom: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .docs-sidebar-label { margin: 0; }
  .docs-sidebar a { padding: 3px 4px; border-left: none; border-bottom: 1px solid transparent; border-radius: 0; }
  .docs-sidebar a:hover { background: transparent; }
  .docs-sidebar a.is-current { background: transparent; border-left: none; border-bottom-color: var(--olive); }
  .docs-content > .docs-header { padding: 40px 28px 24px; }
  .docs-content > .docs-body { padding: 0 28px 72px; }
}
