/*
 * Select Prop Firms UI kit: component layer.
 * Every rule reads the custom properties in tokens.css (spf-tokens.css in the theme).
 * Classes are prefixed spf- so the layer can be enqueued after the legacy theme CSS
 * without touching existing markup.
 */

/* ---------- Base scope ---------- */
.spf-surface {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.spf-surface *, .spf-surface *::before, .spf-surface *::after { box-sizing: border-box; }
.spf-surface ::selection { background: var(--selection); color: var(--white); }
.spf-surface :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.spf-surface img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.spf-container { width: 100%; max-width: var(--container); margin-inline: auto; }
.spf-section { width: 100%; max-width: var(--page-max); margin-inline: auto; padding: var(--space-60) var(--space-80); }
.spf-section--divided { border-bottom: 1px solid var(--divider); }
.spf-section--band { background: var(--surface-soft); max-width: none; }
.spf-grid { display: grid; gap: var(--space-40); }
.spf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .spf-grid--3, .spf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .spf-section { padding: var(--space-24) var(--space-12); }
  .spf-grid { gap: var(--space-16); }
  .spf-grid--2, .spf-grid--3, .spf-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Button ---------- */
.spf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  padding: var(--space-14) var(--space-24);
  border: 0; border-radius: var(--radius-30);
  font-family: var(--font-sans); font-size: 16px; font-weight: 700; line-height: 20px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.spf-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.spf-btn--dark { background: var(--ink); color: var(--white); }
.spf-btn--dark:hover { background: var(--orange); }
.spf-btn--orange { background: var(--orange); color: var(--white); }
.spf-btn--orange:hover { background: var(--orange-hover); }
.spf-btn--soft { background: var(--surface-card); color: var(--ink); }
.spf-btn--soft:hover { background: var(--surface-hover); }
.spf-btn--block { width: 100%; }
.spf-btn--compact { padding: var(--space-12); font-size: 14px; }
.spf-btn[disabled], .spf-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
@media (max-width: 767px) {
  .spf-btn { padding: var(--space-12) 18px; }
}

/* Text link with the long arrow (Read more) */
.spf-arrow-link {
  display: inline-flex; align-items: center; gap: var(--space-10);
  font-family: var(--font-sans); font-size: 16px; font-weight: 700; line-height: 22.4px;
  color: var(--ink); text-decoration: none; transition: color .2s ease;
}
.spf-arrow-link svg { width: 24px; height: 10px; flex-shrink: 0; }
.spf-arrow-link:hover { color: var(--orange); }

/* ---------- Market toggle (header CFDs / Futures) ---------- */
.spf-market-toggle {
  display: inline-flex; align-items: center; gap: var(--space-4);
  padding: var(--space-2); border-radius: var(--radius-8); background: var(--toggle-track);
}
.spf-market-toggle__btn {
  padding: var(--space-4) var(--space-12); border: 0; border-radius: var(--radius-6);
  background: transparent; color: var(--ink-toggle); cursor: pointer;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 22.4px;
  transition: background-color .2s ease, color .2s ease;
}
.spf-market-toggle__btn:hover { color: var(--orange); }
.spf-market-toggle__btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.spf-market-toggle__btn[aria-pressed="true"]:hover { background: var(--orange); color: var(--white); }

/* ---------- Pill tabs (CFD/Forex, Futures) ---------- */
.spf-pill-tabs { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.spf-pill-tab {
  padding: var(--space-10) var(--space-16); border: 0; border-radius: var(--radius-80);
  background: var(--surface-card); color: var(--ink); cursor: pointer;
  font-family: var(--font-sans); font-size: 18px; font-weight: 500; line-height: 22px;
  transition: background-color .2s ease, color .2s ease;
}
.spf-pill-tab:hover { background: var(--surface-hover); }
.spf-pill-tab[aria-selected="true"] { background: var(--ink); color: var(--white); font-weight: 700; }
.spf-pill-tab[aria-selected="true"]:hover { background: var(--orange); }

/* ---------- Text tabs (Editors' Choice, All / Guides) ---------- */
.spf-text-tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--rule-soft); }
.spf-text-tab {
  position: relative; padding: var(--space-10) var(--space-20); margin-bottom: -2px;
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-size: 18px; font-weight: 400; line-height: 22.4px;
  color: var(--grey-400); border-bottom: 3px solid transparent; transition: color .2s ease;
}
.spf-text-tab:hover { color: var(--orange); }
.spf-text-tab[aria-selected="true"] { color: var(--orange); font-weight: 600; border-bottom-color: var(--orange); }
.spf-text-tabs--lg .spf-text-tab { font-size: 20px; font-weight: 600; padding: var(--space-16); border-bottom-width: 2px; }

