/* المدونة — تكمّل style.css الخاص بالموقع وتستخدم نفس متغيراته */

.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { background: var(--white, #fff); border: 1px solid var(--line, #CBD2E0); border-radius: var(--radius, 6px); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-img { display: block; aspect-ratio: 16 / 10; background: var(--concrete, #E7E9EF); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h2 { font-size: 1.2rem; line-height: 1.5; margin: 0; }
.post-card-body h2 a { color: var(--ink, #1C2F63); text-decoration: none; }
.post-card-body h2 a:hover { color: var(--sun-text, #8A6F2E); }
.post-card-body p { margin: 0; color: var(--muted, #55607A); }
.post-card-body .post-meta { margin-top: auto; padding-top: 8px; font-size: .875rem; }
.post-meta { color: var(--muted, #55607A); font-size: .95rem; }
.page-hero .post-meta { margin-top: 12px; }
.post-empty { text-align: center; color: var(--muted); padding: 48px 0; }

.post-body { max-width: 760px; margin-inline: auto; font-size: 1.075rem; line-height: 1.9; }
.post-body h2 { margin: 2em 0 .6em; font-size: 1.55rem; color: var(--ink); }
.post-body h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; color: var(--ink); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius, 6px); }
.post-body figure { margin: 1.6em 0; }
.post-body figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 6px; }
.post-body blockquote { margin: 1.5em 0; padding: 12px 20px; border-inline-start: 4px solid var(--sun, #C0A86C); background: var(--paper, #F5F6F8); }
.post-body a { color: var(--ink-3, #3F58A0); text-decoration: underline; text-underline-offset: 3px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.post-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.post-cover { margin: 0 0 2em; }
.post-cover img { width: 100%; }

.post-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.post-related h2 { margin-bottom: 24px; }
.post-pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.post-pager a, .post-pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.post-pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Less space between the article header and its body than the marketing pages use */
[data-page="blog"] .page-hero + .section { padding-top: 40px; }
