/**
 * Kweli Category Strip
 * Front-end styles intentionally contain no external dependencies.
 */

.kcs-nav {
	--kcs-columns: 8;
	--kcs-mobile-item-width: 150px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 10px;
	overflow: hidden;
}

.kcs-nav *,
.kcs-nav *::before,
.kcs-nav *::after {
	box-sizing: border-box;
}

.kcs-list {
	display: grid;
	grid-template-columns: repeat(var(--kcs-columns), minmax(0, 1fr));
	width: 100%;
	margin: 0;
	padding: 8px;
	list-style: none;
}

.kcs-item {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.kcs-item-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 58px;
	gap: 5px;
	padding: 8px 6px;
	border-radius: 6px;
	color: #202124;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease;
}

a.kcs-item-content:hover,
a.kcs-item-content:focus-visible,
.kcs-item.is-current .kcs-item-content {
	background: #fbf5f8;
	color: #73003e;
	text-decoration: none;
}

a.kcs-item-content:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.kcs-label {
	display: block;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.kcs-visual {
	display: inline-flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	min-width: 0;
	overflow: hidden;
	color: #333;
}

.kcs-visual i,
.kcs-visual svg {
	display: block;
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
	font-size: 23px;
	fill: currentColor;
}

.kcs-image {
	display: block;
	width: 23px;
	height: 23px;
	max-width: none;
	object-fit: contain;
}

.kcs-layout-stacked .kcs-item-content {
	flex-direction: column;
	text-align: center;
}

.kcs-separators-yes .kcs-item:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 62%;
	background: #e7e7e7;
	content: "";
	transform: translateY(-50%);
	pointer-events: none;
}

[dir="rtl"] .kcs-separators-yes .kcs-item:not(:last-child)::after {
	right: auto;
	left: 0;
}

@media (max-width: 767px) {
	.kcs-mobile-layout-scroll .kcs-list {
		display: grid;
		grid-auto-columns: var(--kcs-mobile-item-width);
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.kcs-mobile-layout-scroll .kcs-list::-webkit-scrollbar {
		display: none;
	}

	.kcs-mobile-layout-scroll .kcs-item {
		scroll-snap-align: start;
	}

	.kcs-mobile-layout-wrap .kcs-list {
		grid-template-columns: repeat(var(--kcs-columns), minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.kcs-item-content {
		transition: none;
	}
}
