.container { max-width: 1200px; margin: auto; padding: 0 2rem; }
.blog-page .page-hero { padding: 4rem 0 2rem; }
.blog-page .eyebrow { color: var(--accent); margin-bottom: .75rem; }
.blog-page h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.blog-page .lead { color: var(--text-muted); margin-top: 1.25rem; font-size: 1.15rem; max-width: 850px; }
.blog-section { padding: 1rem 0 4rem; }
.blog-categories-nav { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.cat-pill, .blog-tag { border: 1px solid var(--border-hover); border-radius: 2rem; padding: .45rem .85rem; color: var(--text-muted); }
.cat-pill.is-active, .cat-pill:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cat-count { font-size: .8rem; margin-left: .3rem; opacity: .8; }
.cards-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; }
.blog-card__image-link { display: block; }
.blog-card__image { width: 100%; height: auto; aspect-ratio: 600 / 315; object-fit: cover; display: block; }
.blog-card--catalog-cover .blog-card__image { aspect-ratio: 710 / 460; object-fit: contain; }
.blog-page .blog-grid { max-width: none; margin: 0; padding: 0; }
.blog-card__content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 1rem; }
.blog-card__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .8rem; color: var(--text-muted); }
.blog-card__title { font-size: 1.4rem; }
.blog-card__title a:hover, .text-link:hover { color: var(--accent); }
.blog-card__excerpt { color: var(--text-muted); }
.blog-card__footer { margin-top: auto; }
/* Light blue keeps AA contrast on the dark cards; links inside text are also underlined. */
.text-link { color: #60a5fa; font-weight: 600; }
p .text-link { text-decoration: underline; }
.blog-load-more-wrapper { text-align: center; margin: 2rem 0; }
.button, .btn-pagination { display: inline-flex; gap: .5rem; padding: .8rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: .7rem; color: var(--text-main); font: inherit; cursor: pointer; }
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
[hidden] { display: none !important; }
.blog-empty-state { padding: 4rem 2rem; min-height: 40vh; }
.blog-empty-state p { margin: 1rem 0; }
.blog-container-narrow { max-width: 900px; padding-bottom: 4rem; }
.blog-article-header { padding: 3rem 0 2rem; }
.blog-breadcrumbs { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.blog-article-meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.blog-article-image { display: block; max-width: 100%; height: auto; border-radius: 1rem; margin-bottom: 2rem; }
.blog-prose { font-size: 1.05rem; line-height: 1.85; overflow-wrap: anywhere; }
.blog-prose h2, .blog-prose h3, .blog-prose h4 { margin: 2rem 0 1rem; }
.blog-prose p, .blog-prose ul, .blog-prose ol, .blog-prose blockquote { margin-bottom: 1.25rem; }
.blog-prose ul, .blog-prose ol { padding-left: 1.5rem; }
.blog-prose a { color: var(--accent); text-decoration: underline; }
.blog-prose img { max-width: 100%; height: auto; border-radius: .75rem; }
.blog-prose blockquote { border-left: 3px solid var(--accent); padding: 1rem; background: var(--bg-card); }
.blog-prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.blog-prose td, .blog-prose th { border: 1px solid var(--border-hover); padding: .75rem; }
.blog-author-card, .blog-cta-section { padding: 1.75rem; background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: 1rem; margin-top: 2rem; }
.blog-cta-section p { margin: 1rem 0; color: var(--text-muted); }
.related-section { margin-top: 2rem; }
.blog-related-link { display: block; margin-top: 1rem; color: var(--accent); }
.type-blog-section { margin: 2.5rem 0; min-width: 0; }
.type-page .glow-bg { max-width: 100vw; }
.type-page .glow-top-right { right: 0; }
.type-page .glow-bottom-left { left: 0; }
.type-page .content-area { min-width: 0; }
.type-blog-intro { padding: 1.75rem; border: 1px solid var(--accent); border-radius: 1rem; background: var(--bg-card); }
.type-blog-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; }
.type-blog-intro h2 { margin: .6rem 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.type-blog-link { margin-top: 1.25rem; white-space: normal; text-align: center; }
.type-blog-note { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--text-muted); }
.type-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.blog-card__title, .blog-tag { overflow-wrap: anywhere; }
.blog-tag:hover { color: var(--accent); border-color: var(--accent); }
.type-blog-section a:focus-visible, .blog-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 600px) { .type-blog-grid { grid-template-columns: 1fr; } .type-blog-intro { padding: 1.25rem; } }
@media (max-width: 900px) { .cards-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .container { padding-left: 1.25rem; padding-right: 1.25rem; } .cards-grid.three { grid-template-columns: 1fr; } .blog-page .page-hero { padding-top: 2.5rem; } }

/* Latest published posts on the homepage. */
.home-blog-section { padding: 2rem 2rem 5rem; position: relative; }
.home-blog-section .section-header { margin-bottom: 2.5rem; }
.home-blog-section .home-blog-grid { max-width: none; margin: 0; padding: 0; }
.home-blog-section .blog-card__title { font-size: 1.4rem; margin: 0; }
.home-blog-section .blog-card__excerpt { font-size: .95rem; }
.home-blog-more { display: flex; justify-content: center; margin-top: 2.5rem; }
@media (max-width: 600px) { .home-blog-section { padding: 1.5rem 1.25rem 3rem; } }
