/**
 * QMQA breadcrumbs.
 *
 * Styled to match the small-caps "chip" eyebrow used across the site
 * (.gv-address-alt__label): Josefin Sans, uppercase, wide letter-spacing.
 * The global typography variable is used where available so the breadcrumb
 * tracks the brand kit, with a literal fallback if the kit CSS is absent.
 *
 * Markup comes from Rank Math:
 *   <nav class="rank-math-breadcrumb"><p>
 *     <a>Home</a><span class="separator"> &rsaquo; </span><span class="last">Page</span>
 *   </p></nav>
 *
 * Scoped to .qmqa-crumbs so the dark-hero colouring never leaks onto a
 * breadcrumb placed on a light section later.
 */

.qmqa-crumbs .rank-math-breadcrumb p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	position: relative;
	margin: 0 0 20px 0;
	padding: 0 0 0 32px;
	font-family: var( --e-global-typography-e48813f-font-family, "Josefin Sans" ), sans-serif;
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 1.6px;
}

/* Leading rule. The area-page heroes used to carry a small-caps eyebrow
   ("Essex - Chelmsford") whose ::before drew a 20px hairline; the breadcrumb
   has taken that slot, so it inherits the rule to keep the hero's shape. */
.qmqa-crumbs .rank-math-breadcrumb p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 20px;
	height: 1px;
	background: #efece5;
}

.qmqa-crumbs--dark .rank-math-breadcrumb p::before {
	background: #20363d;
}

/* The separator ships with literal spaces either side; the flex gap handles
   spacing, so collapse them to avoid a double gap. */
.qmqa-crumbs .rank-math-breadcrumb .separator {
	margin: 0;
	font-size: 0.95em;
	color: rgba( 239, 236, 229, 0.28 );
}

.qmqa-crumbs .rank-math-breadcrumb a {
	color: rgba( 239, 236, 229, 0.5 );
	text-decoration: none;
	transition: color 0.3s ease;
}

.qmqa-crumbs .rank-math-breadcrumb a:hover,
.qmqa-crumbs .rank-math-breadcrumb a:focus {
	color: #efece5;
}

.qmqa-crumbs .rank-math-breadcrumb .last {
	color: rgba( 239, 236, 229, 0.85 );
}

/* Light-section variant, for reuse outside the dark hero. */
.qmqa-crumbs--dark .rank-math-breadcrumb .separator {
	color: rgba( 32, 54, 61, 0.3 );
}

.qmqa-crumbs--dark .rank-math-breadcrumb a {
	color: rgba( 32, 54, 61, 0.55 );
}

.qmqa-crumbs--dark .rank-math-breadcrumb a:hover,
.qmqa-crumbs--dark .rank-math-breadcrumb a:focus {
	color: #20363d;
}

.qmqa-crumbs--dark .rank-math-breadcrumb .last {
	color: rgba( 32, 54, 61, 0.85 );
}

@media ( max-width: 767px ) {

	.qmqa-crumbs .rank-math-breadcrumb p::before {
		width: 16px;
	}

	.qmqa-crumbs .rank-math-breadcrumb p {
		gap: 7px;
		margin-bottom: 16px;
		padding-left: 25px;
		font-size: 0.66rem;
		letter-spacing: 1.2px;
	}
}
