/*
 * Homepage discovery refresh: filter bar, results line, filter drawer and the
 * markets (Africa) control.
 *
 * Reference: plans/home-filters-2026-10-04/prototype.html (r8). Loads after
 * css/site-chrome.css (tokens) on the front page only. Anchored on
 * #home-filters and #home-filter-drawer so the legacy .filter-chip /
 * .home-filter-drawer layers can stay in place for other surfaces.
 *
 * Every chip is one exclusive view (front-page-core.js setActiveChip);
 * age, rates, ethnicity and nationality combine with it.
 */

/* ---------------------------------------------------- homepage rhythm */

/* Desktop keeps its panel/rule hierarchy; phones share an open canvas. */
@media screen and (max-width: 640px) {
	:is(.home, .front-page) #site-header {
		border-bottom: 0;
	}

	:is(.home, .front-page) #site-discovery.modern-mobile-discovery-strip {
		border-bottom: 0;
		padding-bottom: 16px;
	}

	:is(.home, .front-page) .body > :is(.homepage-ad-carousel, .online-stories-section) {
		border: 0 !important;
		border-radius: 0;
		background: transparent !important;
		box-shadow: none;
		margin-bottom: 20px;
	}

	/* Lazy-loaded ads include a second wrapper inside the outer mount. */
	:is(.home, .front-page) .body .homepage-ad-carousel {
		background: transparent !important;
		box-shadow: none;
		padding-bottom: 6px !important;
		margin-bottom: 4px;
	}

	/* Nested wrapper spacing must not stack into a large gap below the dots. */
	:is(.home, .front-page) .body > .homepage-ad-carousel {
		margin-bottom: 10px;
	}

	:is(.home, .front-page) .homepage-ad-carousel .static-ad-carousel {
		gap: 10px;
	}

	/* 82% × 0.85: reduce both image dimensions through the existing ratio. */
	:is(.home, .front-page) .homepage-ad-carousel .static-ad-carousel .ad-card {
		flex-basis: 69.7%;
		min-width: 69.7%;
	}

	:is(.home, .front-page) .homepage-ad-carousel .static-ad-carousel .ad-card--image {
		min-height: 0;
		max-height: none;
		aspect-ratio: 4 / 5;
	}

	:is(.home, .front-page) .body > .bodybox-homepage > .section-header {
		border-bottom: 0;
		padding-bottom: 0;
		margin-bottom: 16px;
	}

	:is(.home, .front-page) .body > .online-stories-section {
		padding-top: 8px !important;
		padding-bottom: 4px !important;
		margin-bottom: 12px;
	}

	/* An empty load-more footer should not reserve another row of space. */
	:is(.home, .front-page) .online-stories-section .homepage-section__footer:not(:has(*)) {
		display: none;
	}

	/* Quiet section boundaries, with the same contrast as the filter rule. */
	:is(.home, .front-page) .body > .bodybox-homepage:is(.vvip-section, .featured-section, .premium-section, .newlyadded-section, .reviews-section, .private-profiles-section) {
		border-bottom-color: rgba(255, 255, 255, 0.06) !important;
	}

	:is(.home, .front-page) .body > .vvip-section {
		padding-top: 0 !important;
		padding-bottom: 12px !important;
		margin-bottom: 8px;
	}

	#vvip-escorts-section .vvip-rail {
		padding-bottom: 8px;
	}

	:is(.home, .front-page) .vvip-section + #vip-escorts-section {
		padding-top: 12px !important;
	}
}

/* One neutral glass surface, rather than stacked opaque card layers. */
#vvip-escorts-section .escort-card--vvip {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)), rgba(20, 20, 22, 0.78);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px -16px rgba(0, 0, 0, 0.7);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

#vvip-escorts-section .escort-card--vvip:hover {
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -16px rgba(0, 0, 0, 0.7);
}

#vvip-escorts-section .escort-card--vvip .thumb {
	/* style.css still forces .girl .thumb to white with !important. */
	background: transparent !important;
}

#vvip-escorts-section .escort-card--vvip .escort-card__body {
	background: transparent;
}

#vvip-escorts-section .escort-card--vvip .escort-card__body {
	border-top: 0;
	border-left-color: rgba(255, 255, 255, 0.05);
}

/* ------------------------------------------------------------ filter bar */

