/**
 * MAS Core - breadcrumb trail.
 *
 * Design spec (design/README.md, 1d Article): 13px, slash-separated, muted,
 * above the H1. Links stay muted and pick up the accent on hover; the current
 * item is ink and not a link. Colours come from mas-tokens.css.
 *
 * The trail is one line. When it is too long (a long post title on a phone),
 * the end of the current item is cut with an ellipsis; the links before it
 * always show in full.
 */

.mas-breadcrumbs {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mas-muted);
}

.mas-breadcrumbs p {
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/*
 * Boxed single views (functions, plays, models): the article box pads its
 * title by Kadence's boxed padding, and the box is the same colour as the
 * page, so line the trail up with the title rather than the box edge.
 */
.content-style-boxed.single .mas-breadcrumbs,
.content-style-boxed.page .mas-breadcrumbs {
	position: relative;
	z-index: 1;
	padding-inline: var(--global-content-boxed-padding, 2rem);
	/* The box's top padding would add to the gap; keep it 16px like unboxed views. */
	margin-bottom: calc(16px - var(--global-content-boxed-padding, 2rem));
}

/* Below 720px Kadence pulls the box 1rem past the container on each side. */
@media screen and (max-width: 719px) {
	.content-style-boxed.single .mas-breadcrumbs,
	.content-style-boxed.page .mas-breadcrumbs {
		padding-inline: calc(var(--global-content-boxed-padding, 1.5rem) - 1rem);
	}
}

.mas-breadcrumbs a {
	color: var(--mas-muted);
	text-decoration: none;
}

.mas-breadcrumbs a:hover,
.mas-breadcrumbs a:focus-visible {
	color: var(--mas-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mas-breadcrumbs .separator {
	margin: 0 0.15em;
	color: var(--mas-faint);
}

.mas-breadcrumbs .last {
	color: var(--mas-ink);
}
