/**
 * Regulator detail page.
 * Tailwind in pc-dist is precompiled; this file owns the regulator detail hero,
 * tab bar and module cards. Values mirror fxm-broker-detail.css so the two
 * detail pages read as one system.
 */

[data-fxm-regulator-detail-page],
[data-fxm-disclosure-detail-page] {
	--rd-ink: #2f2658;
	--rd-primary: #4f34d9;
	--rd-row: #f6f5fb;
	--rd-soft: #f8f7fc;
	--rd-card-shadow: 0 10px 28px -14px rgba(79, 52, 217, 0.16), 0 4px 12px -8px rgba(47, 38, 88, 0.08);
	--rd-panel-shadow: 0 10px 26px -12px rgba(79, 52, 217, 0.16), 0 3px 10px -6px rgba(47, 38, 88, 0.08);
	background: var(--rd-soft);
}

/* ------------------------------------------------------------------ */
/*  Top band: breadcrumb + hero                                       */
/* ------------------------------------------------------------------ */

.fxm-rd-top {
	background: #ffffff;
	padding-top: calc(var(--spacing, 0.25rem) * 18);
}

.fxm-rd-crumbs {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-top: 16px;
	font-size: 13px;
	color: rgba(47, 38, 88, 0.6);
}

.fxm-rd-crumbs a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.16s ease;
}

.fxm-rd-crumbs a:hover {
	color: var(--rd-primary);
}

.fxm-rd-crumbs .is-current {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	color: rgba(47, 38, 88, 0.82);
}

.fxm-rd-hero-wrap {
	padding: 16px 0 24px;
}

[data-fxm-regulator-hero] {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background: #f3f1f8;
}

[data-fxm-regulator-hero] .fxm-rd-accent {
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: linear-gradient(90deg, #4f34d9 0%, #6b55f8 52%, #89dfd7 100%);
}

[data-fxm-regulator-hero] .fxm-rd-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 18% 18%, rgba(105, 81, 246, 0.1), transparent 30%),
		radial-gradient(circle at 82% 16%, rgba(137, 223, 215, 0.07), transparent 25%),
		radial-gradient(circle at 50% 78%, rgba(79, 52, 217, 0.05), transparent 35%),
		linear-gradient(180deg, #ffffff 0%, #fbfbff 60%, #f7f6ff 100%);
}

.fxm-rd-hero-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.fxm-rd-hero-left {
	display: flex;
	flex-direction: column;
	width: 100%;
	flex-shrink: 0;
}

.fxm-rd-hero-right {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
}

@media (min-width: 640px) {
	.fxm-rd-hero-inner {
		padding: 24px 28px;
	}
}

@media (min-width: 1024px) {
	.fxm-rd-hero-inner {
		flex-direction: row;
		align-items: stretch;
		gap: 24px;
	}

	.fxm-rd-hero-left {
		width: 360px;
	}
}

.fxm-rd-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 18px 16px 16px;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 10px 28px -12px rgba(79, 52, 217, 0.18), 0 4px 12px -8px rgba(47, 38, 88, 0.12);
}

.fxm-rd-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.fxm-rd-logo img {
	display: block;
	width: 100%;
	height: 100%;
	/* Regulator logos come in every aspect ratio; cover would crop them. */
	object-fit: contain;
}

.fxm-rd-logo-sm {
	width: 48px;
	height: 48px;
}

.fxm-rd-logo-lg {
	width: 108px;
	height: 64px;
}

.fxm-rd-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.fxm-rd-brand-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rd-ink);
}

.fxm-rd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 8px 0 0;
	font-size: 12px;
	font-weight: 500;
	color: rgba(47, 38, 88, 0.55);
}

.fxm-rd-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.fxm-rd-meta-dot {
	color: rgba(47, 38, 88, 0.3);
}

.fxm-rd-scorebox {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 22px;
	background: linear-gradient(180deg, #f4f1ff 0%, #ece8ff 100%);
	box-shadow: 0 8px 22px -12px rgba(79, 52, 217, 0.16), 0 2px 8px -6px rgba(47, 38, 88, 0.08);
}

.fxm-rd-scorebox > div {
	flex: 1 1 0;
	min-width: 0;
}

.fxm-rd-scorebox > .fxm-rd-divider {
	flex: 0 0 1px;
	width: 1px;
	height: 36px;
	background: rgba(79, 52, 217, 0.14);
}

.fxm-rd-kicker {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #3d2ba8;
}

.fxm-rd-num {
	margin: 4px 0 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--rd-primary);
	font-variant-numeric: tabular-nums;
}

.fxm-rd-num.is-muted {
	font-size: 17px;
	color: rgba(47, 38, 88, 0.45);
}

