/* blog.css — Knowledge base / article listing + detail styles */

.blog-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  padding: 80px 0 40px;
  text-align: center;
}
.blog-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.blog-hero p { color: var(--text-note); font-size: 14px; }

/* Filters */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 24px 0; margin-bottom: 8px;
}
.blog-filter-btn {
  min-height: 44px; /* touch-target floor (site convention) */
  padding: 6px 18px; border-radius: 100px; border: 1.5px solid var(--border);
  background: var(--white); font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: inherit; color: var(--text-note); transition: all .2s;
}
.blog-filter-btn:hover { border-color: var(--mint); color: var(--mint-dark); }
/* active: ink on mint = 7.5:1 AA (was white on mint = 1.76:1) */
.blog-filter-btn.active { background: var(--mint); color: var(--ink, #26332F); font-weight: 600; border-color: var(--mint); }

/* Card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.blog-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.blog-card-img { height: 180px; overflow: hidden; background: var(--cream); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-noimg { display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--text-note); }

.blog-card-body { padding: 20px; }
.blog-card-cat {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  background: var(--mint-light); color: var(--mint-dark); font-size: 11px; font-weight: 600;
  margin-bottom: 8px;
}
.blog-card-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 13px; color: var(--text-note); line-height: 1.7; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-note); font-size: 15px; }

/* Detail */
.blog-back {
  display: inline-block; margin-bottom: 24px; color: var(--mint-dark); font-size: 14px;
  text-decoration: none; font-weight: 500;
}
.blog-back:hover { text-decoration: underline; }

.blog-detail-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 24px; }

.blog-detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.blog-detail-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.4; margin-bottom: 24px; }

.blog-detail-content {
  font-size: 15px; line-height: 1.9; color: var(--text);
}
.blog-detail-content h2 { font-size: 1.3em; font-weight: 700; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--mint-light); }
.blog-detail-content h3 { font-size: 1.1em; font-weight: 700; margin: 24px 0 8px; }
.blog-detail-content p { margin-bottom: 16px; }
.blog-detail-content ul, .blog-detail-content ol { margin: 12px 0 16px 24px; }
.blog-detail-content li { margin-bottom: 6px; }
.blog-detail-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.blog-detail-content blockquote {
  border-left: 4px solid var(--mint); padding: 12px 20px; margin: 16px 0;
  background: var(--mint-light); border-radius: 0 var(--radius) var(--radius) 0;
}

/* Article Sources / Citations */
.article-sources {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--mint-light, #F0FFFA);
  border-left: 4px solid var(--mint, #7DD3C0);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}
.article-sources h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}
.article-sources ul { margin: 0 0 0 20px; list-style: disc; }
.article-sources li { margin-bottom: 4px; color: var(--text-note); line-height: 1.6; }
.article-sources a { color: var(--mint-dark, #5BC4A8); text-decoration: none; }
.article-sources a:hover { text-decoration: underline; }

/* Related articles & guide links */
.blog-related { max-width: 800px; margin: 0 auto; padding: 0 16px 40px; }
.blog-related h2 { font-size: 18px; margin-bottom: 16px; color: var(--text-dark, #2D3436); }
.blog-related h2:not(:first-child) { margin-top: 24px; }
.blog-related-grid { display: grid; gap: 12px; }
.blog-related-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  text-decoration: none; color: inherit; transition: transform 0.2s;
}
.blog-related-link:hover { transform: translateX(4px); }
.blog-related-link--article { background: var(--cream, #FFF8F0); }
.blog-related-link--guide { background: var(--mint-light, #F0FFFA); }
.blog-related-link span:first-child { font-size: 14px; color: var(--mint-dark, #5BC4A8); }
.blog-related-link span:last-child { font-size: 14px; font-weight: 500; }

/* Blog article page breadcrumb */
.blog-article { max-width: 800px; margin: 0 auto; padding: 20px 16px 40px; }

/* Inline figure (cattery brand illustration) */
.blog-figure {
  margin: 28px auto;
  text-align: center;
  max-width: 600px;
}
.blog-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: block;
}
.blog-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-note, #888);
  line-height: 1.5;
  font-style: normal;
}
@media (max-width: 768px) {
  .blog-figure { margin: 20px auto; max-width: 100%; }
  .blog-figure img { border-radius: 12px; }
  .blog-figure figcaption { font-size: 12px; }
}

/* Blog list static card links */
.blog-card[data-category] { display: block; }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-hero { padding: 60px 0 24px; }
}
