/* The landing's light language for design-system pages (31.10.2026). A page opts in with the class ds-landing next
   to tsb-design-system; load this file after tokens.css. Only the primitives change (dark surfaces to white and soft
   surfaces, light text to ink, mint and teal to indigo #443ab8, gains/losses to the app's colours, Inter, nothing
   heavier than 600), so every semantic token and component follows. Buttons become pills. */
/* Nested design-system roots (pages put the class on <main> too) re-declare the tokens, so they opt in as well. */
.tsb-design-system.ds-landing,
.ds-landing .tsb-design-system {
  --primitive-color-ink-1000: #ffffff;
  --primitive-color-ink-950: #ffffff;
  --primitive-color-ink-900: #ffffff;
  --primitive-color-ink-850: #fbfbfd;
  --primitive-color-ink-800: #fbfbfd;
  --primitive-color-ink-750: #fbfbfd;
  --primitive-color-ink-700: #f7f7fa;
  --primitive-color-text-public: #121322;
  --primitive-color-text-index: #121322;
  --primitive-color-text-app: #121322;
  --primitive-color-text-muted: #6b6b75;
  --primitive-color-text-app-muted: #6b6b75;
  --primitive-color-text-dim: #8a8a94;
  --primitive-color-mint-500: #443ab8;
  --primitive-color-mint-300: #3a31a0;
  --primitive-color-teal-500: #443ab8;
  --primitive-color-teal-400: #443ab8;
  --primitive-color-teal-200: #3a31a0;
  --primitive-color-teal-100: #443ab8;
  --primitive-color-mint-active: #322a8c;
  --primitive-color-on-primary: #ffffff;
  --primitive-color-green-500: #2e8550;
  --primitive-color-green-300: #2e8550;
  --primitive-color-red-500: #c4342d;
  --primitive-color-red-300: #c4342d;
  --primitive-color-amber-500: #a16207;
  --primitive-color-amber-300: #a16207;
  --primitive-color-blue-300: #2563eb;
  --primitive-color-rank-gold: #a16207;
  --primitive-color-rank-silver: #6b6b75;
  --primitive-color-rank-gold-surface: rgba(161, 98, 7, 0.055);
  --primitive-color-media-base: #ffffff;
  --primitive-color-media-card: #ffffff;
  --primitive-color-media-raised: #fbfbfd;
  --primitive-color-line-soft: rgba(18, 19, 34, 0.065);
  --primitive-color-line: rgba(18, 19, 34, 0.105);
  --primitive-color-line-strong: rgba(18, 19, 34, 0.17);
  --primitive-color-positive-bg: rgba(46, 133, 80, 0.1);
  --primitive-color-negative-bg: rgba(196, 52, 45, 0.12);
  --primitive-color-warning-bg: rgba(161, 98, 7, 0.12);
  --primitive-color-info-bg: rgba(37, 99, 235, 0.1);
  --primitive-app-action-bg: linear-gradient(180deg,rgba(68, 58, 184, 0.16),rgba(68, 58, 184, 0.08));
  --primitive-app-action-hover: linear-gradient(180deg,rgba(68, 58, 184, 0.24),rgba(68, 58, 184, 0.13));
  --primitive-app-action-active: rgba(68, 58, 184, 0.24);
  --primitive-app-action-border: rgba(68, 58, 184, 0.42);
  --primitive-color-accent-bg: rgba(68, 58, 184, 0.08);
  --primitive-color-control-hover: rgba(18, 19, 34, 0.04);
  --primitive-font-sans: 'TSB Inter', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --primitive-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --primitive-font-legacy-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --primitive-weight-editorial: 500;
  --primitive-weight-strong: 600;
  --primitive-weight-section: 500;
  --primitive-weight-display: 600;
  --primitive-weight-index: 600;
  --primitive-shadow-float: 0 8px 32px rgba(18, 19, 34, .12);
  --primitive-shadow-cta: none;
  --button-radius: 999px;
  --button-hero-radius: 999px;
  --native-color-scheme: light;
}

/* The public shell's own tokens (public-shell.css) on the same pages. */
body.public-ecosystem-page.ds-landing {
  --lz-bg: #ffffff; --lz-panel: #ffffff; --lz-panel-soft: #fbfbfd; --lz-panel-muted: #f6f7fb;
  --lz-line: #e6e6ec; --lz-line-soft: #f0f0f4; --lz-line-strong: #d6d6de;
  --lz-text: #121322; --lz-muted: #6b6b75; --lz-dim: #8a8a94; --lz-faint: #b4b4bd;
  --lz-accent: #443ab8; --lz-accent-strong: #3a31a0; --lz-accent-rgb: 68, 58, 184; --lz-accent-strong-rgb: 58, 49, 160;
  background: #ffffff;
  color: #121322;
  color-scheme: light;
}

