/* ==========================================================================
   BrokersNest design refresh (Angelos's brief, 26 Nov 2026; mockups in the
   "BrokersNest design refresh — ideas" canvas). Look, spacing and layout
   only: no data source, region rule, lane rule, /go/ link, score or risk
   warning changes here.

   ONE PLACE FOR THE TOKENS. Loaded on every template, after style.css and
   chrome.css (inc/site-chrome.php), so the values below win over theirs on
   equal specificity. Home v2 prints its own CSS later still; its :root maps
   its local names onto these tokens, so retuning a colour here retunes the
   homepage too.

   Contrast (WCAG 4.5:1 for text), checked for every pair this file uses:
   - --bn-text-faint (#5E7393) is 3.6:1 on the page background: DECORATION
     ONLY (dividers, dots), never text.
   - --bn-text-dim is 4.46:1 on --bn-surface-2 and 3.9:1 on
     --bn-surface-hover: dim labels go on the page or --bn-surface only.
   - White on --bn-accent (#3B8EEA) is 3.36:1, so a white label sits on
     --bn-accent-fill (#2C74C8, 4.73:1) instead. --bn-accent stays for
     non-text accents (active ring, focus, dots). Deviation from the brief,
     reported with the screenshots.
   ========================================================================== */

:root {
  --bn-bg: #0E1A2A;
  --bn-bg-glow: radial-gradient(1100px 560px at 88% 0%, rgba(59, 142, 234, .16), rgba(59, 142, 234, 0) 62%),
    linear-gradient(165deg, #0C1320 0%, #0E1A2A 52%, #0F2442 100%);
  --bn-surface: #0E2444;
  --bn-surface-2: #132B4F;
  --bn-surface-hover: #183460;
  --bn-table-head: #1F4A85;
  --bn-table-head-text: #DCE8F7;
  --bn-row-alt: #11294D;
  --bn-line: #22395C;
  --bn-line-soft: #1A3152;
  --bn-line-strong: #2C4770;

  --bn-text: #EEF3FA;
  --bn-text-2: #C9D5E6;
  --bn-text-muted: #A3B3CA;
  --bn-text-dim: #7F92AE;
  --bn-text-faint: #5E7393;

  --bn-accent: #3B8EEA;
  --bn-accent-hover: #2F7AD0;
  --bn-accent-fill: #2C74C8;
  --bn-accent-fill-hover: #2869B5;
  --bn-link: #7DB8F5;
  --bn-link-hover: #A9D0FA;

  --bn-radius-card: 20px;
  --bn-radius-pill: 999px;

  --bn-section-pad: clamp(96px, 10vw, 160px);
  --bn-section-pad-start: clamp(72px, 8vw, 120px);
  --bn-head-gap: 32px;

  /* Legacy names (style.css, every template but the homepage) pointed at
     the new values. */
  --bn-ink: var(--bn-text);
  --bn-bg-2: var(--bn-surface);
  --bn-slate: var(--bn-text-muted);
  --bn-nav-link: var(--bn-text-2);
  --bn-primary: var(--bn-link);
  --bn-primary-fill: var(--bn-accent-fill);

  /* Container: 1320px max, fluid side padding. */
  --bn-container-max: 1320px;
  --bn-container-gutter: clamp(20px, 4vw, 64px);

  /* A homepage section's background: the glow, faded to plain --bn-bg at
     its top and bottom edges, so one section runs into the next (and into
     the hero, which has no glow) with no visible seam. The fade colour is
     --bn-bg itself, also at alpha 0, so the blend never passes through grey. */
  --bn-section-bg: linear-gradient(180deg, #0E1A2A 0%, rgba(14, 26, 42, 0) 22%, rgba(14, 26, 42, 0) 62%, #0E1A2A 100%),
    var(--bn-bg-glow);
}

/* Header and footer (chrome.css). chrome.css defines these ON .bnh/.bnf, not
   on :root, so they are overridden on the same selector here (this file
   loads after it). D1 set them on :root, which the header never read. */
.bnh, .bnf {
  --bnh-ocean: var(--bn-accent);
  --bnh-obsidian: var(--bn-bg);
  --bnh-panel: var(--bn-surface);
  --bnh-line: var(--bn-line-soft);
  --bnh-line-strong: var(--bn-line-strong);
  --bnh-text: var(--bn-text);
  --bnh-slate: var(--bn-text-muted);
  --bnh-radius: var(--bn-radius-card);
}

html, body { background: var(--bn-bg); }
body { color: var(--bn-text); }

/* ---------- chrome: header, dropdowns, footer ---------- */
.bnh .submenu { --bnh-sm-bg: var(--bn-surface); border-color: var(--bn-line); border-radius: var(--bn-radius-card); box-shadow: none; }
.bnh .bnh-search-panel, .bnf .bnf-top { box-shadow: none; }
.bnh .btn-primary, .bnh .bnh-search-form button { background: var(--bn-accent-fill); }
.bnh .btn-primary:hover, .bnh .bnh-search-form button:hover { background: var(--bn-accent-fill-hover); filter: none; }
.bnf .bnf-top:hover, .bnf .sub-form button:hover { background: var(--bn-surface-2); }
.bnf .note-card { border-radius: var(--bn-radius-card); }
/* The footer's risk warning: full text, small grey, never below 11px (it is 12px). */
.bnf .risk-note { color: var(--bn-text-dim); }

/* ---------- shapes: cards, panels, tile grids ---------- */
.bn-archived-notice, .bn-country-risk, .bn-firewall-item, .bn-gl-entity,
.bn-how-rank-pillar, .bn-legal-notice, .bn-legal-risk-card, .bn-price-card,
.bn-promo-arithmetic, .bn-promo-why, .bn-promo-card, .bn-promo-check, .bn-promo-empty,
.bn-regulator-card, .bn-search-results {
  border-radius: var(--bn-radius-card);
  box-shadow: none;
}
/* 1px-gap tile grids keep their hairlines; the grid itself is the rounded box. */
.bn-regulator-grid, .bn-legal-risk-grid, .bn-how-rank-pillars, .bn-price-grid {
  border-radius: var(--bn-radius-card);
  overflow: hidden;
}
.bn-tag, .bn-filter-pill, .bn-btn, .btn-primary, .btn-ghost { border-radius: var(--bn-radius-pill); }
.bn-btn-primary, .bn-page-prose a.bn-btn-primary { background: var(--bn-accent-fill); color: #fff; }
.bn-btn-primary:hover { background: var(--bn-accent-fill-hover); }

/* ---------- links ---------- */
.bn-page-prose a:not(.bn-btn):not(.btn-primary) { color: var(--bn-link); }
.bn-page-prose a:not(.bn-btn):not(.btn-primary):hover { color: var(--bn-link-hover); }

/* ---------- tables in posts and pages: header band + zebra ---------- */
.bn-post-table-wrap, .bn-page-prose .bn-regulator-table-wrap {
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius-card);
  background: var(--bn-surface);
  overflow-x: auto;
  margin: 24px 0;
}
.bn-post-table, .bn-page-prose .bn-regulator-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--bn-text-muted); }
/* Wide comparison tables scroll inside their rounded box rather than squeezing
   eight columns into the 720px article. */
