/* Shared by /blog and /blog/{slug} — card grid, hero, and article typography.
   Loaded alongside detail-pages.css, which already supplies the design
   tokens (--primary, --bg-deep, etc.) and the top-bar/breadcrumb/container
   chrome both blog pages reuse as-is. */

.blog-hero { padding: 48px 0 32px; text-align: center; }
.blog-hero h1 { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.blog-hero p { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto; }

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

.blog-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.25s var(--ease-out-expo); }
.blog-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.blog-card-image { aspect-ratio: 1200 / 630; background: var(--bg-elevated); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); }
.blog-card-body h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.3; }
.blog-card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.blog-card-date { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.blog-empty { text-align: center; color: var(--text-muted); padding: 60px 0; }

.blog-post-container { max-width: 760px; }
.blog-post { padding: 32px 0 16px; }
.blog-post h1 { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--white); line-height: 1.2; margin: 10px 0 14px; }
.blog-post-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.blog-post-cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 32px; }
.blog-post-cover img { width: 100%; height: auto; display: block; }

.blog-post-content { color: var(--text); font-size: 17px; line-height: 1.8; }
.blog-post-content h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white); margin: 36px 0 14px; }
.blog-post-content p { margin-bottom: 18px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 18px; padding-left: 24px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content strong { color: var(--white); font-weight: 600; }
.blog-post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-post-content a:hover { color: var(--white); }
.blog-post-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }

.blog-related { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.blog-related h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 20px; }

@media (max-width: 640px) {
    .blog-hero h1 { font-size: 32px; }
    .blog-post h1 { font-size: 28px; }
}
