@import url('doc-shared.css');

.doc-page h3.purple { color: #3730A3; }

.four-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.component-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.component-card .label {
  font-size: 10px;
  font-weight: 600;
  color: #6D28D9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.component-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.component-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.lifecycle-item {
  background: white;
  border: 1px solid var(--border-brand);
  border-top: 3px solid #6D28D9;
  border-radius: 0 0 8px 8px;
  padding: 0.75rem;
}

.lifecycle-item .phase {
  font-size: 11px;
  font-weight: 700;
  color: #6D28D9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.lifecycle-item h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.lifecycle-item p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.three-grid.two-up { grid-template-columns: 1fr 1fr; }

.pillar {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 10px;
  padding: 1rem;
}

.pillar .icon { font-size: 20px; margin-bottom: 6px; }

.pillar h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pillar p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.flow-steps { margin: 1rem 0; }

.flow-step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.flow-step .step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #6D28D9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.step-content {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  flex: 1;
}

.step-content strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.step-content p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.info-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 8px;
  padding: 1rem;
}

.info-card strong {
  font-size: 13px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1rem 0;
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 8px;
  overflow: hidden;
}

.spec-table th {
  background: #F5F3FF;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #6D28D9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #DDD6FE;
}

.spec-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text-secondary);
  vertical-align: top;
}

.spec-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.spec-table tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.tag.sourced-tag { background: #F5F3FF; color: #6D28D9; }
.tag.inferred { background: var(--brand-orange-light); color: #B45309; }

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #3730A3;
}

.sdk-block {
  background: var(--brand-navy);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.sdk-block pre {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--brand-sky);
  line-height: 1.7;
  margin: 0;
}

.sdk-block .comment { color: #94A3B8; }
.sdk-block .keyword { color: #F472B6; }
.sdk-block .string { color: #86EFAC; }

@media (max-width: 768px) {
  .four-grid,
  .two-col-text,
  .three-grid,
  .three-grid.two-up { grid-template-columns: 1fr; }
  .lifecycle-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .lifecycle-grid { grid-template-columns: 1fr; }
}