.fxm-rd-radar {
	height: 176px;
	margin-top: 8px;
	border-radius: 16px;
	background: #ffffff;
}

.fxm-rd-radar svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fxm-rd-card-foot {
	margin-top: auto;
	padding-top: 12px;
}

.fxm-rd-note {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: rgba(47, 38, 88, 0.45);
}

.fxm-rd-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.fxm-rd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 36px;
	padding: 0 13px;
	border: 1px solid #e3e0ee;
	border-radius: 9999px;
	background: #ffffff;
	font-size: 13px;
	font-weight: 500;
	color: rgba(47, 38, 88, 0.75);
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.fxm-rd-btn:hover {
	border-color: rgba(79, 52, 217, 0.3);
	color: var(--rd-primary);
}

.fxm-rd-btn.is-ai {
	border-color: rgba(79, 52, 217, 0.3);
	background: linear-gradient(90deg, #efeaff 0%, rgba(184, 170, 255, 0.2) 100%);
	color: var(--rd-primary);
}

.fxm-rd-btn.is-primary {
	border-color: transparent;
	background: var(--rd-primary);
	color: #ffffff;
	box-shadow: 0 12px 24px -14px rgba(79, 52, 217, 0.6);
}

.fxm-rd-btn.is-primary:hover {
	transform: translateY(-1px);
	background: #4229c4;
	color: #ffffff;
}

.fxm-rd-updated {
	margin: 10px 0 0;
	font-size: 12px;
	color: rgba(47, 38, 88, 0.45);
}

.fxm-rd-updated span {
	margin-left: 4px;
	color: rgba(47, 38, 88, 0.7);
	font-variant-numeric: tabular-nums;
}

/* Right column: identity, chip panel, protection panel, stats strip. */

.fxm-rd-identity {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 4px 2px 2px;
}

.fxm-rd-title {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.045em;
	color: var(--rd-ink);
}

.fxm-rd-identity-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.fxm-rd-short {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 8px;
	background: #efeaff;
	font-size: 12px;
	font-weight: 700;
	color: var(--rd-primary);
}

.fxm-rd-site {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	padding: 4px 11px;
	border: 1px solid rgba(79, 52, 217, 0.16);
	border-radius: 9999px;
	background: #ffffff;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--rd-primary);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.fxm-rd-site:hover {
	border-color: rgba(79, 52, 217, 0.4);
	background: #f6f4ff;
}

.fxm-rd-site span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fxm-rd-summary {
	display: -webkit-box;
	overflow: hidden;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: rgba(47, 38, 88, 0.62);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.fxm-rd-panel {
	padding: 12px 14px;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: var(--rd-panel-shadow);
}

.fxm-rd-panel-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--rd-ink);
}

.fxm-rd-chip-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 2px 0;
}

.fxm-rd-chip-row + .fxm-rd-chip-row {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid rgba(79, 52, 217, 0.08);
}

.fxm-rd-chip-label {
	flex-shrink: 0;
	width: 80px;
	padding-top: 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: rgba(47, 38, 88, 0.48);
}

.fxm-rd-chip-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fxm-rd-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 9999px;
	background: #f6f4fb;
	font-size: 12px;
	font-weight: 600;
	color: #3f3858;
}

.fxm-rd-chip.is-active {
	background: #efeaff;
	color: var(--rd-primary);
}

/* The protection panel takes the column's spare height, as the broker
   regulator panel does, so the stats strip closes level with the left card. */
.fxm-rd-panel.is-grow {
	flex: 1 1 auto;
}

.fxm-rd-state {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 4px;
	padding: 2px 8px;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.fxm-rd-state.is-yes {
	border-color: #a7f3d0;
	background: #ecfdf5;
	color: #047857;
}

.fxm-rd-state.is-warn {
	border-color: #fde68a;
	background: #fffbeb;
	color: #92400e;
}

.fxm-rd-state.is-no {
	border-color: #fecdd3;
	background: #ffffff;
	color: #9f1239;
}

.fxm-rd-state.is-na {
	border-color: rgba(47, 38, 88, 0.12);
	background: #ffffff;
	color: rgba(47, 38, 88, 0.5);
}

.fxm-rd-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	overflow: hidden;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 8px 22px -12px rgba(79, 52, 217, 0.16), 0 2px 8px -6px rgba(47, 38, 88, 0.08);
}

.fxm-rd-stat {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 14px 16px;
}

.fxm-rd-stat + .fxm-rd-stat {
	border-left: 1px solid rgba(79, 52, 217, 0.1);
}

.fxm-rd-stat-icon {
	flex-shrink: 0;
	color: var(--rd-primary);
}

.fxm-rd-stat > div {
	min-width: 0;
}

.fxm-rd-stat-label {
	margin: 0;
	font-size: 12px;
	color: rgba(47, 38, 88, 0.5);
}

