/* Market treemap (Legibility pack L7) - shared by the app (index.html) and the
   landing page. Uses the app tokens; the landing page maps its own palette
   onto them with a .tm-scope wrapper. */
.tm-holder { margin-top: 14px; }
.tm-map { position: relative; width: 100%; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.tm-sector { position: absolute; box-shadow: inset 0 0 0 1px var(--bg); overflow: hidden; }
.tm-sector-label { position: absolute; left: 0; right: 0; top: 0; height: 15px; padding: 0 5px; font-size: 9.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--surface2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 15px; }
.tm-sector-label span { font-weight: 600; text-transform: none; }
.tm-tile { position: absolute; border: none; box-shadow: inset 0 0 0 1px var(--bg); cursor: pointer; padding: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font); line-height: 1.15; }
.tm-tile:hover, .tm-tile:focus-visible { box-shadow: inset 0 0 0 2px var(--text); z-index: 2; outline: none; }
.tm-sym { font-size: 11px; font-weight: 700; }
.tm-chg { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .92; }
.tm-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--text-faint); }
.tm-legend { display: inline-flex; align-items: center; gap: 6px; }
.tm-scale { width: 90px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(220,38,38,.86), rgba(220,38,38,.16) 45%, var(--surface3) 50%, rgba(22,163,74,.16) 55%, rgba(22,163,74,.86)); }
.tm-empty { padding: 24px; text-align: center; color: var(--text-faint); font-size: 12px; }
