:root{--bg:#fafafa;--panel:#fff;--text:#1f2937;--muted:#64748b;--line:#e5e7eb;--blue:#2457a6;--soft:#eef5ff;--shadow:0 12px 30px rgba(15,23,42,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}a{color:var(--blue);text-decoration:none}h1{font-size:clamp(2.4rem,6vw,5rem);line-height:1;margin:.2em 0}h2{font-size:2rem;margin:0 0 .6rem}h3{margin:.2rem 0}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:14px 5vw;background:rgba(250,250,250,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;color:var(--text)}.brand img{width:32px;height:32px}.topbar nav{display:flex;gap:1rem;flex-wrap:wrap}.section{max-width:1120px;margin:0 auto;padding:64px 5vw}.hero{display:grid;grid-template-columns:minmax(0,1.25fr) 330px;gap:48px;align-items:center}.eyebrow{color:var(--blue);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem}.future{font-weight:750;font-size:1.15rem}.lead{font-size:1.08rem}.portrait{background:var(--panel);padding:16px;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.portrait img{width:100%;display:block;border-radius:16px}.button{display:inline-block;background:var(--blue);color:white;padding:.8rem 1rem;border-radius:999px;font-weight:700;margin:.35rem .4rem .35rem 0}.button.ghost{background:var(--soft);color:var(--blue)}.icons{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.icons a{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 .65rem;border:1px solid var(--line);border-radius:999px;background:white;font-weight:800}.icons.large a{min-width:auto}.compact{padding-top:16px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.stat,.card,.row-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.stat{font-weight:800;text-align:center}.two{display:grid;grid-template-columns:1fr 1fr;gap:28px}.focal{background:linear-gradient(135deg,#fff,var(--soft));border-color:#b7d3ff}.ticks{padding-left:1.2rem}.ticks li{margin:.4rem 0}.section-intro{color:var(--muted)}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.muted{color:var(--muted)}.map{margin-top:18px}.country-list{display:flex;gap:.5rem;flex-wrap:wrap}.country-list span{background:var(--soft);border:1px solid #cfe2ff;border-radius:999px;padding:.35rem .7rem;font-weight:700}.plain{padding-left:1.2rem}.plain li{margin:.5rem 0}.horizontal-list{display:grid;gap:12px}.row-card{display:grid;grid-template-columns:280px 1fr;gap:18px;align-items:start}.contact{text-align:center}footer{text-align:center;color:var(--muted);padding:36px 5vw;border-top:1px solid var(--line)}code{background:#f1f5f9;padding:.15rem .3rem;border-radius:6px}@media(max-width:800px){.hero,.two,.project-grid,.stats{grid-template-columns:1fr}.row-card{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.topbar nav{font-size:.95rem}}

/* MAGNET editable Europe tile map */
.map-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;flex-wrap:wrap}.legend{display:flex;gap:.5rem;flex-wrap:wrap;font-size:.9rem}.legend span{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted);font-weight:700}.legend i{width:.8rem;height:.8rem;border-radius:50%;display:inline-block;border:1px solid var(--line)}.legend .active{background:#2457a6}.legend .candidate{background:#7cc3ff}.legend .interested{background:#cfe8ff}.legend .pending{background:#e5e7eb}.europe-tile-map{margin-top:1rem;display:grid;grid-template-columns:repeat(8,minmax(54px,1fr));grid-template-rows:repeat(5,72px);gap:8px;padding:18px;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#eef5ff);border:1px solid #dbeafe;overflow:auto}.country-tile{border:1px solid #cbd5e1;border-radius:14px;padding:.55rem;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-width:54px;box-shadow:0 6px 14px rgba(15,23,42,.06)}.country-tile strong{font-size:1.05rem;line-height:1}.country-tile small{font-size:.68rem;line-height:1.1;margin-top:.25rem}.status-active{background:#2457a6;color:#fff;border-color:#17427f}.status-candidate{background:#7cc3ff;color:#0f2f55;border-color:#5aa7e8}.status-interested{background:#dbeafe;color:#1e3a5f;border-color:#b7d6ff}.status-pending{background:#f1f5f9;color:#475569}.add-country-help{margin-top:1rem}.add-country-help summary{cursor:pointer;font-weight:800;color:var(--blue)}.add-country-help pre{white-space:pre-wrap;background:#f8fafc;border:1px solid var(--line);padding:1rem;border-radius:12px}@media(max-width:800px){.europe-tile-map{grid-template-columns:repeat(4,minmax(64px,1fr));grid-auto-rows:72px}.country-tile{grid-column:auto!important;grid-row:auto!important}}


/* Research-theme keyword boxes */
.keyword-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}
.keyword{
  padding:10px 16px;
  border-radius:999px;
  background:#eef4ff;
  border:1px solid #cddcf8;
  color:#2457a6;
  font-weight:650;
  font-size:.95rem;
  transition:.2s ease;
}
.keyword:hover{
  transform:translateY(-2px);
  background:#2457a6;
  color:white;
}
.magnet-alone .magnet-card{
  max-width:980px;
  margin:0 auto;
}
.portrait{
  text-align:center;
}
.under-photo{
  justify-content:center;
  margin-top:12px;
}
.under-photo a{
  min-width:42px;
}

/* Grouped teaching cards */
.teaching-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  margin-top:18px;
}
.teaching-card h3{margin-top:0}
.course-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.course-tags span{
  padding:7px 11px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid var(--line);
  font-size:.9rem;
  font-weight:650;
}


.publication-grid{
    display:grid;
    gap:24px;
    margin-top:24px;
}

.publication-card{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:20px;
    align-items:center;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px;
}

.publication-image img{
    width:100%;
    border-radius:12px;
    display:block;
}

.publication-content h3{
    margin-top:0;
}

/* Research theme color categories */
.keyword-methodology{background:#e8f1ff;color:#1d4ed8;border-color:#bfd7ff}
.keyword-health{background:#e8fff0;color:#15803d;border-color:#bbf7d0}
.keyword-clinical{background:#fff1e8;color:#c2410c;border-color:#fed7aa}
.keyword-evidence{background:#f3e8ff;color:#7e22ce;border-color:#e9d5ff}
.keyword-behavioural{background:#fff7cc;color:#a16207;border-color:#fde68a}
.keyword-computing{background:#ecfeff;color:#0e7490;border-color:#a5f3fc}

/* Manuscripts page */
.page-title{padding-bottom:20px}
.manuscript-list{padding-top:20px;display:grid;gap:18px}
.manuscript-card{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:24px;
  align-items:center;
}
.manuscript-figure img{
  width:100%;
  display:block;
  border-radius:18px;
  border:1px solid var(--line);
  background:#f8fafc;
}
@media(max-width:800px){.manuscript-card{grid-template-columns:1fr}.manuscript-figure{max-width:260px}}

.publication-footer{
  margin-top:28px;
}

@media(max-width:800px){
  .publication-card{
    grid-template-columns:1fr;
  }
  .publication-image{
    max-width:280px;
  }
}
