/* The Halal Food directory taxonomy intro banner */
.thf-tax-hero {
	--thf-green: #00b873;
	--thf-green-deep: #007f50;
	--thf-ink: #191919;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(175px, 1fr);
	width: 100%;
	height: 336px;
	margin: 0 0 18px;
	overflow: hidden;
	color: var(--thf-ink);
	background: white;
	border-radius: 15px;
	box-shadow: 0 10px 38px rgba(30, 30, 30, .08);
	direction: ltr;
	isolation: isolate;
}

.thf-tax-hero__content {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 0;
	padding: 20px 25px 15px 20px;
	flex-direction: column;
	direction: rtl;
	text-align: right;
}

.thf-tax-hero__eyebrow {
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: var(--thf-green-deep) !important;
	font-size: 11px !important;
	font-weight: 800;
	line-height: 1.45 !important;
	letter-spacing: .2px;
}

.thf-tax-hero__title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #151515 !important;
	font-size: clamp(23px, 2.5vw, 31px) !important;
	font-weight: 800 !important;
	line-height: 1.22 !important;
}

.thf-tax-hero__description {
	position: relative;
	min-height: 0;
	flex: 1 1 auto;
	overflow-y: auto;
	padding-left: 11px;
	color: #333733;
	font-size: 13px;
	line-height: 1.8;
	overscroll-behavior: contain;
	scrollbar-color: #8c8c8c #ffffff;
	scrollbar-width: thin;
}

.thf-tax-hero__description {
	padding-bottom: 24px;
}

.thf-tax-hero__description::-webkit-scrollbar {
	width: 6px;
}

.thf-tax-hero__description::-webkit-scrollbar-track {
	background: #e8f7f1;
	border-radius: 99px;
}

.thf-tax-hero__description::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--thf-green), var(--thf-green-deep));
	border-radius: 99px;
}

.thf-tax-hero__description h2,
.thf-tax-hero__description h3,
.thf-tax-hero__description h4 {
	margin: 14px 0 6px !important;
	padding: 0 !important;
	color: #171917 !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
}

.thf-tax-hero__description h2 {
	font-size: 18px !important;
}

.thf-tax-hero__description h3,
.thf-tax-hero__description h4 {
	font-size: 16px !important;
}

.thf-tax-hero__description p,
.thf-tax-hero__description li {
	color: #333733 !important;
	font-size: 13px !important;
	line-height: 1.8 !important;
}

.thf-tax-hero__description p {
	margin: 0 0 8px !important;
	padding: 0 !important;
}

.thf-tax-hero__description ul,
.thf-tax-hero__description ol {
	margin: 5px 21px 11px 0 !important;
	padding: 0 !important;
}

.thf-tax-hero__description a {
	color: #007f50 !important;
	/* font-weight: 700; */
	text-decoration: underline;
	text-decoration-color: rgb(96 96 96 / 35%);
	text-underline-offset: 3px;
}

.thf-tax-hero__scroll-cue {
	position: relative;
	z-index: 3;
	display: inline-flex;
	width: 29px;
	height: 22px;
	align-items: center;
	justify-content: center;
	align-self: center;
	flex: 0 0 22px;
	margin: -24px 0 2px;
	padding: 0;
	color: #007f50;
	background: rgba(255, 250, 233, .96);
	border: 1px solid #e5bd4f;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(94, 72, 15, .16);
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.thf-tax-hero__scroll-cue:hover,
.thf-tax-hero__scroll-cue:focus-visible {
	background: #e4f8f0;
	transform: translateY(2px);
}

.thf-tax-hero__scroll-cue:focus-visible {
	outline: 2px solid #008e5a;
	outline-offset: 2px;
}

.thf-tax-hero__scroll-cue.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(6px);
}

.thf-tax-hero__scroll-cue svg {
	width: 14px;
	height: 14px;
}

.thf-tax-hero__filter-slot {
	padding-top: 10px;
	position: relative;
	z-index: 4;
	flex: 0 0 auto;
	min-height: 0;
	border-top: 1px solid #cdcdcd;
	margin-top: 15px;
}

.thf-tax-hero__filter-slot:empty {
	display: none;
}

.thf-tax-hero .archive-filter-form {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 5px 0 0 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	flex-wrap: wrap !important;
}

.thf-archive-filter__city {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.thf-tax-hero .archive-filter-form label,
.thf-archive-subcategories__label {
	flex: 0 0 auto;
	margin: 0 !important;
	font-size: 12px;
	font-weight: 800;
}

.thf-tax-hero .archive-filter-form select {
	width: initial;
	min-width: 0 !important;
	height: 32px;
	padding: 3px 9px !important;
	color: #242624;
	background: #fff !important;
	border-radius: 7px !important;
	font-size: 12px;
}

.thf-archive-subcategories {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.thf-archive-subcategories__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}

.thf-archive-subcategories__links a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 9px;
	border: 1px solid #4b4b4b;
	border-radius: 999px;
	color: #e9e9e9 !important;
	background: #202020;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.thf-archive-subcategories__links a:hover,
.thf-archive-subcategories__links a:focus-visible,
.thf-archive-subcategories__links a.is-current {
	border-color: #38d99d;
	color: #08140f !important;
	background: #38d99d;
	transform: translateY(-1px);
	outline: none;
}

.thf-tax-hero__media {
	position: relative;
	min-width: 0;
	height: 336px;
	margin: 0 !important;
	overflow: hidden;
	background: #f0eee8;
	direction: rtl;
}

.thf-tax-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(25, 28, 25, .18), transparent 42%),
		linear-gradient(0deg, rgba(8, 10, 8, .32), transparent 38%);
	pointer-events: none;
}

