/* ==========================================================================
   Blog Visual Components — Automatum
   Shared CSS for rich blog post elements: stat cards, charts, callouts, etc.
   ========================================================================== */

/* ---------- Variables (extend existing auto-article tokens) ---------- */
.auto-article {
  --auto-green: #10b981;
  --auto-green-soft: #ecfdf5;
  --auto-amber: #f59e0b;
  --auto-amber-soft: #fffbeb;
  --auto-red: #ef4444;
  --auto-red-soft: #fef2f2;
  --auto-purple: #8b5cf6;
  --auto-purple-soft: #f5f3ff;
  --auto-gradient-start: #2563eb;
  --auto-gradient-end: #7c3aed;
}

/* ---------- TL;DR / Key Takeaway Box ---------- */
.auto-tldr {
  margin: 0 0 36px;
  padding: 24px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(124,58,237,0.06) 100%);
  border: 1px solid rgba(37,99,235,0.15);
  position: relative;
  overflow: hidden;
}
.auto-tldr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--auto-gradient-start), var(--auto-gradient-end));
  border-radius: 4px 0 0 4px;
}
.auto-tldr-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auto-blue);
}
.auto-tldr-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.auto-tldr p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--auto-navy);
  font-weight: 500;
}
.auto-tldr ul {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: none;
}
.auto-tldr li {
  position: relative;
  padding-left: 4px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--auto-navy);
  font-weight: 500;
}
.auto-tldr li::before {
  content: "→";
  position: absolute;
  left: -18px;
  color: var(--auto-blue);
  font-weight: 700;
}

/* ---------- Stat Highlight Cards ---------- */
.auto-stat-grid {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
}
.auto-stat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.auto-stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.auto-stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.auto-stat-card {
  padding: 22px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--auto-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(6,22,51,0.035);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.auto-stat-card:hover {
  border-color: rgba(37,99,235,0.22);
  box-shadow: 0 8px 24px rgba(6,22,51,0.07);
  transform: translateY(-2px);
}
.auto-stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--auto-gradient-start) 0%, var(--auto-gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.auto-stat-card.accent-orange .auto-stat-number {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.auto-stat-card.accent-green .auto-stat-number {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.auto-stat-card.accent-red .auto-stat-number {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.auto-stat-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auto-muted);
  line-height: 1.4;
}
.auto-stat-context {
  display: block;
  font-size: 11.5px;
  color: rgba(86,101,122,0.7);
  margin-top: 4px;
  line-height: 1.35;
}

/* ---------- Pull Quotes ---------- */
.auto-pullquote {
  margin: 36px 0;
  padding: 28px 30px 28px 34px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--auto-gradient-start), var(--auto-gradient-end)) 1;
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(124,58,237,0.04) 100%);
  border-radius: 0 14px 14px 0;
  position: relative;
}
.auto-pullquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 48px;
  line-height: 1;
  color: rgba(37,99,235,0.15);
  font-family: Georgia, serif;
  font-weight: 700;
}
.auto-pullquote p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--auto-navy);
  font-weight: 600;
  font-style: italic;
  padding-left: 4px;
}
.auto-pullquote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--auto-muted);
  font-weight: 600;
}

/* ---------- Callout Boxes ---------- */
.auto-callout {
  margin: 28px 0;
  padding: 20px 22px 20px 54px;
  border-radius: 12px;
  border: 1px solid;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
}
.auto-callout::before {
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 20px;
  line-height: 1;
}
.auto-callout-title {
  display: block;
  font-weight: 750;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.auto-callout p {
  margin: 0;
}

/* Info variant */
.auto-callout--info {
  background: var(--auto-soft-blue);
  border-color: rgba(37,99,235,0.18);
  color: #1e3a5f;
}
.auto-callout--info::before { content: "\2139\FE0F"; }
.auto-callout--info .auto-callout-title { color: var(--auto-blue); }

/* Tip / Pro Tip variant */
.auto-callout--tip {
  background: var(--auto-green-soft);
  border-color: rgba(16,185,129,0.2);
  color: #065f46;
}
.auto-callout--tip::before { content: "\1F4A1"; }
.auto-callout--tip .auto-callout-title { color: var(--auto-green); }

/* Warning variant */
.auto-callout--warning {
  background: var(--auto-amber-soft);
  border-color: rgba(245,158,11,0.25);
  color: #78350f;
}
.auto-callout--warning::before { content: "\26A0\FE0F"; }
.auto-callout--warning .auto-callout-title { color: var(--auto-amber); }

/* Error / Mistake variant */
.auto-callout--error {
  background: var(--auto-red-soft);
  border-color: rgba(239,68,68,0.2);
  color: #7f1d1d;
}
.auto-callout--error::before { content: "\274C"; }
.auto-callout--error .auto-callout-title { color: var(--auto-red); }

/* ---------- Horizontal Bar Chart ---------- */
.auto-bar-chart {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auto-bar-chart-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--auto-navy);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.auto-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auto-bar-label {
  flex: 0 0 140px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--auto-text);
  text-align: right;
}
.auto-bar-track {
  flex: 1;
  height: 32px;
  background: rgba(6,22,51,0.05);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.auto-bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--auto-gradient-start), var(--auto-gradient-end));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  min-width: 40px;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.auto-bar-fill.orange {
  background: linear-gradient(90deg, #f97316, #ea580c);
}
.auto-bar-fill.green {
  background: linear-gradient(90deg, #10b981, #059669);
}
.auto-bar-fill.red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.auto-bar-fill.navy {
  background: linear-gradient(90deg, #1e3a5f, #061633);
}
.auto-bar-value {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}
.auto-bar-external-value {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 750;
  color: var(--auto-navy);
  min-width: 44px;
}

/* ---------- Donut / Ring Chart ---------- */
.auto-donut-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 28px 0 32px;
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--auto-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(6,22,51,0.035);
}
.auto-donut {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}
.auto-donut-center {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
}
.auto-donut-center span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auto-navy);
}
.auto-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auto-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--auto-text);
}
.auto-donut-legend-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

