/* =========================================================
   Evangelos K. Oikonomou - Academic Website
   ========================================================= */

/* --- Design Tokens --- */
:root {
  --navy:        #1b2f4e;
  --navy-light:  #2a4570;
  --accent:      #00356b;
  --accent-light:#286dc0;
  --bg:          #f7f8fa;
  --surface:     #ffffff;
  --border:      #d4deed;
  --border-dark: #aebdd4;
  --text:        #1b2f4e;
  --muted:       #526380;
  --muted-light: #8fa0b8;
  --shadow-soft: none;
  --shadow-card: none;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  /* Serif throughout: sans variable repointed to Lora so all text renders in the serif face. */
  --font-sans:  'Lora', Georgia, 'Times New Roman', serif;

  --max-w: 1080px;
  --pad-x: 1.5rem;
  --transition: 0.18s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: none;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* =========================================================
   NAVIGATION - thin, borderless by default
   ========================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  border-bottom-color: var(--border-dark);
  box-shadow: none;
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
nav.scrolled::after {
  width: 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.nav-spacer {
  width: 38px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================================
   HEADER - centered, not side-by-side
   ========================================================= */
.site-header {
  padding-top: 90px;
  padding-bottom: 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  display: block;
  margin: 0 auto 1.4rem;
}

.header-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.header-creds {
  font-size: 0.88rem;
  color: var(--muted-light);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.header-affil {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.header-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--navy-light);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.92rem;
  border: 1px solid rgba(27,47,78,.14);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
  box-shadow: none;
  transition: border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.btn-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
  box-shadow: none;
  transform: none;
}
.btn-link svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================
   SECTIONS - shared
   ========================================================= */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }

/* Section title: serif with accent marker and full-width rule */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.45rem;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-text p {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}
.about-text p:last-of-type { margin-bottom: 0; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
  border: 1.5px solid;
}
.badge-navy  { color: var(--navy);   border-color: var(--navy);   background: rgba(27,47,78,.05); }
.badge-teal  { color: var(--accent); border-color: var(--accent); background: rgba(0,53,107,.06); }

/* =========================================================
   RESEARCH - numbered list (not card grid)
   ========================================================= */
.research-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.research-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 0;
  align-items: start;
  padding: 1.2rem 1.2rem 1.15rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.research-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}
.research-item:last-child {
  grid-column: 1 / -1;
}

.research-num {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  padding-top: 0;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.38rem 0.55rem;
  border-radius: 4px;
  background: var(--accent);
  border: none;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.research-item-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.research-item-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.75;
  flex-shrink: 0;
}

.research-item-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.research-item-body {
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.72;
}

/* =========================================================
   THEME SUB-NAV
   ========================================================= */
.theme-subnav {
  position: sticky;
  top: 56px;               /* sits just below the main nav */
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.theme-subnav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

/* Research page has many items - keep them left-aligned & scrollable */
.theme-subnav-list.tsn-scroll {
  justify-content: flex-start;
}
.theme-subnav-list::-webkit-scrollbar { display: none; }

.theme-subnav-list li { flex-shrink: 0; }

.theme-subnav-list a {
  display: flex;
  align-items: center;
  gap: 0.32em;
  padding: 0.6rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.theme-subnav-list a:hover {
  color: var(--navy);
  border-bottom-color: var(--border-dark);
}
.theme-subnav-list a.tsn-active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.tsn-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.tsn-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
  margin: 0 0.5rem;
  align-self: center;
}

.tsn-featured {
  color: var(--accent) !important;
  font-style: italic;
}

@media (min-width: 900px) {
  .theme-subnav-list a { padding-inline: 0.5rem; }
  .tsn-divider { margin-inline: 0.25rem; }
}

/* scroll offset for sticky nav + subnav */
[id^="theme-"], #latest-papers, #featured-works, [id^="news-"] {
  scroll-margin-top: 108px;
}

/* =========================================================
   PUBLICATIONS - grouped layout
   ========================================================= */
.latest-research {
  padding: 2.4rem 0 2.8rem;
}

.latest-research-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.latest-research-eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.latest-research-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--navy);
}

.latest-research-heading > p {
  max-width: 42rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.latest-paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.latest-paper {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.3rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
}

.latest-paper-meta {
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.latest-paper-meta span {
  margin-left: 0.45rem;
  color: var(--muted-light);
}

.latest-paper h3 {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.43;
  letter-spacing: 0;
}

.latest-paper h3 a {
  color: var(--navy);
}

.latest-paper h3 a:hover {
  color: var(--accent);
}

.latest-paper-summary {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--text);
}

.latest-paper-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--accent);
}

.pub-groups { display: flex; flex-direction: column; }

.research-theme-section { margin-top: 0; }
.research-theme-heading { margin-bottom: 1.1rem; }
.research-theme-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.25;
}
.research-theme-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  border: 0;
  background: transparent;
}
.research-theme-tab {
  --theme-color: var(--accent);
  --theme-tint: #f1f7f5;
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 0.78rem 0.85rem;
  border: 1px solid #d7e2de;
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font: 600 0.74rem/1.3 var(--font-sans);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.research-theme-tab::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--theme-color);
  opacity: 0.28;
  transition: opacity .18s ease;
}
.research-theme-tab span {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  border-radius: 50%;
  background: var(--theme-tint);
  color: var(--theme-color);
  font: 700 0.86rem/1 var(--font-serif);
}
.research-theme-tab:hover {
  border-color: #9dbdaf;
  background: #fbfdfc;
}
.research-theme-tab:hover::before,
.research-theme-tab.active::before { opacity: 1; }
.research-theme-tab:focus-visible { outline: 2px solid var(--theme-color); outline-offset: -3px; }
.research-theme-tab.active {
  border-color: #8bb3a4;
  background: var(--theme-tint);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(0,53,107, 0.08);
}
.research-theme-tab.active span {
  background: var(--accent);
  color: #fff;
}
.research-theme-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}
.research-theme-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  font: 600 1.05rem/1 var(--font-sans);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.research-theme-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}
.research-theme-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.research-theme-arrow:disabled { opacity: 0.32; cursor: default; }
.research-theme-position {
  min-width: 3.2rem;
  color: var(--muted);
  font: 600 0.7rem/1 var(--font-sans);
  text-align: center;
}
.pub-group[hidden] { display: none; }
.research-theme-explorer .pub-group {
  margin-bottom: 0;
  animation: focusReveal .22s ease-out;
}