#home-filters.filter-chips-section {
	container: xf / inline-size;
	margin-bottom: 18px !important;
	padding: 12px !important;
	border: 1px solid rgba(230, 223, 224, 0.11) !important;
	border-radius: 8px;
	background: linear-gradient(145deg, #171618 0%, #151416 54%, #191518 100%) !important;
	box-shadow: none;
	font-family: var(--xc-font);
}

#home-filters::after {
	content: none;
}

#home-filters .filter-chip::before,
#home-filters .filter-chip::after,
#home-filter-drawer .filter-chip::before,
#home-filter-drawer .filter-chip::after {
	content: none;
}

#home-filters .xf__controls {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

#home-filters .xf__seg { order: 1; }
#home-filters .xf__rule { order: 2; width: 1px; height: 24px; flex: none; background: var(--xc-rule-2); }
#home-filters .xf__rail { order: 3; flex: 1 1 0; min-width: 0; }
#home-filters .xf__controls .xf__filters { order: 4; margin-left: auto; }

/* Segmented control: one connected track, the tinted indicator slides. */
#home-filters .xf-seg,
#home-filter-drawer .xf-seg {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	padding: 3px;
	border: 1px solid var(--xc-rule-2);
	border-radius: 6px;
	background: #101010;
}

.xf-seg__indicator {
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 0;
	width: 0;
	border: 1px solid rgba(214, 25, 54, 0.72);
	border-radius: 4px;
	background: rgba(184, 15, 41, 0.15);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.34s var(--xc-ease-out), width 0.34s var(--xc-ease-out), opacity 0.2s;
}

.xf-seg.has-selection .xf-seg__indicator {
	opacity: 1;
}

.xf-seg.is-settling .xf-seg__indicator {
	transition: none;
}

#home-filters .xf-seg__item,
#home-filter-drawer .xf-seg__item {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	color: var(--xc-ink-2);
	font: 700 13px/1 var(--xc-font);
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s;
}

#home-filters .xf-seg__item:hover,
#home-filter-drawer .xf-seg__item:hover {
	background: transparent;
	color: var(--xc-ink);
}

#home-filters .xf-seg__item[aria-pressed="true"],
#home-filter-drawer .xf-seg__item[aria-pressed="true"] {
	background: transparent;
	color: #fff;
}

.xf-live {
	width: 6px;
	height: 6px;
	flex: none;
	border-radius: 50%;
	background: var(--xc-live);
	box-shadow: 0 0 0 3px rgba(112, 213, 171, 0.14);
}

/* Quick-filter rail. */
#home-filters .xf-rail {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 1px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

#home-filters .xf-rail::-webkit-scrollbar {
	display: none;
}

#home-filters .xf-rail.is-overflowing {
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}

#home-filters .xf-rail.is-overflowing.is-scrolled {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
}

#home-filters .xf-rail.is-scrolled:not(.is-overflowing) {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px);
	mask-image: linear-gradient(90deg, transparent, #000 24px);
}

#home-filters .xf-rail__rule {
	width: 1px;
	height: 22px;
	flex: none;
	margin: 0 4px;
	background: var(--xc-rule-2);
}

/* Chips (bar + drawer). */
#home-filters .xf-chip,
#home-filter-drawer .xf-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: none;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	background: transparent;
	box-shadow: none;
	color: var(--xc-ink-2);
	font: 700 13px/1 var(--xc-font);
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

#home-filters .xf-chip:hover,
#home-filter-drawer .xf-chip:hover {
	background: rgba(255, 255, 255, 0.04);
	color: var(--xc-ink);
}

#home-filters .xf-chip[aria-pressed="true"],
#home-filter-drawer .xf-chip[aria-pressed="true"] {
	background: rgba(184, 15, 41, 0.15);
	border-color: rgba(214, 25, 54, 0.72);
	color: #fff;
}

.xf-chip__icon,
.xf-chip__check {
	display: inline-grid;
	place-items: center;
	color: var(--xc-ink-3);
}

.xf-chip__icon .xc-icon,
.xf-chip__check .xc-icon {
	width: 16px;
	height: 16px;
}

.xf-chip__check {
	display: none;
}

.xf-chip[aria-pressed="true"] .xf-chip__icon {
	display: none;
}

