/* Blog list and article pages. Builds on app.css / account.css tokens. */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-nav a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.cat-nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card img, .post-card-ph { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.post-card-ph { background: linear-gradient(135deg, var(--brand-tint), #fff4ef); }
.post-card-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.post-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--brand); }
.post-card h3 { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; margin: 0; text-wrap: balance; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.pager a { min-width: 38px; text-align: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.post { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 44px); }
.post h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.5vw, 42px); line-height: 1.12; letter-spacing: -.5px; margin: 6px 0 10px; text-wrap: balance; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0; }
.post-meta a { color: var(--brand); font-weight: 600; text-decoration: none; }
.post-cover { width: 100%; border-radius: 14px; margin: 22px 0 6px; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-body { font-size: 17px; line-height: 1.8; color: var(--ink); margin-top: 18px; }
.post-body h2 { font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.25; margin: 36px 0 10px; }
.post-body h3 { font-size: 20px; margin: 28px 0 8px; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body pre, .post-body table { margin: 0 0 18px; }
.post-body a { color: var(--brand); font-weight: 600; }
.post-body img { max-width: 100%; border-radius: 12px; }
.post-body blockquote { border-left: 4px solid var(--brand-2); background: var(--brand-tint); padding: 12px 18px; border-radius: 0 12px 12px 0; }
.post-body code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-body pre { background: var(--soft); padding: 14px; border-radius: 12px; overflow-x: auto; }
.post-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.post-tags span { font-size: 13px; background: var(--soft); padding: 4px 10px; border-radius: 999px; color: var(--ink-2); }
.post-cta { margin-top: 30px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-tint); border-radius: 14px; padding: 18px 20px; }
.post-cta b { font-size: 17px; }
.post-cta p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.related-h { font-family: var(--display); font-weight: 600; font-size: 24px; max-width: 720px; margin: 34px auto 14px; }
.muted { color: var(--muted); }
