/* ==========================================================================
   Results archive (/results/) — loads only on the Result post type archive,
   after site.css (which owns the :root design tokens).
   Class prefix: kl-results. Scoped colour variables live on .kl-results so
   the palette can be retuned in one place.
   ========================================================================== */

.kl-results {
	/* Surfaces */
	--kl-r-page-bg: var(--c-bg);
	/* Subtle brand-navy gradient (navy → slightly darker navy → navy), the
	   reference's low-contrast style but built from the site's --c-navy. */
	--kl-r-navy-deep: color-mix(in srgb, var(--c-navy) 78%, var(--c-black));
	/* Desktop/tablet hero gradient (unchanged from the original build) */
	--kl-r-hero-a: var(--c-navy);
	--kl-r-hero-b: #06101d;
	/* Phone-only surface behind hero + bar + cards (see the ≤600px block) */
	--kl-r-surface-a: var(--c-navy);
	--kl-r-surface-b: var(--kl-r-navy-deep);
	/* Desktop/tablet card gradient (unchanged from the original build) */
	--kl-r-card-a: #1a2f4d;
	--kl-r-card-b: #050c16;
	--kl-r-card-shadow: 0 1px 5px 2px rgba(0, 0, 0, 0.1), 0 1px 5px 2px rgba(0, 0, 0, 0.06);
	--kl-r-divider: rgba(255, 255, 255, 0.28);
	--kl-r-rule: rgba(16, 24, 32, 0.1);

	/* Text on dark */
	--kl-r-on-dark: var(--c-white);
	--kl-r-on-dark-soft: #eaeaea;
	--kl-r-accent: var(--c-blue-accent-2);       /* small labels on cards */
	--kl-r-pill-tint: var(--c-hover-blue);       /* result-type pill fill (alpha applied) */
	--kl-r-pill-border: rgba(255, 255, 255, 0.35);

	/* Filters (on light) */
	--kl-r-ink: var(--c-ink);
	--kl-r-ink-soft: #495057;
	--kl-r-muted: var(--c-muted);
	--kl-r-field-bg: #e9ecef;
	--kl-r-field-border: #dee2e6;
	--kl-r-mark: #495057;
	--kl-r-mark-on: var(--c-navy);

	/* Actions */
	--kl-r-cta: var(--c-brand-red);
	--kl-r-cta-hover: var(--c-red-dark);
	--kl-r-cta-text: var(--c-white);
	--kl-r-chip-bg: #eceef1;
	--kl-r-chip-bg-hover: var(--c-blue-accent-1);
	--kl-r-chip-text: var(--c-navy);
	/* Phone: dark toolbar + card stack */
	--kl-r-mobile-rule: #848b98;                       /* 7px band under the bar and each card */
	--kl-r-on-dark-border: rgba(255, 255, 255, 0.35);  /* chip / button outlines on the dark bar */
	--kl-r-on-dark-chip-bg: rgba(255, 255, 255, 0.08);
	--kl-r-on-dark-chip-bg-hover: rgba(255, 255, 255, 0.18);
	--kl-r-tooltip-bg: var(--c-white);
	--kl-r-tooltip-text: var(--c-black);
	--kl-r-tooltip-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35);

	/* Layout */
	--kl-r-max: 1240px;
	--kl-r-drawer: 360px;
	--kl-r-card-radius: 15px;

	background: var(--kl-r-page-bg);
	color: var(--kl-r-ink);
	font-family: var(--font-body);
	/* Restated body defaults: the staging kit sets body-level line-height
	   (1.3em) and letter-spacing (0.1px) that would otherwise inherit in. */
	font-size: var(--fs-body);
	line-height: 1.5;
	letter-spacing: normal;
	word-spacing: normal;
}

.kl-results *,
.kl-results *::before,
.kl-results *::after {
	box-sizing: border-box;
}

/* JS toggles visibility with the hidden attribute; keep it winning over the
   display values set on those elements below. */