@media (max-width: 980px) {
  .research-theme-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .research-theme-section { margin-top: 0; }
  .research-theme-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-theme-tab {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 92px;
    padding: 0.65rem 0.6rem;
    font-size: 0.68rem;
  }
  .research-theme-tab span { width: 1.8rem; height: 1.8rem; font-size: 0.76rem; }
}

.pub-group {
  padding: 1.75rem 1.6rem 1.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.pub-group:first-child { padding-top: 1.75rem; }
.pub-group:last-child { margin-bottom: 0; }

.pub-group-header {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0 1rem;
  align-items: start;
  margin-bottom: 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(27,47,78,.1);
}

.pub-group-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.12rem;
  user-select: none;
}

.pub-group-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.pub-group-desc {
  grid-column: 2 / -1;
  margin: 0.55rem 0 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.97rem;
  color: rgba(27,47,78,.72);
  line-height: 1.6;
  max-width: 62em;
}

.pub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pub-item {
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(27,47,78,.1);
  border-radius: 6px;
  background: #fff;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 0.8rem;
  align-items: center;
  min-height: 100%;
}

.pub-item--text-only {
  grid-template-columns: 1fr;
  align-items: start;
  padding: 0.9rem 1rem;
}

.journal-logo {
  display: block;
  height: 30px;
  width: 110px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.journal-logo.journal-logo--medrxiv {
  height: 62px;
  object-position: center;
}

.latest-paper-logo {
  display: block;
  width: 112px;
  height: 63px;
  margin-bottom: 0.65rem;
  object-fit: contain;
  object-position: center;
}

/* --- Shared card hover lift --- */
.pub-item,
.research-item,
.news-item,
.team-member,
.member-card,
.collab-item,
.funding-item,
.talk-card,
.lecture-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pub-item:hover,
.research-item:hover,
.news-item:hover,
.team-member:hover,
.member-card:hover,
.collab-item:hover,
.funding-item:hover,
.talk-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0,53,107,.18);
}

/* --- Key paper highlight & badge --- */
.pub-item--highlight {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--surface);
  grid-column: 1 / -1;
}

.pub-badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 0.18em 0.55em;
  margin-bottom: 0.4rem;
}

.pub-title {
  font-family: "Lora", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.45;
  display: block;
  margin-bottom: 0.35rem;
}
.pub-title a { color: var(--navy); }
.pub-title a:hover { color: var(--accent); }

.pub-citation {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.01em;
}
.pub-authors { font-size: 0.8rem; color: var(--muted); }
.pub-meta { color: var(--muted-light); margin-left: 0.2rem; }

/* Homepage: elegant, box-free typographic list (no journal logos) */
.home-main .pub-list {
  grid-template-columns: 1fr;
  gap: 0;
}
.home-main .pub-item {
  display: block;
  grid-template-columns: 1fr;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 1.15rem 0;
  align-items: start;
}
.home-main .pub-item:first-child { border-top: none; }
.home-main .pub-item:hover { border-color: var(--border); }
.home-main .pub-content { display: flex; flex-direction: column; }
.home-main .pub-meta {
  order: -1;
  margin-left: 0;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
}
.home-main .pub-title {
  font-size: 1.02rem;
  line-height: 1.4;
  margin-bottom: 0;
}
/* one-line takeaway + hover-revealed read link */
.pub-take {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.35rem;
}
.pub-read {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}
.pub-item:hover .pub-read { opacity: 1; transform: translateX(0); }
@media (hover: none) { .pub-read { opacity: 1; transform: none; } }

.scholar-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.scholar-link:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* =========================================================
   COLLABORATIONS - horizontal rows (not equal-column cards)
   ========================================================= */
.collab-items { display: flex; flex-direction: column; }

.collab-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.95rem;
}
.collab-item:last-child { margin-bottom: 0; }

.collab-institution {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 0.15rem;
  line-height: 1.4;
}

.collab-body-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.collab-body-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.collab-body-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

/* =========================================================
   FUNDING
   ========================================================= */
.funding-items { display: flex; flex-direction: column; }

.funding-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.95rem;
}
.funding-item:last-child { margin-bottom: 0; }

.funding-agency {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 0.15rem;
  line-height: 1.4;
}

.funding-award {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.funding-detail {
  font-size: 0.83rem;
  color: var(--muted);
}
.funding-detail strong { color: var(--navy); }

.funding-project {
  margin-top: 0.45rem;
  max-width: 65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

.funding-people {
  margin-top: 0.45rem;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--muted);
}

.funding-grant-block {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.funding-grant-block:first-of-type {
  margin-top: 0.55rem;
}
.funding-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.page-header-sub {
  margin-top: 0.65rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  line-height: 1.6;
}

.acknowledgment-block {
  background: var(--surface);
  border: 1px solid rgba(0,53,107,.12);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 2rem 2.2rem;
}

.acknowledgment-block p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.acknowledgment-block p:last-child { margin-bottom: 0; }

/* =========================================================
   THOUGHTS ON AI PAGE
   ========================================================= */
.thoughts-header {
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.thoughts-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
}
.thoughts-header h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.thoughts-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 780px;
  margin-top: 0.4rem;
}

.thoughts-section {
  margin: 3.5rem 0;
}
.thoughts-section:first-child { margin-top: 2.25rem; }

.thoughts-h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(27,47,78,0.10);
}

