/*
 * Career - Contact group.
 *
 * Read from cp-all-designer css/career.css:1309-1364 (.crrgroup, .grpc) and
 * css/app.css:342-349 (.link-arrow).
 *
 * Colour, type, padding and the measures arrive from the Style tab and are not
 * repeated here.
 */

/* career.css:1310-1313 — two a row, one from 1000 */
.custom-career-contact-group .custom-career-contact-group__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* career.css:1314-1328 — the mark at the left, the website its own row under the words */
.custom-career-contact-group .custom-career-contact-group__card {
	display: grid;
	grid-template-columns: var(--custom-career-contact-group-logo, 92px) minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	row-gap: 8px;
	box-sizing: border-box;
	min-width: 0;
	border: 2px solid var(--custom-career-contact-group-edge, #EEF2F7);   /* career.css:1323 measures 1px */
	border-radius: 20px 4px 20px 4px;
	background: var(--custom-career-contact-group-ground, #F3F8FD);
	transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-contact-group .custom-career-contact-group__grid .custom-career-contact-group__card:hover {
	border-color: var(--custom-career-contact-group-edge-on, #50A3D5);
	background: var(--custom-career-contact-group-ground-on, #FFFFFF);
	box-shadow: 0 6px 18px -6px rgba(22, 65, 140, 0.14);   /* --sh-sm */
	transform: translateY(-4px);
}

/* career.css:1354 — an odd last company takes the whole row */
.custom-career-contact-group .custom-career-contact-group__card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

/* career.css:1332-1344 — the mark spans both rows, pinned to the top */
.custom-career-contact-group .custom-career-contact-group__logo {
	display: grid;
	grid-row: 1 / span 2;
	grid-column: 1;
	place-items: center;
	align-self: start;
	box-sizing: border-box;
	aspect-ratio: 1;
	padding: 8px;
	border: 2px solid #EEF2F7;               /* career.css:1335 measures 1px */
	border-radius: 14px 4px 14px 4px;
	background: #FFFFFF;
}

.custom-career-contact-group .custom-career-contact-group__card .custom-career-contact-group__logo img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.custom-career-contact-group .custom-career-contact-group__logo-words {
	font-weight: 700;
	letter-spacing: 0;                       /* career.css:1342 measures 0.06em, 0.84px: the nearest even is 0 */
	line-height: 1.3;
	text-align: center;
}

/* career.css:1345-1348 */
.custom-career-contact-group .custom-career-contact-group__body {
	display: grid;
	grid-row: 1;
	grid-column: 2;
	align-content: start;
	gap: 6px;
	min-width: 0;
}

/* Kadence takes the top margin off a widget's first heading (0,3,2): this stands over it */
.custom-career-contact-group .custom-career-contact-group__card .custom-career-contact-group__body .custom-career-contact-group__name {
	margin: 0;
	font-weight: 600;
	line-height: 1.4;
}

.custom-career-contact-group .custom-career-contact-group__card .custom-career-contact-group__body .custom-career-contact-group__address {
	margin: 0;
	font-weight: 300;
	line-height: 1.7;
}

.custom-career-contact-group .custom-career-contact-group__card .custom-career-contact-group__body .custom-career-contact-group__contact {
	font-weight: 400;
}

/* career.css:1351, app.css:342-349 — the website, its arrow running on */
.custom-career-contact-group .custom-career-contact-group__website {
	display: inline-flex;
	grid-row: 2;
	grid-column: 2;
	align-items: center;
	align-self: end;
	gap: 10px;
	padding-top: 4px;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	transition: color 200ms;
}

/* the Style tab writes the website's colour at (0,4,0): reached, it stands over it */
.custom-career-contact-group.custom-career-contact-group[data-custom-partner-band] .custom-career-contact-group__website:hover {
	color: var(--custom-career-contact-group-on, #50A3D5);
}

.custom-career-contact-group .custom-career-contact-group__website-arrow {
	display: block;
	transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-contact-group .custom-career-contact-group__website:hover .custom-career-contact-group__website-arrow {
	transform: translateX(6px);              /* app.css:349 measures 5px */
}

.custom-career-contact-group .custom-career-contact-group__website:focus-visible {
	outline: 2px solid #50A3D5;
	outline-offset: 2px;
}

@media (max-width: 1000px) {
	.custom-career-contact-group .custom-career-contact-group__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* career.css:1359-1364 — on a small phone the mark stands over the words */
@media (max-width: 520px) {
	.custom-career-contact-group .custom-career-contact-group__card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		row-gap: 12px;
	}
	.custom-career-contact-group .custom-career-contact-group__logo {
		grid-row: 1;
		grid-column: 1;
		width: var(--custom-career-contact-group-logo, 72px);
	}
	.custom-career-contact-group .custom-career-contact-group__body {
		grid-row: 2;
		grid-column: 1;
	}
	.custom-career-contact-group .custom-career-contact-group__website {
		grid-row: 3;
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-career-contact-group .custom-career-contact-group__card,
	.custom-career-contact-group .custom-career-contact-group__website-arrow {
		transition: none;
	}
}