.bn-post-table { min-width: 960px; }
.bn-post-table thead th, .bn-page-prose .bn-regulator-table thead th {
  background: var(--bn-table-head); color: var(--bn-table-head-text);
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-align: left; padding: 12px 14px; border: 0; white-space: normal; vertical-align: bottom;
}
/* Headers wrap, so columns size to their cells, not their labels. */
.bn-post-table td { line-height: 1.5; }
.bn-post-table td, .bn-page-prose .bn-regulator-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--bn-line-soft); vertical-align: top; }
.bn-post-table tbody tr:nth-child(even), .bn-page-prose .bn-regulator-table tbody tr:nth-child(even) { background: var(--bn-row-alt); }
.bn-post-table tbody tr:last-child td, .bn-page-prose .bn-regulator-table tbody tr:last-child td { border-bottom: 0; }
.bn-post-table td:first-child, .bn-page-prose .bn-regulator-table td:first-child { color: var(--bn-text); font-weight: 600; }
.bn-post-table a, .bn-page-prose .bn-regulator-table a { color: var(--bn-link); }

/* ---------- blog post: article + right column ---------- */
.bn-post-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: clamp(40px, 5vw, 72px); align-items: start; justify-content: space-between; }
.bn-post-layout .bn-post { max-width: 720px; padding-top: 0; }
.bn-post-top { padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 36px); max-width: 760px; }
.bn-post-top .bn-post-header { margin-bottom: 0; }
.bn-post-top .bn-post-cat { display: inline-block; border-radius: var(--bn-radius-pill); border-color: var(--bn-line-strong); color: var(--bn-text-2); }
.bn-post-top .bn-post-meta { color: var(--bn-text-dim); }
.bn-post-content { font-size: 16px; }
.bn-post-content p, .bn-post-content li { font-size: 16px; line-height: 1.75; color: var(--bn-text-2); }
.bn-post-content strong { color: var(--bn-text); }
.bn-post-content h2 { scroll-margin-top: 96px; }
/* The featured image at its own 1200x630 shape: never cropped. */
.bn-post-hero { aspect-ratio: auto; border-radius: var(--bn-radius-card); background: var(--bn-surface); }
.bn-post-hero img { width: 100%; height: auto; object-fit: contain; }

