/*
 * We ALL Grow - Work.
 *
 * Read from cp-all-designer we-all-grow.html:236-315, css/we-all-grow.css:563-656,
 * 623-631, 1162-1167 and 1224-1245.
 *
 * Colour, type, padding and the spaces between the parts arrive from the
 * Style tab and are not repeated here.
 *
 * Left behind: the design's three columns at 1024 and two below 760 fall in
 * the tablet tier; the tier takes the three. The 14px Thai line from 1025 to
 * 1200 and under 680px tall (we-all-grow.css:1218-1223) is a tier of its own
 * inside the desktop one.
 */

.custom-we-all-grow-work {
	--custom-we-all-grow-work-picture: 202px;
	--custom-we-all-grow-work-1: #3D8CB8;
	--custom-we-all-grow-work-2: #16418C;
	--custom-we-all-grow-work-3: #4A7F33;
	--custom-we-all-grow-work-4: #16418C;
	--custom-we-all-grow-work-5: #CE2929;
}

/* we-all-grow.css:575-580 — one row of five */
.custom-we-all-grow-work .custom-we-all-grow-work__cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* we-all-grow.css:588-593 — a hairline, a light shadow, clipped to the leaf */
.custom-we-all-grow-work .custom-we-all-grow-work__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 2px solid #EEF2F7;             /* we-all-grow.css:590 measures 1px */
	box-shadow: 0 6px 18px -6px rgba(22, 65, 140, 0.14);   /* --sh-sm, app.css:159 */
	list-style: none;
	transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* we-all-grow.css:1229-1232 */
.custom-we-all-grow-work .custom-we-all-grow-work__picture {
	flex: none;
	height: var(--custom-we-all-grow-work-picture);
	margin: 0;
}

/* we-all-grow.css:599-602, 623-631 — the files carry a mark in their foot
   corner, so they are drawn 108% and held at the top corner */
.custom-we-all-grow-work .custom-we-all-grow-work__picture > img {
	width: 108%;
	height: 108%;
	max-width: none;
	object-fit: cover;
	object-position: left top;
	transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* we-all-grow.css:632-637 */
.custom-we-all-grow-work .custom-we-all-grow-work__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.custom-we-all-grow-work .custom-we-all-grow-work__label-row {
	display: flex;
	align-items: center;
}

/* we-all-grow.css:639-644 — two-tone drawings in currentColor, coloured by place */
.custom-we-all-grow-work .custom-we-all-grow-work__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: var(--custom-we-all-grow-work-1);
}

.custom-we-all-grow-work .custom-we-all-grow-work__card:nth-child(5n+2) .custom-we-all-grow-work__icon { color: var(--custom-we-all-grow-work-2); }
.custom-we-all-grow-work .custom-we-all-grow-work__card:nth-child(5n+3) .custom-we-all-grow-work__icon { color: var(--custom-we-all-grow-work-3); }
.custom-we-all-grow-work .custom-we-all-grow-work__card:nth-child(5n+4) .custom-we-all-grow-work__icon { color: var(--custom-we-all-grow-work-4); }
.custom-we-all-grow-work .custom-we-all-grow-work__card:nth-child(5n+5) .custom-we-all-grow-work__icon { color: var(--custom-we-all-grow-work-5); }

.custom-we-all-grow-work .custom-we-all-grow-work__icon svg,
.custom-we-all-grow-work .custom-we-all-grow-work__icon i {
	display: block;
	width: 100%;
	height: 100%;
	font-size: inherit;
}

.custom-we-all-grow-work .custom-we-all-grow-work__label,
.custom-we-all-grow-work .custom-we-all-grow-work__text {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	letter-spacing: 0;
	text-transform: none;
}

/* we-all-grow.css:645-648 */
.custom-we-all-grow-work .custom-we-all-grow-work__label {
	font-weight: 600;
	line-height: 1.35;
}

/* we-all-grow.css:649 */
.custom-we-all-grow-work .custom-we-all-grow-work__text {
	font-weight: 400;
	line-height: 1.6;
}

/* we-all-grow.css:594-597 — a pointer that rests on a card lifts it and leans in */
@media (hover: hover) {
	.custom-we-all-grow-work .custom-we-all-grow-work__card:hover {
		transform: translateY(-4px);
		box-shadow: 0 18px 44px -14px rgba(22, 65, 140, 0.2);   /* --sh, app.css:160 */
	}
	.custom-we-all-grow-work .custom-we-all-grow-work__card:hover .custom-we-all-grow-work__picture > img {
		transform: scale(1.04);
	}
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px (we-all-grow.css:654)                      */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.custom-we-all-grow-work .custom-we-all-grow-work__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	/* we-all-grow.css:598 — 4 : 3 at the card's width, unless the Style tab
	   asks for more height */
	.custom-we-all-grow-work .custom-we-all-grow-work__picture {
		height: auto;
		min-height: var(--custom-we-all-grow-work-picture);
		aspect-ratio: 4 / 3;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px (we-all-grow.css:656, drawn at 480)            */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.custom-we-all-grow-work .custom-we-all-grow-work__cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-we-all-grow-work .custom-we-all-grow-work__card,
	.custom-we-all-grow-work .custom-we-all-grow-work__picture > img {
		transition: none;
	}
	.custom-we-all-grow-work .custom-we-all-grow-work__card:hover,
	.custom-we-all-grow-work .custom-we-all-grow-work__card:hover .custom-we-all-grow-work__picture > img {
		transform: none;
	}
}
