/* ===============================================
   INTERACTIVE PUBLICATIONS NETWORK
   Hover a node to highlight a paper + its themes.
   =============================================== */

.pub-network {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto var(--spacing-xl);
    height: 540px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(120% 120% at 50% 0%, #fbfaf8 0%, #f1efea 100%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
}

#pubNetCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

#pubNetCanvas.is-hovering {
    cursor: pointer;
}

.pub-net-tip {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    max-width: 290px;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    z-index: 5;
}

.pub-net-tip.show {
    opacity: 1;
    transform: translateY(0);
}

.pub-net-tip .t-journal {
    color: var(--color-highlight);
    font-size: 0.76rem;
    margin-top: 0.3rem;
    display: block;
    font-style: italic;
}

.pub-net-tip .t-year {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.pub-net-hint {
    position: absolute;
    bottom: 0.8rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-lighter);
    pointer-events: none;
    margin: 0;
}

@media (max-width: 640px) {
    .pub-network { height: 440px; }
    .pub-net-hint { font-size: 0.62rem; }
}

/* ---- Complete publications list ---- */
.publications-full {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.pub-full-title {
    font-family: var(--font-family-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}
.pub-count {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}
.pub-year-head {
    font-family: var(--font-family-serif);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-highlight);
    margin: 1.8rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}
.pub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pub-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.2rem;
    line-height: 1.6;
    font-size: 0.96rem;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: padding-left 0.25s ease;
}
.pub-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-highlight);
    opacity: 0.55;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.pub-list li:hover {
    padding-left: 1.5rem;
}
.pub-list li:hover::before {
    transform: scale(1.5);
    opacity: 1;
}
.pub-list li strong { color: var(--color-primary); }
.pub-list li em { color: var(--color-text-light); }
.pub-list li a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.pub-list li a:hover {
    color: var(--color-highlight);
    border-bottom-color: var(--color-highlight);
}

/* ---- Research intro with animated brain GIF accent ---- */
.research-intro {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: var(--spacing-lg);
}
.research-intro .research-snippet {
    flex: 1;
    margin-bottom: 0;
}
.research-gif-wrap {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}
.research-gif {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}
@media (max-width: 720px) {
    .research-intro { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
}

/* ---- Talk photo (OHBM Bordeaux) ---- */
.talk-photo {
    margin: 0;
    width: 100%;
    max-width: 360px;
}
.talk-photo-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    display: block;
}
.talk-photo figcaption {
    margin-top: 0.7rem;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    font-style: italic;
}
.talks-photos {
    flex-direction: column;
    gap: 1.6rem;
}
.talk-photo-small {
    max-width: 240px;
}
.talk-photo-small figcaption {
    font-size: 0.72rem;
}

/* ---- "Incoming" flag on upcoming awards ---- */
.award-flag {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.12rem 0.6rem;
    font-family: var(--font-family, serif);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-highlight);
    border-radius: 999px;
    vertical-align: middle;
}
