/*
 * Firm profile (single-propfirm.php), drawn with the Select Prop Firms UI kit.
 * Page parts are prefixed pf-; kit components keep their spf- classes.
 */

.spf-profile { padding-bottom: var(--space-40); }
.spf-profile h1, .spf-profile h2, .spf-profile h3, .spf-profile h4 { margin: 0; text-wrap: balance; }
.spf-profile p { margin: 0; }
.pf-wrap { max-width: var(--container); margin: 0 auto; }
@media (max-width: 1439px) { .pf-wrap { padding: 0 40px; } }
@media (max-width: 767px) { .pf-wrap { padding: 0 16px; } }

.pf-h2 { font-family: var(--font-display); font-size: 48px; line-height: 57.6px; font-weight: 700; letter-spacing: -0.96px; color: var(--ink); }
.pf-h3 { font-family: var(--font-display); font-size: 28px; line-height: 33.6px; font-weight: 700; letter-spacing: -0.56px; color: var(--ink); }
.pf-intro { max-width: 620px; font-size: 18px; line-height: 27px; font-weight: 500; color: var(--ink-3); }
.pf-caps { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-3); }
.pf-fine { font-size: 13px; line-height: 19px; font-weight: 500; color: var(--ink-3); }
.pf-section { display: flex; flex-direction: column; gap: 28px; padding-bottom: 72px; scroll-margin-top: 150px; }
.pf-section__head { display: flex; flex-direction: column; gap: 12px; }
.pf-section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Summary */
.pf-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; padding: 8px 0 40px; }
.pf-hero__main { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; min-width: 0; }
.pf-id { display: flex; align-items: center; gap: 24px; }
.pf-logo { width: 96px; height: 96px; border-radius: var(--radius-20); object-fit: cover; flex-shrink: 0; background: var(--surface-card); }
.pf-id__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-id__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-id__badges > span:last-child { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pf-title { font-family: var(--font-display); font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -1.12px; color: var(--ink); }
.pf-disclosure { font-size: 14px; line-height: 20px; color: var(--ink-toggle); }
.pf-summary { max-width: 640px; font-size: 20px; line-height: 29px; font-weight: 500; color: var(--ink-2); }
.pf-meta { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink-3); }
.pf-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.pf-meta__item img { width: 20px; height: 13px; border-radius: 2px; object-fit: cover; }
.pf-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--track); }
.pf-group { display: flex; flex-direction: column; gap: 10px; }
.pf-platforms { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pf-platform { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: var(--radius-12); background: var(--surface-card); font-size: 14px; line-height: 20px; font-weight: 700; }
.pf-platform img { width: 22px; height: 22px; object-fit: contain; }
.pf-platform--text { padding-left: 12px; }

.pf-offer { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-20); background: var(--surface-card); }
.pf-offer__headline { display: flex; flex-direction: column; gap: 4px; }
.pf-offer__headline strong { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.8px; }
.pf-offer__headline span { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink-3); }
.pf-offer__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pf-offer__row > div { display: flex; flex-direction: column; gap: 2px; }
.pf-offer__row > div span { font-size: 14px; color: var(--ink-3); }
.pf-offer__row > div b { font-size: 16px; }
.pf-offer__price { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.pf-offer__price s { font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.pf-offer__price strong { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; }
.pf-offer__actions { display: flex; flex-direction: column; gap: 10px; }

/* Facts */
.pf-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding-bottom: 40px; margin: 0; }
.pf-fact { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--radius-20); background: var(--surface-card); }
.pf-fact dd { margin: 0; order: -1; font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.64px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-fact dt { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-3); }

/* In page links */
.pf-nav { display: flex; gap: 4px; margin-bottom: 56px; border-bottom: 2px solid var(--rule-soft); overflow-x: auto; scrollbar-width: none; }
.pf-nav a { flex-shrink: 0; padding: 10px 20px; margin-bottom: -2px; border-bottom: 3px solid transparent; font-size: 18px; line-height: 22.4px; font-weight: 400; color: var(--grey-400); text-decoration: none; }
.pf-nav a:hover, .pf-nav a[aria-current="location"] { color: var(--orange); }
.pf-nav a[aria-current="location"] { font-weight: 600; border-bottom-color: var(--orange); }

