.hltd,
.hltd * {
	box-sizing: border-box;
}

.hltd {
	--hltd-ink: #4b3022;
	--hltd-muted: #706052;
	--hltd-line: #e5d8bf;
	--hltd-accent: #4b3022;
	--hltd-accent-soft: #fbf8f1;
	--hltd-accent-line: #c6a15a;
	max-width: 100%;
	padding: clamp(.65rem, 2vw, 1.1rem);
	border-radius: 20px;
	background: #fbf8f1;
	color: inherit;
	font: inherit;
	line-height: 1.6;
}

.hltd [hidden] {
	display: none !important;
}

.hltd__header {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	align-items: center;
	gap: 1rem;
	min-height: 168px;
	margin: 0 0 1.25rem;
	padding: clamp(1.15rem, 3vw, 2rem);
	border: 1px solid #c6a15a;
	border-radius: 22px;
	background:
		radial-gradient(circle at 82% 48%, rgba(221, 180, 98, .2), transparent 22%),
		radial-gradient(circle at 8% 10%, rgba(255, 238, 202, .08), transparent 32%),
		linear-gradient(115deg, #3f281d 0%, #563921 54%, #72552e 100%);
	box-shadow: 0 14px 34px rgba(80, 49, 15, .2);
	overflow: hidden;
}

.hltd__header::before,
.hltd__header::after {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.hltd__header::before {
	top: -92px;
	right: -24px;
	width: 340px;
	height: 340px;
	border: 1px solid rgba(242, 214, 159, .16);
	background:
		repeating-conic-gradient(from -8deg, rgba(242, 214, 159, .18) 0deg 1deg, transparent 1deg 30deg),
		radial-gradient(circle, transparent 0 31%, rgba(242, 214, 159, .38) 31.3% 31.8%, transparent 32.1% 52%, rgba(242, 214, 159, .3) 52.4% 52.9%, transparent 53.2%);
	opacity: .58;
}

.hltd__header::after {
	bottom: -160px;
	left: 22%;
	width: 300px;
	height: 300px;
	background:
		radial-gradient(circle, rgba(243, 211, 151, .18) 0 1.5px, transparent 2px 25px),
		radial-gradient(circle, transparent 0 44%, rgba(243, 211, 151, .16) 44.3% 44.8%, transparent 45.2%),
		radial-gradient(circle, rgba(251, 225, 196, .2), rgba(251, 225, 196, 0) 70%);
}

.hltd__header-copy {
	min-width: 0;
}

.hltd__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin: 0 0 .55rem;
	color: #fbe1c4;
	font-size: .84rem;
	font-weight: 700;
	letter-spacing: .025em;
}

.hltd__eyebrow span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f3c969;
	box-shadow: 0 0 0 4px rgba(243, 201, 105, .25);
}

.hltd .hltd__header h2 {
	margin: 0 0 .45rem;
	color: #fff;
	font: inherit;
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	font-weight: 750;
	line-height: 1.3;
}

.hltd__description {
	max-width: 68ch;
	margin: 0;
	color: rgba(255, 255, 255, .9);
	font-size: .98rem;
}

.hltd__hero-art {
	display: block;
	width: min(100%, 168px);
	height: auto;
	justify-self: center;
	filter: drop-shadow(0 12px 20px rgba(43, 33, 24, .32));
	user-select: none;
}

.hltd__toolbar {
	margin: 1.1rem 0 .55rem;
}

