/* Blog-specific styles — shared by all 4 sites via CSS variable inheritance */

/* === STICKY FOOTER === */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}

/* === BLOG INDEX === */
.blog-index-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.blog-index-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
}

.blog-card {
  border-bottom: 1px solid var(--border, #e0e0e0);
  padding: 28px 0;
}

.blog-card:last-of-type {
  border-bottom: none;
}

.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  border: none;
  padding: 0;
  margin-top: 0;
}

.blog-card h2 a {
  color: var(--text, #1a1a1a);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.blog-card .meta {
  font-size: 0.85rem;
  color: var(--muted, #555);
  margin-bottom: 10px;
  border: none;
  padding: 0;
}

.blog-card .summary {
  color: var(--muted, #555);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.read-more {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  gap: 8px;
  margin: 36px 0 0;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pagination a.active,
.pagination a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  text-decoration: none;
}

/* === BLOG POST EXTRAS === */
.source-credit {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  background: var(--bg-light, #f8f9fa);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--muted, #555);
  border-right: 3px solid var(--border, #e0e0e0);
}

.also-read {
  font-size: 0.88rem;
  color: var(--muted, #555);
  font-style: italic;
  margin-bottom: 0 !important;
}

.also-read a {
  font-weight: 700;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .blog-index-wrap {
    padding: 20px 16px 40px;
  }

  .blog-index-title {
    font-size: 1.4rem;
  }

  .blog-card h2 {
    font-size: 1.1rem;
  }

  .blog-card {
    padding: 20px 0;
  }
}