.fxm-rd-stat-value {
	margin: 2px 0 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 700;
	color: var(--rd-ink);
	font-variant-numeric: tabular-nums;
}

.fxm-rd-stat-value.is-muted {
	font-size: 13px;
	font-weight: 600;
	color: rgba(47, 38, 88, 0.45);
}

@media (max-width: 767px) {
	.fxm-rd-stats {
		grid-template-columns: minmax(0, 1fr);
	}

	.fxm-rd-stat + .fxm-rd-stat {
		border-left: 0;
		border-top: 1px solid rgba(79, 52, 217, 0.1);
	}

	.fxm-rd-identity .fxm-rd-logo-lg {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/*  Sticky tab bar (anchor tabs, same behaviour as the broker page)    */
/* ------------------------------------------------------------------ */

[data-fxm-regulator-tabs] {
	position: sticky;
	top: var(--fxm-detail-sticky-top, calc(var(--spacing, 0.25rem) * 18));
	z-index: 40;
	border-bottom: 1px solid rgba(47, 38, 88, 0.08);
	background: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	box-shadow: 0 4px 24px -10px rgba(0, 0, 0, 0.08);
}

.fxm-rd-tabs-inner {
	position: relative;
}

.fxm-rd-tabs-inner::after {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 40px;
	pointer-events: none;
	background: linear-gradient(270deg, rgba(255, 255, 255, 0.95), transparent);
}

[data-fxm-regulator-tab-scroller] {
	display: flex;
	align-items: center;
	gap: 4px;
	overflow-x: auto;
	padding: 12px 32px 12px 0;
	scrollbar-width: none;
}

[data-fxm-regulator-tab-scroller]::-webkit-scrollbar {
	display: none;
}

.fxm-rd-tab {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(47, 38, 88, 0.72);
	white-space: nowrap;
	transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.fxm-rd-tab:hover {
	background: rgba(79, 52, 217, 0.06);
	color: var(--rd-primary);
}

.fxm-rd-tab[aria-current="true"] {
	background: var(--rd-primary);
	color: #ffffff;
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.18);
}

/* ------------------------------------------------------------------ */
/*  Body sections and module cards                                    */
/* ------------------------------------------------------------------ */

.fxm-rd-body {
	display: grid;
	gap: 40px;
	padding: 24px 0 64px;
}

[data-fxm-regulator-section] {
	scroll-margin-top: var(--fxm-detail-scroll-margin, 140px);
}

@media (min-width: 783px) {
	.admin-bar [data-fxm-regulator-tabs] {
		top: var(--fxm-detail-sticky-top, calc(var(--wp-admin--admin-bar--height, 32px) + var(--spacing, 0.25rem) * 18));
	}
	.admin-bar [data-fxm-regulator-section] {
		scroll-margin-top: var(--fxm-detail-scroll-margin, calc(var(--wp-admin--admin-bar--height, 32px) + 140px));
	}
}

@media (min-width: 768px) and (max-width: 782px) {
	.admin-bar [data-fxm-regulator-tabs] {
		top: var(--fxm-detail-sticky-top, calc(var(--wp-admin--admin-bar--height, 46px) + var(--spacing, 0.25rem) * 18));
	}
	.admin-bar [data-fxm-regulator-section] {
		scroll-margin-top: var(--fxm-detail-scroll-margin, calc(var(--wp-admin--admin-bar--height, 46px) + 140px));
	}
}

@media (min-width: 601px) and (max-width: 767.98px) {
	.admin-bar [data-fxm-regulator-tabs] {
		top: var(--fxm-detail-sticky-top, calc(var(--wp-admin--admin-bar--height, 46px) + var(--fxm-m-header, 60px)));
	}
	.admin-bar [data-fxm-regulator-section] {
		scroll-margin-top: var(--fxm-detail-scroll-margin, calc(var(--wp-admin--admin-bar--height, 46px) + 116px));
	}
}

.fxm-rd-grid-2 {
	display: grid;
	gap: 20px;
}

@media (min-width: 1024px) {
	.fxm-rd-grid-2 {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}
}

.fxm-rd-mod {
	position: relative;
	overflow: hidden;
	padding: 18px 18px 16px;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: var(--rd-card-shadow);
}

.fxm-rd-mod::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--rd-primary);
}

.fxm-rd-mod.is-teal::before {
	background: #89dfd7;
}

.fxm-rd-mod.is-amber::before {
	background: #f59e0b;
}

.fxm-rd-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 2px 14px;
}

.fxm-rd-head-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.fxm-rd-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9999px;
	background: var(--rd-primary);
	color: #ffffff;
}

.fxm-rd-head-kicker {
	margin: 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(47, 38, 88, 0.42);
}

