/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --navy:        #582c83;   /* TTU purple — header, footer, hero overlay, headings */
  --navy-mid:    #6f3ea3;   /* lighter purple — hover states */
  --orange:      #FFD100;   /* TTU gold — accents on dark backgrounds, dividers, borders */
  --orange-dark: #8A6D00;   /* deep gold — text/links on white backgrounds (legible) */
  --orange-pale: #FFF6D9;   /* pale gold tint backgrounds */
  --text:        #1a1a1a;
  --text-muted:  #5a5a5a;
  --border:      rgba(0,0,0,0.1);
  --bg-alt:      #F0F0F0;   /* light gray content sections */
  --radius:      10px;
  --max-width:   900px;
}

/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--orange);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav-logo { display: flex; flex-direction: column; gap: 1px; }
.logo-mark { font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: 0.01em; white-space: nowrap; }
.logo-sub  { font-size: 10px; color: rgba(255,255,255,0.6); }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,0.75); }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: #fff; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.nav-cta {
  font-size: 13px; color: var(--navy) !important;
  background: var(--orange);
  border-radius: 6px; padding: 6px 14px;
}
.nav-cta:hover { background: var(--navy) !important; color: #fff !important; }
.nav-toggle-checkbox { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* ← HERO IMAGE: replace static/images/hero.jpg with your own photo */

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 45%, rgba(255,255,255,0.75) 75%, rgba(255,255,255,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.hero-label {
  display: block;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700; line-height: 1.2; color: var(--navy);
  max-width: 620px; letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero-kicker {
  display: block;
  font-size: clamp(14px, 1.8vw, 17px); font-weight: 600; color: var(--orange-dark);
  letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.hero-h1 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700; line-height: 1.25;
  color: var(--navy); max-width: 620px;
  margin-bottom: 1.1rem; letter-spacing: -0.01em;
}
.hero-h1 em { font-style: normal; color: var(--orange-dark); }
.hero-p { font-size: 16px; color: var(--text); line-height: 1.7; max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 10px; }
.btn-primary {
  background: var(--orange); color: var(--navy);
  font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 7px;
}
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost {
  color: var(--navy); font-size: 13px;
  padding: 10px 20px; border-radius: 7px;
  border: 0.5px solid rgba(88,44,131,0.35);
}
.btn-ghost:hover { border-color: var(--orange-dark); color: var(--orange-dark); }

/* ─── PI block ───────────────────────────────────────────── */
.pi-block { background:#fff; border-bottom:0.5px solid var(--border); padding:2.25rem 2rem; }
.pi-block-inner { max-width:var(--max-width); margin:0 auto; display:flex; gap:1.75rem; align-items:center; }
.pi-photo { display:block; width:160px; height:160px; min-width:160px; border-radius:50%; overflow:hidden; background:var(--bg-alt); }
.pi-photo img { width:100%; height:100%; object-fit:cover; object-position:top; }
.pi-photo--placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:48px; font-weight:700; color:var(--navy); }
.pi-name { display:inline-block; font-size:19px; font-weight:600; color:var(--navy); margin-bottom:1px; }
.pi-title { font-size:13px; color:var(--text-muted); margin-bottom:0.6rem; }
.pi-tagline { font-size:14px; color:var(--text); line-height:1.6; margin-bottom:0.75rem; max-width:640px; }
.pi-contact-grid { display:grid; grid-template-columns:repeat(2, minmax(160px, 220px)); gap:1.5rem; margin-top:0.25rem; }
.pi-contact-col { display:flex; flex-direction:column; gap:5px; }
.pi-contact-label { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:2px; }
.pi-contact-item { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-muted); line-height:1.5; }
.pi-contact-link { display:flex; align-items:center; gap:6px; color:var(--orange-dark); font-weight:600; text-decoration:none; }
.pi-contact-link:hover { color:var(--navy); }
.contact-icon { width:14px; height:14px; min-width:14px; flex-shrink:0; }
.pi-more { display:flex; gap:20px; flex-wrap:wrap; margin-top:1.1rem; padding-top:1rem; border-top:0.5px solid var(--border); }
.pi-more-link { font-size:12.5px; font-weight:600; color:var(--orange-dark); }
.pi-more-link:hover { color:var(--navy); }
.pi-highlight { margin-top:0.85rem; padding:1rem 1.25rem; background:var(--orange-pale); border:0.5px solid rgba(138,109,0,0.25); border-radius:var(--radius); max-width:640px; }
.pi-highlight p { font-size:13px; color:var(--text); line-height:1.6; margin-bottom:0.5rem; }
.pi-highlight-link { font-size:12.5px; font-weight:700; color:var(--orange-dark); }
.pi-highlight-link:hover { color:var(--navy); }
@media (max-width:768px) { .pi-block-inner { flex-direction:column; align-items:flex-start; text-align:left; } .pi-contact-grid { grid-template-columns:1fr; gap:1rem; } }

/* ─── Stats bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  text-align: center; padding: 1.5rem 1rem;
  border-right: 0.5px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat-n { font-size: 32px; font-weight: 700; color: var(--orange); letter-spacing: -0.02em; line-height: 1; }
.stat-l { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 5px; line-height: 1.4; }

/* ─── Shared section ─────────────────────────────────────── */
.home-section { padding: 4rem 2rem; }
.home-section--alt { background: var(--bg-alt); }
.home-section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-header h2 { flex: 1; }
.see-all { font-size: 13px; color: var(--orange-dark); white-space: nowrap; }
.see-all:hover { color: var(--navy); }
.eyebrow {
  font-size: 11px; font-weight: 700; color: var(--orange-dark);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem;
}

/* ─── News line list ─────────────────────────────────────── */
.news-line-list { display: flex; flex-direction: column; margin-top: 1.5rem; border-top: 0.5px solid var(--border); }
.news-line {
  display: flex; align-items: center; gap: 14px;
  padding: 0.85rem 0.25rem; border-bottom: 0.5px solid var(--border);
  transition: background-color .15s;
}
.news-line:hover { background-color: var(--bg-alt); }
.news-line-title { font-size: 13.5px; font-weight: 500; color: var(--text); flex: 1; }
.news-line-date { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.news-line-more { font-size: 12px; color: var(--orange-dark); font-weight: 600; white-space: nowrap; }
.news-line:hover .news-line-more { color: var(--navy); }
@media (max-width: 768px) {
  .news-line { flex-wrap: wrap; gap: 6px 12px; }
  .news-line-title { flex-basis: 100%; order: 1; }
  .news-line-date { order: 2; }
  .news-line-more { order: 3; margin-left: auto; }
}

/* ─── News grid ──────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.news-card:hover { border-color: var(--orange); box-shadow: 0 2px 12px rgba(255,209,0,0.18); }
.news-card-img { width: 100%; height: 160px; object-fit: cover; }
/* ← NEWS IMAGES: place in content/news/[item-name]/[image.jpg] and reference in index.md */
.news-card-body { padding: 1rem; }
.news-card-body h3 { font-size: 13px; font-weight: 500; line-height: 1.45; margin: 6px 0; }
.news-date { font-size: 11px; color: var(--text-muted); }

/* ─── Tags ───────────────────────────────────────────────── */
.tag { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.tag-event       { background: var(--orange-pale); color: var(--orange-dark); }
.tag-milestone   { background: #EAF3DE; color: #27500A; }
.tag-publication { background: #E8EEF7; color: #1E3A6E; }
.tag-recap       { background: #F0EDFB; color: #3C2F89; }
.tag-grant       { background: #FFF3D6; color: #8A5A00; }
.tag-service     { background: #E6EEF5; color: #582c83; }
.tag-media       { background: #F0F0F0; color: #4a4a4a; }
.tag-invited-talk { background: #E0F5F3; color: #0F6B62; }
.tag-presentation  { background: #FCE8EE; color: #9C2952; }

/* ─── Talks ──────────────────────────────────────────────── */
.talks-subsection { font-size: 16px; font-weight: 600; color: var(--navy); margin: 1.25rem 0 0.25rem; }

/* ─── Events list ────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 10px; margin-top: 1.5rem; }
.event-row {
  display: flex; gap: 1rem; align-items: center;
  background: #fff; border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  transition: border-color .15s;
}
.event-row:hover { border-color: var(--orange); }
.event-date-block {
  min-width: 48px; text-align: center;
  background: var(--orange-pale); border-radius: 8px; padding: 8px;
}
.event-month { font-size: 10px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; }
.event-day   { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; }
.event-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.event-loc   { font-size: 12px; color: var(--text-muted); }

/* ─── Institutions ───────────────────────────────────────── */
.institutions { padding: 2.5rem 2rem; border-top: 0.5px solid var(--border); }
.institutions-inner { max-width: var(--max-width); margin: 0 auto; }
.inst-label { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 1.25rem; }
.inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.inst-card {
  border: 0.5px solid var(--border); border-radius: var(--radius);
  padding: 1.125rem; text-align: center;
  transition: border-color .15s;
}
.inst-card:hover { border-color: var(--orange); }
.inst-abbr { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.inst-name { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ─── Page content ───────────────────────────────────────── */
.page-wrap { padding: 3rem 2rem; }
.page-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header { margin-bottom: 2rem; border-bottom: 2px solid var(--orange); padding-bottom: 1.5rem; }
.page-header h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-top: 0.5rem; color: var(--navy); }
.page-date { font-size: 13px; color: var(--text-muted); margin-top: 0.5rem; }
.page-content { font-size: 16px; line-height: 1.75; max-width: 680px; }
.page-content h2 { font-size: 22px; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--navy); }
.page-content h3 { font-size: 18px; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--navy); }
.page-content p  { margin-bottom: 1rem; }
.page-content a  { color: var(--orange-dark); text-decoration: underline; }

/* ─── List pages ─────────────────────────────────────────── */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 1.5rem; }
.list-card {
  border: 0.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: border-color .15s;
}
.list-card:hover { border-color: var(--orange); }
.list-card-img { width: 100%; height: 160px; object-fit: cover; }
.list-card-body { padding: 1rem; }
.list-card-body h2 { font-size: 14px; font-weight: 500; line-height: 1.45; margin: 6px 0; color: var(--navy); }
.list-date    { font-size: 11px; color: var(--text-muted); }
.list-summary { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ─── Project cards ──────────────────────────────────────── */
.project-section { margin-bottom: 2.5rem; }
.project-section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--orange-dark); border-bottom: 1px solid var(--border); padding-bottom: 0.75rem;
}
.project-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; margin-top:1.5rem; }
.project-card {
  display:block; border:0.5px solid var(--border); border-radius:var(--radius);
  overflow:hidden; background:#fff; transition:border-color .15s, box-shadow .15s;
}
.project-card:hover { border-color:var(--orange); box-shadow:0 4px 16px rgba(255,209,0,0.18); }
.project-card-img { width:100%; height:220px; overflow:hidden; background:var(--bg-alt); }
.project-card-img img { width:100%; height:100%; object-fit:cover; }
/* ← PROJECT IMAGES: add an `image` field per project to replace the placeholder */
.project-card-body { padding:1.5rem; }
.project-card-body h2 { font-size:19px; font-weight:600; color:var(--navy); margin-bottom:0.5rem; letter-spacing:-0.01em; }
.project-summary {
  font-size:13.5px; color:var(--text-muted); line-height:1.6; margin-bottom:1rem;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.project-stats { display:flex; flex-wrap:wrap; gap:1.25rem; padding:1rem 0; border-top:0.5px solid var(--border); margin-bottom:0.75rem; }
.project-stat-label { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:2px; }
.project-stat-value { font-size:12.5px; color:var(--text); font-weight:500; }
.project-card-link { font-size:12.5px; color:var(--orange-dark); font-weight:600; }
.project-card:hover .project-card-link { color:var(--navy); }

/* ─── Publications ───────────────────────────────────────── */
.pub-year-group { margin-bottom: 2.5rem; }
.pub-year { font-size: 20px; font-weight: 700; color: var(--orange-dark); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 0.5px solid var(--border); }
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.pub-item { padding-bottom: 1.25rem; border-bottom: 0.5px solid var(--border); }
.pub-item:last-child { border-bottom: none; padding-bottom: 0; }
.pub-title { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.5; margin-bottom: 4px; }
.pub-authors { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; line-height: 1.5; }
.pub-authors strong { color: var(--text); }
.pub-meta { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pub-venue { font-style: italic; }
.pub-link { color: var(--orange-dark); font-weight: 600; }
.pub-link:hover { color: var(--navy); }

/* ─── Software cards ─────────────────────────────────────── */
.software-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:1.5rem; }
.software-card {
  display:block; border:0.5px solid var(--border); border-radius:var(--radius);
  background:#fff; padding:1.5rem; text-decoration:none;
  transition:border-color .15s, box-shadow .15s;
}
.software-card:hover { border-color:var(--orange); box-shadow:0 4px 16px rgba(255,209,0,0.18); }
.software-card-header { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:0.5rem; flex-wrap:wrap; }
.software-card-header h2 { font-size:17px; font-weight:600; color:var(--navy); }
.software-funder { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em; white-space:nowrap; }
.software-desc { font-size:13.5px; color:var(--text-muted); line-height:1.6; margin-bottom:1rem; }
.software-link { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--orange-dark); font-weight:600; }
.software-card:hover .software-link { color:var(--navy); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy); padding: 2rem; border-top: 2px solid var(--orange); }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-title { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 3px; }
.footer p { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: var(--orange); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); border-bottom: 2px solid var(--orange);
    padding: 0.5rem 2rem 1rem;
  }
  .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .hero { height: 420px; }
  .hero-h1 { font-size: 28px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .software-grid { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Network map section ────────────────────────────────── */
.map-section { background:#fff; border-top:0.5px solid var(--border); border-bottom:0.5px solid var(--border); padding:2.5rem 2rem; }
.map-inner { max-width:var(--max-width); margin:0 auto; }
.map-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:1.25rem; flex-wrap:wrap; gap:0.75rem; }
.map-title { font-size:18px; font-weight:600; color:var(--navy); margin-top:4px; }
.map-legend { display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding-top:4px; }
.legend-item { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--text-muted); white-space:nowrap; }
.leg-star { font-size:14px; color:#F5C518; line-height:1; }
.leg-dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.leg-line { display:inline-block; width:22px; height:2.5px; border-radius:1px; background:#1B5FAA; }
.leg-line--dash { background:repeating-linear-gradient(90deg,#1B5FAA 0,#1B5FAA 5px,transparent 5px,transparent 9px); }

#tren-map { height:420px; border-radius:var(--radius); border:0.5px solid var(--border); overflow:hidden; }

/* Hub marker pulse ring for degraded/down */
.tren-hub-marker { position:relative; display:flex; align-items:center; justify-content:center; }
.tren-pulse {
  position:absolute; width:32px; height:32px; border-radius:50%;
  opacity:0.3; animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform:scale(0.9); opacity:0.3; }
  50%      { transform:scale(1.4); opacity:0.1; }
}

/* ─── Partners section ───────────────────────────────────── */
.partners-section { background:var(--bg-alt); border-top:0.5px solid var(--border); padding:3rem 2rem; }
.partners-inner { max-width:var(--max-width); margin:0 auto; }
.partners-title { font-size:24px; font-weight:600; color:var(--navy); text-align:center; margin-bottom:0.5rem; }
.partners-sub { font-size:14px; color:var(--text-muted); text-align:center; max-width:520px; margin:0 auto 2rem; line-height:1.6; }

.partners-group-label { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.08em; text-align:center; margin:1.5rem 0 0.75rem; }
.partners-group-label:first-of-type { margin-top:0; }

.partners-row { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:0.5rem; }

.partner-card {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; background:#fff; border:0.5px solid var(--border);
  border-radius:var(--radius); padding:0.875rem 1.125rem;
  text-decoration:none; transition:border-color .15s; min-width:110px; max-width:150px;
}
.partner-card:hover { border-color:var(--orange); }
.partner-card img { height:40px; width:auto; max-width:110px; object-fit:contain; }
.partner-card--primary img { height:48px; max-width:130px; }
.partner-name { font-size:10px; color:var(--text-muted); text-align:center; line-height:1.3; }
.partner-placeholder { font-size:14px; font-weight:700; color:var(--navy); height:40px; display:flex; align-items:center; }

@media (max-width:768px) {
  .map-header { flex-direction:column; align-items:flex-start; }
  #tren-map { height:300px; }
  .partners-row { gap:8px; }
  .partner-card { min-width:90px; padding:0.75rem; }
}

/* ─── Event row thumbnail ────────────────────────────────── */
.event-row-thumb { width:64px;height:64px;min-width:64px;object-fit:cover;border-radius:6px; }
.event-row-thumb--placeholder { background:var(--bg-alt);border:0.5px solid var(--border); }

/* ─── Event banner ───────────────────────────────────────── */
.event-banner { position:relative;height:380px;overflow:hidden; }
.event-banner-img { width:100%;height:100%;object-fit:cover;object-position:center;display:block; }
.event-banner-overlay { position:absolute;inset:0;background:linear-gradient(to top,rgba(88,44,131,0.88) 0%,rgba(88,44,131,0.3) 60%,transparent 100%);display:flex;align-items:flex-end; }
.event-banner-content { padding:2rem;max-width:var(--max-width);margin:0 auto;width:100%; }
.event-banner-title { font-size:clamp(22px,3vw,36px);font-weight:600;color:#fff;margin:0.5rem 0 0.4rem;letter-spacing:-0.02em; }
.event-banner-meta { font-size:14px;color:rgba(255,255,255,0.75); }

/* ─── Team grid ──────────────────────────────────────────── */
.team-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;margin-top:1.5rem; }
.team-card { border:0.5px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;text-decoration:none;transition:border-color .15s; }
.team-card:hover { border-color:var(--orange); }
.team-card-photo { aspect-ratio:1;overflow:hidden;background:var(--bg-alt); }
.team-card-photo img { width:100%;height:100%;object-fit:cover;object-position:top;display:block; }
.team-card-photo--placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:700;color:var(--navy);background:var(--bg-alt); }
.team-card-info { padding:1rem; }
.team-card-name { font-size:14px;font-weight:600;color:var(--navy);margin-bottom:3px; }
.team-card-title { font-size:12px;color:var(--orange-dark);margin-bottom:2px; }
.team-card-inst { font-size:11px;color:var(--text-muted); }
.team-card-link { display:block; text-decoration:none; color:inherit; }
.team-card-years { font-size:11px;color:var(--text-muted);margin-bottom:4px; }
.team-card-focus { font-size:12px;color:var(--text);line-height:1.5; }
.team-card-thesis-title { font-size:11px;color:var(--text-muted);line-height:1.5;margin-top:4px;font-style:italic; }
.team-card-now-at { font-size:11px;color:var(--text-muted);margin-top:4px; }
.team-card-now-at::before { content:"→ "; color:var(--orange-dark); font-style:normal; }
.team-card-thesis { display:block; font-size:11.5px; font-weight:600; color:var(--orange-dark); text-decoration:none; padding:0 1rem 0.85rem; margin-top:-4px; }
.team-card-thesis:hover { color:var(--navy); }
.team-section-label { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.08em; margin:2.5rem 0 0.5rem; padding-top:1.5rem; border-top:0.5px solid var(--border); }
.team-section-label:first-of-type { margin-top:1.5rem; padding-top:0; border-top:none; }
.team-subsection { font-size:16px; font-weight:600; color:var(--navy); margin:1.25rem 0 0.5rem; }

/* ─── Team member single ─────────────────────────────────── */
.member-layout { display:grid;grid-template-columns:240px 1fr;gap:3rem;align-items:flex-start; }
.member-photo { border-radius:10px;overflow:hidden;aspect-ratio:1;background:var(--bg-alt); }
.member-photo img { width:100%;height:100%;object-fit:cover;object-position:top;display:block; }
.member-photo--placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:52px;font-weight:700;color:var(--navy); }
.member-meta { margin-top:1rem;display:flex;flex-direction:column;gap:8px; }
.member-contact { display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-muted);text-decoration:none; }
.member-contact:hover { color:var(--orange-dark); }
.member-header { margin-bottom:1.25rem;padding-bottom:1.25rem;border-bottom:0.5px solid var(--border); }
.member-name { font-size:28px;font-weight:600;color:var(--navy);letter-spacing:-0.02em;margin-bottom:4px; }
.member-role { font-size:16px;color:var(--orange-dark);font-weight:500;margin-bottom:3px; }
.member-institution { font-size:14px;color:var(--text-muted); }
.member-tags { display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1.5rem; }
.member-tag { font-size:11px;padding:3px 10px;border-radius:20px;background:var(--orange-pale);color:var(--orange-dark); }
.member-back { font-size:13px;color:var(--orange-dark);text-decoration:none; }
@media(max-width:768px){ .member-layout{grid-template-columns:1fr;} .member-photo{max-width:200px;} }
