/* ==========================================================================
   Kendre Lab — Precision Medicine and Oncology Laboratory, NIT Rourkela
   Single shared stylesheet for all pages.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy-900: #072135;
  --navy-800: #0d3b5c;
  --navy-700: #12507b;
  --blue-600: #1c6fa8;
  --blue-500: #2b8fd0;
  --blue-100: #e3f1fa;
  --blue-050: #f2f8fc;

  --accent:   #d97742;      /* warm counterpoint for CTAs / highlights */
  --accent-d: #bd5f2d;

  --ink-900: #10202c;
  --ink-700: #2f4553;
  --ink-500: #5b7383;
  --ink-300: #93a7b4;

  --surface:    #ffffff;
  --surface-alt:#f6f9fb;
  --line:       #e0e9ef;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(7, 33, 53, .07), 0 1px 2px rgba(7, 33, 53, .05);
  --shadow-md: 0 6px 18px rgba(7, 33, 53, .09), 0 2px 6px rgba(7, 33, 53, .05);
  --shadow-lg: 0 18px 46px rgba(7, 33, 53, .16);

  --header-h: 74px;
  --maxw: 1180px;

  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--blue-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-d); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.22;
  margin: 0 0 .55em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding: 76px 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: 52px 0; }

.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; margin: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--blue-600);
  margin-bottom: .7rem;
}
.rule { width: 62px; height: 3px; background: var(--accent); border-radius: 3px; margin: 0 auto 1.1rem; }
.section-head--left .rule { margin-inline: 0; }
/* section heading with a mark alongside it (used once, on Alumni) */
.section-head--mark { display: flex; align-items: center; gap: 20px; }
.section-head--mark .head-mark { width: 58px; height: 58px; flex: none; }
/* institutional roles, set quietly beneath the Appointments timeline */
.pi-roles { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line, #e4ebf0); }
.pi-roles h4 { margin: 0 0 .45em; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 700; }
.pi-roles p { margin: 0; font-size: .92rem; color: var(--ink-700); line-height: 1.65; }
/* how a scholar's position is funded, on the card face */
.member-fund { margin: 3px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--blue-600); }
/* the one personal line at the foot of a scholar's card */
.modal-personal { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .93rem; font-style: italic; color: var(--ink-500); }
@media (max-width: 560px) { .section-head--mark .head-mark { width: 44px; height: 44px; } }

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .97rem;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-d); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.72); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn--outline:hover { background: var(--blue-600); color: #fff; }

.link-more { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; }
.link-more::after { content: "\2192"; transition: transform .18s ease; }
.link-more:hover::after { transform: translateX(4px); }

/* Resources: the lab's own tool, given room */
.tool-feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); }
@media (max-width: 820px) { .tool-feature { grid-template-columns: 1fr; } }
.tool-feature-body { padding: 38px 40px; }
.tool-feature-body h2 { margin: 0 0 .2em; }
.tool-feature-body h2 a { color: var(--navy-900); }
.tool-feature-body h2 a:hover { color: var(--blue-600); }
.tool-feature-body h2 a::after { content: "\2197"; font-size: .58em; margin-left: .22em;
  vertical-align: super; color: var(--blue-600); }
.tool-feature-body .app-links { display: flex; align-items: center; gap: 22px; margin: 26px 0 0; }
.tool-feature-side { background: var(--navy-800); color: #dbe9f2; padding: 38px 34px;
  display: flex; flex-direction: column; justify-content: center; }
