/* ==========================================================================
   Just Name IT theme: "Medarbetare" on Om oss (F-0029)
   --------------------------------------------------------------------------
   Loaded by the section itself (src/Team/Section.php) when it renders, so Om
   oss without the section loads nothing new. The section is the last block of
   the article column (inc/team.php), after the body, inside .article.
   Spacing and colour come from the alias tokens only (check_design.py): no
   new colour and no new token.
   ========================================================================== */

/* The section: the aside's heading style (a heading over a brand-blue line). */
.team {
	margin-block: var(--space-70) 0;
}

.team__title {
	margin: 0 0 var(--space-40);
	padding-bottom: var(--space-30);
	border-bottom: 1px solid var(--color-primary);
	font-size: var(--fs-x-large);
}

.team__group + .team__group {
	margin-block-start: var(--space-50);
}

.team__group-title {
	margin: 0 0 var(--space-40);
	padding-bottom: var(--space-30);
	border-bottom: 1px solid var(--color-border);
	font-size: var(--fs-large);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-heading);
}

/* The cards flow by content, not by breakpoints: one column at 320 px, two at
   640 px and three at 1280 px in the article column of about 796 px. */
.team__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 12rem));
	justify-content: start;
	gap: var(--space-50) var(--space-40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.team-card {
	min-width: 0;
	margin: 0;
	padding: 0;
	text-align: center;
}

/* The portrait and the initials are the same circle. */
.team-card__media {
	width: 7.5rem;
	aspect-ratio: 1;
	margin-block: 0 var(--space-30);
	margin-inline: auto;
	border-radius: var(--radius-pill);
	overflow: hidden;
	background: var(--color-primary-soft);
}

.team-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.team-card__initials {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--color-primary-soft);
	color: var(--color-primary);
	font-size: var(--fs-x-large);
	font-weight: var(--font-weight-bold);
	line-height: 1;
}

.team-card__name,
.team-card__role,
.team-card__blurb {
	margin: 0;
	overflow-wrap: anywhere;
}

.team-card__name {
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-heading);
}

.team-card__role {
	color: var(--color-muted);
}

.team-card__blurb {
	margin-block-start: var(--space-20);
	font-size: var(--fs-small);
	color: var(--color-muted);
}