.xf-chip[aria-pressed="true"] .xf-chip__check {
	display: inline-grid;
	color: #fff;
}

/* Unlockable reads as on/off: a squared switch, no pill. */
#home-filters .xf-chip--switch {
	gap: 10px;
	padding: 0 10px 0 13px;
	color: var(--xc-ink);
}

#home-filters .xf-chip--switch[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.24);
}

.xf-switch {
	position: relative;
	flex: none;
	width: 32px;
	height: 18px;
	border-radius: 4px;
	background: #3a3a3a;
	transition: background-color 0.22s;
}

.xf-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: #cfcfcf;
	transition: transform 0.26s var(--xc-ease-out), background-color 0.22s;
}

[aria-pressed="true"] > .xf-switch {
	background: var(--xc-accent);
}

[aria-pressed="true"] > .xf-switch::after {
	transform: translateX(14px);
	background: #fff;
}

/* My type: a suggestion, not a filter. */
#home-filters .xf-chip--quiet {
	border-style: dashed;
	border-color: rgba(255, 255, 255, 0.16);
	color: var(--xc-ink-2);
}

#home-filters .xf-chip--quiet .mx-find-type__mark {
	display: none;
}

/* Filters button. */
#home-filters .xf-filters {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid var(--xc-rule-2);
	border-radius: 6px;
	background: var(--xc-raised);
	box-shadow: none;
	color: var(--xc-ink);
	font: 800 13px/1 var(--xc-font);
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s;
}

#home-filters .xf-filters.is-active {
	border-color: rgba(255, 255, 255, 0.26);
}

#home-filters .xf-filters:hover,
#home-filters .xf-filters[aria-expanded="true"] {
	background: var(--xc-raised-2);
	color: var(--xc-ink);
}

#home-filters .xf-filters .xc-icon {
	width: 17px;
	height: 17px;
}

.xf-count {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 3px;
	background: #ececec;
	color: #0e0e0e;
	font: 800 11px/1 var(--xc-font);
	font-variant-numeric: tabular-nums;
}

.xf-count[hidden] {
	display: none;
}

/*
 * Container layouts come after the component rules so they win at equal
 * specificity.
 */

/* Narrower desktops: view + Filters on top, quick filters on their own line. */
@container xf (max-width: 1099px) {
	#home-filters .xf__rule { display: none; }
	#home-filters .xf__controls .xf__rail { order: 5; flex: 1 1 100%; }
}

/* Phones: full-width view control; Filters leads the scrolling quick filters. */
@container xf (max-width: 600px) {
	#home-filters .xf__controls { gap: 8px; }
	#home-filters .xf__controls .xf__seg { flex: 1 1 100%; }
	#home-filters .xf__seg .xf-seg__item { flex: 1; min-width: 0; padding: 0 2px; height: 40px; min-height: 40px; }
	#home-filters .xf__controls .xf__filters { order: 3; margin-left: 0; height: 44px; min-height: 44px; min-width: 0; }
	#home-filters .xf__controls .xf__rail { order: 4; flex: 1 1 0; }
	#home-filters .xf__rail .xf-chip { height: 44px; min-height: 44px; }
}

@media screen and (max-width: 640px) {
	#home-filters.filter-chips-section {
		margin-bottom: 20px !important;
		padding: 16px 16px 0 !important;
		border: 0 !important;
		border-radius: 0;
		background: transparent !important;
	}

	/* One inset hairline marks the move from live stories to discovery. */
	#home-filters::before {
		content: "";
		position: absolute;
		inset: 0 16px auto;
		height: 1px;
		background: rgba(255, 255, 255, 0.06);
		pointer-events: none;
	}

	#home-filters .xf__controls {
		gap: 12px;
	}

	#home-filters .xf-seg {
		border-color: transparent;
		background: rgba(255, 255, 255, 0.025);
	}
}

/* Results line: count, removable tokens, Clear filters only when needed. */
#home-filters .xf-results {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	margin: 12px 0 0;
	padding: 10px 2px 0;
	border: 0;
	border-top: 1px solid var(--xc-rule);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--xc-font);
}

@media screen and (max-width: 640px) {
	#home-filters .xf-results {
		min-height: 32px;
		padding: 0 2px;
		border: 0;
	}
}

#home-filters .xf-results.is-spotlighted {
	background: transparent;
}