.tf-label { margin: 0 0 14px; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #9dd6f5; }
.tf-formula { margin: 0 0 18px; font-family: var(--font-head); font-size: 1.1rem; color: #fff;
  line-height: 1.5; }
.tf-note { margin: 0; font-size: .88rem; color: #b9cdda; line-height: 1.6; }

/* Resources: what we will send */
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; }
.share { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; flex-direction: column; }
.share h3 { font-size: 1.15rem; margin-bottom: .5em; }
.share p { font-size: .95rem; flex: 1; }
.share-files { list-style: none; margin: 0 0 18px; padding: 14px 0 0;
  border-top: 1px solid var(--line); }
.share-files li { position: relative; padding-left: 22px; margin-bottom: .45em; font-size: .92rem; }
.share-files li::before { content: "\f019"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; font-size: .78em; color: var(--blue-600); }
.share-files li:last-child { margin-bottom: 0; }
.share .link-more { font-size: .92rem; }

/* Resources: a short row of starting points, not a link farm */
.start-block { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.start-label { margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-500); }
.start-row { display: flex; flex-wrap: wrap; gap: 10px; }
.start-chip { display: inline-flex; flex-direction: column; gap: 1px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 15px;
  transition: border-color .18s ease, transform .18s ease; }
.start-chip:hover { border-color: var(--blue-600); transform: translateY(-2px); }
.start-chip b { font-size: .93rem; color: var(--navy-900); }
.start-chip b::after { content: "\2197"; font-size: .72em; margin-left: .22em; vertical-align: super;
  color: var(--blue-600); }
.start-chip span { font-size: .8rem; color: var(--ink-500); }

/* ---------- Teaching page ---------- */
.teach-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px 52px; align-items: center; }
@media (max-width: 860px) { .teach-top { grid-template-columns: 1fr; gap: 30px; } }
.teach-lede { font-size: 1.14rem; color: var(--ink-700); margin-bottom: 0; }
.teach-figure { margin: 0; }
.teach-figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md); }
.teach-figure figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-500); }

.tstat-row { display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: 16px 38px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .tstat-row { grid-template-columns: repeat(2, 1fr); gap: 22px 20px; } }
.tstat b { display: block; font-family: var(--font-head); font-size: 1.95rem; color: var(--navy-900);
  line-height: 1.05; letter-spacing: -.01em; }
.tstat span { display: block; margin-top: 4px; font-size: .76rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-500); }

/* the course index: collapsed it is a list, expanded it is a spread */
.course-list { display: flex; flex-direction: column; gap: 12px; }
.course { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; scroll-margin-top: calc(var(--header-h) + 20px);
  transition: box-shadow .2s ease, border-color .2s ease; }
.course:hover { border-color: #cfe0ec; box-shadow: var(--shadow-sm); }
.course[open] { box-shadow: var(--shadow-md); border-color: #cfe0ec; }
.course > summary { cursor: pointer; list-style: none; display: grid;
  grid-template-columns: 92px 1fr auto 22px; align-items: center; gap: 20px;
  padding: 21px 26px; }
.course > summary::-webkit-details-marker { display: none; }
.course > summary::after { content: ""; width: 9px; height: 9px; justify-self: end;
  border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .22s ease; }
.course[open] > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.c-code { font-size: .74rem; font-weight: 700; letter-spacing: .07em; color: var(--blue-600);
  background: var(--blue-100); border-radius: 6px; padding: 5px 0; text-align: center; }
.c-name { font-family: var(--font-head); font-size: 1.28rem; font-weight: 600; color: var(--navy-900); }
.c-meta { font-size: .84rem; color: var(--ink-500); }
@media (max-width: 720px) {
  .course > summary { grid-template-columns: 78px 1fr 22px; gap: 14px; }
  .c-meta { grid-column: 2; font-size: .8rem; }
}

.c-open { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px;
  padding: 4px 26px 30px; border-top: 1px solid var(--line); margin-top: -1px; }
@media (max-width: 860px) { .c-open { grid-template-columns: 1fr; gap: 26px; } }
.c-open > * { padding-top: 26px; }
.c-when { margin: 0 0 20px; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-d); }
.c-main h4, .c-side h4 { margin: 0 0 .9em; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-500); font-family: var(--font-body); font-weight: 700; }
.c-side h4 { margin-top: 26px; }
.c-side h4:first-child { margin-top: 0; }
.syl { margin-bottom: 16px; }
.syl:last-child { margin-bottom: 0; }
.syl h5 { margin: 0 0 .25em; font-family: var(--font-body); font-size: .95rem; font-weight: 700;
  color: var(--navy-900); }
.syl p { margin: 0; font-size: .93rem; }

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding-left: 24px; margin-bottom: .5em; font-size: .92rem; }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; top: -1px;
  color: var(--blue-600); font-weight: 700; }
.tick-list li:last-child { margin-bottom: 0; }
.c-paper { margin: 0; font-size: .93rem; }
.book-label { margin: 0 0 .4em; font-size: .78rem; font-weight: 700; color: var(--navy-900); }
.c-side .plain-list { margin-bottom: 1.1em; font-size: .9rem; }
.lib-link { margin: 0; font-size: .88rem; }
.lib-link a::after { content: "\2197"; font-size: .74em; margin-left: .2em; vertical-align: super; }

