/*
 * Internship - Join.
 *
 * Read from cp-all-designer css/geniversity.css:95-226 (.gencmp--even),
 * 439-760 (.incjoin, .ymq) and css/career.css:2437-2470 (.gencmp).
 *
 * Colour, type, padding, the corners and the measures arrive from the Style
 * tab and are not repeated here.
 */

/* geniversity.css:440-467 — the details beside the life in pictures, both as tall as the taller */
.custom-internship-join .custom-internship-join__columns {
	display: grid;
	grid-template-columns: minmax(0, var(--custom-internship-join-left, 560px)) minmax(0, 1fr);
	align-items: stretch;
}

.custom-internship-join .custom-internship-join__details,
.custom-internship-join .custom-internship-join__shots {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* the head runs its column's width, whatever side its words stand on */
.custom-internship-join .custom-internship-join__details > .custom-internship-join__head {
	width: 100%;
}

.custom-internship-join .custom-internship-join__details .custom-internship-join__head .custom-internship-join__intro {
	line-height: 1.6;                      /* geniversity.css:472 */
}

/* geniversity.css:705, 678 — the pictures' column centred, the button at the foot of the details */
.custom-internship-join .custom-internship-join__shots {
	justify-content: center;
}

.custom-internship-join .custom-internship-join__act {
	margin-top: auto;
}

/* ------------------------------------------------------------------ */
/* The programme table                                                 */
/* ------------------------------------------------------------------ */

/* geniversity.css:160 — room around the table for its shadow */
.custom-internship-join .custom-internship-join__table-box {
	padding: 2px 2px 18px;
	overflow-x: auto;
}

/* geniversity.css:97-103, career.css:2439-2442 */
.custom-internship-join .custom-internship-join__table {
	width: 100%;
	margin: 0;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	border: 2px solid #C9D6E8;             /* geniversity.css:100 measures 1px */
	border-radius: 14px;                   /* --r */
	overflow: hidden;
	background: #FFFFFF;
	box-shadow: 0 10px 28px -14px rgba(22, 65, 140, 0.28);
}

.custom-internship-join .custom-internship-join__caption {
	position: absolute;
	width: 2px;
	height: 2px;
	overflow: hidden;
	clip-path: inset(50%);                 /* read, not seen */
	white-space: nowrap;
}

/* geniversity.css:494-500 — the dark bar over the rows */
.custom-internship-join .custom-internship-join__table .custom-internship-join__bar {
	box-sizing: border-box;
	padding-top: 0;
	padding-bottom: 0;
	border: 0;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	vertical-align: middle;
	box-shadow: none;
}

/* geniversity.css:104-140, 502-514 — every cell ruled on its right and foot, the last row and column open */
.custom-internship-join .custom-internship-join__table .custom-internship-join__cell {
	box-sizing: border-box;
	border: 0;
	line-height: 1.5;
	text-align: left;
	vertical-align: middle;
	box-shadow: inset -2px -2px 0 var(--custom-internship-join-rule, #DCE5F1);
}

.custom-internship-join .custom-internship-join__table .custom-internship-join__cell:last-child {
	box-shadow: inset 0 -2px 0 var(--custom-internship-join-rule, #DCE5F1);
}

.custom-internship-join .custom-internship-join__table tbody tr:last-child .custom-internship-join__cell:not(:last-child) {
	box-shadow: inset -2px 0 0 var(--custom-internship-join-rule, #DCE5F1);
}

.custom-internship-join .custom-internship-join__table tbody tr:last-child .custom-internship-join__cell:last-child {
	box-shadow: none;
}

.custom-internship-join .custom-internship-join__table .custom-internship-join__name {
	font-weight: 600;
	white-space: normal;
}

.custom-internship-join .custom-internship-join__table .custom-internship-join__value {
	font-weight: 500;
	overflow-wrap: anywhere;
}

/* geniversity.css:502-506 — a drawing before each name */
.custom-internship-join .custom-internship-join__name-label {
	display: flex;
	align-items: center;
}

.custom-internship-join .custom-internship-join__name-icon {
	display: block;
	flex: none;
	line-height: 0;
}

.custom-internship-join .custom-internship-join__name-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* geniversity.css:745 */
.custom-internship-join .custom-internship-join__value-note {
	display: block;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
}

/* ------------------------------------------------------------------ */
/* The life in pictures                                                */
/* ------------------------------------------------------------------ */

/* geniversity.css:469-472 */
.custom-internship-join .custom-internship-join__shots-head .custom-internship-join__shots-eyebrow {
	margin: 0 0 10px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 2px;                   /* app.css:204 measures 1.15px */
	text-transform: uppercase;
}

/* Kadence takes the top margin off a widget's first heading (0,3,2): the root in front, heavily enough */
.custom-internship-join .custom-internship-join__shots .custom-internship-join__shots-head .custom-internship-join__shots-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}

.custom-internship-join .custom-internship-join__shots-title em {
	position: relative;
	display: inline-block;
	font-style: normal;
	font-weight: 700;
	font-size: 108%;
}

.custom-internship-join .custom-internship-join__shots-head .custom-internship-join__shots-intro {
	max-width: 870px;                      /* app.css:293 .lead */
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	padding: 0;
	font-weight: 400;
	line-height: 1.6;
}

/* geniversity.css:577-595, 622-627 — two rows running past, faded at either edge, held still under a pointer */
.custom-internship-join .custom-internship-join__run {
	display: grid;
	gap: var(--custom-internship-join-gap, 16px);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.custom-internship-join .custom-internship-join__run-row {
	display: flex;
	gap: var(--custom-internship-join-gap, 16px);
	width: max-content;
	margin: 0;
	padding: 0 var(--custom-internship-join-gap, 16px) 0 0;
	list-style: none;
	animation: custom-internship-join-run 70s linear infinite;
	will-change: transform;
	backface-visibility: hidden;
}

/* the script measures the loop and starts it once the pictures are drawn; off the screen it stands still */
.custom-internship-join .custom-internship-join__run[data-custom-run="wait"] .custom-internship-join__run-row,
.custom-internship-join .custom-internship-join__run.is-away .custom-internship-join__run-row {
	animation-play-state: paused;
}

.custom-internship-join .custom-internship-join__run-row--two {
	animation-direction: reverse;
	animation-duration: 62s;
}

.custom-internship-join .custom-internship-join__run:hover .custom-internship-join__run-row,
.custom-internship-join .custom-internship-join__run:focus-within .custom-internship-join__run-row {
	animation-play-state: paused;
}

/* one set of pictures in px, measured by the script; half the row without it */
@keyframes custom-internship-join-run {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(var(--custom-internship-join-shift, -50%), 0, 0); }
}

/* geniversity.css:600-603 — three shapes on one height */
.custom-internship-join .custom-internship-join__run-item {
	flex: none;
	height: var(--custom-internship-join-h, 300px);
	margin: 0;
	aspect-ratio: 3 / 2;
	list-style: none;
}

.custom-internship-join .custom-internship-join__run-item--tall { aspect-ratio: 4 / 5; }
.custom-internship-join .custom-internship-join__run-item--wide { aspect-ratio: 16 / 10; }

/* geniversity.css:604-613 */
.custom-internship-join .custom-internship-join__shot {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: #F5F8FC;                   /* --g100 */
}

.custom-internship-join .custom-internship-join__shot > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-internship-join .custom-internship-join__shot:hover > img {
	transform: scale(1.05);
}

.custom-internship-join .custom-internship-join__shot:focus-visible {
	outline: 4px solid #50A3D5;            /* geniversity.css:613 measures 3px */
	outline-offset: -4px;
}

/* geniversity.css:628-637 — the note under a rule, and where to see more */
.custom-internship-join .custom-internship-join__note {
	border-top: 2px solid #EEF2F7;         /* geniversity.css:631 measures 1px */
}

.custom-internship-join .custom-internship-join__note .custom-internship-join__note-text {
	margin: 0 0 14px;
	padding: 0;
	font-weight: 300;
	line-height: 1.75;
}

.custom-internship-join .custom-internship-join__sources {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
}

.custom-internship-join .custom-internship-join__sources-label {
	margin-right: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--custom-internship-join-link, #16418C);
}

.custom-internship-join .custom-internship-join__source {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	/* geniversity.css:1166 measures a 1px border, drawn here as a 2px edge inside
	   the pill: a border would make each pill 2px wider than the design's and a
	   phone's row of links would break where the design's does not */
	border: 0;
	box-shadow: inset 0 0 0 2px var(--custom-internship-join-edge, #E2E8F0);
	border-radius: 1000px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--custom-internship-join-link, #16418C);
	text-decoration: none;
	transition: background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-internship-join .custom-internship-join__source::after {
	content: "\2197";
	margin-left: 6px;
	font-size: 12px;
}

.custom-internship-join .custom-internship-join__source:hover {
	box-shadow: inset 0 0 0 2px var(--custom-internship-join-on, #16418C);
	background-color: var(--custom-internship-join-on, #16418C);
	color: #FFFFFF;
}

/* geniversity.css:709 — on the wide screen the note gives its room to the pictures */
@media (width > 1200px) {
	.custom-internship-join .custom-internship-join__note .custom-internship-join__note-text {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* One above the other from 1200 down — geniversity.css:733-742        */
/* ------------------------------------------------------------------ */

@media (max-width: 1200px) {
	.custom-internship-join .custom-internship-join__columns {
		grid-template-columns: minmax(0, 1fr);
	}
	.custom-internship-join .custom-internship-join__act {
		margin-top: 0;
	}
	/* geniversity.css:725-726 — the button runs the column's width */
	.custom-internship-join .custom-internship-join__act [data-custom-partner-button] {
		width: 100%;
		justify-content: center;
	}
}

/* geniversity.css:139-157, career.css:2455-2462 — below the desktop the rows read at 1.6 and 1.7 */
@media (max-width: 1024px) {
	.custom-internship-join .custom-internship-join__table .custom-internship-join__name {
		line-height: 1.6;
	}
	.custom-internship-join .custom-internship-join__table .custom-internship-join__value {
		line-height: 1.7;
	}
}

/* geniversity.css:1236-1240 — a phone's rows run a little faster */
@media (max-width: 767px) {
	.custom-internship-join .custom-internship-join__run-row {
		animation-duration: 55s;
	}
	.custom-internship-join .custom-internship-join__run-row--two {
		animation-duration: 48s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-internship-join .custom-internship-join__run-row {
		padding-right: 0;
		animation: none;
	}
	.custom-internship-join .custom-internship-join__run {
		overflow-x: auto;
		-webkit-mask-image: none;
		        mask-image: none;
	}
	.custom-internship-join .custom-internship-join__run-item[aria-hidden="true"] {
		display: none;
	}
	.custom-internship-join .custom-internship-join__shot > img,
	.custom-internship-join .custom-internship-join__source {
		transition: none;
	}
}
