/* Homepage broker recommendations and live ranking boards. */
.fxm-home-hot {
	--fxm-home-primary: var(--color-primary, #4f34d9);
	--fxm-home-tint: #f7f8fa;
	--fxm-home-line: #edf0f4;
	--fxm-home-muted: var(--home-muted, #626e80);
	padding: 2.5rem 2rem 3rem;
	border-block: 0;
	background: #fff;
	font-family: var(--font-family-body);
}
.fxm-home-hot [hidden] { display: none !important; }
.fxm-home-broker-name, .fxm-home-rank-info strong, .fxm-home-score, .fxm-home-rank-position { font-family: var(--home-numeric, "Segoe UI"), var(--font-family-body); }
.fxm-home-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 1180px; margin-inline: auto; }
.fxm-home-panel { display: flex; flex-direction: column; min-width: 0; padding: 1.5rem 1.5rem 1rem; border: 1px solid #e7ebf0; border-radius: 14px; background: #fff; box-shadow: none; }
.fxm-home-panel-head { min-height: 3.125rem; }
.fxm-home-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.fxm-home-panel-title-group { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; min-width: 0; }
.fxm-home-page .fxm-home-panel h2 { min-width: 0; margin: 0; font-family: var(--font-family-heading); font-size: 1.375rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--home-ink, #243044); }
.fxm-home-panel-more { display: inline-flex; align-items: center; justify-content: flex-end; flex-shrink: 0; gap: .4rem; min-height: 2rem; color: var(--fxm-home-muted); font-size: 12.5px; line-height: 1.4; text-decoration: none; }
.fxm-home-panel-more:hover { color: var(--fxm-home-primary); text-decoration: underline; text-underline-offset: 4px; }
.fxm-home-panel-more svg { flex: none; }
.fxm-home-page .fxm-home-panel-subtitle { margin: .45rem 0 0; font-size: 13px; line-height: 1.65; color: var(--fxm-home-muted); }
/* The recommendation heading reserves the ranking heading plus its 42px tabs. */
.fxm-home-recommendations .fxm-home-panel-head { min-height: 5.75rem; padding-bottom: .75rem; }
.fxm-home-rank-date { display: block; color: var(--fxm-home-muted); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.fxm-home-table-head { display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; padding-block: .4rem; border-bottom: 1px solid var(--fxm-home-line); color: #6b7485; font-size: 12px; line-height: 1.4; }
.fxm-home-table-head > span { line-height: inherit; }
.fxm-home-table-head small { font-size: inherit; white-space: nowrap; }
.fxm-home-recommend-head { display: grid; grid-template-columns: minmax(0, 1fr) 4.4rem 4.7rem; gap: .8rem; }
.fxm-home-recommend-head > :not(:first-child) { text-align: center; }
.fxm-home-recommend-list, .fxm-home-ranking-list { min-width: 0; }
.fxm-home-recommend-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.4rem 4.7rem; align-items: center; gap: .8rem; min-height: 5rem; padding-block: .75rem; border-bottom: 1px solid var(--fxm-home-line); transition: background-color 150ms ease; }
.fxm-home-recommend-row:hover { background: #fafbfc; }
.fxm-home-broker-link { display: flex; align-items: center; gap: .75rem; min-width: 0; color: inherit; text-decoration: none; }
.fxm-home-logo-wrap, .fxm-home-rank-logo { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 3.7rem; height: 3rem; padding: .3rem; border: 1px solid #edf0f4; border-radius: 8px; background: #fff; }
.fxm-home-hot .fxm-home-logo { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 2px; }
.fxm-home-hot .fxm-home-logo-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--fxm-home-primary); font-size: 1.4rem; font-weight: 700; }
.fxm-home-ad { position: absolute; top: -.5rem; left: -1px; z-index: 1; padding: 1px 5px; border: 1px solid #d5d9e6; border-radius: 3px; background: #f3f4f8; color: #586078; font-size: .6rem; font-weight: 400; line-height: 1.35; white-space: nowrap; }
.fxm-home-broker-info, .fxm-home-rank-info { display: block; min-width: 0; }
.fxm-home-broker-name, .fxm-home-rank-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: 0; color: var(--home-ink, #243044); }
.fxm-home-broker-link:hover .fxm-home-broker-name, .fxm-home-ranking-row:hover strong { color: var(--fxm-home-primary); }
.fxm-home-broker-tags { display: flex; flex-wrap: wrap; align-items: center; column-gap: .35rem; row-gap: .15rem; margin-top: .25rem; }
.fxm-home-hot .fxm-home-chip { display: inline-flex; align-items: center; gap: .25rem; max-width: 100%; padding: 0; background: transparent; color: var(--fxm-home-muted); font-size: 11px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.fxm-home-broker-tags .fxm-home-chip + .fxm-home-chip::before { content: "·"; margin-right: .1rem; color: #adb3c3; }
.fxm-home-chip img { width: 14px; height: 10px; object-fit: cover; border-radius: 1px; }
.fxm-home-chip svg { flex: none; color: var(--fxm-home-primary); }
.fxm-home-score { font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; color: var(--home-ink, #243044); font-variant-numeric: lining-nums tabular-nums; }
.fxm-home-recommend-row > .fxm-home-score { text-align: center; }
.fxm-home-follow { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 4.7rem; min-height: 2.25rem; padding: .35rem .55rem; border: 1px solid #dcd7ee; border-radius: 999px; background: #fff; color: var(--fxm-home-primary); font: inherit; font-size: 13px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.fxm-home-page .fxm-home-follow { font-weight: 600; }
.fxm-home-follow:not([aria-pressed="true"])::before { content: ""; flex: none; width: .6rem; height: .6rem; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.fxm-home-follow:hover, .fxm-home-follow[aria-pressed="true"] { border-color: var(--fxm-home-primary); background: var(--fxm-home-primary); color: #fff; }
.fxm-home-follow:disabled { opacity: .55; cursor: wait; }
.fxm-home-ranking-tabs { display: flex; flex: none; align-items: stretch; height: 2.625rem; min-height: 2.625rem; gap: 3px; padding: 3px; border: 1px solid #e9ecf1; border-radius: 9px; background: var(--fxm-home-tint); }
.fxm-home-ranking-tab { position: relative; flex: 1; min-width: 0; overflow: hidden; border: 1px solid transparent; border-radius: 6px; padding: .3rem .25rem; background: transparent; color: var(--fxm-home-muted); font: inherit; font-size: 13px; line-height: 1.4; font-weight: 400; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.fxm-home-ranking-tab::after { content: none; }
.fxm-home-ranking-tab:hover { color: var(--home-ink, #243044); }
.fxm-home-ranking-tab.is-active { border-color: #e3e6ee; background: #fff; color: var(--fxm-home-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(28, 38, 58, .06); }
.fxm-home-ranking-tab.is-active::after { background: transparent; }
.fxm-home-rank-head > :first-child { width: 2.35rem; flex: none; }
.fxm-home-rank-head > :last-child { margin-left: auto; text-align: right; }
.fxm-home-ranking-row { display: grid; grid-template-columns: 2.35rem 3.7rem minmax(0, 1fr) 4.5rem; align-items: center; gap: .65rem; min-height: 5rem; padding: .75rem 0; border-bottom: 1px solid var(--fxm-home-line); color: inherit; text-decoration: none; transition: background-color 150ms ease; }
.fxm-home-ranking-row[data-rank="1"] { border-color: var(--fxm-home-line); border-radius: 0; background: #fff; }
.fxm-home-ranking-row:hover { background: #fafbfc; }
.fxm-home-rank-position { color: var(--fxm-home-muted); font-size: 1.25rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; text-align: center; }
.fxm-home-ranking-row[data-rank="1"] .fxm-home-rank-position, .fxm-home-ranking-row[data-rank="2"] .fxm-home-rank-position, .fxm-home-ranking-row[data-rank="3"] .fxm-home-rank-position { color: var(--fxm-home-primary); }
.fxm-home-ranking-row[data-rank="1"] .fxm-home-rank-position, .fxm-home-ranking-row[data-rank="1"] .fxm-home-score { font-weight: 700; }
.fxm-home-rank-meta { display: block; margin-top: .2rem; overflow: hidden; color: var(--fxm-home-muted); font-size: 12px; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.fxm-home-rank-value { display: block; text-align: right; }
.fxm-home-score-unit { margin-left: .2rem; color: var(--fxm-home-muted); font-size: .65rem; }
.fxm-home-score-bar { display: block; height: 3px; margin-top: .4rem; overflow: hidden; border-radius: 999px; background: #edf0f4; }
.fxm-home-score-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--fxm-home-primary); }
.fxm-home-rank-status { margin: 1.5rem 0; color: var(--fxm-home-muted); font-size: .85rem; line-height: 1.6; text-align: center; }
.fxm-home-follow-status { margin: .5rem 0 0; color: var(--fxm-home-muted); font-size: .75rem; }
.fxm-home-hot a:focus-visible, .fxm-home-hot button:focus-visible { outline: 2px solid var(--fxm-home-primary); outline-offset: 4px; }
@media (max-width: 1100px) and (min-width: 961px) {
	.fxm-home-board-grid { gap: 1rem; }
	.fxm-home-panel { padding-inline: 1rem; }
	.fxm-home-recommend-row, .fxm-home-recommend-head { grid-template-columns: minmax(0, 1fr) 4.2rem 4.4rem; gap: .45rem; }
	.fxm-home-broker-link { gap: .6rem; }
	.fxm-home-follow { min-width: 4rem; padding-inline: .4rem; font-size: .75rem; }
	.fxm-home-logo-wrap, .fxm-home-rank-logo { width: 3rem; height: 3rem; }
	.fxm-home-ranking-row { grid-template-columns: 1.8rem 3rem minmax(0, 1fr) 3.6rem; gap: .45rem; }
	.fxm-home-broker-name, .fxm-home-rank-info strong { font-size: 14px; }
	.fxm-home-page .fxm-home-panel h2 { font-size: 20px; }
	.fxm-home-panel-heading { gap: .65rem; }
	.fxm-home-panel-more { font-size: 12px; gap: .3rem; }
}
@media (max-width: 960px) {
	.fxm-home-hot { padding: 2rem 1rem; }
	.fxm-home-board-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 640px; }
	.fxm-home-panel { padding: 1.25rem 1rem 1rem; }
	.fxm-home-panel-head, .fxm-home-recommendations .fxm-home-panel-head { min-height: auto; padding-bottom: .85rem; }
	.fxm-home-panel-heading { gap: .65rem; }
	.fxm-home-page .fxm-home-panel h2 { font-size: 20px; }
	.fxm-home-panel-more { min-height: 2.75rem; }
	.fxm-home-follow { min-height: 2.75rem; }
	.fxm-home-ranking-tabs { height: auto; min-height: 3.25rem; }
	.fxm-home-ranking-tab { min-height: 2.75rem; }
}
@media (max-width: 430px) {
	.fxm-home-hot { padding-inline: .75rem; }
	.fxm-home-panel { padding-inline: .75rem; }
	.fxm-home-recommend-row, .fxm-home-recommend-head { grid-template-columns: minmax(0, 1fr) 2.9rem 3.5rem; gap: .4rem; }
	.fxm-home-broker-link { gap: .55rem; }
	.fxm-home-logo-wrap, .fxm-home-rank-logo { width: 2.7rem; height: 2.7rem; }
	.fxm-home-broker-name, .fxm-home-rank-info strong { font-size: 14px; }
	.fxm-home-score { font-size: 1.1rem; }
	.fxm-home-follow { min-width: 3.5rem; padding-inline: .3rem; font-size: 12px; gap: .2rem; }
	.fxm-home-ranking-row { grid-template-columns: 1.7rem 2.7rem minmax(0, 1fr) 3.4rem; gap: .45rem; }
	.fxm-home-rank-position { font-size: 1.1rem; }
	.fxm-home-panel-subtitle { font-size: .8rem; }
	.fxm-home-table-head { font-size: 11px; }
	.fxm-home-panel-heading { flex-wrap: wrap; row-gap: 0; }
	.fxm-home-panel-more { margin-left: auto; font-size: 12px; }
	.fxm-home-page .fxm-home-panel h2 { font-size: 19px; }
}