.teach-foot { max-width: 760px; margin-top: 44px; }

/* Teaching: workshops */
.shop-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.shop { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 24px 28px; }
.shop-when { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-d); }
.shop h3 { margin: 8px 0 .45em; font-size: 1.18rem; }
.shop p { margin: 0; font-size: .95rem; }

.shop-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
@media (max-width: 760px) { .shop-photos { grid-template-columns: 1fr; } }
.shop-photos figure { margin: 0; }
.shop-photos img { width: 100%; aspect-ratio: 1500/691; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.shop-photos figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-500); }

/* Positions: what the interview covers */
.interview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.interview-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; }
.interview-block h3 { font-size: 1.12rem; margin-bottom: .7em; }
.interview-block .plain-list { margin-bottom: 0; }
.interview-note { margin-top: 24px; background: var(--blue-050); border-left: 3px solid var(--blue-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; }
.interview-note p { font-size: .97rem; }

/* Positions: FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 17px 34px 17px 0; position: relative;
  font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; color: var(--navy-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; font-weight: 400;
  color: var(--blue-600); line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--blue-600); }
.faq-item p { margin: 0 0 20px; color: var(--ink-700); }

/* institute emblem in the footer */
.footer-inst { display: inline-flex; align-items: center; gap: 11px; margin-top: 20px;
  background: #fff; border-radius: 10px; padding: 8px 13px 8px 9px; }
.footer-inst:hover { background: #f2f8fc; }
.footer-inst img { width: 40px; height: 40px; flex: none; }
.footer-inst span { font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; line-height: 1.3; color: var(--navy-900); text-transform: uppercase; }

/* recruiting strip, directly under the hero */
.openings { background: var(--blue-100); border-bottom: 1px solid #cfe3f2; }
.openings-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  padding-block: 13px; }
.openings p { margin: 0; font-size: .97rem; color: var(--navy-900); flex: 1 1 260px; }
.openings .link-more { font-size: .93rem; }
.openings-flag { display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--accent-d); }
.openings-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217, 119, 66, .55); animation: openings-pulse 2.4s ease-out infinite; }
@keyframes openings-pulse {
  70%  { box-shadow: 0 0 0 9px rgba(217, 119, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 66, 0); }
}
@media (prefers-reduced-motion: reduce) { .openings-dot { animation: none; } }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand img, .brand svg { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; color: var(--navy-900); }
.brand-sub  { font-size: .705rem; letter-spacing: .075em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; color: var(--ink-700);
}
.nav-list a:hover { background: var(--blue-050); color: var(--blue-600); }
.nav-list a.is-active { color: var(--blue-600); background: var(--blue-100); }
/* eight items across: trim the gaps on narrower desktops so nothing wraps */
@media (min-width: 1061px) and (max-width: 1240px) {
  .nav-list a, .has-sub > button { padding-inline: 10px; font-size: .92rem; }
  .brand-sub { display: none; }
}

