:root {
  --bg: #ffffff;
  --text: #23272f;
  --muted: #68707d;
  --light: #f5f7fa;
  --line: #dce1e8;
  --link: #1f5f9f;
  --link-dark: #164b80;
  --accent: #eef5fb;
  --max-width: 1180px;
  --sidebar-width: 290px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-dark);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  min-height: 58px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  color: var(--text);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.nav-links a {
  color: #38404a;
}

.nav-links a.active {
  color: var(--link);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0.35rem 0.65rem;
  font: inherit;
}

.page {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
}

.profile-card {
  color: var(--muted);
}

.profile-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--light);
}

.profile-card h1 {
  margin: 1rem 0 0.25rem;
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1.2;
}

.role,
.affiliation,
.location,
.keywords {
  margin: 0.25rem 0;
}

.keywords {
  margin-top: 0.85rem;
  font-size: 0.94rem;
}

.profile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.36rem;
  margin-top: 1rem;
}

.profile-links a {
  font-size: 0.95rem;
}

.cv-link {
  margin-top: 0.45rem;
  padding: 0.44rem 0.68rem;
  border: 1px solid var(--link);
  border-radius: 6px;
  font-weight: 700;
}

.content {
  max-width: 860px;
}

.section {
  scroll-margin-top: 86px;
  padding: 0 0 2.5rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.section:hover {
  border-bottom-color: #c6d4e3;
}

.section:last-child {
  border-bottom: 0;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.3;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.15rem;
}

h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.24rem 0.58rem;
  border: 1px solid #cbd8e5;
  border-radius: 999px;
  background: var(--accent);
  color: #28445f;
  font-size: 0.86rem;
}

.interest-list,
.plain-list,
.contact-list {
  padding-left: 1.2rem;
}

.interest-list li,
.plain-list li,
.contact-list li {
  margin-bottom: 0.5rem;
}

/* News section */
.news-section h2 {
  margin-bottom: 1.5rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: start;
}

.news-date {
  color: #9aa0a6;
  font-weight: 700;
  text-align: right;
  line-height: 1.7;
  white-space: nowrap;
}

.news-content {
  color: var(--text);
  line-height: 1.7;
}

.news-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-content a:hover,
.news-content a:focus {
  color: var(--link);
}

/* Hidden earlier news */
.more-news {
  display: none;
  flex-direction: column;
  gap: 1.35rem;
}

.more-news.open {
  display: flex;
}

.more-news-button {
  margin-top: 1.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.more-news-button:hover,
.more-news-button:focus {
  color: var(--link);
  text-decoration: underline;
}

/* Publications section: image + text layout */
.publications-section > p {
  margin-bottom: 2rem;
}

.publication-year {
  margin: 2.2rem 0 1rem;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.publication-card {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}

.publication-card:last-child {
  border-bottom: 0;
}

.publication-image {
  width: 100%;
}

.publication-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--light);
  box-shadow: 0 8px 22px rgba(20, 30, 45, 0.14);
}

.publication-info h4 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 800;
}

.publication-info .authors {
  margin: 0 0 0.65rem;
  color: #555d69;
  line-height: 1.65;
}

.publication-info .venue {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 1rem;
}

.publication-links {
  margin: 0;
}

.publication-links a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication-links a:hover,
.publication-links a:focus {
  color: var(--link-dark);
}

/* CV page */
.cv-page-wrapper {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  max-width: 1380px;
}

.cv-page {
  max-width: none;
  width: 100%;
}

.cv-page .section {
  border-bottom: 0;
}

.cv-viewer {
  width: 100%;
  max-width: 980px;
  height: 1100px;
  margin: 1rem auto 0;
  border: 1px solid var(--line);
  background: var(--light);
  box-shadow: 0 8px 22px rgba(20, 30, 45, 0.12);
  overflow: auto;
}

.cv-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-download-note {
  max-width: 980px;
  margin: 1rem auto 0;
  color: var(--text);
}

.project,
.timeline article {
  margin: 1rem 0 1.35rem;
}

.authors,
.meta,
.methods,
.summary,
.empty-note {
  color: var(--muted);
}

.summary {
  font-size: 0.96rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.16rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.columns {
  columns: 2 260px;
  column-gap: 2rem;
}

@media (max-width: 840px) {
  .top-nav {
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 52px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 30, 45, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1rem 3rem;
  }

  .sidebar {
    position: static;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 1rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .profile-photo {
    grid-row: span 5;
    width: 96px;
    height: 96px;
  }

  .profile-card h1 {
    margin-top: 0;
    font-size: 1.45rem;
  }

  .profile-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .content {
    max-width: none;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .publication-image img {
    max-width: 430px;
  }

  .cv-page-wrapper {
    grid-template-columns: 1fr;
  }

  .cv-viewer {
    max-width: 100%;
    height: 850px;
  }
}

@media (max-width: 700px) {
  .news-list,
  .more-news {
    gap: 1.15rem;
  }

  .news-item {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }

  .news-date {
    text-align: left;
    font-size: 0.92rem;
  }

  .publication-year {
    font-size: 1.35rem;
  }

  .publication-card {
    padding: 1.5rem 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h2 {
    font-size: 1.55rem;
  }

  .profile-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .profile-photo {
    width: 76px;
    height: 76px;
  }

  .tag-list span,
  .link-row a {
    max-width: 100%;
  }

  .publication-info h4 {
    font-size: 1rem;
  }

  .publication-info .authors {
    line-height: 1.6;
  }

  .cv-viewer {
    height: 680px;
  }
}