.thoughts-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 840px;
  margin-bottom: 1.5rem;
}
.thoughts-body em { color: var(--accent); font-style: italic; font-weight: 500; }

/* SCHEMATIC */
.hidden-label-schematic {
  margin: 2.2rem 0 0;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(27,47,78,0.08);
  box-shadow: none;
}
.hidden-label-schematic svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 0 auto;
}
.schematic-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 720px;
  margin: 1rem auto 0;
  line-height: 1.55;
}

/* POSITION STATEMENTS */
.position-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.position-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.25rem 1.4rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.position-item:hover {
  transform: none;
  box-shadow: none;
}
.position-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.65;
  line-height: 1;
}
.position-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0.15rem 0 0.55rem;
}
.position-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.position-body em { color: var(--accent); font-style: italic; font-weight: 500; }

/* INSIGHT CARDS */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.insight-card {
  padding: 1.5rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.08);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.insight-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0,53,107,0.22);
}
.insight-card--feature {
  grid-column: 1 / -1;
  background: var(--surface);
  border-color: rgba(0,53,107,0.18);
  border-left: 3px solid var(--accent);
}
.insight-card-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.insight-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.6rem;
}
.insight-card--feature .insight-card-title {
  font-size: 1.3rem;
}
.insight-card-takeaway {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.insight-card-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* HIGH PERFORMANCE vs HIGH VALUE */
.hvhp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.hvhp-card {
  padding: 1.6rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.08);
  border-radius: 8px;
}
.hvhp-card--accent {
  background: var(--surface);
  border-color: rgba(0,53,107,0.22);
}
.hvhp-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(27,47,78,0.10);
}
.hvhp-card--accent .hvhp-label strong { color: var(--accent); }
.hvhp-list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: none;
}
.hvhp-list li {
  position: relative;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text);
  padding-left: 1rem;
  margin-bottom: 0.55rem;
}
.hvhp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.65;
}

/* CLOSING */
.thoughts-closing {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid rgba(27,47,78,0.08);
}
.thoughts-signoff {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.signoff-rule {
  flex: 0 0 48px;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}
.signoff-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.signoff-text strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
}

/* PRINCIPLE TILES (compact) */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.principle-tile {
  display: block;
  position: relative;
  padding: 1.2rem 1.4rem 1.1rem 3.4rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.09);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.principle-tile:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0,53,107,0.25);
}
.principle-icon {
  position: absolute;
  top: 1.15rem;
  left: 1.3rem;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--accent);
  opacity: 0.92;
}
.principle-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}
.principle-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}
.principle-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.principle-body em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.principle-ref {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.principle-ref sup {
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0 0.1rem;
}

/* TARGETING SCHEMATIC (reuse .hidden-label-schematic styling) */
.target-schematic {
  margin: 2rem 0 0;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(27,47,78,0.08);
  box-shadow: none;
}
.target-schematic svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 960px;
  margin: 0 auto;
}
.caption-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.85;
}
.caption-hint sup { font-weight: 600; color: var(--accent); }

/* REFERENCES (light, elegant) */
.thoughts-references {
  margin: 4rem 0 2rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(27,47,78,0.10);
}
.references-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.references-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ref;
  max-width: 840px;
}
.references-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.4rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  border-bottom: 1px dashed rgba(27,47,78,0.07);
}
.references-list li:last-child { border-bottom: none; }
.ref-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--accent);
  opacity: 0.75;
  font-weight: 600;
}
.ref-text { color: var(--text); }
.ref-text em {
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
}
.ref-text a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.4rem;
  border-bottom: 1px solid rgba(0,53,107,0.22);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ref-text a:hover {
  color: var(--navy);
  border-color: rgba(27,47,78,0.35);
}

/* RESPONSIVE for Thoughts page */
@media (max-width: 820px) {
  .insight-grid { grid-template-columns: 1fr; }
  .hvhp-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .thoughts-header { padding-top: 3.5rem; padding-bottom: 2rem; }
  .thoughts-section { margin: 2.5rem 0; }
  .thoughts-h2 { font-size: 1.4rem; }
  .position-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem 1.3rem;
  }
  .position-num { font-size: 2rem; }
  .position-title { font-size: 1.05rem; }
  .hidden-label-schematic { padding: 1rem 0.75rem; }
  .target-schematic { padding: 1rem 0.75rem; }
  .thoughts-closing { padding: 1.75rem 1.25rem; }
  .references-list li { grid-template-columns: 1.6rem 1fr; font-size: 0.78rem; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-block h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.contact-block p,
.contact-block address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-block a { color: var(--navy); font-weight: 500; }
.contact-block a:hover { color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}
footer::before {
  content: none;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer-copy { font-size: 0.78rem; color: var(--muted-light); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.78rem; color: var(--muted-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--navy); }

/* =========================================================
   TALKS
   ========================================================= */
.talks-list { display: flex; flex-direction: column; gap: 1.75rem; }

.talk-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(27,47,78,.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.talk-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: #000;
  padding: 0;
}

.talk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.22s ease;
}
.talk-thumb:hover img { opacity: 0.55; }

.talk-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.talk-thumb:hover .talk-thumb-overlay { opacity: 1; }
.talk-thumb-overlay svg {
  width: 40px; height: 40px;
  fill: #fff; stroke: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.talk-thumb-overlay span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.talk-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}
.talk-meta {
  font-size: 0.82rem;
  color: var(--muted-light);
}

/* =========================================================
   SLIDESHOW LIGHTBOX
   ========================================================= */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 12, 20, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.slideshow-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.ss-content {
  flex: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

#ss-img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
  transition: opacity 0.18s ease;
}
#ss-img.fading { opacity: 0; }

.ss-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.ss-progress-fill {
  height: 100%;
  background: var(--accent-light);
  border-radius: 2px;
  transition: width 0.22s ease;
}
.ss-counter {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.ss-close,
.ss-prev,
.ss-next {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.ss-close:hover,
.ss-prev:hover,
.ss-next:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.ss-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px; height: 38px;
  padding: 0;
}
.ss-close svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

.ss-prev,
.ss-next {
  width: 52px; height: 52px;
  padding: 0;
}
.ss-prev svg,
.ss-next svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================
   HOME - 2-column sidebar layout
   ========================================================= */
.home-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pad-x) 3.5rem;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0 4rem;
  align-items: start;
}

.home-sidebar {
  position: sticky;
  top: 70px;
}

.sidebar-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  display: block;
  margin-bottom: 1rem;
  box-shadow: none;
}

