/**
 * Care-Intel API testdrive — dark console (playground).
 * Full-bleed band under breadcrumb; docs stay on light chrome below.
 */

.ci-testdrive-section {
  background:
    radial-gradient(1100px 400px at 18% -8%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(800px 320px at 90% 8%, rgba(14, 165, 233, 0.08), transparent 50%),
    #070b14;
  color: #e2e8f0;
  padding: 2.75rem 0 3rem;
  margin: 0;
  border-bottom: 1px solid #1e293b;
}

.ci-testdrive-section > .container {
  max-width: 1140px;
}

.ci-testdrive-section > .container > header {
  margin-bottom: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.ci-testdrive-section h2 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.ci-testdrive-section .ci-td-kicker {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

.ci-testdrive {
  --td-bg: #0b1220;
  --td-panel: #111827;
  --td-border: #1e293b;
  --td-text: #e2e8f0;
  --td-muted: #94a3b8;
  --td-accent: #38bdf8;
  --td-accent-dim: rgba(56, 189, 248, 0.14);
  --td-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  background: var(--td-bg);
  border: 1px solid var(--td-border);
  border-radius: 14px;
  color: var(--td-text);
  overflow: hidden;
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.65);
}

.ci-testdrive__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--td-border);
  background: #0a0f1a;
}

.ci-testdrive__tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--td-muted);
  font-family: var(--td-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.ci-testdrive__tab[aria-selected="true"] {
  color: var(--td-accent);
  border-color: var(--td-accent);
  background: var(--td-accent-dim);
}

.ci-testdrive__panel {
  padding: 0.9rem 1rem 1rem;
}

.ci-testdrive__label {
  display: block;
  font-size: 0.78rem;
  color: var(--td-muted);
  margin-bottom: 0.4rem;
  font-family: 'Satoshi', system-ui, sans-serif;
}

.ci-testdrive__inputwrap {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.ci-testdrive__input,
.ci-testdrive__textarea {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--td-border);
  background: var(--td-panel);
  color: var(--td-text);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-family: var(--td-mono);
  font-size: 0.8rem;
  line-height: 1.45;
}

.ci-testdrive__textarea {
  min-height: 148px;
  resize: vertical;
}

.ci-testdrive__go {
  appearance: none;
  border: 1px solid #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-start;
}

.ci-testdrive__go:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}

.ci-testdrive__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.75rem 0 0.9rem;
}

.ci-testdrive__presets-label {
  font-size: 0.75rem;
  color: var(--td-muted);
  margin-right: 0.15rem;
  font-family: 'Satoshi', system-ui, sans-serif;
}

.ci-testdrive__preset {
  appearance: none;
  border: 1px solid var(--td-border);
  background: #0a0f1a;
  color: #cbd5e1;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.ci-testdrive__preset:hover {
  border-color: #38bdf8;
  color: #7dd3fc;
}

.ci-testdrive__stage {
  border: 1px solid var(--td-border);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0f1a;
}

.ci-testdrive__panebar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--td-border);
  background: #0b1220;
}

.ci-testdrive__spacer {
  flex: 1;
}

.ci-testdrive__panebtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--td-muted);
  font-family: var(--td-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.ci-testdrive__panebtn[aria-pressed="true"] {
  color: #fff;
  border-bottom-color: var(--td-accent);
}

.ci-testdrive__output {
  min-height: 240px;
  max-height: 480px;
  overflow: auto;
  padding: 0.85rem 1rem;
}

.ci-testdrive__placeholder {
  margin: 0;
  color: var(--td-muted);
  font-size: 0.9rem;
  font-family: 'Satoshi', system-ui, sans-serif;
}

.ci-testdrive__output pre {
  margin: 0;
  font-family: var(--td-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

.ci-testdrive__table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.84rem;
}

.ci-testdrive__table th,
.ci-testdrive__table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #1e293b;
  vertical-align: top;
  color: #e2e8f0;
}

.ci-testdrive__table th {
  color: #94a3b8;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.ci-testdrive__status {
  padding: 0.4rem 0.85rem;
  border-top: 1px solid var(--td-border);
  font-family: var(--td-mono);
  font-size: 0.68rem;
  color: var(--td-accent);
  background: #070b14;
}

.ci-pg-docs-cards {
  padding: 2.25rem 0 3rem;
  background: #fff;
}

.ci-pg-docs-cards h2 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 800;
  color: #0f172a;
}

.ci-pg-doc-card {
  display: block;
  height: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ci-pg-doc-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.25);
  text-decoration: none;
}

.ci-pg-doc-card strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.35rem;
  font-family: 'Satoshi', sans-serif;
}

.ci-pg-doc-card span {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}