/* ---------- Filter bar ---------- */
.spf-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); flex-wrap: wrap; }
.spf-filter-bar__controls { display: flex; align-items: center; gap: var(--space-16); margin-left: auto; }
.spf-select-inline {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  padding: 0 var(--space-20) 0 0; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M10.99 1.01 5.99 6.01.99 1.01' stroke='%23333333' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 22px; color: var(--black);
}

/* ---------- Tag ---------- */
.spf-tags { display: flex; flex-wrap: wrap; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.spf-tag {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: var(--space-6) var(--space-10); border-radius: var(--radius-8);
  background: var(--chip); color: var(--ink);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; line-height: 13.2px;
}

/* ---------- Badges ---------- */
.spf-badge {
  display: inline-flex; align-items: center; gap: var(--space-4); align-self: flex-start;
  padding: var(--space-8) var(--space-10); border-radius: var(--radius-8);
  background: var(--chip-badge); color: var(--ink);
  font-family: var(--font-display); font-size: 12px; font-weight: 400; line-height: 22.4px;
}
.spf-badge img, .spf-badge svg { width: 18px; height: 19px; flex-shrink: 0; }
.spf-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-8); align-self: flex-start;
  padding: var(--space-8) 15px; border-radius: var(--radius-12);
  background: var(--chip-category); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 22.4px; text-transform: uppercase;
}
.spf-eyebrow img, .spf-eyebrow svg { width: 20px; height: 20px; flex-shrink: 0; }
.spf-label {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 3px var(--space-10); border-radius: var(--radius-5);
  background: var(--ink); color: var(--white); text-decoration: none;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700; line-height: 22.4px;
}
.spf-label--lg { padding: var(--space-4) var(--space-10); font-size: 16px; font-weight: 600; line-height: 24px; }
.spf-label--light { background: var(--white); color: var(--ink); }

/* ---------- Rating pill ---------- */
.spf-rating {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  padding: var(--space-4) var(--space-10); border: 1px solid var(--line); border-radius: var(--radius-16);
  background: var(--white); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 22.4px;
  font-variant-numeric: tabular-nums;
}
.spf-rating--table { padding: 3px var(--space-8); font-size: 16px; font-weight: 400; }

/* ---------- Star rating and rating bars ---------- */
.spf-stars { display: flex; align-items: center; gap: var(--space-10); }
.spf-stars__score {
  padding: 3px var(--space-8); border: 1px solid var(--surface-card); border-radius: var(--radius-16);
  background: var(--surface-soft); font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums;
}
.spf-stars__row { display: flex; gap: 2px; }
.spf-stars__row img { width: 20px; height: 19px; }
.spf-stars__count { font-size: 16px; font-weight: 400; color: var(--ink); }
.spf-rating-bars { display: flex; flex-direction: column; gap: var(--space-10); max-width: 307px; }
.spf-rating-bars__item { position: relative; height: 19px; border-radius: 11px; background: var(--surface-soft); overflow: hidden; }
.spf-rating-bars__fill { height: 100%; border-radius: 11px; background: var(--orange); }
.spf-rating-bars__label {
  position: absolute; left: var(--space-8); top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 400; line-height: 1; color: var(--white);
}
.spf-rating-bars__item--low .spf-rating-bars__label { color: var(--ink); left: calc(var(--fill, 0%) + var(--space-8)); }

