/* Broker ranking boards (/brokers/rankings/{board}). Template: broker-rankings-page.php. */

[data-fxm-rankings-page] {
	--rk-ink: #2f2658;
	--rk-strong: #1c1844;
	--rk-muted: rgba(47, 38, 88, 0.5);
	--rk-primary: #4f34d9;
	--rk-row: #f6f5fb;
	--rk-line: rgba(47, 38, 88, 0.07);
	--rk-chip-line: #e4e2ee;
	--rk-card-shadow: 0 10px 28px -16px rgba(79, 52, 217, 0.18), 0 2px 8px -4px rgba(47, 38, 88, 0.06);
	--rk-gold: #f5b10f;
	--rk-silver: #a3abbb;
	--rk-bronze: #d98a52;
	--rk-good: #16a368;
	--rk-bad: #e5484d;
	padding: 72px 0 64px;
	background: #f6f5fb;
	color: var(--rk-ink);
}

[data-fxm-rankings-page] .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fxm-rk-crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 20px;
	font-size: 13px;
	color: var(--rk-muted);
}

.fxm-rk-crumbs a:hover {
	color: var(--rk-primary);
}

.fxm-rk-crumbs .is-current {
	color: rgba(47, 38, 88, 0.75);
}

.fxm-rk-layout {
	display: grid;
	gap: 24px;
	margin-top: 14px;
}

@media (min-width: 1024px) {
	.fxm-rk-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}

	.fxm-rk-side {
		position: sticky;
		top: 92px;
	}
}

.fxm-rk-main,
.fxm-rk-side {
	min-width: 0;
}

/* Title + underline tabs */
.fxm-rk-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
}

.fxm-rk-title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--rk-strong);
}

.fxm-rk-subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--rk-muted);
}

.fxm-rk-tabs {
	display: flex;
	gap: 36px;
	margin-top: 18px;
	border-bottom: 1px solid rgba(47, 38, 88, 0.1);
	overflow-x: auto;
	scrollbar-width: none;
}

.fxm-rk-tabs::-webkit-scrollbar {
	display: none;
}

.fxm-rk-tab {
	position: relative;
	flex: 0 0 auto;
	padding: 8px 2px 12px;
	font-size: 17px;
	font-weight: 500;
	color: rgba(47, 38, 88, 0.72);
	white-space: nowrap;
	transition: color 0.16s ease;
}

.fxm-rk-tab:hover {
	color: var(--rk-primary);
}

.fxm-rk-tab[aria-current="page"] {
	font-weight: 700;
	color: var(--rk-strong);
}

.fxm-rk-tab[aria-current="page"]::after {
	content: "";
	position: absolute;
	right: -4px;
	bottom: -1px;
	left: -4px;
	height: 3px;
	border-radius: 3px;
	background: var(--rk-primary);
}

.fxm-rk-tab.is-risk[aria-current="page"]::after {
	background: var(--rk-bad);
}

.fxm-rk-desc {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 14px 0 12px;
	font-size: 13px;
	color: var(--rk-muted);
}

.fxm-rk-desc-date {
	font-variant-numeric: tabular-nums;
}

/* Board card + rows */
.fxm-rk-card {
	padding: 10px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: var(--rk-card-shadow);
}

.fxm-rk-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fxm-rk-row + .fxm-rk-row:not(.is-top) .fxm-rk-row-link {
	border-top: 1px solid var(--rk-line);
}

.fxm-rk-row.is-top + .fxm-rk-row.is-top {
	margin-top: 6px;
}

.fxm-rk-row.is-place-3 {
	margin-bottom: 6px;
}

.fxm-rk-row-link {
	display: grid;
	grid-template-columns: 44px 56px minmax(96px, 140px) minmax(0, 1fr) 96px 52px;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 10px 12px;
	border-radius: 12px;
	transition: background 0.16s ease;
}

.fxm-rk-row.is-top .fxm-rk-row-link {
	min-height: 76px;
	background: #f5f3fd;
}

.fxm-rk-row-link:hover,
.fxm-rk-row.is-top .fxm-rk-row-link:hover {
	background: #efebff;
}

.fxm-rk-row-link:hover + *,
.fxm-rk-row:hover + .fxm-rk-row .fxm-rk-row-link {
	border-top-color: transparent;
}

