/**
 * FPS — Team List
 *
 * Defaults match the hand-built "Who consults here" rows on the location pages
 * (8px row gap, 12px icon gap, 22px tinted circle, IBM Plex Sans 17px/1.7),
 * so swapping the widget in changes nothing visually.
 *
 * Every var()-driven value uses longhand properties on purpose. A var() inside
 * a shorthand silently resolves to the initial value on some of these builds.
 */

.fps-tl {
	--fps-tl-gap: 8px;
	--fps-tl-icon-gap: 12px;
	--fps-tl-icon-size: 11px;
	--fps-tl-icon-color: #104b9a;
	--fps-tl-icon-bg: #eef3fa;
}

/* ---------------------------------------------------------------- list ---- */

.fps-tl--list {
	display: flex;
	flex-direction: column;
	row-gap: var(--fps-tl-gap);
}

.fps-tl__item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	flex-wrap: nowrap;
	column-gap: var(--fps-tl-icon-gap);
}

.fps-tl__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-grow: 0;
	flex-shrink: 0;
	width: calc(var(--fps-tl-icon-size) * 2);
	height: calc(var(--fps-tl-icon-size) * 2);
	/* Optical alignment with the first line of 17px/1.7 body text. */
	margin-top: 4px;
	border-radius: 999px;
	background-color: var(--fps-tl-icon-bg);
	color: var(--fps-tl-icon-color);
	font-size: var(--fps-tl-icon-size);
	line-height: 1;
}

.fps-tl__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.fps-tl__icon i {
	font-size: inherit;
	color: inherit;
}

.fps-tl__body {
	flex-grow: 1;
	flex-shrink: 1;
	min-width: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	color: #43506b;
}

.fps-tl--list .fps-tl__name {
	font-weight: 700;
	color: #104b9a;
	text-decoration: none;
}

.fps-tl--list a.fps-tl__name:hover,
.fps-tl--list a.fps-tl__name:focus-visible {
	text-decoration: underline;
}

.fps-tl__sep,
.fps-tl--list .fps-tl__role {
	color: inherit;
}

/* --------------------------------------------------------------- cards ---- */

.fps-tl--cards {
	--fps-tl-cols: 2;
	--fps-tl-photo: 92px;
	--fps-tl-card-gap: 20px;

	display: grid;
	grid-template-columns: repeat(var(--fps-tl-cols), minmax(0, 1fr));
	column-gap: var(--fps-tl-card-gap);
	row-gap: var(--fps-tl-card-gap);
}

/* nowrap is deliberate. With wrap on, the photo column wraps to a line of its
   own as soon as the card gets narrow — and having no content of its own it
   renders Npx x 0, so the card looks like it never had an image. Squeezing the
   body is the better failure mode; use the Columns control to drop to 1-up. */
.fps-tl__card {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	column-gap: 16px;
	background-color: #fff;
	border-radius: 20px;
}

.fps-tl__photo {
	flex-grow: 0;
	flex-shrink: 0;
	width: var(--fps-tl-photo);
	height: var(--fps-tl-photo);
	overflow: hidden;
	border-radius: 999px;
	background-color: #eef3fa;
}

/* An <img> computes its own radius but paints square — the clip has to live on
   a wrapper, which is what .fps-tl__photo is for. */
.fps-tl__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fps-tl__card-body {
	flex-grow: 1;
	flex-shrink: 1;
	min-width: 0;
}

.fps-tl__title {
	margin-top: 0;
	margin-bottom: 0;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.fps-tl--cards .fps-tl__name {
	color: #0b3168;
	text-decoration: none;
}

.fps-tl--cards a.fps-tl__name:hover,
.fps-tl--cards a.fps-tl__name:focus-visible {
	color: #104b9a;
}

.fps-tl--cards .fps-tl__role {
	margin-top: 4px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14.5px;
	line-height: 1.5;
	color: #6b7a96;
}

.fps-tl__quals {
	margin-top: 8px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 13.5px;
	line-height: 1.5;
	color: #8595af;
}

.fps-tl__interest {
	margin-top: 10px;
	margin-bottom: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #43506b;
}

.fps-tl__cta {
	display: inline-block;
	margin-top: 12px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	color: #104b9a;
	text-decoration: none;
}

.fps-tl__cta:hover,
.fps-tl__cta:focus-visible {
	text-decoration: underline;
}

/* -------------------------------------------------------- editor notice ---- */

.fps-tl__notice {
	padding-top: 12px;
	padding-right: 14px;
	padding-bottom: 12px;
	padding-left: 14px;
	border: 1px dashed #b6c3d6;
	border-radius: 8px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #6b7a96;
}