.kl-results [hidden] {
	display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   Cascade shield — staging/production-only counter-rules (see home.css §4
   for the full rationale). There the archive renders inside the EverConvert
   theme + Elementor kit (body.elementor-kit-*), whose globals set a scaled
   rem root (html{font-size:16.5px}), element-level h1-6/a/button rules at
   (0,1,1), and !important line-height/font-weight/padding on bare p, li,
   ul, ol and h1-6. Every rule below either restates what local already
   computes, or is scoped under body[class*="elementor-kit-"] / :has(), which
   never match locally — so local rendering is unaffected.

   Conventions (mirrors home.css): element-styling rules carry the
   `.kl-results ` prefix; any line-height / font-weight declared on a p, li
   or h element is paired with `--kl-i-lh` / `--kl-i-fw`, which the
   !important pipe at the end of this block reads on staging.
   ══════════════════════════════════════════════════════════════════════════ */

/* Rem root: EverConvert scales html to 16.5px; pin it on this page only. */
html:has(main.kl-results) { font-size: 16px; }

/* Generic element counters at (0,1,2) — beat the kit's (0,1,1) element rules. */
main.kl-results :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-heading);
	text-transform: none;
	letter-spacing: inherit;
	word-spacing: normal;
}

main.kl-results a {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	word-spacing: normal;
}

main.kl-results a:hover,
main.kl-results a:focus {
	color: inherit;
}

main.kl-results p {
	margin-block-end: 0;
}

main.kl-results :is(button, input, select, textarea) {
	font-family: inherit;
	letter-spacing: inherit;
	word-spacing: normal;
}

main.kl-results button:disabled { opacity: 1; }

/* Staging's inline `a > span > svg { filter: brightness(0) invert(1) }` */
main.kl-results a svg { filter: none; }

/* Breadcrumb links in the toolbar trail: the kit's `a` rule would size them
   at 20px; keep them on the trail's own size/colour with a navy hover. */
.kl-results .kl-results__trail a {
	color: var(--kl-r-muted);
}

.kl-results .kl-results__trail a:hover,
.kl-results .kl-results__trail a:focus {
	color: var(--c-navy);
}

/* !important var-pipe: the kit's custom CSS forces line-height/font-weight
   on bare p/li/ul/ol and line-height on h1-6, plus padding-bottom on lists.
   Re-assert through custom properties so each component rule below keeps
   control (they set --kl-i-* beside their own declarations). */
body[class*="elementor-kit-"] .kl-results :is(p, li, ul, ol) {
	line-height: var(--kl-i-lh, inherit) !important;
	font-weight: var(--kl-i-fw, inherit) !important;
}

body[class*="elementor-kit-"] .kl-results :is(li, ul, ol) {
	padding-bottom: var(--kl-i-pb, 0) !important;
}

body[class*="elementor-kit-"] .kl-results :is(h1, h2, h3, h4, h5, h6) {
	line-height: var(--kl-i-lh, inherit) !important;
}

/* EverConvert's theme has `@media (max-width:768px) { aside { padding-left:
   0 !important } }`; the filters panel is an <aside>. Re-assert its left
   padding from the value each breakpoint sets in --kl-i-pl. */