.hltd__search {
	display: flex;
	align-items: center;
	gap: .6rem;
	width: min(100%, 560px);
	min-height: 48px;
	margin: 0 0 .85rem;
	padding: .4rem .9rem;
	border: 1px solid var(--hltd-line);
	border-radius: 14px;
	background: #fffefa;
	color: var(--hltd-ink);
	box-shadow: 0 3px 12px rgba(64, 56, 50, .045);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.hltd__search:focus-within {
	border-color: #c6a15a;
	box-shadow: 0 0 0 4px rgba(198, 161, 90, .2);
}

.hltd__search-icon {
	color: #4b3022;
	font-size: 1.45rem;
	line-height: 1;
}

.hltd__search input[type="search"] {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: .2rem 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
}

.hltd__search input[type="search"]::placeholder {
	color: #7b6a58;
	opacity: 1;
}

.hltd__filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.hltd__filter {
	--hltd-filter-accent: #4b3022;
	--hltd-filter-soft: #fbf8f1;
	--hltd-filter-line: #c6a15a;
	min-height: 38px;
	padding: .38rem .82rem;
	border: 1px solid #e5d8bf;
	border-radius: 999px;
	background: #fffefa;
	color: #4b3022;
	font: inherit;
	font-size: .9rem;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hltd__filter[data-category-filter="birth"] {
	--hltd-filter-accent: #825109;
	--hltd-filter-soft: #f7ebd5;
	--hltd-filter-line: #e7d4b0;
}

.hltd__filter[data-category-filter="numbers"] {
	--hltd-filter-accent: #8f421a;
	--hltd-filter-soft: #f8e7dc;
	--hltd-filter-line: #e8c3ac;
}

.hltd__filter[data-category-filter="dreams"] {
	--hltd-filter-accent: #684274;
	--hltd-filter-soft: #f1e9f4;
	--hltd-filter-line: #d9c8e0;
}

.hltd__filter[data-category-filter="lottery"] {
	--hltd-filter-accent: #874308;
	--hltd-filter-soft: #f9eadb;
	--hltd-filter-line: #e9c9a2;
}

.hltd__filter[data-category-filter="calendar"] {
	--hltd-filter-accent: #685036;
	--hltd-filter-soft: #f4ede2;
	--hltd-filter-line: #ded0b9;
}

.hltd__filter[data-category-filter="auspicious"] {
	--hltd-filter-accent: #743939;
	--hltd-filter-soft: #f7eae7;
	--hltd-filter-line: #e7c5bf;
}

.hltd__filter[data-category-filter="other"] {
	--hltd-filter-accent: #51423a;
	--hltd-filter-soft: #f1ece7;
	--hltd-filter-line: #d8cac0;
}

.hltd__filter:not([data-category-filter="all"]) {
	border-color: var(--hltd-filter-line);
	background: var(--hltd-filter-soft);
	color: var(--hltd-filter-accent);
}

.hltd__filter:hover {
	border-color: var(--hltd-filter-line);
	background: var(--hltd-filter-soft);
	color: var(--hltd-filter-accent);
	transform: translateY(-1px);
}

.hltd__filter.is-active {
	border-color: var(--hltd-filter-accent);
	background: var(--hltd-filter-accent);
	color: #fff;
	box-shadow: 0 5px 13px rgba(140, 90, 10, .2);
}

.hltd__filter:focus-visible,
.hltd__card-action:focus-visible,
.hltd__back:focus-visible {
	outline: 3px solid rgba(140, 90, 10, .28);
	outline-offset: 3px;
}

.hltd__result-count {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin: .65rem 0 .85rem;
	padding: .32rem .72rem;
	border: 1px solid #c6a15a;
	border-radius: 999px;
	background: #fffefa;
	color: #4b3022;
	font-size: .86rem;
	font-weight: 650;
}

.hltd__groups {
	display: grid;
	gap: .9rem;
}

.hltd__group {
	--hltd-accent: #4b3022;
	--hltd-accent-2: #806439;
	--hltd-accent-soft: #fbf8f1;
	--hltd-accent-line: #c6a15a;
	min-width: 0;
	border: 1px solid var(--hltd-accent-line);
	border-radius: 18px;
	background: #fffefa;
	box-shadow: 0 7px 24px rgba(64, 56, 50, .06);
	overflow: hidden;
	transition: box-shadow .18s ease, border-color .18s ease;
}

.hltd__group[data-category-group="birth"] {
	--hltd-accent: #825109;
	--hltd-accent-2: #94600d;
	--hltd-accent-soft: #f7ebd5;
	--hltd-accent-line: #e7d4b0;
}

.hltd__group[data-category-group="numbers"] {
	--hltd-accent: #8f421a;
	--hltd-accent-2: #a94b18;
	--hltd-accent-soft: #f8e7dc;
	--hltd-accent-line: #e8c3ac;
}

.hltd__group[data-category-group="dreams"] {
	--hltd-accent: #684274;
	--hltd-accent-2: #845995;
	--hltd-accent-soft: #f1e9f4;
	--hltd-accent-line: #d9c8e0;
}

.hltd__group[data-category-group="lottery"] {
	--hltd-accent: #874308;
	--hltd-accent-2: #ae5b18;
	--hltd-accent-soft: #f9eadb;
	--hltd-accent-line: #e9c9a2;
}

.hltd__group[data-category-group="calendar"] {
	--hltd-accent: #685036;
	--hltd-accent-2: #8a6b3f;
	--hltd-accent-soft: #f4ede2;
	--hltd-accent-line: #ded0b9;
}

.hltd__group[data-category-group="auspicious"] {
	--hltd-accent: #743939;
	--hltd-accent-2: #98534e;
	--hltd-accent-soft: #f7eae7;
	--hltd-accent-line: #e7c5bf;
}

.hltd__group[data-category-group="other"] {
	--hltd-accent: #51423a;
	--hltd-accent-2: #786255;
	--hltd-accent-soft: #f1ece7;
	--hltd-accent-line: #d8cac0;
}

.hltd__group:hover {
	box-shadow: 0 10px 29px rgba(64, 56, 50, .09);
}

.hltd__group-summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: .7rem;
	min-height: 68px;
	padding: .85rem 1.05rem;
	color: #fff;
	list-style: none;
	cursor: pointer;
}

.hltd__group-summary::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(100deg, var(--hltd-accent), var(--hltd-accent-2));
	content: "";
	opacity: 1;
	transition: opacity .18s ease;
}

