/* ==========================================================================
   research.css: styles used only on the Research page. Loads after site.css.
   ========================================================================== */

/* ---------- Collaboration map ---------- */
.map-wrap { position: relative; touch-action: pan-y; }
.map {
    width: 100%;
    height: clamp(22rem, 46vw, 42rem);
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--muted);
}
.map[data-state] { display: grid; place-items: center; }   /* only while showing "Loading map…" or an error */

.net-zoom { position: absolute; right: 0.6rem; bottom: 0.6rem; display: grid; gap: 0.3rem; }
.net-zoom button {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: rgba(242, 245, 245, 0.92);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.net-zoom button:hover { border-color: var(--muted); }
.net-zoom button:active { background: #fff; }
.net-reset {
    padding: 0;
    border: 0;
    background: none;
    color: var(--link);
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    cursor: pointer;
}
.net-reset:hover { text-decoration-thickness: 2px; }
.map__hint {
    margin: 0.25rem 0 0;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
}
.collab {
    margin: 1.25rem 0 0;
    padding: 0 0 0 1.75rem;
    columns: 2 16rem;
    column-gap: 2rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.5;
}
.collab li { margin: 0 0 0.45rem; break-inside: avoid; }
.collab li::marker { color: var(--muted); }
.collab li.is-dim { opacity: 0.35; }

/* ---------- Full-width block variant (used for Research collaborations) ---------- */
.block--wide { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
.block--wide .block__head { position: static; }
.block--wide .block__body { max-width: none; }

/* ---------- Collaboration network ---------- */
.topic-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.topic-link::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--dot);
}
.topic-link[aria-current="true"] { border-color: var(--ink); background: #fff; }

.net { position: relative; width: 100%; height: clamp(22rem, 40vw, 34rem); }
.net svg { display: block; width: 100%; height: 100%; touch-action: pan-y; }

.net-edge { stroke: #A9BAC0; stroke-linecap: round; transition: opacity 0.2s; }
.net-edge--peer { stroke: #C9D4D8; }
.net-node { cursor: grab; touch-action: none; outline: none; transition: opacity 0.2s; }
.net-node:active { cursor: grabbing; }
.net-node circle { stroke: var(--paper); stroke-width: 2; }
.net-node:focus-visible circle, .net-node.is-selected circle { stroke: var(--ink); stroke-width: 3; }
.net-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    fill: var(--ink);
    text-anchor: middle;
    paint-order: stroke;
    stroke: var(--paper);
    stroke-width: 3px;
    stroke-linejoin: round;
    pointer-events: none;
}
.net-node--me .net-label { font-size: 13px; font-weight: 600; }
.is-dim { opacity: 0.16; }

.net-tip {
    position: absolute;
    z-index: 2;
    max-width: 16rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.35;
    pointer-events: none;
    transform: translate(-50%, -100%);
}
.net-tip strong { display: block; font-weight: 600; }

.net-detail {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--rule);
    min-height: 7.5rem;
}
.net-detail > * { margin: 0; }
.net-detail > * + * { margin-top: 0.45rem; }
.net-detail__name { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.net-detail__sub { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.net-detail__list { padding: 0; list-style: none; display: grid; gap: 0.4rem; font-size: 0.95rem; line-height: 1.4; }
.net-detail__list span { margin-right: 0.5rem; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.net-detail__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* a paper you jumped to from the network */
.pubs li:target {
    background: rgba(11, 107, 112, 0.09);
    box-shadow: -0.6rem 0 0 rgba(11, 107, 112, 0.09), 0.6rem 0 0 rgba(11, 107, 112, 0.09);
    border-radius: 2px;
}

@media (max-width: 820px) {
}
