/**
 * The department page (bin/advlib/directorio.py `departamento()`): its hero
 * (`adv-ministry-header`), «Acerca de» (`adv-ministry-about`), the team as
 * portraits, the news grid that fits the number of items, and the close
 * (`adv-ministry-contact`).
 *
 * Loaded after directory.css (handle `adv-directory`), which it refines.
 * Colour: only the design tokens the directory and the editorial sheet
 * declare (`--adv-dir-*`, `--adv-ed-*`), so light and dark need no rule of
 * their own. The editorial voice (serif display, weight 400) is scoped to
 * the neutral pack's markers, as in directory.css; the ALPS pack keeps the
 * kit's sans with the same layout.
 *
 * Rhythm: every section of the page pads its top only (`adv-dept`), the
 * last one its bottom too (`adv-dept--last`): a section that has nothing to
 * show goes away (Directory\If_Content) without leaving its gap behind.
 */

/* ------------------------------------------------------------------ rhythm */

.adv-dept {
	--adv-dept-space: clamp(3.5rem, 1.9rem + 4.6vw, 6.5rem);
}

/* Above Elementor's `.e-con` padding and the flush classes the sections carry
   to stay out of the page-wide rhythm (editorial.css). */
.e-con.adv-dept.adv-dept {
	padding-block: var(--adv-dept-space) 0;
}

.e-con.adv-dept.adv-dept--hero {
	padding-block: clamp(1.25rem, 0.6rem + 2vw, 2.75rem) 0;
}

.e-con.adv-dept.adv-dept--last {
	padding-block-end: var(--adv-dept-space);
}

/* Header to content: the department's own gap, not the editorial root's. */
.e-con.adv-dept.adv-dept {
	--adv-dept-gap: clamp(1.25rem, 0.8rem + 1.2vw, 2rem);
	gap: var(--adv-dept-gap);
}

/* The featured band lifts its card above the band: it brings its own air. */
.e-con.adv-dept.adv-section-departamento-destacado {
	padding-block-start: calc(var(--adv-dept-space) * 0.6);
}

/* -------------------------------------------------------------------- hero */

.adv-dir.adv-mhero {
	--adv-mhero-radius: var(--adv-ed-radius, 1rem);
	--adv-mhero-on: var(--adv-ed-light, var(--adv-on-primary));
}

.adv-dir.adv-mhero .adv-mhead.adv-mhead {
	align-items: center;
	gap: clamp(1.75rem, 0.9rem + 3.6vw, 4.5rem);
}

.adv-dir.adv-mhero .adv-mhead--partido.adv-mhead--image {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

.adv-dir.adv-mhero .adv-mhead__text {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
}

.adv-dir.adv-mhero .adv-mhead__eyebrow {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.875rem;
	margin-block: clamp(1.25rem, 0.9rem + 1vw, 2rem) 0.875rem;
}

.adv-dir.adv-mhero .adv-dir-crumbs + .adv-mhead__eyebrow {
	margin-block-start: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}

.adv-dir.adv-mhero .adv-mhead__text > .adv-mhead__eyebrow:first-child {
	margin-block-start: 0;
}

.adv-dir.adv-mhero .adv-mhead__kicker.adv-mhead__kicker {
	margin: 0;
}

/* The logo, as a badge: small, framed, never cropped. */
.adv-dir.adv-mhero .adv-mhead__badge {
	align-items: center;
	background: var(--adv-surface, transparent);
	block-size: 3.25rem;
	border: 1px solid var(--adv-dir-line);
	border-radius: 0.625rem;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	max-inline-size: 10rem;
	padding: 0.3125rem 0.5rem;
}

.adv-dir.adv-mhero .adv-mhead__badge .adv-mhead__logo {
	block-size: 100%;
	display: block;
	inline-size: auto;
	max-block-size: 100%;
	max-inline-size: 100%;
	object-fit: contain;
}

.adv-dir.adv-mhero .adv-mhead__title.adv-mhead__title {
	font-size: clamp(2.375rem, 1.15rem + 3.6vw, 4.5rem);
	text-wrap: balance;
}

/* Long names («Ministerio Infantil y del Adolescente») a step down. */
.adv-dir.adv-mhero .adv-mhead__title.adv-mhead__title--long {
	font-size: clamp(2.125rem, 1.1rem + 2.9vw, 3.75rem);
}

.adv-dir.adv-mhero .adv-mhead__lead.adv-mhead__lead {
	font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem);
	line-height: 1.6;
	margin-block-start: clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
	max-inline-size: 38rem;
}

