/* ── Article Format Elements ──────────────────────────────
   Shared styles for callouts, stat blocks, process flows,
   timelines, comparison charts, TL;DR and key takeaway boxes.
   Used by org-factory content generation across all sites. */

/* ── Callout Boxes ──────────────────────────────────────── */
.callout {
  border-left: 4px solid var(--accent, #1A6CFF);
  background: rgba(26, 108, 255, 0.08);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95em;
  line-height: 1.6;
}
.callout strong:first-child {
  display: inline;
  margin-right: 4px;
}
.callout-tip {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}
.callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.callout-info {
  border-left-color: var(--accent, #1A6CFF);
  background: rgba(26, 108, 255, 0.08);
}

/* ── Stat Blocks ────────────────────────────────────────── */
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--stat-bg, rgba(26, 108, 255, 0.06));
  border: 1px solid var(--stat-border, rgba(26, 108, 255, 0.15));
  border-radius: 12px;
  padding: 24px 20px;
  margin: 24px 0;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent, #1A6CFF);
}
.stat-label {
  font-size: 0.9em;
  color: var(--text-muted, #666);
  margin-top: 8px;
  max-width: 280px;
}

/* ── TL;DR Box ──────────────────────────────────────────── */
.tldr-box {
  background: var(--tldr-bg, #f0f7ff);
  border: 1px solid var(--tldr-border, #c8ddf5);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.tldr-box h3 {
  margin: 0 0 12px;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #1A6CFF);
}
.tldr-box ul {
  margin: 0;
  padding-left: 20px;
}
.tldr-box li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ── Key Takeaway Box ───────────────────────────────────── */
.key-takeaway {
  border: 2px solid var(--accent, #1A6CFF);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--takeaway-bg, rgba(26, 108, 255, 0.03));
}
.key-takeaway h3 {
  margin: 0 0 12px;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--accent, #1A6CFF);
}
.key-takeaway ul {
  margin: 0;
  padding-left: 20px;
}
.key-takeaway li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ── Process Flow ───────────────────────────────────────── */
.process-flow {
  margin: 28px 0;
  padding-left: 8px;
}
.process-step {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--accent, #1A6CFF);
  opacity: 0.3;
}
.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent, #1A6CFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
}
.step-content {
  flex: 1;
  padding-top: 4px;
}
.step-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05em;
}
.step-content p {
  margin: 0;
  color: var(--text-muted, #555);
  line-height: 1.5;
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline {
  margin: 28px 0;
  padding-left: 8px;
  border-left: 3px solid var(--timeline-line, rgba(26, 108, 255, 0.2));
}
.timeline-item {
  position: relative;
  padding: 0 0 24px 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #1A6CFF);
  border: 2px solid #fff;
}
.timeline-date {
  display: block;
  font-weight: 700;
  font-size: 0.85em;
  color: var(--accent, #1A6CFF);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.timeline-content {
  line-height: 1.5;
  color: var(--text-body, #333);
}

/* ── Comparison Chart ───────────────────────────────────── */
.comparison-chart {
  margin: 24px 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--chart-border, #e5e7eb);
}
.comparison-chart table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}
.comparison-chart th {
  background: var(--chart-header-bg, #f8fafc);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--chart-border, #e5e7eb);
}
.comparison-chart td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--chart-border, #e5e7eb);
}
.comparison-chart tr:last-child td {
  border-bottom: none;
}
.comparison-chart tr:hover td {
  background: var(--chart-hover, rgba(26, 108, 255, 0.04));
}

/* ── Mobile Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .stat-number { font-size: 2.2rem; }
  .stat-block { padding: 18px 16px; }
  .callout { padding: 12px 16px; }
  .tldr-box, .key-takeaway { padding: 16px 18px; }
  .process-step { gap: 12px; }
  .step-number { width: 30px; height: 30px; font-size: 0.8em; }
  .process-step:not(:last-child)::before { left: 14px; }
  .comparison-chart { font-size: 0.85em; }
  .comparison-chart th, .comparison-chart td { padding: 8px 10px; }
}
/* Article H1 - added by org-factory */
article h1, .article-body h1, .article-content h1 {
  font-size: 2.25rem;
  margin: 0 0 24px;
  color: inherit;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}
