/* ============================================================
   TVP Lab — Cambridge | Wix Template Recreation
   Institute of Metabolic Science, University of Cambridge
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  background-color: #eef1f8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   FIXED SOCIAL ICON STRIP — right side, vertically centred
   ============================================================ */

.social-strip {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: #fff;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.09);
  border-left: 1px solid #e0e4ef;
}

.social-strip a {
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}

.social-strip a:hover { opacity: 0.5; }

.social-strip svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  background: #fff;
  padding: 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid #000;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 68px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 0;
  margin-left: 36px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: #222;
}

.header-divider {
  display: none; /* replaced by border-bottom on sticky header */
}

/* ============================================================
   HERO — inner pages (small)
   ============================================================ */

.hero {
  background: #eef1f8;
  padding: 88px 56px 0;
  text-align: center;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: bold;
  line-height: 1.15;
  color: #111;
  margin-bottom: 26px;
}

.hero p {
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.78;
  color: #555;
}

.hero--sm {
  padding: 70px 56px 72px;
}

.hero--sm h1 {
  font-size: clamp(30px, 4vw, 50px);
}

/* ============================================================
   HERO — homepage full-bleed sticky photo (hero-home)
   ============================================================ */

.hero-home {
  position: relative;
  overflow: hidden;
  background: #000;
  height: 600px;
}

.hero-home .hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.88;
}

/* ============================================================
   RESEARCH CARD — scrolls over sticky hero photo
   ============================================================ */

.card-section {
  background: #eef1f8;
  padding: 0 56px 72px;
  position: relative;
}

.white-card {
  background: #fff;
  width: 75%;
  margin: -52px auto 0;
  padding: 64px 72px;
  text-align: center;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.22), 0 4px 24px rgba(0,0,0,0.07);
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.white-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION TITLE WITH EXTENDING LINES  ——— Title ———
   ============================================================ */

.section-heading-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 44px;
}

.section-heading-row .rule {
  flex: 1;
  height: 1px;
  background: #111;
}

.section-heading-row h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 30px;
  font-weight: bold;
  white-space: nowrap;
  color: #111;
}

/* ============================================================
   WHITE CARD — typography
   ============================================================ */

.white-card h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 36px;
  font-weight: bold;
  color: #111;
  margin-bottom: 28px;
}

