/* Jamalek blog — article list and article pages (/blog, rendered by the API) and the
   "latest articles" cards on the landing page. Builds on landing-base.css tokens. */

/* Blog pages: header, footer and shared shell come from site-pages.css. */
.blog-hero { max-width: 760px; margin: 24px auto 40px; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--plum-ink); }
.blog-hero .lede { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.blog-hero .btn { margin-top: 20px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Article cards (list page, "read also", landing section). */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--blush-2); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card img { width: 100%; height: auto; aspect-ratio: 800 / 520; object-fit: cover; background: var(--cream-2); }
.post-card-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.post-card-body small { color: var(--rose); font-weight: 700; font-size: .8rem; text-align: right; }
.post-card-body b { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: var(--plum-ink); }
.post-card-body span { color: var(--muted); font-size: .94rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; font-weight: 700; color: var(--mauve); }
.pager a { padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); }

/* Article page. */
.post { max-width: 760px; }
.post-head { margin: 16px 0 26px; }
.post-back { display: inline-block; margin-bottom: 18px; color: var(--rose-deep); font-weight: 700; }
.post-meta { color: var(--rose); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.post-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--plum-ink); }
.post-excerpt { margin-top: 12px; font-size: 1.12rem; color: var(--muted); }
.post-cover { margin: 0 0 30px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream-2); }
.post-cover img { width: 100%; height: auto; aspect-ratio: 800 / 520; }
.post-body { font-size: 1.1rem; line-height: 2; }
.post-body p { margin: 0 0 18px; }
.post-body h2 { margin: 32px 0 12px; font-size: 1.5rem; color: var(--plum-ink); }
.post-lead { font-size: 1.18rem; color: var(--plum); }
/* The article's 30 s vertical video (app/blog_video_sync.py). */
.post-video { margin: 8px auto 30px; max-width: 340px; text-align: center; }
.post-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); background: var(--plum); box-shadow: var(--shadow-md); }
.post-video figcaption { margin-top: 10px; color: var(--mauve); font-size: .92rem; font-weight: 700; }
.post-tips { margin: 30px 0; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #FBF1EF, #F6E6E8); border: 1px solid var(--blush-2); }
.post-tips h2 { margin-top: 0; font-size: 1.25rem; }
.post-tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.post-tips li { position: relative; padding-inline-start: 30px; }
.post-tips li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 18px; height: 18px; border-radius: 6px; background: var(--grad-rose); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags span { padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--mauve); font-size: .86rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.post-note { margin-top: 28px; padding: 18px 20px; border-radius: 18px; background: var(--cream-2); color: var(--muted); font-size: .92rem; line-height: 1.8; }
.post-note p { margin: 0; }
.post-ai { margin-top: 6px !important; font-weight: 700; color: var(--mauve); }
.post-cta { margin: 44px 0; padding: 36px 24px; border-radius: 32px; background: var(--grad-hero); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.post-cta h2 { color: #fff; font-size: 1.7rem; }
.post-cta p { margin: 8px auto 22px; max-width: 460px; color: #F1DCDF; }
.post-more h2 { margin-bottom: 18px; font-size: 1.5rem; color: var(--plum-ink); }

/* Landing page "latest articles" section (filled by landing-latest-articles.js). */
.latest-articles .post-grid { margin-top: 8px; }
.latest-more { margin-top: 28px; text-align: center; }

@media (max-width: 480px) {
  .post-body { font-size: 1.04rem; }
  .post-tips { padding: 18px; }
}
