/*
 * PROOF-3: accreditation badges beside text.
 * A short text on what the marks stand for, and beside it the marks, two by
 * two, each on a tile with its name. Stacked on a phone; side by side from a
 * small laptop up.
 */

.wprk-proof-3 .wprk-proof-3__inner {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

.wprk-proof-3 .wprk-proof-3__inner > *,
.wprk-proof-3 .wprk-proof-3__text > * {
	margin: 0;
	min-width: 0;
}

.wprk-proof-3 .wprk-proof-3__text > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.wprk-proof-3 .wprk-proof-3__text > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--30);
}

.wprk-proof-3 .wprk-proof-3__text > p:not(.wprk-eyebrow) {
	max-width: 34rem;
}

.wprk-section.wprk-proof-3 .wprk-proof-3__list {
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wprk-proof-3 .wprk-proof-3__item {
	align-content: center;
	background-color: var(--wprk-card-bg);
	border: 1px solid var(--wprk-border);
	border-radius: var(--wp--custom--radius--lg);
	display: grid;
	gap: var(--wp--preset--spacing--20);
	justify-items: center;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	text-align: center;
}

.wprk-proof-3 .wprk-proof-3__item > * {
	margin: 0;
	min-width: 0;
}

/* One height for every mark. The editor sets its own size on the image, hence the two !important. */
.wprk-proof-3 .wprk-proof-3__mark img {
	border-radius: 0;
	height: 3.5rem !important;
	object-fit: contain;
	width: auto !important;
}

.wprk-proof-3[class*="is-style-wprk-dark"] .wprk-proof-3__mark img {
	filter: brightness(0) invert(1);
	opacity: 0.85;
}

.wprk-proof-3 .wprk-proof-3__name {
	color: var(--wprk-heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.35;
}

@media (min-width: 900px) {
	.wprk-proof-3 .wprk-proof-3__inner:has(> .wprk-proof-3__text):has(> .wprk-proof-3__list) {
		align-items: center;
		column-gap: var(--wp--preset--spacing--70);
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
}

/* Editor: a new mark waits for its picture at the size of a mark, not of a photo. */
.wprk-proof-3 .wprk-proof-3__mark .components-placeholder {
	height: 3.5rem;
	min-height: 3.5rem;
	min-width: 3.5rem;
}