.sidebar-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.sidebar-creds {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.sidebar-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.sidebar-dept {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.sidebar-role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.sidebar-links .btn-link {
  justify-content: flex-start;
  font-size: 0.78rem;
}

.sidebar-address {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.sidebar-address a {
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 0.5rem;
}

.home-main { min-width: 0; }

.home-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.home-section:first-child { padding-top: 0; }
.home-section:last-child { border-bottom: none; }

.recruiting-card {
  border: 1px solid rgba(27,47,78,.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  padding: 1.35rem 1.4rem 1.3rem;
}

.hiring-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.hiring-label {
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hiring-role {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.hiring-links {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.hiring-links a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .hiring-row { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
  .hiring-links a { white-space: normal; }
}

.recruiting-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.recruiting-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.recruiting-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.recruiting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.recruiting-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(0,53,107,.18);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.recruiting-contact {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.recruiting-contact a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   SUBPAGE - page header & main
   ========================================================= */
.page-header {
  padding-top: 90px;
  padding-bottom: 2.35rem;
  background: var(--surface);
  border-bottom: 1px solid rgba(27,47,78,.08);
  position: relative;
}
.page-header::after {
  content: none;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.page-header p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}
.page-header p a { color: var(--accent); }

.page-main { padding: 2.5rem 0; }
body[data-page="publications.html"] .page-header {
  padding-top: 74px;
  padding-bottom: 1.5rem;
}
body[data-page="publications.html"] .page-main { padding-top: 1rem; }
.page-main section {
  padding: 1.6rem 1.6rem 1.7rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.6rem;
}
.page-main section:first-child { padding-top: 1.6rem; }
.page-main section:last-child { margin-bottom: 0; }

/* =========================================================
   INVITED LECTURES
   ========================================================= */
.lecture-list { display: flex; flex-direction: column; gap: 2rem; }

.lecture-year-group {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0 1.25rem;
}
.lecture-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--border-dark);
  padding-top: 0.1rem;
}
.lecture-items { display: flex; flex-direction: column; }
.lecture-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(27,47,78,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.85);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}
.lecture-item:last-child { margin-bottom: 0; }
.lecture-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
}
.lecture-venue {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================
   AWARDS LIST
   ========================================================= */
.award-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.award-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.25rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.award-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}
.award-name {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
}

/* =========================================================
   EDITORIAL & CERTIFICATIONS
   ========================================================= */
.editorial-block,
.cert-block { display: flex; flex-direction: column; gap: 0; }

.editorial-item,
.cert-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.editorial-item:last-child,
.cert-item:last-child { border-bottom: none; }

.editorial-role,
.cert-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 0.1rem;
}
.editorial-journal,
.cert-detail {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.6;
}

/* nav-name as link */
a.nav-name {
  text-decoration: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition), opacity var(--transition);
}
a.nav-name:hover { color: var(--accent-light); opacity: 0.85; }

.nav-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: none;
}

/* Icon-only social link buttons */
.btn-link--icon {
  padding: 0.42rem 0.7rem;
  min-width: 2.2rem;
  justify-content: center;
}
.btn-link--icon svg {
  width: 15px;
  height: 15px;
}

/* Circle icon buttons - sidebar social row */
.btn-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1.5px solid rgba(27,47,78,.16);
  background: var(--surface);
  color: var(--navy);
  box-shadow: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.btn-icon-circle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
  box-shadow: none;
  transform: none;
}
.btn-icon-circle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-icon-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  justify-content: flex-start;
}

/* Centre on mobile when sidebar stacks */
@media (max-width: 680px) {
  .sidebar-icon-row { justify-content: center; }
}

/* =========================================================
   LAB HERO - homepage banner
   ========================================================= */
.lab-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: 52px; /* nav height */
  position: relative;
}

