/* CoinMEX V3.0.18 — targeted light-theme contrast polish.
   Scope: mobile navigation hierarchy + small-text readability only. */

/* Mobile/tablet menu: solid surface and stronger hierarchy. */
@media (max-width:1120px){
  .cmx-theme .cmx-primary-nav{
    background:#fbfcf8!important;
    border-color:#bdc9be!important;
    box-shadow:0 24px 62px rgba(13,24,20,.20)!important;
  }
  .cmx-theme .cmx-primary-nav>a{
    color:#1c2924!important;
    border-color:#d4dcd3!important;
    background:#fff!important;
  }
  .cmx-theme .cmx-nav-exchanges summary{
    color:#1c2924!important;
    border-color:#c8d3c7!important;
    background:#f5f8f2!important;
  }
  .cmx-theme .cmx-primary-nav .cmx-nav-exchanges__menu a{
    color:#1c2924!important;
    border-color:#d4dcd3!important;
    background:#fff!important;
  }
  /* Specificity intentionally exceeds the generic mobile nav rule. */
  .cmx-theme .cmx-primary-nav .cmx-nav-exchanges__menu a.cmx-nav-exchanges__all{
    background:#101820!important;
    border-color:#101820!important;
    color:#c8ff67!important;
    box-shadow:0 8px 20px rgba(16,24,32,.11)!important;
  }
  .cmx-theme .cmx-primary-nav .cmx-nav-exchanges__menu a.cmx-nav-exchanges__all:hover,
  .cmx-theme .cmx-primary-nav .cmx-nav-exchanges__menu a.cmx-nav-exchanges__all:focus-visible{
    background:#1a2520!important;
    color:#fff!important;
    outline:2px solid #9bdc2e!important;
    outline-offset:2px;
  }
  .cmx-theme .cmx-primary-nav .cmx-app-menu-item{
    background:#edf7dc!important;
    border-color:#b8d77f!important;
    color:#16221c!important;
  }
}

/* Desktop exchange dropdown gets the same clear primary action. */
@media (min-width:1121px){
  .cmx-theme .cmx-primary-nav .cmx-nav-exchanges__menu a.cmx-nav-exchanges__all{
    background:#101820!important;
    border-color:#101820!important;
    color:#c8ff67!important;
  }
}

/* Readability pass: only small secondary text that was below/near 4.5:1 on light surfaces. */
.cmx-theme .market-updated,
.cmx-theme .market-exchange-row small,
.cmx-theme .market-nav-card small,
.cmx-theme .market-source,
.cmx-theme .liq-row small,
.cmx-theme .liq-row time,
.cmx-theme .v3-tool-body p,
.cmx-theme .v3-benefit-ribbon p,
.cmx-theme .v3-method-grid article>span,
.cmx-theme .mp-original,
.cmx-theme .ec-original,
.cmx-theme .ec-values small,
.cmx-theme .ec-time small,
.cmx-theme .mx-table td[data-col]::before,
.cmx-theme .cmx-app-sheet-help{
  color:#596660!important;
}

/* Keep keyboard/touch feedback visible on the light theme. */
.cmx-theme .cmx-primary-nav a:focus-visible,
.cmx-theme .cmx-nav-exchanges summary:focus-visible,
.cmx-theme .cmx-app-menu-item:focus-visible{
  outline:2px solid #6f9f20!important;
  outline-offset:2px!important;
}
