/**
 * Block: Now building.
 *
 * A live-status strip: a pulsing dot in the eyebrow, then compact cards with a
 * square thumbnail, the project name and its location and size.
 */

.ci-now__inner {
	display: grid;
	gap: 1.75rem;
}

.ci-now__head .ci-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	margin-bottom: .75rem;
}

.ci-now__head .ci-eyebrow::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
	box-shadow: 0 0 0 0 rgb(33 102 184 / .5);
	animation: ci-now-pulse 2.4s var(--ci-ease) infinite;
}

@keyframes ci-now-pulse {
	70% {
		box-shadow: 0 0 0 .5rem rgb(33 102 184 / 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgb(33 102 184 / 0);
	}
}

.ci-now__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-3);
}

.ci-now__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ci-now__link {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 100%;
	padding: .75rem;
	border: 1px solid var(--wp--preset--color--line);
	background-color: var(--wp--preset--color--white);
	color: inherit;
	text-decoration: none;
	transition: border-color .2s var(--ci-ease), box-shadow .2s var(--ci-ease);
}

.ci-now__link:hover {
	border-color: var(--wp--preset--color--navy);
	box-shadow: 0 8px 24px rgb(1 18 34 / .08);
}

.ci-now__image {
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
}

.ci-now__body {
	display: grid;
	gap: .25rem;
	min-width: 0;
}

.ci-now__name {
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	line-height: 1.25;
}

.ci-now__meta {
	font-size: .8125rem;
	line-height: 1.4;
}

@media (min-width: 960px) {
	.ci-now__inner {
		grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
		align-items: center;
		gap: 3rem;
	}

	/* Two across keeps an even count from leaving an orphan. */
	.ci-now__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ci-now__list:has(> :nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