#home-filters .xf-results__count {
	flex: none;
	color: var(--xc-ink);
	font: 800 14px/1 var(--xc-font);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

#home-filters .xf-results__count strong {
	font: inherit;
	color: inherit;
}

#home-filters .xf-results__count span {
	color: var(--xc-ink-3);
	font-weight: 600;
}

#home-filters .xf-results__tokens {
	display: flex;
	gap: 6px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

#home-filters .xf-results__tokens::-webkit-scrollbar {
	display: none;
}

.xf-token {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: none;
	height: 28px;
	padding: 0 3px 0 9px;
	border: 1px solid var(--xc-rule);
	border-radius: 3px;
	background: var(--xc-raised);
	color: var(--xc-ink);
	font: 700 12px/1 var(--xc-font);
	white-space: nowrap;
	animation: xf-token-in 0.26s var(--xc-ease-out);
}

.xf-token__remove {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--xc-ink-3);
	cursor: pointer;
}

.xf-token__remove:hover {
	background: var(--xc-raised-2);
	color: var(--xc-ink);
}

.xf-token__remove svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

@keyframes xf-token-in {
	from { opacity: 0; transform: translateY(3px); }
}

#home-filters .xf-results__clear {
	display: inline-flex;
	align-items: center;
	flex: none;
	min-height: 32px;
	margin-left: auto;
	padding: 0 2px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--xc-ink-3);
	font: 700 12px/1 var(--xc-font);
	text-decoration: none !important;
	text-underline-offset: 3px;
	white-space: nowrap;
	cursor: pointer;
}

#home-filters .xf-results__clear:hover {
	color: var(--xc-ink);
	text-decoration: underline !important;
}

#home-filters .xf-results__clear[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- drawer */

#home-filter-drawer.home-filter-drawer {
	padding: 0;
	font-family: var(--xc-font);
}

#home-filter-drawer .home-filter-drawer__scrim {
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

#home-filter-drawer .home-filter-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	display: flex;
	flex-direction: column;
	width: min(440px, 100%);
	max-width: none;
	height: auto;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--xc-rule-2);
	border-radius: 0;
	background: var(--xc-sheet);
	box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45);
	color: var(--xc-ink);
	transform: translateX(100%);
	transition: transform 0.38s var(--xc-ease-out);
	outline: none;
}

#home-filter-drawer.is-open .home-filter-drawer__panel {
	transform: none;
}

#home-filter-drawer .xf-drawer__handle {
	display: none;
}

#home-filter-drawer .home-filter-drawer__header {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	margin: 0;
	padding: 0 12px 0 20px;
	border-bottom: 1px solid var(--xc-rule);
	background: transparent;
}

#home-filter-drawer .home-filter-drawer__title {
	margin: 0;
	color: #fff;
	font: 800 20px/1.1 var(--xc-font);
	letter-spacing: -0.02em;
}

#home-filter-drawer .home-filter-drawer__close {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--xc-rule-2);
	border-radius: 6px;
	background: transparent;
	color: var(--xc-ink-2);
	cursor: pointer;
}

#home-filter-drawer .home-filter-drawer__close::before,
#home-filter-drawer .home-filter-drawer__close::after {
	content: none;
}

#home-filter-drawer .home-filter-drawer__close:hover {
	background: var(--xc-raised);
	color: var(--xc-ink);
}

#home-filter-drawer .home-filter-drawer__body {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 0 20px 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.xf-group {
	padding: 20px 0;
	border-top: 1px solid var(--xc-rule);
}

.xf-group:first-child {
	border-top: 0;
}

.xf-group__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 14px;
}

.xf-group__head h3 {
	margin: 0;
	color: var(--xc-ink);
	font: 800 15px/1.2 var(--xc-font);
	letter-spacing: 0;
	text-transform: none;
}

.xf-group__note {
	color: var(--xc-ink-3);
	font: 600 12px/1 var(--xc-font);
}

.xf-group__value {
	margin-left: auto;
	color: var(--xc-ink-3);
	font: 700 13px/1 var(--xc-font);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.xf-group__value.has-value {
	color: var(--xc-ink);
}

.xf-sub {
	margin: 18px 0 8px;
	color: var(--xc-ink-3);
	font: 700 12px/1.3 var(--xc-font);
	letter-spacing: 0;
	text-transform: none;
}

.xf-group__head + .xf-sub {
	margin-top: 0;
}

#home-filter-drawer .xf-seg--fill {
	display: flex;
	width: 100%;
}

