/* Scoped mobile navigation, homepage artwork, footer and monthly-growth fixes. */
@media (max-width: 768px) {
  /* Keep all 13 heatmap columns readable; contain scrolling inside this chart. */
  .signal-detail-card > .heatmap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; contain: inline-size; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #98a2b3 #eef2f6; }
  .signal-detail-card > .heatmap > .js-echart { min-width: 1098px; }
  .signal-detail-card > .heatmap::-webkit-scrollbar { height: 6px; }
  .signal-detail-card > .heatmap::-webkit-scrollbar-track { background: #eef2f6; }
  .signal-detail-card > .heatmap::-webkit-scrollbar-thumb { background: #98a2b3; border-radius: 3px; }
  body .site-header.qc-shell-ready { height: auto; min-height: 64px; }
  body .qc-shell-ready .header-inner { display: grid; grid-template-columns: minmax(0,1fr) 44px; grid-template-rows: 64px auto auto; align-items: center; width: 100%; max-width: none; min-height: 64px; height: auto; gap: 0; padding: 0 16px; }
  body .qc-shell-ready .brand { grid-column: 1; grid-row: 1; min-width: 0; justify-self: start; gap: 10px; }
  body .qc-shell-ready .brand-mark { width: 34px; height: 34px; font-size: 21px; }
  body .qc-shell-ready .brand strong { font-size: 18px; }
  body .qc-shell-ready .brand > span > span { display: none; }
  .qc-shell-toggle { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #ffffff38; border-radius: 6px; background: transparent; cursor: pointer; }
  .qc-shell-toggle img { width: 22px; height: 22px; filter: invert(1); }
  .qc-shell-toggle .qc-shell-close-icon { display: none; }
  .qc-shell-open .qc-shell-toggle .qc-shell-menu-icon { display: none; }
  .qc-shell-open .qc-shell-toggle .qc-shell-close-icon { display: block; }
  body .qc-shell-ready .main-nav, body .qc-shell-ready .header-actions { display: none; }
  body .site-header.qc-shell-open { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  body .qc-shell-open .header-inner { align-content: start; }
  body .qc-shell-open .main-nav { grid-column: 1 / -1; grid-row: 2; order: 0; display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; justify-content: stretch; gap: 4px; margin: 0 -16px; width: calc(100% + 32px); height: auto; padding: 12px 16px; background: #fff; overflow: visible; }
  body .qc-shell-open .main-nav > a, body .qc-shell-products { min-height: 46px; height: auto; padding: 12px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; border: 0; border-radius: 4px; color: #162535; background: transparent; box-shadow: none; text-shadow: none; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; white-space: normal; text-align: left; }
  body .qc-shell-open .main-nav > a:hover, body .qc-shell-open .main-nav > a.active, body .qc-shell-products:hover, body .qc-shell-products[aria-expanded=true] { color: #ad4300; background: #fff1e8; box-shadow: inset 3px 0 0 #ff5a00; }
  body .qc-shell-ready .nav-dropdown { display: block; position: static; min-width: 0; width: 100%; }
  body .qc-shell-ready .nav-dropdown::before, body .qc-shell-ready .nav-dropdown::after, body .qc-shell-ready .nav-dropdown > a { display: none; }
  body .qc-shell-products { justify-content: space-between; width: 100%; cursor: pointer; }
  .qc-shell-products img { flex-shrink: 0; width: 18px; height: 18px; }
  .qc-shell-products[aria-expanded=true] img { transform: rotate(180deg); }
  body .site-header.qc-shell-ready .nav-dropdown .nav-menu { display: none !important; position: static; inset: auto; width: 100%; min-width: 0; max-width: none; margin: 4px 0; padding: 0 0 0 12px; opacity: 1; visibility: visible; transform: none; border: 0; border-left: 2px solid #e3e8ef; border-radius: 0; box-shadow: none; background: #fff; }
  body .site-header.qc-shell-ready .nav-dropdown.qc-shell-products-open .nav-menu { display: grid !important; gap: 2px; }
  body .qc-shell-ready .nav-menu a { display: block; min-height: 44px; padding: 11px 12px; white-space: normal; border-radius: 4px; text-shadow: none; }
  body .qc-shell-ready .nav-menu a strong { font-size: 14px; line-height: 1.5; color: #26384a; white-space: normal; overflow-wrap: anywhere; }
  body .qc-shell-ready .nav-menu a span { display: none; }
  body .qc-shell-open .header-actions { grid-column: 1 / -1; grid-row: 3; order: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; width: calc(100% + 32px); margin: 0 -16px; padding: 16px 16px max(16px,env(safe-area-inset-bottom)); border-top: 1px solid #e3e8ef; background: #fff; white-space: normal; }
  body .qc-shell-ready .platform-search { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) 60px; min-width: 0; width: 100%; height: 44px; margin: 0; }
  body .qc-shell-ready .platform-search input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; font-size: 16px; }
  body .qc-shell-ready .platform-search button { height: 44px; font-size: 14px; }
  body .qc-shell-ready .header-login { display: flex; align-items: center; justify-content: center; min-height: 44px; height: auto; width: 100%; padding: 10px 12px; color: #fff; background: #bf4800; border: 1px solid #bf4800; border-radius: 6px; font-size: 14px; }
  body .qc-shell-ready .header-login[hidden] { display: none !important; }
  body .qc-shell-ready .qc-language-switcher { display: block; width: 100%; min-width: 0; }
  body .qc-shell-ready .qc-language-button, body .qc-shell-ready .qc-language-button:hover { display: block; width: 100%; min-height: 44px; height: auto; padding: 10px 8px; border: 1px solid #dce3ec; border-radius: 6px; color: #26384a; background: #fff; font-size: 14px; text-shadow: none; }
  body .qc-shell-ready .qc-language-menu { position: static; min-width: 0; width: 100%; margin-top: 6px; box-shadow: none; border-radius: 6px; }
  body .qc-shell-ready .qc-language-menu button { min-height: 44px; white-space: normal; }
  body .qc-shell-ready .member-menu { display: block; width: 100%; min-width: 0; grid-column: 1 / -1; }
  body .qc-shell-ready .member-trigger { width: 100%; max-width: none; min-height: 44px; color: #26384a; }
  body .qc-shell-ready .member-trigger strong, body .qc-shell-ready .member-trigger-text span { color: #26384a; text-shadow: none; }
  body .qc-shell-ready .member-dropdown { position: static; width: 100%; min-width: 0; margin-top: 6px; box-shadow: none; }
  body .qc-shell-ready .member-dropdown::before { display: none; }
  body .qc-shell-ready .member-dropdown a, body .qc-shell-ready .member-dropdown button { min-height: 44px; }
  body .qc-shell-ready :is(a,button,input):focus-visible { outline: 2px solid #1683c9; outline-offset: 2px; }

  body .home-fx-hero-grid { grid-template-columns: minmax(0,1fr); }
  body .home-fx-hero-grid > .home-fx-trading-visual { display: none; }

  body :is(.home-fx-footer,.api-v2-footer,.svc-footer-inner) { width: calc(100% - 32px); max-width: 100%; margin-inline: auto; padding: 24px 0; }
  body .svc-footer { padding: 0; }
  body :is(.home-fx-footer-grid,.api-v2-footer-grid,.svc-footer-grid) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 24px 18px; }
  body :is(.home-fx-footer-grid,.api-v2-footer-grid,.svc-footer-grid) > div { min-width: 0; overflow-wrap: anywhere; }
  body :is(.home-fx-footer-grid,.api-v2-footer-grid,.svc-footer-grid) > div:first-child { grid-column: 1 / -1; padding-bottom: 20px; border-bottom: 1px solid #e3e8ef; }
  body :is(.home-fx-footer-grid,.api-v2-footer-grid,.svc-footer-grid) > div:last-child { grid-column: 1 / -1; padding: 16px 0 0; border: 0; border-top: 1px solid #e3e8ef; border-radius: 0; background: transparent; }
  body :is(.home-fx-footer-grid,.api-v2-footer-grid,.svc-footer-grid) h3 { margin: 0 0 8px; color: #182d40; font-size: 15px; line-height: 1.5; }
  body :is(.home-fx-footer-grid,.api-v2-footer-grid,.svc-footer-grid) a { display: flex; align-items: center; min-height: 40px; height: auto; margin: 0; padding: 7px 0; color: #53657b; font-size: 14px; line-height: 1.5; white-space: normal; }
  body :is(.home-fx-footer-intro,.api-v2-footer-intro,.svc-footer-grid > div:first-child > p) { max-width: none; margin: 12px 0 0; font-size: 14px; line-height: 1.75; }
  body :is(.home-fx-footer-brand,.api-v2-footer-brand) > span:last-child { font-size: 18px; line-height: 1.4; color: #182d40; }
  body :is(.home-fx-footer-brand,.api-v2-footer-brand) > span:last-child > span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: #667085; }
  body :is(.home-fx-footer-grid,.api-v2-footer-grid,.svc-footer-grid) > div:last-child > span { display: block; margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
  body :is(.home-fx-social,.api-v2-footer-social)[aria-hidden=true] { display: none; }
  body :is(.home-fx-footer-bottom,.api-v2-footer-bottom,.svc-footer-bottom) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; padding-top: 16px; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
  body :is(.home-fx-footer-bottom,.api-v2-footer-bottom,.svc-footer-bottom) > span { min-width: 0; }
  body :is(.home-fx-footer-bottom,.api-v2-footer-bottom,.svc-footer-bottom) nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
}
