/* =========================================================
   Laboratoire sur L'Énergie Solaire
   Université de Lomé, Prof. Yendoubé Lare
   Clean academic theme inspired by Prof. Shimeng Yu's site
   White background, green-only accent system
   ========================================================= */

:root {
  --leaf: #1d6b4a;
  --leaf-dark: #144f37;
  --leaf-darker: #0d3a28;
  --canopy: #2d8659;
  --leaf-light: #4ca77d;
  --mint: #d8f0e2;
  --mint-soft: #f0faf4;
  --white: #ffffff;
  --off-white: #fafafa;
  --slate: #1a2e2a;
  --moss: #5a6b65;
  --moss-light: #8a9690;
  --border: #e5e7eb;
  --border-soft: #f1f5f3;
  --shadow-sm: 0 2px 8px rgba(20, 79, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 79, 55, 0.10);
  --shadow-lg: 0 16px 40px rgba(20, 79, 55, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--canopy); text-decoration: underline; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--slate);
  line-height: 1.3;
  font-weight: 700;
  margin-top: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: 1.85rem; margin-bottom: 1rem; color: var(--slate); }
h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.85rem; color: var(--slate); font-weight: 700; }
h3 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.4rem; color: var(--slate); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; margin: 0.5rem 0 1.25rem; }
li { margin-bottom: 0.35rem; }

/* Bilingual visibility */
body.lang-en .fr-only { display: none !important; }
body.lang-fr .en-only { display: none !important; }

/* University top bar (deep green band) */
.top-bar {
  background: var(--leaf);
  color: rgba(255,255,255,0.95);
  padding: 0.65rem 0;
  font-size: 0.85rem;
}
.top-bar .top-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar a {
  color: white;
  text-decoration: none;
}
.top-bar a:hover { color: var(--mint); text-decoration: none; }

.ul-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: white;
}
.ul-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: white;
  color: var(--leaf);
  font-family: 'Source Serif Pro', Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  letter-spacing: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-toggle button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 10px;
  border-radius: 3px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font: inherit;
  transition: all .15s ease;
}
.lang-toggle button:hover { background: rgba(255,255,255,0.12); color: white; }
.lang-toggle button.active {
  background: white;
  color: var(--leaf);
  border-color: white;
}

/* Site banner (lab name) */
.site-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0 0;
}
.site-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.lab-title {
  font-family: 'Source Serif Pro', Georgia, serif;
  color: var(--leaf);
  font-size: 1.65rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: 0.85rem;
}
.lab-title:hover { color: var(--leaf-dark); text-decoration: none; }
.lab-title .pi-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--moss);
  font-weight: 500;
  display: block;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Main horizontal navigation */
.site-nav {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}
.site-nav a:hover { color: var(--leaf); text-decoration: none; }
.site-nav a.active { color: var(--leaf); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--leaf);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  margin: 0.5rem 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--slate);
  margin: 4px 0;
}

/* Layout, two-column main + sidebar */
.page-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
}
.page-content { min-width: 0; }
.sidebar {
  border-top: 2px solid var(--leaf);
  padding-top: 0.75rem;
}
.sidebar h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  margin-top: 0;
}
.sidebar ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.86rem;
  color: var(--slate);
}
.sidebar ul li {
  margin-bottom: 0.65rem;
  line-height: 1.45;
}
.sidebar a { color: var(--slate); }
.sidebar a:hover { color: var(--leaf); text-decoration: underline; }

/* Page title (first H1 in content) */
.page-content > h1:first-child {
  font-size: 1.85rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--slate);
}

/* Profile identity (about page top section, Prof. Yu style) */
.profile-photo-block {
  margin-bottom: 1.25rem;
}
.profile-photo-block img {
  width: 220px;
  height: auto;
  border-radius: 0;
  display: block;
}
.profile-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.85rem;
}
.profile-meta {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  font-size: 0.93rem;
  color: var(--slate);
}
.profile-meta em { color: var(--moss); font-style: italic; }
.profile-links-row {
  margin: 1rem 0 0;
}
.profile-links-row a {
  color: var(--leaf);
  text-decoration: underline;
  margin-right: 0.6rem;
  font-size: 0.93rem;
}

/* Section labels and headers (Prof. Yu uses simple bold labels) */
.section-label {
  font-weight: 700;
  font-size: 1rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--slate);
}

/* Plain bullet lists for education/awards/etc. */
.plain-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.4rem 0 1.25rem;
  font-size: 0.93rem;
}
.plain-list li {
  margin-bottom: 0.3rem;
  line-height: 1.55;
}

/* Generic content block (paragraphs in main area) */
.page-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 820px;
}

