/* Vitanica Learn: topic filter and breadcrumbs. Card and page layout styles live in Bricks global classes (learn-*). */

.vtl-topics {
	width: 100%;
}

.vtl-topics__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vtl-topics__item {
	margin: 0;
	padding: 0;
}

.vtl-topics__pill {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border: 1.2px solid var(--sand-200, #e3ddcf);
	border-radius: 999px;
	background: var(--paper, #fdfbf6);
	color: var(--forest-700, #1f4d3e);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.62;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.vtl-topics__pill:hover {
	border-color: var(--forest-500, #2f6a56);
	color: var(--forest-700, #1f4d3e);
}

.vtl-topics__pill:focus-visible {
	outline: 2px solid var(--forest-500, #2f6a56);
	outline-offset: 2px;
}

.vtl-topics__pill.is-active {
	border-color: var(--forest-700, #1f4d3e);
	background: var(--forest-700, #1f4d3e);
	color: var(--cream, #f7f3ea);
}

/* Phones: one row that scrolls sideways instead of several wrapped rows. */
@media (max-width: 767px) {
	.vtl-topics {
		margin-inline: -20px;
		width: calc(100% + 40px);
	}

	.vtl-topics__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 2px 20px 6px;
		scroll-padding-inline: 20px;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.vtl-topics__list::-webkit-scrollbar {
		display: none;
	}

	.vtl-topics__item {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
}

.vtl-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.62;
	color: var(--muted, #67635b);
}

.vtl-crumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.vtl-crumbs__item + .vtl-crumbs__item::before {
	content: "/";
	color: var(--muted, #67635b);
	opacity: .7;
}

.vtl-crumbs__link {
	color: var(--muted, #67635b);
	text-decoration: none;
}

.vtl-crumbs__link:hover {
	color: var(--forest-700, #1f4d3e);
	text-decoration: underline;
}

.vtl-crumbs__current {
	color: var(--berry-600, #9e2a5c);
}

.vtl-crumbs--start .vtl-crumbs__list {
	justify-content: flex-start;
}