.has-sub > button {
  display: inline-flex; align-items: center; gap: .4em;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink-700);
  background: none; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 8px;
}
.has-sub > button:hover, .has-sub.is-open > button { background: var(--blue-050); color: var(--blue-600); }
.has-sub > button .caret { font-size: .62rem; transition: transform .2s ease; }
.has-sub.is-open > button .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 216px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { padding: 9px 12px; font-weight: 500; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  padding: 10px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; background: rgba(7,33,53,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; z-index: 98;
}
.nav-scrim.is-active { opacity: 1; visibility: visible; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; z-index: 99;
    width: min(320px, 84vw); height: calc(100dvh - var(--header-h));
    background: #fff; border-left: 1px solid var(--line);
    padding: 18px; overflow-y: auto;
    transform: translateX(105%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a, .has-sub > button { width: 100%; padding: 13px 14px; font-size: 1rem; }
  .has-sub > button { justify-content: space-between; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--blue-100);
    border-radius: 0; margin: 2px 0 6px 14px; padding: 0 0 0 6px;
    display: none;
  }
  .has-sub.is-open .submenu { display: block; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; min-height: min(74vh, 620px);
  display: grid; place-items: center; overflow: hidden;
  background: var(--navy-900);
}
.hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s ease;
  background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; }
/* Three sober rendered backgrounds. The linear-gradient behind each URL is a
   fallback, so the hero still looks right if an SVG ever fails to load. */
.hero-slide--1 {
  background-image: url("../images/slides/hero-1.svg"),
                    linear-gradient(125deg, #061d2e, #10405f);
}
.hero-slide--2 {
  background-image: url("../images/slides/hero-2.svg"),
                    linear-gradient(125deg, #07242e, #124658);
}
.hero-slide--3 {
  background-image: url("../images/slides/hero-3.svg"),
                    linear-gradient(125deg, #091d31, #1a3c60);
}
/* Keeps the headline legible whatever sits behind it */
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(7,33,53,.52), transparent 62%),
              linear-gradient(to bottom, rgba(7,33,53,.34), rgba(7,33,53,.60));
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 90px 22px; max-width: 850px; }
.hero-inner .eyebrow { color: #9dd6f5; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 3.7rem); margin-bottom: .35em; }
.hero-tag { color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 2vw, 1.24rem); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 9px; }
.hero-dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,.75); background: transparent; transition: background .2s ease;
}
.hero-dots button[aria-current="true"] { background: #fff; }

/* ---------- 6. Page banner (interior pages) ---------- */
.page-banner {
  background: linear-gradient(125deg, var(--navy-900), var(--navy-700) 65%, var(--blue-600));
  color: #fff; padding: 62px 0 56px; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 18%, rgba(255,255,255,.09), transparent 40%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0; font-size: 1.05rem; }
.page-banner .eyebrow { color: #9dd6f5; }

/* ---------- 7. Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9dceb; }
.card > :last-child { margin-bottom: 0; }

.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  color: #fff; font-size: 1.28rem; margin-bottom: 18px;
}

/* ---------- 8. About / intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.split--news { grid-template-columns: 1.16fr .84fr; align-items: start; gap: 46px; }
@media (max-width: 900px) { .split, .split--news { grid-template-columns: 1fr; gap: 34px; } }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* the co-mutation diagram, now heading the research-areas band */
.research-figure { margin: 0 auto 42px; max-width: 720px; text-align: center; }
.research-figure img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  background: #fff; border: 1px solid var(--line);
}
.research-figure figcaption {
  margin-top: 14px; font-size: .92rem; color: var(--ink-500); font-style: italic;
}

.stat-row { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 28px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.05rem; color: var(--blue-600); line-height: 1; }
.stat span { font-size: .87rem; color: var(--ink-500); font-weight: 600; letter-spacing: .03em; }

/* ---------- 9. News ---------- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.news-item > button {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  font: inherit; background: none; border: 0; cursor: pointer; padding: 16px 18px; color: var(--navy-900);
}

/* --- side panel beside the About block, with its own scroll --- */
.news-panel {
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; align-self: start;
}
.news-panel-head { margin-bottom: 16px; }
.news-panel-head h2 { font-size: 1.44rem; margin: 0; }
.news-panel-head .eyebrow { margin-bottom: .35rem; }

/* No fixed height and no inner scrollbar. The old version capped this at 448px,
   a number tuned to exactly five collapsed items at one window width — at any other
   width, zoom level or font size the list overflowed and items were silently clipped.
   The panel now sizes to its content and the page scrolls instead. */
.news-scroll {
  display: flex; flex-direction: column; gap: 10px;
}

/* stack date above title — the panel column is narrow */
.news-scroll .news-item > button { flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px 16px; }
.news-scroll .news-date { margin-top: 0; }
.news-scroll .news-title { font-size: .94rem; line-height: 1.45; }
.news-scroll .news-item .caret { position: absolute; top: 17px; right: 15px; }
.news-scroll .news-item { position: relative; }
.news-scroll .news-item > button { padding-right: 38px; }
.news-scroll .news-body { padding: 0 16px 15px; font-size: .9rem; }

/* The bottom fade gradient is gone with the scroll it used to hint at. It was
   unconditional, so it greyed out the last headline even when nothing was hidden. */
.news-panel { position: relative; }
.news-item > button:hover { background: var(--blue-050); }
.news-date {
  flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--blue-600); padding: 4px 9px; border-radius: 5px; margin-top: 2px;
}
.news-title { font-weight: 600; flex: 1; font-size: .98rem; }
.news-item .caret { margin-left: auto; color: var(--ink-300); transition: transform .22s ease; font-size: .78rem; }
.news-item.is-open .caret { transform: rotate(180deg); }
.news-body { display: none; padding: 0 18px 18px 18px; font-size: .95rem; color: var(--ink-500); }
.news-item.is-open .news-body { display: block; }
.news-body > :last-child { margin-bottom: 0; }

/* ---------- 10. Publications ---------- */
.pub-list { display: flex; flex-direction: column; gap: 18px; }
.pub {
  display: grid; grid-template-columns: 62px 1fr; gap: 20px; align-items: start;
  padding: 24px 26px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.pub:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
.pub-year {
  font-family: var(--font-head); font-size: 1.16rem; font-weight: 600; color: var(--blue-600);
  background: var(--blue-050); border-radius: 8px; padding: 9px 0; text-align: center;
}
.pub h3 { font-size: 1.09rem; margin-bottom: .4em; }
.pub h3 a { color: var(--navy-900); }
.pub h3 a:hover { color: var(--blue-600); }
.pub-authors { font-size: .93rem; color: var(--ink-500); margin: 0 0 .35em; }
.pub-authors .me { color: var(--ink-900); font-weight: 700; }
.pub-venue { font-size: .9rem; color: var(--ink-500); margin: 0; font-style: italic; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--blue-100); color: var(--navy-700);
}
.tag--accent { background: #fbeade; color: var(--accent-d); }
@media (max-width: 560px) {
  .pub { grid-template-columns: 1fr; gap: 12px; }
  .pub-year { justify-self: start; padding: 5px 14px; }
}

/* ---------- 11. Team ---------- */
.pi-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 42px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow-md);
}
@media (max-width: 820px) { .pi-card { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; } }
.pi-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pi-role { font-weight: 600; color: var(--blue-600); margin-bottom: .3em; }
.pi-affil { color: var(--ink-500); font-size: .96rem; margin-bottom: 1.2em; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 24px; }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  padding: 0; font: inherit; width: 100%; display: block;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.member-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center top; background: var(--blue-050); }
.member-body { padding: 17px 15px 21px; }
.member-body h4 { margin: 0 0 .25em; font-size: 1.02rem; }
.member-body p { margin: 0; font-size: .84rem; color: var(--blue-600); font-weight: 600; }

