/* Inline citation markers — links rewritten to /osint/reference/<pk>/ by
   app_rag_reference.services.postprocess. Picks up the per-tenant accent
   colour set in Settings → Style (e.g. orange on fondsmarins). Apps that
   want a different look (L1 pill) override with a more specific selector. */
a[href^="/osint/reference/"] {
    color: var(--accent-highlight);
    text-decoration: none;
}
a[href^="/osint/reference/"]:hover { text-decoration: underline; }

/* Hover popover for citation markers. Loaded once via base.html. */
.ref-popover {
    position: absolute;
    z-index: 9999;
    max-width: 360px;
    background: var(--bg-elevated, #1f2330);
    color: var(--text-primary, #e6e8ee);
    border: 1px solid var(--border, #2a2f3d);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    pointer-events: auto;
}
.ref-popover[hidden] { display: none; }
.ref-popover-title { font-weight: 600; margin-bottom: 4px; }
.ref-popover-meta { color: var(--text-muted, #8b93a7); font-size: 0.75rem; margin-bottom: 6px; }
.ref-popover-meta span { margin-right: 4px; }
.ref-popover-body { margin-bottom: 8px; }
.ref-popover-actions a {
    color: var(--accent-highlight, #6aa3ff);
    text-decoration: none;
    margin-right: 10px;
    font-size: 0.78rem;
}
.ref-popover-actions a:hover { text-decoration: underline; }
