/* Blog extras (S4 Batch 2). Uses the demo's tokens and classes; site.css stays unchanged. */
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filters .chip { transition: color .2s, border-color .2s; }
.blog-filters .chip:hover, .blog-filters .chip[aria-current] { color: var(--yellow); border-color: rgba(255, 200, 61, .4); }
.blog-search { display: flex; gap: 8px; flex: 0 1 340px; }
.blog-search input { min-height: 40px; padding: 8px 13px; font-size: 14px; }

.post-feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 14px; }
.post-feat-body { display: flex; flex-direction: column; gap: 10px; padding: 8px 10px 8px 0; }
.post-feat h3 { font-size: clamp(20px, 2.2vw, 26px); }
.post-feat + .grid3 { margin-top: 18px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }

.toc { margin-top: 30px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.toc-h { font: 700 13px var(--sans); color: var(--yellow); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--body); font-size: 15px; transition: color .2s; }
.toc a:hover { color: var(--yellow); }
.toc-3 { padding-left: 16px; }
.prose [id] { scroll-margin-top: 90px; }

/* S4 Batch 3: WebP covers, and tables and images inside posts. */
picture { display: contents; } /* the <img> inside keeps the demo's layout rules */
.prose img { height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 8px 0 24px; }
.prose figure { margin: 8px 0 26px; }
.prose figure img { margin: 0; }
.prose figcaption, .prose caption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: left; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--body); }
.prose th { color: var(--text); font-weight: 700; background: rgba(255, 255, 255, .03); }

.post-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags, .share, .post-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share .muted { font-size: 13px; margin-right: 4px; }
.share .chip:hover, .post-tags .chip:hover { color: var(--yellow); }
.post-nav { justify-content: space-between; }
.post-nav .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .post-feat { grid-template-columns: 1fr; gap: 14px; }
  .post-feat-body { padding: 0 4px 6px; }
  .blog-search { flex-basis: 100%; }
}
