/* FXSB components. Tokens are also used by the theme. */
:root {
	--fx-ink: #0f172a;
	--fx-ink-2: #334155;
	--fx-muted: #475569;
	--fx-line: #e2e8f0;
	--fx-bg: #f8fafc;
	--fx-card: #fff;
	--fx-navy: #1e3a8a;
	--fx-accent: #a16207;
	--fx-ok: #15803d;
	--fx-ok-bg: #dcfce7;
	--fx-warn: #92400e;
	--fx-warn-bg: #fef3c7;
	--fx-danger: #b91c1c;
	--fx-danger-bg: #fee2e2;
	--fx-radius: 10px;
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fxsb-sub { display: block; color: var(--fx-muted); font-size: .8125rem; line-height: 1.4; }
a.fxsb-sub { display: inline; }
.fxsb-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fxsb-empty { color: var(--fx-muted); padding: 1rem 0; }
.fxsb-pill:empty { display: none; }
.fxsb-pill { display: inline-block; padding: 0 .5rem; border: 1px solid var(--fx-line); border-radius: 99px; font-size: .75rem; color: var(--fx-ink-2); background: var(--fx-bg); white-space: nowrap; }

/* buttons */
.fxsb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.fxsb-btn--primary { background: var(--fx-navy); color: #fff; }
.fxsb-btn--primary:hover { background: #172554; color: #fff; }
.fxsb-btn--cta { background: var(--fx-accent); color: #fff; }
.fxsb-btn--cta:hover { background: #854d0e; color: #fff; }
.fxsb-btn--ghost { background: var(--fx-card); border-color: #cbd5e1; color: var(--fx-ink); }
.fxsb-btn--ghost:hover { border-color: var(--fx-navy); color: var(--fx-navy); }
.fxsb-btn:focus-visible, .fxsb-table a:focus-visible, .fxsb-tile:focus-visible, .fxsb-tabs button:focus-visible, .fxsb-faq summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.fxsb-cta-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; }
.fxsb-cta-wrap[hidden] { display: none; }
.fxsb-cta-note { font-size: .6875rem; color: var(--fx-muted); max-width: 14rem; text-align: center; line-height: 1.3; }

/* trust score */
.fxsb-trust { display: inline-flex; align-items: baseline; gap: 1px; padding: .2rem .55rem; border-radius: 8px; font-variant-numeric: tabular-nums; border: 1px solid; }
.fxsb-trust b { font-size: 1.125rem; line-height: 1.2; }
.fxsb-trust small { font-size: .6875rem; opacity: .8; }
.fxsb-trust--high { color: var(--fx-ok); background: var(--fx-ok-bg); border-color: #86efac; }
.fxsb-trust--mid { color: var(--fx-warn); background: var(--fx-warn-bg); border-color: #fcd34d; }
.fxsb-trust--low { color: var(--fx-danger); background: var(--fx-danger-bg); border-color: #fca5a5; }

/* badges, notices */
.fxsb-badge { display: inline-block; padding: .1rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.fxsb-badge--ok { color: var(--fx-ok); background: var(--fx-ok-bg); }
.fxsb-badge--warn { color: var(--fx-warn); background: var(--fx-warn-bg); }
.fxsb-notice { padding: .75rem 1rem; border-left: 4px solid var(--fx-navy); background: #eff6ff; border-radius: 0 8px 8px 0; font-size: .9375rem; }
.fxsb-notice--warn { border-color: #d97706; background: var(--fx-warn-bg); }
.fxsb-risk { color: var(--fx-muted); font-size: .8125rem; border-top: 1px solid var(--fx-line); padding-top: .75rem; margin-top: 1.5rem; }
.fxsb-riskbar { background: var(--fx-ink); color: #e2e8f0; font-size: .75rem; line-height: 1.45; padding: .4rem 1rem; text-align: center; }
.fxsb-byline { color: var(--fx-muted); font-size: .8125rem; }

/* tables */
.fxsb-table-wrap { overflow-x: auto; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-card); }
.fxsb-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fxsb-table th, .fxsb-table td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fx-line); }
.fxsb-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fx-muted); background: var(--fx-bg); white-space: nowrap; }
.fxsb-table tbody tr:last-child > * { border-bottom: 0; }
.fxsb-table tr[hidden] { display: none; }
.fxsb-table tr.is-unavailable { opacity: .55; }
.fxsb-table-note { color: var(--fx-muted); font-size: .8125rem; margin-top: .5rem; }
.fxsb-broker-name { font-weight: 700; color: var(--fx-ink); text-decoration: none; }
.fxsb-broker-name:hover { color: var(--fx-navy); text-decoration: underline; }
.fxsb-rank { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .4rem; border-radius: 50%; background: var(--fx-ink); color: #fff; font-size: .75rem; font-weight: 700; }
.fxsb-actions { white-space: nowrap; text-align: right; }
.fxsb-actions .fxsb-btn { min-height: 40px; padding: .35rem .8rem; font-size: .875rem; vertical-align: top; }
.fxsb-compare th[scope="row"] { width: 13rem; color: var(--fx-ink-2); font-weight: 600; background: var(--fx-bg); }
.fxsb-compare td.fxsb-best { background: #f0fdf4; box-shadow: inset 3px 0 0 var(--fx-ok); }

@media (max-width: 760px) {
	.fxsb-brokers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.fxsb-brokers, .fxsb-brokers tbody, .fxsb-brokers tr, .fxsb-brokers td { display: block; width: 100%; }
	.fxsb-brokers tr { padding: .75rem .85rem; border-bottom: 1px solid var(--fx-line); }
	.fxsb-brokers td { padding: .25rem 0; border: 0; }
	.fxsb-brokers td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fx-muted); }
	.fxsb-brokers .fxsb-actions { text-align: left; white-space: normal; padding-top: .5rem; display: flex; gap: .5rem; align-items: flex-start; }
	.fxsb-brokers .fxsb-actions .fxsb-btn { min-height: 44px; }
	.fxsb-compare th[scope="row"] { width: 8rem; }
}

/* hero and home */
.fxsb-hero { padding: 2.5rem 0 2rem; text-align: center; }
.fxsb-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.75rem, 4.5vw, 2.75rem); line-height: 1.15; letter-spacing: -.01em; }
.fxsb-hero__lead { max-width: 40rem; margin: 0 auto 1.25rem; color: var(--fx-ink-2); font-size: 1.0625rem; }
.fxsb-hero__links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }
.fxsb-checkform { display: flex; gap: .5rem; max-width: 40rem; margin: 0 auto; }
.fxsb-checkform input { flex: 1; min-width: 0; min-height: 48px; padding: .5rem .9rem; border: 2px solid #94a3b8; border-radius: 8px; font: inherit; background: #fff; }
.fxsb-checkform input:focus { outline: 3px solid #2563eb; outline-offset: 1px; border-color: var(--fx-navy); }
.fxsb-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; justify-content: center; list-style: none; margin: 1.25rem 0 0; padding: 0; color: var(--fx-muted); font-size: .875rem; }
.fxsb-stats b { color: var(--fx-ink); font-variant-numeric: tabular-nums; }
.fxsb-section { margin: 2.5rem 0; }
.fxsb-section > h2 { margin-bottom: .75rem; }
.fxsb-scope { font-size: .8em; font-weight: 500; color: var(--fx-muted); }
.fxsb-two { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.fxsb-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.fxsb-tabs button { min-height: 40px; padding: .35rem .9rem; border: 1px solid #cbd5e1; border-radius: 99px; background: var(--fx-card); font: inherit; font-size: .875rem; cursor: pointer; }
.fxsb-tabs button.is-active { background: var(--fx-ink); border-color: var(--fx-ink); color: #fff; }
.fxsb-tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.fxsb-tile { display: block; padding: 1rem; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-card); color: var(--fx-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.fxsb-tile:hover { border-color: var(--fx-navy); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.fxsb-tile b { display: block; margin-bottom: .25rem; }
.fxsb-tile span { color: var(--fx-muted); font-size: .875rem; }
.fxsb-linklist, .fxsb-warnlist, .fxsb-changelog { list-style: none; margin: 0; padding: 0; }
.fxsb-linklist li, .fxsb-warnlist li, .fxsb-changelog li { padding: .45rem 0; border-bottom: 1px solid var(--fx-line); }
.fxsb-linklist time, .fxsb-warnlist time, .fxsb-changelog time { color: var(--fx-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; margin-right: .5rem; }
.fxsb-quickcompare, .fxsb-comparepick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fxsb-quickcompare select, .fxsb-comparepick select, .fxsb-filters select, .fxsb-filters input[type="search"], .fxsb-calc input, .fxsb-country select { min-height: 44px; padding: .4rem .6rem; border: 1px solid #94a3b8; border-radius: 8px; font: inherit; background: #fff; max-width: 100%; }
.fxsb-comparepick { margin-bottom: 1rem; }
.fxsb-comparepick select { flex: 1 1 11rem; }

/* filters, forms */
.fxsb-filters { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); align-items: end; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-card); }
.fxsb-filters label, .fxsb-calc label { display: flex; flex-direction: column; gap: .25rem; font-size: .8125rem; font-weight: 600; color: var(--fx-ink-2); }
.fxsb-check { flex-direction: row !important; align-items: center; gap: .5rem !important; min-height: 44px; font-weight: 500 !important; cursor: pointer; }
.fxsb-check input { width: 1.15rem; height: 1.15rem; }
.fxsb-filters output { font-size: .8125rem; color: var(--fx-muted); align-self: center; }
.fxsb-calc { display: grid; gap: .75rem; max-width: 30rem; padding: 1rem; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-card); }
.fxsb-calc__out { display: block; padding: .75rem 1rem; border-radius: 8px; background: var(--fx-ok-bg); color: #14532d; font-weight: 700; font-variant-numeric: tabular-nums; }
.fxsb-finder fieldset { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-card); }
.fxsb-finder legend { padding: 0 .4rem; font-weight: 700; }
.fxsb-finder .fxsb-check { display: flex; }

/* cards */
.fxsb-card { margin: 1rem 0; padding: 1rem 1.15rem; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-card); }
.fxsb-card h3 { margin: 0 0 .4rem; font-size: 1.125rem; }
.fxsb-card--danger { border-color: #fca5a5; background: var(--fx-danger-bg); }

/* review */
.fxsb-review > section { margin: 2rem 0; scroll-margin-top: 5rem; }
.fxsb-verdict { display: grid; gap: 1.25rem; grid-template-columns: 11rem 1fr; padding: 1.25rem; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-card); }
.fxsb-verdict--text { display: block; }
.fxsb-verdict__score { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.fxsb-verdict__score .fxsb-trust b { font-size: 2.25rem; }
.fxsb-verdict__score .fxsb-trust small { font-size: .875rem; }
.fxsb-overall b { font-size: 1.25rem; }
.fxsb-lead { font-size: 1.0625rem; margin-top: 0; }
.fxsb-serving { padding: .6rem .8rem; border-radius: 8px; background: var(--fx-bg); font-size: .9375rem; }
.fxsb-proscons { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fxsb-proscons h3 { margin: 0 0 .25rem; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.fxsb-proscons ul { margin: 0; padding-left: 1.1rem; }
.fxsb-pros h3 { color: var(--fx-ok); }
.fxsb-cons h3 { color: var(--fx-danger); }
.fxsb-verdict__cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; margin-bottom: 0; }
.fxsb-toc { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .75rem 0; border-block: 1px solid var(--fx-line); font-size: .875rem; }
.fxsb-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1px; margin: 0 0 1.5rem; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); overflow: hidden; background: var(--fx-line); }
.fxsb-facts > div { padding: .7rem .85rem; background: var(--fx-card); }
.fxsb-facts dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fx-muted); }
.fxsb-facts dd { margin: .1rem 0 0; font-weight: 600; }
.fxsb-faq { border-bottom: 1px solid var(--fx-line); }
.fxsb-faq summary { padding: .85rem 0; font-weight: 600; cursor: pointer; }
.fxsb-faq p { margin: 0 0 1rem; color: var(--fx-ink-2); }
.fxsb-method-note { color: var(--fx-muted); font-size: .875rem; }
.fxsb-crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .8125rem; color: var(--fx-muted); }
.fxsb-crumbs li + li::before { content: "/"; margin-right: .35rem; color: #94a3b8; }

@media (max-width: 640px) {
	.fxsb-verdict { grid-template-columns: 1fr; }
	.fxsb-verdict__score { flex-direction: row; flex-wrap: wrap; align-items: center; }
	.fxsb-checkform { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.fxsb-btn, .fxsb-tile { transition: none; }
}
