.uth-tools-directory {
	padding-bottom: 72px;
}

.uth-tools-directory-hero {
	position: relative;
	width: 100%;
	padding: 54px 0 34px;
	isolation: isolate;
}

.uth-tools-directory-hero::before {
	position: absolute;
	inset: 0 auto auto 50%;
	z-index: -1;
	width: 100vw;
	height: 100%;
	content: "";
	background:
		linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
		linear-gradient(180deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
		linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(239, 246, 255, 0.78));
	background-size: 38px 38px, 38px 38px, 100% 100%;
	transform: translateX(-50%);
	pointer-events: none;
}

.uth-tools-directory-kicker {
	margin: 0 0 10px;
	color: var(--uth-primary);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.uth-tools-directory-title {
	max-width: 780px;
	margin: 0;
	color: var(--uth-heading);
	font-size: clamp(2.1rem, 5vw, 4.4rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0;
}

.uth-tools-directory-description {
	max-width: 760px;
	margin: 16px 0 0;
	color: var(--uth-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.uth-tools-directory-search {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 640px;
	margin: 26px 0 0;
}

.uth-tools-directory-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 44px;
	padding: 8px 12px;
	color: var(--uth-primary);
	background: rgba(37, 99, 235, 0.1);
	border: 1px solid rgba(37, 99, 235, 0.18);
	border-radius: 999px;
	font-weight: 800;
}

.uth-tools-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 28px;
}

.uth-tools-tab {
	min-height: 40px;
	padding: 9px 14px;
	color: var(--uth-heading);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 999px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 750;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.uth-tools-tab:hover,
.uth-tools-tab:focus-visible,
.uth-tools-tab.is-active {
	color: #ffffff;
	background: linear-gradient(135deg, var(--uth-primary), #0f766e);
	border-color: transparent;
	outline: none;
	transform: translateY(-1px);
}

.uth-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.uth-tool-card {
	min-width: 0;
	height: 100%;
}

.uth-tool-card[hidden],
.uth-tool-card[style*="display: none"] {
	display: none;
}

.uth-tool-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 220px;
	padding: 20px;
	color: inherit;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.uth-tool-card-link:hover,
.uth-tool-card-link:focus-visible {
	border-color: rgba(37, 99, 235, 0.28);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
	outline: none;
	transform: translateY(-3px);
}

.uth-tool-card-meta {
	align-self: flex-start;
	margin: 0 0 14px;
	padding: 5px 9px;
	color: var(--uth-primary);
	background: rgba(37, 99, 235, 0.09);
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1.2;
}

.uth-tool-card-title {
	margin: 0;
	color: var(--uth-heading);
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.25;
}

.uth-tool-card-description {
	margin: 10px 0 18px;
	color: var(--uth-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.uth-tool-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(148, 163, 184, 0.22);
	color: var(--uth-text);
	font-size: 0.78rem;
	font-weight: 750;
	text-transform: capitalize;
}

.uth-tools-empty {
	margin: 24px 0 0;
	padding: 18px;
	color: var(--uth-muted);
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 14px;
	font-weight: 700;
}

.uth-tools-directory-content {
	margin-top: 44px;
}

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

@media (max-width: 640px) {
	.uth-tools-directory-hero {
		padding-top: 38px;
	}

	.uth-tools-directory-search {
		align-items: stretch;
		flex-direction: column;
	}

	.uth-tools-directory-count {
		align-self: flex-start;
	}

	.uth-tools-grid {
		grid-template-columns: 1fr;
	}

	.uth-tool-card-link {
		min-height: 0;
	}
}
