/* ════════════════════════════════════════════════════════════════════════════
   45-markets.css — non-stock markets: indices, Treasury yields, FX, futures,
   crypto (2026-10-04, board Option A). Owns the .mkt- namespace plus the
   body state classes app.js sets for a selected market (_mktApplyChrome):
     body.stock-market          a market is open: no view menu, Events,
                                Session, News Chains, X narrative, alerts
     body.stock-market-notrade  ...with no paper desk: no Trade
     body.stock-market-novol    ...whose series has no volume (FX, index,
                                yield): no Volume Footprint chart type
   Appended last so it only overrides; colours come from tokens.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* Watchlist class sections. The headings reuse .wl-sync-head (39-sidenav);
   [hidden] has to beat its display:flex. */
.mkt-head[hidden],
.mkt-sec[hidden]{display:none;}

/* No logos on a market. In the sidebar the tile is dropped entirely: a
   market label runs up to six letters (EURUSD, BTCUSD) and needs the room
   beside the price figure at narrow widths. In search results it stays as
   an empty spacer so the columns align. */
:root .sidebar .stock-list .si-logo.mkt-logo-none{display:none;}
/* Each class section is a plain block inside the scrolling watchlist; only
   the stock list keeps its own 12 row window. */
.wl-scroll .stock-list.mkt-list{max-height:none;overflow:visible;}
.si-logo.mkt-logo-none,
.sr-logo.mkt-logo-none,
/* (doubled class: beats the flyout tile rule without naming its namespace) */
.mkt-fly-nologo.mkt-fly-nologo{
  background:transparent;box-shadow:none;border:0;
}

/* A market row is its pro label alone (Option A): the label already names
   it, and a name clipped to two letters beside it is noise. */
:root .sidebar .stock-list .stock-item.mkt-row .si-name{display:none;}

/* Search: the class word sits grey at the far right, plain text. */
.sr-type.mkt-word{
  border:0;padding:0;border-radius:0;
  min-width:3.25rem;text-align:right;
  color:var(--text-muted);
}

/* Symbol page chrome that does not apply to a market. */
body.stock-market #view-toggle,
body.stock-market #events-picker,
body.stock-market #session-picker,
body.stock-market #ng-host,
body.stock-market #grok-badge,
body.stock-market #btn-alerts{display:none !important;}
body.stock-market-notrade #hdr-trade-btn,
body.stock-market-notrade #trade-btn{display:none !important;}
body.stock-market-novol #charttype-menu .ct-row[data-ct="footprint"]{display:none;}


/* The ticket on a future's own page (CL1, ES1...) trades that contract
   only: no Stocks or Options segment and no way back to a stock that the
   label is not. */
body.stock-market #trade-inst-stocks,
body.stock-market #trade-options-btn,
body.stock-market #trade-fut-clear{display:none !important;}

/* Market icons (2026-10-05, TradingView style): a round static icon in the
   same tile a stock's logo uses (coin, two currency flags, the US flag, a
   commodity pictogram; tracker/market_registry.py ICONS). The art is already
   round and full bleed, so no plate, no logo crop, and a hairline ring so a
   pale flag (JP, CA) keeps its edge on the light theme. */
.si-logo.mkt-icon,
.sr-logo.mkt-icon{
  border-radius:50%;
  background:transparent;
  box-shadow:0 0 0 1px color-mix(in srgb, var(--text-primary) 14%, transparent);
}
.si-logo.mkt-icon img,
.sr-logo.mkt-icon img,
:root .sidebar .stock-list .si-logo.mkt-icon img{
  transform:none;object-fit:contain;border-radius:50%;
}
/* Narrow windows (the sidenav's own 1180px break, a rail of about 148px
   at 1024): a six letter label (EURUSD, BTCUSD) beside its icon and a nine
   character price (85,747.99) runs under the figure (measured 2026-10-05:
   up to 11px of overlap), and the 10px type floor rules out a smaller
   font, so those rows alone drop the icon there, as every market row did
   before. Shorter labels and search keep it at every width. (The Key stats
   dock header carries no logo or icon: board Option A, 2026-10-05.) */
@media (max-width:1180px){
  :root .sidebar .stock-list .stock-item.mkt-row .si-logo.mkt-icon-long{display:none;}
}

/* Indicators drawer rows (and their settings) for a feed the open market's
   class has no data for: app.js _mktApplyChrome, MPMarkets.has. */
#gtb-modal .mkt-cap-off{display:none !important;}
