/* holders-rich-data.css — expandable sub-row beneath each holder row. */

.holder-rich-row {
  cursor: pointer;
}
.holder-rich-row[aria-expanded="true"] {
  background: rgba(96, 165, 250, 0.04);
}

.holder-rich-chevron {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--color-text-muted, #6b7280);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  margin-right: 0.3rem;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  vertical-align: middle;
}
.holder-rich-row:hover .holder-rich-chevron {
  color: var(--color-accent, #60a5fa);
}
.holder-rich-row[aria-expanded="true"] .holder-rich-chevron {
  color: var(--color-accent, #60a5fa);
}
.holder-rich-chevron:focus-visible {
  outline: 2px solid var(--color-accent, #60a5fa);
  outline-offset: 2px;
  border-radius: 3px;
}

.holder-rich-subrow {
  background: rgba(0, 0, 0, 0.18);
}
.holder-rich-cell {
  padding: 1rem 1.4rem !important;
  border-top: 1px dashed var(--color-border, #2a2a32);
  border-bottom: 1px dashed var(--color-border, #2a2a32);
}

.holder-rich-empty {
  color: var(--color-text-muted, #6b7280);
  font-size: 0.82rem;
  font-style: italic;
  padding: 0.5rem 0;
}

.holder-rich-grid {
  display: grid;
  /* auto-fit so a single block (when only one of hasAgentData /
   * hasWalletData is true — common during freshness drift between
   * intel.json and holdings.json derivations) fills the row instead
   * of leaving an empty right column. Pre-2026-06-21 the fixed 2-col
   * grid showed visual asymmetry. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem 2rem;
}

.holder-rich-block-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6b7280);
  font-weight: 600;
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border, #2a2a32);
}

.holder-rich-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  row-gap: 0.4rem;
  column-gap: 1rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.82rem;
}
.holder-rich-dl-row {
  display: contents;
}
.holder-rich-dl dt {
  color: var(--color-text-muted, #6b7280);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.holder-rich-dl dd {
  margin: 0;
  color: var(--color-text, #e5e7eb);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: right;
}

.holder-rich-dl dd.holder-rich-pos { color: var(--color-positive, #4ade80); }
.holder-rich-dl dd.holder-rich-neg { color: var(--color-negative, #f87171); }

@media (max-width: 760px) {
  .holder-rich-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .holder-rich-cell {
    padding: 0.85rem 0.65rem !important;
  }
  .holder-rich-dl {
    font-size: 0.76rem;
    column-gap: 0.6rem;
  }
}
