/* News and category pages (home.php, inc/news.php). The cards come from
   blocks.css (News cards); this adds the page band under the
   masthead (masthead.css), the wide card for the newest post, dates and
   page links. */

.rhsa-news { background: var(--rhsa-tint); }
.rhsa-news__inner {
	box-sizing: border-box;
	width: min(1170px, 90%);
	margin: 0 auto;
	padding: 56px 0 72px;
}

.rhsa-news .is-style-rhsa-news-cards { margin-top: 0; }
.rhsa-news .wp-block-post-date { margin: -7px 0 14px; font-size: 14px; line-height: 20px; color: var(--rhsa-body); }
.rhsa-news .rhsa-news-card__body { display: flex; flex-direction: column; }
.rhsa-news .rhsa-news-card__body > .wp-block-post-terms { align-self: flex-start; }
.rhsa-news .rhsa-news-card { display: flex; flex-direction: column; }
.rhsa-news .rhsa-news-card__body { flex: 1; }
.rhsa-news .rhsa-news-card__body > .wp-block-read-more { align-self: flex-start; margin-top: auto; }

/* The newest post: photo left, text right. */
.rhsa-news .rhsa-news-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	margin-bottom: 20px;
}
.rhsa-news .rhsa-news-feature .rhsa-news-card__body { padding: 30px 36px; justify-content: center; }
.rhsa-news .rhsa-news-feature .rhsa-news-card__body > .wp-block-read-more { margin-top: 0; }
.rhsa-news .rhsa-news-feature .wp-block-post-title { font-size: 32px; line-height: 38px; margin-bottom: 12px; }
.rhsa-news .rhsa-news-feature .wp-block-post-date { margin: 0 0 16px; }
.rhsa-news .rhsa-news-feature .wp-block-post-excerpt__excerpt { font-size: 17px; line-height: 28px; }

.rhsa-news__pages { margin-top: 44px; }
.rhsa-news__pages .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rhsa-news__pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #fff;
	font-family: var(--rhsa-cond);
	font-weight: 700;
	font-size: 16px;
	color: var(--rhsa-ink);
	text-decoration: none;
}
.rhsa-news__pages a.page-numbers:is(:hover, :focus-visible) { background: var(--rhsa-ink); color: #fff; }
.rhsa-news__pages .page-numbers.current { background: var(--rhsa-red); color: #fff; }
.rhsa-news__pages .page-numbers.dots { background: none; }

.rhsa-news__none { margin: 36px 0 0; font-size: 16px; color: var(--rhsa-body); }

@media (max-width: 921px) {
	.rhsa-news .rhsa-news-feature { grid-template-columns: minmax(0, 1fr); }
	.rhsa-news .rhsa-news-feature .rhsa-news-card__body { padding: 22px 20px 20px; }
}
@media (max-width: 767px) {
	.rhsa-news__inner { padding: 40px 0 56px; }
	.rhsa-news .rhsa-news-feature .rhsa-news-card__body { padding: 12px 10px 10px; }
	.rhsa-news .rhsa-news-feature .wp-block-post-title { font-size: 24px; line-height: 30px; }
}