/* Initials avatar — the graceful fallback when a photo file is absent */
.avatar-fallback {
  width: 100%; aspect-ratio: 1/1; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--blue-600), var(--navy-800));
  letter-spacing: .04em;
}
.avatar-fallback--lg { aspect-ratio: 3/4; font-size: 4.2rem; border-radius: var(--radius); }
.avatar-fallback--wide { aspect-ratio: 16/10; font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; border-radius: var(--radius); text-align: center; padding: 20px; line-height: 1.5; }

/* ---------- 12. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: 22px; background: rgba(7,33,53,.62);
  backdrop-filter: blur(3px); overflow-y: auto;
}
.modal.is-open { display: grid; }
.modal-panel {
  position: relative; background: #fff; border-radius: var(--radius);
  max-width: 700px; width: 100%; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 230px 1fr; overflow: hidden;
  animation: pop .24s cubic-bezier(.34,1.3,.64,1);
}
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .modal-panel { grid-template-columns: 1fr; } }
.modal-media { background: var(--blue-050); }
.modal-media img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; object-position: center top; }
.modal-media .avatar-fallback { height: 100%; min-height: 230px; aspect-ratio: auto; }
.modal-body { padding: 30px 30px 32px; }
.modal-body h3 { margin-bottom: .2em; }
.modal-role { color: var(--blue-600); font-weight: 600; font-size: .92rem; margin-bottom: 1em; }
.modal-body p { font-size: .95rem; }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--navy-900); font-size: 1.35rem; line-height: 1;
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: #fff; color: var(--accent-d); }

.dl { margin: 0 0 1.1em; font-size: .92rem; }
.dl div { display: flex; gap: .5em; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.dl dt { font-weight: 700; color: var(--navy-900); flex: none; }
.dl dd { margin: 0; color: var(--ink-500); }

/* ---------- 13. Social icon row ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 9px; }
.socials a {
  width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-050); color: var(--navy-700); border: 1px solid var(--line);
  font-size: 1rem; transition: background .18s ease, color .18s ease, transform .18s ease;
}
.socials a:hover { background: var(--blue-600); color: #fff; transform: translateY(-3px); }
.socials--light a { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); color: #fff; }
.socials--light a:hover { background: #fff; color: var(--navy-900); }

/* ---------- 14. Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--blue-050);
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 13px; color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(to top, rgba(7,33,53,.85), transparent);
}

/* ---------- 15. Resources ---------- */
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .96rem;
}
.res-list li:last-child { border-bottom: 0; }
.res-list i { color: var(--blue-600); width: 20px; text-align: center; flex: none; }
.res-list .soon {
  margin-left: auto; flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-500); background: var(--surface-alt); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- 16. Positions ---------- */
