/* Blog-side templates (single, archive, search, 404, index): built from the design's own components. */
.post-grid { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard .thumb { aspect-ratio: 16/10; background: var(--photo-bg); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .thumb--empty { display: grid; place-items: center; color: var(--muted); font: 700 .82rem/1 var(--fd); }
.pcard .tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.pcard .tag a { text-decoration: none; color: inherit; }
.pcard h2, .pcard h3 { margin: 0; font-size: 1.15rem; }
.pcard h2 a, .pcard h3 a { color: inherit; text-decoration: none; }
.pcard .ccard-link { position: absolute; inset: 0; z-index: 1; }
.pcard { position: relative; }
.pcard .tag { z-index: 2; }
.byline { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; }
.entry { max-width: 760px; }
.entry > * + * { margin-top: 1em; }
.entry img { border-radius: var(--r); height: auto; }
.entry h2 { margin-top: 1.6em; }
.entry blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--accent); color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--paper); color: var(--night); font: 700 .9rem/1 var(--fd); text-decoration: none; }
.pagination .page-numbers.current { background: var(--night); border-color: var(--night); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--accent); }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.search-form .field { flex: 1 1 220px; }
.empty-state { text-align: center; padding: clamp(32px, 6vw, 72px) 0; }
.empty-state .hl { white-space: normal; }
.related { margin-top: clamp(40px, 6vw, 72px); }
