.hh-selfhosted-tools,
.hh-selfhosted-tools * {
	box-sizing: border-box;
}

.hh-selfhosted-tools {
	--hh-selfhosted-ink: #16233d;
	--hh-selfhosted-muted: #5e6b80;
	--hh-selfhosted-line: #dfe5ee;
	--hh-selfhosted-soft: #f5f7fb;
	--hh-selfhosted-accent: #315de7;
	--hh-selfhosted-accent-soft: #edf2ff;
	color: var(--hh-selfhosted-ink);
	max-width: 1120px;
	margin: 2rem auto;
	min-width: 0;
}

.hh-selfhosted-hero {
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--hh-selfhosted-line);
	border-radius: 1.25rem;
	background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
}

.hh-selfhosted-eyebrow {
	margin: 0 0 .55rem;
	color: var(--hh-selfhosted-accent);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.hh-selfhosted-hero h2 {
	max-width: 790px;
	margin: 0 0 .8rem;
	color: var(--hh-selfhosted-ink);
	font-size: clamp(1.65rem, 4vw, 2.55rem);
	line-height: 1.12;
	letter-spacing: -.025em;
}

.hh-selfhosted-hero > p:not(.hh-selfhosted-eyebrow) {
	max-width: 780px;
	margin: 0;
	color: var(--hh-selfhosted-muted);
	font-size: 1.04rem;
	line-height: 1.7;
}

.hh-selfhosted-trust {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem 1rem;
	margin-top: 1.35rem;
	color: var(--hh-selfhosted-muted);
	font-size: .82rem;
}

.hh-selfhosted-trust span {
	padding: .45rem .7rem;
	border: 1px solid rgba(49, 93, 231, .17);
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
}

.hh-selfhosted-trust strong {
	color: var(--hh-selfhosted-ink);
}

.hh-selfhosted-stale {
	margin: 1rem 0 0;
	padding: .75rem .9rem;
	border-left: 3px solid #d28b17;
	background: #fff9e9;
	color: #61450d;
	font-size: .88rem;
	line-height: 1.55;
}

.hh-selfhosted-controls {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
	align-items: end;
	gap: .8rem;
	margin: 1.4rem 0 .55rem;
	padding: 1rem;
	border: 1px solid var(--hh-selfhosted-line);
	border-radius: .95rem;
	background: #fff;
}

.hh-selfhosted-field {
	min-width: 0;
}

.hh-selfhosted-field label {
	display: block;
	margin-bottom: .35rem;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.25;
}

.hh-selfhosted-field input,
.hh-selfhosted-field select {
	width: 100%;
	max-width: 100%;
	min-height: 2.6rem;
	padding: .55rem .65rem;
	border: 1px solid #cbd4e1;
	border-radius: .55rem;
	background: #fff;
	color: var(--hh-selfhosted-ink);
	font: inherit;
	font-size: .88rem;
}

.hh-selfhosted-field input:focus,
.hh-selfhosted-field select:focus,
.hh-selfhosted-reset:focus,
.hh-selfhosted-links a:focus {
	outline: 3px solid rgba(49, 93, 231, .28);
	outline-offset: 2px;
}

.hh-selfhosted-reset {
	min-height: 2.6rem;
	padding: .55rem .8rem;
	border: 1px solid #b8c4d5;
	border-radius: .55rem;
	background: var(--hh-selfhosted-soft);
	color: var(--hh-selfhosted-ink);
	font: inherit;
	font-size: .82rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.hh-selfhosted-result-count {
	margin: .45rem 0 1rem;
	color: var(--hh-selfhosted-muted);
	font-size: .84rem;
}

.hh-selfhosted-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	min-width: 0;
}

.hh-selfhosted-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 1.2rem;
	border: 1px solid var(--hh-selfhosted-line);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 5px 20px rgba(23, 39, 71, .045);
}

.hh-selfhosted-card[hidden] {
	display: none;
}

.hh-selfhosted-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: .5rem;
	min-width: 0;
}

.hh-selfhosted-category,
.hh-selfhosted-skill {
	display: inline-block;
	max-width: 100%;
	padding: .3rem .5rem;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 800;
	line-height: 1.2;
	white-space: normal;
	word-break: break-word;
}

.hh-selfhosted-category {
	background: var(--hh-selfhosted-accent-soft);
	color: var(--hh-selfhosted-accent);
}

.hh-selfhosted-skill {
	background: #f2f4f7;
	color: var(--hh-selfhosted-muted);
}

