/**
 * Seven Pixels — the «about us» pieces.
 *
 *   .adv-fig   adv-figures              figures bento (copy + tinted cards + photo)
 *   .adv-lt    adv-leadership-tabs      tabs by office: quote, holder, team
 *   .adv-da    adv-directory-accordion  directory groups as an accordion of links
 *   .adv-mc    adv-ministry-carousel    ministries as a sideways row of cards
 *   .adv-ed-guide                       the centred guide paragraph under a page hero
 *
 * Built on the editorial vocabulary (assets/design/editorial.css, loaded
 * first): `.adv-eyebrow--spaced`, `.adv-statement`, `.adv-lead`,
 * `.adv-btn--outline`, and its `--adv-ed-*` tokens (ink, muted, line,
 * surface, ring, serif, radius, tracking). The one colour of its own is the
 * kit's primary, mixed into the surface for the soft tints; in dark mode the
 * surface token is dark, so the tints follow with no rule of their own.
 *
 * Each widget is an inline-size container and lays itself out by its own
 * width (`cqi`, `@container`), so it fits a full page, a 50 % column or a
 * 280 px phone alike. Section containers around them never wrap (see
 * bin/advlib/sections.py, A4/R3-2): a wrapping column would measure them at
 * 0 px.
 */

.adv-fig,
.adv-lt,
.adv-da,
.adv-mc {
	--adv-ab-primary: var(--e-global-color-primary, var(--adv-ed-ink, #1f2f35));
	--adv-ab-ink: var(--adv-ed-ink, var(--e-global-color-text, #16181a));
	--adv-ab-muted: var(--adv-ed-muted, color-mix(in srgb, var(--adv-ab-ink) 72%, transparent));
	--adv-ab-line: var(--adv-ed-line, color-mix(in srgb, var(--adv-ab-ink) 16%, transparent));
	--adv-ab-surface: var(--adv-ed-surface, var(--adv-surface, #fff));
	--adv-ab-ring: var(--adv-ed-ring, var(--adv-focus, var(--adv-ab-ink)));
	--adv-ab-serif: var(--adv-ed-serif, Georgia, "Times New Roman", serif);
	--adv-ab-radius: clamp(0.875rem, 0.6rem + 1cqi, 1.5rem);
	--adv-ab-tracking: 0.2em;
	container-type: inline-size;
	color: var(--adv-ab-ink);
	min-inline-size: 0;
}

/* The ALPS pack: its own, tighter tracking. */
.adv-ed--alps :is(.adv-fig, .adv-lt, .adv-da, .adv-mc) {
	--adv-ab-tracking: 0.14em;
}

/* A soft tint of the kit's primary over the surface (light or dark). */
.adv-fig__card,
.adv-lt__photo,
.adv-da__badge,
.adv-mc__media {
	--adv-ab-mix: 10%;
	background-color: color-mix(in srgb, var(--adv-ab-primary) var(--adv-ab-mix), var(--adv-ab-surface));
}

/* Spaced caps under a name or a number. */
.adv-fig__label,
.adv-lt__role,
.adv-da__count {
	color: var(--adv-ab-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: var(--adv-ab-tracking);
	line-height: 1.45;
	overflow-wrap: anywhere;
	text-transform: uppercase;
}

/* On the tinted card the muted grey (AA on the page and the soft panel) fell
   to 3.75:1 under the strongest tint: the label takes the ink, eased a fifth
   towards the surface, which holds AA on every tint step (24 % at most). */
.adv-fig__card .adv-fig__label {
	color: color-mix(in srgb, var(--adv-ab-ink) 80%, var(--adv-ab-surface));
}

/* ===================================================== centred headers */

/* The widgets' own headers (eyebrow, statement, lead), centred whatever
   the theme does with the eyebrow (a flex row in advent-lite) or the lead
   (a narrow left box). */
:is(.adv-lt, .adv-da, .adv-mc) :is(.adv-lt__head, .adv-da__head, .adv-mc__head) {
	align-items: center;
	display: flex;
	flex-direction: column;
	text-align: center;
}

:is(.adv-lt__head, .adv-da__head, .adv-mc__head) .adv-eyebrow--spaced {
	justify-content: center;
	max-inline-size: 100%;
}

:is(.adv-lt__head, .adv-da__head, .adv-mc__head) .adv-statement {
	max-inline-size: 100%;
	text-align: center;
}

:is(.adv-lt__head, .adv-da__head, .adv-mc__head) .adv-lead {
	margin-inline: auto;
	max-inline-size: min(100%, 44rem);
	text-align: center;
}

:is(.adv-fig, .adv-lt, .adv-da, .adv-mc) .adv-lead p {
	margin: 0;
}

/* ===================================================== guide paragraph */

.adv-ed-guide .elementor-widget.adv-lead.adv-lead,
.adv-ed-guide .adv-lead:not(.elementor-widget) {
	margin-inline: auto;
	max-inline-size: min(100%, 46rem);
	width: 100%;
}

.adv-ed-guide .elementor-widget.adv-lead :is(.elementor-widget-container, p),
.adv-ed-guide .adv-lead:not(.elementor-widget) {
	color: var(--adv-ed-ink, inherit);
	font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4375rem);
	line-height: 1.65;
	margin-inline: auto;
	max-inline-size: min(100%, 46rem);
	text-align: center;
}

/* ========================================== mission, vision, values */

/* A narrow centred column; each pillar a serif subtitle over its paragraph,
   divided by a hairline. Doubled: Elementor sizes containers at (0,2,0). */
.adv-ed-pillars.adv-ed-pillars {
	margin-inline: auto;
	max-inline-size: min(100%, 44rem);
	padding-block-start: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.adv-ed-pillar.adv-ed-pillar {
	border-block-start: 1px solid var(--adv-ed-line, currentColor);
	padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

.adv-ed-pillar.adv-ed-pillar:first-child {
	border-block-start: 0;
	padding-block-start: 0;
}

.adv-ed-pillar__title.elementor-widget .elementor-heading-title,
.adv-ed-pillar__title:not(.elementor-widget) {
	color: var(--adv-ed-ink, inherit);
	font-family: var(--adv-ed-serif, serif);
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.15;
	margin: 0;
}

.adv-ed-pillar .adv-ed-pillar__text p {
	margin: 0;
}

/* The ALPS voice: the kit's sans for the subtitles. */
.adv-ed--alps .adv-ed-pillar__title.elementor-widget .elementor-heading-title {
	font-family: var(--e-global-typography-primary-font-family, inherit), sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight, 700);
}

/* =================================================== soft section fill */

/* A tint of the kit's primary over the surface, inside the six columns
   (the neutral kit has no light grey of its own). */
.adv-ed-soft.adv-ed-soft {
	background-color: color-mix(in srgb, var(--e-global-color-primary, var(--adv-ed-ink, #1f2f35)) 5%, var(--adv-ed-surface, var(--adv-surface, #fff)));
	border-radius: var(--adv-ed-radius, 0.875rem);
}

/* ============================================================ figures */

.adv-fig__grid {
	display: grid;
	gap: clamp(0.75rem, 0.5rem + 1.4cqi, 1.25rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adv-fig .adv-fig__copy {
	align-self: center;
	grid-column: 1 / -1;
	margin: 0 0 clamp(0.75rem, 3cqi, 1.5rem);
	min-inline-size: 0;
}

.adv-fig .adv-fig__copy .adv-statement {
	font-size: clamp(2rem, 1.2rem + 4.6cqi, 3.5rem);
}

.adv-fig .adv-fig__copy .adv-lead {
	margin-block-start: clamp(1rem, 0.8rem + 1cqi, 1.5rem);
}

.adv-fig .adv-fig__copy .adv-lead p {
	margin: 0;
}

.adv-fig__list {
	display: contents;
	list-style: none;
	margin: 0;
	padding: 0;
}

.adv-fig__card {
	border-radius: var(--adv-ab-radius);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	justify-content: space-between;
	min-block-size: clamp(9rem, 7rem + 10cqi, 15rem);
	min-inline-size: 0;
	padding: clamp(1.125rem, 0.8rem + 2cqi, 2rem);
}

.adv-fig__card--2 {
	--adv-ab-mix: 16%;
}

.adv-fig__card--3 {
	--adv-ab-mix: 24%;
}

/* An odd last card fills its row on two columns. */
.adv-fig__card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.adv-fig__icon {
	block-size: 1.75rem;
	color: var(--adv-ab-primary);
	flex: 0 0 auto;
	inline-size: 1.75rem;
	margin-block-end: auto;
}

.adv-fig__n {
	color: var(--adv-ab-ink);
	display: block;
	font-family: var(--adv-ab-serif);
	font-size: clamp(2.5rem, 1.5rem + 7cqi, 5.5rem);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 0.95;
	margin-block-start: clamp(1rem, 3cqi, 2rem);
	overflow-wrap: anywhere;
}

.adv-fig__photo {
	aspect-ratio: 16 / 10;
	border-radius: var(--adv-ab-radius);
	grid-column: 1 / -1;
	margin: 0;
	min-inline-size: 0;
	overflow: clip;
	position: relative;
}

/* Out of the flow: the photo fills its cell and never sizes the row. */
.adv-fig__photo .adv-fig__img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	inset: 0;
	max-inline-size: none;
	object-fit: cover;
	position: absolute;
}

/* Two narrow cards side by side: a tighter label that breaks between words. */
@container (max-width: 25.99rem) {
	.adv-fig__label {
		font-size: 0.6875rem;
		hyphens: auto;
		letter-spacing: 0.08em;
		overflow-wrap: break-word;
	}
}

/* The narrowest phones (280 px): one card per row. */
@container (max-width: 15.99rem) {
	.adv-fig__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Wider: the cards share one row (as many columns as figures, up to four),
   the photo a wide band under them. */
@container (min-width: 36rem) {
	.adv-fig__grid {
		grid-template-columns: repeat(var(--adv-fig-n, 3), minmax(0, 1fr));
	}

	.adv-fig__card:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.adv-fig__photo {
		aspect-ratio: 21 / 9;
	}
}

/* The bento (three figures and a photo): the copy in the first cell, two
   cards beside it, the third under the copy and the photo spanning the
   other two cells. DOM order kept; `dense` packs the holes. */
@container (min-width: 52rem) {
	.adv-fig--3.adv-fig--photo .adv-fig__grid {
		grid-auto-flow: row dense;
		grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
	}

	.adv-fig--3.adv-fig--photo .adv-fig__copy {
		grid-column: 1;
		margin: 0;
		padding-inline-end: clamp(1rem, 3cqi, 3rem);
	}

	.adv-fig--3.adv-fig--photo .adv-fig__photo {
		aspect-ratio: auto;
		grid-column: span 2;
		min-block-size: clamp(14rem, 22cqi, 20rem);
	}
}

/* ============================================================ leadership */

.adv-lt .adv-lt__head {
	margin-block-end: clamp(2rem, 1.5rem + 3cqi, 3.5rem);
}

.adv-lt .adv-lt__head .adv-lead p {
	margin: 0;
}

.adv-lt__tablist:not([hidden]) {
	border-block-end: 1px solid var(--adv-ab-line);
	display: flex;
	gap: 0 clamp(0.5rem, 4cqi, 3.5rem);
	justify-content: center;
	margin-block-end: clamp(2rem, 1.5rem + 3cqi, 3.5rem);
}

.adv-lt__tab {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-block-end: 2px solid transparent;
	border-radius: 0;
	color: var(--adv-ab-muted);
	cursor: pointer;
	display: inline-flex;
	flex: 0 1 auto;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	gap: 0.65em;
	align-items: center;
	justify-content: center;
	letter-spacing: var(--adv-ab-tracking);
	line-height: 1.3;
	margin-block-end: -1px;
	min-block-size: 3rem;
	min-inline-size: 2.75rem;
	padding: 0.75rem 0.25rem 0.85rem;
	text-transform: uppercase;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.adv-lt__tab:hover {
	color: var(--adv-ab-ink);
}

.adv-lt__tab[aria-selected="true"] {
	border-block-end-color: var(--adv-ab-primary);
	color: var(--adv-ab-ink);
}

.adv-lt__tab:focus-visible,
.adv-lt__panel:focus-visible {
	outline: 2px solid var(--adv-ab-ring);
	outline-offset: 3px;
}

.adv-lt__tab-icon {
	block-size: 1.25rem;
	color: var(--adv-ab-primary);
	flex: 0 0 auto;
	inline-size: 1.25rem;
}

/* Narrow: the icon over the label, the three tabs sharing the row. */
@container (max-width: 35.99rem) {
	.adv-lt__tab {
		flex: 1 1 0;
		flex-direction: column;
		font-size: 0.6875rem;
		gap: 0.4rem;
		letter-spacing: 0.08em;
		min-inline-size: 0;
		overflow-wrap: anywhere;
	}
}

.adv-lt__panel {
	border-radius: var(--adv-ab-radius);
}

/* Without the script every office is there, one after the other. */
.adv-lt__panel + .adv-lt__panel {
	margin-block-start: clamp(3rem, 2rem + 4cqi, 5rem);
}

.adv-lt.is-ready .adv-lt__panel + .adv-lt__panel {
	margin-block-start: 0;
}

.adv-lt__panel[hidden] {
	display: none;
}

.adv-lt .adv-lt__panel-title {
	color: var(--adv-ab-muted);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: var(--adv-ab-tracking);
	line-height: 1.4;
	margin: 0 0 clamp(1.5rem, 3cqi, 2.25rem);
	text-align: center;
	text-transform: uppercase;
}

/* With tabs the tab names the panel: the heading stays for screen readers. */
.adv-lt.is-ready .adv-lt__panel-title,
.adv-lt--solo .adv-lt__panel-title {
	block-size: 1px;
	clip-path: inset(50%);
	inline-size: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
}

.adv-lt__office {
	align-items: center;
	display: grid;
	gap: clamp(1.75rem, 1rem + 4cqi, 4rem);
	justify-items: center;
	text-align: center;
}

@container (min-width: 48rem) {
	.adv-lt__office--quote {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		justify-items: start;
		text-align: start;
	}

	.adv-lt__office--quote .adv-lt__person--lead {
		justify-self: center;
	}
}

.adv-lt__quote {
	border: 0;
	color: var(--adv-ab-ink);
	font-family: var(--adv-ab-serif);
	font-size: clamp(1.25rem, 1rem + 1.4cqi, 1.875rem);
	font-style: normal;
	line-height: 1.45;
	margin: 0;
	max-inline-size: 40rem;
	padding: 0;
	text-wrap: pretty;
}

.adv-lt__quote p {
	margin: 0;
}

.adv-lt__quote p + p {
	margin-block-start: 0.8em;
}

.adv-lt__person {
	min-inline-size: 0;
}

.adv-lt__photo {
	--adv-ab-mix: 12%;
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	flex: 0 0 auto;
	overflow: hidden;
	place-items: center;
}

.adv-lt__photo {
	position: relative;
}

.adv-lt__photo .adv-lt__img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	inset: 0;
	max-inline-size: none;
	object-fit: cover;
	object-position: 50% 22%;
	position: absolute;
}

.adv-lt__initials {
	color: var(--adv-ab-primary);
	font-family: var(--adv-ab-serif);
	font-size: 2.5em;
	line-height: 1;
}

.adv-lt .adv-lt__name {
	color: var(--adv-ab-ink);
	font-family: var(--adv-ab-serif);
	font-size: clamp(1.375rem, 1.1rem + 1.2cqi, 1.875rem);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0;
	overflow-wrap: anywhere;
}

.adv-lt__name a {
	color: inherit;
	text-decoration: none;
}

.adv-lt__name a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.adv-lt__name a:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--adv-ab-ring);
	outline-offset: 2px;
}

.adv-lt .adv-lt__role {
	margin: 0.5rem 0 0;
}

.adv-lt__person--lead {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	text-align: center;
}

.adv-lt__person--lead .adv-lt__photo {
	font-size: clamp(1.25rem, 1rem + 1cqi, 1.75rem);
	inline-size: clamp(9rem, 6rem + 14cqi, 14rem);
}

.adv-lt__team {
	border-block-start: 1px solid var(--adv-ab-line);
	display: grid;
	gap: 1.25rem clamp(1.5rem, 4cqi, 3rem);
	grid-template-columns: minmax(0, 1fr);
	list-style: none;
	margin: clamp(2.5rem, 2rem + 3cqi, 4rem) auto 0;
	max-inline-size: 50rem;
	padding: clamp(2rem, 1.5rem + 2cqi, 3rem) 0 0;
}

@container (min-width: 34rem) {
	.adv-lt__team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.adv-lt__person--team {
	align-items: center;
	display: flex;
	gap: 1rem;
	text-align: start;
}

.adv-lt__person--team .adv-lt__photo {
	font-size: 0.7rem;
	inline-size: clamp(3.5rem, 3rem + 1.5cqi, 4.5rem);
}

.adv-lt .adv-lt__person--team .adv-lt__name {
	font-size: clamp(1.0625rem, 1rem + 0.4cqi, 1.25rem);
}

.adv-lt .adv-lt__person--team .adv-lt__role {
	margin-block-start: 0.25rem;
}

/* ============================================================ accordion */

.adv-da .adv-da__head {
	margin-block-end: clamp(2rem, 1.5rem + 3cqi, 3.5rem);
}

.adv-da .adv-da__head .adv-lead p {
	margin: 0;
}

.adv-da__groups {
	border-block-start: 1px solid var(--adv-ab-line);
}

.adv-da__group {
	border-block-end: 1px solid var(--adv-ab-line);
}

.adv-da__summary {
	align-items: center;
	border-radius: 2px;
	cursor: pointer;
	display: flex;
	gap: clamp(0.75rem, 2cqi, 1.25rem);
	list-style: none;
	min-block-size: 3.5rem;
	padding: clamp(1rem, 0.75rem + 1cqi, 1.5rem) 0.25rem;
}

.adv-da__summary::-webkit-details-marker,
.adv-da__summary::marker {
	content: "";
	display: none;
}

.adv-da__summary:focus-visible {
	outline: 2px solid var(--adv-ab-ring);
	outline-offset: 2px;
}

.adv-da__badge {
	--adv-ab-mix: 12%;
	block-size: 2.75rem;
	border-radius: 50%;
	color: var(--adv-ab-primary);
	display: grid;
	flex: 0 0 auto;
	inline-size: 2.75rem;
	place-items: center;
}

.adv-da__icon {
	block-size: 1.25rem;
	inline-size: 1.25rem;
}

.adv-da__name {
	color: var(--adv-ab-ink);
	flex: 1 1 auto;
	font-family: var(--adv-ab-serif);
	font-size: clamp(1.375rem, 1.1rem + 1.4cqi, 2rem);
	line-height: 1.2;
	min-inline-size: 0;
	overflow-wrap: anywhere;
}

.adv-da .adv-da__count {
	flex: 0 0 auto;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
}

/* + / − in a round outline. */
.adv-da__sign {
	block-size: 2.75rem;
	border: 1px solid var(--adv-ab-line);
	border-radius: 50%;
	flex: 0 0 auto;
	inline-size: 2.75rem;
	position: relative;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.adv-da__sign::before,
.adv-da__sign::after {
	background: currentColor;
	block-size: 1.5px;
	content: "";
	inline-size: 0.875rem;
	inset: 50% auto auto 50%;
	position: absolute;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
}

.adv-da__sign::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.adv-da__group[open] .adv-da__sign::after {
	transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.adv-da__summary:hover .adv-da__sign {
	border-color: var(--adv-ab-ink);
}

.adv-da__list {
	--adv-da-gap: clamp(1rem, 3cqi, 2.5rem);
	display: grid;
	gap: 0 var(--adv-da-gap);
	/* At most «Columnas» columns, never narrower than 13rem each. */
	grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 13rem), calc((100% - (var(--adv-da-cols, 4) - 1) * var(--adv-da-gap)) / var(--adv-da-cols, 4))), 1fr));
	list-style: none;
	margin: 0;
	padding: 0 0.25rem clamp(1.5rem, 1rem + 2cqi, 2.5rem) calc(2.75rem + clamp(0.75rem, 2cqi, 1.25rem) + 0.25rem);
}

@container (max-width: 35.99rem) {
	.adv-da__list {
		padding-inline-start: 0.25rem;
	}

	.adv-da .adv-da__count {
		display: none;
	}
}

.adv-da__item {
	min-inline-size: 0;
}

.adv-da__link {
	border-block-end: 1px solid color-mix(in srgb, var(--adv-ab-line) 60%, transparent);
	color: var(--adv-ab-ink);
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	justify-content: center;
	min-block-size: 2.75rem;
	padding: 0.65rem 0;
	text-decoration: none;
}

.adv-da__title {
	font-size: 1rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.adv-da__link:hover .adv-da__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.adv-da__link:focus-visible {
	outline: 2px solid var(--adv-ab-ring);
	outline-offset: 2px;
}

.adv-da__place {
	color: var(--adv-ab-muted);
	font-size: 0.8125rem;
}

.adv-da__actions,
.adv-mc__actions {
	display: flex;
	justify-content: center;
	margin: clamp(2rem, 1.5rem + 3cqi, 3.5rem) 0 0;
}

/* ============================================================ carousel */

.adv-mc {
	--adv-mc-gap: clamp(0.75rem, 0.5rem + 1.4cqi, 1.5rem);
}

.adv-mc .adv-mc__head {
	margin-block-end: clamp(2rem, 1.5rem + 3cqi, 3.5rem);
}

.adv-mc .adv-mc__head .adv-lead p {
	margin: 0;
}

.adv-mc__viewport {
	/* A scrolling box clips what it paints outside itself: the padding gives
	   the cards' focus ring (2 px at 4 px, plus the theme's halo) room inside
	   it, the negative margin keeps the cards where they were. */
	--adv-mc-ring-room: 0.5rem;
	border-radius: var(--adv-ab-radius);
	margin: calc(-1 * var(--adv-mc-ring-room)) calc(-1 * var(--adv-mc-ring-room)) 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: var(--adv-mc-ring-room) var(--adv-mc-ring-room) 0.75rem;
	scroll-padding-inline: var(--adv-mc-ring-room);
	scroll-snap-type: x mandatory;
	scrollbar-color: var(--adv-ab-line) transparent;
	scrollbar-width: thin;
}

.adv-mc__viewport:focus-visible {
	outline: 2px solid var(--adv-ab-ring);
	outline-offset: 4px;
}

.adv-mc__track {
	display: grid;
	gap: var(--adv-mc-gap);
	grid-auto-columns: 72%;
	grid-auto-flow: column;
	list-style: none;
	margin: 0;
	padding: 0;
}

@container (min-width: 30rem) {
	.adv-mc__track {
		grid-auto-columns: calc((100% - var(--adv-mc-gap)) / 2.2);
	}
}

@container (min-width: 48rem) {
	.adv-mc__track {
		grid-auto-columns: calc((100% - 2 * var(--adv-mc-gap)) / 3);
	}
}

@container (min-width: 64rem) {
	.adv-mc__track {
		grid-auto-columns: calc((100% - 3 * var(--adv-mc-gap)) / 4);
	}
}

.adv-mc__item {
	min-inline-size: 0;
	scroll-snap-align: start;
}

.adv-mc__card {
	color: var(--adv-ab-ink);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	text-decoration: none;
}

.adv-mc__media {
	--adv-ab-mix: 12%;
	aspect-ratio: var(--adv-mc-ratio, 4 / 5);
	border-radius: var(--adv-ab-radius);
	display: grid;
	overflow: clip;
	place-items: center;
	position: relative;
}

.adv-mc__media .adv-mc__img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	inset: 0;
	max-inline-size: none;
	object-fit: cover;
	position: absolute;
	transition: transform 0.5s ease;
}

a.adv-mc__card:hover .adv-mc__img {
	transform: scale(1.04);
}

/* A logo: whole, centred on the tint, with air around it. */
.adv-mc__media--whole {
	--adv-ab-mix: 6%;
}

.adv-mc__media--whole .adv-mc__img {
	inset: 14%;
	block-size: 72%;
	inline-size: 72%;
	object-fit: contain;
}

a.adv-mc__card:hover .adv-mc__media--whole .adv-mc__img {
	transform: scale(1.03);
}

.adv-mc__initials {
	color: var(--adv-ab-primary);
	font-family: var(--adv-ab-serif);
	font-size: clamp(2.25rem, 1.5rem + 3cqi, 3.5rem);
	line-height: 1;
}

.adv-mc .adv-mc__name {
	color: var(--adv-ab-ink);
	font-family: var(--adv-ab-serif);
	font-size: clamp(1.125rem, 1rem + 0.6cqi, 1.375rem);
	font-weight: 400;
	line-height: 1.25;
	margin: 0;
	overflow-wrap: anywhere;
}

a.adv-mc__card:hover .adv-mc__name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a.adv-mc__card:focus-visible {
	border-radius: var(--adv-ab-radius);
	outline: 2px solid var(--adv-ab-ring);
	outline-offset: 4px;
}

.adv-mc__nav:not([hidden]) {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	margin-block-start: clamp(1.25rem, 1rem + 1cqi, 2rem);
}

.adv-mc__btn {
	-webkit-appearance: none;
	appearance: none;
	align-items: center;
	background: transparent;
	block-size: 3rem;
	border: 1px solid var(--adv-ab-line);
	border-radius: 50%;
	color: var(--adv-ab-ink);
	cursor: pointer;
	display: inline-flex;
	inline-size: 3rem;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.adv-mc__btn:hover:not(:disabled) {
	background: var(--adv-ab-ink);
	border-color: var(--adv-ab-ink);
	color: var(--adv-ab-surface);
}

.adv-mc__btn:focus-visible {
	outline: 2px solid var(--adv-ab-ring);
	outline-offset: 3px;
}

.adv-mc__btn:disabled {
	cursor: default;
	opacity: 0.35;
}

.adv-mc__btn-icon {
	block-size: 1.25rem;
	inline-size: 1.25rem;
}

/* A right-to-left page reads the row the other way: so do the arrows. */
[dir="rtl"] .adv-mc__btn-icon {
	transform: scaleX(-1);
}

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

@media (prefers-reduced-motion: reduce) {
	.adv-lt__tab,
	.adv-da__sign,
	.adv-da__sign::before,
	.adv-da__sign::after,
	.adv-mc__img,
	.adv-mc__btn {
		transition: none;
	}

	a.adv-mc__card:hover .adv-mc__img {
		transform: none;
	}

	.adv-mc__viewport {
		scroll-behavior: auto;
	}
}

@media (forced-colors: active) {
	.adv-lt__tab[aria-selected="true"] {
		border-block-end-color: Highlight;
	}

	.adv-fig__card,
	.adv-mc__media {
		border: 1px solid CanvasText;
	}
}
