/* DSS Select blog - public styles. Colours match styles.css (teal #01b09b, green #79c142). */

.blog-main h1 { margin-bottom: 14px; }
.blog-main h2.blog-card-title { margin: 0; color: #333; font-size: 18px; line-height: 1.3; }
.blog-intro { margin-bottom: 26px; color: #727272; }
.blog-empty { color: #918f8f; }

/* Post grid / cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.blog-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f0f0f0; }
.blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.blog-card-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #01b09b;
}
.blog-card-title a { color: #333; }
.blog-card-title a:hover { color: #01b09b; }
.blog-main .blog-card-excerpt { margin: 0; font-size: 14px; color: #727272; }
.blog-card-date { font-size: 12px; color: #918f8f; }

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #e4e4e4;
    font-size: 14px;
}
.blog-pagination a { font-weight: 600; }
.blog-pagination-status { color: #918f8f; font-size: 13px; }

/* Single post */
.blog-post-header { margin-bottom: 20px; }
.blog-post-header .blog-card-category { display: inline-block; margin-bottom: 6px; }
.blog-main .blog-post-meta { margin: 0; font-size: 13px; color: #918f8f; }
.blog-post-featured-image { margin: 0 0 26px; }
.blog-post-featured-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.blog-attribution { margin-top: 8px; font-size: 12px; color: #918f8f; }
.blog-attribution a { color: #727272; text-decoration: underline; }

.blog-post-content { font-size: 16px; line-height: 1.75; color: #444; overflow-wrap: break-word; }
.blog-main .blog-post-content p { margin-bottom: 20px; font-size: 16px; }
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 { margin: 1.6em 0 0.6em; color: #01b09b; line-height: 1.3; }
.blog-post-content h2 { font-size: 22px; }
.blog-post-content h3 { font-size: 19px; }
.blog-post-content img { max-width: 100%; height: auto; border-radius: 4px; }
.blog-post-content ul,
.blog-post-content ol { margin: 0 0 20px 1.4em; }
.blog-post-content ul { list-style: disc; }
.blog-post-content ol { list-style: decimal; }
.blog-post-content li { margin-bottom: 6px; }
.blog-post-content a { color: #01b09b; text-decoration: underline; }
.blog-post-content blockquote {
    margin: 1.4em 0;
    padding: 4px 20px;
    border-left: 3px solid #79c142;
    color: #727272;
}
.blog-post-content pre {
    margin: 0 0 20px;
    padding: 14px;
    border-radius: 4px;
    background: #f3f3f3;
    overflow-x: auto;
    font-size: 14px;
}
.blog-post-content table { width: 100%; margin-bottom: 20px; border-collapse: collapse; }
.blog-post-content th,
.blog-post-content td { padding: 8px 10px; border: 1px solid #e4e4e4; text-align: left; }

.blog-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.blog-widget .blog-post-tags { margin-top: 0; }
.blog-tag {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #727272;
}
.blog-tag:hover { border-color: #01b09b; color: #01b09b; }
.blog-back { margin: 30px 0 0; font-size: 14px; }

/* Sidebar */
.blog-sidebar { padding-top: 4px; }
.blog-widget {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    background: #fff;
}
.blog-widget h4 { margin: 0 0 12px; color: #01b09b; font-size: 16px; font-weight: 600; }
.blog-widget p { margin: 0 0 12px; font-size: 14px; }
.blog-widget__list { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.blog-widget__list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.blog-widget__list li:last-child { border-bottom: 0; }
.blog-widget__list span { color: #918f8f; }
.blog-widget--cta { background: #eafaf3; border-color: #b8e6d3; }
.blog-btn {
    display: block;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 4px;
    background: #79c142;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.blog-btn:hover { background: #67a438; color: #fff; }
.blog-btn--alt { background: #01b09b; }
.blog-btn--alt:hover { background: #018b7c; }

@media (max-width: 767px) {
    .blog-grid { grid-template-columns: 1fr; }
}
