/* ── What renderAnswer() emits ──
   The numbered citation badges and their popovers, moved out of chat.css so the
   rabbi workspace can style them without inheriting chat.css's full-height,
   overflow:hidden page layout — which would stop the dashboard scrolling.
   Lives beside answer-render.js: whoever loads that script needs this file. */

/* Failsafe: hide any <source> elements that slip through renderAnswer() */
source { display: none !important; }

/* ── Source citation badges ── */
.src-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: super;
    margin: 0 1px;
    user-select: none;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s, transform 0.12s;
}
.src-ref:hover,
.src-ref:focus {
    background: #1d4ed8;
    transform: scale(1.2);
    outline: none;
}
[data-theme="dark"] .src-ref { background: #3b82f6; }
[data-theme="dark"] .src-ref:hover,
[data-theme="dark"] .src-ref:focus { background: #60a5fa; }

/* ── Popover styling ── */
.popover { font-size: 0.875rem; }
.popover-header { font-size: 0.82rem; font-weight: 600; }
[data-theme="dark"] .popover { background: #1e1e2e; border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .popover-header { background: #2a2a3e; color: #e2e8f0; border-bottom-color: rgba(255,255,255,0.1); }
