/*
 * PerpMetric Frontend Clarity Layer v2
 * Presentation only.
 */

.signal-intelligence-subtitle {
    color: var(--text-soft);
}

:root[data-theme="light"] .signal-intelligence-subtitle {
    color: #60717b;
}

:root[data-theme="light"] .research-state {
    border-color: #d5dfe3;
    background: #f8fafb;
    color: #60717b;
}

:root[data-theme="light"] .research-state strong {
    color: #17252d;
}

:root[data-theme="light"] .research-state span {
    color: #60717b;
}

/* =========================================================
   P2-A — Freshness presentation
   Presentation only; source-age semantics remain unchanged.
   ========================================================= */

.freshness-live {
    color: var(--positive, #71d6b2);
}

.badge.freshness-live.freshness-quiet,
.market-state-age.freshness-live.freshness-quiet {
    display: inline-block;
    width: 6px;
    min-width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: currentColor;
    font-size: 0;
    line-height: 0;
}

.freshness-degraded {
    color: var(--warning, #e5bf72);
}

.badge.freshness-degraded {
    border-color: rgba(229, 191, 114, 0.24);
    background: rgba(229, 191, 114, 0.08);
}

.freshness-stale {
    color: var(--negative, #e58686);
}

.badge.freshness-stale {
    border-color: rgba(229, 134, 134, 0.26);
    background: rgba(229, 134, 134, 0.08);
}

.freshness-unavailable {
    color: var(--text-muted, #7f919b);
}

.badge.freshness-unavailable {
    border-color: var(--line-soft);
    background: rgba(140, 173, 189, 0.04);
}

:root[data-theme="light"] .freshness-live {
    color: #08775f;
}

:root[data-theme="light"] .freshness-degraded {
    color: #946414;
}

:root[data-theme="light"] .freshness-stale {
    color: #b1434e;
}

:root[data-theme="light"] .freshness-unavailable {
    color: #71868f;
}
