/* PACK09K: verified-market freshness and commercial-price provenance. */
.market-freshness {
  display: grid;
  gap: .35rem;
  max-width: 23rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rubber-line);
  background: rgba(255,255,255,.045);
  color: var(--rubber-accent-bright);
}

.market-freshness > span,
.market-freshness small,
.market-value-label,
.joviaan-price-meta dt {
  color: var(--rubber-muted);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.market-freshness strong { font-size: .86rem; letter-spacing: .02em; }
.market-freshness small { letter-spacing: 0; text-transform: none; }
.market-freshness--unchanged { border-color: rgba(169,184,162,.38); }
.market-freshness--delayed { border-color: rgba(224,178,111,.55); color: #e0c28d; }
.market-freshness--error { border-color: rgba(224,178,111,.55); color: #e0c28d; }
.market-freshness--unverified { border-color: rgba(224,178,111,.55); color: #e0c28d; }

.market-value-label { margin: 0 0 -.7rem; }
.market-status--unchanged { border-color: rgba(169,184,162,.48); color: var(--rubber-accent-bright); }
.market-status--delayed,
.market-status--error,
.market-status--unverified { border-color: rgba(224,178,111,.55); color: #e0c28d; }
.market-status--manual { border-color: rgba(169,184,162,.42); }

.joviaan-price-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: .2rem 0 0;
  border-top: 1px solid var(--rubber-line);
  border-left: 1px solid var(--rubber-line);
}

.joviaan-price-meta div { min-width: 0; padding: .72rem; border-right: 1px solid var(--rubber-line); border-bottom: 1px solid var(--rubber-line); }
.joviaan-price-meta dd { margin: .35rem 0 0; color: var(--rubber-accent-bright); font-size: .75rem; overflow-wrap: anywhere; }

.admin-run-status--healthy,
.admin-run-status--unchanged,
.admin-run-status--manual { border-color: #9db69b; background: #f1f8ef; color: #264b2d; }
.admin-run-status--delayed,
.admin-run-status--error { border-color: #d5ad83; background: #fff8ee; color: #70431d; }

html[data-theme='light'] .market-freshness {
  border-color: rgba(45,68,54,.2);
  background: #fffefa;
  color: var(--ink);
  box-shadow: 0 .75rem 2rem rgba(35,55,43,.06);
}

html[data-theme='light'] .market-freshness--delayed,
html[data-theme='light'] .market-freshness--error,
html[data-theme='light'] .market-freshness--unverified { border-color: rgba(163,104,43,.42); }
html[data-theme='light'] .market-value-label,
html[data-theme='light'] .joviaan-price-meta dt { color: var(--ink-muted); }
html[data-theme='light'] .joviaan-price-meta dd { color: var(--ink); }

@media (max-width: 47rem) {
  .market-freshness { max-width: none; }
  .joviaan-price-meta { grid-template-columns: 1fr; }
}