.position { border-top: 4px solid var(--accent); }
.position h3 { display: flex; align-items: center; gap: .5em; }

/* ---------- 17. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines { list-style: none; margin: 0 0 22px; padding: 0; }
.contact-lines li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.contact-lines i { color: var(--blue-600); font-size: 1.05rem; width: 22px; text-align: center; flex: none; margin-top: 4px; }
.contact-lines b { display: block; color: var(--navy-900); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1px; }
.map-frame { border: 0; width: 100%; height: 330px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer p { font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .6em; font-size: .93rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img, .footer-brand svg { width: 46px; height: 46px; }
.footer-brand span { font-family: var(--font-head); font-size: 1.22rem; color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.13); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .85rem;
}

/* ---------- 19. Timeline (PI page: appointments & education) ---------- */
.timeline { border-left: 2px solid var(--blue-100); padding-left: 22px; }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue-600); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-100);
}
.tl-when {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 3px;
}
.tl-item h4 { margin: 0 0 .15em; font-size: 1.04rem; }
.tl-item p  { margin: 0; font-size: .92rem; color: var(--ink-500); }

/* ---------- 20. Plain lists inside cards ---------- */
.plain-list { list-style: none; margin: 0 0 1em; padding: 0; }
.plain-list li {
  position: relative; padding: 5px 0 5px 20px; font-size: .93rem;
  border-bottom: 1px solid var(--line);
}
.plain-list li:last-child { border-bottom: 0; }
.plain-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- 21. Grants ---------- */
.grant-list { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin-inline: auto; }
.grant {
  display: grid; grid-template-columns: 192px 1fr; gap: 28px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue-600);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.grant:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.grant-logo img { width: 100%; height: auto; display: block; }
.grant-logo .avatar-fallback {
  aspect-ratio: 240/132; border-radius: 10px; font-size: 1.5rem; font-family: var(--font-body);
  font-weight: 700; letter-spacing: .06em;
}
@media (max-width: 620px) {
  .grant { grid-template-columns: 1fr; gap: 18px; }
  .grant-logo { max-width: 192px; }
}
.grant-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.grant-amount { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--blue-600); }
.grant-period { font-size: .86rem; color: var(--ink-500); font-weight: 600; }
.grant h3 { font-size: 1.14rem; margin-bottom: .5em; }
.grant-agency { font-size: .93rem; margin-bottom: .4em; font-weight: 600; color: var(--navy-900); }
.grant-agency em { font-weight: 400; color: var(--ink-500); font-size: .9rem; }
.grant-role { font-size: .86rem; color: var(--ink-500); margin: 0; font-style: italic; }

/* funders strip beneath the grant list */
.funders { margin-bottom: 44px; text-align: center; }
.funders-label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-500); margin-bottom: 20px;
}
.funders-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px;
}
.funders-row img { width: 192px; height: auto; opacity: .9; transition: opacity .2s ease; }
.funders-row img:hover { opacity: 1; }
.funders-row .avatar-fallback {
  width: 168px; aspect-ratio: 240/132; border-radius: 10px; font-size: 1.4rem;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .06em;
}

