/* ============================================================
   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 {
  color: var(--olive);
  border-bottom: 1px solid var(--hair-2);
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease;
}
.docs-body a: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);
}

/* 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; }

/* 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-sm);
  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; }
}
