/* The approved Daily Bias palette applied to the site's existing layouts. */
@import url("daily-bias-theme.css");

@media screen {
  body:has(.universal-header), body:has(.survey-header) {
    color-scheme: dark;
    background-color: var(--flb-ui-bg);
    color: var(--flb-ui-white);
    font-family: var(--flb-ui-font);
    --sans: var(--flb-ui-font);
    --display: var(--flb-ui-font);
    --font-body: var(--flb-ui-font);
    --font-display: var(--flb-ui-font);
    --brass: var(--flb-ui-cyan);
    --brass-light: var(--flb-ui-tab-active-text);
  }

  /* Existing marketing templates use the same variable names for light paper
     surfaces and for light button fills. Give controls their own treatment below. */
  main:is(#main, #product-content, #editorial-content, #main-content):not(.daily-bias):not(:has(> .rr)) {
    --paper: var(--flb-ui-bg);
    --ivory: var(--flb-ui-panel);
    --warm: var(--flb-ui-surface-deep);
    --navy: var(--flb-ui-panel);
    --navy-2: var(--flb-ui-surface-raised);
    --bg-black: var(--flb-ui-bg);
    --bg-card: var(--flb-ui-panel);
    --bg-card-hover: var(--flb-ui-surface-raised);
    --surface: var(--flb-ui-surface-raised);
    --text-primary: var(--flb-ui-white);
    --text-secondary: var(--flb-ui-muted);
    --text-muted: var(--flb-ui-muted);
    --slate: var(--flb-ui-muted);
    --steel: var(--flb-ui-muted);
    --brass-dark: var(--flb-ui-cyan);
    --line: var(--flb-ui-line);
    --line-dark: var(--flb-ui-line);
    --cyan: var(--flb-ui-cyan);
    --cyan-dim: var(--flb-ui-cyan);
    --purple: var(--flb-ui-tab-active-text);
    --gradient-brand: linear-gradient(120deg, var(--flb-ui-cyan), var(--flb-ui-tab-active-text));
    background-color: var(--flb-ui-bg);
    color: var(--flb-ui-white);
    font-family: var(--flb-ui-font);

    & :is(h1,h2,h3,h4,h5,h6) {
      color: var(--flb-ui-white);
      font-family: var(--flb-ui-font) !important;
      font-weight: 750;
      text-wrap: pretty;
    }
    & :is(h1,h2) em {
      background: none;
      color: var(--flb-ui-cyan) !important;
      -webkit-text-fill-color: var(--flb-ui-cyan);
      font-style: normal;
      font-weight: inherit;
    }
    & :is(p,li,td,dd,figcaption,small) { color: var(--flb-ui-muted); }
    & :is(strong,b,dt,th,label,summary) { color: var(--flb-ui-white); }
    & :is(p,li,td,dd,figcaption,small) a { color: var(--flb-ui-cyan); text-underline-offset: .18em; }
    & :is(.eyebrow,.kicker,.slabel,.section-label,.crumbs a,.article-eyebrow,.article-kicker,.article-aside__label,
        .guide-card__meta a,.signal-card > span,.guide-card__link,.guide-card__topic,.demo-step__number,.insights-index__heading a,.standards-page__identity a,
        .soro-feed__heading a,.soro-blog-card-date,.soro-blog-article-date,.soro-blog-article-date :is(span,time),
        .takeaway__label,.insight-share__eyebrow,.tool-card__link,.guide-hero ol li > span,.comparison-page .comparison-intro article > span,.vsm-page .card > span,
        .price-card__label,.trial-price__label,.chapter-num,
        .vsmpro-page .card > span,.vsmpro-page .text-link,.section-eyebrow,.legal-page__eyebrow,.intro-eyebrow,.timeline-label,.comparison-label,.stat-num,.article-breadcrumb a) {
      color: var(--flb-ui-cyan);
    }
    & :is(.vsm-page .sec,.slippage-premium .section,.licensing-plans,.legal-page,.guide-page,.soro-page,.demo-page,.vsmpro-page,.insight-page,.slippage-premium,
        .assessment-wrap,.status-page,.library-catalog,.licensing-assurance,.licensing-faq,.stats-bar,.intro,
        .levels-detail,.cost-section,.ecosystem,.deep-dive,.tax-section,.partner-section,.overview,.hiw,
        .setups,.settings,.signals,.mistakes,.faq,.color-modes,.sec--soft,.guide-watch,.guide-framework,
        .guide-paths,.demo-section,.comparison-intro,.comparison-main,.comparison-pricing,.comparison-faq,
        .comparison-sources,.article-section,.insights-index__catalog,.article-reading,.reading-section) {
      background: var(--flb-ui-bg) !important;
      color: var(--flb-ui-white);
    }
    & :is(.hero,.library-hero,.licensing-hero,.guide-hero,.demo-hero,.article-hero,.comparison-hero,
        .insights-index__hero,.standards-page__hero,.soro-hero,.status-card) {
      background-color: var(--flb-ui-panel);
    }
    & :is(.mode-card,.signal-card,.grade,.status-row,.vsm-page .step,.vsm-page .card,.vsm-page .access > div,.price-card,.library-controls,.license-brief,.answer-option,.result-card,.result-tier-card,.demo-schedule__facts li,
        .vsmpro-page .access > div,.vsmpro-page .management,.checkout-return-notice,.status-card,.legal-page__notice,.legal-callout,.legal-content .cftc-block,.guide-concept,
        .guide-path,.tool-card,.library-core,.library-node,.plan-card,.proof-card,.timeline-card,.timeline,
        .reason-card,.guide-card,.fit-card,.level-card,.level-num-box,.side-block,.matcher-section,
        .partner-card,.partner-feature,.path-card,.pillar,.deep-point,.cost-item,.calculator,.tax-callout,
        .flow-step,.three-q,.callout,.feature-card,.line-card,.placement-img,.setup-card,.settings-group,
        .color-card,.alert-group,.mistake,.workflow-list,.dont-list,.faq-item,.vsmpro-page .card,.phase-strip,
        .vsmpro-page .pip,.vsmpro-page .marker,.stats-panel,.demo-step,.demo-booking-shell,.demo-booking-bar,
        .demo-booking-fallback,.soro-editorial-note,.article-aside,.takeaway,.article-callout,.workflow-step,
        .settings-table-wrap,.source-box,.insight-share,.comparison-table-region,.comparison-disclosure,
        .pricing-caution,.standards-page__identity,.intro-bullets,.signup-card,.chapter,.for-who-item,
        .article-media__frame,.video-block,.hero-proof,.editorial-note,.related-reading__grid > a,
        .comparison-intro article,.soro-blog-card,.soro-blog-article,.plan-comparison,.plan-comparison__scroll) {
      background: var(--flb-ui-panel) !important;
      border-color: var(--flb-ui-line);
      color: var(--flb-ui-white);
    }
    & :is(.price-card--featured,.plan-card--featured,.level-card.featured,.guide-path--featured,.fit-card--recommended,
        .timeline-card--flb,.takeaway,.legal-callout,.article-callout,.comparison-verdict) {
      border-color: var(--flb-ui-market-border);
      background: var(--flb-ui-panel-gradient) !important;
    }
    & :is(.faq-item summary,.faq-q,.faq-question,.faq-toggle,.comparison-faq summary,.faq-list summary) {
      background: transparent;
      color: var(--flb-ui-white);
      font-family: inherit;
    }
    & :is(.faq-a,.faq-answer,.callout p,.feature-card p,.sdesc,.section-desc,.article-deck,.article-lead,
        .tool-card__desc,.legal-content li,.legal-content p,.comparison-lede,.source-list,
        .guide-video-shell__bar span,.related-reading__grid a span,.guide-card__meta span,.vsmpro-page .pip span,.benefit-list span,
        .vsm-page .access span,.grade span,.status-row span,.alert-desc,.chapter-blurb,.for-who-text,.signup-note,.intro-bullet,.stat-label,.vsmpro-page .management,
        .vsmpro-page .access span,.demo-link,.guide-card__body time,.article-breadcrumb span[aria-hidden],
        table caption,.soro-blog-back,.final-cta-trust span,.definition,.fs-d,.status-card p) { color: var(--flb-ui-muted); }
    & :is(.section-title,.stitle,.article-body strong,.legal-page h1,.vsmpro-page h1,.guide-card h3,
        .ov-quote,.deep-quote,.pull-quote,.callout-t,.alert-name,.chapter-title,.signup-headline,
        .answer-option,.matcher-button.outline,.trial-price__regular,.library-count,.vsmpro-page .access strong,.guide-card h3 a,
        .tool-card__title,.tool-card h3,.soro-blog-title,.chapter strong) { color: var(--flb-ui-white); }
    & :is(.workflow-step,.decision-grid,.comparison-page,.article-aside,.soro-blog-article,.related-reading) a {
      color: var(--flb-ui-cyan);
    }
    & .insight-page {
      --article-paper: var(--flb-ui-bg);
      --article-warm: var(--flb-ui-panel);
      --article-navy: var(--flb-ui-surface-deep);
      --article-brass: var(--flb-ui-cyan);
      --article-brass-light: var(--flb-ui-tab-active-text);
      --article-brass-dark: var(--flb-ui-cyan);
      --article-slate: var(--flb-ui-muted);
      --article-line: var(--flb-ui-line);
    }
    & :is(.featured-ribbon,.progress-fill,.answer-option.selected .answer-marker,.hero-video-play) {
      background: var(--flb-ui-cyan);
      color: var(--flb-ui-button-ink);
    }
    & :is(.price-card__top,.chapter,.chapter-title,.signup-headline,.guide-card__link,caption,.ov-quote,
        .deep-quote,.pull-quote,.matcher-button,.vsmpro-page .pip b,.settings-table th) {
      font-family: var(--flb-ui-font);
    }
    & .checkout-return-notice__mark { color: var(--flb-ui-green); border-color: currentColor; }
    & .checkout-return-notice.is-error .checkout-return-notice__mark { color: var(--flb-ui-red); }
    & .checkout-return-notice__action { color: var(--flb-ui-cyan); }
    & :is(.vsmpro-page .access a,.demo-booking-bar a) { color: var(--flb-ui-cyan); }
    & :is(.licensing-hero,.slippage-premium .hero,.guide-hero,.library-hero,.soro-hero,.article-hero,
        .demo-hero,.comparison-hero,.insights-index__hero,.standards-page__hero,.vsmpro-page .hero) {
      background: var(--flb-ui-hero-gradient), var(--flb-ui-bg);
    }
    & > .hero { background: var(--flb-ui-hero-gradient), var(--flb-ui-bg) !important; }
    & .answer-option.selected { background: var(--flb-ui-tab-active-bg) !important; border-color: var(--flb-ui-tab-active-border); }
    & .answer-option:hover { border-color: var(--flb-ui-cyan); }
    & .answer-marker { border-color: var(--flb-ui-button-outline); }
    & :is(.tool-card,.price-card,.mode-card,.grade,.reason-card,.library-controls,.guide-card,.level-card,
        .guide-concept,.feature-card,.settings-group,.soro-blog-card,.soro-blog-article,.settings-table-wrap,
        .article-aside,.comparison-table-region,.licensing-faq__items,.legal-page__notice,.signup-card) {
      border-radius: var(--flb-ui-radius-card);
      border-color: var(--flb-ui-line);
    }
    & .vsm-page .sdesc a { color: var(--flb-ui-cyan) !important; }
    & .vsm-page .step b { background: var(--flb-ui-tab-active-bg); color: var(--flb-ui-tab-active-text); }
    & :is(.article-body,.takeaway) code { background: var(--flb-ui-surface-raised); color: var(--flb-ui-tab-active-text); }
    & :is(.slippage-premium,.article-body,.vsmpro-page,.guide-card__body,.demo-page,.comparison-page)
        :is(p,strong,.stat-num,.math-banner-headline,.num,caption) { font-family: var(--flb-ui-font); }
    & table { color: var(--flb-ui-white); }
    & :is(table,th,td) { border-color: var(--flb-ui-line); }
    & table :is(th,td) { background-color: var(--flb-ui-panel); }
    & table thead th { background: var(--flb-ui-surface-raised); color: var(--flb-ui-white); }
    & table tbody th { color: var(--flb-ui-white); }
    & :is(.buy,.bull,.positive) :is(h3,strong), & :is(.bull,.positive) { color: var(--flb-ui-green); }
    & :is(.sell,.bear,.negative) :is(h3,strong), & :is(.bear,.negative) { color: var(--flb-ui-red); }

    & :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=submit]),textarea,select) {
      background-color: var(--flb-ui-tab-bg);
      color: var(--flb-ui-white);
      border-color: var(--flb-ui-button-outline);
      caret-color: var(--flb-ui-cyan);
      color-scheme: dark;
    }
    & ::placeholder { color: var(--flb-ui-muted); opacity: 1; }
    & :is(input[type=checkbox],input[type=radio],input[type=range]) { accent-color: var(--flb-ui-cyan); }
    & :is(.button--light,.button--dark,.btn-p,.btn-primary,.article-button:not(.article-button--ghost),
        .result-tier-cta,.demo-button:not(.demo-button--secondary),.insight-share__action--primary,.status-actions a:first-child,.plan-card--featured .button,
        button[type=submit]:not(.faq-q),input[type=submit]) {
      background: var(--flb-ui-cyan) !important;
      border-color: var(--flb-ui-cyan);
      color: var(--flb-ui-button-ink) !important;
      font-family: var(--flb-ui-font);
      border-radius: var(--flb-ui-radius-button);
    }
    & :is(.button--ghost,.button--outline-dark,.btn-s,.btn-secondary,.article-button--ghost,.insight-share__action,
        .demo-button--secondary,.library-filters button,.library-search,.library-reset,.status-actions a:not(:first-child)) {
      background: var(--flb-ui-panel);
      color: var(--flb-ui-white);
      border-color: var(--flb-ui-button-outline);
      border-radius: var(--flb-ui-radius-button);
    }
    & :is(.library-filters [aria-pressed=true],.library-filters button:hover,.q-option.selected,.qnlink.active) {
      background: var(--flb-ui-tab-active-bg);
      color: var(--flb-ui-tab-active-text);
      border-color: var(--flb-ui-tab-active-border);
    }
    & :is(.button--light,.button--dark,.btn-p,.btn-primary,.demo-button:not(.demo-button--secondary)):hover {
      background: var(--flb-ui-tab-active-text) !important;
    }
    & :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
      outline: 2px solid var(--flb-ui-cyan);
      outline-offset: 3px;
    }
  }

  /* The two standalone forms also share this stylesheet under their strict CSP. */
  body:has(.survey-header) {
    --bg: var(--flb-ui-bg); --card: var(--flb-ui-panel); --surface: var(--flb-ui-surface-raised);
    --text: var(--flb-ui-white); --secondary: var(--flb-ui-muted); --border: var(--flb-ui-line);
    --cyan: var(--flb-ui-cyan); --purple: var(--flb-ui-tab-active-text);
    --success: var(--flb-ui-green); --warning: #ffd294;
  }
  .survey-header, :is(#survey-app, #giveaway-app, .survey-header) :is(h1,h2,h3,button,input,select,textarea,.survey-brand) {
    font-family: var(--flb-ui-font);
  }
  :is(#survey-app, #giveaway-app) :is(input,textarea,select) { color-scheme: dark; }
  @media (max-width: 340px) {
    .daily-bias .db-btn { max-width: 100%; white-space: normal; text-align: center; }
  }
  .bias-course :is(h1,h2,h3) { font-family: var(--flb-ui-font); }

  .checkout-drawer { background: var(--flb-ui-panel); color: var(--flb-ui-white); }
  .checkout-drawer .checkout-drawer__eyebrow, .checkout-drawer .checkout-fallback a { color: var(--flb-ui-cyan); }
  .checkout-drawer :is(h2,h3,button) { font-family: var(--flb-ui-font); }
  .checkout-drawer :is(.checkout-drawer__price,.checkout-loading,.checkout-fallback,.checkout-trust small) { color: var(--flb-ui-muted); }
  .checkout-drawer__header { background: var(--flb-ui-surface-raised); border-color: var(--flb-ui-line); }
  .checkout-drawer__header h2 { font-weight: var(--flb-ui-heading-weight); }
  .checkout-drawer__body { background: var(--flb-ui-bg); }
  .checkout-drawer__close:is(:hover,:focus-visible) { border-color: var(--flb-ui-cyan); color: var(--flb-ui-cyan); }
  .checkout-loading::before { border-top-color: var(--flb-ui-cyan); }
}
