/* Research blog: shared pieces (category pill, author line, article cards, enquiry CTA) used by the
   blog hub, article pages and the homepage "From the blog" section, plus the hub listing.
   Article-only rules live in blog_article.css (not loaded on the homepage). */
.bl-cat { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); font-size: .875rem; font-weight: 700; letter-spacing: .01em; line-height: 1.4; }
.bl-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--gray-600); font-size: .875rem; }
/* Author line (cards, featured post, article byline): brand initial + "Stuwius Editorial Team". */
.bl-author { display: flex; align-items: center; gap: 10px; }
.bl-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1; }
.bl-author-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.bl-author-name { font-weight: 700; color: var(--gray-900); font-size: .9rem; line-height: 1.35; }
.bl-author--lg .bl-avatar { width: 44px; height: 44px; font-size: 1.1rem; }
.bl-author--lg .bl-author-name { font-size: 1rem; }
.bl-author--lg .bl-meta { font-size: .9rem; }
.sp-body .hp-section.sp-section.bl-hub { padding-top: 36px; }
/* Category chips */
.bl-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bl-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--gray-200); background: #fff; color: var(--gray-700); font-weight: 700; font-size: .95rem; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.bl-filter:hover { border-color: var(--brand-400); color: var(--brand-700); }
.bl-filter.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 6px 16px rgba(63, 86, 160, .25); }
.bl-result-line { margin: 0 0 20px !important; color: var(--gray-700); }
.bl-result-line a { color: var(--brand-600); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.bl-kicker { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: .875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
/* Card grid */
.bl-grid-title { font-family: "Fraunces", "Fraunces Fallback", Georgia, serif; font-size: 1.6rem; margin: 0 0 20px !important; color: var(--gray-900); }
.bl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.bl-card { display: flex; }
.bl-card-link { display: flex; flex-direction: column; width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-200); background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .25s, transform .25s var(--hp-ease); }
.bl-card-link:hover { border-color: var(--brand-200); box-shadow: var(--hp-shadow-lg); transform: translateY(-3px); }
.bl-card-media { display: block; overflow: hidden; background: var(--brand-50); }
.bl-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--hp-ease); }
.bl-card-link:hover .bl-card-img { transform: scale(1.035); }
.bl-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1 1 auto; }
.bl-card-title { font-family: "Fraunces", "Fraunces Fallback", Georgia, serif; font-weight: 700; font-size: 1.22rem; line-height: 1.28; color: var(--gray-900); }
.bl-card-excerpt { color: var(--gray-600); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card-body .bl-author { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.bl-empty { padding: 28px; border-radius: 18px; background: var(--brand-50); }
.bl-empty p + p { margin-top: 14px; }
.bl-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.bl-pager-info { color: var(--gray-600); font-weight: 600; }
.bl-all { margin-top: 26px !important; text-align: center; }
/* Enquiry CTA (hub + article) */
.bl-cta { margin-top: 52px; padding: 30px 32px; border-radius: 22px; background: linear-gradient(135deg, var(--brand-50), #eef6f4); border: 1px solid var(--brand-100); }
.bl-cta-title { font-family: "Fraunces", "Fraunces Fallback", Georgia, serif; font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px !important; color: var(--gray-900); }
.bl-cta p { color: var(--gray-700); }
.bl-cta.bl-cta--dark { position: relative; overflow: hidden; border: 0; background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 100%); box-shadow: 0 18px 40px rgba(43, 62, 114, .25); }
.bl-cta.bl-cta--dark::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.bl-cta--dark .bl-cta-title { color: #fff; }
.bl-cta--dark p { color: rgba(255, 255, 255, .86); }
.bl-cta--dark .sp-links { margin-top: 18px; }
/* Homepage "From the blog" */
.hp-blog .bl-grid { margin-top: 8px; }
.hp-blog-all { margin-top: 30px; text-align: center; }
@media (max-width: 1024px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; gap: 18px; }
  .bl-filters { gap: 8px; }
  .bl-filter { padding: 0 16px; }
  .bl-card-body { padding: 18px 18px 20px; }
  .bl-cta { padding: 24px 20px; }
  .bl-cta .sp-links .hp-btn { flex: 1 1 100%; }
  .bl-pager .hp-btn { flex: 1 1 40%; }
}
/* Screen-reader-only text (e.g. "See all thesis guides"). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