.hltd__group-summary:hover::before,
.hltd__group[open] .hltd__group-summary::before {
	opacity: 1;
}

.hltd__group-summary::-webkit-details-marker {
	display: none;
}

.hltd__group-summary::marker {
	content: "";
}

.hltd__group-icon,
.hltd__group-title,
.hltd__group-count,
.hltd__chevron {
	position: relative;
	z-index: 1;
}

.hltd__group-icon {
	display: inline-flex;
	flex: 0 0 39px;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 39px;
	border: 1px solid rgba(255, 255, 255, .52);
	border-radius: 13px;
	background: rgba(255, 255, 255, .17);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(43, 33, 24, .15);
}

.hltd__group-title {
	min-width: 0;
	color: #fff;
	font-size: 1.03rem;
	font-weight: 750;
}

.hltd__group-count {
	margin-inline-start: auto;
	padding: .25rem .62rem;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: .82rem;
	font-weight: 650;
	white-space: nowrap;
}

.hltd__chevron {
	display: inline-flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-inline-start: .2rem;
	border: 1px solid rgba(255, 255, 255, .58);
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 3px 8px rgba(43, 33, 24, .18);
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hltd__group-summary:hover .hltd__chevron {
	background: rgba(255, 255, 255, .26);
	box-shadow: 0 4px 10px rgba(43, 33, 24, .24);
}

.hltd__group[open] .hltd__chevron {
	transform: rotate(180deg);
}

.hltd__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .8rem;
	padding: .9rem;
}

