/* ===== Blog (listing and article). The design has no blog page, so this uses its tokens (page.css loads first),
   the page-hero tint and the card look of the other pages. ===== */
.blog-hero { padding: 28px 0 32px; background: linear-gradient(100deg, #eaf2fc 0%, #dbe9f9 55%, #cfe3f6 100%); }
.blog-hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 12px 0 16px; color: var(--c-ink); }
.blog-search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; margin-bottom: 16px; padding: 8px; background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow); }
.blog-search input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--c-ink); }
.blog-search input:focus-visible { outline: 2px solid #4d8dff; border-radius: var(--radius-sm); }
.blog-topics { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-white); color: var(--c-ink); font-size: 0.875rem; text-decoration: none; }
.blog-topics a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.blog-topics a[aria-current="page"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow); }
/* Every card has the same image area (16:9, at most 260px tall); the image sits centred in it at its own size,
   only shrunk when it is bigger, never stretched or cropped. */
.blog-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 260px; object-fit: scale-down; background: var(--c-bg); }
.blog-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.blog-card__body .tag { align-self: flex-start; }
.blog-card__title { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.blog-card__title a { color: var(--c-ink); text-decoration: none; }
.blog-card__title a:hover { color: var(--c-primary); text-decoration: underline; }
.blog-card__meta { margin: 0; color: var(--c-muted); font-size: 0.875rem; }
.blog-empty { padding: 20px; border-radius: var(--radius); background: var(--c-bg); color: var(--c-text); }
.blog-post__head { padding: 32px 0 16px; }
.blog-post__title { margin: 12px 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; color: var(--c-ink); }
/* The post image at its own size (from its width and height attributes), centred, never wider than the column
   nor taller than 260px (the view scales the attributes to that height). */
.blog-post__image { display: block; max-width: 100%; max-height: 260px; height: auto; margin: 16px auto 24px; border-radius: var(--radius); }
.blog-post__body { padding-bottom: 32px; line-height: 1.7; color: var(--c-text); }
.blog-post__body > * { max-width: 100%; }
.blog-post__body :where(p, ul, ol, h2, h3, blockquote) + :where(p, ul, ol, h2, h3, blockquote) { margin-top: 1em; }
.blog-post__body h2 { margin-top: 32px; font-size: 1.5rem; color: var(--c-ink); }
.blog-post__body ul { padding-left: 20px; list-style: disc; }
.blog-post__body ol { padding-left: 20px; list-style: decimal; }
.blog-post__body img { max-width: 100%; height: auto; }
.blog-post__excerpt { font-size: 1.125rem; color: var(--c-text); }

/* Pagination: same look as the jobs list (jobs.css). Phones show the five pages around the current one and the arrows. */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-block: 24px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 6px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 600; color: var(--c-ink); text-decoration: none; }
.pagination a:hover { background: var(--c-blue-bg); }
.pagination a[aria-current="page"] { background: var(--c-primary); color: var(--c-white); border-radius: 50%; }
.pagination .is-arrow { border-color: var(--c-line); }
@media (max-width: 575.98px) { .pagination { gap: 4px; } .pagination .is-edge, .pagination .is-gap { display: none; } }