.hh-selfhosted-card h3 {
	margin: .85rem 0 .45rem;
	color: var(--hh-selfhosted-ink);
	font-size: 1.35rem;
	line-height: 1.2;
}

.hh-selfhosted-purpose {
	margin: 0;
	color: var(--hh-selfhosted-muted);
	font-size: .93rem;
	line-height: 1.62;
}

.hh-selfhosted-fit {
	margin-top: 1rem;
	padding: .8rem .85rem;
	border-radius: .7rem;
	background: var(--hh-selfhosted-soft);
}

.hh-selfhosted-fit p,
.hh-selfhosted-notes p {
	margin: 0 0 .55rem;
	font-size: .83rem;
	line-height: 1.55;
	word-break: break-word;
}

.hh-selfhosted-fit p:last-child,
.hh-selfhosted-notes p:last-child {
	margin-bottom: 0;
}

.hh-selfhosted-fit strong,
.hh-selfhosted-notes strong {
	color: var(--hh-selfhosted-ink);
}

.hh-selfhosted-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .65rem;
	margin-top: 1rem;
}

.hh-selfhosted-facts > div {
	min-width: 0;
	padding: .65rem;
	border: 1px solid var(--hh-selfhosted-line);
	border-radius: .6rem;
	background: #fff;
}

.hh-selfhosted-facts span,
.hh-selfhosted-facts strong,
.hh-selfhosted-facts small {
	display: block;
	min-width: 0;
	word-break: break-word;
}

.hh-selfhosted-facts span {
	margin-bottom: .2rem;
	color: var(--hh-selfhosted-muted);
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .025em;
}

.hh-selfhosted-facts strong {
	font-size: .84rem;
	line-height: 1.35;
}

.hh-selfhosted-facts small {
	margin-top: .18rem;
	color: var(--hh-selfhosted-muted);
	font-size: .7rem;
	line-height: 1.35;
}

.hh-selfhosted-notes {
	margin-top: 1rem;
	color: var(--hh-selfhosted-muted);
}

.hh-selfhosted-links {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem 1rem;
	margin-top: auto;
	padding-top: 1rem;
}

.hh-selfhosted-links a {
	color: var(--hh-selfhosted-accent);
	font-size: .84rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: .16em;
	word-break: break-word;
}

.hh-selfhosted-reviewed {
	margin: .9rem 0 0;
	color: var(--hh-selfhosted-muted);
	font-size: .72rem;
}

.hh-selfhosted-no-results {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px dashed #bcc7d6;
	border-radius: .75rem;
	color: var(--hh-selfhosted-muted);
	text-align: center;
}

.hh-selfhosted-compare-ui {
	margin: 1.15rem 0 1.25rem;
	padding: 1rem;
	border: 1px solid #cfdafa;
	border-radius: .95rem;
	background: #fbfcff;
}

.hh-selfhosted-compare-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.hh-selfhosted-compare-toolbar h3,
.hh-selfhosted-comparison h4 {
	margin: 0 0 .35rem;
	color: var(--hh-selfhosted-ink);
	font-size: 1.1rem;
	line-height: 1.3;
}

.hh-selfhosted-compare-toolbar p,
.hh-selfhosted-comparison-help,
.hh-selfhosted-compare-message,
.hh-selfhosted-no-script {
	margin: 0;
	color: var(--hh-selfhosted-muted);
	font-size: .82rem;
	line-height: 1.55;
}

.hh-selfhosted-compare-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: .5rem;
	min-width: 0;
}

.hh-selfhosted-compare-count {
	padding: .38rem .6rem;
	border-radius: 999px;
	background: var(--hh-selfhosted-accent-soft);
	color: var(--hh-selfhosted-accent);
	font-size: .78rem;
	font-weight: 800;
	white-space: nowrap;
}

.hh-selfhosted-clear-compare,
.hh-selfhosted-remove-compare {
	min-height: 2.1rem;
	padding: .4rem .65rem;
	border: 1px solid #b8c4d5;
	border-radius: .5rem;
	background: #fff;
	color: var(--hh-selfhosted-ink);
	font: inherit;
	font-size: .75rem;
	font-weight: 700;
	cursor: pointer;
}

.hh-selfhosted-clear-compare:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.hh-selfhosted-clear-compare:focus-visible,
.hh-selfhosted-remove-compare:focus-visible,
.hh-selfhosted-compare-control input:focus-visible + span {
	outline: 3px solid rgba(49, 93, 231, .3);
	outline-offset: 2px;
}

