/* Homepage layout and typography. Loaded only for the homepage. */
.fxm-home-page {
	--home-ink: #243044;
	--home-copy: #4b586c;
	--home-muted: #626e80;
	--home-numeric: "Segoe UI", "Helvetica Neue", sans-serif;
	font-family: var(--font-family-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0;
	color: var(--home-ink);
}
.fxm-home-page :is(h1, h2, h3) {
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--home-ink);
	text-wrap: pretty;
}
.fxm-home-page :is(p, input, button, time) {
	font-weight: 400;
	letter-spacing: 0;
}
.fxm-home-page :is(p, h1, h2, h3) { overflow-wrap: break-word; }
.fxm-home-page :is(.fxm-home-events, .fxm-home-news) h2 {
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	line-height: 1.5;
}
.fxm-home-page :is(.fxm-home-events-sub, .fxm-home-banner-sub) {
	color: var(--home-copy);
}
body:has(.fxm-home-page) .fxm-site-header nav > a {
	color: #4b586c;
	letter-spacing: 0;
}
body:has(.fxm-home-page) .fxm-site-header nav > a:hover { color: var(--color-primary); }
/* Preserve the hero's violet/teal glow, fading into the white broker section. */
.fxm-home-intro {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #fff;
}
.fxm-home-intro-backdrop {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 18%, rgba(105, 81, 246, .12), transparent 32%),
		radial-gradient(circle at 20% 72%, rgba(137, 223, 215, .08), transparent 24%),
		radial-gradient(circle at 80% 68%, rgba(105, 81, 246, .08), transparent 24%),
		linear-gradient(180deg, #fff 0%, #fbfbff 50%, #f7f6ff 76%, #fafbff 100%);
	mask-image: linear-gradient(#000 0%, #000 78%, transparent 100%);
}
.fxm-home-intro > [data-fxm-paid-ads="HOME_TOP"] {
	position: relative;
	background: transparent;
}
.fxm-home-intro + .fxm-home-hot { border-top: 0; }
.fxm-home-hero {
	padding-top: 3rem;
	padding-bottom: 2.75rem;
}
.fxm-home-page .fxm-home-title {
	max-width: 1040px;
	margin-top: 1.25rem;
	font-size: clamp(2.1rem, 4.1vw, 3.25rem);
	font-weight: 600;
	line-height: 1.32;
	letter-spacing: 0;
}
.fxm-home-title-lead,
.fxm-home-title-detail {
	display: block;
	font-size: inherit;
	line-height: inherit;
	text-wrap: balance;
}
.fxm-home-title-detail {
	margin-top: .4rem;
	letter-spacing: 0;
}
.fxm-home-title-detail > span { line-height: inherit; }
.fxm-home-title-ai {
	font-family: var(--home-numeric);
	font-weight: 600;
	letter-spacing: 0;
	color: #4f34d9;
}
.fxm-home-title-tail { margin-inline-start: .12em; }
.fxm-home-eyebrow {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--home-numeric);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .16em;
	color: #667085;
}
.fxm-home-hero .fxm-home-hero-sub {
	max-width: 760px;
	margin-top: 1.15rem;
	font-size: 1rem;
	line-height: 1.85;
	color: var(--home-copy);
	text-wrap: balance;
}
.fxm-home-hero form {
	margin-top: 1.65rem;
	max-width: 700px;
}
.fxm-home-hero form > div {
	padding: .5rem;
	border: 1px solid #e2e5ed;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 28px -18px rgba(36, 48, 68, .24);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.fxm-home-hero form > div:focus-within {
	border-color: #9b8ae9;
	box-shadow: 0 0 0 3px rgba(79, 52, 217, .07);
}
.fxm-home-hero form > div > div { padding: .25rem .65rem; }
.fxm-home-hero form > div > button {
	border: 0;
	border-radius: 13px;
	background: var(--color-primary, #4f34d9);
	color: #fff;
	box-shadow: none;
}
.fxm-home-hero form > div > button:hover { background: #4129c4; transform: none; }
.fxm-home-hero form button:focus-visible { outline: 2px solid #4f34d9; outline-offset: 3px; }
.fxm-home-hero input { font-size: 16px; }
.fxm-home-hero input::placeholder { color: #657084; opacity: 1; }
.fxm-home-tags > span { color: var(--home-muted); }
.fxm-home-tags { margin-top: 1.25rem; gap: .6rem; }
.fxm-home-tags a {
	border: 1px solid #e9eaf0;
	background: #fff;
	color: #5c6576;
	font-size: 12px;
	letter-spacing: 0;
}
.fxm-home-tags a:hover { border-color: #d4cbf5; background: #f8f6ff; color: #4f34d9; }
.fxm-home-hero .fxm-home-metrics {
	margin-top: 2.75rem;
	gap: 1rem;
}
.fxm-home-hero .fxm-home-metric {
	padding: 1.25rem 1.4rem;
	border-radius: 16px;
	translate: none;
}
.fxm-home-hero .fxm-home-metric-head {
	margin-bottom: 1.15rem;
}
.fxm-home-metric-head > span {
	font-size: 12px;
	letter-spacing: .02em;
	color: #655987;
}
.fxm-home-metric-label { color: var(--home-muted); line-height: 1.65; }
.fxm-home-hero .fxm-home-metric-value {
	margin-top: 0.6rem;
	font-size: 2rem;
	font-family: var(--home-numeric);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.015em;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--home-ink);
}
.fxm-home-events {
	padding-top: 3rem;
	padding-bottom: 3rem;
}
.fxm-home-events .fxm-home-events-head {
	margin-bottom: 1.25rem;
	max-width: 1244px;
}
.fxm-home-events h2 {
	margin-bottom: 0.45rem;
	font-size: 1.7rem;
}
.fxm-home-events .fxm-home-events-sub {
	font-size: 1rem;
	line-height: 1.8;
}
.fxm-home-events .fxm-home-events-nav {
	gap: 0.5rem;
}
.fxm-home-events .fxm-home-events-nav button {
	width: 2.25rem;
	height: 2.25rem;
}
.fxm-home-events .fxm-home-events-track {
	justify-content: safe center;
	max-width: 1244px;
	margin-left: auto;
	margin-right: auto;
	gap: 1.1rem;
	padding-bottom: 1.5rem;
	box-sizing: border-box;
}
.fxm-home-events .fxm-home-events-card {
	min-width: min(100%, 28rem);
	width: 28rem;
	height: 16.5rem;
	border-radius: 14px;
	border-color: #e7e9ef;
	box-shadow: none;
}
.fxm-home-events .fxm-home-events-card .fxm-home-events-copy {
	padding: 1.25rem 1.4rem;
}
.fxm-home-events .fxm-home-events-card .fxm-home-events-copy span.rounded-full {
	margin-bottom: 0.55rem;
	padding: 0.25rem 0.7rem;
}
.fxm-home-events .fxm-home-events-card h3 {
	margin-bottom: 0.85rem;
	font-size: 1.25rem;
	line-height: 1.55;
}
.fxm-home-events .fxm-home-events-card .fxm-home-events-cta {
	padding: 0.5rem 1.15rem;
	font-size: 0.82rem;
	border-radius: 0.7rem;
}
.fxm-home-events .fxm-home-events-no {
	margin-bottom: 0.15rem;
	font-size: 2.4rem;
	font-family: var(--home-numeric);
	font-weight: 500;
}
.fxm-home-events time { color: var(--home-muted); font-size: 12px; white-space: nowrap; }
.fxm-home-events-copy > div { gap: 1rem; }
.fxm-home-events-copy > div > :first-child { min-width: 0; }
/* "View more" stays visible on H5 where the arrows are hidden. */
.fxm-home-events .fxm-home-events-actions { display: flex; flex-shrink: 0; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.fxm-home-events .fxm-home-events-more { font-size: 0.95rem; white-space: nowrap; }
/* Portal titles run long: two lines, full text in the title attribute. */
.fxm-home-events .fxm-home-events-card h3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.fxm-home-events .fxm-home-events-placeholder { background: linear-gradient(135deg, #ede9ff 0%, #f6f4ff 55%, #e3f7f5 100%); }
@media (max-width: 640px) {
	.fxm-home-events .fxm-home-events-card {
		width: min(100%, 20.5rem);
		min-width: min(100%, 20.5rem);
		height: 15.5rem;
	}
}
.fxm-home-news {
	padding-top: 3rem;
	padding-bottom: 3rem;
	border-color: #eef0f4;
}
.fxm-home-news > div { max-width: 1180px; }
.fxm-home-news .fxm-home-news-head {
	margin-bottom: 1.25rem;
}
.fxm-home-news h2 {
	font-size: 1.7rem;
}
.fxm-home-news .fxm-home-news-more {
	font-size: 0.95rem;
}
.fxm-home-news .fxm-home-news-nav {
	gap: 0.5rem;
}
.fxm-home-news .fxm-home-news-nav button {
	width: 2.25rem;
	height: 2.25rem;
}
.fxm-home-news .fxm-home-news-featured {
	padding: 1.5rem;
	border-radius: 14px;
	border-color: #e7e9ef;
	box-shadow: none;
}
.fxm-home-news .fxm-home-news-featured-grid {
	gap: 1.75rem;
}
.fxm-home-news .fxm-home-news-featured-media {
	height: 13.25rem;
	border-radius: 1rem;
}
.fxm-home-news .fxm-home-news-featured-copy {
	padding-left: 0;
	padding-right: 0;
}
.fxm-home-news .fxm-home-news-featured-copy span.rounded-full {
	padding: 0.25rem 0.7rem;
	font-size: 0.75rem;
}
.fxm-home-news .fxm-home-news-featured-copy h3 {
	margin-top: 0.7rem;
	max-width: 28rem;
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	line-height: 1.6;
}
.fxm-home-news .fxm-home-news-featured-copy p {
	margin-top: 0.65rem;
	max-width: 28rem;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--home-copy);
}
.fxm-home-news .fxm-home-news-featured-copy a {
	margin-top: 0.95rem;
	padding: 0.5rem 1.15rem;
	font-size: 0.82rem;
}
.fxm-home-news .fxm-home-news-dots {
	margin-top: 0.85rem;
	gap: 0.45rem;
}
.fxm-home-news .fxm-home-news-dots span,
.fxm-home-banner .fxm-home-banner-dots span {
	height: 0.45rem;
	width: 0.45rem;
}
.fxm-home-news .fxm-home-news-grid {
	margin-top: 1.5rem;
	gap: 1.25rem;
}
.fxm-home-news .fxm-home-news-card {
	padding: 1.1rem;
	border: 1px solid #e7e9ef;
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
}
.fxm-home-news .fxm-home-news-card-media {
	height: 7.25rem;
	margin-bottom: 0.7rem;
	border-radius: 0.85rem;
}
.fxm-home-news .fxm-home-news-card h3 {
	font-size: 1.125rem;
	line-height: 1.65;
}
.fxm-home-news .fxm-home-news-card p {
	margin-top: 0.65rem;
	font-size: 15px;
	line-height: 1.8;
	color: var(--home-copy);
}
.fxm-home-news .fxm-home-news-card-meta {
	margin-top: 1rem;
	padding-top: .8rem;
	font-size: 12px;
	letter-spacing: .035em;
	color: var(--home-muted);
}
.fxm-home-banner {
	padding-bottom: 2.5rem;
}
.fxm-home-banner > div { max-width: 1180px; }
.fxm-home-banner .fxm-home-banner-panel {
	padding: 1.6rem 1.75rem;
	border-radius: 1.15rem;
}
.fxm-home-banner .fxm-home-banner-copy {
	max-width: 36rem;
}
.fxm-home-banner h2 {
	margin-bottom: 0.65rem;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	line-height: 1.5;
}
.fxm-home-banner .fxm-home-banner-sub {
	margin-bottom: 1.05rem;
	font-size: 1rem;
	line-height: 1.8;
}
.fxm-home-banner .fxm-home-banner-actions {
	gap: 0.7rem;
}
.fxm-home-banner .fxm-home-banner-actions a {
	padding: 0.55rem 1.15rem;
	font-size: 14px;
	border-radius: 0.7rem;
	letter-spacing: .01em;
}
.fxm-home-banner .fxm-home-banner-dots {
	margin-top: 0.85rem;
	gap: 0.45rem;
}
@media (max-width: 1023px) {
	.fxm-home-news .fxm-home-news-featured-media {
		height: 11.5rem;
	}
}
@media (min-width: 768px) {
	.fxm-home-banner .fxm-home-banner-panel {
		padding: 1.85rem 2.15rem;
	}
}

@media (max-width: 640px) {
	.fxm-home-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
	.fxm-home-page .fxm-home-title { font-size: clamp(1.925rem, 5.95vw, 2.3333rem); line-height: 1.35; }
	.fxm-home-title-detail { margin-top: .5rem; }
	.fxm-home-eyebrow { padding-inline: 1rem; font-size: 10px; letter-spacing: .1em; }
	.fxm-home-hero .fxm-home-hero-sub { margin-top: 1.1rem; font-size: 15px; line-height: 1.9; }
	.fxm-home-hero .fxm-home-hero-sub > span { display: inline; }
	.fxm-home-hero form > div { border-radius: 20px; }
	.fxm-home-hero form > div > div { padding-inline: .5rem; }
	.fxm-home-hero form > div > button { border-radius: 12px; }
	.fxm-home-tags { row-gap: .65rem; }
	.fxm-home-hero .fxm-home-metrics { margin-top: 2rem; }
	.fxm-home-events .fxm-home-events-head { gap: 1rem; align-items: flex-start; padding-inline: 1.25rem; }
	.fxm-home-events-nav { flex-shrink: 0; }
	.fxm-home-events .fxm-home-events-sub { font-size: 15px; }
	.fxm-home-events .fxm-home-events-card h3 { font-size: 17px; }
	.fxm-home-events .fxm-home-events-card .fxm-home-events-copy { padding: 1rem; }
	.fxm-home-news .fxm-home-news-featured { padding: 1rem; }
	.fxm-home-news .fxm-home-news-featured-copy h3 { font-size: 20px; }
	.fxm-home-news .fxm-home-news-featured-copy p { font-size: 15px; }
	.fxm-home-banner { padding-inline: 1rem; }
	.fxm-home-banner .fxm-home-banner-panel { padding: 1.5rem; }
}
@media (max-width: 380px) {
	body:has(.fxm-home-page) .fxm-site-header > .grid {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: .5rem;
		padding-inline: .75rem;
	}
	body:has(.fxm-home-page) .fxm-site-header > .grid > div:first-child img { height: 24px; }
	body:has(.fxm-home-page) .fxm-header-end { gap: 6px; }
	body:has(.fxm-home-page) .fxm-header-end > [data-fxm-ai-open] { width: 36px; flex-shrink: 0; }
	body:has(.fxm-home-page) [data-fxm-lang-trigger] { width: 36px; padding-inline: 9px; }
	body:has(.fxm-home-page) [data-fxm-auth-guest] > a {
		padding-inline: 10px;
		font-size: 13px;
		letter-spacing: 0;
		white-space: nowrap;
	}
	body:has(.fxm-home-page) [data-fxm-auth-guest] > a > svg { display: none; }
}

/* ---------- H5 (< 768px) ---------- */
@media (max-width: 767.98px) {
	.fxm-home-intro { margin-top: var(--fxm-m-header, 60px); }
	.fxm-home-hero { padding: 1.75rem 1rem 1.75rem; }
	.fxm-home-hero .fxm-home-hero-sub { margin-top: .85rem; font-size: 14px; line-height: 1.75; }
	.fxm-home-hero form { margin-top: 1.25rem; }
	.fxm-home-hero form > div { gap: .5rem; padding: .5rem; border-radius: 18px; }
	.fxm-home-hero form > div > div { padding: .25rem .25rem; gap: .6rem; }
	.fxm-home-hero form > div > div > button { width: 2.25rem; height: 2.25rem; border-radius: 12px; }
	.fxm-home-hero input { font-size: 15px; }
	.fxm-home-hero form > div > button { height: 2.75rem; font-size: 15px; }
	/* hot tags: one swipeable line instead of a wrapped block */
	.fxm-home-tags {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-inline: -1rem;
		margin-top: 1rem;
		overflow-x: auto;
		padding-inline: 1rem;
		scrollbar-width: none;
	}
	.fxm-home-tags::-webkit-scrollbar { display: none; }
	.fxm-home-tags > * { flex-shrink: 0; white-space: nowrap; }
	/* metrics: three compact tiles in one row */
	.fxm-home-hero .fxm-home-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1.5rem; }
	.fxm-home-hero .fxm-home-metric { padding: .85rem .7rem .8rem; border-radius: 16px; text-align: left; }
	.fxm-home-hero .fxm-home-metric-head { margin-bottom: .55rem; }
	.fxm-home-hero .fxm-home-metric-head > div { width: 1.75rem; height: 1.75rem; }
	.fxm-home-hero .fxm-home-metric-head > div svg { width: 14px; height: 14px; }
	.fxm-home-hero .fxm-home-metric-head > span { display: none; }
	.fxm-home-hero .fxm-home-metric-label { font-size: 11px; line-height: 1.35; min-height: 2.7em; }
	.fxm-home-hero .fxm-home-metric-value { margin-top: .3rem; font-size: clamp(1.05rem, 5vw, 1.3rem); letter-spacing: -.03em; white-space: nowrap; }

	.fxm-home-hot { padding: 1.25rem .75rem; }

	/* events: swipe carousel with the next card peeking in; arrows are a desktop affordance */
	.fxm-home-events { padding-top: 2rem; padding-bottom: 1.5rem; }
	.fxm-home-events .fxm-home-events-head { margin-bottom: 1rem; padding-inline: 1rem; }
	.fxm-home-events h2 { margin-bottom: .35rem; font-size: 22px; }
	.fxm-home-events .fxm-home-events-sub { font-size: 13.5px; line-height: 1.6; }
	.fxm-home-events .fxm-home-events-nav { display: none; }
	.fxm-home-events .fxm-home-events-actions { margin-bottom: 0; padding-top: .3rem; }
	.fxm-home-events .fxm-home-events-more { font-size: 13.5px; }
	.fxm-home-events .fxm-home-events-more svg { width: 15px; height: 15px; }
	.fxm-home-events .fxm-home-events-track {
		justify-content: flex-start;
		gap: .75rem;
		padding: 0 1rem 1rem;
		scroll-padding-inline: 1rem;
	}
	.fxm-home-events .fxm-home-events-card {
		width: 82%;
		min-width: 82%;
		height: 13.5rem;
		border-radius: 18px;
	}
	.fxm-home-events .fxm-home-events-card:only-child { width: 100%; min-width: 100%; }
	.fxm-home-events .fxm-home-events-card .fxm-home-events-cta { padding: .5rem 1rem; font-size: 13px; border-radius: 10px; }
	.fxm-home-events .fxm-home-events-no { font-size: 2.5rem; }

	/* official news: compact feed */
	.fxm-home-news { padding: 1.75rem 1rem; }
	.fxm-home-news .fxm-home-news-head { margin-bottom: 1rem; }
	.fxm-home-news h2 { font-size: 22px; }
	.fxm-home-news .fxm-home-news-nav button { display: none; }
	.fxm-home-news .fxm-home-news-more { font-size: 14px; }
	.fxm-home-news .fxm-home-news-featured { padding: .75rem; border-radius: 18px; }
	.fxm-home-news .fxm-home-news-featured-grid { gap: .85rem; }
	.fxm-home-news .fxm-home-news-featured-media { height: 10.5rem; border-radius: 12px; }
	.fxm-home-news .fxm-home-news-featured-copy { padding-inline: .25rem; }
	.fxm-home-news .fxm-home-news-featured-copy h3 { font-size: 18px; line-height: 1.45; }
	.fxm-home-news .fxm-home-news-featured-copy p {
		display: -webkit-box;
		overflow: hidden;
		font-size: 14px;
		line-height: 1.7;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}
	.fxm-home-news .fxm-home-news-featured-copy a { margin-top: .75rem; }
	.fxm-home-news .fxm-home-news-dots { display: none; }
	.fxm-home-news .fxm-home-news-grid { gap: 0; margin-top: .75rem; border-radius: 18px; border: 1px solid var(--color-outline-variant, #e2e7ff); background: #fff; overflow: hidden; }
	.fxm-home-news .fxm-home-news-card {
		display: grid;
		grid-template-columns: 6.5rem minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		column-gap: .8rem;
		padding: .85rem;
		border: 0;
		border-radius: 0;
		background: #fff;
		box-shadow: none;
	}
	.fxm-home-news .fxm-home-news-card + .fxm-home-news-card { border-top: 1px solid #f0f0f7; }
	.fxm-home-news .fxm-home-news-card-media { grid-row: 1 / 4; height: 5rem; margin: 0; border-radius: 10px; }
	.fxm-home-news .fxm-home-news-card-media > div { top: .35rem; left: .35rem; gap: .25rem; }
	.fxm-home-news .fxm-home-news-card-media > div > span { padding: 1px 6px; font-size: 10px; }
	.fxm-home-news .fxm-home-news-card-media > div > span + span { display: none; }
	.fxm-home-news .fxm-home-news-card h3 {
		display: -webkit-box;
		overflow: hidden;
		padding: 0;
		font-size: 15px;
		line-height: 1.45;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}
	.fxm-home-news .fxm-home-news-card p {
		display: -webkit-box;
		overflow: hidden;
		margin-top: .25rem;
		padding: 0;
		font-size: 12.5px;
		line-height: 1.55;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
	}
	.fxm-home-news .fxm-home-news-card :is(h3, p) { align-self: start; }
	.fxm-home-news .fxm-home-news-card-meta { align-self: end; margin: .35rem 0 0; padding-top: 0; border-top: 0; font-size: 11px; letter-spacing: .02em; }

	.fxm-home-banner { padding: 0 1rem 1.75rem; }
	.fxm-home-banner .fxm-home-banner-panel { padding: 1.35rem 1.25rem; border-radius: 18px; }
	.fxm-home-banner h2 { font-size: 24px; line-height: 1.35; }
	.fxm-home-banner .fxm-home-banner-sub { font-size: 14px; line-height: 1.7; }
	.fxm-home-banner .fxm-home-banner-actions a { padding: .6rem 1rem; font-size: 13.5px; }
	.fxm-home-banner .fxm-home-banner-dots { display: none; }
	.fxm-home-banner .fxm-home-banner-panel > .absolute { display: none; }
}
