/* XRP/USD price chip — base styles, in ONE place.
 *
 * Loaded once via templates/_vibes_head.html, which index.html, wallet.html
 * and tokens.html already include. Before this file the same appearance was
 * redeclared in _nav.html (.nav .xrp-chip) and wallet.html
 * (.xrp-chip-wallet), which is how the two surfaces could drift apart.
 *
 * KEYED ON .xrp-price-chip, NOT .xrp-chip (Charlie ruling 2026-12-03).
 * index.html's unscoped .xrp-chip rules belong to a DIFFERENT component —
 * the chips around the XRP constellation (.xrp-constellation), with
 * .dot/.v/-qual children. The two components collide on that class name, so
 * keying the shared base on .xrp-chip would restyle the constellation chips
 * on the homepage and the wallet pill everywhere. The partial still EMITS
 * xrp-chip as well, because app.py::_static_unavailable_chip() builds the
 * failure chip as a Python string with that class and
 * tests/test_price_chip_render.py::_hovers() matches on it.
 *
 * _nav.html keeps only its .nav-scoped PLACEMENT rules (the bar's own
 * padding/size, and the <=780px hide). Everything else is here.
 */

.xrp-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  color: rgba(220, 235, 255, 0.92);
  font-family: var(--mono, monospace);
  letter-spacing: 0.04em;
}

/* The freshness marker ("· as of 3:50 PM ET"). Quieter than the price: it
 * qualifies the number rather than competing with it. */
.xrp-price-chip .src {
  color: rgba(160, 180, 210, 0.6);
  font-size: 0.85em;
}

/* Withheld-price state. A withheld price is always stated explicitly, never
 * rendered as an empty gap. Amber, not red: nothing is broken for the
 * visitor, we simply have no number we can stand behind. */
.xrp-price-chip.xrp-chip-unavailable {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.06);
  color: #f59e0b;
}

/* ── Wallet identity pill ────────────────────────────────────────────────
 * Same data and same verdict as the nav chip (one partial), different fit:
 * it sits among other identity labels in a narrow column.
 *
 * SMALL RADIUS, not a 999px pill (Charlie, 2026-12-01). At 390px the fully
 * rounded shape could not contain wrapped text — the second line sat
 * visibly outside the curve, because a 999px radius on a two-line box
 * curves the ends past the text box. 6px tolerates wrapping; flex-wrap and
 * max-width:100% keep it inside its column.
 */
.xrp-price-chip.xrp-chip-wallet {
  gap: 0.4em;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: 0.4em;
  padding: 0.25em 0.6em;
  border-radius: 6px;
  font-size: var(--fs-2xs);
  line-height: 1.45;
}

.xrp-price-chip.xrp-chip-wallet .src {
  color: rgba(160, 180, 210, 0.7);
}