/* Rank: grey number; medals for the first three */
.fxm-rk-rank {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	width: 32px;
	height: 32px;
	border-radius: 9999px;
	background: #f1f0f6;
	font-size: 16px;
	font-weight: 600;
	color: rgba(47, 38, 88, 0.6);
	font-variant-numeric: tabular-nums;
}

.fxm-rk-row.is-top .fxm-rk-rank {
	--medal: var(--rk-gold);
	width: 30px;
	height: 30px;
	margin-top: 8px;
	background: radial-gradient(circle at 35% 30%, #ffffff 0%, color-mix(in srgb, var(--medal) 55%, #ffffff) 22%, var(--medal) 70%);
	box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--medal) 80%, #000000), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
	font-size: 14px;
	font-weight: 800;
	color: #ffffff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
	isolation: isolate;
}

/* Ribbon above the medal; it stops at the medal's rim. */
.fxm-rk-row.is-top .fxm-rk-rank::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	z-index: -1;
	width: 14px;
	height: 13px;
	margin-left: -7px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
	background: color-mix(in srgb, var(--medal) 75%, #4f34d9);
}

.fxm-rk-row.is-place-2 .fxm-rk-rank { --medal: var(--rk-silver); }
.fxm-rk-row.is-place-3 .fxm-rk-rank { --medal: var(--rk-bronze); }

.fxm-rk-rank > span {
	position: relative;
}

.fxm-rk-logo,
.fxm-rk-quick-logo {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #ecebf3;
	background: #ffffff;
}

.fxm-rk-logo::before,
.fxm-rk-quick-logo::before {
	content: attr(data-initial);
	font-weight: 800;
	color: var(--rk-primary);
}

.fxm-rk-logo img,
.fxm-rk-quick-logo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 5px;
	background: #ffffff;
	object-fit: contain;
}

.fxm-rk-logo {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	font-size: 22px;
}

.fxm-rk-name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rk-strong);
	overflow-wrap: anywhere;
}

.fxm-rk-row-link:hover .fxm-rk-name {
	color: var(--rk-primary);
}

/* Status badge row + attribute chips */
.fxm-rk-tags {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.fxm-rk-badges,
.fxm-rk-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	min-width: 0;
}