body[class*="elementor-kit-"] .kl-results-filters {
	padding-left: var(--kl-i-pl, 24px) !important;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.kl-results-hero {
	background: linear-gradient(131deg, var(--kl-r-hero-a) 13.69%, var(--kl-r-hero-b) 56.25%, var(--kl-r-hero-a) 95.52%);
	color: var(--kl-r-on-dark);
	padding: 96px var(--gutter) 64px;
}

.kl-results-hero__inner {
	max-width: 875px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.kl-results .kl-results-hero__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 56px;
	font-weight: 700;
	line-height: 1.3;
	--kl-i-lh: 1.3;
	color: var(--kl-r-on-dark);
}

.kl-results .kl-results-hero__intro {
	margin: 0;
	max-width: 700px;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.4;
	--kl-i-fw: 300;
	--kl-i-lh: 1.4;
	color: var(--kl-r-on-dark-soft);
}

/* Explicit: <strong>'s default "bolder" is relative to the intro's 300 and
   only reaches 400 */
.kl-results .kl-results-hero__intro strong {
	font-weight: 600;
}

/* ── Body layout ──────────────────────────────────────────────────────── */
.kl-results__body {
	padding: 48px var(--gutter);
}

.kl-results__container {
	max-width: var(--kl-r-max);
	margin: 0 auto;
}

.kl-results__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Filters drawer (all widths) ──────────────────────────────────────── */
.kl-results-filters {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	/* Above the fixed mobile navbar (99999), the site menu panel (100001)
	   and the third-party chat/accessibility widgets staging and production
	   inject (which use very high z-indexes). Anything at the int32 maximum
	   would still tie-win by DOM order, so those are hidden while open — see
	   body.kl-results-filters-open below. */
	z-index: 2147483000;
	width: min(var(--kl-r-drawer), 88vw);
	padding: 24px 24px 32px;
	--kl-i-pl: 24px;   /* feeds the staging-only !important re-assert (shield) */
	background: var(--c-white);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
	transform: translateX(-105%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.kl-results-filters.is-open {
	transform: translateX(0);
}

.kl-results-filters__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 100%;
}

.kl-results-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 8px;
}

.kl-results-filters__title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1px;
	color: var(--kl-r-ink);
}

.kl-results .kl-results-filters__clear {
	margin-left: auto;
	font-size: 14px;
	font-weight: 300;
	color: var(--kl-r-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.kl-results .kl-results-filters__clear:hover,
.kl-results .kl-results-filters__clear:focus {
	color: var(--kl-r-ink);
	border-bottom-color: currentColor;
}

.kl-results .kl-results-filters__close {
	display: inline-flex;
	padding: 4px;
	background: transparent;
	border: 0;
	color: var(--kl-r-ink);
	cursor: pointer;
}

.kl-results-filters__group {
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--kl-r-rule);
	min-width: 0;
}

.kl-results-filters__label {
	display: block;
	padding: 16px 0 15px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--kl-r-ink);
}

/* A <legend> is rendered inside the fieldset's top border, which breaks the
   rule around the text. Floating it takes it out of that special layout so
   the border runs above it like the <label> groups. */
legend.kl-results-filters__label {
	float: left;
	width: 100%;
}

.kl-results-filters__choices {
	clear: both;
}

/* Native select with a custom chevron */
.kl-results-filters__select {
	position: relative;
	margin-bottom: 16px;
}

.kl-results-filters__select select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	padding: 11px 40px 11px 12px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
	color: var(--kl-r-ink-soft);
	background: var(--kl-r-field-bg);
	border: 1px solid var(--kl-r-field-border);
	border-radius: 5px;
	cursor: pointer;
}

.kl-results-filters__select::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--kl-r-ink-soft);
	border-bottom: 2px solid var(--kl-r-ink-soft);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.kl-results-filters__select select:focus-visible {
	outline: 2px solid var(--c-blue-main);
	outline-offset: 1px;
}

/* Radio / checkbox lists */
.kl-results .kl-results-filters__choices {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kl-results-filters__choice {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	line-height: 1;
	color: var(--kl-r-ink-soft);
	cursor: pointer;
}

.kl-results-filters__choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.kl-results-filters__mark {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 1px solid var(--kl-r-mark);
	border-radius: 100px;
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.kl-results-filters__mark--box {
	border-radius: 4px;
}

.kl-results-filters__mark::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--kl-r-on-dark);
	border-bottom: 2px solid var(--kl-r-on-dark);
	transform: translateY(-1px) rotate(-45deg);
	opacity: 0;
}

.kl-results-filters__choice input:checked + .kl-results-filters__mark {
	background: var(--kl-r-mark-on);
	border-color: var(--kl-r-mark-on);
}

.kl-results-filters__choice input:checked + .kl-results-filters__mark::after {
	opacity: 1;
}

