@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,700&display=swap");

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --text: #172230;
  --muted: #586476;
  --line: #d9e0e8;
  --primary: #204f84;
  --primary-strong: #173e67;
  --tag-bg: #edf3f9;
  --shadow: 0 10px 28px rgba(16, 32, 52, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1400px 520px at 8% -8%, rgba(32, 79, 132, 0.1), transparent 60%),
    radial-gradient(1200px 480px at 100% 0%, rgba(23, 62, 103, 0.08), transparent 58%),
    var(--bg);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.62;
}

.container {
  width: min(1040px, 92%);
  margin: 1.9rem auto 2.4rem;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", "Georgia", serif;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 2.85rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 0.82rem;
  font-size: 1.48rem;
  line-height: 1.25;
}

h3 {
  margin: 0;
  font-size: 1.11rem;
}

p {
  margin: 0.52rem 0;
}

a {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 222px;
  gap: 1.28rem;
  align-items: center;
  padding: 1.42rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.role {
  color: var(--muted);
  font-weight: 600;
}

.summary {
  max-width: 76ch;
  color: #233142;
}

.interests {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.34rem;
  margin: 0.9rem 0 0.78rem;
}

.interests span {
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--primary-strong);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #d6e1ec;
}

.profile-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo {
  width: 214px;
  height: 214px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(18, 35, 58, 0.1);
}

.quick-links,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  margin-top: 0.74rem;
}

.button {
  display: inline-block;
  padding: 0.32rem 0.58rem;
  border: 1px solid #7e9fbe;
  border-radius: 9px;
  color: var(--primary);
  background: #f8fbff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.button:hover,
.button:focus {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.email-inline {
  margin: 0.56rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #2c3a4a;
  font-size: 0.92rem;
}

.copy-button {
  border: 1px solid #bfd0df;
  background: #f8fbfe;
  color: #234c6c;
  border-radius: 7px;
  padding: 0.16rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.copy-status {
  color: #2f6b34;
  font-size: 0.82rem;
}

.section {
  margin-top: 1.18rem;
  padding: 1.28rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(17, 30, 47, 0.04);
}

.project-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
}

.news-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.74rem;
  margin-bottom: 0.42rem;
}

.news-date {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.news-list a {
  color: #1f3144;
  text-decoration: none;
  border-bottom: 1px solid #cad7e4;
}

.news-list a:hover,
.news-list a:focus {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.news-extra.is-hidden {
  display: none;
}

.news-toggle-button {
  margin-top: 0.36rem;
  border: 1px solid #bfd0df;
  background: #f8fbfe;
  color: #234c6c;
  border-radius: 7px;
  padding: 0.28rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.news-toggle-button:hover,
.news-toggle-button:focus {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.pub-list {
  margin: 0.68rem 0 0;
  padding-left: 0;
  list-style: none;
}

.pub-list li {
  width: 100%;
  margin-bottom: 1.02rem;
  scroll-margin-top: 1rem;
}

.pub-with-logo {
  position: relative;
  padding-right: 0;
}

.pub-with-logo > .pub-title,
.pub-with-logo > .pub-authors,
.pub-with-logo > .pub-venue,
.pub-with-logo > .pub-summary,
.pub-with-logo > .pub-links {
  padding-right: 64px;
}

.pub-logo {
  position: absolute;
  top: 0.08rem;
  right: 0.12rem;
  width: 58px;
  height: auto;
  opacity: 0.96;
}

.pub-title {
  font-weight: 700;
  line-height: 1.45;
}

.pub-authors {
  color: #1f2d3d;
  font-size: 0.94rem;
}

.pub-venue {
  color: var(--muted);
  font-size: 0.92rem;
}

.pub-summary {
  margin-top: 0.33rem;
  color: #3a4657;
  font-size: 0.92rem;
}

.pub-links {
  margin-top: 0.34rem;
  font-size: 0.91rem;
}

.pub-details {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.44rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.pub-details summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--primary-strong);
  font-weight: 600;
  padding: 0.52rem 0.72rem;
}

.pub-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
  padding: 0 0.72rem 0.72rem;
}

.pub-fig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.72rem;
}

.pub-figure-block {
  margin: 0;
}

.pub-figure {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  display: block;
}

.pub-caption {
  margin-top: 0.35rem;
  color: #4f5d6f;
  font-size: 0.84rem;
  line-height: 1.45;
}

.pub-figure-placeholder {
  min-height: 110px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  color: #6b7280;
  font-size: 0.84rem;
  padding: 0.55rem;
  background: #f8fafc;
}

.pub-abstract {
  margin: 0.2rem 0 0;
  font-size: 0.91rem;
  color: #1f2937;
}

.first-author {
  position: relative;
}

.first-author > .pub-title {
  position: relative;
  padding-left: 0.64rem;
}

.first-author > .pub-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  border-radius: 2px;
  background: #c2d7ea;
}

.label-first {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid #b6cbde;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #2a4f72;
}

.project-card {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding: 0.88rem 0.95rem;
  margin-bottom: 0.76rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.project-with-logo {
  padding-top: 1.2rem;
}

.project-logo {
  position: absolute;
  top: 0.45rem;
  right: 0.7rem;
  width: 58px;
  height: auto;
}

.project-logo-large {
  width: 54px;
}

.project-image {
  width: 100%;
  max-width: 640px;
  margin-top: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

.doc-placeholder {
  margin: 0 0.75rem 0.8rem;
  color: #6b7280;
  font-style: italic;
}

.item-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.item-list li {
  margin-bottom: 0.45rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.75rem;
}

.experience-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  padding: 0.8rem 0.9rem;
}

.experience-brand-logo {
  display: block;
  max-width: 176px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.55rem;
}

.experience-org {
  margin: 0.2rem 0 0;
  color: #1f2937;
  font-size: 0.93rem;
}

.experience-supervisor {
  margin: 0.22rem 0 0;
  color: #374151;
  font-size: 0.9rem;
}

.experience-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.experience-meta span {
  display: block;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.split-grid .section {
  margin-top: 0;
}

.subsection-title {
  margin: 0.65rem 0 0.35rem;
  font-size: 1.03rem;
}

.button-muted {
  color: #6b7280;
  border-color: #cbd5e1;
  pointer-events: none;
  cursor: default;
}

a[aria-disabled="true"] {
  text-decoration: none;
}

.seo-footer {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: min(340px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .interests {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .interests span {
    padding: 0.25rem 0.65rem;
    font-size: 0.86rem;
    font-weight: 600;
  }

  .pub-fig-grid {
    grid-template-columns: 1fr;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .pub-with-logo > .pub-title,
  .pub-with-logo > .pub-authors,
  .pub-with-logo > .pub-venue,
  .pub-with-logo > .pub-summary,
  .pub-with-logo > .pub-links {
    padding-right: 0;
  }

  .pub-logo {
    position: static;
    width: 50px;
    margin-top: 0.2rem;
    margin-bottom: 0.25rem;
  }

  .project-logo,
  .project-logo-large {
    position: static;
    width: 58px;
    margin-bottom: 0.35rem;
  }

  .project-with-logo {
    padding-top: 0.85rem;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
  }
}
