/* Blog pages only. Cards reuse the theme's .blog_details_item; this file adds article typography and layout. */
.yeti-blog { --blog-muted: rgba(13, 23, 56, 0.6); --blog-line: #e9e5ff; --blog-soft: #f6f5fd; }

/* Listing */
.blog-hero .details-content { color: var(--blog-muted); }
.blog-card { height: 100%; display: flex; flex-direction: column; }
.blog-card-img { display: block; aspect-ratio: 1200 / 630; background: var(--blog-soft); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-placeholder { display: flex; align-items: center; justify-content: center; }
.blog-card-placeholder img { width: 64px; height: 64px; object-fit: contain; opacity: .35; }
.blog-card .xb-item--title { font-size: 22px; line-height: 1.3; }
.blog-empty { color: var(--blog-muted); padding: 60px 0; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 50px; font-size: 15px; }
.blog-pager a { color: var(--color-primary); font-weight: 600; }

/* Post */
.blog-preview-banner { position: sticky; top: 0; z-index: 1000; background: #ffb800; color: #0d1738; text-align: center; font-weight: 600; padding: 8px 16px; font-size: 14px; }
.blog-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--blog-muted); margin-bottom: 28px; }
.blog-breadcrumb a { color: var(--color-primary); }
.blog-breadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.blog-header { max-width: 860px; margin-bottom: 36px; }
.blog-header h1 { font-size: 48px; line-height: 1.15; margin: 14px 0 16px; }
.blog-category { display: inline-block; padding: 3px 12px; border-radius: 5px; background: var(--color-secondary); color: var(--color-primary); font-size: 14px; font-weight: 600; text-transform: capitalize; }
.blog-lead { color: var(--blog-muted); margin-bottom: 18px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--blog-muted); }
.blog-meta span + span::before { content: "·"; margin-right: 20px; }
.blog-cover { margin: 0 0 40px; border-radius: 20px; overflow: hidden; background: var(--blog-soft); }
.blog-cover img { width: 100%; height: auto; display: block; }

.blog-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.blog-toc.blog_details_content { padding: 28px; margin: 0; }
.blog-toc-title, .blog-toc summary { font-weight: 700; font-size: 16px; color: var(--color-heading); margin-bottom: 12px; }
.blog-toc-list { list-style: none; padding: 0; margin: 0; max-height: 50vh; overflow: auto; }
.blog-toc-list li { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.blog-toc-list .blog-toc-l3 { padding-left: 16px; font-size: 14px; }
.blog-toc-list a { color: var(--blog-muted); }
.blog-toc-list a:hover { color: var(--color-primary); }
.blog-toc-mobile { background: var(--blog-soft); border-radius: 14px; padding: 16px 20px; margin-bottom: 32px; }
.blog-toc-mobile summary { cursor: pointer; margin: 0; }
.blog-toc-mobile[open] summary { margin-bottom: 14px; }
.blog-cta { background: #0d1738; color: rgba(255, 255, 255, .75); border-radius: 20px; padding: 28px; font-size: 15px; }
.blog-cta-title { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.blog-cta .thm-btn { margin-top: 8px; }

/* Article typography (Quill output) */
.blog-content { font-size: 18px; line-height: 1.75; color: #2d3250; overflow-wrap: break-word; }
.blog-content > * + * { margin-top: 1.1em; }
.blog-content h2, .blog-content h3, .blog-content h4 { color: var(--color-heading); letter-spacing: -0.01em; scroll-margin-top: 110px; margin-top: 1.8em; margin-bottom: .2em; }
.blog-content h2 { font-size: 32px; line-height: 1.25; }
.blog-content h3 { font-size: 24px; line-height: 1.3; }
.blog-content h4 { font-size: 20px; }
.blog-content p { margin-bottom: 0; }
.blog-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-content ul, .blog-content ol { padding-left: 1.4em; }
.blog-content li { list-style: revert; margin-bottom: .4em; }
.blog-content li[data-list="bullet"] { list-style-type: disc; }
.blog-content img { max-width: 100%; height: auto; border-radius: 14px; }
.blog-content blockquote { border-left: 4px solid var(--color-primary); background: var(--blog-soft); padding: 16px 22px; border-radius: 0 12px 12px 0; font-style: italic; }
.blog-content pre, .blog-content .ql-code-block-container { background: #0d1738; color: #e9e5ff; padding: 18px 22px; border-radius: 12px; font-size: 15px; overflow-x: auto; white-space: pre; }
.blog-content code { background: var(--blog-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.blog-content pre code { background: none; padding: 0; }
.blog-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.blog-content th, .blog-content td { border: 1px solid var(--blog-line); padding: 10px 14px; text-align: left; }
.blog-content iframe, .blog-content .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.blog-content .ql-align-center { text-align: center; }
.blog-content .ql-align-right { text-align: right; }
.blog-content .ql-align-justify { text-align: justify; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.blog-tags li { background: var(--blog-soft); color: var(--color-primary); padding: 4px 12px; border-radius: 50px; font-size: 14px; }
.blog-share { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--blog-line); font-weight: 600; color: var(--color-heading); }
.blog-share a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blog-soft); color: var(--color-heading); transition: .2s; }
.blog-share a:hover { background: var(--color-primary); color: #fff; }
.blog-related { margin-top: 90px; padding-top: 60px; border-top: 1px solid var(--blog-line); }

@media (max-width: 991px) {
    .blog-header h1 { font-size: 36px; }
    .blog-sidebar { position: static; }
    .blog-cover { margin-bottom: 32px; }
}
@media (max-width: 767px) {
    .blog-header h1 { font-size: 30px; }
    .blog-content { font-size: 17px; }
    .blog-content h2 { font-size: 26px; }
    .blog-content h3 { font-size: 21px; }
    .blog-cover { border-radius: 12px; }
}