.thf-tax-hero__image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	object-position: center;
}

.thf-tax-hero__image-fallback {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: rgba(0, 127, 80, .48);
	background:
		radial-gradient(circle at 50% 30%, rgba(0, 184, 115, .15), transparent 46%),
		#fffaf0;
}

.thf-tax-hero__image-fallback svg {
	width: 74px;
	height: 74px;
}

.thf-tax-hero__media figcaption {
	position: absolute;
	right: 13px;
	bottom: 12px;
	z-index: 2;
	max-width: calc(100% - 26px);
	padding: 6px 9px;
	overflow: hidden;
	color: #fff;
	background: rgba(20, 22, 20, .68);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	backdrop-filter: blur(7px);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 980px) {
	.thf-tax-hero {
		grid-template-columns: minmax(0, 1.7fr) minmax(175px, 1fr);
	}
	.thf-tax-hero__content {
		padding-right: 21px;
		padding-left: 25px;
	}
}

@media (max-width: 767px) {
	.thf-tax-hero {
		display: flex;
		height: auto;
		flex-direction: row;
		border-radius: 14px;
		margin: 0 0 5px;
	}
	.thf-tax-hero::before {
		inset: 0 0 auto;
		width: 100%;
		height: 4px;
	}
	.thf-tax-hero__media {
		width: 100%;
		height: auto;
		flex: 0 0 32vw;
	}
	.thf-tax-hero__content {
		height: 210px;
		min-height: 220px;
		max-height: 300px;
		padding: 16px 18px 9px;
	}
	.thf-tax-hero--short .thf-tax-hero__content {
		height: auto;
		min-height: 225px;
		max-height: none;
	}
	.thf-tax-hero__title {
		font-size: 24px !important;
	}
	.thf-tax-hero__description,
	.thf-tax-hero__description p,
	.thf-tax-hero__description li {
		font-size: 12px !important;
		line-height: 1.4 !important;
	}
	p#breadcrumbs * {
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thf-tax-hero__scroll-cue {
		transition: none;
	}
}



/* THF dark three-panel archive intro: image | text | map */
.thf-tax-hero {
	grid-template-columns: minmax(155px, 24%) minmax(280px, 42%) minmax(230px, 34%);
	grid-template-areas: "media content map";
	height: 350px;
	color: #f5f5f5;
	background: #202020;
	border: 1px solid #353535;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
	direction: ltr;
}
.thf-tax-hero__media {
	grid-area: media;
	height: 350px;
	background-color: #181818;
	border-right: 1px solid #353535;
	direction: ltr;
}
.thf-tax-hero__content {
	grid-area: content;
	padding: 20px 22px 15px;
	direction: ltr;
	text-align: left;
	background: #242424;
	border-right: 1px solid #353535;
}
.thf-tax-hero__description {
	padding-right: 10px;
	padding-left: 0;
	color: #d6d6d6;
	text-align: left;
	direction: ltr;
	scrollbar-color: var(--thf-green) #171717;
}
.thf-tax-hero__title,
.thf-tax-hero__description h2,
.thf-tax-hero__description h3,
.thf-tax-hero__description h4 {
	color: #ffffff !important;
	text-align: left !important;
}
.thf-tax-hero__description p,
.thf-tax-hero__description li {
	color: #d6d6d6 !important;
	text-align: left !important;
}
.thf-tax-hero__description ul,
.thf-tax-hero__description ol {
	margin-right: 0 !important;
	margin-left: 20px !important;
}
.thf-tax-hero__description a,
.thf-tax-hero #breadcrumbs a {
	color: #38d99d !important;
}
.thf-tax-hero__description::-webkit-scrollbar-track {
	background: #171717;
}
.thf-tax-hero__filter-slot {
	border-top-color: #414141;
}
.thf-tax-hero .archive-filter-form label {
	color: #f1f1f1;
}
.thf-tax-hero .archive-filter-form select {
	color: #f2f2f2;
	background: #181818 !important;
	border: 1px solid #444 !important;
}
.thf-tax-hero__map {
	grid-area: map;
	min-width: 0;
	height: 350px;
	background: #181818;
}
.thf-tax-hero__map .thf-location-map {
	width: 100% !important;
	height: 350px !important;
	min-height: 350px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}
@media (max-width: 980px) {
	.thf-tax-hero {
		display: grid;
		grid-template-columns: minmax(180px, 34%) minmax(0, 66%);
		grid-template-areas:
			"media content"
			"map map";
		height: auto;
	}
	.thf-tax-hero__media,
	.thf-tax-hero__content {
		height: 320px;
	}
	.thf-tax-hero__map,
	.thf-tax-hero__map .thf-location-map {
		height: 300px !important;
		min-height: 300px !important;
	}
}
@media (max-width: 767px) {
	.thf-tax-hero {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"content"
			"map";
		margin-bottom: 18px;
	}
	.thf-tax-hero__media {
		width: 100%;
		height: 210px;
		flex: none;
		border-right: 0;
		border-bottom: 1px solid #353535;
	}
	.thf-tax-hero__content,
	.thf-tax-hero--short .thf-tax-hero__content {
		height: 300px;
		min-height: 300px;
		max-height: 300px;
		padding: 18px 18px 12px;
		border-right: 0;
		border-bottom: 1px solid #353535;
	}
	.thf-tax-hero__map,
	.thf-tax-hero__map .thf-location-map {
		width: 100% !important;
		height: 300px !important;
		min-height: 300px !important;
	}
}