/* News timeline (home) */
.news-timeline {
  margin: 1rem 0 2rem;
}
.news-event {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.news-event:last-child { border-bottom: none; }
.news-event .date {
  font-size: 0.78rem;
  color: var(--leaf);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.news-event h4 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 0.25rem;
}
.news-event p { margin: 0; color: var(--moss); font-size: 0.92rem; }

/* Stats inline strip (home) */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--mint-soft);
  border-radius: var(--radius);
  border: 1px solid var(--mint);
}
.stat-card {
  text-align: center;
}
.stat-card .stat-number {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 0.15rem;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--moss);
  font-weight: 500;
}

/* Research axes */
.axis-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.axis-card:last-child { border-bottom: none; }
.axis-content h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.axis-content figure {
  margin: 1rem 0;
  max-width: 600px;
}
.axis-content figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.axis-content figcaption {
  font-size: 0.85rem;
  color: var(--moss);
  margin-top: 0.4rem;
  font-style: italic;
}
.axis-content .tags { margin-top: 0.75rem; }

/* Tags */
.tag {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--leaf);
  border: 1px solid var(--mint);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0 0.3rem 0.3rem 0;
}

/* Approach pillars */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.approach-pillar {
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-left: 3px solid var(--leaf);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.approach-pillar .pillar-label {
  font-size: 0.75rem;
  color: var(--leaf);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.approach-pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.approach-pillar p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--moss);
  line-height: 1.5;
}

/* Question callout (Research page intro) */
.research-question {
  background: var(--leaf);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1rem 0 2rem;
}
.research-question .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}
.research-question h2 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
}
.research-question p {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

/* Citation stats block */
.citation-stats {
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1rem 0 2rem;
}
.citation-stats .stats-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.citation-stats h2 {
  margin: 0;
  font-size: 1.05rem;
}
.citation-stats .stats-source {
  font-size: 0.8rem;
  color: var(--moss);
  margin: 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.8rem;
  text-align: center;
}
.metric-value {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--moss);
  font-weight: 500;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--slate);
  text-decoration: none !important;
  font-weight: 500;
}
.profile-pill:hover { border-color: var(--leaf); color: var(--leaf); }
.profile-pill svg { width: 12px; height: 12px; }

/* Publications */
.pub-year-section { margin-bottom: 1.75rem; }
.pub-year {
  display: inline-block;
  background: var(--leaf);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 0.85rem;
}
.pub-list {
  list-style: none;
  padding: 0;
  counter-reset: pub;
  margin: 0;
}
.pub-list li {
  counter-increment: pub;
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.5;
}
.pub-list li:last-child { border-bottom: none; }
.pub-list li::before {
  content: counter(pub) ".";
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-weight: 700;
  color: var(--leaf);
  width: 1.6rem;
  text-align: right;
  padding-right: 0.4rem;
  font-size: 0.88rem;
}
.pub-list i { color: var(--moss); }

/* Teaching grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.course {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--leaf);
  transition: all .15s ease;
}
.course:hover { box-shadow: var(--shadow-sm); border-left-color: var(--canopy); }
.course h3 {
  margin: 0 0 0.4rem;
  font-size: 0.97rem;
}
.course p {
  color: var(--moss);
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
  flex-grow: 1;
}
.course .syllabus {
  font-size: 0.82rem;
  color: var(--leaf);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.course .syllabus svg { width: 12px; height: 12px; }

/* People */
.pi-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.pi-card img {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
}
.pi-card h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.pi-card p { margin: 0; color: var(--moss); font-size: 0.9rem; }

.people-section { margin-bottom: 1.75rem; }
.people-section > h3 {
  font-size: 0.95rem;
  color: var(--slate);
  margin-top: 1.25rem;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: var(--mint-soft);
  border-left: 3px solid var(--leaf);
  display: block;
}
.people-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.people-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.people-list li:last-child { border-bottom: none; }
.people-list .name {
  font-weight: 600;
  color: var(--slate);
  display: block;
  margin-bottom: 0.15rem;
}
.people-list .meta {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.3rem;
  display: inline-block;
  background: var(--mint-soft);
  padding: 1px 9px;
  border-radius: 3px;
}

/* Career timeline */
.career-timeline {
  position: relative;
  margin: 1rem 0 1.5rem;
  padding-left: 1.75rem;
  border-left: 2px solid var(--mint);
}
.career-item {
  position: relative;
  padding-bottom: 1rem;
  padding-left: 0.5rem;
}
.career-item:last-child { padding-bottom: 0; }
.career-item::before {
  content: '';
  position: absolute;
  left: -2.3rem;
  top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--leaf);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--leaf);
}
.career-item .career-period {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--leaf);
  font-weight: 600;
  background: var(--mint-soft);
  padding: 1px 8px;
  border-radius: 3px;
  margin-bottom: 0.25rem;
}
.career-item .career-title {
  font-weight: 600;
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0;
}
.career-item .career-org {
  color: var(--moss);
  font-size: 0.85rem;
  margin: 0;
}