.white-card p {
  font-size: 16px;
  line-height: 1.87;
  color: #555;
  margin-bottom: 18px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BLUE BUTTON
   ============================================================ */

.btn-blue {
  display: inline-block;
  background: #4a5ab5;
  color: #fff;
  border: none;
  padding: 14px 44px;
  font-size: 14px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
  margin-top: 30px;
  transition: background 0.18s;
}

.btn-blue:hover { background: #39499f; }

/* ============================================================
   HOME — NEWS & EVENTS (3-col grid, no gaps)
   ============================================================ */

.news-section {
  background: #eef1f8;
  padding: 72px 56px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.news-card { background: #eef1f8; }

.news-card .news-img {
  width: 100%;
  height: 350px;
  background: #b8bfcf;
  display: block;
}

.news-card:nth-child(2) .news-img { background: #9fa8be; }
.news-card:nth-child(3) .news-img { background: #c2c9d8; }

.news-card .news-body { padding: 22px 20px 30px; }

.news-card .news-date {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.news-card h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.38;
}

.news-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.72;
}

/* ============================================================
   HOME — LATEST PUBLICATIONS CAROUSEL
   ============================================================ */

.pub-section {
  background: #eef1f8;
  padding: 72px 56px 88px;
}

.pub-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.pub-arrow {
  background: #fff;
  border: 1px solid #bbb;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s;
  border-radius: 0;
  font-family: system-ui, sans-serif;
  line-height: 1;
}

.pub-arrow:hover { background: #e8eaf2; }

.pub-content {
  text-align: center;
  max-width: 620px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pub-slide { display: none; }
.pub-slide.active { display: block; }

.pub-slide h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 22px;
  font-weight: bold;
  color: #111;
  margin-bottom: 14px;
  line-height: 1.42;
}

.pub-slide .pub-authors {
  font-size: 13px;
  color: #4a5ab5;
  margin-bottom: 14px;
  font-style: italic;
}

.pub-slide p {
  font-size: 15px;
  color: #666;
  line-height: 1.78;
}

.pub-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.pub-dot {
  width: 9px;
  height: 9px;
  background: #c0c4d6;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background 0.18s;
}

.pub-dot.active { background: #4a5ab5; }

/* ============================================================
   RESEARCH PAGE — 2×2 TOPIC CARDS
   ============================================================ */

.topic-grid-section {
  background: #eef1f8;
  padding: 0 56px 80px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.topic-card {
  background: #fff;
  padding: 48px 44px;
}

.topic-card .topic-img {
  width: 100%;
  height: 190px;
  margin-bottom: 24px;
  display: block;
}

.topic-card:nth-child(1) .topic-img { background: #a0aec0; }
.topic-card:nth-child(2) .topic-img { background: #90a0b8; }
.topic-card:nth-child(3) .topic-img { background: #a8b5c5; }
.topic-card:nth-child(4) .topic-img { background: #98a8bc; }

.topic-card h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 22px;
  font-weight: bold;
  color: #111;
  margin-bottom: 14px;
}

.topic-card .topic-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4a5ab5;
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 15px;
  line-height: 1.82;
  color: #666;
}

/* ============================================================
   PUBLICATIONS PAGE — LIST
   ============================================================ */

.pub-list-section {
  background: #eef1f8;
  padding: 60px 56px 88px;
}

.pub-list {
  width: 75%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pub-entry {
  background: #fff;
  padding: 34px 44px;
  border-left: 4px solid #4a5ab5;
}

.pub-entry h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.42;
}

.pub-entry .pub-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.pub-entry .pub-meta em { color: #4a5ab5; font-style: italic; }

.pub-entry p {
  font-size: 14px;
  color: #666;
  line-height: 1.72;
  margin-bottom: 16px;
}

/* ============================================================
   NEWS FULL PAGE — 3-col cards
   ============================================================ */

.news-full-section {
  background: #eef1f8;
  padding: 60px 56px 88px;
}

.news-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-full-card { background: #fff; }

.news-full-card .card-img {
  width: 100%;
  height: 210px;
  display: block;
}

.news-full-card:nth-child(1) .card-img { background: #b8bfcf; }
.news-full-card:nth-child(2) .card-img { background: #a0abbe; }
.news-full-card:nth-child(3) .card-img { background: #c0c8d6; }
.news-full-card:nth-child(4) .card-img { background: #b2bccb; }
.news-full-card:nth-child(5) .card-img { background: #aab5c6; }
.news-full-card:nth-child(6) .card-img { background: #c6ccd8; }

.news-full-card .card-body { padding: 24px 26px 28px; }

.news-full-card .card-date {
  font-size: 11px;
  color: #4a5ab5;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
  font-weight: 700;
}

.news-full-card h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.38;
}

.news-full-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.72;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
  background: #eef1f8;
  padding: 60px 56px 88px;
}

.contact-card {
  background: #fff;
  width: 75%;
  margin: 0 auto;
  padding: 64px 72px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-form-col h2,
.contact-info-col h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 26px;
  font-weight: bold;
  color: #111;
  margin-bottom: 28px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid #ccc;
  padding: 11px 14px;
  font-size: 14px;
  font-family: system-ui, sans-serif;
  color: #333;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4a5ab5;
}

.form-group textarea { min-height: 130px; resize: vertical; }

.contact-info-col address {
  font-style: normal;
  font-size: 15px;
  color: #666;
  line-height: 2;
}

.contact-info-col .info-block { margin-top: 28px; }

.contact-info-col .info-block h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #333;
  margin-bottom: 4px;
}

.contact-info-col .info-block p {
  font-size: 15px;
  color: #666;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-profile-wrap {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 36px;
}

.about-portrait {
  width: 185px;
  height: 225px;
  background: #b0bac9;
  flex-shrink: 0;
  display: block;
}

.about-bio h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 23px;
  font-weight: bold;
  color: #111;
  margin-bottom: 14px;
}

.about-bio p {
  font-size: 15px;
  line-height: 1.86;
  color: #555;
  margin-bottom: 14px;
  text-align: left;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #1a1e2e;
  color: #9aa0b8;
  padding: 32px 56px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer a { color: #7080c8; }
.site-footer a:hover { color: #a0b0e0; }

/* ============================================================
   SHARED LAYOUT HELPERS (people.html / vacancies.html)
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: #f4f7fc;
  padding: 64px 0;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: bold;
  color: #0a2342;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 15px;
  color: #6a8aaa;
  margin-bottom: 14px;
}

.section-divider {
  height: 3px;
  width: 52px;
  background: #2e7bcf;
  border-radius: 2px;
  margin-bottom: 32px;
}

/* ============================================================
   PEOPLE PAGE
   ============================================================ */

.people-section {
  margin-bottom: 56px;
}

.people-section__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: bold;
  color: #0a2342;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d0e4f8;
}

.pi-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 2px 18px rgba(10,35,66,0.09);
}

.pi-card__photo {
  width: 140px;
  height: 140px;
  min-width: 140px;
  background: #e0ecf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.pi-card__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: bold;
  color: #0a2342;
  margin-bottom: 5px;
}

.pi-card__title {
  font-size: 14px;
  color: #2e7bcf;
  font-weight: 600;
  margin-bottom: 14px;
}

.pi-card__bio {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.person-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 16px 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(10,35,66,0.07);
  transition: box-shadow 0.2s;
}

.person-card:hover {
  box-shadow: 0 4px 20px rgba(10,35,66,0.13);
}

.person-card__photo {
  width: 72px;
  height: 72px;
  background: #e0ecf8;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.person-card__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: bold;
  color: #0a2342;
  margin-bottom: 4px;
}

.person-card__role {
  font-size: 12px;
  color: #6a8aaa;
}

/* ============================================================
   VACANCIES PAGE
   ============================================================ */

.vacancy-block {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 20px;
  border-left: 4px solid #2e7bcf;
  box-shadow: 0 2px 12px rgba(10,35,66,0.07);
}

.vacancy-block__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: bold;
  color: #0a2342;
  margin-bottom: 10px;
}

.vacancy-block__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.vacancy-block__tag {
  display: inline-block;
  font-size: 12px;
  background: #e8f0fc;
  color: #2e5aaa;
  border-radius: 20px;
  padding: 3px 12px;
  font-weight: 600;
}

.vacancy-block__desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .pi-card { flex-direction: column; align-items: center; text-align: center; }
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info__icon {
  font-size: 1.4rem;
  min-width: 30px;
  margin-top: 2px;
}

.contact-info__label {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #2e7bcf;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.contact-info__text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* ============================================================
   SHARED BUTTON STYLES (used in people + vacancies)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: 2px solid transparent;
}

.btn--primary {
  background: #2e7bcf;
  color: #fff;
  border-color: #2e7bcf;
}

.btn--primary:hover {
  background: #1a5fa8;
  border-color: #1a5fa8;
}

.btn--outline {
  background: transparent;
  color: #0a2342;
  border-color: #b0c8e0;
}

.btn--outline:hover {
  background: #e8f0fc;
}

/* ============================================================
   FORM STYLES (vacancies contact form)
   ============================================================ */

.form { display: flex; flex-direction: column; gap: 16px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group { display: flex; flex-direction: column; gap: 5px; }

.form__label {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0a2342;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #222;
  background: #f4f8fd;
  border: 1.5px solid #c8d8ec;
  border-radius: 6px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.18s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: #2e7bcf;
  background: #fff;
}

.form__textarea {
  min-height: 130px;
  resize: vertical;
}

/* ============================================================
   ZWICKER-INSPIRED INNER PAGES
   Clean white, academic, text-first
   ============================================================ */

body.inner-page {
  background: #fff;
}

/* Page masthead — title + optional lead */
.page-masthead {
  background: #fff;
  padding: 72px 56px 40px;
  border-bottom: 1px solid #ddd;
}

.page-masthead h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: bold;
  color: #111;
  line-height: 1.2;
  margin-bottom: 0;
}

.page-masthead .page-lead {
  margin-top: 16px;
  font-size: 16px;
  color: #555;
  line-height: 1.78;
  max-width: 660px;
}

/* Centered masthead variant (used on people page) */
.page-masthead--centered {
  text-align: center;
}
.page-masthead--centered .page-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Main content wrapper */
.inner-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 56px;
}

/* Generic content section */
.zw-section {
  padding: 52px 0;
  border-bottom: 1px solid #e8e8e8;
}
.zw-section:last-child {
  border-bottom: none;
  padding-bottom: 88px;
}

.zw-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a5ab5;
  margin-bottom: 10px;
}

.zw-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: bold;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.3;
}

.zw-section h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.35;
}

.zw-section p {
  font-size: 15px;
  line-height: 1.88;
  color: #444;
  margin-bottom: 14px;
}

.zw-section p:last-child { margin-bottom: 0; }

/* Inline link style */
.zw-link {
  color: #4a5ab5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— ABOUT PAGE ——— */

.about-pi-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.about-pi-block .pi-photo {
  width: 160px;
  height: 195px;
  background: #d8dde8;
  display: block;
  object-fit: cover;
}

.about-pi-block h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #111;
  margin-bottom: 6px;
}

.about-pi-block .pi-title-line {
  font-size: 13px;
  color: #4a5ab5;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.about-pi-block p {
  font-size: 15px;
  line-height: 1.88;
  color: #444;
  margin-bottom: 13px;
}

/* ——— RESEARCH PAGE ——— */

.research-topic {
  padding: 44px 0;
  border-bottom: 1px solid #e8e8e8;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: flex-start;
}

.research-topic:last-child { border-bottom: none; padding-bottom: 80px; }

.research-topic-meta {
  padding-top: 4px;
}

.research-topic-meta .topic-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4a5ab5;
  display: block;
  margin-bottom: 8px;
}

.research-topic-meta .topic-area {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.research-topic-body h2 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: bold;
  color: #111;
  margin-bottom: 14px;
  line-height: 1.32;
}

.research-topic-body p {
  font-size: 15px;
  line-height: 1.88;
  color: #444;
  margin-bottom: 13px;
}

.research-topic-body p:last-child { margin-bottom: 0; }

/* ——— PUBLICATIONS PAGE ——— */

.pub-year-group {
  padding: 44px 0 0;
}

.pub-year-heading {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  color: #aaa;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 10px;
  margin-bottom: 28px;
}

.pub-academic-entry {
  padding: 0 0 28px 0;
  margin-bottom: 28px;
  border-bottom: 1px solid #f0f0f0;
}

.pub-academic-entry:last-child {
  border-bottom: none;
}

.pub-academic-entry h3 {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  color: #111;
  line-height: 1.45;
  margin-bottom: 7px;
}

.pub-academic-entry .pub-authors {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 5px;
}

.pub-academic-entry .pub-source {
  font-size: 13px;
  color: #4a5ab5;
  font-style: italic;
}

.pub-academic-entry .pub-abstract {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin-top: 10px;
}

/* ——— PEOPLE PAGE ——— */

.pi-profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  align-items: flex-start;
  padding: 44px 0;
  border-bottom: 1px solid #e8e8e8;
}

.pi-profile .pi-photo-box {
  width: 170px;
  height: 210px;
  background: #d8dde8;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.pi-profile h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  color: #111;
  margin-bottom: 4px;
}

.pi-profile .pi-title {
  font-size: 13px;
  color: #4a5ab5;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.pi-profile p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 12px;
}

.pi-profile .pi-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pi-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: #4a5ab5;
  border: 1px solid #c0c8e8;
  padding: 5px 14px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

.pi-link-btn:hover { background: #f0f2fa; }

.people-group {
  padding: 44px 0 0;
  margin-bottom: 44px;
}

.people-group h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: bold;
  color: #111;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 28px;
}

.people-table {
  width: 100%;
  border-collapse: collapse;
}

.people-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.people-table tr:last-child { border-bottom: none; }

.people-table td {
  padding: 14px 0;
  font-size: 14.5px;
  color: #333;
  vertical-align: top;
}

.people-table .pt-name {
  font-weight: 600;
  width: 240px;
  color: #111;
}

.people-table .pt-role {
  color: #666;
}

/* ——— NEWS PAGE ——— */

.news-entry {
  padding: 36px 0;
  border-bottom: 1px solid #e8e8e8;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  align-items: flex-start;
}

.news-entry:last-child { border-bottom: none; padding-bottom: 80px; }

.news-entry .news-date-col {
  padding-top: 4px;
}

.news-entry .news-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a5ab5;
}

.news-entry h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.38;
}

.news-entry p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.78;
}

/* ——— CONTACT PAGE ——— */

.contact-layout-zw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 52px 0 80px;
}

.contact-layout-zw h2 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: bold;
  color: #111;
  margin-bottom: 24px;
}

.contact-info-block {
  margin-bottom: 28px;
}

.contact-info-block .ci-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a5ab5;
  margin-bottom: 5px;
}

.contact-info-block p, .contact-info-block address {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  font-style: normal;
}

/* ——— VACANCIES PAGE ——— */

.vacancy-entry {
  padding: 40px 0;
  border-bottom: 1px solid #e8e8e8;
}

.vacancy-entry:last-child { border-bottom: none; }

.vacancy-entry h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.35;
}

.vacancy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.vacancy-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid #c0c8e8;
  color: #4a5ab5;
}