.fxm-rk-status,
.fxm-rk-risk {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.fxm-rk-status.is-licensed { background: #1fb36f; color: #ffffff; }
.fxm-rk-status.is-offshore { background: #f59e0b; color: #ffffff; }
.fxm-rk-status.is-unverified { background: #ebeaf2; color: rgba(47, 38, 88, 0.6); }

.fxm-rk-risk.is-high { background: #ffe9ea; color: #c9302c; }
.fxm-rk-risk.is-medium { background: #fff3dc; color: #b26a00; }
.fxm-rk-risk.is-low { background: #e6f7ef; color: var(--rk-good); }

.fxm-rk-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	height: 20px;
	padding: 0 6px;
	border: 1px solid var(--rk-chip-line);
	border-radius: 4px;
	background: #ffffff;
	font-size: 11px;
	line-height: 1;
	color: rgba(47, 38, 88, 0.62);
	white-space: nowrap;
}

.fxm-rk-chip svg {
	color: rgba(47, 38, 88, 0.45);
}

/* Score + change */
.fxm-rk-score {
	display: grid;
	justify-items: center;
	gap: 2px;
	text-align: center;
}

.fxm-rk-score strong {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--rk-strong);
	font-variant-numeric: tabular-nums;
}

.fxm-rk-score strong.is-empty {
	color: rgba(47, 38, 88, 0.3);
}

.fxm-rk-score small {
	font-size: 12px;
	color: var(--rk-muted);
	white-space: nowrap;
}

.fxm-rk-change-cell {
	display: flex;
	justify-content: center;
}

.fxm-rk-change {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 40px;
	height: 26px;
	padding: 0 6px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.fxm-rk-change.is-good { background: #e6f7ef; color: var(--rk-good); }
.fxm-rk-change.is-bad { background: #ffeced; color: var(--rk-bad); }
.fxm-rk-change.is-flat { background: #f1f0f6; color: rgba(47, 38, 88, 0.4); }

.fxm-rk-change.is-new {
	background: #efeaff;
	font-size: 11px;
	color: var(--rk-primary);
	white-space: nowrap;
}

.fxm-rk-state {
	padding: 48px 16px;
	text-align: center;
}

.fxm-rk-state h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--rk-strong);
}

.fxm-rk-state p {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--rk-muted);
}

.fxm-rk-disclaimer {
	margin: 10px 12px 4px;
	padding-top: 12px;
	border-top: 1px solid var(--rk-line);
	font-size: 12px;
	line-height: 1.6;
	color: rgba(47, 38, 88, 0.4);
}

/* Sidebar panels. One explicit 0-min track, so a long name or the ad card can
   never widen the sidebar past its 300px column. */
.fxm-rk-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.fxm-rk-side > * {
	min-width: 0;
}

.fxm-rk-panel {
	padding: 18px 16px 16px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: var(--rk-card-shadow);
}

.fxm-rk-panel-title {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 800;
	color: var(--rk-strong);
}

.fxm-rk-quick {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fxm-rk-quick > li {
	min-width: 0;
}

.fxm-rk-quick a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 10px 6px 6px;
	border-radius: 10px;
	background: var(--rk-row);
	transition: background 0.16s ease;
}

.fxm-rk-quick a:hover {
	background: #efebff;
}

.fxm-rk-quick-logo {
	width: 40px;
	height: 40px;
	border-radius: 9px;
	font-size: 16px;
}

.fxm-rk-quick-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 500;
	color: var(--rk-strong);
}

.fxm-rk-quick a:hover .fxm-rk-quick-name {
	color: var(--rk-primary);
}

.fxm-rk-quick-go {
	flex-shrink: 0;
	color: rgba(47, 38, 88, 0.35);
}

.fxm-rk-method {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fxm-rk-method li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.fxm-rk-method-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background: #efebff;
	color: var(--rk-primary);
}

.fxm-rk-method strong,
.fxm-rk-method small {
	display: block;
}

.fxm-rk-method strong {
	font-size: 14px;
	font-weight: 700;
	color: var(--rk-strong);
}

.fxm-rk-method small {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--rk-muted);
}

@media (max-width: 1199px) and (min-width: 1024px) {
	.fxm-rk-row-link {
		grid-template-columns: 40px 48px minmax(96px, 140px) minmax(0, 1fr) 92px 48px;
		gap: 10px;
	}

	.fxm-rk-logo {
		width: 48px;
		height: 48px;
	}
}

@media (max-width: 767px) {
	.fxm-rk-title {
		font-size: 22px;
	}

	.fxm-rk-tabs {
		gap: 24px;
	}

	.fxm-rk-tab {
		font-size: 15px;
	}

	.fxm-rk-card {
		padding: 6px;
	}

	/* Phone row: rank · logo · name · score/change on top, chips underneath. */
	.fxm-rk-row-link {
		grid-template-columns: 30px 44px minmax(0, 1fr) auto;
		grid-template-areas:
			"rank logo name score"
			"rank logo tags change";
		gap: 4px 10px;
		padding: 10px 8px;
	}

	.fxm-rk-rank { grid-area: rank; width: 26px; height: 26px; font-size: 13px; }
	.fxm-rk-logo { grid-area: logo; width: 44px; height: 44px; border-radius: 10px; }
	.fxm-rk-name { grid-area: name; font-size: 15px; -webkit-line-clamp: 1; }
	.fxm-rk-tags { grid-area: tags; }
	.fxm-rk-score { grid-area: score; justify-items: end; }
	.fxm-rk-change-cell { grid-area: change; justify-content: flex-end; align-self: start; }

	.fxm-rk-row.is-top .fxm-rk-rank {
		width: 26px;
		height: 26px;
	}

	.fxm-rk-score strong {
		font-size: 18px;
	}

	.fxm-rk-score small {
		display: none;
	}

	.fxm-rk-chips .fxm-rk-chip:nth-child(n + 4) {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/*  Ad slots (inc/ad-slots.php): banner, list row, sidebar card        */
/*  The artwork sits on the right of each background, copy on the left. */
/* ------------------------------------------------------------------ */

.fxm-ad {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 18px;
	overflow: hidden;
	border: 1px solid rgba(79, 52, 217, 0.08);
	border-radius: 16px;
	background: #f7f6fc var(--fxm-ad-bg) right center / cover no-repeat;
	color: var(--rk-strong, #1c1844);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fxm-ad:hover {
	transform: translateY(-1px);
	border-color: rgba(79, 52, 217, 0.2);
	box-shadow: 0 16px 30px -20px rgba(79, 52, 217, 0.45);
}

.fxm-ad-label {
	position: absolute;
	top: 10px;
	left: 12px;
	padding: 1px 7px;
	border: 1px solid rgba(22, 163, 104, 0.35);
	border-radius: 4px;
	background: rgba(230, 247, 239, 0.9);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
	color: #16a368;
}

/* Broker logo on a white tile; wide wordmarks keep their proportions. */
.fxm-ad-logo {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 64px;
	height: 64px;
	border: 1px solid rgba(47, 38, 88, 0.06);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 10px 22px -14px rgba(47, 38, 88, 0.45);
}

.fxm-ad-logo img {
	width: 100%;
	height: 100%;
	padding: 7px;
	object-fit: contain;
}

/* A booked broker without a logo shows its initial. */
.fxm-ad-initial {
	font-family: var(--font-family-heading);
	font-size: 22px;
	font-weight: 700;
	color: #4f34d9;
}

.fxm-ad-copy {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.fxm-ad-title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fxm-ad-copy strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.fxm-ad-badge {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 3px;
	height: 20px;
	padding: 0 7px;
	border-radius: 4px;
	background: #1fb36f;
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
}

.fxm-ad-copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(47, 38, 88, 0.62);
}

.fxm-ad-score {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 0 8px;
}

.fxm-ad-score strong {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--rk-strong, #1c1844);
	font-variant-numeric: tabular-nums;
}

.fxm-ad-score small {
	font-size: 12px;
	color: rgba(47, 38, 88, 0.5);
	white-space: nowrap;
}

.fxm-ad-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 20px;
	border-radius: 10px;
	background: var(--rk-primary, #4f34d9);
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	white-space: nowrap;
	box-shadow: 0 12px 22px -14px rgba(79, 52, 217, 0.9);
	transition: background 0.16s ease;
}

.fxm-ad:hover .fxm-ad-cta {
	background: #4229c4;
}

.fxm-ad:hover .fxm-ad-cta svg {
	transform: translateX(3px);
}

.fxm-ad-cta svg {
	transition: transform 0.16s ease;
}

/* Banner above the board and the row after the third place share the ranking
   row's columns (rank | logo | name …), so the logo and the name line up with
   the rows: the "广告" label takes the rank column. Paddings mirror the row
   (12px) less the ad's 1px border; the banner sits outside the card, so it
   also adds the card's 10px padding. */
.fxm-ad.is-banner,
.fxm-ad.is-inline {
	grid-template-columns: 44px 56px minmax(0, 1fr) 96px auto;
	gap: 14px;
}

.fxm-ad.is-banner .fxm-ad-label,
.fxm-ad.is-inline .fxm-ad-label {
	position: static;
	justify-self: center;
}

.fxm-ad.is-banner .fxm-ad-logo,
.fxm-ad.is-inline .fxm-ad-logo {
	width: 56px;
	height: 56px;
	border-color: #ecebf3;
	border-radius: 12px;
	box-shadow: none;
}

.fxm-ad.is-banner .fxm-ad-logo img,
.fxm-ad.is-inline .fxm-ad-logo img {
	padding: 5px;
}

.fxm-ad.is-banner .fxm-ad-copy strong,
.fxm-ad.is-inline .fxm-ad-copy strong {
	font-size: 16px;
	font-weight: 700;
}

.fxm-ad.is-banner .fxm-ad-score strong,
.fxm-ad.is-inline .fxm-ad-score strong {
	font-size: 22px;
}

.fxm-ad.is-banner .fxm-ad-cta,
.fxm-ad.is-inline .fxm-ad-cta {
	height: 38px;
	padding: 0 18px;
	font-size: 14px;
}

/* Banner above the board */
.fxm-rk-ad-banner {
	margin-bottom: 14px;
}

.fxm-ad.is-banner {
	min-height: 88px;
	padding: 15px 21px;
}

/* Row inside the list, after the third place */
.fxm-rk-ad-row {
	margin: 6px 0;
}

.fxm-ad.is-inline {
	min-height: 76px;
	padding: 9px 11px;
}

.fxm-ad.is-inline .fxm-ad-copy small {
	font-size: 13px;
}

.fxm-rk-ad-row + .fxm-rk-row .fxm-rk-row-link {
	border-top: 0;
}

@media (max-width: 1199px) and (min-width: 1024px) {
	/* Rows narrow to 40px | 48px with 10px gaps here. */
	.fxm-ad.is-banner,
	.fxm-ad.is-inline {
		grid-template-columns: 40px 48px minmax(0, 1fr) 92px auto;
		gap: 10px;
	}

	.fxm-ad.is-banner .fxm-ad-logo,
	.fxm-ad.is-inline .fxm-ad-logo {
		width: 48px;
		height: 48px;
	}
}

/* Sidebar card: logo + name, points underneath, score beside the button. */
.fxm-ad.is-side {
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px 12px;
	padding: 38px 16px 16px;
	background-position: 70% center;
	box-shadow: var(--rk-card-shadow);
}

.fxm-ad.is-side .fxm-ad-logo {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.fxm-ad.is-side .fxm-ad-title {
	flex-wrap: wrap;
	gap: 4px 6px;
}

.fxm-ad.is-side .fxm-ad-copy small {
	white-space: normal;
}

.fxm-ad.is-side .fxm-ad-score {
	justify-items: start;
	padding: 0;
}

.fxm-ad.is-side .fxm-ad-score strong {
	font-size: 20px;
}

.fxm-ad.is-side .fxm-ad-copy strong {
	font-size: 16px;
}

.fxm-ad.is-side .fxm-ad-copy small {
	font-size: 12px;
}

.fxm-ad.is-side .fxm-ad-cta {
	justify-content: center;
	height: 38px;
	font-size: 14px;
}

@media (max-width: 767px) {
	/* Phone: the row's 30px | 44px columns again (label | logo | name/points | score),
	   button underneath from the logo column. Rows pad 8px inside a 6px card. */
	.fxm-ad.is-banner,
	.fxm-ad.is-inline {
		grid-template-columns: 30px 44px minmax(0, 1fr) auto;
		gap: 10px;
		padding: 9px 7px;
		background-position: 75% center;
	}

	.fxm-ad.is-banner {
		padding: 11px 13px;
	}

	.fxm-ad.is-banner .fxm-ad-label,
	.fxm-ad.is-inline .fxm-ad-label {
		padding: 1px 3px;
		font-size: 10px;
	}

	.fxm-ad.is-banner .fxm-ad-cta,
	.fxm-ad.is-inline .fxm-ad-cta {
		grid-column: 2 / -1;
		justify-content: center;
		height: 38px;
	}

	.fxm-ad.is-banner .fxm-ad-logo,
	.fxm-ad.is-inline .fxm-ad-logo {
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.fxm-ad.is-banner .fxm-ad-copy strong,
	.fxm-ad.is-inline .fxm-ad-copy strong {
		font-size: 15px;
	}

	.fxm-ad-score {
		padding: 0;
	}

	.fxm-ad-score strong,
	.fxm-ad.is-banner .fxm-ad-score strong,
	.fxm-ad.is-inline .fxm-ad-score strong {
		font-size: 18px;
	}

	.fxm-ad-score small {
		display: none;
	}

	.fxm-ad-title {
		flex-wrap: wrap;
		gap: 4px 6px;
	}

	.fxm-ad-copy small {
		white-space: normal;
	}


	.fxm-ad-copy small,
	.fxm-ad.is-inline .fxm-ad-copy small {
		font-size: 12px;
	}
}

/* ---------- H5 (< 768px): two-line rows ---------- */
@media (max-width: 767px) {
	.fxm-rk-tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
	.fxm-rk-tabs::-webkit-scrollbar { display: none; }
	.fxm-rk-tab { flex-shrink: 0; }
	/* status + chips on one line, faded out at the edge instead of wrapping into a third row */
	.fxm-rk-tags {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 4px;
		min-width: 0;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
		mask-image: linear-gradient(90deg, #000 86%, transparent);
	}
	.fxm-rk-badges,
	.fxm-rk-chips { flex-wrap: nowrap; flex-shrink: 0; gap: 4px; }
	.fxm-rk-chip,
	.fxm-rk-status,
	.fxm-rk-risk { flex-shrink: 0; white-space: nowrap; }
	.fxm-rk-change.is-flat { display: none; }
	.fxm-rk-row-link { align-items: center; }
}