/* ---------- Allocation meter ---------- */
.spf-meter { display: flex; flex-direction: column; gap: var(--space-10); }
.spf-meter__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.spf-meter__label { font-size: 14px; font-weight: 500; line-height: 22.4px; }
.spf-meter__value { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 22.4px; font-variant-numeric: tabular-nums; }
.spf-meter__track { height: 4px; border-radius: var(--radius-pill); background: var(--track); overflow: hidden; }
.spf-meter__fill { height: 100%; border-radius: var(--radius-pill); background: var(--orange); }

/* ---------- Price ---------- */
.spf-price { display: inline-flex; align-items: baseline; gap: var(--space-8); font-variant-numeric: tabular-nums; }
.spf-price__was { font-size: 14px; font-weight: 500; line-height: 22.4px; color: var(--ink-muted); text-decoration: line-through; }
.spf-price__now { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 22.4px; color: var(--orange); }

/* ---------- Firm logo tile ---------- */
.spf-firm-logo { width: 40px; height: 40px; border-radius: var(--radius-8); object-fit: cover; flex-shrink: 0; }
.spf-firm-logo--lg { width: 64px; height: 64px; }
.spf-firm-logo--xl { width: 100px; height: 100px; }

/* ---------- Firm card ---------- */
.spf-firm-card {
  display: flex; flex-direction: column; gap: var(--space-10);
  padding: var(--space-24); border-radius: var(--radius-20); background: var(--surface-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.spf-firm-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.spf-firm-card__head { display: flex; align-items: center; gap: var(--space-12); }
.spf-firm-card__name { flex: 1; margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 19.2px; color: var(--ink); }
.spf-firm-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding: var(--space-12) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.spf-firm-card__origin { display: flex; align-items: center; gap: var(--space-12); font-size: 14px; font-weight: 500; line-height: 22.4px; }
.spf-firm-card__flag { font-size: 18px; line-height: 22.4px; }
.spf-firm-card__country { font-family: var(--font-display); font-weight: 400; }
.spf-firm-card__platforms { display: flex; gap: var(--space-8); }
.spf-firm-card__platforms img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 767px) {
  .spf-firm-card { padding: var(--space-14); border-radius: var(--radius-12); }
}

/* ---------- Category card ---------- */
.spf-category-card {
  display: flex; flex-direction: column; gap: var(--space-10);
  padding: var(--space-24); border: 1px solid var(--card-edge); border-radius: var(--radius-32);
  background: var(--surface-card); color: var(--ink); text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.spf-category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.spf-category-card__title { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 33.6px; letter-spacing: -0.56px; }
.spf-category-card__text { margin: 0; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--ink-3); }
@media (max-width: 767px) {
  .spf-category-card { padding: var(--space-16); border-radius: var(--radius-12); }
  .spf-category-card__title { font-size: 20px; line-height: 24px; }
  .spf-category-card__text { font-size: 16px; line-height: 22.4px; }
}

/* ---------- Trust card ---------- */
.spf-trust-card {
  display: flex; flex-direction: column; gap: var(--space-12);
  padding: var(--space-28); border-radius: var(--radius-32); background: var(--surface-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.spf-trust-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.spf-trust-card__icon { width: 72px; height: 72px; margin-bottom: var(--space-12); }
.spf-trust-card__title { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 31.5px; }
.spf-trust-card__text { margin: 0; font-size: 20px; font-weight: 500; line-height: 30px; }
@media (max-width: 767px) {
  .spf-trust-card__title { font-size: 26px; line-height: 35.88px; }
  .spf-trust-card__text { font-size: 14px; line-height: 21px; }
}

/* ---------- Firm showcase (screenshot band) ---------- */
.spf-showcase {
  display: flex; justify-content: center; gap: var(--space-32);
  padding: 36px var(--space-40) 0; border-radius: var(--radius-20); background: var(--surface-card);
  overflow: hidden;
}
.spf-showcase__item { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); padding: 0 var(--space-10); color: inherit; text-decoration: none; min-width: 0; }
.spf-showcase__name { margin: 0 0 var(--space-10); font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 27px; letter-spacing: -0.48px; color: var(--black); }
.spf-showcase__shot {
  width: 300px; max-width: 100%; height: 208px; object-fit: cover; object-position: top;
  border-radius: var(--radius-30) var(--radius-30) 0 0; box-shadow: var(--shadow-shot);
  transition: transform .3s ease, box-shadow .3s ease;
}
.spf-showcase__item:hover .spf-showcase__shot { transform: translateY(-4px); box-shadow: var(--shadow-shot-hover); }
@media (max-width: 1023px) { .spf-showcase { justify-content: flex-start; overflow-x: auto; } }

/* ---------- Article card ---------- */
.spf-article-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.spf-article-card__media { margin-bottom: var(--space-24); border-radius: var(--radius-8); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-card); }
.spf-article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.spf-article-card:hover .spf-article-card__media img { transform: scale(1.05); }
.spf-article-card__meta { display: flex; align-items: center; gap: var(--space-10); margin-bottom: var(--space-16); font-size: 14px; font-weight: 500; line-height: 22.4px; color: var(--black); }
.spf-article-card__title { margin: 0 0 14px; font-size: 19px; font-weight: 600; line-height: 22.8px; color: var(--ink); }
.spf-article-card--lead .spf-article-card__title { font-size: 30px; line-height: 33px; }
.spf-article-card__date { margin: 0 0 var(--space-10); font-size: 13px; font-weight: 400; line-height: 13px; }
.spf-article-card__excerpt { margin: 0 0 var(--space-24); font-size: 14px; font-weight: 400; line-height: 20.86px; }
.spf-article-card .spf-arrow-link { margin-top: auto; }

/* ---------- Offer row (firm profile challenges) ---------- */
.spf-offer {
  display: grid; grid-template-columns: minmax(120px, 1.2fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: var(--space-8);
  padding: var(--space-16); border: 1px solid var(--card-edge); border-radius: var(--radius-8); background: var(--surface-soft);
}
.spf-offer__cell { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); padding: var(--space-20) var(--space-4); text-align: center; font-size: 18px; font-weight: 400; line-height: 28.8px; letter-spacing: .54px; }
.spf-offer__label { font-size: 14px; font-weight: 700; line-height: 19px; letter-spacing: 0; color: var(--ink-2); }
.spf-offer__was { text-decoration: line-through; }
.spf-offer__now { padding: var(--space-4); border-radius: var(--radius-8); background: var(--white); font-weight: 600; }
.spf-offer__code { padding: var(--space-8); border-radius: var(--radius-8); background: var(--ink); color: var(--white); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.spf-offer .spf-btn { padding: var(--space-12) var(--space-20); }
@media (max-width: 767px) {
  .spf-offer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spf-offer .spf-btn { grid-column: 1 / -1; }
}

/* ---------- Firms table ---------- */
.spf-table-wrap { width: 100%; overflow-x: auto; }
.spf-firms-table { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0 var(--space-10); font-size: 16px; }
.spf-firms-table th {
  padding: 23px var(--space-8); background: var(--ink); color: var(--white); text-align: center; white-space: nowrap;
  font-size: 14px; font-weight: 600; line-height: 22.4px;
}
.spf-firms-table th:first-child { border-radius: var(--radius-8) 0 0 var(--radius-8); }
.spf-firms-table th:last-child { border-radius: 0 var(--radius-8) var(--radius-8) 0; }
.spf-firms-table th[aria-sort] { cursor: pointer; }
.spf-firms-table th .spf-sort { display: inline-block; margin-left: var(--space-10); opacity: .9; }
.spf-firms-table td { padding: var(--space-10) var(--space-8); background: var(--surface-soft); text-align: center; vertical-align: middle; }
.spf-firms-table td + td { box-shadow: inset 1px 0 0 var(--hairline); }
.spf-firms-table td:first-child { border-radius: var(--radius-8) 0 0 var(--radius-8); }
.spf-firms-table td:last-child { border-radius: 0 var(--radius-8) var(--radius-8) 0; }
.spf-firms-table__firm { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.2; }
.spf-firms-table__years { font-size: 14px; }
.spf-firms-table__years b { color: var(--orange); font-weight: 700; }
.spf-firms-table__platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.spf-firms-table__platforms img { width: 25px; height: 25px; object-fit: contain; }
.spf-firms-table .spf-tags { justify-content: center; gap: 5px; }
.spf-firms-table .spf-meter { gap: 5px; align-items: center; }
.spf-firms-table .spf-meter__track { width: 108px; height: 6px; border-radius: var(--radius-3); }

/* ---------- Header ---------- */
.spf-header { position: sticky; top: 0; z-index: 1000; padding: var(--space-24) var(--space-80); }
.spf-header__bar {
  display: flex; align-items: center; gap: var(--space-24);
  max-width: var(--container); margin-inline: auto;
  padding: var(--space-20); border-radius: var(--radius-20); background: var(--surface-soft);
}
.spf-header__logo { display: block; flex-shrink: 0; }
.spf-header__logo img { width: 183px; height: 41px; }
.spf-header__nav { display: flex; align-items: center; gap: var(--space-24); margin-left: 65px; }
.spf-header__links { display: flex; align-items: center; gap: var(--space-24); list-style: none; margin: 0; padding: 0; }
.spf-nav-link {
  position: relative; display: block; padding: var(--space-8) var(--space-12);
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 22.4px;
  color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .2s ease;
}
.spf-nav-link:hover, .spf-nav-link[aria-current="page"] { color: var(--orange); }
.spf-search {
  display: flex; align-items: center; gap: var(--space-10); margin-left: auto; width: 227px;
  padding: var(--space-10) 14px; border-radius: var(--radius-20); background: var(--white);
}
.spf-search svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink); }
.spf-search input { width: 100%; border: 0; outline: 0; background: transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink); }
.spf-search input::placeholder { color: var(--grey-400); }
.spf-header__menu { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: var(--radius-8); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 1023px) {
  .spf-header { padding: var(--space-20); }
  .spf-header__nav, .spf-search { display: none; }
  .spf-header__menu { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 767px) {
  .spf-header__bar { padding: var(--space-12) var(--space-16); border-radius: var(--radius-12); }
}

/* ---------- Breadcrumbs ---------- */
.spf-breadcrumbs { padding: 40px 0 50px; }
.spf-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); list-style: none; margin: 0; padding: 0; font-size: 16px; font-weight: 400; line-height: 22.4px; }
.spf-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-8); }
.spf-breadcrumbs li + li::before { content: ""; width: 18px; height: 19px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'%3E%3Cpath d='M6.68 16a.56.56 0 0 1-.4-.16.57.57 0 0 1 0-.8l4.9-4.89a.94.94 0 0 0 0-1.3L6.28 3.96a.57.57 0 0 1 0-.8.57.57 0 0 1 .8 0l4.89 4.89c.38.38.6.9.6 1.45 0 .55-.21 1.07-.6 1.45l-4.89 4.89a.57.57 0 0 1-.4.16Z' fill='%23333333'/%3E%3C/svg%3E") no-repeat center; }
.spf-breadcrumbs a { color: var(--ink); text-decoration: underline; }
.spf-breadcrumbs a:hover { color: var(--orange); }
@media (max-width: 767px) { .spf-breadcrumbs { padding: var(--space-20) 0 var(--space-24); } }

/* ---------- Pagination ---------- */
.spf-pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); margin-top: var(--space-60); padding-top: var(--space-32); border-top: 1px solid var(--divider); }
.spf-pagination__pages { display: flex; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
.spf-pagination__page {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 var(--space-12);
  border-radius: var(--radius-30); background: var(--surface-card); color: var(--ink); text-decoration: none;
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.spf-pagination__page:hover { background: var(--surface-hover); }
.spf-pagination__page[aria-current="page"] { background: var(--ink); color: var(--white); }

/* ---------- Footer ---------- */
.spf-footer { padding: var(--space-60) var(--space-80); background: var(--black); color: var(--white); }
.spf-footer__inner { display: flex; justify-content: space-between; gap: var(--space-60); max-width: var(--container); margin-inline: auto; }
.spf-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.spf-footer__brand img { width: 180px; height: 40px; }
.spf-footer__menu { display: flex; flex-direction: column; gap: var(--space-20); list-style: none; margin: 0; padding: 0; }
.spf-footer__menu a { font-size: 15px; font-weight: 500; line-height: 22.4px; color: var(--white); text-decoration: none; }
.spf-footer__menu a:hover { color: var(--orange); }
.spf-footer__legal { display: flex; flex-direction: column; gap: var(--space-12); max-width: 800px; }
.spf-footer__legal p { margin: 0; font-size: 14px; font-weight: 400; line-height: 21px; }
.spf-footer__legal a { color: var(--white); text-decoration: underline; }
@media (max-width: 767px) {
  .spf-footer { padding: var(--space-24) var(--space-12); }
  .spf-footer__inner { flex-direction: column; gap: var(--space-32); }
}

/* ---------- Hero ---------- */
.spf-hero { display: flex; flex-direction: column; align-items: center; gap: 75px; padding: 50px var(--space-80); border-bottom: 1px solid var(--divider); }
.spf-hero__content { display: flex; flex-direction: column; align-items: center; gap: var(--space-20); max-width: 768px; text-align: center; }
.spf-hero__badge { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: var(--radius-12); background: var(--ink); overflow: hidden; }
.spf-hero__badge img { width: 80px; height: auto; }
.spf-hero__title { margin: 0; font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 70.4px; letter-spacing: -1.28px; text-wrap: balance; }
.spf-hero__lead { margin: 0; font-size: 16px; font-weight: 500; line-height: 22.4px; }
.spf-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-12); }
@media (max-width: 767px) {
  .spf-hero { gap: var(--space-40); padding: var(--space-24) var(--space-16); }
  .spf-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -0.8px; }
}