.kl-results-filters__choice input:focus-visible + .kl-results-filters__mark {
	outline: 2px solid var(--c-blue-main);
	outline-offset: 2px;
}

/* Pinned to the bottom of the drawer */
.kl-results-filters__actions {
	margin-top: auto;
	padding-top: 8px;
}

/* Apply commits the pending selection (changes only refresh facet availability) */
.kl-results .kl-results-filters__apply {
	width: 100%;
	padding: 12px 20px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--kl-r-cta-text);
	background: var(--kl-r-cta);
	border: 1px solid var(--kl-r-cta);
	border-radius: 7.5px;
	cursor: pointer;
}

.kl-results .kl-results-filters__apply:hover,
.kl-results .kl-results-filters__apply:focus {
	background: var(--kl-r-cta-hover);
	border-color: var(--kl-r-cta-hover);
	color: var(--kl-r-cta-text);
}

.kl-results .kl-results-filters__apply:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.kl-results-filters__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 2147482999; /* just under the drawer */
}

.kl-results-filters__backdrop[hidden] {
	display: none;
}

/* While the filters modal is open, hide the floating third-party widgets
   (SimplyConvert / ApexChat "Case Evaluation" tab, chat invitation bars,
   UserWay accessibility icon) — they pin themselves at the int32 z-index
   ceiling at the end of <body>, so no stacking value of ours can cover them. */
.kl-results-filters-open :is(
	.uwy,
	.uai,
	[class*="userway"],
	[class*="apexchat"],
	[id*="apexchat"],
	.sc_mobile_help,
	[class*="sc_"][class*="help"],
	[id^="_sc"],
	iframe[src*="apexchat"],
	iframe[src*="simplyconvert"],
	iframe[src*="sellwithchat"]
) {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ── Toolbar: mobile toggle + active chips ─────────────────────────────── */
.kl-results__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* Breadcrumb trail in the toolbar: Home › Results › N results. Reuses the
   site's .kl-breadcrumbs link/separator styles; every crumb, including the
   current page and the count, shares the muted colour. */
/* Right-hand cluster: Clear all + chips, then the Filters button */
.kl-results__toolbar-actions {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.kl-results .kl-results__trail {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0;
	overflow: visible;
	font-size: 0.9rem;
	color: var(--kl-r-muted);
}

.kl-results .kl-results__trail .kl-breadcrumbs__trail {
	display: inline;
}

.kl-results .kl-results__trail .kl-breadcrumbs__current {
	color: inherit;
}

.kl-results .kl-results__status {
	margin: 0;
	font-size: inherit;
	color: inherit;
}

.kl-results .kl-results__filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--kl-r-ink);
	background: var(--c-white);
	border: 1px solid var(--kl-r-field-border);
	border-radius: 100px;
	cursor: pointer;
}

.kl-results .kl-results__filters-toggle span {
	line-height: 1;
}

.kl-results__filters-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--kl-r-cta-text);
	background: var(--kl-r-cta);
	border-radius: 100px;
}

.kl-results .kl-results__chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kl-results .kl-results__chip {
	font-family: inherit;
	border: 1px solid var(--kl-r-field-border);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	color: var(--kl-r-chip-text);
	background: var(--kl-r-chip-bg);
	border-radius: 5px;
	text-decoration: none;
}

.kl-results .kl-results__chip:hover,
.kl-results .kl-results__chip:focus {
	background: var(--kl-r-chip-bg-hover);
	color: var(--kl-r-chip-text);
}

.kl-results__chip-x {
	font-size: 15px;
	line-height: 1;
}

/* "Clear all" stays a plain underlined text link — no border/box */
.kl-results .kl-results__chip--clear {
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--kl-r-muted);
	text-decoration: underline;
}

.kl-results .kl-results__chip--clear:hover,
.kl-results .kl-results__chip--clear:focus {
	background: transparent;
	color: var(--kl-r-ink);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.kl-results__list-wrap {
	position: relative;
}

/* Two per row from tablet up (single column ≤600px, below) */
.kl-results__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	transition: opacity 0.2s ease;
}

