/* Care-Intel Documentation — industry-standard docs shell */

.ci-docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 1.5rem 0 4rem;
}
@media (max-width: 991px) {
  .ci-docs-layout { grid-template-columns: 1fr; }
}

.ci-docs-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 0.75rem;
}
.ci-docs-nav h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  font-weight: 800;
  margin: .25rem .75rem .65rem;
}
.ci-docs-nav a {
  display: block;
  padding: .45rem .75rem;
  border-radius: 8px;
  color: #334155;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.ci-docs-nav a:hover { background: #f1f5f9; color: #0f172a; }
.ci-docs-nav a.active { background: #eef2ff; color: #3730a3; }

.ci-docs-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 2rem 2.25rem;
  min-width: 0;
}
.ci-docs-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 1.75rem 0 .75rem;
  color: #0f172a;
}
.ci-docs-content h2:first-child { margin-top: 0; }
.ci-docs-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.4rem 0 .55rem;
  color: #1e293b;
}
.ci-docs-content p, .ci-docs-content li {
  color: #475569;
  line-height: 1.7;
  font-size: .95rem;
}
.ci-docs-content code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: .1rem .35rem;
  font-size: .85em;
  color: #1e293b;
}
.ci-docs-content pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow: auto;
  font-size: .82rem;
  line-height: 1.5;
}
.ci-docs-content pre code { background: transparent; color: inherit; padding: 0; }

.ci-docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.ci-docs-card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  text-decoration: none !important;
  background: #f8fafc;
  transition: .15s ease;
  color: inherit;
}
.ci-docs-card:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
}
.ci-docs-card strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.ci-docs-card span {
  display: block;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.5;
}

.ci-docs-callout {
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  padding: .85rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  color: #1e3a8a;
  font-size: .9rem;
}
