.development-downloads-block {
	width: 100%;

	/* Same eyebrow convention as development-location-block.css /
	   development-specification-block.css — core font-size utility class,
	   restyled here since each block owns its own presentational CSS. */
	p.has-small-font-size {
		color: var(--wp--preset--color--green);
		letter-spacing: 0.08em;
		margin: 0 0 24px;
		text-transform: uppercase;
	}
}

.development-downloads-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);

	@media(width <= 886px) {
		grid-template-columns: repeat(2, 1fr);
	}

	@media(width <= 600px) {
		grid-template-columns: 1fr;
	}
}

.development-download-tile {
	align-items: center;
	background-color: var(--wp--preset--color--white);
	border-radius: 8px;
	box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.08);
	display: flex;
	gap: 16px;
	padding: 20px;

	&:hover {
		box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
	}

	.icon-wrapper {
		/* 10% tint of the theme's teal, same technique as icon-links-block
		   etc. — a rounded square here rather than a circle. */
		background-color: color-mix(in srgb, var(--wp--preset--color--green) 10%, transparent);
		border-radius: 8px;
		display: grid;
		flex-shrink: 0;
		height: 40px;
		place-content: center;
		width: 40px;

		.icon-svg {
			/* Recolours the uploaded SVG by using it as a mask over a solid
			   fill, since an <img>'s own colours can't be overridden with CSS. */
			background-color: var(--wp--preset--color--green);
			display: inline-block;
			height: 20px;
			width: 20px;
			-webkit-mask-image: var(--dd-icon-mask);
			mask-image: var(--dd-icon-mask);
			-webkit-mask-position: center;
			mask-position: center;
			-webkit-mask-repeat: no-repeat;
			mask-repeat: no-repeat;
			-webkit-mask-size: contain;
			mask-size: contain;
		}
	}

	.development-download-text {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.development-download-label {
		color: var(--wp--preset--color--black);
		font-size: 15px;
		font-weight: 700;
	}

	.development-download-size {
		color: var(--wp--preset--color--dark-grey);
		font-size: 13px;
	}
}
