/* ==========================================================================
   Breadcrumbs — Figma node 52346:18923
   Tokens: Figtree Regular 14px / #505869 / gap 12px / py 16px
   ========================================================================== */

.breadcrumbs {
	background: var(--hdr-bg);
	border-bottom: 1px solid var(--nav-border);
}

/* ── List ── */

.breadcrumbs__list {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	list-style: none;
	margin: 0;
	/* Prevent wrapping; truncation handled by .breadcrumbs__current */
	flex-wrap: nowrap;
	overflow: hidden;
}

/* ── Items ── */

.breadcrumbs__item,
.breadcrumbs__sep {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Last item (current page) shrinks and truncates its text */
.breadcrumbs__item--current {
	flex-shrink: 1;
	min-width: 0;
}

/* ── Links ── */

.breadcrumbs__link {
	font-family: var(--font-figtree, 'Figtree', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: var(--nav-secondary);
	text-decoration: none;
	white-space: nowrap;
	transition: color 150ms ease;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible {
	color: var(--nav-dark);
	text-decoration: underline;
}

.breadcrumbs__link--home {
	display: flex;
	align-items: center;
	color: var(--nav-secondary);
	line-height: 1;
}

.breadcrumbs__link--home:hover,
.breadcrumbs__link--home:focus-visible {
	color: var(--nav-dark);
	text-decoration: none;
}

/* ── Separator ── */

.breadcrumbs__sep {
	color: var(--nav-secondary);
	opacity: 0.5;
	pointer-events: none;
}

/* ── Current page text (no link, ellipsis) ── */

.breadcrumbs__current {
	font-family: var(--font-figtree, 'Figtree', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: var(--nav-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 320px; /* prevents very long titles from eating the bar */
}

/* ── Responsive ── */

@media (max-width: 500px) {
	/* Show only 1st step (Home); hide 2nd, 3rd and the rest */
	.breadcrumbs__list .breadcrumbs__sep:nth-child(2),
	.breadcrumbs__list .breadcrumbs__sep:nth-child(3) {
		display: none !important;
	}
	.breadcrumbs__list .breadcrumbs__item:nth-child(2),
	.breadcrumbs__list .breadcrumbs__item:nth-child(3) {
		display: none !important;
	}
}

@media (max-width: 600px) {
	.breadcrumbs__current {
		max-width: 160px;
	}
}
