/*
 * Who We Are (html/pages/content/who-we-are.html). Loaded only on that page,
 * through the 'css' key of its row in includes/static_pages.php. The site
 * chrome (cream page, green header bar, Arial, bold blue links) comes from
 * rbn_2.css; this file lays out the team list and the award plaque.
 *
 * Design: the team reads down the left, and the Yasme Excellence Award sits
 * beside it as a plaque in the header bar's own green, so it belongs to the
 * site rather than to a template. The plaque's one illustration is the
 * trophy itself, drawn to match Yasme's presentation photos: a clear crystal
 * globe with frosted continents on a clear crystal stand engraved with the
 * year. Everything else stays plain on purpose.
 */

/* The generic static-page frame is a 175px empty spacer (#col-a) beside a
   fixed 605px column (#col-b), which left this page a narrow strip with wide
   margins. Here the spacer goes and the column takes the width it needs. */
#col-a {
	display: none;
}

#col-b {
	float: none;
	width: auto;
	max-width: 66rem;
	padding: 0 16px;
}

.team-page {
	--plaque: #003300;
	--plaque-text: #eef3e6;
	--plaque-muted: #b9c8b2;
	--plaque-rule: rgb(255 255 255 / 18%);
	--plaque-link: #cfe4ff;

	line-height: 1.45;
}

.team-intro {
	max-width: 40rem;
	margin: 0 0 1.25rem;
}

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

.team > p {
	margin: 0 0 0.5rem;
}

.team-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 40rem;
}

.team-list li {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 0.85rem 0;
	border-top: 1px solid var(--rbn-border);
}

.team-list li:first-child {
	border-top: 0;
	padding-top: 0.25rem;
}

.team-list img {
	flex: none;
	width: 90px;
	height: 90px;
}

.team-list p {
	margin: 0;
}

/* --- Award plaque --- */

.award {
	max-width: 40rem;
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.5rem 1.4rem;
	border-radius: 14px;
	background: var(--plaque);
	color: var(--plaque-text);
	/* A faint inner edge, like the bevel of a mounted plaque. */
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 9%);
}

.award-globe {
	display: block;
	width: 10.5rem;
	height: auto;
	margin: 0 auto 0.6rem;
}

.award-year {
	font: 600 11px Georgia, "Times New Roman", serif;
	letter-spacing: 0.18em;
	fill: #ffffff;
	fill-opacity: 0.75;
}

.award h4 {
	margin: 0;
	font-size: 1.35em;
	line-height: 1.25;
	text-align: center;
	color: #fff;
}

.award-when {
	margin: 0.2rem 0 1rem;
	text-align: center;
	color: var(--plaque-muted);
}

.award-citation {
	margin: 0 0 1rem;
	padding: 0.85rem 0.25rem;
	border-top: 1px solid var(--plaque-rule);
	border-bottom: 1px solid var(--plaque-rule);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.12em;
	font-style: italic;
	line-height: 1.45;
	text-align: center;
}

.award-citation p {
	margin: 0;
}

.award p {
	margin: 0 0 0.75rem;
}

.award .award-link {
	margin: 1rem 0 0;
}

.award a,
.award a:visited {
	color: var(--plaque-link);
}

.award a:focus-visible {
	outline-color: var(--plaque-link);
}

/* Side by side once there is room for a 40rem reading column and the
   plaque; below that the plaque stays where the source puts it, between
   the introduction and the list. Sticky keeps the award in view while the
   list scrolls past it. */
@media (min-width: 880px) {
	.team-page {
		display: grid;
		grid-template-columns: minmax(0, 40rem) 19rem;
		grid-template-areas:
			"intro award"
			"team  award";
		column-gap: 3rem;
		align-items: start;
	}

	.team-intro {
		grid-area: intro;
	}

	.team {
		grid-area: team;
	}

	.award {
		grid-area: award;
		position: sticky;
		top: 1rem;
		margin: 0;
	}
}