/* Honors / visiting / adjunct lists */
.honors-list, .visiting-list, .adjunct-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 1.5rem;
}
.honors-list li, .visiting-list li, .adjunct-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.honors-list li:last-child,
.visiting-list li:last-child,
.adjunct-list li:last-child { border-bottom: none; }
.honors-list .date,
.visiting-list .date,
.adjunct-list .date {
  color: var(--leaf);
  font-weight: 600;
  font-size: 0.82rem;
}
.honors-list .desc strong,
.visiting-list .desc strong,
.adjunct-list .desc strong { color: var(--slate); font-weight: 600; }
.honors-list .meta,
.visiting-list .meta,
.adjunct-list .meta { color: var(--moss); font-size: 0.84rem; display: block; margin-top: 0.1rem; }

/* Service / consulting projects */
.service-list { margin: 0.85rem 0 1.5rem; display: grid; gap: 0.5rem; }
.service-entry {
  border: 1px solid var(--border);
  border-left: 3px solid var(--leaf);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}
.service-entry .service-period {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.service-entry h4 {
  font-size: 0.92rem;
  margin: 0 0 0.3rem;
  color: var(--slate);
  font-weight: 600;
}
.service-entry .service-meta {
  font-size: 0.84rem;
  color: var(--moss);
  margin: 0;
  line-height: 1.5;
}
.service-entry .service-meta strong { color: var(--leaf); font-weight: 600; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.contact-info-card {
  background: var(--leaf);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.contact-info-card h2 {
  color: white;
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.contact-info-card .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.85rem 0;
}
.contact-info-card .icon-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-card .icon-circle svg { width: 14px; height: 14px; color: white; }
.contact-info-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.contact-info-card a, .contact-info-card span { color: white; font-size: 0.9rem; }
.contact-info-card a:hover { color: var(--mint); }

.contact-form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.contact-form-card h2 { margin-top: 0; font-size: 1.1rem; }
.form-row { margin-bottom: 0.85rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.3rem;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--slate);
  background: var(--off-white);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 2px var(--mint);
  background: white;
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-status {
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  display: none;
}
.form-status.success { display: block; background: var(--mint-soft); color: var(--leaf-dark); border: 1px solid var(--mint); }
.form-status.error { display: block; background: #fdeaea; color: #a13030; border: 1px solid #f5b8b8; }

.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid var(--leaf);
  background: var(--leaf);
  color: white !important;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); }

/* Gallery, filter tabs and album cards */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1.5rem;
}
.gallery-filter {
  background: white;
  border: 1px solid var(--border);
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--moss);
  border-radius: 3px;
  cursor: pointer;
}
.gallery-filter:hover { color: var(--leaf); border-color: var(--leaf); }
.gallery-filter.active {
  background: var(--leaf);
  color: white;
  border-color: var(--leaf);
}

.album-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: block;
}
.album-card.hidden { display: none; }

.album-header {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.album-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}
.album-badge.category {
  background: var(--mint-soft);
  color: var(--leaf);
  border: 1px solid var(--mint);
}
.album-badge.date {
  background: var(--mint-soft);
  color: var(--leaf-dark);
  border: 1px solid var(--mint);
}
.album-badge.count {
  background: white;
  color: var(--moss);
  border: 1px solid var(--border);
  margin-left: auto;
}
.album-badge svg { width: 11px; height: 11px; }

.album-title {
  padding: 0 1.25rem;
  margin: 0;
  font-size: 1.05rem;
  color: var(--slate);
  font-weight: 600;
}
.album-caption {
  padding: 0.35rem 1.25rem 0.85rem;
  color: var(--moss);
  font-size: 0.88rem;
  margin: 0;
}
.album-hero {
  width: 100%;
  height: 320px;
  object-fit: cover;
  cursor: zoom-in;
}
.album-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 3px;
  padding: 3px;
  background: var(--mint-soft);
}
.album-thumbs img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  cursor: zoom-in;
}

/* Lightbox with navigation */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 46, 36, 0.95);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 4px;
}
.lightbox-caption { color: white; text-align: center; font-size: 0.9rem; margin-top: 0.85rem; max-width: 700px; opacity: 0.9; }
.lightbox-counter { color: rgba(255,255,255,0.7); font-size: 0.8rem; margin-top: 0.4rem; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Footer (deep green, multi-column) */
.site-footer {
  background: var(--leaf-darker);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 0 1.25rem;
  margin-top: 3rem;
  font-size: 0.86rem;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-col h4 {
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-col p { margin: 0 0 0.75rem; line-height: 1.5; color: rgba(255,255,255,0.75); font-size: 0.85rem; }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { border-top: 1px solid var(--border); padding-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .top-bar .top-bar-inner { gap: 0.5rem; }
  .ul-brand { font-size: 0.75rem; }
  .lab-title { font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .site-nav ul { display: none; flex-direction: column; gap: 0; }
  .site-nav ul.open { display: flex; }
  .site-nav li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-soft); width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .album-hero { height: 220px; }
  .honors-list li, .visiting-list li, .adjunct-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
