/* ============================================================
   RESEARCH / PAPERS
   ============================================================ */
#research {
    padding: 80px 0;
    background: var(--off-white);
}

/* Card container */
.paper-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    cursor: pointer;
    transition: box-shadow var(--ease);
}
.paper-card:hover {
    box-shadow: var(--shadow-md);
}

/* ── Front face (always visible) ── */
.paper-front {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: center;
    padding: 28px;
}

.paper-fig {
    min-height: 170px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.paper-fig img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.paper-display-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 10px;
}

.paper-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ── Hover hint ── */
.hover-hint {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.75rem;
    color: var(--muted);
    font-style: italic;
    pointer-events: none;
    transition: opacity var(--ease);
}
.paper-card:hover .hover-hint,
.paper-card.overlay-active .hover-hint {
    opacity: 0;
}

/* ── Overlay (appears on hover) ── */
.paper-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 58, 92, 0.96);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
    overflow-y: auto;
}
.paper-card:hover .paper-overlay,
.paper-card.overlay-active .paper-overlay {
    opacity: 1;
}

.paper-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: white;
}
.paper-overlay h3 a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.paper-overlay h3 a:hover {
    color: #aed4f0;
}

.paper-summary {
    font-size: 0.93rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}