/**
 * Blog Visual Elements — shared styles for all blog articles.
 * Add <link rel="stylesheet" href="/blog/blog-visuals.css"> to any post.
 *
 * Elements:
 *   .stat-callout        — Large stat with context line
 *   .comparison-table    — Styled 2-column comparison
 *   .pull-quote          — Highlighted insight quote
 *   .takeaway-box        — Key takeaway summary
 *   h2, h3, h4           — Enhanced heading hierarchy
 */

/* 1. Stat Callouts */
.stat-callout {
  background: linear-gradient(135deg, rgba(13,115,119,0.06), rgba(13,115,119,0.02));
  border-left: 4px solid #0D7377;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}
.stat-callout .stat-number {
  display: block;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0D7377;
  line-height: 1.1;
  margin-bottom: 0.375rem;
}
.stat-callout .stat-context {
  font-size: 0.9375rem;
  color: #6B7280;
  line-height: 1.4;
}
/* Side-by-side stat pair */
.stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.stat-pair .stat-callout {
  margin: 0;
}
@media (max-width: 600px) {
  .stat-pair { grid-template-columns: 1fr; }
  .stat-callout .stat-number { font-size: 2rem; }
}

/* 2. Comparison Tables */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  font-size: 0.9375rem;
}
.comparison-table thead th {
  background: #1A1A2E;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  padding: 0.875rem 1.25rem;
  text-align: left;
}
.comparison-table thead th:first-child {
  border-right: 1px solid rgba(255,255,255,0.1);
}
.comparison-table tbody td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #F3F4F6;
  color: #374151;
  vertical-align: top;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: #F9FAFB; }
.comparison-table tbody td:first-child {
  border-right: 1px solid #F3F4F6;
  color: #6B7280;
}
.comparison-table tbody td:last-child {
  color: #0D7377;
  font-weight: 500;
}
/* Red/green variant for before/after */
.comparison-table.before-after tbody td:first-child { color: #991B1B; }
.comparison-table.before-after tbody td:last-child { color: #065F46; font-weight: 600; }
@media (max-width: 600px) {
  .comparison-table { font-size: 0.8125rem; }
  .comparison-table thead th,
  .comparison-table tbody td { padding: 0.625rem 0.75rem; }
}

/* 3. Pull Quotes */
.pull-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  border: none;
  background: none;
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.25rem; left: 0;
  font-size: 4rem;
  line-height: 1;
  color: #0D7377;
  opacity: 0.25;
  font-family: Georgia, serif;
}
.pull-quote p {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: #1A1A2E;
  font-style: normal;
  margin-bottom: 0.5rem;
}
.pull-quote cite,
.pull-quote .pull-quote-source {
  font-size: 0.8125rem;
  color: #6B7280;
  font-style: normal;
  display: block;
}

/* 4. Key Takeaway Boxes */
.takeaway-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.takeaway-box::before {
  content: "Key Takeaway";
  display: block;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #065F46;
  margin-bottom: 0.625rem;
}
.takeaway-box p {
  margin-bottom: 0.5rem;
  color: #1F2937;
  font-size: 0.9375rem;
}
.takeaway-box p:last-child { margin-bottom: 0; }
.takeaway-box ul {
  margin: 0.5rem 0 0 1.25rem;
  color: #1F2937;
  font-size: 0.9375rem;
}
.takeaway-box li { margin-bottom: 0.375rem; }

/* 5. Enhanced Heading Hierarchy */
/* Works in both .article and .article-body contexts */
.article h2,
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0D7377;
}
.article h3,
.article-body h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #1F2937;
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid #D4A853;
}
.article h4,
.article-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
}