.adv-dir.adv-mhero .adv-mhead__leader.adv-mhead__leader {
	margin-block-start: 1.125rem;
}

.adv-dir.adv-mhero .adv-mhead__leader a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--adv-dir-line);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.adv-dir.adv-mhero .adv-mhead__leader a:is(:hover, :focus-visible) {
	text-decoration-color: currentColor;
}

.adv-dir.adv-mhero .adv-mhead__actions {
	gap: 0.75rem;
	margin-block-start: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
}

.adv-dir.adv-mhero .adv-mhead__media.adv-mhead__media {
	aspect-ratio: 5 / 4;
	background: var(--adv-dir-soft);
	border-radius: var(--adv-mhero-radius);
	margin: 0;
	overflow: hidden;
	position: relative;
}

.adv-dir.adv-mhero .adv-mhead__media .adv-mhead__img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	max-inline-size: none;
	object-fit: cover;
	object-position: var(--adv-mhead-pos, 50% 38%);
}

/* A drawn picture carries the department's glyph. */
.adv-dir.adv-mhero .adv-mhead__glyph {
	color: var(--adv-mhero-on);
	inset-block-end: 12%;
	inset-inline-end: 9%;
	inline-size: clamp(5rem, 30%, 13rem);
	opacity: 0.88;
	pointer-events: none;
	position: absolute;
}

.adv-dir.adv-mhero .adv-mhead__glyph-svg {
	block-size: auto;
	display: block;
	inline-size: 100%;
}

/* ---- «banda»: the picture across the columns, a veil, the words on it. */

.adv-dir.adv-mhero--banda .adv-dir-crumbs {
	margin-block-end: clamp(1rem, 0.7rem + 1vw, 1.5rem);
}

.adv-dir.adv-mhero .adv-mhead--banda.adv-mhead--banda {
	align-items: end;
	border-radius: var(--adv-mhero-radius);
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	isolation: isolate;
	min-block-size: clamp(24rem, 16rem + 20vw, 38rem);
	overflow: hidden;
}

.adv-dir.adv-mhero .adv-mhead--banda > * {
	grid-area: 1 / 1;
}

.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__media.adv-mhead__media {
	aspect-ratio: auto;
	block-size: 100%;
	border-radius: 0;
	z-index: -1;
}

.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__media::after {
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--adv-ed-shade) 82%, transparent) 0%,
		color-mix(in srgb, var(--adv-ed-shade) 48%, transparent) 45%,
		color-mix(in srgb, var(--adv-ed-shade) 8%, transparent) 100%
	);
	content: "";
	inset: 0;
	position: absolute;
}

.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__glyph {
	inset-block: 10% auto;
}

.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__text {
	--adv-ed-ink: var(--adv-mhero-on);
	--adv-ed-surface: var(--adv-ed-shade);
	color: var(--adv-mhero-on);
	padding: clamp(1.5rem, 0.8rem + 3.2vw, 3.75rem);
}

.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__title.adv-mhead__title,
.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__kicker.adv-mhead__kicker,
.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__lead.adv-mhead__lead,
.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__leader.adv-mhead__leader,
.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__leader strong {
	color: var(--adv-mhero-on);
}

.adv-dir.adv-mhero .adv-mhead--banda .adv-mhead__badge {
	background: var(--adv-mhero-on);
	border-color: transparent;
}

/* Narrow: one column, the words first, the picture under them. */
@container (max-width: 46rem) {
	.adv-dir.adv-mhero .adv-mhead--partido.adv-mhead--image {
		grid-template-columns: minmax(0, 1fr);
	}

	.adv-dir.adv-mhero .adv-mhead--partido .adv-mhead__media.adv-mhead__media {
		aspect-ratio: 16 / 10;
	}

	.adv-dir.adv-mhero .adv-mhead--banda.adv-mhead--banda {
		min-block-size: clamp(26rem, 120cqi, 34rem);
	}

}

