/* TopRatedBroker — site styles (white & yellow theme) */
:root {
  --brand: #facc15;      /* yellow fills: buttons, bars, tab underline */
  --brand-ink: #a16207;  /* readable gold for links and text on white */
  --brand-soft: #fef9c3;
  --accent: #f59e0b;
  --on-brand: #1c1917;
  --grad: linear-gradient(135deg, #fde047 0%, #facc15 50%, #f59e0b 100%);
  --navy: #ffffff;
  --navy-2: #fefce8;
  --bg: #fcfbf7;
  --surface: #ffffff;
  --surface-2: #fbf9f1;
  --line: #ece7d6;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #78716c;

  --ok: #15803d;      --ok-soft: #e8f7ec;
  --warn: #b45309;    --warn-soft: #fdf3e2;
  --bad: #dc2626;     --bad-soft: #fdecec;
  --mute: #78716c;    --mute-soft: #f2f0ea;
  --spon: #7e22ce;    --spon-soft: #f5ecff;

  --s-hi: #16a34a;  /* score >= 8 */
  --s-mid: #facc15; /* 6–8 (dark text) */
  --s-lo: #ea580c;  /* 4–6 */
  --s-bad: #dc2626; /* < 4 */

  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font); overflow-x: hidden;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }

.skip { position: absolute; inset-inline-start: 8px; top: -100px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Header */
.site-head { background: rgba(11, 15, 36, .88); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(99, 102, 241, .45); }
.logo .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-weight: 500; font-size: 11px; color: #9fb3d9; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: #cbd6ec; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.head-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 0 10px; height: 36px; width: 240px; }
.head-search input { background: none; border: 0; color: #fff; font: inherit; font-size: 14px; width: 100%; outline: none; }
.head-search input::placeholder { color: #8fa3c9; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-inline-start: auto; cursor: pointer; }
@media (max-width: 960px) {
  .nav, .head-search { display: none; }
  .menu-btn { display: block; }
  .site-head.open .nav { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); padding: 8px 16px 16px; }
}

/* Hero */
.hero { background:
    radial-gradient(900px 420px at 85% -10%, rgba(6, 182, 212, .35), transparent 60%),
    radial-gradient(800px 480px at 5% 110%, rgba(129, 140, 248, .35), transparent 60%),
    linear-gradient(160deg, #0b0f24 0%, #1e1b4b 55%, #0b2a3d 100%);
  color: #fff; padding: 56px 0 64px; }
.hero h1 .accent { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; max-width: 760px; }
.hero p { color: #b9c7e3; font-size: 17px; max-width: 640px; margin: 12px 0 28px; }
.big-search { display: flex; background: #fff; border-radius: 14px; padding: 6px; max-width: 760px; box-shadow: 0 0 0 4px rgba(129, 140, 248, .18), 0 18px 40px rgba(0,0,0,.3); }
.big-search select { border: 0; background: #eef2f7; color: #0f172a; color-scheme: light; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; }
.big-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 16px; padding: 12px 14px; outline: none; color: #0f172a; background: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 0 18px; height: 42px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .3); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 70, 229, .38); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13px; color: #9fb3d9; align-items: center; }
.quick a { color: #dbe5f8; background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 99px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; max-width: 760px; }
.stat { padding-inline-start: 14px; border-inline-start: 2px solid rgba(103, 232, 249, .5); }
.stat b { display: block; font-size: 26px; font-weight: 800; }
.stat span { color: #9fb3d9; font-size: 13px; }
@media (max-width: 640px) {
  .big-search select { display: none; }
  .big-search .btn { padding: 0 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Sections & cards */
main { padding-bottom: 48px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 21px; font-weight: 750; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

/* Pills / tags */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; line-height: 1.6; }
.p-ok { background: var(--ok-soft); color: var(--ok); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-bad { background: var(--bad-soft); color: var(--bad); }
.p-mute { background: var(--mute-soft); color: var(--mute); }
.p-brand { background: var(--brand-soft); color: var(--brand-ink); }
.p-spon { background: var(--spon-soft); color: var(--spon); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Score badge */
.score { display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 8px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.score.hi { background: var(--s-hi); } .score.mid { background: var(--s-mid); }
.score.lo { background: var(--s-lo); } .score.bad { background: var(--s-bad); }
.score-label { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 2px; }

/* Broker logo placeholder */
.blogo { width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: var(--c, #334155); }

/* Sponsored */
.sponsored { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-color: color-mix(in srgb, var(--spon) 35%, var(--line)); }
.sponsored .info { flex: 1; min-width: 0; }
.sponsored .name { font-weight: 700; font-size: 16px; }
.spon-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--spon); }
@media (max-width: 640px) { .sponsored { flex-wrap: wrap; } .sponsored .btn { width: 100%; } }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 12px 12px; font: inherit; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* Leaderboard rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 32px 44px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); }
.rank { font-weight: 800; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.row .name { font-weight: 700; color: var(--ink); }
.row .meta { font-size: 13px; color: var(--ink-3); margin: 2px 0 6px; }
.lic { display: flex; flex-wrap: wrap; gap: 4px; }
.row .go { font-size: 13px; font-weight: 600; }
@media (max-width: 640px) {
  .row { grid-template-columns: 44px 1fr auto; padding: 14px 16px; }
  .row .rank, .row .go { display: none; }
}

/* Side lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 20px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .t { font-weight: 600; font-size: 14px; }
.list .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Regulators grid */
.regs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.reg { display: flex; gap: 12px; align-items: center; padding: 14px; color: var(--ink); }
.reg:hover { text-decoration: none; border-color: var(--brand); }
.reg .ab { width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.reg b { display: block; font-size: 14px; }
.reg span { font-size: 12px; color: var(--ink-3); }

/* Method teaser */
.method { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 150px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 8px; background: var(--mute-soft); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--brand); border-radius: 99px; }
.bar .v { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .bar { grid-template-columns: 110px 1fr 36px; font-size: 13px; } }

/* Footer */
.site-foot { background: var(--navy); color: #a9b8d6; font-size: 13px; padding: 40px 0 28px; margin-top: 48px; }
.site-foot a { color: #d6e0f3; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.foot-grid h4 { color: #fff; margin: 0 0 10px; font-size: 13px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.disclose { border-top: 1px solid #1f3461; margin-top: 28px; padding-top: 20px; display: grid; gap: 10px; line-height: 1.6; }
.disclose b { color: #e3eaf7; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Broker page ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); padding: 16px 0 0; }
.crumbs a { color: var(--ink-3); }
.bhead { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; margin-top: 12px; }
.bhead .blogo { width: 72px; height: 72px; font-size: 22px; border-radius: 16px; }
.bhead h1 { font-size: 28px; font-weight: 800; }
.bhead .entity { color: var(--ink-3); font-size: 14px; margin: 4px 0 10px; }
.ring { --v: 92; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--s-hi) calc(var(--v) * 1%), var(--mute-soft) 0); }
.ring > div { width: 92px; height: 92px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring b { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.bactions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .bhead { grid-template-columns: 56px 1fr; align-items: start; }
  .bhead .blogo { width: 56px; height: 56px; font-size: 18px; }
  .bhead .ring-wrap { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
  .bhead h1 { font-size: 24px; }
}
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; font-size: 14px; align-items: flex-start; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert b { color: inherit; }
.alert p { margin: 0; color: var(--ink-2); }

.licenses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .licenses { grid-template-columns: 1fr; } }
.license { padding: 16px; display: grid; gap: 12px; border-inline-start: 4px solid var(--line); }
.license.st-ok { border-inline-start-color: var(--ok); }
.license.st-warn { border-inline-start-color: var(--warn); }
.license.st-mute { border-inline-start-color: var(--mute); }
.license.st-bad { border-inline-start-color: var(--bad); }
.license .top { display: flex; gap: 12px; align-items: center; }
.license .ab { width: 42px; height: 42px; flex: none; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.license .reg-name { font-weight: 700; font-size: 14px; }
.license .reg-sub { font-size: 12px; color: var(--ink-3); }
.license .top .pill { margin-inline-start: auto; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.license .foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 10px; gap: 8px; flex-wrap: wrap; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: start; padding: 11px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:first-child th, .table tr:first-child td { border-top: 0; }
.table th { width: 40%; color: var(--ink-3); font-weight: 500; }
@media (max-width: 480px) { .table th, .table td { padding: 10px 16px; } }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }
.pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.pc li { display: flex; gap: 8px; }
.pc li::before { flex: none; font-weight: 800; }
.pros li::before { content: "+"; color: var(--ok); }
.cons li::before { content: "–"; color: var(--warn); }
.pc h3 { font-size: 15px; margin-bottom: 12px; }

.toc { position: sticky; top: 76px; }
.toc ol { list-style: none; margin: 0; padding: 8px; display: grid; }
.toc a { display: block; padding: 7px 12px; border-radius: 6px; color: var(--ink-2); font-size: 14px; }
.toc a:hover { background: var(--surface-2); text-decoration: none; }
.side-stack { display: grid; gap: 16px; align-content: start; }
@media (max-width: 960px) { .toc { display: none; } }

.mini { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.mini:first-of-type { border-top: 0; }
.mini:hover { background: var(--surface-2); text-decoration: none; }
.mini .blogo { width: 34px; height: 34px; font-size: 12px; border-radius: 8px; }
.mini .n { flex: 1; font-weight: 600; font-size: 14px; }
.mini .score { min-width: 40px; height: 30px; font-size: 14px; border-radius: 6px; }

.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 28px; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 28px; min-width: 0; }
.stack > section > h2 { font-size: 19px; margin-bottom: 12px; }

/* ---------- Site-wide additions ---------- */
.head-search, .big-search { position: relative; }
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); list-style: none; margin: 0; padding: 6px; z-index: 40; max-height: 360px; overflow-y: auto; min-width: 260px; }
.ac[hidden] { display: none; }
.ac li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.ac li a:hover, .ac li a[aria-selected="true"] { background: var(--surface-2); text-decoration: none; }
.ac .blogo { width: 28px; height: 28px; font-size: 11px; border-radius: 6px; }
.ac .n { flex: 1; min-width: 0; }
.ac .n small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac .score { min-width: 36px; height: 26px; font-size: 13px; border-radius: 6px; }
.ac .empty { padding: 10px; color: var(--ink-3); font-size: 14px; }

.page-head { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 32px 0 36px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.page-head p { color: #b9c7e3; margin: 10px 0 0; max-width: 720px; font-size: 16px; }
.page-head .crumbs, .page-head .crumbs a { color: #9fb3d9; padding: 0 0 10px; }

.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--ink-2); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.filters input, .filters select { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; height: 38px; padding: 0 10px; }
.filters input { flex: 1 1 220px; min-width: 0; }
.filters select { flex: 0 1 auto; max-width: 100%; }
.filters .count { margin-inline-start: auto; font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .filters select { flex: 1 1 45%; } .filters .count { margin-left: 0; width: 100%; } }

.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { text-align: start; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.data thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; white-space: nowrap; background: var(--surface-2); }
.data td.num, .data th.num { text-align: end; font-variant-numeric: tabular-nums; }
.data .score { min-width: 44px; height: 32px; font-size: 15px; border-radius: 6px; }
.data .who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.data .who .blogo { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.data .who b { display: block; }
.data .who small { color: var(--ink-3); font-size: 12px; }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }

.prose { max-width: 760px; }
.prose h2 { font-size: 21px; margin: 32px 0 10px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-inline-start: 20px; }
.prose table { margin: 12px 0; }
.prose .card { margin: 16px 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.kpi b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--ink-3); font-size: 13px; }

.tier-1 { background: var(--ok-soft); color: var(--ok); }
.tier-2 { background: var(--brand-soft); color: var(--brand-ink); }
.tier-3 { background: var(--mute-soft); color: var(--mute); }
.tier-4 { background: var(--warn-soft); color: var(--warn); }

.links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.links-row .btn { height: 38px; font-size: 14px; }
.page-head .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }

.risk { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.license .note { font-size: 12px; color: var(--ink-3); margin: 0; }
.unchecked { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.empty-state { padding: 24px 20px; color: var(--ink-3); text-align: center; }
.foot-brand { color: #fff; font-weight: 800; letter-spacing: .02em; display: inline-block; margin-bottom: 8px; }
@media (max-width: 640px) {
  #directory th:nth-child(2), #directory td:nth-child(2), #directory th:nth-child(4), #directory td:nth-child(4) { display: none; }
  #directory td:nth-child(3) .pill { display: inline-block; margin: 2px 0; }
  .data th, .data td { padding: 10px; }
  .data .who { min-width: 0; }
}
.stack { grid-template-columns: minmax(0, 1fr); }
.stack > *, .content-grid > *, .grid-2 > * { min-width: 0; }
@media (max-width: 960px) { .content-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- White & yellow theme ---------- */
:focus-visible { outline-color: #ca8a04; }

/* Header */
.site-head { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); color: var(--ink); }
.logo { color: var(--ink); }
.logo small { color: var(--ink-3); }
.logo-mark { background: var(--grad); color: var(--on-brand); box-shadow: 0 4px 14px rgba(245, 158, 11, .35); }
.logo .accent { background: linear-gradient(90deg, #ca8a04, #d97706); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--brand-soft); }
.head-search { background: var(--surface-2); border: 1px solid var(--line); }
.head-search input { color: var(--ink); }
.head-search input::placeholder { color: var(--ink-3); }
.menu-btn { color: var(--ink); }
@media (max-width: 960px) {
  .site-head.open .nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(28, 25, 23, .08); }
}

/* Hero and page headers */
.hero, .page-head {
  background:
    radial-gradient(820px 380px at 88% -10%, rgba(250, 204, 21, .38), transparent 62%),
    radial-gradient(700px 420px at -5% 115%, rgba(253, 224, 71, .30), transparent 60%),
    linear-gradient(180deg, #fffdf0 0%, #ffffff 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero h1 .accent { background: linear-gradient(transparent 58%, #fde047 58%, #fde047 92%, transparent 92%); -webkit-background-clip: border-box; background-clip: border-box; color: inherit; padding: 0 4px; }
.hero p, .page-head p { color: var(--ink-2); }
.page-head .crumbs, .page-head .crumbs a { color: var(--ink-3); }
.big-search { border: 1px solid var(--line); box-shadow: 0 0 0 4px rgba(250, 204, 21, .3), 0 14px 34px rgba(28, 25, 23, .08); }
.quick { color: var(--ink-3); }
.quick a { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.quick a:hover { border-color: var(--brand); text-decoration: none; }
.stat { border-inline-start-color: var(--brand); }
.stat span { color: var(--ink-3); }

/* Buttons */
.btn-primary { background: var(--grad); color: var(--on-brand); box-shadow: 0 6px 18px rgba(245, 158, 11, .28); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(245, 158, 11, .36); }
.page-head .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }

/* Accents */
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); border-bottom-width: 3px; }
.score.mid { color: var(--on-brand); }
.bar .fill { background: var(--grad); }
.p-brand, .tier-2 { background: var(--brand-soft); color: #854d0e; }
.reg .ab, .license .ab { background: var(--brand-soft); color: #854d0e; }
a.card.reg, .row, .mini { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card.reg:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(234, 179, 8, .18); border-color: var(--brand); }
.row:hover, .mini:hover, .toc a:hover { background: #fffbeb; }
.score { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); }
.sponsored { background: linear-gradient(90deg, #fffbeb, var(--surface) 60%); border-color: #fde68a; }
.data thead th { background: #fffbeb; }

/* Footer */
.site-foot { background: #fefce8; color: var(--ink-2); border-top: 1px solid #fde68a; }
.site-foot a { color: var(--ink); }
.foot-grid h4, .foot-brand, .disclose b { color: var(--ink); }
.disclose { border-top-color: #fde68a; }

/* Regulator badges: keep labels inside the square */
.reg .ab, .license .ab { text-align: center; line-height: 1.05; padding: 0 4px; overflow: hidden; word-break: normal; overflow-wrap: normal; letter-spacing: -.01em; }
.reg .ab.ab-sm, .license .ab.ab-sm { font-size: 10.5px; }
.reg .ab.ab-xs, .license .ab.ab-xs { font-size: 9.5px; }
.license .ab { width: 46px; height: 46px; border-radius: 10px; }

/* ---------- Homepage hero (v2) ---------- */
.hero2 {
  background:
    radial-gradient(rgba(28, 25, 23, .09) 1.2px, transparent 1.3px) 0 0 / 20px 20px,
    linear-gradient(135deg, #fde047 0%, #facc15 45%, #fbbf24 100%);
  color: #1c1917; padding: 64px 0 72px; overflow: hidden;
}
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .65); border: 1px solid rgba(28, 25, 23, .12); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.hero2 h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 16px; max-width: 640px; }
.hero2 h1 .hl { display: inline-block; background: #1c1917; color: #fde047; padding: 0 .18em .04em; border-radius: 12px; transform: rotate(-2deg); }
.hero2 p { font-size: 18px; color: #44403c; max-width: 560px; margin: 0 0 28px; }
.search2 { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #1c1917; border-radius: 16px; padding: 7px 7px 7px 16px; max-width: 600px; box-shadow: 6px 6px 0 #1c1917; }
.search2 > svg { flex: none; color: #78716c; }
.search2 input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; color: #1c1917; background: transparent; padding: 10px 0; }
.btn-dark { background: #1c1917; color: #fde047; height: 46px; border-radius: 11px; }
.btn-dark:hover { background: #292524; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: 14px; color: #57534e; }
.try a { color: #1c1917; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(28, 25, 23, .3); text-underline-offset: 3px; }
.try a:hover { text-decoration-color: #1c1917; }
.inline-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.inline-stats li { background: #1c1917; color: #e7e5e4; border-radius: 99px; padding: 6px 14px; font-size: 14px; }
.inline-stats b { color: #fde047; font-weight: 800; font-variant-numeric: tabular-nums; }

.hero2-visual { position: relative; padding: 28px 8px; }
.hcard { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px rgba(120, 72, 0, .28); transform: rotate(2deg); border: 1px solid rgba(28, 25, 23, .06); }
.hcard-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a16207; margin-bottom: 12px; }
.hcard-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hcard-title { flex: 1; min-width: 0; }
.hcard-title b { display: block; font-size: 17px; }
.hcard-title small { color: var(--ink-3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard-rows { list-style: none; margin: 0; padding: 8px 0; }
.hcard-rows li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hcard-rows .ab { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--brand-soft); color: #854d0e; display: grid; place-items: center; font-weight: 800; font-size: 11px; text-align: center; line-height: 1.05; padding: 0 3px; }
.hcard-rows .ab.ab-sm { font-size: 9.5px; } .hcard-rows .ab.ab-xs { font-size: 8.5px; }
.hr-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-name small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.hr-ok { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.hcard-foot { margin-top: 6px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.hcard-foot.ok { background: var(--ok-soft); color: var(--ok); }
.hcard-foot.warn { background: var(--warn-soft); color: var(--warn); }
.hchip { position: absolute; z-index: 2; border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hchip-top { top: 0; left: -14px; background: #1c1917; color: #fde047; transform: rotate(-3deg); box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.hchip-bottom { bottom: 4px; right: -6px; background: #fff; color: #1c1917; border: 2px solid #1c1917; transform: rotate(2deg); }
.hchip-bottom b { color: #a16207; }

@media (max-width: 900px) {
  .hero2 { padding: 40px 0 48px; }
  .hero2-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero2-visual { max-width: 440px; }
}
@media (max-width: 520px) {
  .search2 { padding-inline-start: 12px; box-shadow: 4px 4px 0 #1c1917; }
  .search2 > svg { display: none; }
  .btn-dark { padding: 0 14px; }
  .hchip-top { left: 0; }
  .hchip-bottom { right: 0; }
  .hcard { transform: none; }
}
.hero2 h1 { margin-top: 0; }

/* ---------- Language menu ---------- */
details.lang { position: relative; flex: none; }
details.lang summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink-2); background: var(--surface); white-space: nowrap; }
details.lang summary::-webkit-details-marker { display: none; }
details.lang summary:hover, details.lang[open] summary { border-color: var(--brand); color: var(--ink); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 220px; max-height: 70vh; overflow-y: auto; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(28, 25, 23, .14); z-index: 60; }
.lang-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.lang-list a:hover { background: var(--brand-soft); text-decoration: none; }
.lang-list a[aria-current] { background: var(--brand-soft); font-weight: 700; }
.en-only { color: var(--ink-3); font-size: 11px; }
@media (max-width: 960px) {
  details.lang { margin-inline-start: auto; }
  details.lang summary span { display: none; }
  .menu-btn { margin-inline-start: 4px; }
}

/* ---------- Right-to-left languages (Arabic, Urdu) ---------- */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", system-ui, sans-serif; }
[dir="rtl"] .hchip-top { left: auto; right: -14px; transform: rotate(3deg); }
[dir="rtl"] .hchip-bottom { right: auto; left: -6px; transform: rotate(-2deg); }
[dir="rtl"] .hcard { transform: rotate(-2deg); }
[dir="rtl"] .search2 { padding: 7px 16px 7px 7px; box-shadow: -6px 6px 0 #1c1917; }
[dir="rtl"] .hero2 h1 .hl { transform: rotate(2deg); }
[dir="rtl"] .sponsored { background: linear-gradient(270deg, #fffbeb, var(--surface) 60%); }
@media (max-width: 520px) {
  [dir="rtl"] .hchip-top { right: 0; }
  [dir="rtl"] .hchip-bottom { left: 0; }
  [dir="rtl"] .search2 { padding-right: 12px; box-shadow: -4px 4px 0 #1c1917; }
  [dir="rtl"] .hcard { transform: none; }
}
@media (max-width: 520px) {
  .logo small { display: none; }
  .site-head .wrap { gap: 12px; }
}