.fxm-rd-head-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rd-ink);
}

.fxm-rd-head-sub {
	margin: 2px 0 0;
	font-size: 12px;
	color: rgba(47, 38, 88, 0.45);
}

.fxm-rd-head-aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fxm-rd-count {
	font-size: 12px;
	font-weight: 600;
	color: rgba(47, 38, 88, 0.5);
	font-variant-numeric: tabular-nums;
}

/* About card: the same kicker / founded / intro rhythm as the broker card. */

.fxm-rd-about {
	position: relative;
	overflow: hidden;
	padding: 18px 20px 18px;
	border-radius: 24px;
	background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #f1edff 100%);
	box-shadow: var(--rd-card-shadow);
}

.fxm-rd-about .fxm-rd-head {
	align-items: flex-start;
	padding: 0 0 16px;
}

.fxm-rd-founded {
	text-align: right;
}

.fxm-rd-founded span {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(47, 38, 88, 0.42);
}

.fxm-rd-founded strong {
	display: block;
	margin-top: 4px;
	font-size: 28px;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--rd-primary);
}

.fxm-rd-intro {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.85;
	color: rgba(47, 38, 88, 0.78);
	white-space: pre-line;
}

.fxm-rd-intro.is-collapsed {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
}

.fxm-rd-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--rd-primary);
	cursor: pointer;
}

.fxm-rd-more svg {
	transition: transform 0.2s ease;
}

.fxm-rd-more[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.fxm-rd-block {
	margin-top: 20px;
}

.fxm-rd-block-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--rd-ink);
}

.fxm-rd-foot {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid rgba(79, 52, 217, 0.08);
	font-size: 12px;
	color: rgba(47, 38, 88, 0.45);
}

/* Rows: the list language shared by every module. */

.fxm-rd-rows {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.fxm-rd-rows.is-2col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fxm-rd-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--rd-row);
}

.fxm-rd-row > .fxm-rd-btn {
	flex-shrink: 0;
}

.fxm-rd-row.is-top {
	align-items: flex-start;
}

.fxm-rd-row.is-compact {
	padding: 10px 12px;
}

.fxm-rd-row-label.is-md {
	font-size: 13px;
	font-weight: 600;
}

.fxm-rd-row-lead {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.fxm-rd-row-main {
	min-width: 0;
}

.fxm-rd-row-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--rd-ink);
}

.fxm-rd-row-label.is-sm {
	font-size: 12px;
	font-weight: 600;
	color: rgba(47, 38, 88, 0.5);
}

.fxm-rd-row-sub {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.65;
	color: rgba(47, 38, 88, 0.55);
}

.fxm-rd-row-value {
	flex-shrink: 0;
	max-width: 55%;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
	color: var(--rd-ink);
	font-variant-numeric: tabular-nums;
}

.fxm-rd-row-value.is-primary {
	color: var(--rd-primary);
}

.fxm-rd-row-value.is-muted {
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(47, 38, 88, 0.45);
}

.fxm-rd-row-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9999px;
	background: #ffffff;
	color: var(--rd-primary);
	box-shadow: 0 4px 10px -6px rgba(79, 52, 217, 0.35);
}

.fxm-rd-link {
	font-weight: 600;
	color: var(--rd-primary);
	word-break: break-word;
}

.fxm-rd-link:hover {
	text-decoration: underline;
}

.fxm-rd-row-text {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--rd-ink);
	word-break: break-word;
}

.fxm-rd-row-text.fxm-rd-link {
	color: var(--rd-primary);
}

.fxm-rd-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 28px 16px;
	border-radius: 16px;
	background: var(--rd-soft);
	font-size: 13px;
	color: rgba(47, 38, 88, 0.45);
}

/* Regulator news is separate from the disclosure records below it. */
.fxm-rd-news-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
}

.fxm-rd-news-item {
	min-width: 0;
	padding: 18px 2px;
	border-top: 1px solid rgba(47, 38, 88, 0.08);
}

.fxm-rd-news-title {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.65;
	color: var(--rd-ink);
	overflow-wrap: anywhere;
}

.fxm-rd-news-title a:hover { color: var(--rd-primary); }
.fxm-rd-news-title a:focus-visible { outline: 2px solid var(--rd-primary); outline-offset: 3px; }

.fxm-rd-news-summary {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.65;
	color: rgba(47, 38, 88, 0.62);
	overflow-wrap: anywhere;
}

.fxm-rd-news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(47, 38, 88, 0.5);
	overflow-wrap: anywhere;
}