@container (max-width: 30rem) {
	.adv-dir.adv-mhero .adv-mhead__actions .adv-mhead__btn {
		flex: 1 1 100%;
	}
}

/* -------------------------------------------------------------- about */

.adv-dir.adv-mabout .adv-mabout__in {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 5.5rem);
	grid-template-columns: minmax(0, 1fr);
}

.adv-dir.adv-mabout--split .adv-mabout__in {
	align-items: start;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

.adv-dir.adv-mabout .adv-mabout__text {
	color: var(--adv-dir-ink);
	font-size: clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
	line-height: 1.75;
	max-inline-size: 42rem;
	overflow-wrap: break-word;
}

.adv-dir.adv-mabout .adv-mabout__text > :is(p, ul, ol, blockquote) {
	margin: 0 0 1.1em;
}

.adv-dir.adv-mabout .adv-mabout__text > :last-child {
	margin-block-end: 0;
}

.adv-dir.adv-mabout .adv-mabout__text :is(ul, ol) {
	padding-inline-start: 1.25em;
}

.adv-dir.adv-mabout .adv-mabout__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* The responsible: a round portrait, no card. */
.adv-dir.adv-mabout .adv-mabout__person {
	align-content: start;
	display: grid;
	gap: 1.25rem;
	justify-items: start;
}

.adv-dir.adv-mabout--split .adv-mabout__person {
	border-inline-start: 1px solid var(--adv-dir-line);
	padding-inline-start: clamp(1.5rem, 0.5rem + 2.5vw, 3rem);
}

/* Beside a long text, the person stays in view while it is read. */
@media (min-width: 1024px) {
	.adv-dir.adv-mabout--split .adv-mabout__person {
		inset-block-start: 7.5rem;
		position: sticky;
	}
}

.adv-dir.adv-mabout--person .adv-mabout__person {
	align-items: center;
	grid-template-columns: auto minmax(0, 1fr);
	max-inline-size: 52rem;
}

.adv-dir.adv-mabout .adv-mabout__photo {
	aspect-ratio: 1;
	background: var(--adv-dir-soft);
	border-radius: 50%;
	display: grid;
	flex: 0 0 auto;
	inline-size: clamp(8.5rem, 6.5rem + 6vw, 12.5rem);
	overflow: hidden;
	place-items: center;
}

.adv-dir.adv-mabout .adv-mabout__photo .adv-person__img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	max-inline-size: none;
	object-fit: cover;
	object-position: 50% 22%;
}

.adv-dir.adv-mabout .adv-mabout__photo .adv-person__initials {
	color: var(--adv-dir-accent);
	font-size: 2.25rem;
	font-weight: 600;
}

.adv-dir.adv-mabout .adv-mabout__who {
	display: grid;
	gap: 0.375rem;
	min-inline-size: 0;
}

.adv-dir.adv-mabout .adv-mabout__label.adv-mabout__label {
	margin: 0 0 0.25rem;
}

.adv-dir.adv-mabout .adv-mabout__name.adv-mabout__name {
	color: var(--adv-dir-ink);
	font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
	font-style: normal;
	font-weight: var(--adv-dir-heading-weight);
	line-height: 1.2;
	margin: 0;
	text-transform: none;
}

.adv-dir.adv-mabout .adv-mabout__name a {
	color: inherit;
	text-decoration: none;
}

.adv-dir.adv-mabout .adv-mabout__name a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.adv-dir.adv-mabout .adv-mabout__role.adv-mabout__role {
	color: var(--adv-dir-muted);
	font-size: 0.9375rem;
	margin: 0;
}