.kl-results__list-wrap.is-loading .kl-results__list {
	opacity: 0.35;
	pointer-events: none;
}

/* Loading overlay: spinner only, shown while the wrap is busy */
.kl-results__loader {
	position: absolute;
	inset: 0;
	display: none;
	justify-content: center;
	align-items: flex-start;
	padding-top: 120px;
	z-index: 2;
}

.kl-results__list-wrap.is-loading .kl-results__loader {
	display: flex;
}

.kl-results__spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--kl-r-field-border);
	border-top-color: var(--kl-r-cta);
	border-radius: 100%;
	animation: kl-results-spin 0.8s linear infinite;
}

@keyframes kl-results-spin {
	to { transform: rotate(360deg); }
}

/* Sidebar dims while a fetch is in flight */
.kl-results-filters__form {
	transition: opacity 0.2s ease;
}

.kl-results-filters__form.is-loading {
	opacity: 0.6;
}

/* Facet-disabled options (would match nothing with the other filters) */
.kl-results-filters__choice.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.kl-results-filters__select select option:disabled {
	color: var(--kl-r-muted);
}

.kl-results-card {
	display: flex;
	flex-direction: column;
	padding: 1.5em 1.5em 2em 1.5em;
	background: linear-gradient(131deg, var(--kl-r-card-a) 13.69%, var(--kl-r-card-b) 56.25%, var(--kl-r-card-a) 86.31%);
	color: var(--kl-r-on-dark-soft);
	border-radius: var(--kl-r-card-radius);
	box-shadow: var(--kl-r-card-shadow);
}

.kl-results-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.kl-results-card__pill {
	display: inline-block;
	padding: 8px 16px;
	font-size: 14px;
	line-height: 1;
	color: var(--kl-r-on-dark-soft);
	background: linear-gradient(131deg, color-mix(in srgb, var(--kl-r-pill-tint) 25%, transparent) 13.69%, color-mix(in srgb, var(--kl-r-pill-tint) 50%, transparent) 56.25%, color-mix(in srgb, var(--kl-r-pill-tint) 25%, transparent) 86.31%);
	border: 1px solid var(--kl-r-pill-border);
	border-radius: 100px;
}

.kl-results-card__location {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	line-height: 1;
	color: var(--kl-r-on-dark-soft);
	text-align: center;
}

.kl-results-card__pin {
	color: var(--kl-r-accent);
}

.kl-results-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 32px;
}

.kl-results .kl-results-card__amount {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(36px, 4vw, 48px);
	font-weight: 600;
	line-height: 1;
	--kl-i-fw: 600;
	--kl-i-lh: 1;
	color: var(--kl-r-on-dark);
}

/* Side-by-side meta columns (Incident Type | Initial Offer, when set) */
.kl-results-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	width: 100%;
	gap: 16px 48px;
	padding-top: 24px;
}

.kl-results-card__meta {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 8px;
}

.kl-results-card__label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--kl-r-accent);
}

/* Load more moves focus to the first new card's heading (tabindex="-1") for
   assistive tech; it is never reached by Tab, so no ring — iOS Safari would
   otherwise draw one around the text. */
.kl-results .kl-results-card__case-type[tabindex="-1"]:focus {
	outline: none;
	box-shadow: none;
}

.kl-results .kl-results-card__case-type,
.kl-results .kl-results-card__value {
	margin: 0;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.1;
	--kl-i-fw: 300;
	--kl-i-lh: 1.1;
	color: var(--kl-r-on-dark-soft);
}

.kl-results-card__divider {
	width: 100%;
	height: 0;
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--kl-r-divider);
}

/* Side-by-side team columns (Attorney(s) | Legal Team, when set) — same
   layout as the meta row above */
.kl-results-card__team-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	width: 100%;
	gap: 16px 48px;
	padding-bottom: 24px;
}

