/* === Docs / Support / Security — Consistent with main theme === */

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  padding-top: 64px;
  min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 36px 20px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.docs-sidebar h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fog);
  margin: 24px 0 8px;
}

.docs-sidebar h4:first-child { margin-top: 0; }

.docs-sidebar a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--smoke);
  border-radius: 6px;
  transition: all 0.15s;
  font-weight: 500;
}

.docs-sidebar a:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.03);
}

.docs-sidebar a.active {
  color: var(--glow-bright);
  background: rgba(74, 144, 217, 0.08);
}

/* Content */
.docs-content {
  padding: 48px 64px 100px;
  max-width: 880px;
}

.docs-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
  color: var(--text-bright);
}

.docs-intro {
  font-size: 16px;
  color: var(--smoke);
  margin-bottom: 48px;
}

.docs-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 56px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.3px;
  color: var(--text-bright);
}

.docs-content h2:first-of-type { border-top: none; padding-top: 0; }

.docs-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-bright);
}

.docs-content p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.7;
}

.docs-content ul, .docs-content ol {
  margin: 0 0 20px 24px;
  color: var(--text);
  line-height: 1.7;
}

.docs-content li { margin-bottom: 6px; }

.docs-content code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  color: var(--spark);
}

/* Code blocks */
.code-block {
  background: #0A0C12;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
  overflow-x: auto;
}

.code-block pre { margin: 0; }

.code-block code {
  background: none;
  padding: 0;
  color: #ABB2BF;
  font-size: 13px;
  line-height: 1.65;
}

/* Tables */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.docs-table th,
.docs-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.docs-table th {
  background: var(--surface);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.docs-table td code { font-size: 12px; }

/* Install cards */
.install-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.install-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-align: center;
}

.install-card:hover {
  border-color: var(--glow-dim);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.install-card strong {
  font-size: 14px;
  color: var(--text-bright);
}

.install-card span {
  font-size: 11px;
  color: var(--fog);
}

/* Help cards */
.help-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.help-card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.help-card:hover {
  border-color: var(--glow-dim);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.help-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--text-bright);
  font-weight: 700;
}

.help-card p {
  font-size: 13px;
  color: var(--smoke);
  margin: 0;
  line-height: 1.5;
}

/* FAQ items */
.faq-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--text-bright);
  font-weight: 700;
}

.faq-item p,
.faq-item ul {
  font-size: 14px;
  color: var(--smoke);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar { display: none; }

  .docs-content {
    padding: 32px 24px 80px;
  }

  .install-cards { grid-template-columns: repeat(2, 1fr); }
  .help-cards { grid-template-columns: 1fr; }
}