/* Programs */
.pf-types { display: flex; flex-direction: column; gap: 28px; }
.pf-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.pf-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; border-radius: 11px; background: var(--white); color: var(--ink); font-size: 13px; line-height: 1; font-weight: 700; }
.pf-panel { display: flex; flex-direction: column; gap: 28px; }
.pf-panel[hidden] { display: none; }
.pf-sizes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-sizes__list { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-size { padding: 8px 14px; border: 0; border-radius: var(--radius-80); background: var(--surface-card); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease; }
.pf-size:hover { background: var(--surface-hover); }
.pf-size[aria-pressed="true"] { background: var(--ink); color: var(--white); font-weight: 700; }
.pf-size[aria-pressed="true"]:hover { background: var(--orange); }

.pf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; list-style: none; margin: 0; padding: 0; }
.pf-card { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 24px; border-radius: var(--radius-20); background: var(--surface-card); }
.pf-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pf-card__name { font-family: var(--font-display); font-size: 24px; line-height: 27px; font-weight: 700; letter-spacing: -0.48px; }
.pf-card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 44px; }
.pf-card__now { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.pf-card__was { font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.pf-card__rules { display: flex; flex-direction: column; margin: 0; border-top: 1px solid var(--hairline); }
.pf-card__rules > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pf-card__rules dt { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-3); }
.pf-card__rules dd { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.pf-card__none { padding: 18px 0; font-size: 15px; line-height: 22px; color: var(--ink-3); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pf-card .spf-btn { margin-top: auto; }
.pf-card[data-offered="false"] .pf-card__price,
.pf-card[data-offered="false"] .pf-card__rules,
.pf-card[data-offered="false"] .pf-card__trade { display: none; }
.pf-card[data-offered="true"] .pf-card__none,
.pf-card[data-offered="true"] .pf-card__jump { display: none; }
.pf-card__was:empty, .pf-card__off:empty { display: none; }

.pf-grid { display: flex; flex-direction: column; gap: 16px; }
.pf-grid__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pf-grid__head span { font-size: 14px; color: var(--ink-3); }
.pf-matrix-wrap { overflow-x: auto; border: 1px solid var(--rule-soft); border-radius: var(--radius-20); }
.pf-matrix { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.pf-matrix thead th:first-child { width: 220px; }
.pf-matrix th, .pf-matrix td { padding: 12px 8px; text-align: center; border-top: 1px solid var(--rule-soft); }
.pf-matrix thead th { border-top: 0; background: var(--ink); color: var(--white); font-size: 14px; line-height: 20px; font-weight: 600; }
.pf-matrix thead th.is-sel { background: #1f1f1f; box-shadow: inset 0 -3px 0 var(--orange); }
.pf-matrix th[scope="row"], .pf-matrix thead th:first-child { text-align: left; padding-left: 20px; }
.pf-matrix th[scope="row"] { background: var(--surface-soft); }
.pf-matrix th[scope="row"] b { display: block; font-size: 16px; line-height: 20px; }
.pf-matrix th[scope="row"] span { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-3); }
.pf-matrix td b { display: block; font-size: 17px; line-height: 22px; }
.pf-matrix td s { font-size: 13px; line-height: 16px; color: var(--ink-muted); }
.pf-matrix td.is-sel { background: #fff4ec; }
.pf-matrix td.is-empty { font-size: 13px; color: var(--grey-400); }

/* Rules */
.pf-rules th:first-child, .pf-rules td:first-child { text-align: left; padding-left: 20px; }
.pf-rules td:first-child, .pf-rules td:last-child { font-weight: 700; }
.pf-na { font-weight: 500; color: var(--ink-3); }
.pf-disclosure-block { border-radius: var(--radius-20); background: var(--surface-soft); }
.pf-disclosure-block > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 18px; line-height: 22px; font-weight: 600; }
.pf-disclosure-block > summary::-webkit-details-marker { display: none; }
.pf-disclosure-block > summary::after { content: "+"; font-weight: 400; }
.pf-disclosure-block[open] > summary::after { content: "\2212"; }
.pf-disclosure-block > div { padding: 0 24px 24px; }

/* Text from the firm's own fields */
.pf-prose { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 23px; font-weight: 400; color: var(--ink-2); }
.pf-prose h3, .pf-prose h4, .pf-prose h6 { font-family: var(--font-sans); font-size: 17px; line-height: 23px; font-weight: 700; color: var(--ink); }
.pf-prose ul, .pf-prose ol { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; }
.pf-prose ul { list-style: disc; }
.pf-prose ol { list-style: decimal; }
.pf-prose strong { font-weight: 700; color: var(--ink); }

/* Payouts, costs, details */
.pf-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; padding-bottom: 72px; }
.pf-duo--details { grid-template-columns: 420px minmax(0, 1fr); gap: 48px; }
.pf-box { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--radius-20); background: var(--surface-card); scroll-margin-top: 150px; }
.pf-costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pf-costs th { padding: 0 8px 10px 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--divider); }
.pf-costs td { padding: 13px 8px 13px 0; font-size: 16px; line-height: 20px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.pf-costs td:first-child { font-weight: 700; }
.pf-details { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0; }
.pf-details dt, .pf-details dd { padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 21px; }
.pf-details dt { font-weight: 500; color: var(--ink-3); }
.pf-details dd { margin: 0; font-weight: 700; color: var(--ink); }
.pf-faq { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 150px; }
.pf-faq .spf-faq { max-width: none; }
.pf-faq .spf-faq__a p + p { margin-top: 8px; }

/* Similar firms */
.pf-similar .spf-firm-card__name a { color: inherit; text-decoration: none; }
.pf-similar .spf-firm-card__name a:hover { color: var(--orange); }
.pf-similar .spf-firm-card__country img { display: inline-block; width: 20px; height: 13px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }

/* Phone trade bar */
.pf-bar { display: none; }

@media (max-width: 1279px) {
  .pf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pf-hero, .pf-duo, .pf-duo--details { grid-template-columns: minmax(0, 1fr); }
  .pf-hero { gap: 28px; }
}
@media (max-width: 767px) {
  .pf-h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.6px; }
  .pf-h3 { font-size: 22px; line-height: 27px; letter-spacing: -0.44px; }
  .pf-intro { font-size: 16px; line-height: 24px; }
  .pf-section { gap: 18px; padding-bottom: 44px; }
  .pf-hero { padding-bottom: 24px; }
  .pf-hero__main { gap: 16px; }
  .pf-id { gap: 14px; }
  .pf-logo { width: 64px; height: 64px; border-radius: var(--radius-14); }
  .pf-title { font-size: 36px; line-height: 38px; letter-spacing: -0.72px; }
  .pf-summary { font-size: 17px; line-height: 25px; }
  .pf-offer { padding: 20px; gap: 14px; border-radius: var(--radius-14); }
  .pf-offer__headline strong { font-size: 28px; line-height: 32px; }
  .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 24px; }
  .pf-fact { padding: 14px 16px; border-radius: var(--radius-14); }
  .pf-fact dd { font-size: 24px; line-height: 28px; }
  .pf-fact dt { font-size: 13px; line-height: 18px; }
  .pf-nav { margin-bottom: 28px; }
  .pf-nav a { padding: 10px 12px; font-size: 16px; }
  .pf-controls .spf-pill-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pf-controls .spf-pill-tab { flex-shrink: 0; font-size: 16px; padding: 9px 14px; }
  .pf-sizes > span { display: none; }
  .pf-sizes__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pf-size { flex-shrink: 0; }
  .pf-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .pf-cards > li { flex-shrink: 0; width: 300px; scroll-snap-align: start; }
  .pf-card { padding: 18px; gap: 14px; border-radius: var(--radius-14); }
  .pf-card__name { font-size: 22px; line-height: 26px; }
  .pf-card__now { font-size: 34px; line-height: 38px; }
  .pf-box { padding: 20px; border-radius: var(--radius-14); gap: 14px; }
  .pf-duo { gap: 16px; padding-bottom: 44px; }
  .pf-details { grid-template-columns: 120px minmax(0, 1fr); }
  .pf-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--divider); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
  }
  .pf-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform .25s ease, visibility 0s linear 0s; }
  .pf-bar__firm { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .pf-bar__firm img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
  .pf-bar__firm span { display: block; font-size: 13px; line-height: 16px; color: var(--ink-3); }
  .pf-bar__firm strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 700; }
  .pf-bar .spf-btn { padding: 14px 28px; }
}
@media (prefers-reduced-motion: reduce) { .pf-bar { transition: none; } }