#home-filter-drawer .xf-seg--fill .xf-seg__item {
	flex: 1;
	min-width: 0;
	padding: 0 6px;
}

.xf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Option rows: Exclusive (switch) and Profile (radio). */
.xf-opts {
	display: grid;
	gap: 6px;
}

#home-filter-drawer .xf-opt {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	height: auto;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--xc-rule);
	border-radius: 6px;
	background: transparent;
	box-shadow: none;
	color: var(--xc-ink);
	text-align: left;
	white-space: normal;
	cursor: pointer;
	transition: background-color 0.18s, border-color 0.18s;
}

#home-filter-drawer .xf-opt:hover {
	background: rgba(255, 255, 255, 0.03);
}

#home-filter-drawer .xf-opt[aria-pressed="true"] {
	background: rgba(184, 15, 41, 0.15);
	border-color: rgba(214, 25, 54, 0.72);
}

#home-filter-drawer .xf-opt--switch[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.22);
}

.xf-opt__icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--xc-raised);
	color: var(--xc-ink-2);
}

.xf-opt__icon .xc-icon {
	width: 17px;
	height: 17px;
}

.xf-opt[aria-pressed="true"]:not(.xf-opt--switch) .xf-opt__icon:not(.xf-stack) {
	background: rgba(184, 15, 41, 0.22);
	color: #fff;
}

.xf-opt__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.xf-opt__text strong {
	color: var(--xc-ink);
	font: 800 14px/1.2 var(--xc-font);
}

.xf-opt__text span {
	color: var(--xc-ink-3);
	font: 600 12px/1.3 var(--xc-font);
}

.xf-radio {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #5a5a5a;
	transition: border-color 0.18s;
}

.xf-radio::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--xc-accent);
	transform: scale(0);
	transition: transform 0.22s var(--xc-ease-out);
}

.xf-opt[aria-pressed="true"] .xf-radio {
	border-color: var(--xc-accent);
}

.xf-opt[aria-pressed="true"] .xf-radio::after {
	transform: scale(1);
}

/* VIP / Premium: two real thumbnails that take turns. */
.xf-stack {
	display: inline-flex;
	width: auto;
	background: none;
}

.xf-stack__slot {
	position: relative;
	width: 26px;
	height: 26px;
	margin-left: -10px;
	border-radius: 50%;
	border: 1.5px solid var(--xc-sheet);
	background: var(--xc-raised);
	overflow: hidden;
}

.xf-stack__slot:first-child {
	margin-left: 0;
	z-index: 2;
}

.xf-stack__slot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.7s ease;
}

.xf-stack__slot img.is-b,
.xf-stack__slot.is-b img.is-a {
	opacity: 0;
}

.xf-stack__slot.is-b img.is-b {
	opacity: 1;
}

/* Age / Rates: thin track, white handles ringed in crimson. */
#home-filter-drawer .home-filter-range {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

#home-filter-drawer .home-filter-range__slider {
	position: relative;
	height: 30px;
	margin: 0;
}

#home-filter-drawer .home-filter-range__track {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 14px;
	height: 2px;
	border-radius: 1px;
	background: #333;
}

#home-filter-drawer .home-filter-range__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--range-start, 0%);
	right: calc(100% - var(--range-end, 100%));
	width: auto;
	background: var(--xc-accent);
}

#home-filter-drawer .home-filter-range__input {
	position: absolute;
	left: 0;
	top: 14px;
	width: 100%;
	height: 2px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

#home-filter-drawer .home-filter-range__input--min {
	z-index: 2;
}

#home-filter-drawer .home-filter-range__input::-webkit-slider-runnable-track {
	height: 2px;
	background: transparent;
	border: 0;
}

#home-filter-drawer .home-filter-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 20px;
	height: 20px;
	margin-top: -9px;
	border-radius: 50%;
	border: 2px solid var(--xc-accent);
	background: #f4f4f4;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
	cursor: grab;
	transition: transform 0.15s;
}

#home-filter-drawer .home-filter-range__input:active::-webkit-slider-thumb {
	transform: scale(1.12);
	cursor: grabbing;
}

