.kf-eca {
	--kf-eca-indigo: #5f61ff;
	--kf-eca-deep: #2d2f8f;
	--kf-eca-ink: #1a1825;
	--kf-eca-frost: #e2e2e8;
	--kf-eca-offset: calc(var(--header-nav-bar-height, 80px) + 40px);
	--kf-eca-bar-h: 44px;
	width: 100%;
	color: var(--kf-eca-ink);
}

.kf-eca *,
.kf-eca *::before,
.kf-eca *::after {
	box-sizing: border-box;
}

.kf-eca__bar {
	position: sticky;
	top: var(--kf-eca-offset);
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 8px 0;
}

.kf-eca__bar::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	z-index: -1;
	width: calc(100vw - var(--kf-eca-sbw, 0px));
	transform: translateX(-50%);
	box-shadow: 0px 4px 20px 0px #0000000D;
	background-color: var(--kf-eca-bar-bg, #fff);
	background-image: var(--kf-eca-bar-image, none);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.kf-eca__bar.is-stuck::before {
	opacity: 1;
}

.kf-eca.is-editor .kf-eca__bar {
	position: static;
}

.kf-eca__search {
	position: relative;
	flex: 0 0 220px;
	display: flex;
	align-items: center;
	height: 44px;
	border-radius: 80px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
	backdrop-filter: blur(20px);
	transition: box-shadow 0.3s ease, flex-basis 0.3s ease;
}

.kf-eca__search:focus-within {
	box-shadow: 0 4px 20px rgba(95, 97, 255, 0.25), 0 0 0 2px var(--kf-eca-indigo);
}

.kf-eca__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 48px 0 15px;
	border: 0;
	border-radius: 80px;
	background: transparent;
	color: var(--kf-eca-ink);
	font-size: 14px;
	line-height: 1.5;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}

.kf-eca__input::placeholder {
	color: var(--kf-eca-ink);
	opacity: 1;
}

.kf-eca__input::-webkit-search-cancel-button,
.kf-eca__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.kf-eca__submit {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--kf-eca-ink);
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.kf-eca__submit:hover,
.kf-eca__search:focus-within .kf-eca__submit {
	color: var(--kf-eca-indigo);
}

