/* ── Docs Listing ──────────────────────────── */

.docs-listing {
  padding: 8rem 0 5rem;
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.docs-card {
  display: block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.docs-card:hover {
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-2px);
}

.docs-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-wash);
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.docs-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.docs-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Docs Article Layout ──────────────────── */

.docs-article {
  padding: 8rem 0 4rem;
}

.docs-article .container {
  max-width: 720px;
}

.docs-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.docs-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.docs-breadcrumb a:hover {
  text-decoration: underline;
}

.docs-article h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.docs-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.docs-article h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.docs-article p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.docs-article ul,
.docs-article ol {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-article li {
  margin-bottom: 0.375rem;
}

.docs-article strong {
  font-weight: 600;
  color: var(--foreground);
}

.docs-article code {
  font-size: 0.875rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

/* ── Docs Callout ─────────────────────────── */

.docs-callout {
  background: var(--primary-wash);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.docs-callout p {
  color: var(--foreground);
  margin-bottom: 0;
}

.docs-callout strong {
  color: var(--primary);
}

/* ── Docs Table ───────────────────────────── */

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.docs-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
}

.docs-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── FAQ ──────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

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

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ── Docs CTA ─────────────────────────────── */

.docs-cta {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.docs-cta p {
  color: var(--foreground);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 768px) {
  .docs-listing {
    padding: 6.5rem 0 3.5rem;
  }

  .docs-cards {
    grid-template-columns: 1fr;
  }

  .docs-article {
    padding: 6.5rem 0 3rem;
  }

  .docs-article h1 {
    font-size: 1.75rem;
  }

  .docs-article h2 {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-card:hover {
    transform: none;
  }
}