.fxm-rd-news-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 20px 12px;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(47, 38, 88, 0.62);
}
.fxm-rd-news-empty .fxm-rd-btn { margin-top: 12px; }
.fxm-rd-news-empty[hidden] { display: none; }
[data-fxm-regulator-news][data-loading="1"] .fxm-rd-news-list { opacity: 0.55; pointer-events: none; }

@media (max-width: 767.98px) {
	.fxm-rd-news-list { grid-template-columns: minmax(0, 1fr); }
	.fxm-rd-news-title { font-size: 14px; color: #202532; }
	.fxm-rd-news-item { padding: 14px 0; }
	[data-fxm-regulator-news] .fxm-rd-icon { display: none; }
	[data-fxm-regulator-news] .fxm-rd-pager a { width: 36px; height: 36px; }
}

/* Affiliated brokers. */

.fxm-rd-broker-grid {
	display: grid;
	gap: 8px;
}

@media (min-width: 768px) {
	.fxm-rd-broker-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fxm-rd-broker {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--rd-row);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

a.fxm-rd-broker:hover {
	background: #f1edff;
	box-shadow: 0 10px 22px -12px rgba(79, 52, 217, 0.24);
}

.fxm-rd-broker-logo {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 4px 10px -6px rgba(47, 38, 88, 0.2);
}

.fxm-rd-broker-logo img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.fxm-rd-broker-main {
	flex: 1 1 auto;
	min-width: 0;
}

.fxm-rd-broker-name {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fxm-rd-broker-name strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 700;
	color: var(--rd-ink);
}

.fxm-rd-broker-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin: 4px 0 0;
	font-size: 12px;
	color: rgba(47, 38, 88, 0.5);
}

.fxm-rd-broker-score {
	flex-shrink: 0;
	text-align: right;
}

.fxm-rd-broker-score strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	color: var(--rd-primary);
	font-variant-numeric: tabular-nums;
}

.fxm-rd-broker-score span {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: rgba(47, 38, 88, 0.45);
	white-space: nowrap;
}

[data-fxm-brokers][data-loading="1"] [data-fxm-brokers-list] {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.fxm-rd-pager {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fxm-rd-pager a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(79, 52, 217, 0.12);
	border-radius: 9999px;
	background: #f6f4ff;
	color: var(--rd-primary);
	transition: border-color 0.16s ease;
}

.fxm-rd-pager a:hover {
	border-color: rgba(79, 52, 217, 0.4);
}

.fxm-rd-pager a[aria-disabled="true"] {
	opacity: 0.35;
	pointer-events: none;
}

.fxm-rd-pager-info {
	min-width: 52px;
	font-size: 12px;
	text-align: center;
	color: rgba(47, 38, 88, 0.6);
	font-variant-numeric: tabular-nums;
}

/* Disclosures: text filters and years on one bar, then a two-column row list. */

[data-fxm-disclosures].fxm-rd-mod {
	padding: 22px 28px 20px;
}

[data-fxm-disclosures].fxm-rd-mod::before {
	display: none;
}

[data-fxm-disclosures] .fxm-rd-head {
	align-items: baseline;
	padding: 2px 0 6px;
}

[data-fxm-disclosures] .fxm-rd-head-title {
	font-size: 22px;
	letter-spacing: -0.03em;
	color: #1c1844;
}

[data-fxm-disclosures] .fxm-rd-count {
	font-size: 13px;
	font-weight: 500;
	color: rgba(47, 38, 88, 0.42);
}

.fxm-rd-dl.is-warning {
	--tl-bg: #f5a524;
	--tl-ink: #ffffff;
}

.fxm-rd-dl.is-danger,
.fxm-rd-dl.is-penalty {
	--tl-bg: #f2555a;
	--tl-ink: #ffffff;
}

.fxm-rd-dl.is-other {
	--tl-bg: #5b7cfa;
	--tl-ink: #ffffff;
}

.fxm-rd-dl-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
	.fxm-rd-dl-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 48px;
	}
}

.fxm-rd-dl {
	min-width: 0;
	padding: 16px 0 14px;
	border-bottom: 1px solid rgba(47, 38, 88, 0.08);
}

.fxm-rd-dl-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fxm-rd-dl-type {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--tl-bg, #8a8498);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--tl-ink, #ffffff);
	white-space: nowrap;
}

.fxm-rd-dl-title {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #1c1844;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fxm-rd-dl-title a {
	color: inherit;
}

.fxm-rd-dl-title a:hover {
	color: var(--rd-primary);
}

.fxm-rd-dl-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	margin-top: 8px;
}

.fxm-rd-dl-brokers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	min-width: 0;
}

.fxm-rd-dl-broker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
	color: rgba(47, 38, 88, 0.46);
	font-size: 13px;
	line-height: 1.4;
}

.fxm-rd-dl-broker-logo {
	flex-shrink: 0;
	width: auto;
	height: 20px;
	max-width: 96px;
	object-fit: contain;
	object-position: left center;
}

