/* Blog pages — sits on top of styles.css, uses the same tokens. */
.blog-body header { position: sticky; top: 0; z-index: 20; }
.blog-wrap { padding: 48px 24px 72px; }
.blog-head { padding: 24px 0 36px; max-width: 760px; }
.blog-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.blog-sub { color: var(--muted); font-size: 18px; margin: 16px 0 0; max-width: 620px; }
.blog-empty { padding: 40px 0; color: var(--muted); font-size: 17px; }
.blog-empty h1 { font-size: 32px; margin: 10px 0 14px; color: var(--ink); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; border: 0; }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13,22,47,.06), 0 16px 40px rgba(13,22,47,.10); }
.post-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--grad-card); }
.post-card-img--empty { background: var(--grad-card); }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { font-size: 19px; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { color: var(--muted); font-size: 13.5px; }
.post-meta a { color: var(--accent-ink); text-decoration: none; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 0; color: var(--muted); font-size: 14.5px; }

.blog-cta, .post-cta { margin-top: 56px; padding: 36px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); text-align: center; }
.blog-cta h2, .post-cta h2 { font-size: 26px; margin-bottom: 8px; }
.blog-cta p, .post-cta p { color: var(--muted); margin: 0 0 20px; }

.post { max-width: 760px; margin: 0 auto; }
.post-head { padding: 8px 0 28px; }
.post-head .eyebrow { text-decoration: none; }
.post-head h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 6px 0 14px; }
.post-hero { width: 100%; border-radius: 14px; margin-top: 24px; border: 1px solid var(--line); }

.post-body { font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.post-body > * { min-width: 0; }
.post-body h2 { font-size: 28px; margin: 44px 0 14px; }
.post-body h3 { font-size: 22px; margin: 34px 0 10px; }
.post-body h4 { font-size: 18px; margin: 28px 0 8px; font-family: "Inter", sans-serif; }
.post-body p { margin: 0 0 18px; }
.post-body a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 18px; }
.post-body li { margin: 6px 0; }
.post-body img { border-radius: 12px; border: 1px solid var(--line); margin: 10px 0 18px; }
.post-body blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--muted); }
.post-body pre { background: #0D162F; color: #E6EEFB; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.post-body :not(pre) > code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15.5px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body th { background: var(--bg-soft); font-weight: 600; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.post-more { max-width: 760px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.post-more h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: "Inter", sans-serif; margin-bottom: 12px; }
.post-more ul { list-style: none; padding: 0; margin: 0; }
.post-more li { margin: 8px 0; font-size: 17px; }
.post-more a { color: var(--ink); text-decoration: none; }
.post-more a:hover { color: var(--accent-ink); }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .blog-wrap { padding: 28px 16px 56px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .blog-cta, .post-cta { padding: 26px 18px; }
  .post-body { font-size: 16.5px; }
  .nav-links { display: none; }
}