/* ---------- Section header ---------- */
.spf-section-header { display: flex; flex-direction: column; align-items: center; gap: var(--space-16); margin-bottom: var(--space-32); text-align: center; }
.spf-section-header__title { margin: 0; font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 57.6px; letter-spacing: -0.96px; text-wrap: balance; }
.spf-section-header__intro { margin: 0; max-width: var(--intro-max); font-size: 18px; font-weight: 500; line-height: 27px; }
@media (max-width: 767px) {
  .spf-section-header__title { font-size: 30px; line-height: 36px; letter-spacing: -0.6px; }
  .spf-section-header__intro { font-size: 16px; line-height: 24px; }
}

/* ---------- Trust ticker ---------- */
.spf-ticker { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.spf-ticker__track { display: flex; gap: var(--space-40); width: max-content; padding: var(--space-16) 0; animation: spf-ticker 40s linear infinite; list-style: none; margin: 0; }
.spf-ticker__item { display: flex; align-items: center; gap: var(--space-8); font-size: 18px; font-weight: 500; line-height: 22.4px; white-space: nowrap; }
.spf-ticker__item svg { width: 10px; height: 8px; flex-shrink: 0; }
.spf-ticker:hover .spf-ticker__track { animation-play-state: paused; }
@keyframes spf-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .spf-ticker__track { animation: none; } }