.fxm-rd-dl-broker span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.fxm-rd-dl-broker:hover {
	color: var(--rd-primary);
}

.fxm-rd-dl-date {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 400;
	color: rgba(47, 38, 88, 0.4);
	font-variant-numeric: tabular-nums;
}

[data-fxm-disclosures][data-loading="1"] [data-fxm-disclosures-list] {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.fxm-rd-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 13px;
	color: rgba(47, 38, 88, 0.55);
	cursor: pointer;
}

.fxm-rd-more:hover {
	color: var(--rd-primary);
}

.fxm-rd-more[hidden] {
	display: none;
}

@media (max-width: 767px) {
	[data-fxm-disclosures].fxm-rd-mod {
		padding: 18px 16px 16px;
	}

	[data-fxm-disclosures] .fxm-rd-head-title {
		font-size: 18px;
	}

	[data-fxm-disclosures] .fxm-rd-row {
		flex-wrap: wrap;
	}
}

/* Verification result cards (fixture regulators). */

.fxm-rd-disc {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--rd-soft);
}

.fxm-rd-disc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.fxm-rd-disc-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--rd-ink);
}

.fxm-rd-disc-target {
	margin: 0;
	font-size: 12px;
	color: rgba(47, 38, 88, 0.5);
}

.fxm-rd-disc-summary {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: rgba(47, 38, 88, 0.72);
}

.fxm-rd-disc-source {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--rd-primary);
}

/* Application requirements. */

.fxm-rd-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: #fffbeb;
}

.fxm-rd-notice-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	background: #fef3c7;
	color: #d97706;
}

.fxm-rd-notice p {
	margin: 0;
	min-width: 0;
	font-size: 13px;
	line-height: 1.85;
	color: #92400e;
	white-space: pre-line;
}

.fxm-rd-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

@media (min-width: 1024px) {
	.fxm-rd-tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fxm-rd-tile {
	min-width: 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--rd-row);
}

.fxm-rd-tile span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: rgba(47, 38, 88, 0.5);
}

.fxm-rd-tile span svg {
	color: var(--rd-primary);
}

.fxm-rd-tile strong {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--rd-ink);
}

.fxm-rd-step-no {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 9999px;
	background: var(--rd-primary);
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

.fxm-rd-tag {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 6px;
	background: #efeaff;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--rd-primary);
	vertical-align: 1px;
}

/* Verification. */

.fxm-rd-form {
	display: flex;
	gap: 8px;
}

.fxm-rd-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(47, 38, 88, 0.12);
	border-radius: 12px;
	background: #ffffff;
	font-size: 13.5px;
	color: var(--rd-ink);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fxm-rd-input:focus {
	border-color: rgba(79, 52, 217, 0.4);
	box-shadow: 0 0 0 3px rgba(79, 52, 217, 0.08);
}

.fxm-rd-form .fxm-rd-btn {
	height: 40px;
}

/* Vertical rhythm inside a module: notice, tiles, blocks. */
.fxm-rd-stack > * + * {
	margin-top: 16px;
}

/* ------------------------------------------------------------------ */
/*  Disclosure detail: /regulators/{id}/disclosures/{disclosureId}     */
/* ------------------------------------------------------------------ */

/* A list card with a detail page reads as a link. */
.fxm-rd-dl.has-detail .fxm-rd-dl-title a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.fxm-rd-dl.has-detail .fxm-rd-dl-title a:hover {
	text-decoration-color: currentColor;
}

/* The header card carries the white surface; the band behind it stays soft. */
[data-fxm-disclosure-detail-page] .fxm-rd-top {
	background: transparent;
}

/* Five crumbs and a long title: crumbs keep their width, only the title truncates,
   so the trail never widens the page on a phone. */
[data-fxm-disclosure-detail-page] .fxm-rd-crumbs {
	min-width: 0;
	overflow: hidden;
}

[data-fxm-disclosure-detail-page] .fxm-rd-crumbs > a,
[data-fxm-disclosure-detail-page] .fxm-rd-crumbs > svg {
	flex-shrink: 0;
	white-space: nowrap;
}

[data-fxm-disclosure-detail-page] .fxm-rd-crumbs .is-current {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
}

@media (max-width: 639px) {
	/* The regulator crumb already leads back to the list. */
	[data-fxm-disclosure-detail-page] .fxm-dd-crumb-list,
	[data-fxm-disclosure-detail-page] .fxm-dd-crumb-list + svg {
		display: none;
	}
}

.fxm-dd-hero {
	--tl-bg: #5b7cfa;
	position: relative;
	overflow: hidden;
	margin: 16px 0 24px;
	padding: 24px 22px 22px;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: var(--rd-card-shadow);
}

.fxm-dd-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--tl-bg);
}