.vacancy-entry p {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 20px;
}

.vacancy-actions {
  display: flex;
  gap: 12px;
}

.btn-apply {
  display: inline-block;
  background: #4a5ab5;
  color: #fff;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-apply:hover { background: #39499f; }

.btn-jd {
  display: inline-block;
  border: 1px solid #c0c8e8;
  color: #4a5ab5;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-jd:hover { background: #f0f2fa; }

/* ——— WHY JOIN GRID ——— */

.why-join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 52px;
}

.why-join-card {
  padding: 28px 24px;
  border: 1px solid #e0e4f0;
  background: #fff;
}

.why-join-card h4 {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
}

.why-join-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.72;
}

/* ——— PI LINK CARD ——— */
.pi-link-card {
  border: 1px solid #e4e8f0;
  background: #fff;
  padding: 28px 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: inherit;
}
.pi-link-card:hover {
  border-color: #4a5ab5;
  box-shadow: 0 2px 12px rgba(74,90,181,0.08);
}

/* ——— TEAM CARDS (Zwicker-inspired) ——— */

.team-section {
  padding: 44px 0 0;
  border-top: 1px solid #e4e8f0;
  margin-top: 44px;
}
.team-section:first-of-type { margin-top: 0; border-top: none; }

.team-section-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5ab5;
  margin-bottom: 32px;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  padding: 28px 24px;
  border: 1px solid #e4e8f0;
  background: #fff;
}