#home-filter-drawer .home-filter-range__input::-moz-range-track {
	height: 2px;
	background: transparent;
	border: 0;
}

#home-filter-drawer .home-filter-range__input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--xc-accent);
	background: #f4f4f4;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
	cursor: grab;
}

#home-filter-drawer .home-filter-range__input:focus-visible {
	outline: none;
}

#home-filter-drawer .home-filter-range__input:focus-visible::-webkit-slider-thumb {
	outline: 2px solid #ececec;
	outline-offset: 2px;
}

#home-filter-drawer .home-filter-range__input:focus-visible::-moz-range-thumb {
	outline: 2px solid #ececec;
	outline-offset: 2px;
}

#home-filter-drawer .home-filter-range__values {
	display: flex;
	justify-content: space-between;
	margin: 2px 0 0;
	padding: 0 2px;
}

#home-filter-drawer .home-filter-range__value {
	min-width: 0;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #666;
	font: 700 11px/1 var(--xc-font);
}

/* Ethnicity / Nationality accordions: a live summary instead of a "0". */
#home-filter-drawer .xf-acc {
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--xc-rule);
	border-radius: 0;
	background: transparent;
}

#home-filter-drawer .home-filter-drawer__accordion-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 60px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--xc-ink);
	text-align: left;
	cursor: pointer;
}

#home-filter-drawer .home-filter-drawer__accordion-label {
	color: var(--xc-ink);
	font: 800 15px/1.2 var(--xc-font);
}

#home-filter-drawer .home-filter-drawer__accordion-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-left: auto;
}

#home-filter-drawer .home-filter-drawer__accordion-badge {
	display: none !important;
}

.xf-acc__value {
	max-width: 200px;
	overflow: hidden;
	color: var(--xc-ink-3);
	font: 700 13px/1.2 var(--xc-font);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xf-acc__value.has-value {
	color: var(--xc-ink);
}

#home-filter-drawer .home-filter-drawer__accordion-meta .xc-icon {
	width: 15px;
	height: 15px;
	color: var(--xc-ink-3);
	transition: transform 0.25s var(--xc-ease-out);
}

#home-filter-drawer .home-filter-drawer__accordion-toggle[aria-expanded="true"] .xc-icon {
	transform: rotate(180deg);
}

#home-filter-drawer .home-filter-drawer__accordion-body {
	margin: 0;
	padding: 0 0 20px;
}

#home-filter-drawer .home-filter-drawer__search-shell {
	position: relative;
	margin: 0 0 8px;
}

#home-filter-drawer .home-filter-drawer__search-shell > .xc-icon {
	position: absolute;
	left: 12px;
	top: 12px;
	width: 16px;
	height: 16px;
	color: var(--xc-ink-3);
	pointer-events: none;
}

#home-filter-drawer .home-filter-drawer__search-input {
	width: 100%;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 12px 0 36px;
	border: 1px solid var(--xc-rule-2);
	border-radius: 6px;
	background: #1a1a1a;
	box-shadow: none;
	color: var(--xc-ink);
	font: 600 16px/1 var(--xc-font);
}

#home-filter-drawer .home-filter-drawer__search-input:focus {
	outline: none;
	border-color: #6a6a6a;
}

#home-filter-drawer .home-filter-drawer__option-list {
	display: grid;
	max-height: 236px;
	overflow-y: auto;
	border: 1px solid var(--xc-rule);
	border-radius: 6px;
}

#home-filter-drawer .home-filter-drawer__option-list:empty {
	display: none;
}

#home-filter-drawer .home-filter-drawer__checkbox-option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-top: 1px solid var(--xc-rule);
	border-radius: 0;
	background: transparent;
	color: var(--xc-ink-2);
	font: 600 14px/1.2 var(--xc-font);
	cursor: pointer;
}

#home-filter-drawer .home-filter-drawer__checkbox-option:first-child {
	border-top: 0;
}

#home-filter-drawer .home-filter-drawer__checkbox-option[hidden] {
	display: none;
}

#home-filter-drawer .home-filter-drawer__checkbox-option:hover {
	background: rgba(255, 255, 255, 0.03);
	color: var(--xc-ink);
}

#home-filter-drawer .home-filter-drawer__checkbox-option.is-selected {
	color: var(--xc-ink);
}

