/**
 * Hjemmesidebob Feed frontend styling.
 * Scoped under .hjb-feed so theme CSS does not override us.
 */

.hjb-feed {
	/* Core tokens */
	--hjb-primary: #2a7de1;
	--hjb-primary-hover: #1f66c2;
	--hjb-primary-ink: #ffffff;
	--hjb-primary-soft: rgba(42, 125, 225, 0.1);
	--hjb-success: #0f7a3b;
	--hjb-success-bg: #e6f6ec;
	--hjb-ai: #3730a3;
	--hjb-ai-bg: #eef2ff;
	--hjb-bg: #ffffff;
	--hjb-bg-soft: #f7f9fc;
	--hjb-bg-muted: #f1f4f9;
	--hjb-border: #e5eaf1;
	--hjb-border-strong: #cfd6e0;
	--hjb-text: #0f172a;
	--hjb-text-muted: #64748b;
	--hjb-text-subtle: #94a3b8;
	--hjb-ad: #9aa3af;
	--hjb-danger-bg: #fee2e2;
	--hjb-danger: #b91c1c;
	--hjb-radius: 14px;
	--hjb-radius-sm: 10px;
	--hjb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
	--hjb-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
	--hjb-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);

	/* Type scale */
	--hjb-fs-xs: 0.72rem;
	--hjb-fs-sm: 0.86rem;
	--hjb-fs-md: 0.95rem;
	--hjb-fs-lg: 1.15rem;
	--hjb-fs-xl: 1.35rem;

	box-sizing: border-box;
	color: var(--hjb-text);
	font-family: inherit;
	font-size: var(--hjb-fs-md);
	line-height: 1.55;
	margin: 2em 0;
}
.hjb-feed *,
.hjb-feed *::before,
.hjb-feed *::after {
	box-sizing: inherit;
}

/* ========== Theme-override resets ==========
 * Many themes style `button`, `input`, `select`, `a` aggressively. Reset scoped
 * to our feed so styling is predictable.
 */
/* Use :where() to keep specificity at 0,0,1,0 so any class-level override wins. */
.hjb-feed :where(button) {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: 1.2;
	margin: 0;
	padding: 0;
	text-align: inherit;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}
.hjb-feed :where(button):hover,
.hjb-feed :where(button):focus,
.hjb-feed :where(button):active {
	background: none;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}
.hjb-feed input,
.hjb-feed select,
.hjb-feed textarea {
	background: var(--hjb-bg);
	border: 1px solid var(--hjb-border);
	border-radius: var(--hjb-radius-sm);
	color: var(--hjb-text);
	font: inherit;
	letter-spacing: normal;
	line-height: 1.4;
	margin: 0;
	max-width: 100%;
	padding: 0.55em 0.75em;
	text-transform: none;
}
.hjb-feed a {
	text-decoration: none;
}
.hjb-feed ul,
.hjb-feed ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hjb-feed h3,
.hjb-feed h4 {
	font-family: inherit;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}
/* Neutralise theme table styling; our .hjb-table uses block layout. */
.hjb-feed table,
.hjb-feed .hjb-table {
	background: transparent;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	width: 100%;
}
.hjb-feed th,
.hjb-feed td {
	background: transparent;
	border: 0;
	vertical-align: middle;
}
.hjb-feed dl,
.hjb-feed dt,
.hjb-feed dd {
	margin: 0;
}

