/**
 * Post Listing module.
 */
.post-listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.post-listing-grid.cols-1 { grid-template-columns: 1fr; }
.post-listing-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.post-listing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.post-listing-card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.post-listing-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-listing-body { padding: 20px; }
.post-listing-date { display: inline-block; background: var(--teal-pale); color: var(--teal); border-radius: 999px; padding: 4px 12px; font-size: .8em; margin-bottom: 10px; }
.post-listing-body h3 { margin: 0 0 8px; }
.post-listing .no-results { text-align: center; color: var(--text-mid); }

/* Shared with index.php's / archive-news_post.php's paginate_links() output —
   previously used but never actually styled anywhere in this theme. */
.herald-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.herald-pagination a,
.herald-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.herald-pagination .current { background: var(--navy); color: var(--white); }
.herald-pagination a:hover { background: var(--gold); color: var(--white); }

@media (max-width: 960px) {
    .post-listing-grid, .post-listing-grid.cols-3, .post-listing-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .post-listing-grid, .post-listing-grid.cols-2, .post-listing-grid.cols-3, .post-listing-grid.cols-4 { grid-template-columns: 1fr; }
}