/* Cover image variant */
.lab-hero--cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lab-hero--cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 248, 250, 0.88);
}
.lab-hero--cover::after {
  content: none;
}
.lab-hero--cover .lab-hero-inner {
  position: relative;
  z-index: 1;
}
.lab-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pad-x) 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.lab-hero-logo {
  height: 160px;
  width: auto;
  flex-shrink: 0;
}
.lab-hero-text {}
.lab-hero-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.lab-hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-light);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.lab-hero-context {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}
.lab-hero-fullname {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.lab-hero-fullname b {
  color: var(--navy);
  font-weight: 700;
}
.lab-hero-tagline {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.lab-hero-link {
  margin-top: 0.7rem;
  font-size: 0.84rem;
}

.lab-hero-link a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   TEAM PAGE
   ========================================================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.member-card {
  overflow: hidden;
  border: 1px solid rgba(27,47,78,.12);
  border-radius: 8px;
  background: var(--surface);
}

.member-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8ebef;
}
.member-photo--luo { object-position: 50% 40%; }
.member-photo--kokkorakis { object-position: 50% 32%; }
.member-photo--elchouemi { object-position: 50% 24%; }
.member-photo--abdollahi { object-position: 62% 34%; }
.member-photo--rao { object-position: 50% 22%; }
.member-photo--sani { object-position: 50% 30%; }

.member-content {
  padding: 1.25rem 1.3rem 1.35rem;
}

.member-card .team-role {
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.member-card .team-name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.member-card .team-name a {
  font-weight: 700;
}

.member-card .team-sub {
  min-height: 2.7em;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.member-project {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--text);
}

.member-project span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.member-term {
  margin-top: 0.65rem;
  font-size: 0.77rem;
  color: var(--muted);
}

.team-section { display: flex; flex-direction: column; gap: 0; }

.team-member {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 0 2rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.85rem;
  align-items: baseline;
}
.team-member:last-child { margin-bottom: 0; }

.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.team-name {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.team-name a { color: var(--navy); font-weight: 500; }
.team-name a:hover { color: var(--accent); }

.team-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.cardslab-callout {
  margin-top: 2.5rem;
  padding: 1.35rem 1.45rem;
  background: var(--surface);
  border: 1px solid rgba(27,47,78,.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}
.cardslab-callout a { color: var(--accent); font-weight: 500; }

.sidebar-pi-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* =========================================================
   NEWS & PODCASTS - legacy (kept for any other pages)
   ========================================================= */
.news-list { display: flex; flex-direction: column; }

.news-item {
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}
.news-item:last-child { margin-bottom: 0; }

.news-source {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.news-title:hover { color: var(--accent); }

.news-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   MEDIA CARD GRID - news.html redesign
   ========================================================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Each card is a full-anchor block */
.media-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(27,47,78,.09);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.media-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0,53,107,.25);
}

/* Thumbnail area */
.media-thumb {
  position: relative;
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  overflow: hidden;
}
.media-thumb::after {
  content: none;
}

/* Thumbnail colour variants */
.media-thumb--teal      { background: #00356b; }
.media-thumb--navy      { background: #1b2f4e; }
.media-thumb--slate     { background: #3a5272; }
.media-thumb--teal-dark { background: #145c45; }
.media-thumb--indigo    { background: #2d4a8c; }
.media-thumb--navy-warm { background: #2a3f6e; }
.media-thumb--guardian       { background: #052962; }
.media-thumb--politico       { background: #c8102e; }
.media-thumb--politico-white { background: #ffffff; border: 1px solid rgba(27,47,78,0.10); }
.media-thumb--logo-white     { background: #ffffff; border: 1px solid rgba(27,47,78,0.10); justify-content: center; }
.media-thumb--medical        { background: #1c7684; }

/* Logo image variant (white-bg cards showing brand logo) */
.media-thumb-img--logo {
  width: 70%;
  max-width: 220px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.media-thumb--logo-white .media-thumb-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  text-align: center;
}
.media-thumb-label--dark {
  color: rgba(27,47,78,0.45) !important;
  text-shadow: none !important;
}
.media-thumb--politico-white::after,
.media-thumb--logo-white::after {
  display: none; /* no sheen overlay on white card */
}
.media-thumb--podcast   { background: #00356b; }

.media-thumb-icon {
  width: 52px;
  height: 52px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}
.media-thumb-logo {
  width: 72%;
  max-width: 240px;
  height: auto;
  position: relative;
  z-index: 1;
}
.media-thumb-icon--lg {
  width: 60px;
  height: 60px;
}

.media-thumb-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

/* Card body */
.media-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
}

.media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.media-source {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.media-year {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-light);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

.media-title {
  font-family: var(--font-serif);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0.15rem 0 0;
}

.media-desc {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
  flex: 1;
}

.media-read {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.media-card:hover .media-read { color: var(--accent-light); }

/* Real OG image overlay */
.media-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.media-thumb .media-thumb-img--logo {
  position: relative;
  inset: auto;
  width: 70%;
  max-width: 220px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: center;
  opacity: 1 !important;
  z-index: 1;
}
.media-thumb .media-thumb-img--journal-logo {
  width: 78%;
  max-height: 58px;
  margin-bottom: 0.45rem;
}
.media-thumb.has-real-image .media-thumb-img {
  opacity: 1;
}
.media-thumb.has-real-image .media-thumb-icon {
  display: none;
}
.media-thumb.has-real-image::after {
  /* darken real photos so label stays legible */
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.54) 100%);
  opacity: 1;
}
.media-thumb.has-real-image .media-thumb-label {
  color: rgba(255,255,255,0.92);
}

/* Single-item grid - podcast spans full row */
.media-grid--single {
  grid-template-columns: 1fr;
}

/* Podcast card - horizontal layout */
.media-card--podcast {
  flex-direction: row;
}
.media-card--podcast .media-thumb {
  width: 260px;
  height: auto;
  min-height: 190px;
  flex-shrink: 0;
  border-radius: 0;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .media-card--podcast { flex-direction: column; }
  .media-card--podcast .media-thumb { width: 100%; height: 160px; min-height: unset; }
}
@media (max-width: 560px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-thumb { height: 130px; }
}

/* =========================================================
   MISSION INFOGRAPHIC - research.html
   ========================================================= */
.mission-section {
  margin-bottom: 3.5rem;
}

/* Lead paragraph */
.mission-lead {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--navy);
  max-width: 820px;
  margin: 0 auto 2.4rem;
  text-align: center;
  padding: 0 1rem;
}
.mission-lead strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Pipeline ---- */
.mission-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.mp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  width: 170px;
}

.mp-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mp-icon-wrap svg { width: 34px; height: 34px; }
.mp-icon-wrap--data   { color: var(--navy); }
.mp-icon-wrap--ai     { color: var(--accent); background: var(--surface); border-color: rgba(0,53,107,.25); }
.mp-icon-wrap--impact { color: var(--navy); }

.mp-node--accent .mp-label { color: var(--accent); font-weight: 700; }
.mp-node--accent .mp-icon-wrap { transform: none; box-shadow: none; }

.mp-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
}
.mp-sub {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.mp-arrow {
  flex: 0 0 auto;
  width: 56px;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem; /* align with icon vertically */
}
.mp-arrow svg { width: 44px; height: 16px; }

/* ---- Pillars ---- */
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mp-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mp-pillar:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0,53,107,.2);
}

.mp-pillar-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}

.mp-pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 18px;
}

.mp-pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
  flex-shrink: 0;
  opacity: 0.75;
}

.mp-pillar-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.mp-pillar-body {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .mission-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mission-pillars { grid-template-columns: 1fr; }
  .mission-pipeline { gap: 0.5rem; }
  .mp-arrow { display: none; }
  .mp-node { width: 140px; }
}

/* Home chips: collapse to 2-col on narrower screens */
@media (max-width: 820px) {
  .mission-pillars--home { grid-template-columns: repeat(2, 1fr); }
  .tree-branch-connector { display: none; }
}

/* Research-page editorial lead - left-aligned with teal rule */
.mission-lead--editorial {
  text-align: left;
  max-width: 780px;
  margin-left: 0;
  padding: 0 0 0 1.2rem;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
}

/* Research-page track layout */
.mission-pillars--tracks {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.mp-track {
  display: grid;
  grid-template-columns: 3rem 3.4rem 1fr;
  align-items: center;
  gap: 1.3rem;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: border-left-color 0.18s ease, background 0.18s ease;
}
.mp-track:last-child { border-bottom: none; }
.mp-track:hover {
  border-left-color: var(--accent);
  background: var(--bg);
}

.mp-track-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
  text-align: right;
  transition: opacity 0.18s ease;
}
.mp-track:hover .mp-track-num { opacity: 1; }

.mp-track-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: border-color 0.18s ease;
}
.mp-track-icon svg { width: 26px; height: 26px; }
.mp-track:hover .mp-track-icon { border-color: rgba(0,53,107,.3); }

.mp-track-body { display: flex; flex-direction: column; gap: 0.2rem; }

.mp-track-title {
  font-family: var(--font-serif);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.mp-track-desc {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}

@media (max-width: 640px) {
  .mp-track { grid-template-columns: 2rem 2.6rem 1fr; gap: 0.8rem; padding: 1rem 1rem; }
  .mp-track-num { font-size: 1.5rem; }
}

/* About-page variants - narrower home-main column */
.about-lead {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.about-lead strong { color: var(--accent); font-weight: 600; }

/* Compact pipeline for home page */
.mission-pipeline--compact {
  margin-bottom: 0;
}
.mission-pipeline--compact .mp-node { width: 130px; }
.mission-pipeline--compact .mp-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}
.mission-pipeline--compact .mp-icon-wrap svg { width: 28px; height: 28px; }
.mission-pipeline--compact .mp-label { font-size: 0.73rem; }
.mission-pipeline--compact .mp-sub   { font-size: 0.63rem; }
.mission-pipeline--compact .mp-arrow { width: 40px; }

/* 4-col single row on home page */
.mission-pillars--home { grid-template-columns: repeat(4, 1fr); }

/* Tree branch connector between pipeline and chips */
.tree-branch-connector {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 12.5%;
  margin-bottom: 0;
}

.tree-stem-vert {
  display: block;
  width: 1.5px;
  height: 12px;
  background: var(--accent);
  opacity: 0.45;
  margin: 0 auto;
}

.tree-bus-row {
  display: flex;
  justify-content: space-between;
  border-top: 1.5px solid rgba(0,53,107, 0.38);
}

.tree-drop-line {
  width: 1.5px;
  height: 16px;
  background: rgba(0,53,107, 0.4);
  position: relative;
}

.tree-drop-line::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 5px solid rgba(0,53,107, 0.55);
}

.about-footer-note {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.72;
  margin-top: 1.2rem;
}
.about-footer-note a { color: var(--accent); font-weight: 600; }

/* Simple pub list - index page, no logo column */
.pub-list--simple {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.pub-simple {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.pub-simple:last-child { border-bottom: none; }
.pub-simple:hover { background: rgba(0,53,107,.03); }

.pub-simple-journal {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.pub-simple-title {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  text-decoration: none;
}
.pub-simple-title:hover { color: var(--accent); }

/* Chip pillar - icon top, label bottom, centered (4-column tree layout) */
.mp-pillar--chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.32rem;
  padding: 0.55rem 0.35rem 0.5rem;
  background: rgba(0,53,107, 0.05);
  border: 1px solid rgba(0,53,107, 0.12);
}

.mp-chip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
}

.mp-chip-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  text-align: center;
}

/* Tighter grid for home chips */
.mission-pillars--home {
  gap: 0.5rem;
}

/* =========================================================
   PAPER CAROUSEL
   ========================================================= */
.paper-carousel {
  position: relative;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.paper-carousel-track {
  position: relative;
  height: 400px;
}

.pc-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pc-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.pc-slide img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.pc-prev, .pc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.15s;
}
.pc-prev:hover, .pc-next:hover { background: #fff; box-shadow: none; }
.pc-prev { left: 0.75rem; }
.pc-next { right: 0.75rem; }
.pc-prev svg, .pc-next svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.pc-caption {
  text-align: center;
  padding: 0.75rem 2.8rem 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  min-height: 2.5rem;
  line-height: 1.5;
  background: rgba(248,250,253,.6);
}

.pc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 0 0.8rem;
}
.pc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-dark);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.pc-dot.active { background: var(--accent); }

/* =========================================================
   BIO TIMELINE (zigzag path - adapted from sgfin.github.io)
   ========================================================= */
.bio-intro {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 0.5rem;
}
.bio-intro a { color: var(--accent); }

#bio-timeline {
  position: relative;
  padding: 0.9rem 0 0.2rem;
}

/* centre spine visible on desktop */
@media (min-width: 768px) {
  #bio-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border-dark);
  }
}

.bio-item {
  position: relative;
  padding: 0.45rem 1rem 0.75rem;
  margin-bottom: 0.1rem;
}

/* dot on the spine */
.bio-item::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 0.8rem;
}

/* desktop zigzag */
@media (min-width: 768px) {
  .bio-item {
    width: 47%;
  }
  .bio-item:nth-child(odd) {
    margin-left: 53%;
    border-left: 2px solid var(--border-dark);
    text-align: left;
  }
  .bio-item:nth-child(odd)::before {
    left: -6px;
  }
  .bio-item:nth-child(even) {
    margin-right: 53%;
    border-right: 2px solid var(--border-dark);
    text-align: right;
  }
  .bio-item:nth-child(even)::before {
    right: -6px;
  }
}

/* mobile: single left-anchored column */
@media (max-width: 767px) {
  .bio-item {
    border-left: 2px solid var(--border-dark);
    margin-left: 0.75rem;
    text-align: left;
  }
  .bio-item::before {
    left: -6px;
  }
}

.bio-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.08rem;
}

.bio-institution {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.08rem;
}

.bio-role {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.42;
}

.bio-role em { color: var(--navy); font-style: normal; font-weight: 600; }

.bio-note {
  font-size: 0.74rem;
  color: var(--muted-light);
  margin-top: 0.14rem;
  font-style: italic;
  line-height: 1.45;
}

.bio-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,53,107,.28);
}

