/*
 * NEWS-1: latest news.
 * The cards are the shared post cards from base.css, as on the news listing.
 */

/* Head and "All news" link. Stacked on small screens, one row from 782px. */
.wprk-news-1 .wprk-news-1__top {
	margin-block-end: var(--wp--preset--spacing--60);
}

.wprk-news-1 .wprk-news-1__top > * {
	margin-block: 0;
}

.wprk-news-1 .wprk-news-1__top > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--10);
}

/* The padding makes a tap target of full height. */
.wprk-news-1 .wprk-news-1__top .wp-block-button.is-style-wprk-text > .wp-block-button__link {
	padding-block: 0.8em;
	white-space: nowrap;
}

.wprk-news-1 .wprk-post-card > .wp-block-post-title {
	overflow-wrap: break-word;
}

@media (min-width: 782px) {
	/*
	 * Heading left, link right. The link rests on the last line of the heading:
	 * exactly where the browser knows "last baseline", closely everywhere else.
	 */
	.wprk-news-1 .wprk-news-1__top {
		align-items: flex-end;
		align-items: last baseline;
		display: flex;
		gap: var(--wp--preset--spacing--50);
		justify-content: space-between;
	}

	.wprk-news-1 .wprk-news-1__top > .wp-block-buttons {
		flex: none;
		margin-block: 0 -0.5em;
	}
}
