/* Blog styles */
.blog-index { padding: 60px 0 80px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.blog-empty {
    color: var(--muted);
    font-size: 1.1rem;
    text-align: center;
    padding: 60px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.blog-card-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.blog-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}
.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.blog-read-more { color: var(--primary); font-weight: 600; }
.blog-pagination { margin-top: 48px; display: flex; justify-content: center; }

/* Post show */
.blog-show { padding: 48px 0 80px; }
.blog-show-inner { max-width: 780px; margin: 0 auto; }
.blog-back {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 28px;
}
.blog-back:hover { text-decoration: underline; }
.blog-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 32px;
}
.blog-show-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 0 0 14px;
}
.blog-show-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.blog-show-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.blog-show-body p { margin-bottom: 1.2em; }
.blog-show-body h2, .blog-show-body h3 {
    font-weight: 700;
    margin: 1.8em 0 0.6em;
    color: var(--text);
}
.blog-show-body ul, .blog-show-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.blog-show-body li { margin-bottom: 0.4em; }
.blog-show-body a { color: var(--primary); }
.blog-show-body strong { font-weight: 700; }

/* Body blocks (block builder output) */
.blog-show-body .blog-rich { margin: 0 0 1.2em; }
.blog-show-body .blog-rich p { margin: 0 0 1.2em; }
.blog-show-body .blog-rich a { color: var(--primary); text-decoration: underline; }
.blog-show-body .blog-rich ul,
.blog-show-body .blog-rich ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.blog-show-body .blog-figure { margin: 28px 0; }
.blog-show-body .blog-figure img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    display: block;
}
.blog-show-body .blog-figure figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}
.blog-show-body .blog-quote {
    margin: 28px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    border-radius: 14px;
    font-style: italic;
    color: var(--text);
}
.blog-show-body .blog-quote p { margin: 0; }
.blog-show-body .blog-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 700;
    color: var(--muted);
}