#home-filter-drawer .home-filter-drawer__checkbox-input {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid #5a5a5a;
	border-radius: 3px;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

#home-filter-drawer .home-filter-drawer__checkbox-input:checked {
	border-color: var(--xc-accent);
	background: var(--xc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

#home-filter-drawer .home-filter-drawer__checkbox-input:focus-visible {
	outline: 2px solid #ececec;
	outline-offset: 2px;
}

#home-filter-drawer .home-filter-drawer__search-empty {
	margin: 0;
	padding: 12px 2px;
	color: var(--xc-ink-3);
	font: 600 13px/1.3 var(--xc-font);
}

/* Footer: Reset beside one primary action. */
#home-filter-drawer .home-filter-drawer__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--xc-rule);
	background: var(--xc-sheet);
	box-shadow: none;
}

#home-filter-drawer .home-filter-drawer__footer-button {
	min-height: 0;
	margin: 0;
	box-shadow: none;
	font-family: var(--xc-font);
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

#home-filter-drawer .home-filter-drawer__footer-button--ghost {
	flex: none;
	width: auto;
	height: auto;
	padding: 12px 4px;
	border: 0;
	background: transparent;
	color: var(--xc-ink-2);
	font-weight: 700;
	font-size: 14px;
	text-underline-offset: 3px;
}

#home-filter-drawer .home-filter-drawer__footer-button--ghost:hover:not(:disabled) {
	color: var(--xc-ink);
	text-decoration: underline;
}

#home-filter-drawer .home-filter-drawer__footer-button--ghost:disabled {
	color: #555;
	cursor: default;
	opacity: 1;
}

#home-filter-drawer .home-filter-drawer__footer-button--primary {
	flex: 1;
	height: 50px;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: var(--xc-accent);
	color: var(--xc-on-accent);
	font-weight: 800;
	font-size: 15px;
	opacity: 1;
	transition: background-color 0.18s;
}

#home-filter-drawer .home-filter-drawer__footer-button--primary:hover {
	background: var(--xc-accent-hover);
}

#home-filter-drawer .home-filter-drawer__footer-button--primary:active {
	background: var(--xc-accent-press);
}

/* Phones: a bottom sheet within thumb reach. */
@media screen and (max-width: 640px) {
	#home-filter-drawer .home-filter-drawer__panel {
		top: auto;
		left: 0;
		right: 0;
		width: 100%;
		height: auto;
		min-height: 0;
		max-height: 92dvh;
		border-left: 0;
		border-top: 1px solid var(--xc-rule-2);
		border-radius: 8px 8px 0 0;
		box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.5);
		transform: translateY(100%);
	}

	#home-filter-drawer .xf-drawer__handle {
		display: block;
		flex: none;
		width: 36px;
		height: 4px;
		margin: 8px auto 0;
		border-radius: 2px;
		background: #3a3a3a;
	}

	#home-filter-drawer .home-filter-drawer__header {
		min-height: 56px;
		padding: 0 12px 0 16px;
	}

	#home-filter-drawer .home-filter-drawer__body {
		padding: 0 16px 8px;
	}

	#home-filter-drawer .home-filter-drawer__footer {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	}

	#home-filter-drawer .xf-chip {
		height: 44px;
		min-height: 44px;
	}
}

/* ------------------------------------------------------- markets control */

.online-stories-section .globale-cta.globale-cta--deck {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 36px;
	min-height: 36px;
	margin-left: auto;
	padding: 0 10px 0 9px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 6px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 24px -14px rgba(0, 0, 0, 0.8);
	color: var(--xc-ink);
	font: 700 13px/1 var(--xc-font);
	text-decoration: none;
	transform: none;
	transition: background 0.2s, border-color 0.2s;
}

.online-stories-section .globale-cta.globale-cta--deck:hover,
.online-stories-section .globale-cta.globale-cta--deck:focus-visible {
	transform: none;
	border-color: rgba(255, 255, 255, 0.22);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
	color: var(--xc-ink);
}

.globale-cta__deck {
	--fw: 22px;
	--fh: 16px;
	--dx1: 12px;
	--dx2: 22px;
	position: relative;
	flex: none;
	width: 40px;
	height: var(--fh);
}

