:root {
  --accent: #008b8b;
  --text: #24292f;
  --muted: #666;
  --light: #f7f7f7;
  --border: #e5e7eb;
  --max: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  font-size: 15.8px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.navbar {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  font-size: 1.15rem;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: #333; font-size: 0.95rem; }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.menu-button { display: none; border: 1px solid var(--border); background: #fff; padding: .35rem .55rem; border-radius: 6px; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.3rem 1.2rem 3rem;
}
h1, h2, h3 { line-height: 1.25; color: #111; font-weight: 500; }
h1 { font-size: 2rem; margin: 0 0 1.4rem; }
h2 { font-size: 1.45rem; border-bottom: 1px solid var(--border); padding-bottom: .4rem; margin-top: 2.5rem; }
h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.lead { font-size: 1.03rem; color: #333; }
.muted { color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 270px 1fr; gap: 2.4rem; align-items: start; }
.profile-card { text-align: center; }
.profile-img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--light);
  display: block;
  margin: 0 auto 1.15rem;
}
.profile-name { font-size: 2.15rem; margin: 0 0 .2rem; }
.profile-title {
  color: #444;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  margin: 0.28rem auto;
  max-width: 235px;
}
.profile-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
  margin: 0.65rem auto 1rem;
  max-width: 235px;
}
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.social-links a, .tag, .button {
  border: 1px solid var(--border);
  padding: .28rem .55rem;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: .88rem;
}
.button { display: inline-block; border-radius: 6px; padding: .55rem .8rem; margin-right: .4rem; margin-top: .4rem; }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.news-list { list-style: none; padding: 0; margin: .7rem 0 0; }
.news-list li { display: grid; grid-template-columns: 105px 1fr; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid #f0f0f0; }
.news-date { color: var(--muted); font-size: .9rem; }
.pub-list { padding-left: 0; list-style: none; counter-reset: pubs; }
.pub-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-year { color: var(--muted); font-weight: 600; }
.pub-title { font-weight: 600; color: #111; }
.pub-meta { color: #333; margin-top: .2rem; }
.pub-venue { color: var(--muted); font-style: italic; }
.pub-links { margin-top: .35rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pub-links a { font-size: .88rem; border: 1px solid var(--border); padding: .12rem .45rem; border-radius: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.project-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.project-card img { width: 100%; height: 260px; object-fit: cover; background: var(--light); display: block; }
.project-body { padding: 1rem; }
.project-body h3 { margin-top: 0; }
.project-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.tag { color: #555; background: #fafafa; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { border: 1px solid var(--border); border-radius: 8px; padding: 1rem; background: #fff; }
.timeline { border-left: 2px solid var(--border); margin-left: .35rem; padding-left: 1.2rem; }
.timeline-item { margin-bottom: 1.15rem; position: relative; }
.timeline-item:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: absolute; left: -1.62rem; top: .45rem; }
.footer { border-top: 1px solid var(--border); color: var(--muted); text-align: center; padding: 1.2rem; font-size: .9rem; }
.small-note { font-size: .9rem; color: var(--muted); }
.hero-simple { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.hero-simple p { margin: .2rem 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .menu-button { display: inline-block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .55rem; padding-top: .8rem; }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .profile-grid, .grid, .two-col { grid-template-columns: 1fr; }
  .profile-img { width: 180px; height: 180px; }
  .profile-title, .profile-subtitle { max-width: 280px; }
  .news-list li, .pub-item { grid-template-columns: 1fr; gap: .2rem; }
  .hero-simple { display: block; }
}


/* ===== Publications with journal/page images ===== */
.publication-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0 1.7rem;
}
.publication-toolbar a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  color: var(--accent);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}
.publication-toolbar a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}
.publications-section {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.25rem;
}
.publication-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.publication-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(0, 139, 139, 0.35);
}
.publication-card.compact {
  grid-template-columns: 150px 1fr;
  padding: 1rem;
}
.publication-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--light);
}
.publication-card.compact .publication-thumb { aspect-ratio: 1.35 / 1; }
.publication-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.25s ease;
}
.publication-card:hover .publication-thumb img { transform: scale(1.035); }
.publication-content { min-width: 0; }
.publication-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}
.publication-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  line-height: 1.4;
}
.publication-type {
  font-size: 0.76rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  line-height: 1.4;
  background: #fafafa;
}
.publication-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0.25rem 0 0.35rem;
  color: #111;
  font-weight: 650;
}
.publication-card.compact .publication-title { font-size: 1rem; }
.publication-authors {
  font-size: 0.93rem;
  line-height: 1.52;
  color: #333;
  margin: 0.25rem 0;
}
.publication-venue {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.35rem 0 0.6rem;
  font-style: italic;
}
.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0;
}
.publication-tags span {
  font-size: 0.75rem;
  color: #555;
  background: rgba(0, 139, 139, 0.075);
  border: 1px solid rgba(0, 139, 139, 0.13);
  padding: 0.18rem 0.46rem;
  border-radius: 999px;
}
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.publication-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.26rem 0.65rem;
  background: #fff;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.publication-links a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.publication-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.55rem 0 1.2rem;
}
@media (max-width: 760px) {
  .publication-card,
  .publication-card.compact {
    grid-template-columns: 1fr;
  }
  .publication-thumb,
  .publication-card.compact .publication-thumb {
    aspect-ratio: 16 / 9;
  }
}

/* ===== Publications hero + Google Scholar metrics ===== */

.gs-hero {
  display: block;
  padding: 1.0rem 0 1.rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
}

.gs-hero-text h1 {
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--text);
}

.gs-hero-text p {
  margin: 1rem 0 0;
  max-width: 720px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted);
}

.gs-card {
  position: relative;
  padding: 1.25rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 137, 132, 0.09), rgba(255, 255, 255, 0.98)),
    #ffffff;
  border: 1px solid rgba(0, 137, 132, 0.22);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.gs-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(0, 137, 132, 0.11);
}

.gs-card-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  z-index: 1;
}

.gs-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 137, 132, 0.11);
  color: var(--accent);
  font-size: 1.25rem;
}

.gs-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.gs-date {
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.gs-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.gs-stat {
  min-height: 92px;
  padding: 0.85rem 0.55rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 137, 132, 0.16);
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.gs-number {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.gs-label {
  margin-top: 0.52rem;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted);
}

.gs-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(0, 137, 132, 0.09);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid rgba(0, 137, 132, 0.14);
}

.gs-link:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 980px) {
  .gs-hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .gs-card {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .gs-hero {
    padding: 1.6rem 0 1.5rem;
  }

  .gs-stats {
    grid-template-columns: 1fr;
  }

  .gs-stat {
    min-height: 78px;
  }

  .gs-hero-text h1 {
    font-size: 2.8rem;
  }
}
/* ===== Compact Google Scholar card ===== */

.gs-card-small {
  max-width: 520px;
  margin: 2.2rem auto 0;
  padding: 0.95rem;
  border-radius: 18px;
}

.gs-card-small .gs-card-header {
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.gs-card-small .gs-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.gs-card-small .gs-title {
  font-size: 0.95rem;
}

.gs-card-small .gs-stats {
  gap: 0.5rem;
}

.gs-card-small .gs-stat {
  min-height: 72px;
  padding: 0.65rem 0.45rem;
  border-radius: 13px;
}

.gs-card-small .gs-number {
  font-size: 1.35rem;
}

.gs-card-small .gs-label {
  margin-top: 0.35rem;
  font-size: 0.68rem;
}

.gs-card-small .gs-link {
  margin-top: 0.75rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
}