.team-card .tc-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5ab5;
  background: #f0f2fa;
  padding: 3px 9px;
  margin-bottom: 12px;
}

.team-card .tc-name {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
}

.team-card .tc-bio {
  font-size: 13.5px;
  color: #555;
  line-height: 1.75;
}

/* details/summary for clickable team member cards */
details.team-card summary {
  cursor: pointer;
  list-style: none;
}
details.team-card summary::-webkit-details-marker { display: none; }

.tc-summary {
  display: block;
}

.tc-summary .tc-name::after {
  content: " ↓";
  font-size: 12px;
  color: #4a5ab5;
  font-weight: 400;
}
details[open] .tc-summary .tc-name::after {
  content: " ↑";
}

.tc-details-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f2fa;
  font-size: 13.5px;
  color: #555;
  line-height: 1.75;
}

/* PI accordion */
.pi-accordion {
  border: 1px solid #e4e8f0;
  background: #fff;
  margin-bottom: 44px;
}

.pi-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
  gap: 20px;
}
.pi-accordion summary::-webkit-details-marker { display: none; }

.pi-accordion-meta { flex: 1; }

.pi-accordion-name {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  color: #111;
  margin-bottom: 4px;
}

.pi-accordion-title {
  font-size: 13px;
  color: #4a5ab5;
  font-weight: 500;
}