/* ---------- Process Steps / Timeline ---------- */
.auto-steps {
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.auto-step {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.auto-step:last-child { padding-bottom: 0; }
.auto-step-indicator {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auto-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auto-gradient-start), var(--auto-gradient-end));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.08);
}
.auto-step-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, rgba(37,99,235,0.25), rgba(37,99,235,0.05));
  margin-top: 6px;
}
.auto-step:last-child .auto-step-line { display: none; }
.auto-step-content {
  flex: 1;
  padding-top: 6px;
}
.auto-step-title {
  font-size: 17px;
  font-weight: 750;
  color: var(--auto-navy);
  line-height: 1.3;
  margin-bottom: 6px;
}
.auto-step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--auto-text);
  margin: 0;
}

/* ---------- Comparison / VS Cards ---------- */
.auto-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 32px;
}
.auto-vs-card {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--auto-border);
}
.auto-vs-card.before {
  background: linear-gradient(135deg, rgba(239,68,68,0.05), rgba(239,68,68,0.02));
  border-color: rgba(239,68,68,0.18);
}
.auto-vs-card.after {
  background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(16,185,129,0.02));
  border-color: rgba(16,185,129,0.18);
}
.auto-vs-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.auto-vs-card.before .auto-vs-label { color: var(--auto-red); }
.auto-vs-card.after .auto-vs-label { color: var(--auto-green); }
.auto-vs-card ul {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}
.auto-vs-card li {
  position: relative;
  padding-left: 4px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--auto-text);
}
.auto-vs-card.before li::before {
  content: "\2717";
  position: absolute;
  left: -16px;
  color: var(--auto-red);
  font-weight: 700;
  font-size: 12px;
}
.auto-vs-card.after li::before {
  content: "\2713";
  position: absolute;
  left: -16px;
  color: var(--auto-green);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Metric Spotlight ---------- */
.auto-spotlight {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 32px;
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--auto-navy);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.auto-spotlight::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(37,99,235,0.2);
  filter: blur(40px);
}
.auto-spotlight-number {
  flex: 0 0 auto;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}
.auto-spotlight-text {
  flex: 1;
  position: relative;
  z-index: 1;
}
.auto-spotlight-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.auto-spotlight-text span {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ---------- Checklist ---------- */
.auto-checklist {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--auto-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auto-checklist-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--auto-navy);
  margin-bottom: 14px;
}
.auto-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auto-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--auto-text);
  padding: 0;
  margin: 0;
}
.auto-checklist li::before {
  content: "\2713";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--auto-green-soft);
  color: var(--auto-green);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- Gradient Divider ---------- */
.auto-divider {
  margin: 40px 0;
  height: 2px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.2), rgba(124,58,237,0.2), transparent);
  border-radius: 999px;
}

/* ---------- Inline Badge ---------- */
.auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auto-badge--blue { background: var(--auto-soft-blue); color: var(--auto-blue); }
.auto-badge--green { background: var(--auto-green-soft); color: var(--auto-green); }
.auto-badge--orange { background: var(--auto-amber-soft); color: #d97706; }
.auto-badge--red { background: var(--auto-red-soft); color: var(--auto-red); }
.auto-badge--purple { background: var(--auto-purple-soft); color: var(--auto-purple); }

/* ---------- Icon Feature Grid ---------- */
.auto-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 32px;
}
.auto-feature-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--auto-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auto-feature-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 6px 20px rgba(6,22,51,0.05);
}
.auto-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 10px;
  background: var(--auto-soft-blue);
}
.auto-feature-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--auto-navy);
  line-height: 1.3;
}
.auto-feature-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--auto-muted);
}

