/*
 * Posts (editor: "Insights"): recent articles on any page. The entries come
 * from the shared Insights component (insights.css: .post-entry, .post-grid,
 * .post-rows), which loads on every view; the block composes only its head,
 * as the gallery does: eyebrow and heading in columns 1–6, the introduction
 * and the link to Insights from
 * column 8, level with the heading's foot. Phones: stacked, link beneath.
 */
@layer blocks {
	.posts__head {
		display: grid;
		gap: var(--space-6);
		margin-bottom: var(--section-gap);
	}

	.posts__main {
		display: grid;
	}

	.posts__title {
		max-width: 15em;
	}

	.posts__aside {
		display: grid;
		justify-items: start;
		align-content: end;
		gap: var(--space-4);
	}

	.posts__standfirst {
		max-width: 36rem;
	}

	@media (min-width: 64rem) {
		.posts__head {
			grid-template-columns: repeat(12, minmax(0, 1fr));
			column-gap: var(--grid-gap);
			align-items: end;
		}

		.posts__main {
			grid-column: 1 / 7;
		}

		.posts__aside {
			grid-column: 8 / -1;
		}

		/* A link alone sits at the right edge, level with the heading. */
		.posts__aside:not(:has(.posts__standfirst)) {
			justify-items: end;
		}
	}
}
