/* Blog list and detail. Complements ctf7.css (.post-card, .prose, .article-meta). */
.blog-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.blog-chip { display: inline-flex; align-items: center; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.blog-chip:hover { color: var(--heading); border-color: var(--line-green); }
.blog-chip.active { background: var(--orange-fill); border-color: var(--orange-fill); color: var(--on-orange); }
.blog-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.blog-page-status { color: var(--muted); font-family: var(--font-mono); font-size: .85rem; }

.post-card .pc-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; }
.blog-featured-cover, .blog-hero-cover { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }

.blog-tags { max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Article body: imported posts arrive without classes or table wrappers. */
.article-body { min-width: 0; }
.article-body img { max-width: 100%; height: auto; }
.article-body blockquote { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin-left: 0; margin-right: 0; font-size: 1.02rem; color: var(--heading); }
.article-body blockquote > :first-child { margin-top: 0; }
.article-body blockquote > :last-child { margin-bottom: 0; }
.article-body h3 + p { margin-top: .5em; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.article-body th { background: rgba(var(--ink-rgb), .04); color: var(--heading); font-family: var(--font-display); white-space: nowrap; }
.article-body td code, .article-body li code, .article-body p code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; font-size: .88em; }
.article-body pre { background: var(--term-bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; color: #cfe0d5; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }
@media (min-width: 768px) {
  .article-body table { display: table; overflow-x: visible; }
}

.blog-latest { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; max-width: 760px; }
.blog-latest a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--heading); font-weight: 600; }
.blog-latest a:hover { border-color: var(--line-green); }
.blog-latest time { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }

.blog-toc { max-width: 760px; margin-bottom: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.blog-toc[hidden] { display: none; }
.blog-toc-title { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700; color: var(--heading); }
.blog-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.blog-toc-list .toc-item { display: block; padding: .3rem .5rem; border-radius: 8px; color: var(--text-2); font-size: .93rem; }
.blog-toc-list .toc-item--h3 { padding-left: 1.5rem; }
.blog-toc-list .toc-item:hover, .blog-toc-list .toc-item.active { color: var(--heading); background: rgba(var(--ink-rgb), .05); }
.blog-toc-list .toc-item.active { box-shadow: inset 3px 0 0 var(--green); }
