.blog-main { width: min(100% - 48px, 1000px); margin: 0 auto; padding: 64px 0 72px; min-height: 65vh; }
.blog-heading { margin-bottom: 32px; }
.blog-heading h1 { margin: 0 0 16px; font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.15; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.blog-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.blog-filters { display: grid; grid-template-columns: minmax(150px, 1fr) 164px 164px 166px auto; align-items: center; gap: 8px; margin: 0 0 20px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.blog-filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.5; min-width: 0; }
.blog-filters input, .blog-filters select { width: 100%; min-width: 0; height: 44px; padding: 10px 12px; border: 1px solid #4b494f; border-radius: 7px; color: var(--text); background: var(--background); font: inherit; font-size: 15px; }
.blog-filters input::placeholder { color: var(--muted); }
.blog-filters input:hover, .blog-filters select:hover { border-color: var(--yellow); }
.blog-filters select { cursor: pointer; }
.blog-filters option { color: var(--text); background: var(--surface); }
@supports (appearance: base-select) {
    .blog-filters select, .blog-filters select::picker(select) { appearance: base-select; }
    .blog-filters select { display: flex; align-items: center; gap: 6px; }
    .blog-filters select::picker-icon { color: var(--yellow); margin-left: auto; }
    .blog-filters select:open::picker-icon { rotate: 180deg; }
    .blog-filters select::picker(select) { margin-top: 6px; padding: 4px; border: 1px solid #4b494f; border-radius: 7px; background: var(--surface); color: var(--text); box-shadow: 0 8px 24px #0006; }
    .blog-filters option { min-height: 40px; padding: 8px; gap: 8px; border-radius: 4px; }
    .blog-filters option:hover, .blog-filters option:focus { outline: none; background: #fed45e12; }
    .blog-filters option:checked { color: var(--yellow); }
    .blog-filters option::checkmark { color: var(--yellow); }
}
.blog-filter-actions { display: flex; align-items: center; gap: 8px; }
.blog-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 1px solid #4b494f; border-radius: 7px; color: var(--yellow); background: transparent; cursor: pointer; }
.blog-icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.blog-icon-button:hover { border-color: var(--yellow); background: #fed45e0a; }
.blog-icon-button:focus-visible { outline: none; border-color: var(--yellow); background: #fed45e0a; }
.blog-reset { font-size: 14px; color: var(--text); }
.blog-reset.blog-icon-button { color: var(--yellow); }
.blog-reset:hover { color: var(--yellow); }
.blog-request-status button.blog-reset { padding: 0; border: 0; background: none; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.blog-request-status { min-height: 24px; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.blog-request-status:empty { display: none; }
#blog-content[aria-busy="true"] { opacity: .7; }
.blog-count { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.blog-card { display: flex; gap: 28px; padding: 30px 0; }
.blog-card-copy { min-width: 0; flex: 1; }
.blog-card :is(h2, h3) { margin: 12px 0; font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -.5px; line-height: 1.35; overflow-wrap: anywhere; }
.blog-card :is(h2, h3) a { text-decoration: none; }
.blog-card :is(h2, h3) a:hover { color: var(--yellow); }
.blog-card time, .blog-heading time { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.blog-heading time { display: block; margin-bottom: 18px; }
.blog-card p { margin: 0 0 20px; color: #c6c4cb; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.blog-card-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.blog-card-links a:first-child { color: var(--yellow); }
.blog-card-links a:hover { color: var(--yellow); }
.blog-card-image { width: 200px; height: 200px; flex: 0 0 200px; align-self: flex-start; border-radius: 8px; overflow: hidden; }
.blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-image:has(img[hidden]) { display: none; }
.blog-pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; font-size: 14px; }
.blog-pagination a, .blog-pagination [aria-current], .blog-pagination > [aria-disabled] { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 36px; min-height: 44px; padding: 4px 8px; border-radius: 6px; text-decoration: none; }
.blog-pagination a:hover, .blog-pagination a:focus-visible { color: var(--yellow); background: #fed45e12; }
.blog-pagination [aria-current="page"] { color: #1c1c1c; background: var(--yellow); font-weight: 600; }
.blog-pagination [aria-disabled] { color: var(--muted); opacity: .6; }
.blog-page-numbers { display: flex; align-items: center; justify-content: center; min-width: 0; }
.blog-page-numbers-compact { display: none; }
.blog-pagination-ellipsis { padding: 0 6px; }
.blog-pagination-arrow { width: 16px; height: 16px; }
.blog-empty, .blog-error { padding: 40px 0; line-height: 1.7; }
.blog-empty h2 { font-size: 25px; }
.blog-empty p { color: var(--muted); }
.blog-error { color: var(--text); }
.blog-error .button { margin-top: 8px; }
.blog-post { max-width: 800px; }
.blog-back { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--yellow); }
.blog-post-image { margin: 0 0 32px; }
.blog-post-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
.blog-post-body { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.blog-post-body p { margin: 0 0 1.25em; }
.blog-post-body a { color: var(--yellow); }
.blog-post-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--yellow); color: #d2cfd8; }
.blog-post-body pre { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.blog-post-body code { font: .88em var(--mono); white-space: pre-wrap; }
.blog-post-body pre code { white-space: pre; }
.blog-original { margin: 40px 0 0; padding-top: 24px; font-size: 14px; color: var(--yellow); }
.blog-footer { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 12px; }
.blog-footer nav { flex-wrap: wrap; gap: 16px; }
.blog-footer nav a { font-size: 12px; }
.blog-footer a:hover { color: var(--yellow); }
.home-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.home-blog-grid .blog-card { flex-direction: column; border: 0; }
.home-blog-grid .blog-card-image { width: 100%; height: 240px; flex-basis: auto; }
.home-blog-message { color: var(--muted); }
@media (max-width: 900px) {
    .blog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-filters .blog-search { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .blog-pagination { gap: 4px; font-size: 12px; }
    .blog-page-numbers-wide, .blog-pagination-label { display: none; }
    .blog-page-numbers-compact { display: flex; }
    .blog-page-numbers a, .blog-page-numbers [aria-current] { min-width: 28px; padding-inline: 4px; }
    .blog-pagination > a, .blog-pagination > [aria-disabled] { min-width: 40px; padding-inline: 4px; }
    .blog-pagination-ellipsis { padding: 0 4px; }
    .blog-main { width: calc(100% - 40px); padding-top: 40px; }
    .blog-filters { padding: 10px; gap: 8px; }
    .blog-filter-actions { justify-content: flex-end; }
    .blog-filters input, .blog-filters select { padding: 8px; font-size: 13px; }
    .home-blog-grid { grid-template-columns: 1fr; gap: 0; }
    .blog-card { gap: 18px; }
    .blog-card-image { width: 96px; height: 96px; flex-basis: 96px; }
    .blog-card :is(h2, h3) { font-size: 21px; margin-top: 8px; }
    .blog-card p { font-size: 14px; }
    .blog-card-links { gap: 12px 18px; }
    .blog-post-body { font-size: 16px; }
    .blog-footer { padding: 24px 20px; }
    .site-header .header-inner { padding: 14px 20px; gap: 18px; flex-wrap: wrap; }
    .site-header nav { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Standalone articles and closed preview share the public typography. */
.blog-post-body :is(h2,h3,h4,h5,h6) { margin: 1.7em 0 .65em; line-height: 1.3; scroll-margin-top: 100px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.blog-post-body img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 8px; }
.blog-toc { display: block; padding: 20px 24px; margin-bottom: 32px; background: var(--surface); border-radius: 8px; }
.blog-toc h2 { margin-bottom: 12px; font-size: 20px; }
.blog-toc ol, .blog-related ul { padding-left: 1.3em; line-height: 1.8; }
.blog-toc a, .blog-related a { color: var(--yellow); }
.blog-related { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.blog-related h2 { margin-bottom: 12px; font-size: 24px; }
.blog-author { margin: 12px 0; }
.blog-preview-banner { margin: 0; padding: 16px 20px; background: var(--surface); color: var(--yellow); text-align: center; }
