/**
 * Breadcrumbs, roster tabs and prev/next.
 *
 * Deliberately quiet. Navigation is scaffolding — it should be findable and
 * then ignored, not compete with the performer's name for the top of the page.
 * Colour comes from the tokens so this matches whatever surface it lands on.
 */

/* ─── Breadcrumbs ─────────────────────────────────────────────────────────── */

.mpr-crumbs {
	font-family: var(--mpr-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0 0 28px;
}

.mpr-crumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 6px;
}

.mpr-crumbs li {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--mpr-text-muted);
}

/* The separator is generated, so the markup stays a clean ordered list and
   screen readers do not read a chevron between every step. */
.mpr-crumbs li + li::before {
	content: "/";
	opacity: .45;
}

.mpr-crumbs a {
	color: var(--mpr-text-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.mpr-crumbs a:hover,
.mpr-crumbs a:focus-visible {
	color: #FFFFFF;
	border-bottom-color: var(--mpr-accent);
}

.mpr-crumbs [aria-current="page"] {
	color: #FFFFFF;
}

/* On an event the trail sits under the key art, at the head of the hero body,
   so it lines up with the title rather than floating in its own band. */
.mpr-event .mpr-crumbs {
	margin: 0 0 16px;
}

/* ─── Roster switcher ─────────────────────────────────────────────────────── */

.mpr-roster-switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 40px;
}

.mpr-roster-tab {
	font-family: var(--mpr-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mpr-text-muted);
	padding: 9px 18px;
	border: 1px solid var(--mpr-line);
	border-radius: 999px;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.mpr-roster-tab:hover,
.mpr-roster-tab:focus-visible {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, .5);
}

.mpr-roster-tab.is-active {
	color: #FFFFFF;
	background: var(--mpr-accent);
	border-color: var(--mpr-accent);
}

/* ─── Previous / next ─────────────────────────────────────────────────────── */

.mpr-profile-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	margin: 56px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--mpr-line);
	font-family: var(--mpr-font-body);
}

.mpr-profile-nav-link {
	display: block;
	text-decoration: none;
	color: var(--mpr-text);
	min-width: 0;
}

.mpr-profile-nav-next {
	text-align: right;
}

.mpr-profile-nav-dir {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mpr-text-muted);
	margin-bottom: 4px;
}

/* The neighbour's name is the useful part, so it gets the brand face — but at
   a size that reads as a link, not as a second title. */
.mpr-profile-nav-name {
	display: block;
	/* !important because the theme sets a link font on everything inside an
	   article, and the neighbour's name should read as a name. */
	font-family: var(--mpr-font-display) !important;
	font-size: 22px;
	line-height: 1.15;
	color: #FFFFFF;
	overflow-wrap: anywhere;
}

.mpr-profile-nav-link:hover .mpr-profile-nav-name,
.mpr-profile-nav-link:focus-visible .mpr-profile-nav-name {
	color: var(--mpr-accent);
}

.mpr-profile-nav-all {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mpr-text-muted);
	white-space: nowrap;
	padding: 8px 16px;
	border: 1px solid var(--mpr-line);
	border-radius: 999px;
}

.mpr-profile-nav-all:hover,
.mpr-profile-nav-all:focus-visible {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, .5);
}

@media (max-width: 640px) {
	.mpr-profile-nav {
		grid-template-columns: 1fr 1fr;
		row-gap: 24px;
	}

	/* "All Monsters" drops to its own full-width row rather than squeezing the
	   two names into thumbnails of themselves. */
	.mpr-profile-nav-all {
		grid-column: 1 / -1;
		order: 3;
		justify-self: center;
	}

	.mpr-profile-nav-name {
		font-size: 18px;
	}
}

/* ─── Phones ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.mpr-crumbs {
		font-size: 12px;
	}

	/* The last crumb is the page you are already on, and its name is printed
	   again as the headline directly beneath it. On a phone that costs a whole
	   wrapped line to say nothing, so the trail stops at the parent. */
	.mpr-crumbs li:has([aria-current="page"]) {
		display: none;
	}
}