/* ---------- FAQ accordion ---------- */
.spf-faq { display: flex; flex-direction: column; gap: var(--space-10); width: 100%; max-width: var(--faq-max); margin-inline: auto; }
.spf-faq__item { border-radius: var(--radius-14); background: var(--surface-card); }
.spf-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-10);
  padding: var(--space-24); cursor: pointer; list-style: none;
  font-size: 20px; font-weight: 500; line-height: 22.4px;
}
.spf-faq__q::-webkit-details-marker { display: none; }
.spf-faq__q svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s ease; }
.spf-faq__item[open] .spf-faq__q svg { transform: rotate(45deg); }
.spf-faq__a { padding: 0 var(--space-24) var(--space-20); font-size: 16px; font-weight: 400; line-height: 22.4px; }
.spf-faq__a p { margin: 0; }
.spf-faq--lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-32); row-gap: var(--space-16); max-width: none; }
.spf-faq--lines .spf-faq__item { border-radius: 0; background: transparent; border-bottom: 1px solid var(--hairline); }
.spf-faq--lines .spf-faq__q { padding: 0 0 var(--space-16); font-size: 16px; font-weight: 400; }
.spf-faq--lines .spf-faq__a { padding: 0 0 var(--space-20); font-size: 15px; }
@media (max-width: 767px) {
  .spf-faq__q { padding: var(--space-12) 14px; font-size: 16px; }
  .spf-faq__a { padding: 0 14px var(--space-16); }
  .spf-faq--lines { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Firm facts accordion (firm profile sidebar) ---------- */
.spf-facts-group { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); }
.spf-facts-group + .spf-facts-group { border-top: 0; }
.spf-facts-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding: var(--space-20) 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; line-height: 21px; color: var(--ink);
}
.spf-facts-group__head::-webkit-details-marker { display: none; }
.spf-facts-group__head::after { content: "+"; font-size: 16px; font-weight: 400; color: var(--ink-2); }
.spf-facts-group[open] .spf-facts-group__head::after { content: "\2212"; }
.spf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-20) var(--space-16); padding-bottom: var(--space-20); margin: 0; }
.spf-facts > div { display: flex; flex-direction: column; gap: var(--space-10); }
.spf-facts dt { font-size: 16px; font-weight: 600; line-height: 20px; color: var(--ink); }
.spf-facts dd { margin: 0; font-size: 16px; font-weight: 400; line-height: 22.4px; color: var(--ink-2); }

