/* Page-specific: article hero override */
.hero {
  max-width: 800px;
  margin: 6rem auto 4rem;
}

/* Flow diagram canvas */
.flow-diagram-wrap {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.flow-diagram-canvas {
  width: 100%;
  height: 100px;
  display: block;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

/* Article content */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}
.article h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.article p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.article p strong {
  color: var(--text);
}
.article ul, .article ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.article li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.article li strong {
  color: var(--text);
}

/* Card overrides for article */
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.card { margin-bottom: 1.25rem; }

/* Workflow phases */
.workflow-phases {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0 2.5rem;
}
.workflow-phase {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.workflow-phase:last-child {
  border-bottom: none;
}
.phase-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.1);
  border: 1px solid rgba(0, 113, 227, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.phase-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.phase-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.phase-content .phase-link {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: inline-block;
}

/* Comparison table page-specific overrides */
.comparison-table { min-width: 600px; }
.comparison-table th,
.comparison-table td { vertical-align: top; }
.comparison-table th:first-child { border-radius: 8px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 8px 0 0; }
.comparison-table .col-tdd { color: var(--text); }
.comparison-table .col-code { color: var(--text-secondary); }
.comparison-table-wrap { margin: 2rem 0 2.5rem; }

/* Quickstart steps */
.quickstart {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
}
.quickstart-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}
.quickstart-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: none;
}
.quickstart-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.quickstart-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.quickstart-content code {
  font-size: 0.82rem;
}

/* Highlight box */
.highlight-box {
  background: rgba(0,113,227,0.04);
  border: 1px solid rgba(0,113,227,0.12);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.highlight-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.highlight-box p strong {
  color: var(--accent);
}

/* CTA section overrides for article */
.cta-section { margin: 3rem 0; }
.cta-section h3 { margin-top: 0; }

/* Page-specific responsive */
@media (max-width: 640px) {
  .hero { margin: 3rem auto 2rem; }
  .article h2 { font-size: 1.4rem; margin: 3rem 0 1rem; }
  .workflow-phase { grid-template-columns: 2.75rem 1fr; gap: 1rem; }
  .phase-number { width: 2.5rem; height: 2.5rem; font-size: 0.95rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.5rem; font-size: 0.8rem; }
  .cta-section { padding: 1.75rem; }
  .quickstart-step { grid-template-columns: 2.25rem 1fr; }
  .flow-diagram-wrap { display: none; }
}
