@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
/* ==========================================================================
   CARE Research Group — shared styles
   "Orchard" direction: sage-forward, organic, single-font (Manrope).
   Edit the colors in :root below to re-theme the whole site.
   ========================================================================== */

:root {
  --ink:        #3c4536;   /* headings — deep green-charcoal */
  --ink-soft:   #6b775f;   /* paragraph text — muted sage-gray */
  --brand:      #5c7a4f;   /* primary green — nav accent, buttons, heading accents */
  --brand-dark: #4a6340;   /* darker green — button hovers */
  --sage:       #8aa07a;   /* mid sage — subtle accents, borders */
  --terra:      #c9762f;   /* terracotta — eyebrows, small labels */
  --terra-dark: #a95f22;
  --gold:       #d99a3c;   /* warm gold — small highlights */
  --accent:     #c9762f;   /* alias: terracotta as the label color */
  --sand:       #fbfaf5;   /* warm white — main section background */
  --sage-bg:    #eef2e8;   /* pale sage — alternate section background */
  --paper:      #ffffff;   /* flat white — cards */
  --line:       #e6e4d6;   /* hairline separators */

  --footer-bg:  #3c4536;
  --footer-txt: #c7d4bb;

  /* blob tints */
  --blob-sage:  #d7e2c9;
  --blob-terra: #edccac;

  --maxw: 1080px;
  --radius: 24px;
  --shadow: 0 6px 24px rgba(60,69,54,.05);

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
/* Left-align narrow prose columns to the same left edge as full-width sections,
   instead of centering them (keeps a readable ~760px measure). */
.wrap.narrow { margin-left: max(0px, calc((100% - var(--maxw)) / 2)); margin-right: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,245,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 40px; width: auto; }
.brand-txt {
  font-family: var(--serif); font-weight: 800; font-size: 1.24rem;
  color: var(--brand); letter-spacing: -0.02em; line-height: 1;
}
.brand-txt em { font-style: normal; color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--ink); font-size: .95rem; font-weight: 600;
  text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--ink); line-height: 1;
}

