/* ECHO_FUNDAMENTAL_RIBBON_V1 */

/*
 * Suppress only the earlier experimental generated snapshots.
 * The original .security-market-strip is intentionally excluded.
 */
.echo-investment-snapshot,
.echo-investment-snapshot-v1,
[data-echo-investment-snapshot],
[class*="echo-investment-snapshot"] {
  display: none !important;
}

.echo-fundamental-ribbon-v1 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  margin: 8px 0 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 49, 75, 0.16);
  border-radius: 8px;
  background: var(--surface, #ffffff);
  box-shadow: 0 2px 8px rgba(14, 35, 54, 0.06);
}

.echo-fundamental-ribbon-card {
  display: flex;
  min-width: 0;
  min-height: 70px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
  border-right: 1px solid rgba(20, 49, 75, 0.12);
}

.echo-fundamental-ribbon-card:last-child {
  border-right: 0;
}

.echo-fundamental-ribbon-label {
  overflow: hidden;
  color: #667786;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.echo-fundamental-ribbon-value {
  overflow: hidden;
  color: #142f49;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .echo-fundamental-ribbon-v1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .echo-fundamental-ribbon-card:nth-child(3) {
    border-right: 0;
  }

  .echo-fundamental-ribbon-card:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(20, 49, 75, 0.12);
  }
}

@media (max-width: 620px) {
  .echo-fundamental-ribbon-v1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .echo-fundamental-ribbon-card {
    border-right: 1px solid rgba(20, 49, 75, 0.12);
    border-bottom: 1px solid rgba(20, 49, 75, 0.12);
  }

  .echo-fundamental-ribbon-card:nth-child(2n) {
    border-right: 0;
  }

  .echo-fundamental-ribbon-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
/* ECHO_FUNDAMENTAL_RIBBON_STABILITY */
.echo-fundamental-ribbon-v1,
.echo-fundamental-ribbon-v1 * {
  transition: none !important;
  animation: none !important;
}

.echo-fundamental-ribbon-label,
.echo-fundamental-ribbon-value {
  font-weight: 500;
}