/* Not sticky: the column is taller than most screens, and a sticky box that
   tall hides its own bottom (the ad slot) until the article ends. */
.bn-rail { display: flex; flex-direction: column; gap: 20px; }
.bn-post-layout .bn-post-content .ad-lead .ad-inner { max-width: 100%; }
.bn-rail-box { border: 1px solid var(--bn-line); border-radius: var(--bn-radius-card); padding: 22px; }
.bn-rail-box.is-filled { background: var(--bn-surface); }
.bn-rail-h { display: block; margin: 0 0 14px; font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bn-text-dim); }
.bn-rail-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bn-rail-toc a { display: flex; gap: 10px; align-items: center; min-height: 32px; padding: 4px 0; font-size: 13.5px; line-height: 1.4; color: var(--bn-text-muted); text-decoration: none; }
.bn-rail-toc a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bn-line-strong); }
.bn-rail-toc a:hover, .bn-rail-toc a[aria-current="true"] { color: var(--bn-text); }
.bn-rail-toc a[aria-current="true"]::before { background: var(--bn-accent); }
.bn-rail-learn ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bn-rail-learn li a { display: flex; gap: 12px; align-items: center; min-height: 44px; color: var(--bn-text); font-size: 14px; line-height: 1.35; text-decoration: none; }
.bn-rail-learn li a:hover { color: var(--bn-link-hover); }
.bn-rail-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bn-surface-2); color: var(--bn-link-hover); display: grid; place-items: center; font: 600 12px 'Jost', sans-serif; }
.bn-rail-more { font-size: 13px; color: var(--bn-link); text-decoration: none; }
.bn-rail-more:hover { color: var(--bn-link-hover); }
.bn-rail-brokers ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bn-rail-b { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--bn-text); }
.bn-rail-b:hover .bn-rail-bn { color: var(--bn-link-hover); }
.bn-rail-logo { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 4px; box-sizing: border-box; display: grid; place-items: center; overflow: hidden; color: #0E1A2A; font: 600 13px 'Jost', sans-serif; }
.bn-rail-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.bn-rail-bn { flex: 1; min-width: 0; font-size: 14px; }
.bn-rail-cost { flex: none; font: 500 13px 'Jost', sans-serif; color: var(--bn-text); background: var(--bn-surface-hover); border-radius: var(--bn-radius-pill); padding: 3px 10px; }
.bn-rail-note { margin: 0 0 14px; font-size: 11px; line-height: 1.55; color: var(--bn-text-dim); }
.bn-rail-brokers .bn-prw { margin: 0 0 14px; }
.bn-rail-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--bn-radius-pill); background: var(--bn-accent-fill); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.bn-rail-btn:hover { background: var(--bn-accent-fill-hover); color: #fff; }
.bn-rail .ad { margin: 0; }
.bn-rail .ad-box .ad-inner { max-width: 300px; }
.bn-rail .ad-slot { border-radius: var(--bn-radius-card); }
/* The 300x250 advert itself, rounded: the box clips the ad frame to 20px
   corners on a navy surface. Rail only. */
.bn-rail .ad-slot.is-revive { width: 300px; height: 250px; margin-inline: 0; overflow: hidden; background: var(--bn-surface); border-radius: var(--bn-radius-card); }
.bn-rail .ad-head { margin-bottom: 8px; }

@media (max-width: 1023px) {
  .bn-post-layout { grid-template-columns: minmax(0, 1fr); }
  .bn-post-layout .bn-post { max-width: 720px; }
  .bn-rail { position: static; max-width: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* TYPE-SCALE:BEGIN generated by scripts/type-scale.py, do not edit by hand */
/* from style.css */
html body { font-size: 15px; }
html .bn-btn { font-size: 15px; }
html .bn-logo { font-size: clamp(18.5px, 1.5vw, 23px); }
html .bn-nav-links { font-size: 15px; }
html .bn-nav-cta { font-size: 15px; }
html .bn-nav-utility-links a { font-size: 17px; }
html .bn-footer-stat-v { font-size: 24px; }
html .bn-footer-newsletter-headline { font-size: clamp(19.5px, 1.5vw, 25.5px); }
html .bn-footer-newsletter-form input[type="email"] { font-size: 15px; }
html .bn-footer-link-col-links { font-size: 15px; }
html .bn-broker-hero h1 { font-size: clamp(37.5px, 5.5vw, 88.5px); }
html .bn-broker-tagline { font-size: clamp(17px, 2vw, 27px); }
html .bn-stat-strip .bn-stat-v { font-size: clamp(17px, 1.5vw, 24px); }
html .bn-score-card .bn-score-num { font-size: clamp(41px, 4vw, 61px); }
html .bn-subscore-head span:last-child { font-size: 22px; }
html .bn-section-head h2 { font-size: clamp(29px, 4vw, 61px); }
html .bn-section-head p { font-size: clamp(14.5px, 1vw, 16px); }
html .bn-pros-cons-item strong { font-size: 15.5px; }
html .bn-suits-list li { font-size: 15px; }
html .bn-cost-compare-value { font-size: 15.5px; }
html .bn-roster-rank { font-size: 17px; }
html .bn-roster-name { font-size: 15.5px; }
html .bn-roster-score-num { font-size: 18.5px; }
html .bn-directory-hero h1 { font-size: clamp(39px, 6vw, 95px); }
html .bn-directory-hero > p { font-size: clamp(18px, 2vw, 29px); }
html .bn-directory-search .bn-directory-search-input { font-size: 15px; }
html .bn-directory-missing-card-inner h3 { font-size: clamp(18.5px, 1.5vw, 24px); }
html .bn-directory-logo-placeholder { font-size: 17px; }
html .bn-directory-name { font-size: clamp(20.5px, 2vw, 27px); }
html .bn-directory-score { font-size: clamp(32.5px, 3vw, 47.5px); }
html .bn-final-cta h2 { font-size: clamp(25.5px, 4vw, 47.5px); }
html .bn-cmp-h2 { font-size: clamp(29px, 4vw, 61px); }
html .bn-cmp-lede { font-size: clamp(14.5px, 1vw, 16px); }
html .bn-cmp-name { font-size: clamp(22px, 2vw, 32.5px); }
html .bn-cmp-stat-v { font-size: clamp(24px, 2vw, 34px); }
html .bn-cmp-select { font-size: 15px; }
html .bn-cmp-verdict-name { font-size: clamp(20.5px, 2vw, 29px); }
html .bn-cmp-verdict-card p { font-size: 15px; }
html .bn-cmp-slider-head span[id$="-out"] { font-size: 20.5px; }
html .bn-cmp-calc-card-head > span:first-child { font-size: clamp(18px, 1.5vw, 22px); }
html .bn-cmp-calc-amount { font-size: clamp(32.5px, 3.5vw, 58px); }
html .bn-cmp-row-name { font-size: 15px; }
html .bn-cmp-row-val { font-size: 15px; }
html .bn-cmp-reason-arrow { font-size: 14.5px; }
html .bn-cmp-reason p { font-size: 15px; }
html .bn-mkt-h1 { font-size: clamp(35.5px, 5.5vw, 88.5px); }
html .bn-mkt-lede { font-size: clamp(17px, 2vw, 27px); }
html .bn-mkt-lede-sm { font-size: clamp(14.5px, 1vw, 16px); }
html .bn-mkt-clock-time { font-size: clamp(24px, 2.5vw, 37.5px); }
html .bn-mkt-stat-v { font-size: clamp(24px, 2.5vw, 37.5px); }
html .bn-mkt-session-name { font-size: 17px; }
html .bn-mkt-leader-rank { font-size: clamp(29px, 3vw, 42.5px); }
html .bn-mkt-leader-cost-v { font-size: clamp(25.5px, 2.5vw, 37.5px); }
html .bn-mkt-leader-why { font-size: 15px; }
html .bn-home-hero-stat-v { font-size: clamp(28px, 3vw, 44px); }
html .bn-home-lane-title { font-size: clamp(22px, 2vw, 32.5px); }
html .bn-home-lane-tile p { font-size: 15px; }
html .bn-home-lane-stat-v { font-size: clamp(25.5px, 2.5vw, 37.5px); }
html .bn-home-country-tile-top { font-size: 17px; }
html .bn-home-country-tile-count { font-size: 22px; }
html .bn-blog-featured-title { font-size: clamp(20.5px, 2vw, 29px); }
html .bn-blog-card-title { font-size: 17px; }
html .bn-price-card-name { font-size: 20.5px; }
html .bn-price-value { font-size: clamp(25.5px, 2vw, 32.5px); }
html .bn-term-discount-len { font-size: 15.5px; }
html .bn-legal-prose h3 { font-size: 16px; }
html .bn-post-title { font-size: clamp(27px, 3.5vw, 47.5px); }
html .bn-page-prose h2 { font-size: 22px; }
html .bn-page-prose h3 { font-size: 16px; }
html .bn-page-prose p { font-size: 15px; }
html .bn-page-prose ul, html .bn-page-prose ol { font-size: 15px; }
html .bn-regulator-name { font-size: 22px; }
html .bn-regulator-table-code { font-size: 15px; }
html .bn-index-broker a { font-size: 15.5px; }
html .bn-index-score { font-size: 15.5px; }
html .bn-promo-empty h2 { font-size: clamp(18.5px, 2vw, 25.5px); }
html .bn-promo-empty p { font-size: 15px; }
html .bn-promo-check-n { font-size: clamp(24px, 2vw, 34px); }
html .bn-promo-check-q { font-size: clamp(16px, 1.5vw, 19.5px); }
html .bn-promo-arithmetic h2 { font-size: clamp(20.5px, 2vw, 29px); }
html .bn-promo-why h2 { font-size: clamp(20.5px, 2vw, 29px); }
html .bn-promo-ended-broker { font-size: clamp(15.5px, 1.5vw, 18.5px); }
html .bn-promo-card-size { font-size: clamp(24px, 2.5vw, 34px); }
html .bn-promo-card-headline { font-size: clamp(15.5px, 1.5vw, 18px); }
html .bn-about-refusal-dash { font-size: 15.5px; }
html .bn-about-refusal-row p { font-size: 15px; }
html .bn-how-rank-pillar-weight { font-size: clamp(24px, 2vw, 32.5px); }
html .bn-how-rank-pillar-name { font-size: 17px; }
html .bn-chat-head-title { font-size: 15px; }
html .bn-chat-close { font-size: 18.5px; }
html .bn-chat-send { font-size: 15px; }
html .bn-search-page-form input { font-size: 15px; }
html .bn-search-page-form button { font-size: 15px; }
html .bn-directory-hero > p.bn-search-page-hint { font-size: 15px; }
html .bn-search-result-title { font-size: 15px; }
html .bn-gl-points h2 { font-size: 15px; }
html .bn-gl-points p { font-size: 15px; }
html .bn-gl-link { font-size: 15px; }
html .bn-gl-h2 { font-size: clamp(24px, 3vw, 35.5px); }
html .bn-gl-help { font-size: 15px; }
html .bn-gl-field input[type="text"], html .bn-gl-field input[type="email"], html .bn-gl-field input[type="url"], html .bn-gl-field input[type="number"], html .bn-gl-field select, html .bn-gl-field textarea { font-size: 15px; }
html .bn-gl-check { font-size: 15px; }
html .bn-gl-submit { font-size: 15px; }
html .bn-gl-notice { font-size: 15px; }
html .bn-gl-review-head h3 { font-size: 15.5px; }
html .ad-slot.is-empty .ad-empty-id { font-size: 14.5px; }
/* from assets/css/chrome.css */
html .bnh, html .bnf { font-size: 14.5px; }
html .bnh .btn-primary { font-size: 15px; }
html .bnh .nav-item > a { font-size: 15px; }
html .bnh .submenu .sm-title { font-size: 15px; }
html .bnh .bnh-search-form input { font-size: 15px; }
html .bnh .bnh-search-submit { font-size: 15px; }
html .bnh .bnh-sr-title { font-size: 14.5px; }
@media (min-width: 1081px) { html .bnh .nav-item > a { font-size: 14.5px; } }
@media (min-width: 1081px) { html .bnh .btn-primary { font-size: 14.5px; } }
@media (max-width: 1080px) { html .bnh .nav-item > a { font-size: 14.5px; } }
html .bnf .f-tag { font-size: clamp(18.5px, 2vw, 25.5px); }
html .bnf .f-figs .n { font-size: 25.5px; }
html .bnf .note-card h3 { font-size: 18px; }
html .bnf .sub-form input { font-size: 15px; }
html .bnf .sub-form button { font-size: 15px; }
html .bnf .f-col a { font-size: 15px; }
/* from assets/css/trader-questions.css */
html .bn-tq-search-large .bn-tq-input { font-size: 15.5px; }
html .bn-tq-search-compact .bn-tq-input { font-size: 15px; }
html .bn-tq-h1 { font-size: clamp(27px, 4vw, 49.5px); }
html .bn-tq-acc-body p { font-size: 15px; }
html .bn-tq-linklist a { font-size: 15px; }
html .bn-tq-desk-all { font-size: 15px; }
html .bn-tq-announce-x { font-size: 18.5px; }
/* from assets/css/compare-pair.css */
html .bn-hh-head h1 { font-size: clamp(29px, 4vw, 54.5px); }
html .bn-hh-lead { font-size: clamp(14.5px, 1vw, 17px); }
html .bn-hh-table th, html .bn-hh-table td { font-size: 15px; }
html .bn-hh-table tbody th { font-size: 15px; }
html .bn-hh-name { font-size: clamp(17px, 1.5vw, 22px); }
html .bn-hh-cta-name { font-size: 18.5px; }
html .bn-hh-cta .bn-hh-gate-note, html .bn-hh-cta .bn-hh-unavail { font-size: 15px; }
html .bn-hh-how { font-size: 15px; }
html .bn-hh-pill { font-size: 15px; }
/* from assets/css/broker-faq.css */
html .bn-bfaq-a p { font-size: 15px; }
html .bn-fees-table th, html .bn-fees-table td { font-size: 15px; }
html .bn-hh-pill { font-size: 15px; }
/* from page-home-v2.php (inline) */
html body { font-size: 14.5px; }
html .d1 { font-size: clamp(35.5px,5.5vw,78px); }
html .d2 { font-size: clamp(29px,4vw,56px); }
html .d3 { font-size: clamp(22px,2.5vw,37.5px); }
html .title { font-size: clamp(17px,1.5vw,22px); }
html .lead { font-size: clamp(13.5px,1vw,16px); }
html .btn-primary { font-size: 15px; }
html .region-btn { font-size: 15px; }
html .region-menu button { font-size: 15px; }
html .figure .n { font-size: clamp(29px,3.5vw,44px); }
html .lane p { font-size: 15px; }
html .def h4 { font-size: 14.5px; }
html .btn-ghost { font-size: 15px; }
html .pw .nm { font-size: 15.5px; }
html .pw .val { font-size: clamp(22px,2vw,30.5px); }
html .pl-b .nm { font-size: 15px; }
html .pl-row .v { font-size: 15px; }
html .blogo { font-size: 14.5px; }
html .pick-id .nm { font-size: 18px; }
html .score .v { font-size: 35.5px; }
html .ad-slot.is-empty .ad-empty-id { font-size: 14.5px; }
html .av .nm { font-size: clamp(14.5px,1.5vw,18px); }
html .av .ct { font-size: clamp(17px,1.5vw,22px); }
html .learn-n { font-size: clamp(32.5px,3.5vw,46px); }
html .learn-row p { font-size: 15px; }
html .b-cell .nm { font-size: 15.5px; }
html td.num { font-size: 15px; }
html .sc-cell .v { font-size: 20.5px; }
html #index .b-cell .blogo { font-size: 15px; }
html #index .b-cell .nm { font-size: 16px; }
html #index .sc-cell .v { font-size: 20.5px; }
@media(max-width:767px) { html #index .b-cell .nm { font-size: 14.5px; } }
@media(max-width:560px) { html #index .b-cell .nm { font-size: 15px; } }
@media(max-width:560px) { html #index .sc-cell .v { font-size: 15.5px; } }
html .year-cost { font-size: 15px; }
html .cost .v { font-size: clamp(32.5px,3.5vw,44px); }
html .step .n { font-size: 41px; }
html .step h3 { font-size: 18px; }
html .step p { font-size: 15px; }
html .btn-dark { font-size: 15px; }
html .wcard .blogo { font-size: 16px; }
html .wcard .nm { font-size: 16px; }
html .wcard .row .s { font-size: 20.5px; }
html .d2 { font-size: clamp(24px,2.5vw,35.5px); }
@media(max-width:759px) { html #index .sc-cell .v { font-size: 15px; } }
/* TYPE-SCALE:END */

/* ==========================================================================
   TYPE AND NAMES (Angelos, 26 Nov 2026). After the generated scale-down
   above, the exact sizes the brief names, and the one-line rule for broker
   names. Selectors start with "html" to outrank the generated rules and Home
   v2's inline CSS.
   ========================================================================== */
html body { font-size: 15px; }
html .bn-post-content p, html .bn-post-content li { font-size: 16px; }   /* article body stays 16 */
/* standfirsts */
html .lead, html .sec-head .lead, html .lane-lead, html .bn-cmp-lede, html .bn-mkt-lede-sm, html .hero .lead { font-size: 14px; }
/* labels / eyebrows */
html .label, html .bn-eyebrow, html .lane-eyebrow, html .bn-rail-h, html .ticker-tag,
html .bn-directory-rank, html .bn-mkt-leader-cost-k, html .rank, html .tag, html .pl-head span,
html #index thead th, html .bn-post-table thead th { font-size: 10.5px; }
/* nav and buttons */
html .bnh .nav-item > a { font-size: 15px; }
html .bnh .btn-primary { font-size: 14.5px; padding: 11px 20px; }
html .bn-btn, html .btn-primary, html .btn-ghost, html .btn-dark, html .bn-rail-btn { font-size: 14.5px; padding: 12px 22px; }
html .bn-btn { min-height: 44px; }   /* was 56px; 44 keeps the tap target */
html .bn-btn-sm { font-size: 13.5px; padding: 9px 16px; }
@media (max-width: 560px) { html .bnh .btn-primary { font-size: 13px; padding: 9px 14px; } }

/* ---------- broker cards: name on one line, licence two lines, header one line ---------- */
html .bn-directory-id, html .pick-id, html .bn-cmp-selector .bn-directory-id { min-width: 0; }
html .bn-directory-id-text, html .pick-id > div { min-width: 0; flex: 1 1 auto; }
html .bn-directory-name, html .bn-cmp-name { font-size: clamp(18px, 1.6vw, 22px); }
html .bn-directory-name, html .bn-cmp-name, html .pick-id .nm, html .wcard .nm, html .pw .nm {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; min-width: 0; max-width: 100%;
}
html .bn-directory-name { display: block; }
html .bn-cmp-name { line-height: 1.15; }
html .bn-directory-meta, html .pick-id .sub, html .wcard .lc {
  font-size: 12px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* "No. 2" + tag: one line each, the tag gives way and truncates */
html .bn-directory-rank-row, html .bn-mkt-leader-head, html .pick-top { flex-wrap: nowrap; align-items: baseline; gap: 12px; min-width: 0; }
html .bn-directory-rank, html .rank, html .bn-mkt-leader-rank { flex: none; white-space: nowrap; }
html .bn-directory-badge, html .pick-top .tag {
  font-size: 10px; letter-spacing: .1em; min-width: 0; flex: 0 1 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html .bn-mkt-leader-rank { font-size: clamp(26px, 2.6vw, 38px); }
/* big score numbers: about a quarter smaller */
html .bn-directory-score { font-size: clamp(30px, 2.7vw, 42px); }
html .score .v { font-size: 32px; }
html .wcard .row .s { font-size: 19px; }
html .bn-mkt-leader-cost-v { font-size: clamp(24px, 2.3vw, 33px); }

/* ---------- broker names elsewhere: tables, rails, compare rows ---------- */
html #index .b-txt, html .pl-b, html .bn-rail-b { min-width: 0; }
html #index .b-cell .nm, html .pl-b .nm, html .bn-rail-bn, html .cq-t, html .b-cell .nm,
html .bn-roster-name, html .bn-cost-compare-name, html .bn-hh-name, html .bn-hh-cta-name, html .bn-cmp-verdict-name,
html .bn-index-broker a {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
html #index .b-txt .nm { display: block; }
html .pl-b .nm { display: block; line-height: 1.3; }
html .bn-hh-name, html .bn-hh-cta-name, html .bn-index-broker a { display: inline-block; max-width: 100%; vertical-align: bottom; }
html .bn-index-broker { min-width: 0; }
html .cq-row { min-width: 0; }
html .cq-t { flex: 1 1 auto; }
/* Phones: "Not yet ranked" wraps in a narrow column, so it doesn't squeeze
   the broker's name into an ellipsis. */
@media (max-width: 759px) {
  html #index .sc-cell-unranked { max-width: 76px; }
  html #index .sc-cell-unranked .v { white-space: normal; text-align: right; font-size: 11.5px; line-height: 1.25; }
  html #index .sc-cell-unranked .u { display: none; }
}

/* ==========================================================================
   CARD GRIDS (Angelos, 26 Nov 2026)
   ========================================================================== */
/* Every .bn-grid is a tile grid (hairline gaps on the line colour): the grid
   is the rounded box, like the homepage's. */
html .bn-grid { border-radius: var(--bn-radius-card); overflow: hidden; }

/* "Open account" on the same line across a row of cards, with a broker's own
   risk warning (Pepperstone) under its button, in full. Each card takes the
   same set of row tracks from its grid (subgrid), one track per kind of
   child, so every card's button lands on the same track whatever is above
   it, and the warning gets a track of its own below. Cards without a child
   leave that track empty. Browsers without subgrid keep the old layout. */
@supports (grid-template-rows: subgrid) {
  html .bn-grid:has(> .bn-directory-card) > * { grid-row: span 9; }
  html .bn-grid > .bn-directory-card { display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  html .bn-directory-card > * { grid-column: 1; min-width: 0; }
  html .bn-directory-card > .bn-directory-rank-row { grid-row: 1; }
  html .bn-directory-card > .bn-directory-id { grid-row: 2; }
  html .bn-directory-card > .bn-directory-score-row { grid-row: 3; }
  html .bn-directory-card > .bn-directory-score-track,
  html .bn-directory-card > .bn-foot { grid-row: 4; }
  html .bn-directory-card > .bn-fact-list { grid-row: 5; }
  html .bn-directory-card > .bn-tag-list,
  html .bn-directory-card > .bn-compare-pending { grid-row: 6; }
  html .bn-directory-card > .bn-directory-regulated { grid-row: 7; }
  html .bn-directory-card > .bn-directory-cta { grid-row: 8; align-self: end; margin-top: 0; }
  html .bn-directory-card > .bn-fine-note { grid-row: 9; align-self: start; }

  /* Homepage "Three places to start" (rendered by PHP and again by the
     region script, same children). */
  html .picks > .pick { grid-row: span 8; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  html .pick > * { grid-column: 1; min-width: 0; }
  html .pick > .pick-top { grid-row: 1; }
  html .pick > .pick-id { grid-row: 2; }
  html .pick > .score { grid-row: 3; }
  html .pick > .bar { grid-row: 4; }
  html .pick > .only-new, html .pick > .only-pro { grid-row: 5; }
  html .pick > .chips { grid-row: 6; align-self: start; }
  html .pick > .pick-actions { grid-row: 7; align-self: end; margin-top: 0; }
  html .pick > .bn-prw { grid-row: 8; align-self: start; }
}