/* ---------- 22. Alumni ---------- */
.alum-list { display: flex; flex-direction: column; gap: 2px; }
.alum {
  display: grid; grid-template-columns: 104px 1fr; gap: 20px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.alum:last-child { border-bottom: 0; }
.alum-when {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--blue-600);
  padding-top: 3px;
}
.alum h4 { margin: 0 0 .15em; font-size: 1.04rem; }
.alum-degree { margin: 0 0 .3em; font-size: .84rem; color: var(--ink-500); font-weight: 600; }
.alum-thesis { margin: 0; font-size: .93rem; }
.alum-note { margin: .4em 0 0; font-size: .87rem; color: var(--blue-600); font-style: italic; }

/* ---------- 23. Thesis line in member modals ---------- */
.thesis-title {
  font-size: .9rem; background: var(--blue-050); border-left: 3px solid var(--blue-600);
  padding: 10px 14px; border-radius: 0 6px 6px 0; margin-bottom: 1.1em;
}

/* ---------- 24. Lab apps ---------- */
.app-card--empty { border-style: dashed; background: var(--surface-alt); }
.app-kind {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .6em;
}
/* the tool's name is itself the link to the running tool */
.app-card h3 a { color: var(--navy-900); }
.app-card h3 a:hover { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.app-card h3 a::after { content: "\2197"; font-size: .72em; margin-left: .25em; color: var(--blue-600);
  vertical-align: super; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 0; }
.app-links a:not(.link-more) { font-weight: 600; font-size: .93rem; }

/* ---------- 25. Featured publications — the paper's own first page ---------- */
.pub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 34px; }
.pub-tile { display: flex; flex-direction: column; color: inherit; }
.pub-tile:hover { color: inherit; }