/* ---------- Author block ---------- */
.spf-author { display: flex; align-items: center; gap: 14px; }
.spf-author__avatar { width: 52px; height: 52px; border-radius: var(--radius-round); object-fit: cover; flex-shrink: 0; background: var(--surface-card); }
.spf-author__info { display: flex; flex-direction: column; gap: var(--space-4); }
.spf-author__name { margin: 0; font-size: 18px; font-weight: 600; line-height: 21.96px; }
.spf-author__meta { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 400; line-height: 22.4px; }
.spf-author__meta span[aria-hidden] { width: 1px; height: 16px; background: var(--divider-strong); }

/* ---------- Article body ---------- */
.spf-prose { display: flex; flex-direction: column; gap: var(--space-20); max-width: var(--article-column); font-size: 16px; font-weight: 400; line-height: 22.4px; letter-spacing: -0.02px; color: var(--ink); }
.spf-prose > * { margin: 0; }
.spf-prose h1 { font-size: 44px; font-weight: 600; line-height: 48.4px; letter-spacing: -0.88px; text-wrap: balance; }
.spf-prose h2 { font-size: 48px; font-weight: 600; line-height: 46.08px; letter-spacing: -0.96px; text-wrap: balance; }
.spf-prose h3 { font-size: 30px; font-weight: 600; line-height: 33.75px; }
.spf-prose .spf-standfirst { font-size: 24px; font-weight: 400; line-height: 33.6px; color: var(--ink-4); }
.spf-prose strong { font-size: 18px; font-weight: 600; }
.spf-prose a { color: var(--ink); text-decoration: underline; }
.spf-prose a:hover { color: var(--orange); }
.spf-prose ul, .spf-prose ol { padding-left: var(--space-24); display: flex; flex-direction: column; gap: var(--space-4); }
.spf-prose ul { list-style: disc; }
.spf-prose ol { list-style: decimal; }
.spf-prose img { width: 100%; border-radius: var(--radius-8); }
.spf-prose table { width: 100%; border-collapse: collapse; }
.spf-prose th, .spf-prose td { padding: var(--space-8); border: 1px solid var(--ink); text-align: left; vertical-align: top; }
.spf-prose th { font-weight: 600; }
.spf-prose td { line-height: 20.8px; border-bottom-color: var(--line); }
@media (max-width: 767px) {
  .spf-prose { font-size: 15px; }
  .spf-prose h1 { font-size: 30px; line-height: 33px; letter-spacing: 0; }
  .spf-prose h2 { font-size: 30px; line-height: 28.8px; letter-spacing: -0.6px; }
  .spf-prose h3 { font-size: 26px; line-height: 35.88px; }
}