.kf-eca__letters {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.kf-eca__letters::-webkit-scrollbar {
	display: none;
}

.kf-eca__letter {
	position: relative;
	flex: 1 0 28px;
	max-width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 49px;
	color: var(--kf-eca-ink);
	font-size: var(--wp--preset--font-size--x-20, 20px);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: color 0.25s ease;
}

.kf-eca__letter::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 30px;
	height: 4.5px;
	border: 1px solid var(--kf-eca-indigo);
	border-top: 0;
	border-left: 0;
	transform: translateX(-50%) scaleX(0);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

a.kf-eca__letter:hover,
a.kf-eca__letter:focus-visible,
.kf-eca__letter.is-active {
	color: var(--kf-eca-indigo);
}

.kf-eca__letter.is-active::after {
	transform: translateX(-50%) scaleX(1);
}

.kf-eca__letter.is-empty {
	opacity: 0.3;
	pointer-events: none;
}

.kf-eca__status {
	display: inline-block;
	margin: 40px 0 0;
	padding: 12px 20px;
	border-radius: 49px;
	background: var(--kf-eca-frost);
	backdrop-filter: blur(4px);
	color: var(--kf-eca-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.kf-eca__status[hidden],
.kf-eca__tags[hidden] {
	display: none;
}

.kf-eca__tags {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	margin: 40px 0 0;
	padding-bottom: 6px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.kf-eca__tags::-webkit-scrollbar {
	display: none;
}

.kf-eca__tags--wrap {
	flex-wrap: wrap;
	padding-bottom: 0;
	overflow: visible;
}

.kf-eca__tag {
	appearance: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 49px;
	background: var(--kf-eca-frost);
	color: var(--kf-eca-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.kf-eca__tag:hover,
.kf-eca__tag:focus-visible {
	background: #d3d3ff;
}

.kf-eca__tag.is-active {
	background: var(--kf-eca-indigo);
	color: #fff;
}

.kf-eca__results {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-top: 40px;
	transition: opacity 0.2s ease;
}

.kf-eca.is-loading .kf-eca__results {
	opacity: 0.45;
}

.kf-eca__section {
	scroll-margin-top: calc(var(--kf-eca-offset) + var(--kf-eca-bar-h) + 32px);
}

.kf-eca__section-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.kf-eca__chip {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 55px;
	margin: 0;
	padding: 5px 15px;
	border-radius: 63px;
	background: var(--kf-eca-deep);
	color: #fff;
	font-size: var(--wp--preset--font-size--x-24, 24px);
	font-weight: 500;
	line-height: 1.2;
	transition: background-color 0.35s ease;
}

.kf-eca__section.is-active .kf-eca__chip {
	background: var(--kf-eca-indigo);
}

.kf-eca__rule {
	flex: 1 1 auto;
	height: 1px;
	background: rgba(26, 24, 37, 0.25);
}

.kf-eca__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-eca__item {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-eca__item[hidden] {
	display: none;
}

.kf-eca__item.is-revealed {
	animation: kf-eca-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes kf-eca-reveal {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.kf-eca__card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	padding: 30px 35px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0);
	color: #191919;
	text-decoration: none;
	transition:
		background-color 0.4s ease,
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.kf-eca__card::before,
.kf-eca__card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

.kf-eca__card::before {
	padding: 1px;
	background: rgba(25, 25, 25, 0.15);
	transition: opacity 0.4s ease;
}

.kf-eca__card::after {
	padding: 2px;
	background: linear-gradient(150deg, rgba(95, 97, 255, 0) 30%, #5f61ff 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.kf-eca__card:hover,
.kf-eca__card:focus-visible {
	background-color: #fff;
	transform: translateY(-3px);
}

.kf-eca__card:hover::before,
.kf-eca__card:focus-visible::before {
	opacity: 0;
}

.kf-eca__card:hover::after,
.kf-eca__card:focus-visible::after {
	opacity: 1;
}

.kf-eca__card:focus-visible {
	outline: 2px solid var(--kf-eca-indigo);
	outline-offset: 3px;
}

.kf-eca__title {
	margin: 0;
	color: #191919;
	font-size: var(--wp--preset--font-size--x-24, 24px);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
	transition: color 0.3s ease;
}

.kf-eca__card:hover .kf-eca__title,
.kf-eca__card:focus-visible .kf-eca__title {
	color: var(--kf-eca-indigo);
}

.kf-eca__excerpt {
	display: -webkit-box;
	margin: -14px 0 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	color: var(--kf-eca-ink);
	font-size: 14px;
	line-height: 1.5;
}

.kf-eca__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	color: var(--kf-eca-indigo);
	font-size: var(--wp--preset--font-size--x-18, 18px);
	font-weight: 600;
	line-height: 1;
}

.kf-eca__more-arrow {
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.kf-eca__card:hover .kf-eca__more-arrow,
.kf-eca__card:focus-visible .kf-eca__more-arrow {
	transform: translateX(5px);
}

.kf-eca__more-wrap {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

.kf-eca__see-more {
	min-width: 178px;
	padding: 5px 15px;
	border: 1px solid var(--kf-eca-indigo);
	border-radius: 63px;
	background: transparent;
	color: var(--kf-eca-indigo);
	font-size: var(--wp--preset--font-size--x-20, 20px);
	line-height: 1.6;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.kf-eca__see-more:hover,
.kf-eca__see-more:focus-visible {
	background: var(--kf-eca-indigo);
	color: #fff;
}

.kf-eca__see-more:active {
	transform: scale(0.97);
}

@media (max-width: 1100px) {
	.kf-eca__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.kf-eca {
		--kf-eca-offset: calc(var(--header-nav-bar-height, 60px) + 10px);
	}

	.kf-eca__bar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.kf-eca__search {
		flex-basis: auto;
	}

	.kf-eca__letters {
		justify-content: flex-start;
	}

	.kf-eca__status {
		display: block;
		margin-top: 20px;
		text-align: center;
	}

	.kf-eca__tags,
	.kf-eca__tags--wrap {
		flex-wrap: nowrap;
		margin-top: 20px;
		padding-bottom: 6px;
		overflow-x: auto;
	}

	.kf-eca__results {
		margin-top: 30px;
	}

	.kf-eca__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.kf-eca__card {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 15px;
		border-radius: 8px;
	}

	.kf-eca__title {
		font-size: 16px;
		font-weight: 400;
		line-height: 1.4;
		letter-spacing: 0;
	}

	.kf-eca__excerpt {
		display: none;
	}

	.kf-eca__more {
		margin: 0;
	}

	.kf-eca__more-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.kf-eca__more-wrap {
		justify-content: stretch;
	}

	.kf-eca__see-more {
		width: 100%;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kf-eca *,
	.kf-eca *::before,
	.kf-eca *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
