/**
 * The breadcrumb - the trail of where you are, above a page's own header.
 *
 * Figma: the library's "breadcrumb" component. Its instances:
 *   blog listing          node 2074:3519   "Blog"
 *   BS in Nursing         node 2266:2121   "Nursing Programs > Pre-licensure..."
 *   Request Information   node 2453:5505   "Request Info"
 *
 * Its own file because pages carry it as well as the blog, and the blog's
 * stylesheet is not loaded on pages. 16 either side at every width is the
 * component's own inset; the blog listing widens it to 64 from 1200 to line
 * up with its grid, in assets/css/blog.css.
 */

.pchs-breadcrumb {
	background-color: var(--wp--preset--color--white);
}

.pchs-breadcrumb__inner {
	display: flex;
	width: 100%;
	max-width: var(--wp--custom--breakpoint--max-page);
	align-items: center;
	gap: var(--wp--preset--spacing--8); /* 8px */
	margin-inline: auto;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16); /* 12/16 */
	color: var(--wp--preset--color--neutral-600);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs); /* 12px */
	line-height: 14px; /* 12 x 1.2, laid out on 14 */
	letter-spacing: var(--wp--custom--tracking--label); /* 0.02em */
}

.pchs-breadcrumb__step {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

/*
 * On a page, a step you can go back to is bold and dark blue; only the page
 * you are on is the grey regular. The BS in Nursing frame
 * (I2266:2121;6434:6336) is the page frame that draws a step between home
 * and here, and this is how it draws it.
 *
 * Pages only, for now. An article's trail was built against its own frames
 * with every step grey, and whether the two should agree is a question for
 * the design - see DESIGN-QUESTIONS.md.
 */
.pchs-breadcrumb--page a.pchs-breadcrumb__step {
	color: var(--wp--preset--color--blue-500);
	font-weight: 700;
}

.pchs-breadcrumb__step[href]:hover,
.pchs-breadcrumb__step[href]:focus-visible {
	text-decoration: underline;
}

/* The home icon is drawn in the dark blue even though the words beside it
   are grey - Figma node I2074:3519;6434:6328. */
.pchs-breadcrumb__home {
	color: var(--wp--preset--color--blue-500);
}

/* The separator: the same triangle the header uses, turned to point along
   the trail rather than down. */
.pchs-breadcrumb .pchs-triangle {
	flex: 0 0 8px;
	transform: rotate(-90deg);
}
