/* see CLAUDE_notes.md */

/* ── List ──────────────────────────────────────────────────────────── */
.prp-list { display: flex; flex-direction: column; }

/* ── One reference ─────────────────────────────────────────────────── */
.prp-ref {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color, #eef2f7);
}
.prp-ref:hover { background: rgba(37, 99, 235, 0.035); }

/* ── Line 1 — {Year} {Article type} {Journal} ──────────────────────── */
.prp-ref-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}
.prp-ref-year {
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: var(--text-main, #1e293b);
    background: var(--border-color, #e2e8f0);
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    /* The Latest Research card puts a full publication date in this pill
       ("2024 Jul 15"), so it must not break across lines mid-date. */
    white-space: nowrap;
}
.prp-ref-type {
    font-size: var(--fs-2xs);
    font-weight: 600;
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    background: #e2e8f0;
    color: #1e293b;
    text-transform: capitalize;
}
.prp-ref-access {
    font-size: var(--fs-2xs);
    font-weight: 700;
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    line-height: 1.4;
}
/* Free to read. Not the same as an open licence — this says a reader can
   open it, nothing about what we are permitted to do with it. */
.prp-ref-access.is-free { background: #dcfce7; color: #166534; }
/* Subscription required. Rendered ONLY for an explicit 'N'; an unchecked
   publication shows no marker at all. */
.prp-ref-access.is-paid { background: #fee2e2; color: #991b1b; }
/* The free full text: the only link in the row that is not grey, because it
   is the only one that reliably opens the paper. */
.prp-ref-link.is-free        { color: #3f8a5c; }
.prp-ref-link.is-free:hover,
.prp-ref-link.is-free:focus-visible { color: #166534; }

.prp-ref-type[data-t="rct"],
.prp-ref-type[data-t="clinical trial"]      { background: #dcfce7; color: #166534; }
.prp-ref-type[data-t="meta-analysis"],
.prp-ref-type[data-t="systematic review"]   { background: #dbeafe; color: #1e40af; }
.prp-ref-type[data-t="review"]              { background: #ede9fe; color: #5b21b6; }
.prp-ref-type[data-t="animal"],
.prp-ref-type[data-t="in vivo"]             { background: #fef3c7; color: #92400e; }
.prp-ref-type[data-t="in-vitro"]            { background: #fae8ff; color: #86198f; }
.prp-ref-type[data-t="observational"]       { background: #ffedd5; color: #9a3412; }
.prp-ref-journal {
    font-size: var(--fs-xs);
    color: var(--text-muted, #6b7280);
    font-style: italic;
}

/* ── Line 2 — title (plain text, deliberately NOT a link) ──────────── */
.prp-ref-title {
    font-size: var(--fs-sm);
    line-height: 1.35;
    color: var(--text-main, #1e293b);
    margin-bottom: 0.4rem;
}

/* ── Line 3 — DOI / PubMed / PMC (label only, one shared colour) ───── */
.prp-ref-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.prp-ref-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--fs-2xs);
    font-weight: 600;
    text-decoration: none;
    padding: 0.1rem 0;
    color: var(--text-muted, #6b7280);
    background: none;
    border: 0;
    transition: color 120ms;
}
.prp-ref-link:hover,
.prp-ref-link:focus-visible {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
}