.bio-note a:hover {
  color: var(--accent-light);
  border-bottom-color: rgba(63,153,124,.45);
}

/* =========================================================
   RESEARCH AREA EXPLORER - What We Do (index homepage)
   ========================================================= */
.translation-arc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.6rem;
  border-top: 2px solid var(--navy);
}
.translation-step {
  position: relative;
  min-width: 0;
  padding: 1rem 0.85rem 0 0;
}
.translation-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: -5px;
  right: 0.45rem;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  transform: rotate(45deg);
  background: var(--surface);
}
.translation-num {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font: 700 1.05rem/1 var(--font-serif);
}
.translation-step h3 {
  margin: 0 0 0.38rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.25;
}
.translation-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .translation-arc {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 2px solid var(--navy);
  }
  .translation-step { padding: 0 0 1rem 1rem; }
  .translation-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 0.45rem;
    left: -5px;
    transform: rotate(135deg);
  }
  .translation-step p { font-size: 0.78rem; }
}

.focus-explorer {
  margin-top: 1.5rem;
  border: 1px solid rgba(27,47,78,.12);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.focus-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(27,47,78,.12);
  background: rgba(244,247,250,.82);
}

.focus-tab {
  min-width: 0;
  min-height: 74px;
  padding: 0.8rem 0.65rem;
  border: 0;
  border-right: 1px solid rgba(27,47,78,.1);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 600 0.72rem/1.25 var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.focus-tab:last-child { border-right: 0; }
.focus-tab:nth-child(1) { --focus-color: #00356b; }
.focus-tab:nth-child(2) { --focus-color: #2868a0; }
.focus-tab:nth-child(3) { --focus-color: #8a4151; }
.focus-tab:nth-child(4) { --focus-color: #9a6a1f; }
.focus-tab:hover { background: #fff; color: var(--navy); }
.focus-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.focus-tab.active {
  border-bottom-color: var(--focus-color);
  background: #fff;
  color: var(--navy);
}

.focus-tab .focus-num {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--focus-color);
  font: 700 1.25rem/1 var(--font-serif);
}

.focus-panels { min-height: 214px; }
.focus-panel {
  padding: 1.45rem 1.6rem 1.35rem;
  animation: focusReveal .22s ease-out;
}
.focus-panel[hidden] { display: none; }
.focus-kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.focus-title {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
}
.focus-desc {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}
.focus-modalities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.focus-modalities span {
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(27,47,78,.12);
  border-radius: 4px;
  background: #f7f9fb;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 600;
}
@keyframes focusReveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .focus-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-tab { min-height: 62px; padding: 0.65rem 0.75rem; }
  .focus-tab:nth-child(2) { border-right: 0; }
  .focus-tab:nth-child(-n+2) { border-bottom-width: 1px; border-bottom-color: rgba(27,47,78,.1); }
  .focus-tab.active { box-shadow: inset 0 -3px 0 var(--focus-color); }
  .focus-panel { padding: 1.2rem; }
  .focus-panels { min-height: 244px; }
}

/* =========================================================
   BIO INTRO GRID (replaces inline styles)
   ========================================================= */
.bio-intro-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 2.5rem;
  align-items: start;
}
.bio-intro-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  box-shadow: none;
}

/* =========================================================
   HAMBURGER MENU (mobile nav)
   ========================================================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 52px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding: 0.75rem var(--pad-x) 1rem;
  z-index: 99;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-drawer.open { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-mobile-drawer a {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-mobile-drawer a:hover,
.nav-mobile-drawer a.active {
  color: var(--accent);
  background: rgba(0,53,107,.06);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* --- Tablet / medium screens --- */
@media (max-width: 820px) {
  .lab-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem var(--pad-x) 1.6rem;
  }
  .lab-hero-logo { height: 100px; }
  .lab-hero-tagline { margin-left: auto; margin-right: auto; }
  .lab-hero-context { text-align: center; }
  .lab-hero-link { text-align: center; }
}

/* --- Mobile breakpoint --- */
@media (max-width: 680px) {
  /* Hamburger: show toggle, hide desktop links */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .header-photo { width: 120px; height: 120px; }
  .header-name { font-size: 1.65rem; }

  .section-title {
    font-size: 1.22rem;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
  }

  .page-header {
    padding-bottom: 1.7rem;
  }

  .page-header h1 {
    font-size: 1.65rem;
  }

  .page-main section {
    padding: 1.2rem 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.1rem;
  }

  .home-wrap {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .pub-group {
    padding: 1.25rem 1rem 1rem;
    border-radius: 8px;
  }

  .pub-group-header {
    grid-template-columns: 2rem 1fr;
    gap: 0 0.85rem;
  }

  .pub-list {
    grid-template-columns: 1fr;
  }

  .latest-research-heading {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .latest-paper-grid { grid-template-columns: 1fr; }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.7rem 0;
  }

  .journal-logo {
    width: 145px;
    height: 40px;
    margin-bottom: 0.45rem;
  }

  .pub-group-num { font-size: 1.1rem; }

  .home-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
  }
  .sidebar-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .research-items { grid-template-columns: 1fr; }
  .research-item {
    grid-template-columns: 1fr;
    gap: 0.65rem 0;
    padding: 1rem 1rem 0.95rem;
  }
  .research-item:last-child { grid-column: auto; }
  .research-num { font-size: 0.78rem; }

  .research-item,
  .news-item,
  .team-member,
  .member-card,
  .collab-item,
  .funding-item,
  .award-item,
  .lecture-item,
  .talk-card,
  .cardslab-callout,
  .recruiting-card {
    border-radius: 8px;
  }

  /* Team member: collapse to single column */
  .team-member {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }

  .members-grid { grid-template-columns: 1fr; }
  .member-card .team-sub { min-height: 0; }

  .collab-item,
  .funding-item { grid-template-columns: 1fr; gap: 0.25rem 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .talk-card { grid-template-columns: 1fr; }
  .paper-carousel-track { height: 280px; }
  .pc-prev, .pc-next { width: 34px; height: 34px; }
  .pc-prev svg, .pc-next svg { width: 14px; height: 14px; }

  .ss-prev, .ss-next { width: 38px; height: 38px; }
  .slideshow-overlay { gap: 0.5rem; padding: 1rem; }

  .lecture-year-group { grid-template-columns: 2rem 1fr; }
  .award-item { grid-template-columns: 2.8rem 1fr; }
  .editorial-item, .cert-item { grid-template-columns: 1fr; gap: 0.2rem 0; }

  /* Bio intro: stack photo above text */
  .bio-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem 0;
    justify-items: center;
  }
  .bio-intro-photo {
    width: 130px;
    height: 130px;
  }
  .bio-intro-grid > div { text-align: left; }

  /* Lab hero */
  .lab-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.8rem var(--pad-x) 1.4rem;
  }
  .lab-hero-logo { height: 80px; }
  .lab-hero-name { font-size: 1.55rem; }
  .lab-hero-tagline { font-size: 0.88rem; margin-left: auto; margin-right: auto; white-space: normal; }

  /* Mission pipeline: tighter */
  .mp-node { width: 120px; }
  .mp-icon-wrap { width: 48px; height: 48px; }
  .mp-icon-wrap svg { width: 26px; height: 26px; }
  .mp-label { font-size: 0.72rem; }

  /* Mission pipeline compact */
  .mission-pipeline--compact .mp-node { width: 100px; }
  .mission-pipeline--compact .mp-icon-wrap { width: 42px; height: 42px; border-radius: 8px; }
  .mission-pipeline--compact .mp-icon-wrap svg { width: 22px; height: 22px; }

  /* Sidebar photo on mobile */
  .sidebar-photo { width: 130px; height: 130px; }
}