.pi-accordion-toggle {
  font-size: 20px;
  color: #4a5ab5;
  flex-shrink: 0;
  transition: transform 0.2s;
  user-select: none;
}
.pi-accordion[open] .pi-accordion-toggle { transform: rotate(180deg); }

.pi-accordion-body {
  padding: 0 32px 32px;
  border-top: 1px solid #f0f2fa;
}

.pi-accordion-body p {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-top: 20px;
}

.pi-accordion-body .pi-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ============================================================
   PHOTO-CARD PEOPLE PAGE
   ============================================================ */

/* Section wrapper */
.people-section {
  padding: 48px 0 0;
  border-top: 1px solid #e4e8f0;
  margin-top: 48px;
}
.people-section:first-of-type { margin-top: 0; border-top: none; }

.people-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5ab5;
  margin-bottom: 32px;
  text-align: center;
}

/* Photo card grid — uniform columns, 3-up on desktop */
.photo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* Individual photo card */
.photo-card {
  background: #fff;
  border: 1px solid #e4e8f0;
  overflow: hidden;
  transition: box-shadow 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
}
.photo-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
  border-color: #b0b9e8;
}

/* Remove default details/summary markers */
.photo-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.photo-card > summary::-webkit-details-marker { display: none; }

/* Photo area — square, consistent across all cards */
.pc-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ebf5;
  flex-shrink: 0;
}
.pc-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}
.photo-card:hover .pc-photo-wrap img {
  transform: scale(1.04);
}
/* Placeholder when no photo */
.pc-photo-wrap.photo-placeholder {
  background: linear-gradient(145deg, #dde2f0 0%, #c8ceea 100%);
}

/* Card text — centered */
.pc-info {
  padding: 20px 16px 22px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pc-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5ab5;
}
.pc-name {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: bold;
  color: #111;
  line-height: 1.3;
}
.pc-name::after {
  content: " ↓";
  font-size: 12px;
  color: #4a5ab5;
  font-weight: 400;
  font-family: system-ui, sans-serif;
}
details[open] > summary .pc-name::after {
  content: " ↑";
}

/* Bio (expanded content) */
.pc-bio {
  padding: 14px 20px 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.78;
  border-top: 1px solid #eef0fa;
  text-align: left;
}

/* ——— PI FEATURED PHOTO CARD ——— */
.pi-photo-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #fff;
  border: 1px solid #e4e8f0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, border-color 0.18s;
  max-width: 800px;
}
.pi-photo-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border-color: #4a5ab5;
}
.pi-photo-wrap {
  width: 260px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8ebf5;
  flex-shrink: 0;
}
.pi-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.pi-photo-wrap.photo-placeholder {
  background: linear-gradient(135deg, #dde2f0 0%, #c8ceea 100%);
}
.pi-photo-body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.pi-photo-body .pc-role {
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.pi-photo-body .pc-name {
  font-size: 22px;
  line-height: 1.25;
}
.pi-photo-body .pc-name::after { content: ''; }
.pc-title {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-top: 4px;
}
.pc-view-profile {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5ab5;
}

/* ——— RESPONSIVE ——— */

@media (max-width: 720px) {
  .page-masthead { padding: 48px 24px 28px; }
  .inner-wrap { padding: 0 24px; }
  .research-topic { grid-template-columns: 1fr; gap: 16px; }
  .news-entry { grid-template-columns: 1fr; gap: 8px; }
  .about-pi-block { grid-template-columns: 1fr; }
  .pi-profile { grid-template-columns: 1fr; }
  .contact-layout-zw { grid-template-columns: 1fr; gap: 40px; }
  .why-join-grid { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; }
  .pi-accordion summary { padding: 20px; }
  .pi-accordion-body { padding: 0 20px 24px; }
  .photo-card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .photo-card--wide { max-width: 100%; }
  .pi-photo-card { grid-template-columns: 1fr; }
  .pi-photo-wrap { width: 100%; aspect-ratio: 4 / 3; }
  .pi-photo-body { padding: 24px 20px; }
  .pi-photo-body .pc-name { font-size: 18px; }
}

/* ============================================================
   ZWICKER-STYLE TEAM LIST (photo left + text right, always visible)
   ============================================================ */

.zw-team-section {
  padding: 52px 0 0;
  border-top: 1px solid #e4e8f0;
  margin-top: 52px;
}
.zw-team-section:first-of-type { margin-top: 0; border-top: none; }

.zw-team-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4a5ab5;
  margin-bottom: 36px;
}

/* Person row */
.zw-person {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid #f0f2fa;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}
.zw-person:last-child { border-bottom: none; }

/* PI row — slightly larger photo, hover effect */
a.zw-person--pi {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: none;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s;
}
a.zw-person--pi:hover { opacity: 0.82; }

/* Photo */
.zw-person-photo {
  width: 160px;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(145deg, #dde2f0, #c8ceea);
  flex-shrink: 0;
}
.zw-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Text */
.zw-person-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.zw-person-name {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;
  color: #111;
  line-height: 1.25;
}
.zw-person-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4a5ab5;
  margin-top: 4px;
}
.zw-person-bio {
  font-size: 14.5px;
  color: #444;
  line-height: 1.78;
  margin-top: 10px;
  max-width: 620px;
}
.zw-person-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5ab5;
}

@media (max-width: 600px) {
  .zw-person,
  a.zw-person--pi {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .zw-person-photo { width: 120px; height: 120px; }
}