/* ---------- Links widget and promo tile (article sidebar) ---------- */
.spf-links-widget { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16); padding: 22px var(--space-24); border-radius: var(--radius-10); background: var(--surface-widget); }
.spf-links-widget ul { display: flex; flex-direction: column; gap: var(--space-12); list-style: none; margin: 0; padding: 0; }
.spf-links-widget a { font-size: 16px; font-weight: 400; line-height: 22.4px; color: var(--ink); text-decoration: underline; }
.spf-links-widget a:hover { color: var(--orange); }
.spf-promo {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-16);
  padding: var(--space-28); border-radius: var(--radius-8); background: var(--ink); color: var(--white);
}
.spf-promo__title { max-width: 77%; margin: 0 0 17px; font-size: 30px; font-weight: 600; line-height: 33px; }
.spf-promo__link { display: inline-flex; align-items: center; gap: var(--space-12); font-size: 14px; font-weight: 700; line-height: 26.6px; color: var(--white); text-decoration: none; }
.spf-promo__link::after { content: ""; position: absolute; inset: 0; }
.spf-promo__link svg { width: 37px; height: 15px; }
.spf-promo:hover .spf-promo__link { color: var(--orange); }

/* ---------- Newsletter ---------- */
.spf-newsletter { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: var(--space-60) var(--space-80) var(--space-120); border-top: 1px solid var(--divider-strong); }
.spf-newsletter__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-16); max-width: 400px; text-align: center; }
.spf-newsletter__title { margin: 0; font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 57.6px; letter-spacing: -0.96px; }
.spf-newsletter__text { margin: 0; font-size: 15.2px; font-weight: 400; line-height: 24.35px; }
.spf-newsletter__form { display: flex; flex-direction: column; gap: var(--space-10); width: 303px; max-width: 100%; }
.spf-newsletter__form input {
  width: 100%; height: 47px; padding: 0 var(--space-20); border: 0; border-radius: var(--radius-40);
  background: var(--surface-card); color: var(--black); font-family: var(--font-sans); font-size: 16px; font-weight: 400;
}
.spf-newsletter__form .spf-btn { width: 100%; padding: var(--space-12) var(--space-24); border-radius: var(--radius-32); line-height: 26.56px; }
.spf-newsletter__wordmark {
  position: absolute; left: 50%; bottom: -0.32em; transform: translateX(-50%); z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: 200px; line-height: 1; letter-spacing: -4px; color: var(--surface-card); white-space: nowrap;
}
@media (max-width: 767px) {
  .spf-newsletter { padding: var(--space-24) var(--space-12) var(--space-32); }
  .spf-newsletter__title { font-size: 30px; line-height: 36px; letter-spacing: -0.6px; }
  .spf-newsletter__wordmark { display: none; }
}

