/* =========================================================
   TRC Staff Cards
========================================================= */

.trc-staff-cards {
	--trc-staff-orange: #f05a28;
	--trc-staff-black: #111111;
	--trc-staff-white: #ffffff;
	--trc-staff-warm-white: #f7f3ec;
	--trc-staff-card-grey: #eeeeea;

	box-sizing: border-box;
	width: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--trc-staff-white);
	color: var(--trc-staff-black);
}

.trc-staff-cards *,
.trc-staff-cards *::before,
.trc-staff-cards *::after {
	box-sizing: border-box;
}

/* =========================================================
   Background options
========================================================= */

.trc-staff-cards--background-white {
	background: var(--trc-staff-white);
	color: var(--trc-staff-black);
}

.trc-staff-cards--background-warm_white {
	background: var(--trc-staff-warm-white);
	color: var(--trc-staff-black);
}

.trc-staff-cards--background-black {
	background: var(--trc-staff-black);
	color: var(--trc-staff-white);
}

/* =========================================================
   Main layout
========================================================= */

.trc-staff-cards__inner {
	width: 100%;
	max-width: 1540px;
	margin: 0 auto;
	padding:
		clamp(38px, 4vw, 64px)
		clamp(24px, 3.5vw, 56px);
}

.trc-staff-cards__layout {
	display: grid;
	grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
	gap: clamp(42px, 4.5vw, 72px);
	align-items: start;
}

/* =========================================================
   Editorial column
========================================================= */

.trc-staff-cards__editorial {
	min-width: 0;
	padding-top: 2px;
}

.trc-staff-cards__eyebrow {
	margin: 0 0 12px;
	color: var(--trc-staff-orange);
	font-family: "Simplon", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.trc-staff-cards__heading {
	max-width: 280px;
	margin: 0;
	color: var(--trc-staff-black);
	font-family: "Knockout", Impact, sans-serif;
	font-size: clamp(46px, 4vw, 68px);
	font-weight: 400;
	line-height: 0.88;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.trc-staff-cards__introduction {
	max-width: 280px;
	margin-top: 20px;
	color: #252525;
	font-family: "Simplon", Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

.trc-staff-cards__introduction p {
	margin-top: 0;
	margin-bottom: 11px;
}

.trc-staff-cards__introduction p:last-child {
	margin-bottom: 0;
}

.trc-staff-cards__section-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: 20px;
	border: 0;
	color: var(--trc-staff-orange);
	font-family: "Simplon", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.055em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.trc-staff-cards__section-link:visited {
	color: var(--trc-staff-orange);
}

.trc-staff-cards__section-link:hover {
	color: var(--trc-staff-black);
	text-decoration: none;
}

.trc-staff-cards__section-link-arrow {
	display: inline-block;
	font-size: 24px;
	font-weight: 400;
	line-height: 0.7;
	transition: transform 0.2s ease;
}

.trc-staff-cards__section-link:hover
.trc-staff-cards__section-link-arrow {
	transform: translateX(5px);
}

.trc-staff-cards__section-link:focus-visible {
	outline: 3px solid rgba(240, 90, 40, 0.35);
	outline-offset: 5px;
}

/* =========================================================
   Staff grid
========================================================= */

.trc-staff-cards__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(18px, 1.7vw, 28px);
	width: 100%;
	min-width: 0;
}

.trc-staff-cards__item {
	min-width: 0;
	margin: 0;
}

.trc-staff-cards__card {
	position: relative;
	display: flex;
	height: 100%;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: var(--trc-staff-warm-white);
	color: var(--trc-staff-black);
	text-decoration: none !important;
}

.trc-staff-cards--background-warm_white
.trc-staff-cards__card {
	background: var(--trc-staff-white);
}

.trc-staff-cards--background-black
.trc-staff-cards__card {
	background: #1d1d1d;
	color: var(--trc-staff-white);
}

a.trc-staff-cards__card:visited {
	color: inherit;
}

a.trc-staff-cards__card:hover {
	color: inherit;
	text-decoration: none;
}

a.trc-staff-cards__card:focus-visible {
	outline: 3px solid var(--trc-staff-orange);
	outline-offset: 4px;
}

/* =========================================================
   Card image
========================================================= */

.trc-staff-cards__image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--trc-staff-card-grey);
}

.trc-staff-cards__image-element {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition:
		transform 0.35s ease,
		filter 0.35s ease;
}

.trc-staff-cards__card--linked:hover
.trc-staff-cards__image-element {
	transform: scale(1.035);
	filter: saturate(1.05);
}

/* =========================================================
   Card content
========================================================= */

.trc-staff-cards__content {
	position: relative;
	display: flex;
	min-height: 150px;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 16px 20px;
	border-top: 4px solid var(--trc-staff-orange);
}