/* TradingView's mark is inverted to white for the dark tiles; on the light tiles it keeps its own black. */
.ds-landing .ds-platform-link[data-platform="tradingview"] img,
body.ds-landing .pf-directory .pf-hub-platform-logo.tsb-source-mark--tradingview > .tsb-source-logo { filter: none; }

/* Firm logos take the identity system's own light-theme ink (prop-firm-identity.css, html.light): white marks go
   dark, dark marks stop inverting. */
body.ds-landing .tsb-prop-logo.tsb-prop-logo[data-logo-theme-ink="invert-dark"] > img { filter: none; }
body.ds-landing .tsb-prop-logo.tsb-prop-logo[data-logo-theme-ink="darken-light"] > img { filter: brightness(0) saturate(100%); }
/* Those inks assume the light theme's tiles: neutral and adaptive surfaces follow the app's light control surface
   (html.light gives them --app-surface-control), otherwise dark marks land on dark tiles (Alpha Futures, The5%ers). */
body.ds-landing .tsb-prop-logo.tsb-prop-logo:is([data-logo-surface="neutral"], [data-logo-surface="adaptive"]) {
  --tsb-prop-logo-surface: #ffffff;
  --tsb-prop-logo-border: #e6e6ec;
}

/* Prop research pages (directory, firm profile, comparison and the other prop templates) in the landing's language
   (2.11.2026): the page starts under the nav without a blank band, figures are Inter with tabular figures instead of
   a monospace, and labels are calm sentence-case captions instead of spaced capitals. */
body.public-prop-segment.ds-landing,
body.public-prop-segment.ds-landing .tsb-design-system {
  --primitive-font-mono: var(--primitive-font-sans);
  --primitive-font-legacy-mono: var(--primitive-font-sans);
  --lz-mono: var(--primitive-font-sans);
}
body.public-prop-segment.ds-landing main.trust-page { padding-top: 40px; font-variant-numeric: tabular-nums; }
body.public-prop-segment.ds-landing main.trust-page :is(
  .trust-eyebrow, .profile-page-nav-label, .profile-action-kicker, .comparison-lens-eyebrow, .comparison-section-eyebrow,
  .pf-country-panel-kicker, .pf-hub-podium-label, .pf-hub-decision-cost > small, .profile-audit-badge,
  .profile-program-card-head div > span, .profile-program-metrics dt, .profile-program-rules dt, .profile-challenge-meta dt,
  .profile-compare-pair > span, .profile-compare-more > span, .profile-availability-summary > span,
  .profile-availability-priority > span, .profile-country-strip-head > span, .profile-reputation-card > span,
  .profile-verdict > span, .profile-guide-row > span, header div > span, th > strong,
  .pf-hub-fit-popover-summary > small, .pf-hub-fit-popover-heading > span, .pf-hub-fit-model-signature > b
) {
  font-family: var(--primitive-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
body.public-prop-segment.ds-landing main.trust-page :is(.trust-eyebrow, .comparison-lens-eyebrow, .comparison-section-eyebrow) {
  font-size: 14px;
  color: #6b6b75;
}
@media (max-width: 760px) {
  body.public-prop-segment.ds-landing main.trust-page { padding-top: 24px; }
}

/* The public shell's buttons (public-shell.css .app-action-btn) on light pages: the landing's pills, white text on
   indigo, a white secondary with a control border (the shell's defaults are tuned for the dark canvas). */
body.public-ecosystem-page.ds-landing .app-action-btn {
  --app-action-bg: #ffffff;
  --app-action-bg-hover: #f7f7fa;
  --app-action-border: #d6d6de;
  --app-action-border-hover: #b9b9c4;
  --app-action-color: #121322;
  --app-action-color-hover: #121322;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
}
body.public-ecosystem-page.ds-landing .app-action-btn-primary,
body.public-ecosystem-page.ds-landing .app-action-btn-primary:hover {
  border-color: #443ab8;
  color: #ffffff;
  font-weight: 500;
  box-shadow: none;
}
body.public-ecosystem-page.ds-landing .app-action-btn-primary:hover { border-color: #3a31a0; background: #3a31a0; }