/* ---------- Form fields ---------- */
.spf-field { display: flex; flex-direction: column; gap: 5px; }
.spf-field__label { font-size: 20px; font-weight: 400; line-height: 22.4px; color: var(--ink); }
.spf-field__label abbr { text-decoration: none; }
.spf-input, .spf-select, .spf-textarea {
  width: 100%; height: 50px; padding: 0 var(--space-20); border: 0; border-radius: var(--radius-8);
  background: var(--surface-soft); color: var(--ink); font-family: var(--font-sans); font-size: 16px; font-weight: 400;
}
.spf-input::placeholder, .spf-textarea::placeholder { color: var(--grey-400); }
.spf-select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--surface-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M10.99 1.01 5.99 6.01.99 1.01' stroke='%23333333' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center; }
.spf-textarea { height: 100px; padding: 15px var(--space-20); resize: vertical; }
.spf-check { position: relative; display: inline-flex; align-items: center; gap: var(--space-16); font-size: 20px; font-weight: 400; line-height: 22.4px; cursor: pointer; }
.spf-check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-6); background: var(--white); cursor: pointer; }
.spf-check input:checked { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M.48 5.25s.95 0 2.22 2.23c0 0 3.54-5.84 6.69-7' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.spf-check a { color: var(--ink); text-decoration: underline; }
.spf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-20) var(--space-16); }
.spf-form-grid .spf-field--full { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .spf-form-grid { grid-template-columns: minmax(0, 1fr); }
  .spf-field__label, .spf-check { font-size: 16px; }
}