.fxm-dd-hero.is-warning {
	--tl-bg: #f5a524;
}

.fxm-dd-hero.is-danger,
.fxm-dd-hero.is-penalty {
	--tl-bg: #f2555a;
}

.fxm-dd-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.fxm-dd-type {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 6px;
	background: var(--tl-bg);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	color: #ffffff;
}

.fxm-dd-severity {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 9999px;
	background: #f1eff8;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	color: rgba(47, 38, 88, 0.72);
}

.fxm-dd-severity.is-medium {
	background: #fff5e0;
	color: #b26a00;
}

.fxm-dd-severity.is-high,
.fxm-dd-severity.is-critical {
	background: #ffe9ea;
	color: #c9302c;
}

.fxm-dd-severity.is-critical {
	box-shadow: inset 0 0 0 1px rgba(201, 48, 44, 0.35);
}

.fxm-dd-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: rgba(47, 38, 88, 0.5);
	font-variant-numeric: tabular-nums;
}

.fxm-dd-title {
	margin: 14px 0 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #1c1844;
	overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
	.fxm-dd-hero {
		padding: 28px 32px 26px;
	}

	.fxm-dd-title {
		font-size: 28px;
	}
}

.fxm-dd-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.fxm-dd-publisher,
.fxm-dd-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	max-width: 100%;
	padding: 7px 12px;
	border-radius: 12px;
	background: var(--rd-row);
	font-size: 13px;
	color: rgba(47, 38, 88, 0.85);
}

.fxm-dd-publisher {
	transition: color 0.16s ease, background 0.16s ease;
}

.fxm-dd-publisher:hover {
	background: #efeaff;
	color: var(--rd-primary);
}

.fxm-dd-publisher img {
	width: 20px;
	height: 20px;
	border-radius: 5px;
	object-fit: contain;
	background: #ffffff;
}

.fxm-dd-publisher-icon {
	display: inline-flex;
	color: var(--rd-primary);
}

.fxm-dd-meta-label {
	flex-shrink: 0;
	color: rgba(47, 38, 88, 0.48);
}

.fxm-dd-publisher strong,
.fxm-dd-meta-item strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.fxm-dd-meta-item.is-penalty strong {
	color: #c9302c;
}

.fxm-dd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.fxm-dd-layout {
	display: grid;
	gap: 20px;
	padding-bottom: 64px;
}

@media (min-width: 1024px) {
	.fxm-dd-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}

	.fxm-dd-side {
		position: sticky;
		top: 92px;
	}
}

.fxm-dd-main,
.fxm-dd-side {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.fxm-dd-main > .fxm-rd-mod,
.fxm-dd-side > .fxm-rd-mod {
	padding: 22px 22px 20px;
}

.fxm-dd-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fxm-dd-section-title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: #1c1844;
}

.fxm-dd-section-head .fxm-dd-section-title {
	margin-bottom: 0;
}

.fxm-dd-summary p,
.fxm-dd-body p {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
	color: rgba(47, 38, 88, 0.86);
	overflow-wrap: anywhere;
}

.fxm-dd-body p + p {
	margin-top: 14px;
}

.fxm-dd-empty {
	margin: 0;
	font-size: 13px;
	color: rgba(47, 38, 88, 0.45);
}

.fxm-dd-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.fxm-dd-thumb {
	display: block;
	color: rgba(47, 38, 88, 0.7);
}

.fxm-dd-thumb-frame {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 1px solid #ebe8f4;
	border-radius: 14px;
	background: var(--rd-soft);
}

.fxm-dd-thumb-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.3s ease;
}

.fxm-dd-thumb-zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(28, 24, 68, 0.38);
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.fxm-dd-thumb:hover .fxm-dd-thumb-frame img,
.fxm-dd-thumb:focus-visible .fxm-dd-thumb-frame img {
	transform: scale(1.03);
}

.fxm-dd-thumb:hover .fxm-dd-thumb-zoom,
.fxm-dd-thumb:focus-visible .fxm-dd-thumb-zoom {
	opacity: 1;
}

.fxm-dd-thumb-name {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	font-size: 13px;
}

.fxm-dd-files {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.fxm-dd-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--rd-row);
}

.fxm-dd-file-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #ffffff;
	color: var(--rd-primary);
}

.fxm-dd-file-main {
	display: grid;
	flex: 1;
	min-width: 0;
	font-size: 12px;
	color: rgba(47, 38, 88, 0.45);
}

.fxm-dd-file-main strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: rgba(47, 38, 88, 0.88);
}

.fxm-dd-info-list {
	margin: 0;
}

.fxm-dd-info-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-top: 1px solid rgba(47, 38, 88, 0.07);
	font-size: 13px;
}