.hltd__card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 292px;
	flex-direction: column;
	justify-content: space-between;
	gap: 0;
	padding: 0;
	border: 1px solid var(--hltd-accent-line);
	border-radius: 15px;
	background: linear-gradient(145deg, #fffefa 0%, var(--hltd-accent-soft) 125%);
	color: inherit;
	box-shadow: 0 3px 10px rgba(64, 56, 50, .035);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hltd__card::before {
	position: absolute;
	top: 0;
	left: 1rem;
	width: 58px;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: var(--hltd-accent);
	content: "";
}

.hltd__card:hover {
	border-color: var(--hltd-accent);
	box-shadow: 0 10px 22px rgba(64, 56, 50, .1);
	transform: translateY(-2px);
}

.hltd__card-copy {
	min-width: 0;
	padding: .72rem 1rem 0;
}

.hltd img.hltd__card-art {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
	height: 132px;
	margin: 0;
	border: 0;
	border-bottom: 4px solid var(--hltd-accent);
	border-radius: 0;
	object-fit: cover;
	object-position: center;
}

.hltd__card-meta {
	display: flex;
	align-items: center;
	gap: .48rem;
	margin: 0 0 .55rem;
}

.hltd__card-icon {
	display: inline-flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--hltd-accent);
	border-radius: 9px;
	background: var(--hltd-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
}

.hltd__card-category {
	min-width: 0;
	color: var(--hltd-accent);
	font-size: .76rem;
	font-weight: 700;
	line-height: 1.3;
}

.hltd .hltd__card-title {
	margin: 0 0 .34rem;
	color: #4b3022;
	font: inherit;
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.45;
}

.hltd .hltd__card-description {
	margin: 0;
	color: var(--hltd-muted);
	font-size: .89rem;
	line-height: 1.55;
}

.hltd .hltd__card-action {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	justify-content: space-between;
	gap: .65rem;
	max-width: 100%;
	margin: auto 1rem .9rem;
	padding: .38rem .7rem .38rem .78rem;
	border: 1px solid #4b3022;
	border-radius: 999px;
	background: #4b3022;
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	box-shadow: 0 4px 11px rgba(75, 48, 34, .18);
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.hltd__card-action span:last-child {
	font-size: 1.05rem;
	line-height: 1;
}

.hltd a.hltd__card-action:hover {
	border-color: var(--hltd-accent-2);
	background: var(--hltd-accent-2);
	color: #fff;
	transform: translateY(-1px);
	text-decoration: none;
}

.hltd__card-action--disabled {
	opacity: .72;
	cursor: default;
}

.hltd__notice,
.hltd__no-results {
	margin: 1rem 0;
	padding: .9rem 1rem;
	border: 1px solid #c6a15a;
	border-inline-start: 4px solid #c6a15a;
	border-radius: 12px;
	background: #fbf8f1;
	color: #4b3022;
}

.hltd__selected {
	margin-top: .75rem;
}

.hltd__back {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: 0 0 1rem;
	padding: .5rem .8rem;
	border: 1px solid #c6a15a;
	border-radius: 999px;
	background: #fbf8f1;
	color: #4b3022;
	font-weight: 700;
	text-decoration: none;
}

.hltd__selected-heading {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid #c6a15a;
	border-radius: 16px;
	background: #fbf8f1;
}

.hltd__selected-category {
	color: #806439;
	font-size: .87rem;
	font-weight: 700;
}

.hltd .hltd__selected-heading h3 {
	margin: .15rem 0 0;
	color: #4b3022;
	font: inherit;
	font-size: clamp(1.2rem, 2.6vw, 1.55rem);
	font-weight: 750;
	line-height: 1.35;
}

.hltd__tool-output {
	min-width: 0;
}

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

@media (max-width: 600px) {
	.hltd__header {
		grid-template-columns: minmax(0, 1fr) 84px;
		gap: .2rem;
		min-height: 132px;
		padding: 1rem;
		border-radius: 18px;
	}

	.hltd__hero-art {
		width: 82px;
	}

	.hltd__eyebrow {
		margin-bottom: .35rem;
		font-size: .76rem;
	}

	.hltd__header h2 {
		font-size: 1.38rem;
	}

	.hltd__description {
		font-size: .88rem;
	}

	.hltd__group-summary {
		gap: .5rem;
		min-height: 61px;
		padding: .68rem .72rem;
	}

	.hltd__group-icon {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
		border-radius: 11px;
	}

	.hltd__group-title {
		font-size: .92rem;
	}

	.hltd__group-count {
		padding: .22rem .45rem;
		font-size: .72rem;
	}

	.hltd__chevron {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
		font-size: 1.25rem;
	}

	.hltd__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: .62rem;
		padding: .65rem .62rem;
	}

	.hltd__card {
		min-height: 305px;
	}

	.hltd img.hltd__card-art {
		height: 158px;
	}

	.hltd__card-copy {
		padding: .72rem .9rem 0;
	}
}

@media (max-width: 360px) {
	.hltd__header {
		grid-template-columns: minmax(0, 1fr) 54px;
	}

	.hltd__hero-art {
		width: 54px;
	}

	.hltd__group-count {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hltd *,
	.hltd *::before,
	.hltd *::after {
		transition-duration: .01ms !important;
	}
}