.kl-results-card__team {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 12px;
}

.kl-results .kl-results-card__avatars {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

.kl-results .kl-results-card__avatars li {
	position: relative;
}

.kl-results .kl-results-card__avatars li + li {
	margin-left: -10px;
}

.kl-results .kl-results-card__avatars li:hover,
.kl-results .kl-results-card__avatars li:focus-within {
	z-index: 2;
}

/* Name tooltip below the avatar: white bubble + arrow, fades/slides in on
   hover or keyboard focus (same treatment as the reference stacked images). */
.kl-results .kl-results-card__avatars li[data-tooltip]::before,
.kl-results .kl-results-card__avatars li[data-tooltip]::after {
	position: absolute;
	left: 50%;
	display: none;
	opacity: 0;
	transform: translate(-50%, -0.5em);
	pointer-events: none;
	user-select: none;
}

.kl-results .kl-results-card__avatars li[data-tooltip]::after {
	content: attr(data-tooltip);
	top: calc(100% + 5px);
	z-index: 1000;
	min-width: 48px;
	padding: 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	text-transform: none;
	color: var(--kl-r-tooltip-text);
	background: var(--kl-r-tooltip-bg);
	border-radius: 4px;
	box-shadow: var(--kl-r-tooltip-shadow);
}

.kl-results .kl-results-card__avatars li[data-tooltip]::before {
	content: "";
	top: 101%;
	z-index: 1001;
	border: 5px solid transparent;
	border-top-width: 0;
	border-bottom-color: var(--kl-r-tooltip-bg);
}

.kl-results .kl-results-card__avatars li[data-tooltip]:hover::before,
.kl-results .kl-results-card__avatars li[data-tooltip]:hover::after,
.kl-results .kl-results-card__avatars li[data-tooltip]:focus-within::before,
.kl-results .kl-results-card__avatars li[data-tooltip]:focus-within::after {
	display: block;
	animation: kl-results-tooltip 300ms ease-out forwards;
}

@keyframes kl-results-tooltip {
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.kl-results .kl-results-card__avatar {
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	border-radius: 100%;
	background: var(--c-white);
	border: 1px solid var(--c-white);
	overflow: hidden;
	text-decoration: none;
	color: var(--c-navy);
	transition: transform 0.15s ease;
}

.kl-results .kl-results-card__avatar:hover,
.kl-results .kl-results-card__avatar:focus {
	transform: translateY(-2px);
}

.kl-results-card__avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kl-results-card__avatar-initials {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
}

.kl-results-card__summary {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.kl-results .kl-results-card__summary-text p {
	margin: 0 0 0.6em;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.4em;
	--kl-i-fw: 300;
	--kl-i-lh: 1.4em;
	color: var(--kl-r-on-dark-soft);
}

.kl-results .kl-results-card__summary-text p:last-child {
	margin-bottom: 0;
}

/* ── Load more / empty state ───────────────────────────────────────────── */
.kl-results__more-wrap {
	padding-top: 12px;
	text-align: center;
}

.kl-results .kl-results__more {
	display: inline-block;
	padding: 12.5px 20px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	color: var(--kl-r-cta-text);
	background: var(--kl-r-cta);
	border: 1px solid var(--kl-r-cta);
	border-radius: 7.5px;
	box-shadow: 5px 2px 10px 5px rgba(0, 0, 0, 0.2);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.kl-results .kl-results__more:hover,
.kl-results .kl-results__more:focus {
	background: var(--kl-r-cta-hover);
	border-color: var(--kl-r-cta-hover);
	color: var(--kl-r-cta-text);
}

.kl-results .kl-results__more.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.kl-results__empty {
	padding: 48px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.kl-results .kl-results__empty-title {
	margin: 0;
	font-size: 18px;
	color: var(--kl-r-ink);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.kl-results-hero {
		padding-top: 64px;
		padding-bottom: 48px;
	}

	.kl-results .kl-results-hero__title {
		font-size: 44px;
	}

	.kl-results__body {
		padding-top: 40px;
	}
}

/* ── Phone + tablet (≤1024px): sticky filter bar, edge-to-edge stacked
      cards, full-screen filter sheet, one tiled gradient surface (layout
      mirrors the reference's mobile archive). Desktop starts at 1025px. ── */
@media (max-width: 1024px) {
	.kl-results .kl-results-hero__title {
		font-size: 32px;
		line-height: 1.2;
		--kl-i-lh: 1.2;
	}

	.kl-results .kl-results-hero__intro {
		font-size: 16px;
	}

	/* One gradient on <main> spans hero, bar and cards; those sit on it
	   with no surface of their own, separated only by the 7px bands. */
	.kl-results {
		background-image: linear-gradient(131deg, #001E45 13.69%, #173861 56.25%, #001E45 86.31%);
		background-color: #001E45;
		/* Tile the gradient at the page's initial height (measured into
		   --kl-results-surface-h by results.js) and repeat it downwards, so
		   Load more extends the page without stretching the gradient. Both
		   ends of the gradient are the same flat #001E45, so tiles join
		   without a visible seam. */
		background-size: 100% var(--kl-results-surface-h, 100%);
		background-repeat: repeat-y;
	}

	.kl-results-hero {
		background: none;
	}

	.kl-results__body {
		padding-top: 0;
		padding-bottom: 32px;
		background: none;
		color: var(--kl-r-on-dark-soft);
	}

	.kl-results .kl-results__empty-title {
		color: var(--kl-r-on-dark);
	}

	.kl-results__main {
		gap: 0;
	}

	/* Toolbar becomes a full-bleed sticky bar: active chips left, round
	   icon-only Filters button right. The breadcrumb trail is not shown here. */
	.kl-results__toolbar {
		position: sticky;
		/* Stick just under the site header (its height is measured into
		   --kl-results-header-h by results.js) and follow it as it hides/shows,
		   instead of sticking at 0 where the header slides over the bar on
		   every scroll-direction change. */
		/* 1px above the measured edge so the bar tucks under the header (which
		   has the higher z-index) and sub-pixel header heights never leave a gap */
		top: calc(var(--kl-results-header-h, 0px) - 1px);
		transition: top .35s cubic-bezier(.22, .61, .36, 1);
		z-index: 100;
		margin-inline: calc(-1 * var(--gutter));
		padding: 9px var(--gutter) 8px;
		/* Solid top-of-gradient tone: blends with the body at rest and still
		   covers the cards scrolling beneath it while stuck */
        background: #001E45;
		/*border-bottom: 7px solid var(--kl-r-mobile-rule);*/
		color: var(--kl-r-on-dark);
		flex-wrap: nowrap;
	}

	/* Chips + Filters button re-coloured for the dark bar */
	.kl-results .kl-results__chip {
		color: var(--kl-r-on-dark-soft);
		background: var(--kl-r-on-dark-chip-bg);
		border-color: var(--kl-r-on-dark-border);
	}

	.kl-results .kl-results__chip:hover,
	.kl-results .kl-results__chip:focus {
		color: var(--kl-r-on-dark);
		background: var(--kl-r-on-dark-chip-bg-hover);
	}

	.kl-results .kl-results__chip--clear {
		color: var(--kl-r-on-dark-soft);
		background: transparent;
        padding-left: 0;
	}

	.kl-results .kl-results__chip--clear:hover,
	.kl-results .kl-results__chip--clear:focus {
		color: var(--kl-r-on-dark);
		background: transparent;
	}

	.kl-results .kl-results__filters-toggle {
		color: var(--kl-r-on-dark);
		background: transparent;
		border-color: var(--kl-r-on-dark-border);
	}

	body.header-hidden .kl-results__toolbar {
		top: 0;
	}

	.kl-results .kl-results__trail {
		display: none;
	}

	.kl-results__toolbar-actions {
		width: 100%;
		flex-wrap: nowrap;
		justify-content: space-between;
	}

	.kl-results .kl-results__chips {
		flex: 1 1 auto;
		min-width: 0;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.kl-results .kl-results__chips::-webkit-scrollbar {
		display: none;
	}

	.kl-results .kl-results__chips li {
		flex: 0 0 auto;
	}

	.kl-results .kl-results__filters-toggle {
		position: relative;
		flex: 0 0 auto;
		margin-left: auto;
		width: 42px;
		height: 42px;
		padding: 0;
		justify-content: center;
	}

	.kl-results .kl-results__filters-toggle > span:not(.kl-results__filters-count) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.kl-results .kl-results__filters-toggle .kl-results__filters-count {
		position: absolute;
		top: -6px;
		right: -6px;
	}

	/* Cards: single column, full-bleed, no radius, stacked without gaps */
	.kl-results__list {
		grid-template-columns: 1fr;
		gap: 0;
		margin-inline: calc(-1 * var(--gutter));
	}

	.kl-results-card {
		padding: 4em 1em;
		background: none;
		border-radius: 0;
		border-top: 7px solid var(--kl-r-mobile-rule);
		box-shadow: none;
	}

	.kl-results__empty {
		padding-inline: 0;
	}

	.kl-results__more-wrap {
		padding-top: 32px;
	}

	/* Filters: full-screen sheet that slides up from the bottom */
	.kl-results-filters {
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 32px var(--gutter);
		--kl-i-pl: var(--gutter);
		box-shadow: none;
		transform: translateY(100%);
	}

	.kl-results-filters.is-open {
		transform: translateY(0);
	}

	.kl-results-filters__head {
		padding-bottom: 16px;
	}

	.kl-results .kl-results-filters__title {
		font-size: 28px;
	}

	.kl-results-card__body {
		padding-top: 32px;
	}

	.kl-results .kl-results-card__amount {
		font-size: 40px;
	}

	.kl-results-card__top {
		gap: 16px;
	}

	.kl-results__more-wrap {
		text-align: center;
	}
}

/* ── Tablet only (601–1024px): same stacked treatment, two cards per row ── */
@media (min-width: 601px) and (max-width: 1024px) {
	/* Steeper sweep for the wider tile; still tiled at the first-page height */
	.kl-results {
		background-image: linear-gradient(160deg, #001E45 13.69%, #173861 56.25%, #001E45 86.31%);
	}

	.kl-results__toolbar {
		padding-left: 1em;
		padding-right: 1em;
	}

	/* Filters: a 425px left-anchored panel (slides in from the left like the
	   desktop drawer) instead of the phone's full-screen bottom sheet */
	.kl-results-filters {
		right: auto;
		width: 425px;
		padding-left: 1em;
		padding-right: 1em;
		--kl-i-pl: 1em;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
		transform: translateX(-105%);
	}

	.kl-results-filters.is-open {
		transform: translateX(0);
	}

	.kl-results__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* 6px band between the two columns, split 3px per card (left card's
	   right edge + right card's left edge); the top band stays on both */
	.kl-results-card:nth-child(odd) {
		border-right: 3px solid var(--kl-r-mobile-rule);
		border-left: 0;
	}

	.kl-results-card:nth-child(even) {
		border-left: 3px solid var(--kl-r-mobile-rule);
		border-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kl-results-filters,
	.kl-results .kl-results-card__avatar,
	.kl-results .kl-results__more,
	.kl-results__list,
	.kl-results-filters__form,
	.kl-results__toolbar {
		transition: none;
	}

	.kl-results__spinner {
		animation-duration: 2s;
	}

	.kl-results .kl-results-card__avatars li[data-tooltip]:hover::before,
	.kl-results .kl-results-card__avatars li[data-tooltip]:hover::after,
	.kl-results .kl-results-card__avatars li[data-tooltip]:focus-within::before,
	.kl-results .kl-results-card__avatars li[data-tooltip]:focus-within::after {
		animation: none;
		opacity: 1;
		transform: translate(-50%, 0);
	}
}
