/*
 * Block: section heading. Reference: relative flex, wrap, justify-between, gap 16px, mb-7 (28px).
 * A hairline runs across behind the title; the title and controls sit on a white (or tinted) patch.
 */

.kd-home .kd-head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: 28px;
}

.kd-home .kd-head::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	transform: translateY(-50%);
	background: #ebebeb;
	z-index: 0;
}

.kd-home .kd-head--line-gray::before {
	background: #e5e7eb;
}

.kd-home .kd-head--line-light::before {
	background: #e5e5e5;
}

.kd-home .kd-head--hide-line-sm::before {
	display: none;
}

@media (min-width: 640px) {
	.kd-home .kd-head--hide-line-sm::before {
		display: block;
	}
}

.kd-home .kd-head--hide-line-md::before {
	display: none;
}

@media (min-width: 768px) {
	.kd-home .kd-head--hide-line-md::before {
		display: block;
	}
}

.kd-home .kd-head__title {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding-inline-end: 16px;
	background: #ffffff;
	font-family: var(--kd-font-display);
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--kd-ink-deep);
}

@media (min-width: 640px) {
	.kd-home .kd-head__title {
		font-size: 22px;
	}
}

.kd-home .kd-head--tint .kd-head__title {
	background: var(--kd-tint);
}

.kd-home .kd-head__title strong {
	font-weight: 700;
}

.kd-home .kd-head__title span {
	font-weight: 400;
	color: #333333;
}

/* Medium size: mini lists */
.kd-home .kd-head--md {
	margin-block-end: 20px;
}

.kd-home .kd-head--md .kd-head__title {
	padding-inline-end: 12px;
	font-size: 17px;
}

.kd-home .kd-head--md .kd-pill--arrows {
	gap: 8px;
	padding: 4px 10px;
	font-size: 10px;
}

.kd-home .kd-head--md .kd-pill__btn svg {
	width: 12px;
	height: 12px;
}

/* Right-hand "view all" link */
.kd-home .kd-head__more {
	position: relative;
	z-index: 1;
	padding-inline-start: 8px;
	background: #ffffff;
	font-size: 12px;
	font-weight: 600;
	color: var(--kd-ink);
}

.kd-home .kd-head__more:hover {
	color: var(--kd-brand);
}

/* Tabs pill (new arrivals) */
.kd-home .kd-pill--tabs {
	position: relative;
	z-index: 1;
	gap: 12px;
	padding: 6px 20px;
	font-size: 13px;
	line-height: 20px;
	color: var(--kd-muted);
	box-shadow: var(--kd-shadow-pill);
	border-color: rgba(229, 231, 235, 0.9);
}

@media (min-width: 640px) {
	.kd-home .kd-pill--tabs {
		gap: 16px;
	}
}

.kd-home .kd-pill__sep {
	color: #d1d5db;
	user-select: none;
}

.kd-home .kd-tab {
	padding: 0;
	border: 0;
	background: none;
	font-weight: 400;
	color: var(--kd-muted);
	cursor: pointer;
	transition: color 0.2s var(--kd-ease);
}

.kd-home .kd-tab:hover {
	color: var(--kd-ink);
}

.kd-home .kd-tab.is-active {
	font-weight: 600;
	color: var(--kd-ink);
}

.kd-home .kd-head--arrivals .kd-pill--arrows {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-color: rgba(229, 231, 235, 0.9);
	box-shadow: var(--kd-shadow-pill);
}

/* Pill arrows sitting on the hairline (rows, categories) */
.kd-home .kd-head > .kd-pill--arrows {
	position: relative;
	z-index: 1;
	background: #ffffff;
}