.fxm-dd-info-row:first-child {
	border-top: 0;
	padding-top: 2px;
}

.fxm-dd-info-row dt {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	color: rgba(47, 38, 88, 0.5);
}

.fxm-dd-info-row dd {
	min-width: 0;
	margin: 0;
	font-weight: 600;
	text-align: right;
	color: rgba(47, 38, 88, 0.88);
	overflow-wrap: anywhere;
}

.fxm-dd-info-row dd a {
	color: var(--rd-primary);
}

.fxm-dd-info-row dd a:hover {
	text-decoration: underline;
}

.fxm-dd-broker-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fxm-dd-broker {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 12px;
	background: var(--rd-row);
	transition: background 0.16s ease, color 0.16s ease;
}

a.fxm-dd-broker:hover {
	background: #efeaff;
	color: var(--rd-primary);
}

.fxm-dd-broker-logo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: #ffffff;
	font-size: 13px;
	font-weight: 700;
	color: var(--rd-primary);
}

.fxm-dd-broker-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fxm-dd-broker-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
}

.fxm-dd-broker-go {
	flex-shrink: 0;
	color: rgba(47, 38, 88, 0.35);
}

/* Attachment viewer */
.fxm-dd-viewer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	background: rgba(16, 13, 38, 0.92);
}

.fxm-dd-viewer[hidden] {
	display: none;
}

.fxm-dd-viewer-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
}

.fxm-dd-viewer-counter {
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.6);
}

.fxm-dd-viewer-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fxm-dd-viewer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	cursor: pointer;
	transition: background 0.16s ease;
}

.fxm-dd-viewer-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.fxm-dd-viewer-stage {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 8px 64px 32px;
	overflow: auto;
	overscroll-behavior: contain;
}

.fxm-dd-viewer-img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
	cursor: zoom-in;
	user-select: none;
	transition: opacity 0.2s ease;
}

/* Until the file has loaded: a spinner instead of a half-drawn image. */
.fxm-dd-viewer.is-loading .fxm-dd-viewer-img {
	opacity: 0;
}

.fxm-dd-viewer.is-loading .fxm-dd-viewer-stage::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #ffffff;
	border-radius: 9999px;
	animation: fxm-dd-spin 0.8s linear infinite;
}

@keyframes fxm-dd-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Zoomed: natural size, the stage scrolls. */
.fxm-dd-viewer.is-zoomed .fxm-dd-viewer-stage {
	align-items: flex-start;
	justify-content: flex-start;
}

.fxm-dd-viewer.is-zoomed .fxm-dd-viewer-img {
	max-width: none;
	max-height: none;
	margin: auto;
	cursor: zoom-out;
}

.fxm-dd-viewer-nav {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	cursor: pointer;
	transition: background 0.16s ease;
}

.fxm-dd-viewer-nav:hover {
	background: rgba(255, 255, 255, 0.24);
}

.fxm-dd-viewer-nav.is-prev {
	left: 12px;
}

.fxm-dd-viewer-nav.is-next {
	right: 12px;
}

@media (max-width: 767px) {
	.fxm-dd-hero {
		padding: 20px 16px 18px;
	}

	.fxm-dd-title {
		font-size: 20px;
	}

	.fxm-dd-main > .fxm-rd-mod,
	.fxm-dd-side > .fxm-rd-mod {
		padding: 18px 16px 16px;
	}

	.fxm-dd-thumbs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.fxm-dd-viewer-stage {
		padding: 8px 8px 72px;
	}

	.fxm-dd-viewer-nav {
		top: auto;
		bottom: 14px;
		margin-top: 0;
	}

	.fxm-dd-viewer-nav.is-prev {
		left: calc(50% - 56px);
	}

	.fxm-dd-viewer-nav.is-next {
		right: calc(50% - 56px);
	}
}

/* ---------- H5 (< 768px) ---------- */
@media (max-width: 767.98px) {
	.fxm-rd-top { padding-top: var(--fxm-m-header, 60px); }
	[data-fxm-regulator-tabs] { top: var(--fxm-detail-sticky-top, var(--fxm-m-header, 60px)); z-index: 40; }
	.fxm-rd-hero-inner { padding: 10px; }
	.fxm-rd-card { padding: 16px 14px 14px; border-radius: 18px; }
	/* three equal buttons on one row instead of 2 + 1 */
	.fxm-rd-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.fxm-rd-actions .fxm-rd-btn { justify-content: center; height: 40px; padding-inline: 6px; border-radius: 12px; white-space: nowrap; }
	.fxm-rd-actions .fxm-rd-btn svg { flex-shrink: 0; }
	.fxm-rd-hero-right { padding: 4px 4px 2px; }
}