.pub-tile-page {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pub-tile-page img { width: 100%; height: auto; display: block; }
.pub-tile:hover .pub-tile-page { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

/* fallback when a paper has no page scan */
.pub-tile-alt {
  aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; text-align: center; padding: 26px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff;
}
.pub-tile-alt span { font-family: var(--font-head); font-size: 1.16rem; font-weight: 600; }
.pub-tile-alt em { font-style: normal; font-size: .78rem; letter-spacing: .14em; color: #9dd6f5; }

.pub-tile-cap { display: flex; flex-direction: column; padding: 18px 2px 0; }
.pub-tile-journal {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 6px;
}
.pub-tile-title {
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; line-height: 1.38;
  color: var(--navy-900); margin-bottom: 7px;
}
.pub-tile-authors { font-size: .84rem; color: var(--ink-500); margin-bottom: 12px; }
.pub-tile-authors b { color: var(--ink-900); font-weight: 700; }
.pub-tile-go {
  display: flex; align-items: center; gap: .5em; margin-top: auto;
  font-size: .86rem; font-weight: 600; color: var(--blue-600);
}
.pub-tile-go i { font-size: .72rem; transition: transform .18s ease; }
.pub-tile:hover .pub-tile-go { color: var(--accent-d); }
.pub-tile:hover .pub-tile-go i { transform: translate(2px, -2px); }

/* ---------- 26. Research themes — full-width rows, diagram alongside ---------- */
.theme-list { display: flex; flex-direction: column; gap: 30px; }
.theme {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue-600);
  border-radius: var(--radius); padding: 34px 36px;
  box-shadow: var(--shadow-sm); scroll-margin-top: 110px;
}
/* alternate which side the diagram sits on */
.theme:nth-child(even) .theme-fig  { order: 2; }
.theme:nth-child(even) .theme-text { order: 1; }

.theme-fig { margin: 0; }
.theme-fig img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.theme-fig figcaption {
  margin-top: 12px; font-size: .88rem; color: var(--ink-500); font-style: italic; text-align: center;
}
.theme h3 { font-size: 1.3rem; margin-bottom: .3em; }
.theme-lede { color: var(--blue-600); font-size: .96rem; font-weight: 600; margin-bottom: 1em; }
.theme p { font-size: .96rem; }
.theme-text > :last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .theme { grid-template-columns: 1fr; gap: 26px; padding: 26px 22px; }
  .theme:nth-child(even) .theme-fig  { order: 0; }
  .theme:nth-child(even) .theme-text { order: 0; }
}

/* ---------- 27. Link chips (PI page) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px 10px 13px; border-radius: 999px;
  background: var(--blue-050); border: 1px solid var(--line); color: var(--ink-700);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.chip:hover { background: #fff; border-color: var(--blue-600); color: var(--navy-900); transform: translateY(-2px); }
.chip i { font-size: 1.12rem; color: var(--blue-600); flex: none; }
.chip span { display: flex; flex-direction: column; line-height: 1.25; }
.chip b { font-size: .88rem; font-weight: 700; color: var(--navy-900); }
.chip span { font-size: .74rem; color: var(--ink-500); }

/* ---------- 28. Alumni (name-only style) ---------- */
.alum { grid-template-columns: 104px 1fr 44px; align-items: center; }
.alum-now { margin: 0; font-size: .9rem; color: var(--ink-700); }
.alum-now--todo { color: var(--ink-300); font-style: italic; }
.alum-link { text-align: right; }
.alum-link a {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--blue-050); border: 1px solid var(--line); color: var(--navy-700);
  transition: background .18s ease, color .18s ease;
}
.alum-link a:hover { background: var(--blue-600); color: #fff; }

/* Alumni on a phone: the row has three children — year, name block, link.
   Two columns are not enough for all three, so the year takes its own line.
   Keep this as the ONLY mobile rule for .alum; earlier duplicates fought
   each other and squeezed the name into the 44px icon column. */
@media (max-width: 560px) {
  .alum {
    grid-template-columns: 1fr auto;
    gap: 3px 14px;
    align-items: start;
    padding: 18px 4px;
  }
  .alum-when { grid-column: 1 / -1; }
  .alum-body { grid-column: 1; min-width: 0; }
  .alum-link { grid-column: 2; grid-row: 2; align-self: center; }
  .alum-head { font-size: 1.08rem; }
  .alum-block + .alum-block { margin-top: 34px; }
}

/* ---------- 29. Contact page ---------- */
.contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.contact-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-tile .card-icon { margin-inline: auto; }
.contact-tile h3 {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: .6em;
}
.contact-value { font-size: 1.02rem; font-weight: 600; color: var(--navy-900); margin-bottom: .5em; word-break: break-word; }
.contact-hint { font-size: .85rem; color: var(--ink-500); margin: 0; }

.map-card {
  display: grid; grid-template-columns: 400px 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
@media (max-width: 880px) { .map-card { grid-template-columns: 1fr; } }
.map-side { padding: 40px 36px; }
.map-side h2 { font-size: 1.34rem; }
.map-side address { font-style: normal; font-size: .98rem; line-height: 1.8; color: var(--ink-700); margin-bottom: 1.3em; }
.map-side .btn i { font-size: .92rem; }
.map-side .socials { margin-top: 20px; }
.map-wrap { position: relative; min-height: 380px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 30. Editorial notes (visible only with ?notes in the URL) ---------- */
.editor-note { display: none; }
body.show-notes .editor-note {
  display: block; background: #fff8e6; border: 1px dashed #d9a441; color: #7a5310;
  border-radius: var(--radius-sm); padding: 13px 16px; margin: 14px 0; font-size: .88rem;
}
body.show-notes .editor-note::before { content: "\270E  Note for you: "; font-weight: 700; }

/* ---------- 31. Contact tile label (was an <h3>, which broke heading order) ---------- */
.contact-label {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: .6em;
}

/* ---------- 32. Group photo in place of the old Find-us card ---------- */
.join-photo {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.join-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.join-photo .avatar-fallback { aspect-ratio: 4/3; }
.join-photo figcaption { padding: 20px 24px 22px; font-size: .95rem; color: var(--ink-500); }
.join-photo figcaption strong {
  display: block; font-family: var(--font-head); font-size: 1.16rem;
  color: var(--navy-900); font-weight: 600; margin-bottom: .3em;
}

/* Alumni split into dissertation students and summer interns */
.alum-block + .alum-block { margin-top: 46px; }
.alum-head { display: flex; align-items: center; gap: .55em; font-size: 1.18rem; margin: 0 0 .25em; }
.alum-head i { color: var(--blue-600); font-size: .85em; }
.alum-sub { color: var(--ink-500); font-size: .95rem; margin: 0 0 20px; }

/* dissertation-student cards: same shell as the PhD cards, but not clickable */
.member--static { cursor: default; text-align: inherit; }
.member--static:hover { transform: none; }
.member-project { margin: 6px 0 0; font-size: .86rem; color: var(--ink-500); line-height: 1.5; }
