/* TradingHub v425 — desktop-only audit for derivatives / calculators / research.
   Mobile <= 760px remains owned by v419-v424. */
@media (min-width:1024px){
  body.th-desktop-v425{
    --th-sem-live:color-mix(in srgb,var(--pulse) 82%,#eafff2);
    --th-sem-negative:color-mix(in srgb,var(--danger) 84%,#ffe1e4);
    --th-sem-warning:color-mix(in srgb,var(--signal) 84%,#fff1c7);
    --th-sem-neutral:#aeb6be;
    --th-sem-quiet:#79828a;
  }

  /* Global density: remove dead vertical bands while preserving clear section boundaries. */
  body.th-desktop-v425 .seo-page:not(.deriv-page):not(.liqmap-seo-page){
    padding-top:24px;
    padding-bottom:8px;
  }
  body.th-desktop-v425 .seo-page:not(.deriv-page):not(.liqmap-seo-page)>.seo-hero{
    gap:18px;
    padding:14px 0 20px;
  }
  body.th-desktop-v425 .seo-page:not(.deriv-page):not(.liqmap-seo-page)>.seo-section{
    padding:22px 0;
  }
  body.th-desktop-v425 .seo-page:not(.deriv-page):not(.liqmap-seo-page)>.seo-section>h2{
    margin-bottom:9px;
  }
  body.th-desktop-v425 .seo-page:not(.deriv-page):not(.liqmap-seo-page)>.seo-copy p{
    margin:0;
    line-height:1.62;
  }
  body.th-desktop-v425 .seo-page:not(.deriv-page):not(.liqmap-seo-page)>.seo-copy p+p{margin-top:9px}
  body.th-desktop-v425 .seo-risk{
    margin-top:12px;
    padding:11px 14px;
  }
  body.th-desktop-v425 .legal-compact-note{margin-top:6px!important;margin-bottom:0!important}
  body.th-desktop-v425 .site-footer--mini{margin-top:4px!important}

  /* Secondary pages do not need a desktop summary box that repeats the hero. */
  body.th-desktop-v425.th-page-order-flow .seo-hero,
  body.th-desktop-v425.th-mobile-calculator .seo-hero,
  body.th-desktop-v425.th-page-derivatives-hub .seo-hero,
  body.th-desktop-v425.th-page-market-research .seo-hero{
    grid-template-columns:minmax(0,1fr);
  }
  body.th-desktop-v425.th-page-order-flow .seo-summary,
  body.th-desktop-v425.th-mobile-calculator .seo-summary,
  body.th-desktop-v425.th-page-derivatives-hub .seo-summary,
  body.th-desktop-v425.th-page-market-research .seo-summary{display:none}

  /* Remove navigation-only hero buttons. Core tool actions remain in the actual tool. */
  body.th-desktop-v425.th-page-order-flow .seo-hero .seo-actions,
  body.th-desktop-v425.th-page-position-size .seo-hero .seo-actions,
  body.th-desktop-v425.th-page-liquidation-price .seo-hero .seo-actions,
  body.th-desktop-v425.th-page-funding-calculator .seo-hero .seo-actions,
  body.th-desktop-v425.th-page-risk-reward .seo-hero .seo-actions,
  body.th-desktop-v425.th-page-effective-cost .seo-hero .seo-actions{display:none}
  body.th-desktop-v425.th-page-derivatives-hub .seo-hero .seo-actions a[href="#data-pages"],
  body.th-desktop-v425.th-page-market-research .seo-hero .seo-actions a[href="data-methodology"]{display:none}
  body.th-desktop-v425.th-page-derivatives-hub .seo-hero .seo-actions,
  body.th-desktop-v425.th-page-market-research .seo-hero .seo-actions{margin-top:14px}

  /* Related-link grids are duplicate navigation on focused tools. Remove them on desktop. */
  body.th-desktop-v425.th-page-order-flow main>section:last-of-type,
  body.th-desktop-v425.th-page-liquidation-tracker main>section:last-of-type,
  body.th-desktop-v425.th-page-liquidation-heatmap main>section:last-of-type,
  body.th-desktop-v425.th-page-open-interest main>section:last-of-type,
  body.th-desktop-v425.th-page-funding-rates main>section:last-of-type,
  body.th-desktop-v425.th-page-liquidation-price main>section:last-of-type,
  body.th-desktop-v425.th-page-funding-calculator main>section:last-of-type,
  body.th-desktop-v425.th-page-risk-reward main>section:last-of-type,
  body.th-desktop-v425.th-page-effective-cost main>section:last-of-type,
  body.th-desktop-v425.th-page-market-research main>section:last-of-type{display:none}

  /* Four live workspaces: keep the data surface, trim editorial black space below it. */
  body.th-desktop-v425 .deriv-page>.deriv-live-section,
  body.th-desktop-v425 .liqmap-seo-page>.liqmap-live-section{padding:8px 0 14px!important}
  body.th-desktop-v425 .deriv-page>.seo-section:not(.deriv-live-section),
  body.th-desktop-v425 .liqmap-seo-page>.seo-section:not(.liqmap-live-section){padding:16px 0!important}
  body.th-desktop-v425 .deriv-page>.seo-copy>p,
  body.th-desktop-v425 .liqmap-seo-page>.seo-copy>p{line-height:1.58}

  /* Order flow: one launch point, dense explanation instead of nested navigation chrome. */
  body.th-desktop-v425.th-page-order-flow .seo-tool-card{
    margin-top:10px;
    padding:18px;
  }
  body.th-desktop-v425.th-page-order-flow .seo-tool-card__head{margin-bottom:12px}
  body.th-desktop-v425.th-page-order-flow .seo-points{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-top:12px;
  }
  body.th-desktop-v425.th-page-order-flow .seo-points li{padding:10px 11px;font-size:12px;line-height:1.45}

  /* Calculator desktop: preserve two-column workflow but remove oversized card chrome. */
  body.th-desktop-v425.th-mobile-calculator .seo-section:nth-of-type(2){padding-top:16px}
  body.th-desktop-v425.th-mobile-calculator .calc-panel.active,
  body.th-desktop-v425.th-mobile-calculator .growth-calculator{
    gap:14px;
    margin-top:10px;
  }
  body.th-desktop-v425.th-mobile-calculator .calc-form,
  body.th-desktop-v425.th-mobile-calculator .calc-result,
  body.th-desktop-v425.th-mobile-calculator .growth-calculator .calc-form,
  body.th-desktop-v425.th-mobile-calculator .growth-calculator .calc-result{
    padding:18px;
  }
  body.th-desktop-v425.th-mobile-calculator .calc-form h3,
  body.th-desktop-v425.th-mobile-calculator .calc-result h3,
  body.th-desktop-v425.th-mobile-calculator .growth-calculator h3{margin-bottom:12px}
  body.th-desktop-v425.th-mobile-calculator .field,
  body.th-desktop-v425.th-mobile-calculator .growth-calculator .field{margin-bottom:10px}
  body.th-desktop-v425.th-mobile-calculator .result-row,
  body.th-desktop-v425.th-mobile-calculator .growth-calculator .result-row{padding:9px 0}
  body.th-desktop-v425.th-mobile-calculator .growth-result-actions{margin:12px 0 4px}
  body.th-desktop-v425.th-page-position-size .calc-result>.calc-hint,
  body.th-desktop-v425.th-page-liquidation-price .calc-result>.calc-hint,
  body.th-desktop-v425.th-page-funding-calculator .calc-result>.calc-hint{display:none}

  /* Hubs are navigation products: keep their core cards, remove decorative height. */
  body.th-desktop-v425.th-page-derivatives-hub .seo-grid,
  body.th-desktop-v425.th-page-market-research .seo-grid{gap:10px;margin-top:12px}
  body.th-desktop-v425.th-page-derivatives-hub .seo-card,
  body.th-desktop-v425.th-page-market-research .seo-card{
    min-height:118px;
    padding:15px;
  }
  body.th-desktop-v425.th-page-derivatives-hub .seo-card .meta,
  body.th-desktop-v425.th-page-market-research .seo-card .meta{margin-top:9px}
  body.th-desktop-v425.th-page-derivatives-hub main>section:last-of-type .seo-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  /* No-inventory ad containers must never create a black spacer. */
  body.th-desktop-v425 .th-ad-slot--no-fallback:not(.has-inventory){display:none!important;margin:0!important;min-height:0!important;height:0!important}

  /* Desktop semantic contrast mirrors the mobile status vocabulary. */
  body.th-desktop-v425 .deriv-status[data-state="live"]{
    color:var(--th-sem-live);border-color:color-mix(in srgb,var(--pulse) 28%,var(--line));
  }
  body.th-desktop-v425 .deriv-status[data-state="loading"],
  body.th-desktop-v425 .deriv-status[data-state="partial"]{
    color:var(--th-sem-warning);border-color:color-mix(in srgb,var(--signal) 26%,var(--line));
  }
  body.th-desktop-v425 .deriv-status[data-state="error"]{
    color:var(--th-sem-negative);border-color:color-mix(in srgb,var(--danger) 28%,var(--line));
  }
  body.th-desktop-v425 .deriv-table td.status-live{color:var(--th-sem-live)!important;font-weight:700}
  body.th-desktop-v425 .deriv-table td.status-loading,
  body.th-desktop-v425 .deriv-table td.status-stale{color:var(--th-sem-warning)!important;font-weight:650}
  body.th-desktop-v425 .deriv-table td.status-unavailable{color:var(--th-sem-neutral)!important;font-weight:650}
  body.th-desktop-v425 .deriv-feed-pill[data-feed-state="connected"]{color:var(--th-sem-live)}
  body.th-desktop-v425 .deriv-feed-pill[data-feed-state="connecting"]{color:var(--th-sem-warning)}
  body.th-desktop-v425 .deriv-feed-pill[data-feed-state="disconnected"]{color:var(--th-sem-negative)}
  body.th-desktop-v425 .liqmap-card[data-status="live"] #liqmap-status{color:var(--th-sem-live)}
  body.th-desktop-v425 .liqmap-card[data-status="partial"] #liqmap-status,
  body.th-desktop-v425 .liqmap-card[data-status="loading"] #liqmap-status,
  body.th-desktop-v425 .liqmap-card[data-status="initializing"] #liqmap-status,
  body.th-desktop-v425 .liqmap-card[data-status="reconnecting"] #liqmap-status{color:var(--th-sem-warning)}
  body.th-desktop-v425 .liqmap-card[data-status="error"] #liqmap-status,
  body.th-desktop-v425 .liqmap-card[data-status="unavailable"] #liqmap-status,
  body.th-desktop-v425 .liqmap-card[data-status="nodata"] #liqmap-status{color:var(--th-sem-negative)}
  body.th-desktop-v425 .liqmap-summary-zone--above strong{color:var(--th-sem-live)}
  body.th-desktop-v425 .liqmap-summary-zone--below strong{color:var(--th-sem-negative)}
  body.th-desktop-v425 .seo-live-status[data-state="live"],
  body.th-desktop-v425 .etc-status.is-live,
  body.th-desktop-v425 #fc-live-tag[data-state="live"]{color:var(--th-sem-live)!important}
  body.th-desktop-v425 .seo-live-status[data-state="loading"],
  body.th-desktop-v425 .etc-status.is-loading,
  body.th-desktop-v425 .etc-status.is-partial,
  body.th-desktop-v425 #fc-live-tag[data-state="loading"],
  body.th-desktop-v425 #fc-live-tag[data-state="stale"]{color:var(--th-sem-warning)!important}
  body.th-desktop-v425 .seo-live-status[data-state="error"],
  body.th-desktop-v425 .seo-live-status[data-state="unavailable"]{color:var(--th-sem-negative)!important}
  body.th-desktop-v425 .seo-card .meta[data-tone="live"]{color:var(--th-sem-live)}
  body.th-desktop-v425 .seo-card .meta[data-tone="modeled"]{color:var(--th-sem-warning)}
  body.th-desktop-v425 .seo-card .meta[data-tone="neutral"]{color:#858d95}
  body.th-desktop-v425.th-page-position-size #size-out-risk{color:var(--th-sem-negative)}
  body.th-desktop-v425.th-page-position-size #size-out-units{color:var(--th-sem-warning)}
  body.th-desktop-v425.th-page-liquidation-price #liq-out-price{color:var(--th-sem-negative)}
  body.th-desktop-v425.th-page-liquidation-price #liq-out-dist{color:var(--th-sem-warning)}
  body.th-desktop-v425.th-page-risk-reward [data-gc-output="risk"]{color:var(--th-sem-negative)}
  body.th-desktop-v425.th-page-risk-reward [data-gc-output="reward"],
  body.th-desktop-v425.th-page-risk-reward [data-gc-output="profit"]{color:var(--th-sem-live)}
  body.th-desktop-v425.th-page-risk-reward [data-gc-output="ratio"]{color:var(--th-sem-warning)}
}
