/* Equity & ETFs page: dark hero, logo globe (left) + copy (right) */
.ph--globe {
  background:
    radial-gradient(50% 60% at 24% 55%, rgba(96, 52, 168, 0.5), transparent 70%),
    radial-gradient(40% 50% at 92% 8%, rgba(241, 135, 23, 0.14), transparent 70%),
    linear-gradient(170deg, #37305c 0%, #37305c 100%);
  padding: clamp(36px, 5vw, 72px) 0 clamp(14px, 1.6vw, 24px);
}
.ph--globe .ph__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
.ph--globe .ph__back { color: rgba(255, 255, 255, 0.7); }
.ph--globe .ph__copy h1 { color: #fff; }
.ph--globe .ph__lead { color: rgba(255, 255, 255, 0.72); }

.eqg { position: relative; }
.eqg__stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 620px; margin-inline: auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.eqg__stage.is-drag { cursor: grabbing; }
.eqg__sphere {
  position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 28%, #5a4d9a 0%, #37305c 55%, #37305c 100%);
  box-shadow: inset 0 0 0 1.5px rgba(160, 120, 240, 0.4), inset 0 0 90px rgba(140, 90, 230, 0.32), 0 0 100px -10px rgba(241, 135, 23, 0.28), 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.eqg__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.eqg__chips { position: absolute; inset: 0; }
.eqg__chip {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 37px; padding: 6px 8px; display: grid; place-items: center;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7); will-change: transform, opacity; transition: box-shadow 0.3s;
}
.eqg__chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; pointer-events: none; }
.eqg__chip.is-hit { box-shadow: 0 0 0 3px var(--cap, #f18717), 0 0 26px -2px var(--cap, #f18717); }
.eqg__chip[data-cap="S"] { --cap: #7bb33a; }
.eqg__chip[data-cap="M"] { --cap: #f18717; }
.eqg__chip[data-cap="L"] { --cap: #4a7bd6; }

/* floating "View by Market Caps" card */
.eqg__card {
  position: absolute; z-index: 200; top: 2%; right: -2%; width: min(250px, 46%); padding: 14px 16px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.97); color: var(--ink); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
}
.eqg__card > b { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; }
.eqg__row { display: block; width: 100%; padding: 7px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 10px; text-align: left; transition: background 0.2s; }
.eqg__row:hover { background: #f4f2fa; }
.eqg__row.is-on { background: #efeafb; }
.eqg__row:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.eqg__rowtop { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.eqg__rowtop span:first-child { font-weight: 700; color: #555; }
.eqg__count { font-weight: 600; color: var(--purple); }
.eqg__bar { display: block; margin-top: 5px; height: 4px; border-radius: 4px; background: #ecebf2; overflow: hidden; }
.eqg__fill { display: block; height: 100%; border-radius: 4px; background: var(--c); transition: width 0.6s var(--ease); }
.eqg__row[data-cap="S"] { --c: #7bb33a; }
.eqg__row[data-cap="M"] { --c: #f18717; }
.eqg__row[data-cap="L"] { --c: #4a7bd6; }

@media (max-width: 900px) {
  .ph--globe .ph__grid { grid-template-columns: 1fr; text-align: left; }
  .ph--globe .ph__art { order: 0; max-width: 460px; margin-inline: auto; }
  .ph--globe .ph__actions { justify-content: flex-start; }
  .ph--globe .ph__lead { margin-inline: 0; }
  .eqg__card { right: 0; top: -2%; width: min(230px, 56%); }
  .eqg__chip { width: 60px; height: 36px; padding: 6px 8px; }
}

