/* Blog post styles — automate-customer-onboarding */

/* ============ ARTICLE LAYOUT ============ */
.article-wrapper {
  display: grid;
  grid-template-columns: 220px minmax(0, 740px) 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TABLE OF CONTENTS ============ */
.toc {
  position: sticky; top: 100px; align-self: start;
  padding-top: 32px;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(10,10,11,0.4); margin-bottom: 16px;
}
.toc a {
  display: block; font-size: 13px; color: rgba(10,10,11,0.45);
  text-decoration: none; padding: 5px 0; line-height: 1.4;
  border-left: 2px solid transparent; padding-left: 12px;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover, .toc a.active {
  color: #7C3AED; border-left-color: #7C3AED;
}

/* ============ ARTICLE CONTENT ============ */
.article-body {
  padding: 48px 0 80px;
}
.article-body h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.2; letter-spacing: -0.02em;
  color: #0A0A0B;
  margin-top: 56px; margin-bottom: 18px;
  padding-top: 24px; border-top: 1px solid rgba(10,10,11,0.06);
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.15rem; font-weight: 600;
  color: #0A0A0B;
  margin-top: 32px; margin-bottom: 10px;
}
.article-body p {
  font-size: 1.02rem; line-height: 1.8;
  color: rgba(10,10,11,0.65); margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  margin-bottom: 18px; padding-left: 24px;
}
.article-body li {
  font-size: 1.02rem; line-height: 1.8;
  color: rgba(10,10,11,0.65); margin-bottom: 6px;
}
.article-body strong { color: #0A0A0B; font-weight: 600; }
.article-body a {
  color: #7C3AED; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(124,58,237,0.3);
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: #7C3AED; }
.article-body blockquote {
  border-left: 3px solid #7C3AED; padding: 16px 24px;
  margin: 24px 0; background: rgba(124,58,237,0.03);
  border-radius: 0 12px 12px 0;
}
.article-body blockquote p { margin-bottom: 0; font-style: italic; }

/* Definition box */
.definition-box {
  background: rgba(124,58,237,0.04);
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 12px; padding: 24px 28px; margin-bottom: 28px;
  border-left: 4px solid #7C3AED;
}
.definition-box p { margin-bottom: 0; font-size: 1.05rem; line-height: 1.7; }

/* Comparison table */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 24px 0 28px;
  font-size: 0.92rem; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(10,10,11,0.08);
}
.comparison-table thead { background: #0A0A0B; }
.comparison-table th {
  padding: 12px 14px; text-align: left; font-weight: 600;
  color: #F7F6F2; font-size: 0.85rem; letter-spacing: 0.02em;
}
.comparison-table td {
  padding: 12px 14px; border-bottom: 1px solid rgba(10,10,11,0.06);
  color: rgba(10,10,11,0.65); line-height: 1.5;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: rgba(124,58,237,0.02); }
.comparison-table .row-label { font-weight: 600; color: #0A0A0B; white-space: nowrap; }

/* Step cards */
.step-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 28px;
}
.step-card {
  background: rgba(10,10,11,0.02);
  border: 1px solid rgba(10,10,11,0.08);
  border-radius: 12px; padding: 24px;
  transition: all 0.3s ease;
}
.step-card:hover { border-color: rgba(124,58,237,0.2); }
.step-card h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: #0A0A0B; margin-bottom: 8px;
}
.step-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }
.step-card .card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: #7C3AED; margin-top: 10px; display: block;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Decision cards (reuse) */
.decision-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 28px;
}
.decision-card {
  background: rgba(10,10,11,0.02);
  border: 1px solid rgba(10,10,11,0.08);
  border-radius: 12px; padding: 24px;
  transition: all 0.3s ease;
}
.decision-card:hover { border-color: rgba(124,58,237,0.2); }
.decision-card h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: #0A0A0B; margin-bottom: 8px;
}
.decision-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }
.decision-card .card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: #7C3AED; margin-top: 10px; display: block;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Metric highlight */
.metric-highlight {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 28px;
}
.metric-card {
  background: #0A0A0B; border-radius: 12px; padding: 24px; text-align: center;
}
.metric-card .metric-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem; font-weight: 700; color: #A3E635;
  margin-bottom: 4px;
}
.metric-card .metric-label {
  font-size: 0.8rem; color: rgba(247,246,242,0.6);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(10,10,11,0.06);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem; font-weight: 600;
  color: #0A0A0B; margin-bottom: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: #7C3AED; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  font-size: 0.98rem; line-height: 1.7; color: rgba(10,10,11,0.6);
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 500px; }

/* Author bio */
.author-bio {
  background: rgba(10,10,11,0.02);
  border: 1px solid rgba(10,10,11,0.06);
  border-radius: 12px; padding: 24px 28px;
}

/* CTA section */
.blog-cta {
  background: #0A0A0B; color: #F7F6F2;
  border-radius: 16px; padding: 48px; text-align: center;
  margin: 48px 0;
}
.blog-cta h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.8rem; color: #F7F6F2; margin-bottom: 12px;
}
.blog-cta p { color: rgba(247,246,242,0.7); margin-bottom: 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .article-wrapper {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 24px;
  }
  .toc { display: none; }
}
@media (max-width: 768px) {
  .article-body h2 { font-size: 1.4rem; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
  .step-grid, .decision-grid { grid-template-columns: 1fr; }
  .metric-highlight { grid-template-columns: 1fr; }
}