.hjb-feed .screen-reader-text {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* ========== Filter bar ========== */
.hjb-filters {
	background: var(--hjb-bg);
	border: 1px solid var(--hjb-border);
	border-radius: var(--hjb-radius);
	box-shadow: var(--hjb-shadow-sm);
	margin-bottom: 1em;
	overflow: hidden;
}
.hjb-filters-top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	padding: 0.65em 0.75em;
}
.hjb-filter-search {
	align-items: center;
	background: var(--hjb-bg-soft);
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	display: flex;
	flex: 1 1 260px;
	min-width: 200px;
	padding: 0.25em 0.9em;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hjb-filter-search:focus-within {
	background: var(--hjb-bg);
	border-color: var(--hjb-primary);
	box-shadow: 0 0 0 3px var(--hjb-primary-soft);
}
.hjb-search-icon {
	color: var(--hjb-text-muted);
	flex-shrink: 0;
	margin-right: 0.5em;
}
.hjb-filter-search input {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--hjb-text);
	font: inherit;
	outline: 0;
	padding: 0.5em 0;
	width: 100%;
}
.hjb-filter-inline select {
	background: var(--hjb-bg-soft);
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	color: var(--hjb-text);
	cursor: pointer;
	font: inherit;
	padding: 0.5em 2em 0.5em 0.9em;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%2364748b' stroke-width='2'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.65em center;
}
.hjb-filters-toggle {
	align-items: center;
	background: var(--hjb-bg-soft);
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	color: var(--hjb-text);
	cursor: pointer;
	display: inline-flex;
	font-weight: 600;
	gap: 0.45em;
	padding: 0.5em 1em;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.hjb-filters-toggle:hover {
	background: var(--hjb-bg);
	border-color: var(--hjb-border-strong);
}
.hjb-filters-toggle .hjb-chev {
	transition: transform 0.2s ease;
}
.hjb-filters-toggle[aria-expanded="true"] .hjb-chev {
	transform: rotate(180deg);
}
.hjb-filters-body {
	border-top: 1px solid var(--hjb-border);
	padding: 1em 1.1em 1.2em;
}
.hjb-filters-body[hidden] {
	display: none;
}
.hjb-filters-overlay,
.hjb-filters-panel-head {
	display: none;
}
.hjb-filters-grid {
	display: grid;
	gap: 0.9em 1em;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	align-items: start;
}
.hjb-filter-field {
	display: flex;
	flex-direction: column;
	font-size: var(--hjb-fs-sm);
	gap: 0.35em;
}
.hjb-filter-field > span {
	color: var(--hjb-text-muted);
	font-weight: 600;
}
.hjb-filter-field input,
.hjb-filter-field select {
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hjb-filter-field input:focus,
.hjb-filter-field select:focus {
	border-color: var(--hjb-primary);
	box-shadow: 0 0 0 3px var(--hjb-primary-soft);
	outline: 0;
}
.hjb-filter-checks {
	background: transparent;
	border: 0;
	font-size: var(--hjb-fs-sm);
	margin: 0;
	padding: 0;
}
.hjb-filter-checks legend {
	color: var(--hjb-text-muted);
	display: block;
	font-size: var(--hjb-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 0.55em;
	padding: 0;
	text-transform: uppercase;
}
.hjb-filter-checks label {
	align-items: center;
	color: var(--hjb-text);
	cursor: pointer;
	display: flex;
	gap: 0.55em;
	margin: 0.18em 0;
	padding: 0.28em 0;
	transition: color 0.12s ease;
	width: 100%;
}
.hjb-filter-checks label:hover {
	color: var(--hjb-primary);
}
.hjb-filter-checks input[type="checkbox"] {
	accent-color: var(--hjb-primary);
	cursor: pointer;
	flex: 0 0 auto;
	height: 1.05em;
	margin: 0;
	padding: 0;
	width: 1.05em;
}
/* Make the full-width reset button span the whole grid */
.hjb-filter-reset {
	grid-column: 1 / -1;
	justify-self: start;
}
.hjb-filter-reset {
	align-self: end;
	background: transparent;
	border: 1px solid var(--hjb-border-strong);
	border-radius: 999px;
	color: var(--hjb-text-muted);
	cursor: pointer;
	font: inherit;
	font-size: var(--hjb-fs-sm);
	padding: 0.55em 1em;
	transition: background 0.15s ease, color 0.15s ease;
}
.hjb-filter-reset:hover {
	background: var(--hjb-bg-soft);
	color: var(--hjb-text);
}
.hjb-filters-apply-wrap {
	align-items: center;
	border-top: 1px solid var(--hjb-border);
	display: flex;
	justify-content: flex-end;
	margin-top: 1em;
	padding-top: 1em;
}
.hjb-filters-apply {
	align-items: center;
	background: var(--hjb-primary);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(42, 125, 225, 0.22);
	color: var(--hjb-primary-ink);
	display: inline-flex;
	font-weight: 800;
	gap: 0.25em;
	justify-content: center;
	min-height: 44px;
	padding: 0.75em 1.4em;
	text-align: center;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.hjb-filters-apply:hover,
.hjb-filters-apply:focus {
	background: var(--hjb-primary-hover);
	box-shadow: 0 10px 24px rgba(42, 125, 225, 0.28);
	color: var(--hjb-primary-ink);
	transform: translateY(-1px);
}

/* Allow a check-fieldset to span two columns in the grid when many options */
.hjb-filter-checks--wide {
	grid-column: span 2;
}

/* Range sliders (pris, lagerplads, ram, cpu, oprettelse, fornyelse) */
.hjb-filter-range {
	display: flex;
	flex-direction: column;
	font-size: var(--hjb-fs-sm);
	gap: 0.4em;
}
.hjb-range-head {
	align-items: baseline;
	display: flex;
	gap: 0.5em;
	justify-content: space-between;
}
.hjb-range-head label {
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.hjb-range-value {
	background: var(--hjb-primary-soft);
	border-radius: 999px;
	color: var(--hjb-primary);
	font-size: var(--hjb-fs-sm);
	font-weight: 700;
	padding: 0.18em 0.7em;
	min-width: 3.5em;
	text-align: center;
}
.hjb-filter-range input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	height: 22px;
	margin: 0;
	padding: 0;
	width: 100%;
}
.hjb-filter-range input[type="range"]::-webkit-slider-runnable-track {
	background: var(--hjb-border);
	border-radius: 999px;
	height: 6px;
}
.hjb-filter-range input[type="range"]::-moz-range-track {
	background: var(--hjb-border);
	border-radius: 999px;
	height: 6px;
}
.hjb-filter-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	background: var(--hjb-primary);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
	cursor: pointer;
	height: 18px;
	margin-top: -6px;
	width: 18px;
}
.hjb-filter-range input[type="range"]::-moz-range-thumb {
	background: var(--hjb-primary);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
	cursor: pointer;
	height: 18px;
	width: 18px;
}
.hjb-filter-range input[type="range"]:focus {
	outline: 0;
}
.hjb-filter-range input[type="range"]:focus::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px var(--hjb-primary-soft);
}
.hjb-filter-range input[type="range"]:focus::-moz-range-thumb {
	box-shadow: 0 0 0 4px var(--hjb-primary-soft);
}

/* Active filter chips */
.hjb-active-chips {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-bottom: 0.75em;
}
.hjb-active-chips[hidden] {
	display: none;
}
.hjb-active-chip {
	align-items: center;
	background: var(--hjb-primary-soft);
	border: 1px solid rgba(42, 125, 225, 0.25);
	border-radius: 999px;
	color: var(--hjb-primary);
	cursor: pointer;
	display: inline-flex;
	font-size: var(--hjb-fs-sm);
	font-weight: 600;
	gap: 0.3em;
	padding: 0.3em 0.8em;
	transition: background 0.15s ease;
}
.hjb-active-chip:hover {
	background: rgba(42, 125, 225, 0.14);
	color: var(--hjb-primary);
}
.hjb-active-chip-x {
	opacity: 0.7;
}

/* ========== Table (rebuilt as block/flex card layout) ==========
 * We keep the <table> HTML for semantics/SEO, but override all table display
 * behaviour so each package becomes its own visually independent card.
 * This makes us immune to theme CSS that targets `table`, `tr`, `td` as
 * table-* display, and removes the border-spacing/transform tricks entirely.
 */
.hjb-table-wrap {
	overflow: visible;
	padding-top: 0.8em;
}
.hjb-feed .hjb-table,
.hjb-feed .hjb-table thead,
.hjb-feed .hjb-table tbody,
.hjb-feed .hjb-table tr,
.hjb-feed .hjb-table th,
.hjb-feed .hjb-table td {
	display: block;
	width: auto;
}
.hjb-feed .hjb-table {
	width: 100%;
	font-size: var(--hjb-fs-md);
}

/* Header row is visually hidden — each card shows its own inline labels via td::before.
   This avoids brittle alignment between a thead row and independent card columns. */
.hjb-feed .hjb-table thead {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Body rows - each package = independent card */
.hjb-table tbody tr.hjb-row {
	align-items: center;
	background: var(--hjb-bg);
	border: 1px solid var(--hjb-border);
	border-radius: var(--hjb-radius) var(--hjb-radius) 0 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 1em;
	margin-top: 1em;
	padding: 1em;
	position: relative;
	transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hjb-table tbody tr.hjb-row:first-of-type {
	margin-top: 0;
}
.hjb-table tbody tr.hjb-row:hover {
	background: var(--hjb-bg-soft);
	box-shadow: var(--hjb-shadow-sm);
}
/* Card is complete (round bottom) when no expand strip follows */
.hjb-table tbody tr.hjb-row:not(:has(+ .hjb-row-expand)) {
	border-radius: var(--hjb-radius);
}
/* Featured rows get a subtle golden top accent + 2px border */
.hjb-table tbody tr.hjb-row.is-featured {
	border-top: 2px solid #fbbf24;
	padding-top: calc(1em - 1px);
}

.hjb-table tbody tr.hjb-row > td {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
	justify-content: center;
	min-width: 0;
	padding: 0;
	text-align: left;
}
/* Small uppercase label above each value (replaces thead for per-card clarity). */
.hjb-table tbody tr.hjb-row > td::before {
	color: var(--hjb-text-muted);
	content: attr(data-label);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
}
/* Cells that don't benefit from a label (visual/decorative cells). */
.hjb-table tbody tr.hjb-row > td.hjb-cell-compare::before,
.hjb-table tbody tr.hjb-row > td.hjb-cell-provider::before,
.hjb-table tbody tr.hjb-row > td.hjb-cell-cta::before {
	display: none;
}
/* Keep alignment consistent with text-align for flex-column content. */
.hjb-table tbody tr.hjb-row > td.hjb-cell-price {
	align-items: flex-end;
}
.hjb-table tbody tr.hjb-row > td.hjb-cell-compare {
	align-items: center;
}
.hjb-table tbody tr.hjb-row > td.hjb-cell-creation,
.hjb-table tbody tr.hjb-row > td.hjb-cell-renewal {
	align-items: flex-end;
}

/* Column sizing (shared between thead th and tbody td via matching class names) */
.hjb-col-compare,
.hjb-cell-compare {
	flex: 0 0 64px;
	text-align: center;
}
.hjb-col-provider,
.hjb-cell-provider {
	flex: 1 1 220px;
	min-width: 160px;
}
.hjb-col-plan,
.hjb-cell-plan {
	flex: 1 1 150px;
	min-width: 110px;
}
.hjb-col-storage,
.hjb-cell-storage,
.hjb-col-ram,
.hjb-cell-ram,
.hjb-col-cpu,
.hjb-cell-cpu,
.hjb-col-domains,
.hjb-cell-domains,
.hjb-col-email,
.hjb-cell-email,
.hjb-col-accounts,
.hjb-cell-accounts,
.hjb-col-protocols,
.hjb-cell-protocols,
.hjb-col-send-limit,
.hjb-cell-send-limit,
.hjb-col-transfer,
.hjb-cell-transfer {
	flex: 0 1 95px;
	min-width: 70px;
}
.hjb-col-protocols,
.hjb-cell-protocols,
.hjb-col-send-limit,
.hjb-cell-send-limit {
	flex: 0 1 130px;
}
.hjb-col-price,
.hjb-cell-price,
.hjb-col-creation,
.hjb-cell-creation,
.hjb-col-renewal,
.hjb-cell-renewal {
	flex: 0 1 140px;
	min-width: 120px;
	text-align: right;
	white-space: nowrap;
}
.hjb-col-cta,
.hjb-cell-cta {
	flex: 0 0 auto;
	text-align: right;
}

/* Provider cell: bigger, clearer logo */
.hjb-provider {
	align-items: center;
	display: flex;
	gap: 0.75em;
	min-width: 0;
}
.hjb-logo {
	background: #fff;
	border: 1px solid var(--hjb-border);
	border-radius: var(--hjb-radius-sm);
	box-shadow: var(--hjb-shadow-sm);
	flex-shrink: 0;
	height: 56px;
	object-fit: contain;
	padding: 6px;
	width: 56px;
}
.hjb-provider-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hjb-cell-plan strong {
	display: block;
	font-weight: 600;
}
.hjb-chip--category {
	background: var(--hjb-bg-muted);
	border-radius: 999px;
	color: var(--hjb-text-muted);
	display: inline-block;
	font-size: var(--hjb-fs-xs);
	font-weight: 600;
	letter-spacing: 0.03em;
	margin-top: 0.3em;
	padding: 0.15em 0.55em;
	text-transform: uppercase;
}
.hjb-cell-price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.hjb-price-main {
	color: var(--hjb-text);
	font-size: var(--hjb-fs-xl);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.1;
}
.hjb-price-unit {
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-sm);
	font-weight: 500;
	margin-left: 0.15em;
}
.hjb-cell-price .hjb-price-note,
.hjb-cell-price small {
	color: var(--hjb-text-subtle);
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	margin-top: 0.3em;
	white-space: normal;
}
.hjb-muted {
	color: var(--hjb-text-muted);
}

/* ========== CTA cell (button + Annonce + Detaljer) ========== */
.hjb-cell-cta {
	text-align: right;
}
.hjb-cta-stack {
	align-items: stretch;
	display: inline-flex;
	flex-direction: column;
	gap: 0.4em;
	min-width: 160px;
}
.hjb-cta-wrap {
	display: block;
	text-align: center;
}
.hjb-cta {
	-webkit-appearance: none;
	align-items: center;
	appearance: none;
	background: var(--hjb-primary);
	border: 0;
	border-radius: 999px;
	color: var(--hjb-primary-ink) !important;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: var(--hjb-fs-sm);
	font-weight: 700;
	gap: 0.4em;
	justify-content: center;
	line-height: 1.2;
	padding: 0.75em 1.3em;
	text-align: center;
	text-decoration: none !important;
	text-shadow: none;
	text-transform: none;
	transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
	white-space: nowrap;
	width: 100%;
}
.hjb-cta:hover,
.hjb-cta:focus {
	background: var(--hjb-primary-hover) !important;
	box-shadow: 0 6px 16px rgba(42, 125, 225, 0.3);
	color: var(--hjb-primary-ink) !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}
.hjb-cta-arrow {
	flex-shrink: 0;
	transition: transform 0.15s ease;
}
.hjb-cta:hover .hjb-cta-arrow {
	transform: translateX(2px);
}
.hjb-ad-label {
	color: var(--hjb-ad);
	display: block;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
	margin-top: 0.3em;
	text-align: center;
	text-transform: uppercase;
}

/* ========== Expand button (inside CTA stack) ========== */
.hjb-expand-btn {
	align-items: center;
	background: transparent;
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	color: var(--hjb-text-muted);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: var(--hjb-fs-xs);
	font-weight: 600;
	gap: 0.35em;
	justify-content: center;
	letter-spacing: 0.04em;
	line-height: 1.2;
	padding: 0.45em 0.85em;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	width: 100%;
}
.hjb-expand-btn:hover {
	background: var(--hjb-bg-soft);
	border-color: var(--hjb-border-strong);
	color: var(--hjb-text);
}
.hjb-expand-btn .hjb-chev {
	transition: transform 0.2s ease;
}
.hjb-expand-btn[aria-expanded="true"] .hjb-chev {
	transform: rotate(180deg);
}
.hjb-expand-btn[aria-expanded="true"] {
	background: var(--hjb-primary-soft);
	border-color: rgba(42, 125, 225, 0.3);
	color: var(--hjb-primary);
}

/* ========== Expand strip (footer of each row-card) ========== */
.hjb-table tbody tr.hjb-row-expand {
	background: var(--hjb-bg);
	border: 1px solid var(--hjb-border);
	border-top: 0;
	border-radius: 0 0 var(--hjb-radius) var(--hjb-radius);
	margin: 0;
	overflow: hidden;
}
.hjb-table tbody tr.hjb-row-expand > td {
	padding: 0;
}
/* When details are open below, remove bottom rounding so card flows into details. */
.hjb-table tbody tr.hjb-row-expand:has(+ .hjb-details-row:not([hidden])),
.hjb-table tbody tr.hjb-row-expand.is-open {
	border-radius: 0;
}
.hjb-expand-strip {
	align-items: center;
	background: transparent;
	border: 0;
	border-top: 1px dashed var(--hjb-border);
	color: var(--hjb-text-muted);
	cursor: pointer;
	display: flex;
	font-family: inherit;
	font-size: var(--hjb-fs-xs);
	font-weight: 600;
	gap: 0.45em;
	justify-content: center;
	letter-spacing: 0.05em;
	line-height: 1.2;
	padding: 0.6em 1em;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease;
	width: 100%;
	border-bottom-left-radius: var(--hjb-radius);
	border-bottom-right-radius: var(--hjb-radius);
}
.hjb-expand-strip:hover,
.hjb-expand-strip:focus {
	background: var(--hjb-bg-soft);
	color: var(--hjb-text);
}
.hjb-expand-strip .hjb-chev {
	transition: transform 0.22s ease;
}
.hjb-expand-strip[aria-expanded="true"] {
	background: var(--hjb-primary-soft);
	color: var(--hjb-primary);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.hjb-expand-strip[aria-expanded="true"] .hjb-chev {
	transform: rotate(180deg);
}

/* ========== Details row ========== */
.hjb-table tbody tr.hjb-details-row {
	background: var(--hjb-bg-soft);
	border: 1px solid var(--hjb-border);
	border-top: 0;
	border-radius: 0 0 var(--hjb-radius) var(--hjb-radius);
	margin: 0;
}
.hjb-table tbody tr.hjb-details-row[hidden] {
	display: none;
}
.hjb-table tbody tr.hjb-details-row > td {
	padding: 0;
}
.hjb-details-inner {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s ease;
}
.hjb-details-row:not([hidden]) .hjb-details-inner {
	grid-template-rows: 1fr;
}
.hjb-details-content {
	min-height: 0;
	overflow: hidden;
	padding: 0;
}
.hjb-details-row:not([hidden]) .hjb-details-content {
	box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.04);
	padding: 1.3em 1.5em;
}
@media (prefers-reduced-motion: reduce) {
	.hjb-details-inner {
		transition: none;
	}
}

.hjb-detail-grid {
	display: grid;
	gap: 0.4em 1.4em;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	margin: 0 0 1em;
}
.hjb-detail-row {
	border-bottom: 1px dashed var(--hjb-border);
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.45em 0;
}
.hjb-detail-row dt {
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-sm);
	font-weight: 600;
}
.hjb-detail-row dd {
	color: var(--hjb-text);
	font-size: var(--hjb-fs-sm);
	margin: 0;
	text-align: right;
}
.hjb-details-features h4 {
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 0.6em;
	text-transform: uppercase;
}
.hjb-features {
	display: grid;
	gap: 0.3em 1em;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}
.hjb-features li {
	color: var(--hjb-text);
	font-size: var(--hjb-fs-sm);
	padding-left: 1.4em;
	position: relative;
}
.hjb-features li::before {
	color: var(--hjb-success);
	content: "✓";
	font-weight: 700;
	left: 0;
	position: absolute;
}

/* ========== Compare checkbox (table) ========== */
.hjb-compare-check {
	align-items: center;
	color: var(--hjb-text-muted);
	cursor: pointer;
	display: inline-flex;
	font-size: var(--hjb-fs-xs);
	gap: 0.35em;
	letter-spacing: 0.03em;
}
.hjb-compare-check input {
	accent-color: var(--hjb-primary);
	cursor: pointer;
	height: 16px;
	margin: 0;
	padding: 0;
	width: 16px;
}
.hjb-compare-check:hover {
	color: var(--hjb-text);
}
.hjb-compare-check span {
	display: inline-block;
}

/* ========== Compare floating bar ========== */
.hjb-compare-bar {
	background: #fff;
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	bottom: 1.2em;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
	left: 50%;
	max-width: calc(100% - 2em);
	padding: 0.55em 0.7em 0.55em 1.1em;
	position: fixed;
	transform: translate(-50%, 0);
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease;
	width: min(880px, calc(100% - 2em));
	z-index: 1000;
}
.hjb-compare-bar[hidden] {
	display: none;
}
.hjb-compare-bar:not([hidden]) {
	animation: hjb-compare-bar-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes hjb-compare-bar-in {
	from { opacity: 0; transform: translate(-50%, 120%); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
.hjb-compare-bar-inner {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75em;
	min-width: 0;
}
.hjb-compare-summary {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 0.7em;
	min-width: 0;
}
.hjb-compare-count-wrap {
	align-items: center;
	display: inline-flex;
	flex-shrink: 0;
	gap: 0.5em;
}
.hjb-compare-count-badge {
	align-items: center;
	background: var(--hjb-primary);
	border-radius: 999px;
	color: var(--hjb-primary-ink);
	display: inline-flex;
	font-size: var(--hjb-fs-sm);
	font-weight: 700;
	height: 1.6em;
	justify-content: center;
	line-height: 1;
	min-width: 1.6em;
	padding: 0 0.5em;
}
.hjb-compare-count-label {
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-sm);
	font-weight: 500;
}
.hjb-compare-chips {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: nowrap;
	gap: 0.35em;
	min-width: 0;
	overflow: hidden;
}
.hjb-compare-chip {
	align-items: center;
	background: var(--hjb-bg-soft);
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	color: var(--hjb-text);
	display: inline-flex;
	flex-shrink: 0;
	font-size: var(--hjb-fs-sm);
	gap: 0.35em;
	max-width: 220px;
	padding: 0.2em 0.25em 0.2em 0.7em;
}
.hjb-compare-chip > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hjb-compare-chip button {
	align-items: center;
	background: var(--hjb-bg);
	border: 0;
	border-radius: 50%;
	color: var(--hjb-text-muted);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font-size: 0.8em;
	height: 20px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 20px;
}
.hjb-compare-chip button:hover {
	background: var(--hjb-danger-bg) !important;
	color: var(--hjb-danger) !important;
}
.hjb-compare-actions {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 0.4em;
	margin-left: auto;
}
.hjb-btn-primary,
.hjb-btn-secondary,
.hjb-btn-ghost {
	align-items: center;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: var(--hjb-fs-sm);
	font-weight: 600;
	gap: 0.45em;
	justify-content: center;
	line-height: 1.2;
	padding: 0.7em 1.3em;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
	white-space: nowrap;
}
.hjb-btn-primary {
	background: var(--hjb-primary);
	border: 0;
	color: var(--hjb-primary-ink);
}
.hjb-btn-primary:hover:not(:disabled),
.hjb-btn-primary:focus:not(:disabled) {
	background: var(--hjb-primary-hover);
	box-shadow: 0 6px 18px rgba(42, 125, 225, 0.35);
	color: var(--hjb-primary-ink);
	transform: translateY(-1px);
}
.hjb-btn-primary:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	transform: none;
}
.hjb-btn-compare {
	padding: 0.7em 1.35em;
}
.hjb-btn-compare svg {
	flex-shrink: 0;
}
.hjb-btn-secondary {
	background: transparent;
	border: 1px solid var(--hjb-border-strong);
	color: var(--hjb-text-muted);
}
.hjb-btn-secondary:hover {
	background: var(--hjb-bg-soft);
	color: var(--hjb-text);
}
.hjb-btn-ghost {
	background: transparent;
	border: 0;
	color: var(--hjb-text-muted);
	padding: 0.55em 0.9em;
}
.hjb-btn-ghost:hover {
	background: var(--hjb-bg-soft);
	color: var(--hjb-text);
}

/* ========== Compare modal ========== */
.hjb-compare-modal {
	--hjb-primary: #2a7de1;
	--hjb-primary-hover: #1f66c2;
	--hjb-primary-ink: #ffffff;
	--hjb-primary-soft: rgba(42, 125, 225, 0.1);
	--hjb-bg: #ffffff;
	--hjb-bg-soft: #f7f9fc;
	--hjb-bg-muted: #f1f4f9;
	--hjb-border: #e5eaf1;
	--hjb-text: #0f172a;
	--hjb-text-muted: #64748b;
	--hjb-text-subtle: #94a3b8;
	--hjb-ad: #9aa3af;
	--hjb-danger-bg: #fee2e2;
	--hjb-danger: #b91c1c;
	--hjb-radius: 14px;
	--hjb-radius-sm: 10px;
	--hjb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
	--hjb-fs-xs: 0.72rem;
	--hjb-fs-sm: 0.86rem;
	--hjb-fs-md: 0.95rem;
	--hjb-fs-lg: 1.15rem;
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 1em;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 999992;
}
.hjb-compare-modal[hidden] {
	display: none;
}
.hjb-compare-modal-backdrop {
	animation: hjb-fade-in 0.2s ease;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	bottom: 0;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}
.hjb-compare-modal-dialog {
	animation: hjb-modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
	background: var(--hjb-bg);
	border-radius: var(--hjb-radius);
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2em);
	max-width: 1100px;
	overflow: hidden;
	position: relative;
	width: 100%;
	z-index: 1;
}
@keyframes hjb-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes hjb-modal-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hjb-compare-modal-header {
	align-items: center;
	background: var(--hjb-bg);
	border-bottom: 1px solid var(--hjb-border);
	display: flex;
	flex-shrink: 0;
	gap: 1em;
	justify-content: space-between;
	padding: 1em 1.4em;
}
.hjb-compare-modal-title {
	color: var(--hjb-text);
	font-size: var(--hjb-fs-lg);
	margin: 0;
}
.hjb-compare-modal-close {
	align-items: center;
	background: var(--hjb-bg-soft);
	border: 1px solid var(--hjb-border);
	border-radius: 50%;
	color: var(--hjb-text);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	height: 40px;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
	width: 40px;
}
.hjb-compare-modal-close:hover,
.hjb-compare-modal-close:focus {
	background: var(--hjb-danger-bg);
	border-color: #fca5a5;
	color: var(--hjb-danger);
	transform: rotate(90deg);
}
.hjb-compare-modal-body {
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	overflow: auto;
	padding: 1.2em 1.4em 1.4em;
}

/* ========== Compare table (inside modal) ========== */
.hjb-compare-table-wrap {
	overflow-x: auto;
}
.hjb-compare-table {
	--hjb-compare-label-col: 22%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: var(--hjb-fs-sm);
	min-width: 100%;
	table-layout: fixed;
}
.hjb-compare-feature-col {
	width: var(--hjb-compare-label-col);
}
.hjb-compare-table th,
.hjb-compare-table td {
	border-bottom: 1px solid var(--hjb-border);
	padding: 0.8em 1em;
	text-align: left;
	vertical-align: top;
	word-wrap: break-word;
}
.hjb-compare-table tr:last-child th,
.hjb-compare-table tr:last-child td {
	border-bottom: 0;
}
.hjb-compare-table thead th {
	background: var(--hjb-bg-soft);
	border-bottom: 1px solid var(--hjb-border);
	color: var(--hjb-text);
	font-size: var(--hjb-fs-md);
	font-weight: 700;
	position: sticky;
	text-align: left;
	top: 0;
	z-index: 1;
}
.hjb-compare-table thead th:first-child {
	background: var(--hjb-bg-muted);
}
.hjb-compare-table tbody th {
	background: var(--hjb-bg-soft);
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-sm);
	font-weight: 600;
}
.hjb-compare-header-cell {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	text-align: center;
}
.hjb-compare-header-cell .hjb-logo {
	height: 56px;
	width: 56px;
}
.hjb-compare-header-cell .hjb-compare-header-name {
	font-size: var(--hjb-fs-sm);
	font-weight: 700;
	line-height: 1.3;
	word-wrap: break-word;
}
.hjb-compare-table tbody tr:nth-child(even) td,
.hjb-compare-table tbody tr:nth-child(even) th {
	background: #fafbfd;
}
.hjb-compare-table td.hjb-compare-empty {
	color: var(--hjb-text-subtle);
}
.hjb-compare-cta-table-row th,
.hjb-compare-cta-table-row td {
	background: var(--hjb-bg) !important;
	border-top: 1px solid var(--hjb-border);
	vertical-align: middle;
}
.hjb-compare-cta-table-row .hjb-cta-wrap {
	width: 100%;
}
.hjb-compare-modal-ctas:empty {
	display: none;
}
.hjb-compare-cta-row {
	--hjb-compare-label-col: 22%;
	align-items: stretch;
	background: var(--hjb-bg);
	border-top: 1px solid var(--hjb-border);
	display: grid;
	flex-shrink: 0;
	padding: 1em 1.4em 1.1em;
	z-index: 3;
}
.hjb-compare-cta-row--2 {
	grid-template-columns: var(--hjb-compare-label-col) minmax(0, 1fr) minmax(0, 1fr);
}
.hjb-compare-cta-row--3 {
	grid-template-columns: var(--hjb-compare-label-col) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.hjb-compare-cta-label {
	align-items: center;
	color: var(--hjb-text-muted);
	display: flex;
	font-size: var(--hjb-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	padding-right: 1em;
	text-transform: uppercase;
}
.hjb-compare-cta-cell {
	align-items: center;
	display: flex;
	min-width: 0;
	padding-left: 0.45em;
	padding-right: 0.45em;
}
.hjb-compare-cta-cell .hjb-cta-wrap {
	width: 100%;
}
.hjb-compare-empty-state {
	color: var(--hjb-text-muted);
	padding: 2em 1em;
	text-align: center;
}

/* Prevent background scroll while modal is open */
body.hjb-compare-lock {
	overflow: hidden;
}

/* ========== Builders cards ========== */
.hjb-cards {
	display: grid;
	gap: 1.1em;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.hjb-card {
	background: var(--hjb-bg);
	border: 1px solid var(--hjb-border);
	border-radius: var(--hjb-radius);
	box-shadow: var(--hjb-shadow-sm);
	display: flex;
	flex-direction: column;
	padding: 1.3em;
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hjb-card:hover {
	border-color: var(--hjb-border-strong);
	box-shadow: var(--hjb-shadow);
	transform: translateY(-2px);
}
.hjb-card-topbar {
	display: flex;
	justify-content: flex-end;
	margin: -0.4em -0.4em 0.5em 0;
}
.hjb-card-header {
	align-items: center;
	display: flex;
	gap: 0.75em;
	margin-bottom: 0.75em;
	min-height: 48px;
}
.hjb-card-title {
	font-size: var(--hjb-fs-lg);
	font-weight: 700;
	margin: 0;
}
.hjb-card-price {
	color: var(--hjb-primary);
	font-size: var(--hjb-fs-md);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	margin: 0 0 0.35em;
}
.hjb-card-audience {
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-sm);
	line-height: 1.45;
	margin: 0 0 1.15em;
	white-space: normal;
}
.hjb-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	margin-bottom: 0.75em;
}
.hjb-badge {
	background: var(--hjb-bg-muted);
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.2em 0.7em;
}
.hjb-badge--free {
	background: var(--hjb-success-bg);
	border-color: #b7e2c4;
	color: var(--hjb-success);
}
.hjb-badge--ai {
	background: var(--hjb-ai-bg);
	border-color: #c7d2fe;
	color: var(--hjb-ai);
}

/* ========== Featured badge (sits ON the top edge of the card) ========== */
/* The card itself becomes the positioning context so the badge is anchored to the card top. */
.hjb-table tbody tr.hjb-row.is-featured {
	position: relative;
}
.hjb-badge-featured {
	align-items: center;
	background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(251, 191, 36, 0.45);
	color: #422006;
	display: inline-flex;
	font-size: 0.64rem;
	font-weight: 800;
	gap: 0.3em;
	height: 1.55em;
	left: 1em;
	letter-spacing: 0.08em;
	line-height: 1;
	padding: 0 0.7em;
	position: absolute;
	text-transform: uppercase;
	top: -0.8em;
	white-space: nowrap;
	z-index: 2;
}
.hjb-badge-featured::before {
	content: '★';
	font-size: 0.95em;
	line-height: 1;
}

/* ========== Featured card ribbon (builders) ========== */
.hjb-card.is-featured {
	border-color: #fbbf24;
	box-shadow: 0 0 0 1px #fbbf24, var(--hjb-shadow-md);
}
.hjb-card-featured-ribbon {
	align-items: center;
	background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(251, 191, 36, 0.45);
	color: #422006;
	display: inline-flex;
	font-size: 0.65rem;
	font-weight: 800;
	height: 1.6em;
	left: 1em;
	letter-spacing: 0.1em;
	padding: 0 0.8em;
	position: absolute;
	text-transform: uppercase;
	top: -0.8em;
	z-index: 2;
}
.hjb-card-featured-ribbon span {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}
.hjb-card-featured-ribbon span::before {
	content: '★';
	font-size: 1.05em;
	line-height: 1;
}

.hjb-card-cta {
	display: block;
	margin-top: auto;
	padding-top: 0.5em;
}
.hjb-card-cta .hjb-cta-wrap {
	text-align: center;
}
.hjb-card-cta .hjb-cta {
	width: 100%;
}

.hjb-card-details {
	background: var(--hjb-bg-soft);
	border-bottom-left-radius: var(--hjb-radius);
	border-bottom-right-radius: var(--hjb-radius);
	border-top: 1px solid var(--hjb-border);
	margin: 1em -1.3em -1.3em;
	overflow: hidden;
}
/* Reliably hide the default marker across browsers. */
.hjb-card-details > summary {
	list-style: none;
}
.hjb-card-details > summary::-webkit-details-marker {
	display: none;
}
.hjb-card-details > summary::marker {
	content: "";
	display: none;
}
.hjb-card-details > summary {
	align-items: center;
	color: var(--hjb-text-muted);
	cursor: pointer;
	display: flex;
	font-size: var(--hjb-fs-xs);
	font-weight: 700;
	gap: 0.4em;
	justify-content: center;
	letter-spacing: 0.06em;
	padding: 0.85em 1.3em;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease;
}
.hjb-card-details > summary:hover,
.hjb-card-details > summary:focus {
	background: var(--hjb-bg-muted);
	color: var(--hjb-text);
	outline: none;
}
.hjb-card-details > summary .hjb-chev {
	transition: transform 0.22s ease;
}
.hjb-card-details[open] > summary {
	background: var(--hjb-primary-soft);
	color: var(--hjb-primary);
}
.hjb-card-details[open] > summary .hjb-chev {
	transform: rotate(180deg);
}
.hjb-card-details-body {
	background: var(--hjb-bg);
	border-top: 1px solid var(--hjb-border);
	padding: 1.1em 1.3em 1.3em;
}

.hjb-proscons {
	display: grid;
	gap: 0.9em;
	grid-template-columns: 1fr 1fr;
	margin-top: 0.8em;
}
.hjb-proscons h4 {
	font-size: var(--hjb-fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 0.35em;
	text-transform: uppercase;
}
.hjb-pros h4 { color: var(--hjb-success); }
.hjb-cons h4 { color: var(--hjb-danger); }
.hjb-proscons ul {
	font-size: var(--hjb-fs-sm);
	list-style: disc;
	margin: 0;
	padding-left: 1.1em;
}
.hjb-proscons li + li {
	margin-top: 0.15em;
}

/* ========== Empty / hidden ========== */
.hjb-empty,
.hjb-empty-msg {
	background: var(--hjb-bg-soft);
	border: 1px dashed var(--hjb-border);
	border-radius: var(--hjb-radius);
	color: var(--hjb-text-muted);
	padding: 1.5em;
	text-align: center;
}
.hjb-empty-msg[hidden] {
	display: none;
}

/* Result counter (updates live via JS) */
.hjb-result-count {
	color: var(--hjb-text-muted);
	font-size: var(--hjb-fs-sm);
	margin: 1em 0 0;
	text-align: center;
}
.hjb-result-count[hidden] {
	display: none;
}
.hjb-result-count [data-hjb-visible-count] {
	color: var(--hjb-text);
	font-weight: 700;
}

/* Live result counter inside the filter top bar (always visible while filtering). */
.hjb-filter-count {
	align-items: center;
	background: var(--hjb-bg-soft);
	border: 1px solid var(--hjb-border);
	border-radius: 999px;
	color: var(--hjb-text-muted);
	display: inline-flex;
	flex-shrink: 0;
	font-size: var(--hjb-fs-sm);
	font-weight: 500;
	gap: 0.25em;
	line-height: 1;
	margin-left: auto;
	padding: 0.5em 0.85em;
	white-space: nowrap;
}
.hjb-filter-count [data-hjb-visible-count] {
	color: var(--hjb-primary, var(--hjb-text));
	font-weight: 700;
}
.hjb-filter-count [data-hjb-total-count] {
	color: var(--hjb-text);
	font-weight: 600;
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
	body.hjb-filter-lock {
		overflow: hidden;
	}
	.hjb-filters {
		overflow: visible;
	}
	.hjb-filters-top {
		gap: 0.55em;
		padding: 0.5em 0.6em;
	}
	.hjb-filter-search {
		flex: 1 1 100%;
		order: -1;
	}
	.hjb-filter-inline {
		flex: 1 1 auto;
	}
	.hjb-filter-inline select,
	.hjb-filters-toggle {
		min-height: 44px;
	}
	.hjb-filters-toggle {
		flex: 0 0 auto;
		justify-content: center;
	}
	.hjb-filter-count {
		flex: 1 1 100%;
		justify-content: center;
		margin-left: 0;
		order: 99;
		padding: 0.55em 0.85em;
	}

	.hjb-filters-overlay:not([hidden]) {
		animation: hjb-fade-in 0.18s ease;
		background: rgba(15, 23, 42, 0.48);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
		bottom: 0;
		cursor: pointer;
		display: block;
		left: 0;
		position: fixed;
		right: 0;
		top: 0;
		z-index: 999990;
	}
	.hjb-filters-body {
		animation: hjb-filter-drawer-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
		background: var(--hjb-bg);
		border-left: 1px solid var(--hjb-border);
		bottom: 0;
		box-shadow: -18px 0 42px rgba(15, 23, 42, 0.2);
		display: flex;
		flex-direction: column;
		left: auto;
		max-width: 420px;
		overflow-y: auto;
		padding: env(safe-area-inset-top) 0 0;
		position: fixed;
		right: 0;
		top: 0;
		width: min(92vw, 420px);
		z-index: 999991;
	}
	.hjb-filters-body[hidden] {
		display: none;
	}
	@keyframes hjb-filter-drawer-in {
		from { transform: translateX(100%); }
		to   { transform: translateX(0); }
	}
	.hjb-filters-panel-head {
		align-items: center;
		border-bottom: 1px solid var(--hjb-border);
		display: flex;
		flex-shrink: 0;
		gap: 1em;
		justify-content: space-between;
		padding: 1em;
	}
	.hjb-filters-panel-head strong {
		display: block;
		font-size: var(--hjb-fs-lg);
		line-height: 1.2;
	}
	.hjb-filters-panel-head span {
		color: var(--hjb-text-muted);
		display: block;
		font-size: var(--hjb-fs-sm);
		line-height: 1.35;
		margin-top: 0.2em;
	}
	.hjb-filters-close {
		align-items: center;
		background: var(--hjb-bg-soft);
		border: 1px solid var(--hjb-border);
		border-radius: 50%;
		color: var(--hjb-text);
		display: inline-flex;
		flex: 0 0 auto;
		height: 42px;
		justify-content: center;
		width: 42px;
	}
	.hjb-filters-close:hover,
	.hjb-filters-close:focus {
		background: var(--hjb-danger-bg);
		border-color: #fca5a5;
		color: var(--hjb-danger);
	}
	.hjb-filters-grid {
		display: grid;
		flex: 1 1 auto;
		gap: 1em;
		grid-template-columns: 1fr;
		padding: 1em 1em 0.9em;
	}
	/* Allow grid items to shrink below their content size (fixes slider overflow). */
	.hjb-filter-range,
	.hjb-filter-checks {
		min-width: 0;
	}
	.hjb-filter-range,
	.hjb-filter-reset {
		grid-column: 1 / -1;
	}
	.hjb-filter-checks--wide {
		grid-column: 1 / -1;
	}
	.hjb-filter-checks label {
		font-size: var(--hjb-fs-sm);
		min-height: 36px;
		padding: 0.3em 0;
	}
	.hjb-range-head label {
		line-height: 1.2;
	}
	.hjb-filter-range input[type="range"] {
		max-width: 100%;
	}
	.hjb-filters-apply-wrap {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), var(--hjb-bg) 32%);
		border-top: 1px solid var(--hjb-border);
		bottom: 0;
		display: block;
		flex-shrink: 0;
		padding: 0.9em 1em calc(0.9em + env(safe-area-inset-bottom));
		position: sticky;
		z-index: 2;
	}
	.hjb-filters-apply {
		align-items: center;
		background: var(--hjb-primary);
		border-radius: 999px;
		box-shadow: 0 8px 20px rgba(42, 125, 225, 0.32);
		color: var(--hjb-primary-ink);
		display: inline-flex;
		font-weight: 800;
		gap: 0.25em;
		justify-content: center;
		min-height: 48px;
		padding: 0.85em 1.2em;
		text-align: center;
		width: 100%;
	}
	.hjb-filters-apply:hover,
	.hjb-filters-apply:focus {
		background: var(--hjb-primary-hover);
		color: var(--hjb-primary-ink);
	}

	.hjb-table-wrap {
		background: transparent;
		border: 0;
		box-shadow: none;
		overflow: visible;
	}
	/* Hide table header on mobile — labels are printed via td::before instead */
	.hjb-table thead {
		display: none;
	}
	/* Stack each package as a vertical card */
	.hjb-table tbody tr.hjb-row {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: wrap;
		gap: 0;
		padding: 0.25em 0.9em;
	}
	.hjb-table tbody tr.hjb-row > td {
		align-items: center;
		border-bottom: 1px dashed var(--hjb-border);
		display: flex;
		flex: 1 1 auto !important;
		flex-direction: row;
		gap: 0.8em;
		justify-content: space-between;
		min-width: 0 !important;
		padding: 0.7em 0;
		text-align: right;
		width: 100%;
	}
	.hjb-table tbody tr.hjb-row > td:last-child {
		border-bottom: 0;
	}
	.hjb-table tbody tr.hjb-row > td::before {
		color: var(--hjb-text-muted);
		content: attr(data-label);
		flex: 0 0 40%;
		font-size: var(--hjb-fs-xs);
		font-weight: 700;
		letter-spacing: 0.04em;
		min-width: 0;
		text-align: left;
		text-transform: uppercase;
	}
	/* Provider/compare/cta rows: no label, full width */
	.hjb-table tbody tr.hjb-row > td.hjb-cell-provider,
	.hjb-table tbody tr.hjb-row > td.hjb-cell-compare,
	.hjb-table tbody tr.hjb-row > td.hjb-cell-cta {
		text-align: left;
	}
	.hjb-table tbody tr.hjb-row > td.hjb-cell-provider::before,
	.hjb-table tbody tr.hjb-row > td.hjb-cell-compare::before,
	.hjb-table tbody tr.hjb-row > td.hjb-cell-cta::before {
		display: none;
	}
	/* Pris-celle: stack værdien, så normalpris (small) kan fylde linjen uden overflow. */
	.hjb-table tbody tr.hjb-row > td.hjb-cell-price {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.hjb-table tbody tr.hjb-row > td.hjb-cell-price::before {
		align-self: center;
	}
	.hjb-cell-price small {
		display: block;
		flex: 1 1 100%;
		min-width: 0;
		text-align: right;
		white-space: normal;
		word-break: break-word;
	}
	.hjb-table tbody tr.hjb-row > td.hjb-cell-cta {
		background: var(--hjb-bg-soft);
		border-radius: var(--hjb-radius-sm);
		margin-top: 0.4em;
		padding: 0.8em 0.9em;
	}
	.hjb-cta-stack {
		min-width: 0;
		width: 100%;
	}
	.hjb-cta {
		width: 100%;
	}

	/* Featured badge on mobile */
	.hjb-badge-featured {
		left: auto;
		right: 0.8em;
		top: -0.75em;
	}

	/* Details grid stacks */
	.hjb-detail-row {
		flex-direction: column;
		gap: 0.15em;
	}
	.hjb-detail-row dd {
		text-align: left;
	}

	.hjb-proscons {
		grid-template-columns: 1fr;
	}
	.hjb-compare-bar {
		border-radius: var(--hjb-radius);
		bottom: 0.6em;
		max-width: calc(100% - 1.2em);
		padding: 0.6em 0.7em;
		width: calc(100% - 1.2em);
	}
	.hjb-compare-bar-inner {
		flex-wrap: wrap;
		gap: 0.5em;
	}
	.hjb-compare-summary {
		flex: 1 1 100%;
		order: 1;
	}
	.hjb-compare-actions {
		flex: 1 1 100%;
		justify-content: space-between;
		margin-left: 0;
		order: 2;
	}
	.hjb-compare-count-label {
		display: none;
	}
	.hjb-compare-modal {
		align-items: stretch;
		padding: 0;
	}
	.hjb-compare-modal-dialog {
		border-radius: 0;
		height: 100dvh;
		max-height: 100vh;
	}
	.hjb-compare-modal-header {
		padding: calc(0.85em + env(safe-area-inset-top)) 1em 0.85em;
		position: sticky;
		top: 0;
		z-index: 5;
	}
	.hjb-compare-modal-close {
		background: var(--hjb-danger-bg);
		border-color: #fca5a5;
		box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
		color: var(--hjb-danger);
		height: 46px;
		position: fixed;
		right: 0.85em;
		top: calc(0.75em + env(safe-area-inset-top));
		width: 46px;
		z-index: 1000000;
	}
	.hjb-compare-modal-body {
		padding: 1em;
	}
	.hjb-compare-table th,
	.hjb-compare-table td {
		padding: 0.6em 0.7em;
	}
	.hjb-compare-cta-table-row .hjb-cta {
		min-height: 44px;
		padding-left: 0.85em;
		padding-right: 0.85em;
	}
	.hjb-compare-table,
	.hjb-compare-cta-row {
		--hjb-compare-label-col: 34%;
	}
	.hjb-compare-cta-row {
		overflow-x: hidden;
		padding: 0.8em 1em calc(0.9em + env(safe-area-inset-bottom));
	}
	.hjb-compare-cta-label {
		visibility: hidden;
		padding-right: 0.35em;
	}
	.hjb-compare-cta-cell {
		padding-left: 0.35em;
		padding-right: 0;
	}
	.hjb-compare-cta-cell .hjb-cta {
		min-height: 44px;
		padding-left: 0.9em;
		padding-right: 0.9em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hjb-card,
	.hjb-cta,
	.hjb-cta-arrow,
	.hjb-expand-btn .hjb-chev,
	.hjb-filters-toggle .hjb-chev,
	.hjb-card-details > summary .hjb-chev {
		transition: none;
	}
}