/* --- Small phone breakpoint --- */
@media (max-width: 480px) {
  :root { --pad-x: 1rem; }

  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: 0.84rem; }

  .section-title { font-size: 1.1rem; }

  .lab-hero-name { font-size: 1.3rem; }
  .lab-hero-tagline { font-size: 0.82rem; }
  .lab-hero-context { font-size: 0.75rem; }

  .paper-carousel-track { height: 220px; }
  .pc-caption { font-size: 0.72rem; padding: 0.55rem 1.2rem 0.6rem; }

  .bio-intro-photo { width: 110px; height: 110px; }
  .bio-intro { font-size: 0.88rem; }

  .pub-title { font-size: 0.82rem; }
  .pub-citation { font-size: 0.74rem; }
  .pub-authors { font-size: 0.74rem; }

  .media-body { padding: 0.8rem 0.85rem 0.9rem; }
  .media-title { font-size: 0.88rem; }
  .media-desc { font-size: 0.76rem; }
  .media-thumb { height: 110px; }

  .talk-title { font-size: 0.9rem; }

  .recruiting-card { padding: 1.1rem 1rem; }
  .recruiting-title { font-size: 1rem; }

  /* Tighten spacing */
  .home-section { padding: 1.5rem 0; }
  section { padding: 2.5rem 0; }
  .page-main { padding: 1.5rem 0; }

  /* Badge text legibility */
  .badge { font-size: 0.68rem; padding: 0.2rem 0.5rem; }

  /* Footer */
  .footer-links { gap: 0.8rem; flex-wrap: wrap; }
  .footer-copy { font-size: 0.72rem; }
  .footer-links a { font-size: 0.72rem; }

  /* Slideshow overlay: more room for slide */
  .ss-prev, .ss-next { width: 32px; height: 32px; }
  .ss-prev svg, .ss-next svg { width: 16px; height: 16px; }
  .slideshow-overlay { padding: 0.6rem; gap: 0.3rem; }
  .ss-close { top: 0.6rem; right: 0.6rem; width: 32px; height: 32px; }
}

/* team grid: 2 columns on tablets */
@media (min-width: 681px) and (max-width: 1024px) {
  .members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