/* ---------- Hero (warm white, organic blobs) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--sand);
  color: var(--ink); padding: 76px 0 70px;
}
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 480px; height: 440px; top: -150px; left: -130px;
  background: var(--blob-sage); opacity: .6;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 400px; height: 380px; bottom: -160px; right: -120px;
  background: var(--blob-terra); opacity: .5;
  border-radius: 58% 42% 38% 62% / 55% 58% 42% 45%;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
}
.hero h1 { color: var(--ink); font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.1; margin: 0 0 .4em; font-weight: 600; }
.hero h1 strong { color: inherit; font-weight: 800; }
.hero .lede { font-size: 1.18rem; max-width: 660px; color: var(--ink-soft); margin: 0 0 1.4em; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--terra); margin: 0 0 1em; font-family: var(--sans);
}
.hero-logo { justify-self: center; max-width: 320px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 12px 24px; border-radius: 30px; font-weight: 700;
  font-size: .95rem; text-decoration: none; border: 2px solid var(--brand);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; color: #fff; }
.btn.sage { background: var(--brand); border-color: var(--brand); }
.btn.sage:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--sage); }
.btn.ghost:hover { background: rgba(138,160,122,.16); border-color: var(--brand); color: var(--brand-dark); }
.btn.light { background: #fff; color: var(--brand); border-color: #fff; }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--brand-dark); }
.btn.dark { background: var(--brand); border-color: var(--brand); }
.btn.dark:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-tint { background: var(--sage-bg); }
.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head .eyebrow,
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--terra); margin: 0 0 .6em; font-family: var(--sans);
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 .4em; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper); border: 0;
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .5em; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--terra); background: #f6e7d5;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.card.theme { border-top: 0; }
.card.theme.t1 { border-top: 0; }
.card.theme.t2 { border-top: 0; }
.card.theme.t3 { border-top: 0; }
.card.theme.t4 { border-top: 0; }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { text-align: center; }
.person .avatar {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 0; box-shadow: none;
  background: #e4ecdd;
}
.person .avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.2rem; color: var(--brand);
  font-weight: 800; background: #e4ecdd;
}
.person h3 { margin: 0 0 .15em; font-size: 1.15rem; }
.person .role { color: var(--terra); font-weight: 700; font-size: .92rem; margin: 0 0 .4em; }
.person p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- PI / about layout ---------- */
.pi-layout { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.pi-photo { border-radius: var(--radius); box-shadow: none; border: 0; }
.timeline { border-left: 2px solid var(--line); padding-left: 22px; margin: 0; }
.timeline .item { margin-bottom: 22px; }
.timeline .yr { font-size: .82rem; font-weight: 700; color: var(--terra); letter-spacing: .03em; }
.timeline .role { font-weight: 700; }
.timeline .place { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Courses ---------- */
.courses { display: grid; gap: 12px; margin: 1.1em 0 1.4em; }
.course {
  background: var(--sage-bg); border: 0;
  border-radius: 16px; padding: 15px 20px;
}
.course .code { font-weight: 700; color: var(--terra); font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
.course .name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: 2px 0 1px; }
.course .lvl { color: var(--ink-soft); font-size: .88rem; }

/* ---------- PI tabbed sections ---------- */
.pi-tabs { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.pi-tab {
  text-align: left; background: transparent; border: 0; border-left: 3px solid transparent;
  padding: 10px 16px; font-family: var(--sans); font-size: .98rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; border-radius: 0 12px 12px 0; transition: background .12s, color .12s;
}
.pi-tab:hover { background: var(--sage-bg); color: var(--brand); }
.pi-tab.active { background: var(--sage-bg); color: var(--brand-dark); border-left-color: var(--terra); font-weight: 700; }
.pi-panel { display: none; }
.pi-panel.active { display: block; }
.pi-panel > h2:first-child { margin-top: 0; font-size: 1.5rem; }
.pi-panel h3:first-of-type { margin-top: 0; }

@media (max-width: 860px) {
  .pi-tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .pi-tab { border-left: 0; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font-size: .9rem; }
  .pi-tab.active { border-color: var(--terra); background: var(--sage-bg); }
}

/* ---------- Publications ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--ink); }
.pub-list li:last-child { border-bottom: 0; }
.pub-list .venue { color: var(--brand); font-style: italic; }
.pub-list .year { display: inline-block; font-weight: 700; color: var(--terra); margin-right: 10px; font-size: .9rem; }

/* ---------- News ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list .date { flex: 0 0 96px; color: var(--terra); font-weight: 700; font-size: .88rem; }
.news-list .what { color: var(--ink); font-size: .98rem; }

/* ---------- Callout ---------- */
.callout { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.callout h2 { color: #fff; margin: 0 0 .4em; }
.callout p { color: #e2ebda; max-width: 560px; margin: 0 auto 1.4em; }

/* ---------- Highlight / engagement ---------- */
.highlight { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.highlight .box { background: var(--sage-bg); border-radius: var(--radius); padding: 34px; border: 0; }

/* ---------- Photo gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.gallery img {
  width: 100%; height: 210px; object-fit: cover; border-radius: var(--radius); cursor: pointer;
  box-shadow: none; border: 0; transition: transform .15s;
}
.gallery img:hover { transform: scale(1.02); }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100; padding: 24px;
  background: rgba(40,42,32,.86); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 12px 50px rgba(0,0,0,.5); }
.lightbox .lb-close {
  position: absolute; top: 14px; right: 22px; color: #fff; font-size: 2.2rem;
  line-height: 1; cursor: pointer; font-family: var(--sans);
}

/* ---------- Partner chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.chip strong { color: var(--brand); font-weight: 700; }

/* ---------- Study-regions map ---------- */
.map-card { background: var(--paper); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .88rem; color: var(--ink-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-txt); padding: 50px 0 32px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid h4 { color: #fff; margin: 0 0 .6em; font-size: 1rem; }
.footer-grid .col p { margin: .2em 0; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: #a7b79d; font-size: .85rem; }

.prose::after { content: ""; display: table; clear: both; }
.fig-side {
  float: right; width: 340px; max-width: 44%;
  margin: 4px 0 14px 24px; border-radius: var(--radius);
  box-shadow: none; border: 0;
}
@media (max-width: 700px) {
  .fig-side { float: none; width: 100%; max-width: 100%; margin: 14px 0; }
}
.prose p { color: var(--ink-soft); }
.prose h3 { margin-top: 1.6em; color: var(--brand); font-weight: 800; }
.prose h4 { margin: 1.4em 0 .3em; color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .pi-layout { grid-template-columns: 1fr; }
  .pi-photo { position: static; max-width: 240px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .highlight { grid-template-columns: 1fr; gap: 24px; }
  .nav-links {
    display: none; position: absolute; top: 64px; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
  .brand-txt em { display: none; }
}
@media (max-width: 520px) {
  .people-grid { grid-template-columns: 1fr; }
  .news-list li { flex-direction: column; gap: 2px; }
}
