/* ===== Source tooltips — stats section ===== */

/* let tooltips escape the stats section's containers */
#g-776776887,
#g-776776887 * {
  overflow: visible !important;
}

/* trigger */
.source-tip {
  position: relative;
  display: inline-block;
  cursor: help;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(78,78,78,0.8);
  border-bottom: 1px dotted rgba(78,78,78,0.5);
}

/* tooltip panel — opens to the RIGHT on desktop */
.source-tip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  width: 300px;
  max-height: 260px;
  overflow-y: auto !important;
  background: #1c1c1e;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 999;
  transition: opacity 0.15s ease;
}

/* edge card (2B+) — opens to the LEFT instead
   add class "tip-left" to that trigger:
   <span class="source-tip tip-left" tabindex="0"> */
#g-728384631 .source-tip-content {
  left: auto;
  right: calc(100% + 10px);
}

/* show on hover / tap / keyboard focus */
.source-tip:hover .source-tip-content,
.source-tip:focus-within .source-tip-content,
.source-tip:focus .source-tip-content {
  visibility: visible;
  opacity: 1;
}

/* ===== Mobile: full-width panel below the trigger ===== */
@media (max-width: 640px) {
  .source-tip {
    position: static;
  }
  .source-tip-content,
  #g-728384631 .source-tip-content {
    position: absolute;
    top: auto;
    bottom: auto;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 440px;
    transform: none;
    margin-top: 8px;
    margin-bottom: 10px;
  }
}