/* Regulator directory shares the site's typography and broker card language. */
.fxm-regulator-directory { --regulator-ink:#202332; --regulator-muted:#646b7d; --regulator-line:#e5e7ef; min-height:100vh; padding:88px 0 56px; background:#f8f9fc; color:var(--regulator-ink); font-family:var(--font-family-body); }
.fxm-regulator-directory [hidden] { display:none !important; }
.fxm-regulator-directory :is(h1,h2,h3,strong,legend,summary) { font-family:var(--font-family-heading); }
.fxm-regulator-directory :is(button,input,select) { font-family:inherit; }
.fxm-regulator-directory :is(a,button,input,select,summary):focus-visible { outline:2px solid var(--color-primary,#4f34d9); outline-offset:3px; }
.fxm-regulator-directory button, .fxm-regulator-directory summary { cursor:pointer; }
.fxm-regulator-directory__container { box-sizing:border-box; width:100%; max-width:1240px; padding-inline:32px; margin:auto; }
.fxm-regulator-breadcrumb { display:flex; align-items:center; gap:12px; margin:8px 0 22px; font-size:13px; color:var(--regulator-muted); }
.fxm-regulator-breadcrumb a { display:inline-flex; align-items:center; gap:7px; }
.fxm-regulator-breadcrumb [aria-current] { color:var(--color-primary,#4f34d9); }
.fxm-regulator-search { display:flex; align-items:stretch; gap:12px; margin-bottom:24px; }
.fxm-regulator-search__field { display:flex; align-items:center; flex:1; min-width:0; gap:12px; border:1px solid #d8dce8; border-radius:999px; background:white; color:var(--regulator-muted); padding:0 16px; }
.fxm-regulator-search__field:focus-within { border-color:var(--color-primary,#4f34d9); box-shadow:0 0 0 2px var(--color-primary-container,#f0edff); }
.fxm-regulator-search input { width:100%; min-width:0; height:48px; border:0; background:transparent; outline:0; font-size:15px; color:var(--regulator-ink); }
.fxm-regulator-search input::placeholder { color:var(--regulator-muted); opacity:1; }
.fxm-regulator-search__field > a { display:grid; place-items:center; width:24px; height:28px; flex:none; }
.fxm-regulator-primary { display:inline-flex; align-items:center; justify-content:center; min-height:42px; border:0; border-radius:8px; padding:10px 24px; background:var(--color-primary,#4f34d9); color:white; font-size:14px; line-height:1.4; text-decoration:none; transition:background .15s; }
.fxm-regulator-primary:hover { background:#4028ba; color:white; }
.fxm-regulator-search > button { min-width:112px; border-radius:999px; }
.fxm-regulator-directory__layout { display:grid; grid-template-columns:224px minmax(0,1fr); gap:32px; align-items:start; }
.fxm-regulator-filters { position:sticky; top:88px; min-width:0; align-self:start; }
.fxm-regulator-filters__mobile-summary { display:none; }
#fxm-regulator-filters { box-sizing:border-box; display:flex; flex-direction:column; max-height:var(--fxm-regulator-filter-available,calc(100dvh - 226px)); padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.fxm-regulator-filters__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:none; min-height:50px; border-bottom:1px solid var(--regulator-line); }
.fxm-regulator-filters__heading h2 { margin:0; font-size:19px; }
.fxm-regulator-filters__heading a { color:var(--color-primary,#4f34d9); font-size:13px; }
.fxm-regulator-filters__body { min-height:0; overflow-y:auto; padding-right:12px; scroll-padding:8px; scrollbar-width:thin; scrollbar-color:transparent transparent; scrollbar-gutter:stable; overscroll-behavior-y:contain; }
.fxm-regulator-filters__body.is-scrolling { scrollbar-color:#bbb5ce transparent; }
.fxm-regulator-filters__body::-webkit-scrollbar { width:6px; }
.fxm-regulator-filters__body::-webkit-scrollbar-track { background:transparent; }
.fxm-regulator-filters__body::-webkit-scrollbar-thumb { background:transparent; border-radius:6px; }
.fxm-regulator-filters__body.is-scrolling::-webkit-scrollbar-thumb { background:#bbb5ce; }
.fxm-regulator-filters__body::-webkit-scrollbar-button { display:none; }
.fxm-regulator-filter-group { min-width:0; margin:16px 0 0; padding:0 0 16px; border:0; border-bottom:1px solid var(--regulator-line); }
.fxm-regulator-filter-group:last-child { border-bottom:0; }
.fxm-regulator-filter-group legend { display:flex; align-items:center; justify-content:space-between; width:100%; margin:0; padding:0; font-size:15px; font-weight:700; line-height:1.6; }
.fxm-regulator-filter-group legend span { color:var(--regulator-muted); font-size:11px; font-weight:400; }
.fxm-regulator-filter-options { display:grid; grid-template-columns:minmax(0,1fr); gap:3px; margin-top:10px; }
.fxm-regulator-filter-group .fxm-regulator-filter-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fxm-regulator-filter-group--grades .fxm-regulator-filter-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
.fxm-regulator-filter-option { display:flex; align-items:flex-start; gap:10px; min-width:0; min-height:31px; padding:5px 3px; border:0; border-radius:5px; background:transparent; color:#50596e; font-size:13px; line-height:1.5; cursor:pointer; }
.fxm-regulator-filter-option input { flex:none; width:15px; height:15px; margin-top:2px; accent-color:var(--color-primary,#4f34d9); }
.fxm-regulator-filter-option span { flex:1; min-width:0; overflow-wrap:anywhere; }
.fxm-regulator-filter-option:hover { background:#f0f1f7; }
.fxm-regulator-filter-option:has(input:checked) { color:var(--color-primary,#4f34d9); }
.fxm-regulator-filters__footer { flex:none; padding-top:12px; border-top:1px solid var(--regulator-line); }
.fxm-regulator-filters__footer button { width:100%; }
.fxm-regulator-results { min-width:0; }
.fxm-regulator-results__toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:42px; margin-bottom:16px; }
.fxm-regulator-results__toolbar > p { margin:0; font-size:15px; white-space:nowrap; }
.fxm-regulator-results__toolbar strong { margin:0 3px; font-size:21px; }
.fxm-regulator-results__tools { display:flex; align-items:center; gap:16px; }
.fxm-regulator-ai { display:flex; align-items:center; gap:5px; border:0; padding:8px 0; background:none; color:var(--color-primary,#4f34d9); font-size:12px; }
.fxm-regulator-sort { display:flex; align-items:center; min-width:0; padding:0 8px 0 10px; border:1px solid var(--regulator-line); border-radius:999px; background:white; }
.fxm-regulator-sort select { min-width:0; max-width:160px; height:38px; border:0; background:transparent; color:#4b546b; font-size:12px; }
.fxm-regulator-sort > a { display:grid; place-items:center; width:25px; height:34px; color:#4b546b; font-size:20px; }
.fxm-regulator-applied { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:14px; font-size:12px; }
.fxm-regulator-applied span { max-width:100%; padding:4px 8px; border-radius:5px; background:var(--color-primary-container,#f0edff); color:var(--color-primary,#4f34d9); overflow-wrap:anywhere; }
.fxm-regulator-applied > a { color:var(--regulator-muted); margin-left:4px; }
.fxm-regulator-result-list { display:grid; gap:16px; }
.fxm-regulator-card { position:relative; display:grid; grid-template-columns:64px minmax(0,1fr) 100px; align-items:center; gap:20px; min-width:0; min-height:146px; padding:20px; border:1px solid var(--regulator-line); border-radius:12px; background:white; box-shadow:0 2px 10px #20233206; transition:border-color .15s,box-shadow .15s; }
.fxm-regulator-card:hover, .fxm-regulator-card:focus-within { border-color:#c9bdf0; box-shadow:0 4px 16px #20233209; }
.fxm-regulator-card__link { position:absolute; inset:0; z-index:1; border-radius:12px; }
.fxm-regulator-card__logo { display:grid; place-items:center; position:relative; width:64px; height:64px; overflow:hidden; border:0; border-radius:0; background:transparent; color:var(--color-primary,#4f34d9); font-size:21px; }
.fxm-regulator-card__logo img { width:100%; height:100%; object-fit:contain; padding:0; }
.fxm-regulator-card__logo:has(img:not([hidden])) > span { display:none; }
.fxm-regulator-card__info { min-width:0; }
.fxm-regulator-card__info h2 { margin:0 0 8px; color:var(--regulator-ink); font-size:19px; line-height:1.4; overflow-wrap:anywhere; }
.fxm-regulator-card__metadata { display:flex; align-items:center; flex-wrap:wrap; gap:4px 0; color:var(--regulator-muted); font-size:12px; line-height:1.5; }
.fxm-regulator-card__metadata > span { display:inline-flex; align-items:center; gap:7px; }
.fxm-regulator-card__metadata > span + span::before { content:'·'; margin:0 5px 0 10px; color:#a0a6b4; }
.fxm-regulator-card__metadata img { width:18px; height:13px; object-fit:cover; }
.fxm-regulator-card__tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.fxm-regulator-card__tags span { padding:3px 7px; border-radius:5px; background:var(--color-primary-container,#f0edff); color:var(--color-primary,#4f34d9); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.fxm-regulator-card__facts { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; margin-top:9px; color:var(--regulator-muted); font-size:11px; line-height:1.5; }
.fxm-regulator-card__facts span + span::before { content:'·'; margin:0 10px; color:#a0a6b4; }
.fxm-regulator-card__grade { align-self:center; text-align:center; }
.fxm-regulator-card__grade span { display:block; color:var(--regulator-muted); font-size:12px; line-height:1.5; }
.fxm-regulator-card__grade strong { display:block; margin-top:6px; color:var(--color-primary,#4f34d9); font-size:31px; line-height:1.2; }
.fxm-regulator-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:64px 24px; border:1px solid var(--regulator-line); border-radius:12px; background:white; text-align:center; }
.fxm-regulator-empty h2 { margin:0; font-size:18px; }
.fxm-regulator-empty p { margin:0 0 5px; color:var(--regulator-muted); font-size:13px; }
.fxm-regulator-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; font-size:12px; }
.fxm-regulator-pagination__meta { display:flex; align-items:center; flex-wrap:wrap; gap:16px; color:var(--regulator-muted); }
.fxm-regulator-pagination__meta label { display:flex; align-items:center; gap:8px; }
.fxm-regulator-pagination__meta select { height:32px; border:1px solid var(--color-outline-variant,#e2e7ff); border-radius:var(--radius-lg,1rem); padding:0 8px; background:white; color:color-mix(in oklab,var(--color-on-surface,#272e42) 70%,transparent); font-size:13px; outline:none; }
.fxm-regulator-pagination nav { display:flex; align-items:center; justify-content:center; gap:4px; max-width:100%; }
.fxm-regulator-pagination nav > :is(a,span) { display:grid; place-items:center; flex-shrink:1; min-width:0; width:36px; height:36px; padding:0 8px; border:1px solid var(--color-outline-variant,#e2e7ff); border-radius:var(--radius-lg,1rem); background:white; color:color-mix(in oklab,var(--color-on-surface,#272e42) 50%,transparent); font-size:13px; line-height:1.5; transition:color .15s,border-color .15s,background .15s; }
.fxm-regulator-pagination nav > :is(a,span):has(svg) { padding:0; }
.fxm-regulator-pagination nav > a[aria-current] { border-color:var(--color-primary,#4f34d9); background:var(--color-primary,#4f34d9); color:white; box-shadow:0 4px 12px -4px #4f34d966; }
.fxm-regulator-pagination nav > a:hover { border-color:color-mix(in oklab,var(--color-primary,#4f34d9) 20%,transparent); color:var(--color-primary,#4f34d9); }
.fxm-regulator-pagination nav > a[aria-current]:hover { color:white; }
.fxm-regulator-pagination nav [aria-disabled] { opacity:.4; }
@media (max-width:1199px) { .fxm-regulator-directory__layout { grid-template-columns:200px minmax(0,1fr); gap:28px; } .fxm-regulator-card { grid-template-columns:56px minmax(0,1fr) 80px; gap:16px; padding:18px; } .fxm-regulator-card__logo { width:56px; height:56px; } .fxm-regulator-card__info h2 { font-size:18px; } }
@media (max-width:1023px) { .fxm-regulator-directory__container { padding-inline:24px; } }
@media (max-width:900px) { .fxm-regulator-directory__layout { grid-template-columns:minmax(0,1fr); gap:16px; } .fxm-regulator-filters { position:static; } .fxm-regulator-filters__mobile-summary { display:flex; align-items:center; gap:8px; padding:12px 0; border:0; border-bottom:1px solid var(--regulator-line); border-radius:0; background:transparent; font-size:14px; } .fxm-regulator-filters__mobile-summary::after { content:'⌄'; margin-left:auto; } #fxm-regulator-filters { max-height:none; margin-top:8px; } .fxm-regulator-filters__body { overflow:visible; padding-right:0; } .fxm-regulator-filters__heading { min-height:44px; } .fxm-regulator-filters__heading h2 { font-size:15px; } .fxm-regulator-filter-option { min-height:40px; padding:7px 3px; gap:10px; font-size:13px; } }
@media (max-width:639px) { .fxm-regulator-directory__container { padding-inline:16px; } }
@media (max-width:600px) { .fxm-regulator-directory { padding-top:78px; } .fxm-regulator-breadcrumb { margin-bottom:16px; } .fxm-regulator-search { gap:8px; margin-bottom:16px; } .fxm-regulator-search__field { gap:8px; padding:0 10px; } .fxm-regulator-search input { height:44px; font-size:13px; } .fxm-regulator-search > button { min-width:64px; padding:8px 14px; } .fxm-regulator-results__toolbar { gap:10px; } .fxm-regulator-results__toolbar > p { font-size:13px; } .fxm-regulator-results__toolbar strong { font-size:18px; } .fxm-regulator-results__tools { gap:6px; } .fxm-regulator-ai { display:none; } .fxm-regulator-sort { padding-left:7px; } .fxm-regulator-sort select { max-width:120px; font-size:11px; } .fxm-regulator-card { grid-template-columns:48px minmax(0,1fr); align-items:start; gap:12px; padding:16px; } .fxm-regulator-card__logo { width:48px; height:48px; font-size:17px; } .fxm-regulator-card__info h2 { font-size:17px; margin-bottom:7px; } .fxm-regulator-card__metadata { font-size:11px; } .fxm-regulator-card__tags { margin-top:8px; gap:4px; } .fxm-regulator-card__tags span { font-size:10px; padding:3px 6px; } .fxm-regulator-card__facts { font-size:10px; } .fxm-regulator-card__facts span + span::before { margin:0 7px; } .fxm-regulator-card__grade { grid-column:1 / -1; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding-top:10px; border-top:1px solid #eff0f5; } .fxm-regulator-card__grade span { font-size:11px; } .fxm-regulator-card__grade strong { margin:0; font-size:25px; } .fxm-regulator-pagination { justify-content:center; } .fxm-regulator-pagination__meta { justify-content:center; gap:10px; } }
@media (prefers-reduced-motion:reduce) { .fxm-regulator-directory * { transition:none !important; } }

/* ---------- H5 (< 768px): filter bottom sheet, grade in the card corner ---------- */
@media (max-width:767.98px) {
  .fxm-regulator-directory { padding-top:68px; }
  .fxm-regulator-breadcrumb { margin-bottom:12px; }
  .fxm-regulator-directory__layout { gap:10px; }
  .fxm-regulator-filters__mobile-summary { display:inline-flex; width:auto; height:36px; padding:0 14px; border:1px solid var(--regulator-line); border-radius:999px; background:#fff; font-size:13px; color:#3d4359; list-style:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .fxm-regulator-filters__mobile-summary::-webkit-details-marker { display:none; }
  .fxm-regulator-filters__mobile-summary::after { content:none; }
  #fxm-regulator-filter-panel #fxm-regulator-filters { margin-top:0; }
  #fxm-regulator-filter-panel .fxm-regulator-filters__body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  #fxm-regulator-filter-panel .fxm-regulator-filters__footer { padding:10px 0 calc(10px + env(safe-area-inset-bottom)); background:#fff; }
  #fxm-regulator-filter-panel .fxm-regulator-filters__footer button { width:100%; height:46px; border-radius:12px; font-size:15px; }
  .fxm-regulator-card { grid-template-columns:48px minmax(0,1fr) auto; gap:4px 12px; padding:14px; border-radius:16px; }
  .fxm-regulator-card__info { grid-column:2 / -1; grid-row:1; padding-right:56px; }
  .fxm-regulator-card__info h2 { font-size:16px; line-height:1.4; }
  .fxm-regulator-card__grade { grid-column:3; grid-row:1; align-self:start; flex-direction:column; align-items:flex-end; justify-content:flex-start; gap:0; padding:0; border-top:0; z-index:0; }
  .fxm-regulator-card__grade span { font-size:10px; color:#9aa0b4; }
  .fxm-regulator-card__grade strong { font-size:20px; line-height:1.1; }
  .fxm-regulator-card__tags { flex-wrap:nowrap; overflow:hidden; -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent); mask-image:linear-gradient(90deg,#000 88%,transparent); }
  .fxm-regulator-card__tags span { flex-shrink:0; white-space:nowrap; }
}
