/* --- Article Images --- */
.article-hero-img,
.article-infographic,
.article-chart {
  margin: 0 0 32px 0;
  padding: 0;
}

.article-hero-img img,
.article-infographic img,
.article-chart img {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 8px);
  display: block;
}

.article-chart img {
  max-width: 680px;
  margin: 0 auto;
}

/* ===== OpenSpringfield Blog Styles ===== */
/* Complements style.css — dark theme, optimized for long-form reading */

/* --- Article Layout --- */
.article-header {
  padding: 80px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  max-width: 820px;
  margin: 0 auto 16px;
  line-height: 1.15;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-meta .divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.article-tag {
  display: inline-block;
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* --- Article Body --- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 56px 0 20px;
  padding-top: 20px;
  color: var(--white);
  position: relative;
}

.article-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 40px 0 16px;
  color: var(--white);
}

.article-body strong {
  color: var(--white);
  font-weight: 600;
}

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 168, 67, 0.4);
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--gold);
  color: var(--white);
}

/* --- Data Highlight Boxes --- */
.data-callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.data-callout p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.data-callout p:last-child {
  margin-bottom: 0;
}

.data-callout .callout-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
}

/* --- Spending Breakdown List --- */
.spending-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.spending-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 16px;
}

.spending-list li:last-child {
  border-bottom: none;
}

.spending-label {
  color: var(--text);
  font-size: 1rem;
}

.spending-value {
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.spending-pct {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--mono);
  margin-left: 4px;
}

/* --- Bar Chart (CSS-only) --- */
.bar-chart {
  margin: 32px 0;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bar-label {
  min-width: 160px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.bar-amount {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 72px;
  text-align: right;
  flex-shrink: 0;
}

/* --- Top Vendors Table --- */
.vendors-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.95rem;
}

.vendors-table thead th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.vendors-table thead th:last-child {
  text-align: right;
}

.vendors-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vendors-table tbody td:first-child {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  width: 32px;
}

.vendors-table tbody td:last-child {
  text-align: right;
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 600;
}

.vendors-table tbody tr:hover {
  background: rgba(212, 168, 67, 0.04);
}

/* --- Note/Disclaimer Box --- */
.note-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.note-box strong {
  color: var(--white);
}

/* --- CTA Section --- */
.article-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 48px 0 0;
}

.article-cta h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--white);
}

.article-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.article-cta .btn-primary {
  font-size: 1.05rem;
  padding: 14px 32px;
}

/* --- Blog Index Link --- */
.blog-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 0;
}

.blog-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.blog-nav a:hover {
  color: var(--gold);
}

.blog-nav .separator {
  color: var(--text-muted);
  opacity: 0.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-header {
    padding: 48px 16px 32px;
  }

  .article-body {
    padding: 0 16px 60px;
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.35rem;
    margin: 40px 0 16px;
  }

  .bar-label {
    min-width: 100px;
    font-size: 0.78rem;
  }

  .bar-amount {
    font-size: 0.75rem;
    min-width: 60px;
  }

  .spending-list li {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .article-cta {
    padding: 28px 20px;
  }

  .vendors-table {
    font-size: 0.85rem;
  }

  .vendors-table thead th,
  .vendors-table tbody td {
    padding: 10px 8px;
  }

  .data-callout {
    padding: 20px;
  }
}