.hh-selfhosted-compare-message {
	margin-top: .65rem;
}

.hh-selfhosted-compare-control {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: .45rem;
	max-width: 100%;
	margin-top: .9rem;
	color: var(--hh-selfhosted-accent);
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.35;
	cursor: pointer;
}

.hh-selfhosted-compare-control input {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--hh-selfhosted-accent);
}

.hh-selfhosted-comparison {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hh-selfhosted-line);
}

.hh-selfhosted-comparison-help {
	margin-bottom: .7rem;
}

.hh-selfhosted-comparison-scroll {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border: 1px solid var(--hh-selfhosted-line);
	border-radius: .65rem;
	background: #fff;
}

.hh-selfhosted-comparison-scroll:focus-visible {
	outline: 3px solid rgba(49, 93, 231, .28);
	outline-offset: 2px;
}

.hh-selfhosted-comparison-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: .8rem;
	line-height: 1.5;
}

.hh-selfhosted-comparison-table th,
.hh-selfhosted-comparison-table td {
	min-width: 0;
	padding: .7rem;
	border-right: 1px solid var(--hh-selfhosted-line);
	border-bottom: 1px solid var(--hh-selfhosted-line);
	vertical-align: top;
	text-align: left;
	word-break: break-word;
}

.hh-selfhosted-comparison-table thead th {
	width: 25%;
	background: var(--hh-selfhosted-soft);
	color: var(--hh-selfhosted-ink);
	font-weight: 800;
}

.hh-selfhosted-comparison-table thead th:first-child {
	width: 18%;
}

.hh-selfhosted-comparison-table tbody th {
	background: #fbfcff;
	color: var(--hh-selfhosted-ink);
	font-weight: 800;
}

.hh-selfhosted-comparison-table tr:last-child th,
.hh-selfhosted-comparison-table tr:last-child td {
	border-bottom: 0;
}

.hh-selfhosted-comparison-table th:last-child,
.hh-selfhosted-comparison-table td:last-child {
	border-right: 0;
}

.hh-selfhosted-comparison-name {
	display: block;
	margin-bottom: .45rem;
	font-size: .92rem;
}

.hh-selfhosted-remove-compare {
	min-height: 1.85rem;
	padding: .3rem .5rem;
	font-size: .7rem;
}

.hh-selfhosted-comparison-table a {
	color: var(--hh-selfhosted-accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: .12em;
}

.hh-selfhosted-no-script {
	margin-top: .7rem;
}

.hh-selfhosted-method {
	margin-top: 1.5rem;
	padding: 1.2rem 1.25rem;
	border: 1px solid var(--hh-selfhosted-line);
	border-radius: 1rem;
	background: var(--hh-selfhosted-soft);
}

.hh-selfhosted-method h3 {
	margin: 0 0 .6rem;
	font-size: 1.15rem;
}

.hh-selfhosted-method p {
	margin: 0 0 .7rem;
	color: var(--hh-selfhosted-muted);
	font-size: .86rem;
	line-height: 1.65;
}

.hh-selfhosted-method p:last-child {
	margin-bottom: 0;
}

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

	.hh-selfhosted-search-field {
		grid-column: 1 / -1;
	}

	.hh-selfhosted-reset {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 680px) {
	.hh-selfhosted-tools {
		margin-top: 1.25rem;
		margin-bottom: 1.25rem;
	}

	.hh-selfhosted-hero {
		border-radius: .9rem;
	}

	.hh-selfhosted-trust {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.hh-selfhosted-controls,
	.hh-selfhosted-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hh-selfhosted-search-field,
	.hh-selfhosted-reset {
		grid-column: auto;
	}

	.hh-selfhosted-compare-toolbar {
		flex-direction: column;
	}

	.hh-selfhosted-compare-actions {
		justify-content: flex-start;
		width: 100%;
	}

	.hh-selfhosted-reset {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.hh-selfhosted-hero,
	.hh-selfhosted-controls,
	.hh-selfhosted-card,
	.hh-selfhosted-method,
	.hh-selfhosted-compare-ui {
		padding: .9rem;
	}

	.hh-selfhosted-comparison-table {
		min-width: 680px;
	}

	.hh-selfhosted-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.hh-selfhosted-card-top {
		align-items: flex-start;
		flex-direction: column;
	}
}