.globale-cta__deck .globale-cta__flag {
	position: absolute;
	left: 0;
	top: 0;
	width: var(--fw);
	height: var(--fh);
	max-width: none;
	margin: 0;
	border-radius: 3px;
	object-fit: cover;
	/*
	 * A light edge keeps dark flags (Kenya's black band) legible on the
	 * dark glass; the outer dark ring separates the stacked cards.
	 */
	outline: 1px solid rgba(255, 255, 255, 0.34);
	outline-offset: -1px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 3px 8px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform-origin: 0 50%;
	transition: transform 0.55s var(--xc-ease-out), opacity 0.45s ease;
}

.globale-cta__deck .globale-cta__flag[data-pos="0"] { transform: none; opacity: 1; z-index: 4; }
.globale-cta__deck .globale-cta__flag[data-pos="1"] { transform: translateX(var(--dx1)) scale(0.86); opacity: 0.92; z-index: 3; }
.globale-cta__deck .globale-cta__flag[data-pos="2"] { transform: translateX(var(--dx2)) scale(0.74); opacity: 0.7; z-index: 2; }

/* Hover fans the deck slightly; it no longer changes what is visible at rest. */
.globale-cta--deck:hover .globale-cta__deck .globale-cta__flag[data-pos="0"] { opacity: 1; }
.globale-cta--deck:hover .globale-cta__deck .globale-cta__flag[data-pos="1"] { transform: translateX(calc(var(--dx1) + 2px)) scale(0.88); opacity: 1; }
.globale-cta--deck:hover .globale-cta__deck .globale-cta__flag[data-pos="2"] { transform: translateX(calc(var(--dx2) + 4px)) scale(0.76); opacity: 0.85; }
.globale-cta--deck:hover .globale-cta__deck .globale-cta__flag[data-pos="out"],
.globale-cta--deck:hover .globale-cta__deck .globale-cta__flag[data-pos="wait"] { opacity: 0; }
.globale-cta__deck .globale-cta__flag[data-pos="out"] { transform: translateX(-10px) scale(1.06); opacity: 0; z-index: 5; }
.globale-cta__deck .globale-cta__flag[data-pos="wait"] { transform: translateX(calc(var(--dx2) + 4px)) scale(0.6); opacity: 0; z-index: 1; transition: none; }

.globale-cta__city {
	position: relative;
	display: block;
	width: 82px;
	height: 18px;
	overflow: hidden;
	line-height: 18px;
}

.globale-cta__city span {
	position: absolute;
	left: 0;
	top: 0;
	white-space: nowrap;
	transition: transform 0.34s var(--xc-ease-out), opacity 0.26s;
}

.globale-cta__city span.is-out { transform: translateY(-18px); opacity: 0; }
.globale-cta__city span.is-in { transform: translateY(18px); opacity: 0; }

.globale-cta__chevron .xc-icon {
	display: block;
	width: 13px;
	height: 13px;
	color: var(--xc-ink-3);
	transform: rotate(-90deg);
	transition: transform 0.2s var(--xc-ease-out);
}

.globale-cta--deck:hover .globale-cta__chevron .xc-icon {
	transform: rotate(-90deg) translateY(2px);
}

@media screen and (max-width: 640px) {
	.online-stories-section .globale-cta.globale-cta--deck {
		height: 30px;
		min-height: 30px;
		gap: 7px;
		padding: 0 8px 0 7px;
		color: var(--xc-ink-2);
		font-size: 12px;
	}

	.globale-cta__deck {
		--fw: 18px;
		--fh: 13px;
		--dx1: 9px;
		--dx2: 17px;
		width: 31px;
	}

	.globale-cta__deck .globale-cta__flag {
		border-radius: 2px;
	}

	.globale-cta__city {
		width: 70px;
		height: 16px;
		line-height: 16px;
	}

	.globale-cta__city span.is-out { transform: translateY(-16px); }
	.globale-cta__city span.is-in { transform: translateY(16px); }

	.globale-cta__chevron .xc-icon {
		width: 12px;
		height: 12px;
	}
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
	.xf-seg__indicator,
	.xf-switch,
	.xf-switch::after,
	.xf-token,
	.xf-stack__slot img,
	.globale-cta__deck .globale-cta__flag,
	.globale-cta__city span,
	#home-filter-drawer .home-filter-drawer__panel {
		animation: none !important;
		transition: none !important;
	}
}