/* ---------- Numbered Highlight Card ---------- */
.auto-numbered-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
}
.auto-numbered-card {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--auto-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auto-numbered-card:hover {
  border-color: rgba(37,99,235,0.22);
  box-shadow: 0 6px 20px rgba(6,22,51,0.06);
}
.auto-numbered-card-num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--auto-gradient-start), var(--auto-gradient-end));
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.auto-numbered-card-body h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
  color: var(--auto-navy);
}
.auto-numbered-card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--auto-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .auto-stat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .auto-stat-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .auto-stat-number { font-size: 28px; }
  .auto-stat-label { font-size: 12px; }

  .auto-pullquote { padding: 22px 22px 22px 26px; }
  .auto-pullquote p { font-size: 17px; }
  .auto-pullquote::before { left: 8px; font-size: 40px; }

  .auto-callout { padding: 18px 18px 18px 48px; }
  .auto-callout::before { left: 16px; }

  .auto-bar-label { flex: 0 0 100px; font-size: 12.5px; }
  .auto-bar-track { height: 26px; }

  .auto-donut-wrap { flex-direction: column; text-align: center; }
  .auto-donut { width: 100px; height: 100px; }
  .auto-donut-center { inset: 14px; }
  .auto-donut-center span { font-size: 22px; }

  .auto-vs { grid-template-columns: 1fr; }

  .auto-spotlight { flex-direction: column; text-align: center; }
  .auto-spotlight-number { font-size: 42px; }

  .auto-feature-grid { grid-template-columns: 1fr; }

  .auto-step { gap: 14px; }
  .auto-step-dot { width: 30px; height: 30px; font-size: 12px; }

  .auto-tldr { padding: 20px 22px; }

  .auto-author-byline { margin: 14px 0 18px; }
  .auto-author-byline-photo { width: 36px; height: 36px; }

  .auto-author-box { flex-direction: column; text-align: center; align-items: center; }
  .auto-author-box-photo { margin-bottom: 4px; }
  .auto-author-box-link { justify-content: center; }

  .auto-citations { padding: 20px 18px; }

  .auto-toc { padding: 18px 20px; }
}

/* ==========================================================================
   Author Byline (between date line and hero image)
   ========================================================================== */

.auto-author-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
}
.auto-author-byline-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.12);
  flex-shrink: 0;
}
.auto-author-byline-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.auto-author-byline-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--auto-navy, #061633);
  text-decoration: none;
  transition: color 0.15s ease;
}
.auto-author-byline-name:hover {
  color: var(--auto-blue, #2563eb);
}
.auto-author-byline-role {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--auto-muted, #56657a);
}

/* ==========================================================================
   About the Author Box (bottom of post, before related)
   ========================================================================== */

.auto-author-box {
  display: flex;
  gap: 20px;
  margin: 40px 0 32px;
  padding: 28px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  align-items: flex-start;
}
.auto-author-box-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
}
.auto-author-box-info {
  flex: 1;
}
.auto-author-box-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auto-blue, #2563eb);
  margin-bottom: 6px;
}
.auto-author-box-name {
  font-size: 18px;
  font-weight: 750;
  color: var(--auto-navy, #061633);
  line-height: 1.2;
  margin-bottom: 2px;
}
.auto-author-box-role {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--auto-muted, #56657a);
  margin-bottom: 10px;
}
.auto-author-box-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--auto-text, #334155);
  margin: 0 0 12px;
}
.auto-author-box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--auto-blue, #2563eb);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.auto-author-box-link:hover {
  opacity: 0.8;
}
.auto-author-box-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Sources & References Section
   ========================================================================== */

.auto-citations {
  margin: 32px 0 8px;
  padding: 24px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--auto-border, rgba(6, 22, 51, 0.08));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auto-citations-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auto-muted, #56657a);
  margin-bottom: 14px;
}
.auto-citations-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auto-citations-list li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--auto-text, #334155);
}
.auto-citations-list a {
  color: var(--auto-blue, #2563eb);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.auto-citations-list a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ==========================================================================
   Template Variation: Data & Research
   ========================================================================== */

.blog-temp-banner {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.blog-temp-banner--data {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
  color: var(--auto-blue, #2563eb);
}
.blog-temp-banner--howto {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
  color: var(--auto-green, #10b981);
}

/* Data template: more prominent stat cards */
.blog-temp--data .auto-stat-card {
  border-width: 2px;
}
.blog-temp--data .auto-stat-number {
  font-size: 42px;
}

/* ==========================================================================
   Template Variation: How-To Guide — Table of Contents
   ========================================================================== */

.auto-toc {
  margin: 20px 0 28px;
  padding: 22px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(5, 150, 105, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.auto-toc-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--auto-green, #10b981);
  margin-bottom: 12px;
}
.auto-toc-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auto-toc-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--auto-text, #334155);
}
.auto-toc-list a {
  color: var(--auto-navy, #061633);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.auto-toc-list a:hover {
  color: var(--auto-green, #10b981);
}

/* How-to template: numbered headings get green accent */
.blog-temp--howto .rich-text-block h2 {
  border-left: 4px solid var(--auto-green, #10b981);
  padding-left: 14px;
  scroll-margin-top: 90px;
}

/* ==========================================================================
   Editorial Note (author voice injection)
   ========================================================================== */

.auto-editor-note {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
  border-left: 3px solid var(--auto-blue, #2563eb);
  font-size: 15px;
  line-height: 1.65;
  color: var(--auto-navy, #061633);
}
.auto-editor-note em {
  font-style: italic;
  font-weight: 500;
}
