/* Blog pages only. Everything else comes from site.css, brand.css and pages.css (guide layout). */
.blog-head { max-width: 760px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.blog-cats a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); text-decoration: none; }
.blog-cats a:hover { border-color: var(--ink); color: var(--ink); }
.blog-cats a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 18px 0 30px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg); }
.post-card-body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.post-card .kick { margin: 0; font-size: 13px; }
.post-card strong { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.post-card .muted { font-size: 14.5px; line-height: 1.45; }
.post-date { font-size: 13px; color: var(--muted); }

.post-head { max-width: 820px; }
.post-head .kick a { color: inherit; text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin-top: 14px; }
.post-hero { margin: 8px 0 8px; max-width: 1040px; }
.post-hero img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--bg); }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.post-body pre { overflow-x: auto; background: var(--bg); padding: 12px 14px; border-radius: 10px; }
.post-body h3 { font-size: 20px; margin-top: 28px; }
.post-tags { max-width: 760px; margin: 0 0 26px; font-size: 14px; }
.post-tags .tag { margin: 0 6px 6px 0; }
.blog-pager { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 0 0 30px; color: var(--muted); font-size: 14px; }
.preview-flag { background: #FFF4D6; border: 1px solid #F1D48A; color: #6B4E00; padding: 8px 14px; border-radius: 10px; font-weight: 650; font-size: 14px; }

/* Mobile first: the rules above are the phone layout. Desktop keeps its compact sizes. */
@media (min-width: 901px) {
  .blog-cats a { display: inline; min-height: 0; }
  .post-card .kick { font-size: 11.5px; }
}
