/* ==========================================================================
   Single Team Member — front-end styles
   Enqueued only on singular `teammembers` (see functions.php).

   NOTE ON UNITS: this site sets a 10px root font-size, so 1rem = 10px here,
   not 16px. Sizes below are written for that. (success-story.css was authored
   against a 16px root and rendered ~62.5% too small until it was rescaled.)
   ========================================================================== */

.ue-member {
	--maxw: 1200px;
	--pad: clamp(2rem, 4vw, 4rem);
	color: var(--ue-dark-grey, #272727);
	overflow-x: clip;
}
.ue-member img { max-width: 100%; height: auto; display: block; }

.tm-container {
	width: min(100% - (var(--pad) * 2), var(--maxw));
	margin-inline: auto;
}

.tm-eyebrow {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--ue-white, #fff);
	margin: 0 0 .4rem;
}
.tm-eyebrow--dark { color: var(--ue-blue, #3faff0); }

/* ------------------------------------------------------------------ Hero --- */
.tm-hero {
	background: var(--ue-blue, #3faff0);
	color: var(--ue-white, #fff);
	padding-block: clamp(3rem, 6vw, 6rem);
}
.tm-hero__grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: clamp(2rem, 4vw, 5rem);
	align-items: center;
}
.tm-hero__name {
	font-size: clamp(3.6rem, 5vw, 5.6rem);
	line-height: 1.1;
	font-weight: 800;
	margin: 0;
	color: var(--ue-white, #fff);
}
.tm-hero__role {
	font-size: clamp(1.8rem, 2vw, 2.2rem);
	margin: .8rem 0 0;
	opacity: .95;
}
.tm-hero__photo img {
	width: clamp(180px, 22vw, 268px);
	border-radius: 4px;
}

/* the shared paint-drip divider */
.tm-splat { width: 100%; display: block; margin-top: -1px; }

/* ------------------------------------------------------------------- Bio --- */
.tm-bio { padding-block: clamp(3rem, 5vw, 5rem) clamp(2rem, 3vw, 3rem); }
/* cap the reading measure on the children, so the block still starts at the
 container edge rather than being centred by tm-container margin-inline */
.tm-bio__inner > * { max-width: 70ch; }
.tm-bio__lead {
	font-size: clamp(1.9rem, 2.2vw, 2.4rem);
	line-height: 1.5;
	font-weight: 600;
	margin: 0 0 1.6rem;
	color: var(--ue-dark-blue, #004269);
}
.tm-bio__body { font-size: 1.6rem; line-height: 1.7; }
.tm-bio__body p { margin: 0 0 1.4rem; }

/* -------------------------------------------------------------- Articles --- */
.tm-articles {
	background: var(--ue-dark-blue, #004269);
	color: var(--ue-white, #fff);
	padding-block: clamp(3.5rem, 6vw, 6rem);
}
.tm-articles__title {
	font-size: clamp(2.6rem, 3vw, 3.8rem);
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 clamp(2rem, 3vw, 3rem);
	color: var(--ue-white, #fff);
}
.tm-articles__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(2rem, 3vw, 3rem);
}
.tm-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.tm-card__media {
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 1.2rem;
	aspect-ratio: 16 / 10;
}
.tm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tm-card__link:hover .tm-card__media img { transform: scale(1.04); }
.tm-card__title {
	font-size: 1.9rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 .6rem;
}
.tm-card__link:hover .tm-card__title { color: var(--ue-blue, #3faff0); }
.tm-card__date { font-size: 1.4rem; opacity: .8; }

/* ------------------------------------------------------------------ Back --- */
.tm-back { padding-block: clamp(3rem, 5vw, 5rem); }
.tm-back__link {
	display: inline-block;
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--ue-pink, #d61d7d);
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: .2rem;
}
.tm-back__link:hover { color: var(--ue-dark-blue, #004269); }

/* ----------------------------------------------------------------- Small --- */
@media (max-width: 767px) {
	.tm-hero__grid { grid-template-columns: 1fr; }
	.tm-hero__photo { order: -1; }
}

/* The "meet the rest of the team" link now sits inside the navy articles
   band, so it needs colours that work on dark — pink on navy is too low
   contrast to read. */
.tm-articles .tm-back__link {
	display: inline-block;
	margin-top: clamp(2.5rem, 4vw, 3.5rem);
	color: var(--ue-blue, #3faff0);
}
.tm-articles .tm-back__link:hover { color: var(--ue-white, #fff); }