.adv-dir.adv-mabout .adv-mabout__bio.adv-mabout__bio {
	color: var(--adv-dir-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0.5rem 0 0;
	max-inline-size: 36rem;
}

.adv-dir.adv-mabout .adv-dir-contact {
	margin-block-start: 0.75rem;
}

/* Only the person: the section's title on the left, the person on the
   right, so one portrait does not leave the row empty. */
@media (min-width: 1024px) {
	.adv-dir.adv-mabout.adv-mabout--person {
		align-items: center;
		column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
		display: grid;
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	}

	.adv-dir.adv-mabout--person > .adv-dir-head {
		margin: 0;
	}
}

@container (max-width: 46rem) {
	.adv-dir.adv-mabout--split .adv-mabout__in {
		grid-template-columns: minmax(0, 1fr);
	}

	.adv-dir.adv-mabout--split .adv-mabout__person {
		border-block-start: 1px solid var(--adv-dir-line);
		border-inline-start: 0;
		padding-block-start: 2rem;
		padding-inline-start: 0;
	}
}

@container (max-width: 30rem) {
	.adv-dir.adv-mabout--person .adv-mabout__person {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------- team */

/* Portraits of a department's team: three to a row, not 20 rem wide each. */
.adv-dept .adv-dir.adv-people--retrato .adv-person__photo.adv-person__photo {
	inline-size: min(100%, 12.5rem);
}

/* ------------------------------------------- resources and events: the count */

/* The library's grid keeps empty slots (auto-fill); on a department page one
   resource is one wide card and two share the row. */
.adv-dept .adv-lib-barra__grid:has(> .adv-lib-card:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.adv-dept .adv-lib-barra__grid:has(> .adv-lib-card:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.adv-dept .adv-lib-barra__grid > .adv-lib-card:only-child {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.adv-dept .adv-lib-barra__grid > .adv-lib-card:only-child .adv-lib-card__media {
		block-size: 100%;
		min-block-size: 16rem;
	}

	.adv-dept .adv-lib-barra__grid > .adv-lib-card:only-child .adv-lib-card__media img {
		block-size: 100%;
		object-fit: cover;
	}
}

/* Same for the agenda: one activity reads across the row. */
.adv-dept .adv-events-row__grid:has(> .adv-evcard-wrap:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.adv-dept .adv-events-row__grid:has(> .adv-evcard-wrap:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Wider cards, lower picture (or date block): never a 350 px date. */
.adv-dept .adv-events-row__grid:has(> .adv-evcard-wrap:nth-child(2):last-child) .adv-evcard__media {
	aspect-ratio: 5 / 2;
}

@media (min-width: 768px) {
	.adv-dept .adv-events-row__grid > .adv-evcard-wrap:only-child .adv-evcard {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}

	.adv-dept .adv-events-row__grid > .adv-evcard-wrap:only-child .adv-evcard__media {
		aspect-ratio: auto;
		block-size: 100%;
		max-block-size: 20rem;
		min-block-size: 12rem;
	}

	.adv-dept .adv-events-row__grid > .adv-evcard-wrap:only-child .adv-evcard__body {
		align-self: center;
	}
}

@media (max-width: 767px) {
	.adv-dept :is(.adv-lib-barra__grid:has(> .adv-lib-card:nth-child(2):last-child), .adv-events-row__grid:has(> .adv-evcard-wrap:nth-child(2):last-child)) {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* One pillar (a mission alone): its title beside it, at a reading measure. */
@media (min-width: 768px) {
	.adv-dept .adv-pillars__grid:has(> li:only-child) .adv-pillar {
		align-items: start;
		column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
		display: grid;
		grid-template-columns: auto minmax(0, 12rem) minmax(0, 1fr);
	}

	.adv-dept .adv-pillars__grid:has(> li:only-child) .adv-pillar > * {
		margin-block: 0;
	}

	.adv-dept .adv-pillars__grid:has(> li:only-child) .adv-pillar__text {
		max-inline-size: 44rem;
	}
}

/* ------------------------------------------------------------- news grid */

/* One item: one wide card, the picture beside the words. Two: two columns.
   Three or more: the widget's own columns. (Titles keep their source's
   capitals: no safe way to soften them with text-transform.) */
.adv-dept-news .adv-posts.adv-posts--cards:has(> .adv-post-card:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.adv-dept-news .adv-posts.adv-posts--cards:has(> .adv-post-card:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.adv-dept-news .adv-posts--cards > .adv-post-card:only-child {
		align-items: stretch;
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}

	.adv-dept-news .adv-posts--cards > .adv-post-card:only-child .adv-post-card__media {
		aspect-ratio: auto;
		block-size: 100%;
		min-block-size: 18rem;
	}

	.adv-dept-news .adv-posts--cards > .adv-post-card:only-child .adv-post-card__body {
		align-self: center;
		padding: clamp(1.5rem, 1rem + 2vw, 3rem);
	}
}

@media (max-width: 767px) {
	.adv-dept-news .adv-posts.adv-posts--cards:has(> .adv-post-card:nth-child(2):last-child) {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Tablets, three items in two columns: the third reads across the row
   instead of standing alone beside an empty cell. */
@media (min-width: 768px) and (max-width: 1024px) {
	.adv-dept :is(.adv-posts.adv-posts--cards, .adv-lib-barra__grid, .adv-events-row__grid):has(> :nth-child(3):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.adv-dept :is(.adv-posts--cards, .adv-lib-barra__grid, .adv-events-row__grid) > :nth-child(3):last-child {
		grid-column: 1 / -1;
	}

	.adv-dept .adv-posts--cards > .adv-post-card:nth-child(3):last-child,
	.adv-dept .adv-lib-barra__grid > .adv-lib-card:nth-child(3):last-child,
	.adv-dept .adv-events-row__grid > .adv-evcard-wrap:nth-child(3):last-child .adv-evcard {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.adv-dept .adv-posts--cards > .adv-post-card:nth-child(3):last-child .adv-post-card__media,
	.adv-dept .adv-lib-barra__grid > .adv-lib-card:nth-child(3):last-child .adv-lib-card__media,
	.adv-dept .adv-events-row__grid > .adv-evcard-wrap:nth-child(3):last-child .adv-evcard__media {
		aspect-ratio: auto;
		block-size: 100%;
		min-block-size: 12rem;
	}

	.adv-dept .adv-lib-barra__grid > .adv-lib-card:nth-child(3):last-child .adv-lib-card__media img {
		block-size: 100%;
		object-fit: cover;
	}
}

/* --------------------------------------------- phones: rows that slide */

/* Two or more resources, activities or news on a phone: one row that slides
   sideways (the next card peeks in), as the team's portraits do, instead of
   a column of six cards. No scrollbar is drawn; the row scrolls by touch, by
   trackpad and by keyboard (the cards' links take the focus along). */
@media (max-width: 767px) {
	.adv-dept :is(.adv-lib-barra__grid, .adv-events-row__grid, .adv-posts.adv-posts--cards):has(> :nth-child(2)) {
		display: flex;
		gap: 1rem;
		margin-inline: -1rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 0.25rem 1rem 0.75rem;
		scroll-padding-inline: 1rem;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.adv-dept :is(.adv-lib-barra__grid, .adv-events-row__grid, .adv-posts.adv-posts--cards):has(> :nth-child(2))::-webkit-scrollbar {
		display: none;
	}

	.adv-dept :is(.adv-lib-barra__grid, .adv-events-row__grid, .adv-posts.adv-posts--cards):has(> :nth-child(2)) > * {
		flex: 0 0 min(84%, 20rem);
		scroll-snap-align: start;
	}
}

/* ----------------------------------------------------------------- close */

.adv-dir.adv-mcontact .adv-mcontact__panel {
	align-items: end;
	border: 1px solid var(--adv-dir-line);
	border-radius: var(--adv-ed-radius, 1rem);
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	grid-template-columns: minmax(0, 1fr) auto;
	padding: clamp(1.75rem, 1rem + 3.2vw, 4rem);
}

.adv-dir.adv-mcontact .adv-mcontact__kicker.adv-mcontact__kicker {
	margin: 0 0 0.875rem;
}

.adv-dir.adv-mcontact .adv-mcontact__title.adv-mcontact__title {
	color: var(--adv-dir-ink);
	font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3.125rem);
	font-style: normal;
	font-weight: var(--adv-dir-heading-weight);
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin: 0;
	max-inline-size: 24ch;
	text-transform: none;
	text-wrap: balance;
}

.adv-dir.adv-mcontact .adv-mcontact__lead.adv-mcontact__lead {
	color: var(--adv-dir-muted);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	margin: 0.875rem 0 0;
	max-inline-size: 40rem;
}

.adv-dir.adv-mcontact .adv-mcontact__details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin-block-start: 1.25rem;
}

.adv-dir.adv-mcontact .adv-mcontact__details li {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	min-block-size: 2.75rem;
}

.adv-dir.adv-mcontact .adv-mcontact__details a {
	color: var(--adv-dir-ink);
	font-weight: 600;
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-decoration-color: var(--adv-dir-line);
	text-underline-offset: 0.2em;
}

.adv-dir.adv-mcontact .adv-mcontact__icon {
	color: var(--adv-dir-accent);
	display: inline-flex;
	flex: 0 0 auto;
	inline-size: 1.25rem;
}

.adv-dir.adv-mcontact .adv-mcontact__icon .adv-dir__icon {
	block-size: 1.25rem;
	inline-size: 1.25rem;
}

.adv-dir.adv-mcontact .adv-mcontact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
}

/* Previous / next department. */
.adv-dir.adv-mcontact .adv-mcontact__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	margin-block-start: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
}

.adv-dir.adv-mcontact .adv-mcontact__near {
	color: var(--adv-dir-ink);
	display: grid;
	gap: 0.375rem;
	min-block-size: 2.75rem;
	text-decoration: none;
}

.adv-dir.adv-mcontact .adv-mcontact__near--next {
	justify-items: end;
	margin-inline-start: auto;
	text-align: end;
}

.adv-dir.adv-mcontact .adv-mcontact__dir {
	align-items: center;
	color: var(--adv-dir-muted);
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 600;
	gap: 0.375rem;
	letter-spacing: var(--adv-ed-tracking, 0.16em);
	text-transform: uppercase;
}

.adv-dir.adv-mcontact .adv-mcontact__near--next .adv-mcontact__dir {
	flex-direction: row-reverse;
}

.adv-dir.adv-mcontact .adv-mcontact__dir .adv-dir__icon {
	block-size: 1rem;
	inline-size: 1rem;
	transition: transform 0.2s ease;
}

.adv-dir.adv-mcontact .adv-mcontact__name {
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.25;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s ease;
}

.adv-dir.adv-mcontact .adv-mcontact__near:is(:hover, :focus-visible) .adv-mcontact__name {
	text-decoration-color: currentColor;
}

.adv-dir.adv-mcontact .adv-mcontact__near--prev:is(:hover, :focus-visible) .adv-dir__icon {
	transform: translateX(-3px);
}

.adv-dir.adv-mcontact .adv-mcontact__near--next:is(:hover, :focus-visible) .adv-dir__icon {
	transform: translateX(3px);
}

.adv-dir.adv-mcontact .adv-mcontact__near:focus-visible {
	outline: 2px solid var(--adv-ed-ring, currentColor);
	outline-offset: 4px;
}

@container (max-width: 60rem) {
	.adv-dir.adv-mcontact .adv-mcontact__panel {
		align-items: start;
		grid-template-columns: minmax(0, 1fr);
	}

	.adv-dir.adv-mcontact .adv-mcontact__actions {
		justify-content: flex-start;
	}

}

@container (max-width: 30rem) {
	.adv-dir.adv-mcontact .adv-mcontact__actions .adv-mcontact__btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adv-dir.adv-mcontact :is(.adv-mcontact__name, .adv-mcontact__dir .adv-dir__icon) {
		transition: none;
	}

	.adv-dir.adv-mcontact .adv-mcontact__near:is(:hover, :focus-visible) .adv-dir__icon {
		transform: none;
	}
}

/* ------------------------------------------------------- editorial voice */

/* The neutral pack speaks in the display serif (as directory.css does for
   the section titles and the hero's h1); the ALPS pack keeps the kit. */
:is(.adv-ed--neutral, .adv-editorial, body.adv-lite) .adv-dir .adv-mabout__name.adv-mabout__name,
:is(.adv-ed--neutral, .adv-editorial, body.adv-lite) .adv-dir .adv-mcontact__title.adv-mcontact__title,
:is(.adv-ed--neutral, .adv-editorial, body.adv-lite) .adv-dir .adv-mcontact__name {
	font-family: var(--adv-ed-serif, var(--adv-font-display, serif));
	font-weight: 400;
	letter-spacing: -0.015em;
}