.trc-staff-cards__name {
	margin: 0;
	color: var(--trc-staff-black);
	font-family: "Knockout", Impact, sans-serif;
	font-size: clamp(28px, 2.1vw, 36px);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.trc-staff-cards__role {
	margin: 9px 0 0;
	color: var(--trc-staff-orange);
	font-family: "Simplon", Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.trc-staff-cards__description {
	margin: 12px 0 0;
	color: #353535;
	font-family: "Simplon", Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

.trc-staff-cards__card-arrow {
	display: block;
	margin-top: auto;
	padding-top: 16px;
	color: var(--trc-staff-orange);
	font-family: "Simplon", Arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 0.7;
	transition: transform 0.2s ease;
}

.trc-staff-cards__card--linked:hover
.trc-staff-cards__card-arrow {
	transform: translateX(5px);
}

/* =========================================================
   Black background colours
========================================================= */

.trc-staff-cards--background-black
.trc-staff-cards__heading,
.trc-staff-cards--background-black
.trc-staff-cards__name {
	color: var(--trc-staff-white);
}

.trc-staff-cards--background-black
.trc-staff-cards__introduction,
.trc-staff-cards--background-black
.trc-staff-cards__description {
	color: var(--trc-staff-warm-white);
}

.trc-staff-cards--background-black
.trc-staff-cards__section-link:hover {
	color: var(--trc-staff-white);
}

/* =========================================================
   Empty editor state
========================================================= */

.trc-staff-cards__empty {
	min-height: 180px;
	padding: 32px;
	border: 2px dashed rgba(17, 17, 17, 0.25);
	color: #555555;
	font-family: "Simplon", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.trc-staff-cards__empty p {
	margin: 0;
}

.trc-staff-cards--background-black
.trc-staff-cards__empty {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--trc-staff-warm-white);
}

/* =========================================================
   Medium desktop
========================================================= */

@media (max-width: 1350px) {
	.trc-staff-cards__layout {
		grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
		gap: 44px;
	}

	.trc-staff-cards__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.trc-staff-cards__name {
		font-size: clamp(27px, 2.5vw, 34px);
	}
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1000px) {
	.trc-staff-cards__inner {
		padding: 40px 34px;
	}

	.trc-staff-cards__layout {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.trc-staff-cards__editorial {
		display: grid;
		grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
		gap: 14px 36px;
		align-items: end;
	}

	.trc-staff-cards__eyebrow,
	.trc-staff-cards__heading {
		grid-column: 1;
	}

	.trc-staff-cards__introduction,
	.trc-staff-cards__section-link {
		grid-column: 2;
	}

	.trc-staff-cards__introduction {
		align-self: end;
		margin-top: 0;
	}

	.trc-staff-cards__section-link {
		justify-self: start;
		margin-top: 2px;
	}

	.trc-staff-cards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.trc-staff-cards__content {
		min-height: 145px;
	}
}

/* =========================================================
   Small tablet
========================================================= */

@media (max-width: 760px) {
	.trc-staff-cards__editorial {
		display: block;
	}

	.trc-staff-cards__heading,
	.trc-staff-cards__introduction {
		max-width: 560px;
	}

	.trc-staff-cards__introduction {
		margin-top: 18px;
	}

	.trc-staff-cards__section-link {
		margin-top: 18px;
	}

	.trc-staff-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 560px) {
	.trc-staff-cards__inner {
		padding: 32px 22px 36px;
	}

	.trc-staff-cards__layout {
		gap: 28px;
	}

	.trc-staff-cards__heading {
		max-width: 100%;
		font-size: clamp(42px, 12vw, 54px);
		line-height: 0.9;
	}

	.trc-staff-cards__introduction {
		font-size: 15px;
	}

	.trc-staff-cards__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.trc-staff-cards__image {
		aspect-ratio: 4 / 4.6;
	}

	.trc-staff-cards__content {
		min-height: 0;
		padding: 19px 18px 22px;
	}

	.trc-staff-cards__name {
		font-size: clamp(34px, 10vw, 44px);
	}

	.trc-staff-cards__role {
		font-size: 13px;
	}

	.trc-staff-cards__description {
		font-size: 14px;
	}
}

/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
	.trc-staff-cards__image-element,
	.trc-staff-cards__section-link-arrow,
	.trc-staff-cards__card-arrow {
		transition: none;
	}

	.trc-staff-cards__card--linked:hover
	.trc-staff-cards__image-element,
	.trc-staff-cards__section-link:hover
	.trc-staff-cards__section-link-arrow,
	.trc-staff-cards__card--linked:hover
	.trc-staff-cards__card-arrow {
		transform: none;
	}
}