.blog-back {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.blog-back:hover { color: var(--accent); }

.blog-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.blog-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.blog-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.blog-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.blog-content li { margin-bottom: 0.5rem; }

.blog-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-content a:hover { opacity: 0.8; }

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.blog-content th, .blog-content td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}
.blog-content th { color: var(--text-primary); font-weight: 600; }

.blog-content em { font-style: italic; }

.blog-content blockquote {
  background: var(--glass-bg, rgba(30, 41, 59, 0.6));
  border-left: 4px solid var(--accent, #0ea5e9);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.blog-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-primary, #f1f5f9);
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.blog-content code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-light, #38bdf8);
}

.blog-content pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border, rgba(71, 85, 105, 0.3));
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary, #f1f5f9);
}

.blog-content strong {
  color: var(--text-primary, #f1f5f9);
  font-weight: 600;
}

.blog-content hr {
  border: none;
  border-top: 1px solid var(--glass-border, rgba(71, 85, 105, 0.3));
  margin: 2.5rem 0;
}

/* Template article layout — only when main has the class */
main.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
}

main.blog-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary, #f1f5f9);
}

/* Reset section spacing */
main.blog-content section {
  padding: 0;
  margin-bottom: 1.5rem;
}

/* Breadcrumb nav inside articles */
main.blog-content nav {
  position: static;
  background: none;
  border: none;
  backdrop-filter: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

main.blog-content nav a {
  color: var(--accent, #0ea5e9);
  text-decoration: none;
}

main.blog-content nav a:hover {
  color: var(--accent-light, #38bdf8);
}

@media (max-width: 768px) {
  main.blog-content {
    padding: calc(var(--nav-height) + 1.5rem) 1.25rem 3rem;
  }

  main.blog-content h1 {
    font-size: 1.75rem;
  }

  .blog-content table {
    display: block;
    overflow-x: auto;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.blog-card__read {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ── 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 Format Elements (Dark Theme Override) ────────
   VoicePrivate dark theme adaptations.
   Higher opacity backgrounds, glass-effect stat blocks. */

.callout {
  background: rgba(26, 108, 255, 0.12);
}
.callout-tip {
  background: rgba(34, 197, 94, 0.12);
}
.callout-warning {
  background: rgba(245, 158, 11, 0.12);
}
.callout-info {
  background: rgba(26, 108, 255, 0.12);
}
.stat-block {
  background: var(--glass-bg, rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}
.stat-label {
  color: rgba(255, 255, 255, 0.6);
}
.tldr-box {
  background: rgba(26, 108, 255, 0.1);
  border-color: rgba(26, 108, 255, 0.2);
}
.key-takeaway {
  background: rgba(26, 108, 255, 0.06);
  border-color: rgba(26, 108, 255, 0.3);
}
.timeline {
  border-left-color: rgba(26, 108, 255, 0.3);
}
.timeline-item::before {
  border-color: var(--glass-bg, rgba(255, 255, 255, 0.05));
}
.timeline-content {
  color: rgba(255, 255, 255, 0.8);
}
.step-content p {
  color: rgba(255, 255, 255, 0.65);
}
.comparison-chart {
  border-color: rgba(255, 255, 255, 0.1);
}
.comparison-chart th {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.comparison-chart td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.comparison-chart tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}