:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: #dddddd;
  --soft: #f7f7f7;
  --link: #1772d0;
  --link-hover: #f09228;
  --teal: #4f9d9a;
  --gold: #d6a24c;
  --plum: #8d5872;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  margin: 0;
}

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

a:hover,
a:focus-visible {
  color: var(--link-hover);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 980px;
  padding: 18px 24px;
}

.site-logo {
  align-items: center;
  display: inline-flex;
  min-width: 180px;
}

.site-logo img {
  display: block;
  height: auto;
  width: 190px;
}

.site-logo:hover,
.site-logo:focus-visible {
  outline: none;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

nav a {
  color: #444444;
  font-size: 0.95rem;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.language-switch {
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}

.language-switch button {
  background: #ffffff;
  border: 0;
  color: #555555;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  min-height: 30px;
  min-width: 42px;
  padding: 3px 8px;
}

.language-switch button + button {
  border-left: 1px solid #bdbdbd;
}

.language-switch button[aria-pressed="true"] {
  background: #333333;
  color: #ffffff;
}

.language-switch button:focus-visible {
  box-shadow: inset 0 0 0 2px var(--link);
  outline: none;
}

[hidden] {
  display: none !important;
}

.page {
  margin: 0 auto;
  max-width: 980px;
  padding: 34px 24px 36px;
}

.profile {
  align-items: flex-start;
  display: grid;
  gap: 34px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.profile-card {
  margin: 0;
}

.profile-card img {
  border-radius: 6px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 260px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 14px;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 6px;
}

.role {
  color: #333333;
  font-size: 1.08rem;
  margin: 0 0 24px;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 8px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.section {
  margin: 0;
}

.section p {
  margin: 0 0 13px;
}

.section p:last-child {
  margin-bottom: 0;
}

.recruitment-note {
  background: #fffbea;
  border: 1px solid #dfd29a;
  border-left: 4px solid #c49a2c;
  border-radius: 4px;
  color: #2d2b22;
  margin-top: 18px;
  padding: 11px 14px;
}

.note {
  color: #333333;
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 14px;
}

.section-heading {
  align-items: baseline;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
}

.news-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  display: grid;
  gap: 14px;
  grid-template-columns: 82px minmax(0, 1fr);
}

.news-list time {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

.publication-list {
  counter-reset: publication;
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.publication {
  counter-increment: publication;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 180px;
  position: relative;
}

.publication::before {
  color: var(--muted);
  content: counter(publication) ".";
  font-family: Georgia, "Times New Roman", serif;
  left: -28px;
  position: absolute;
  top: 1px;
}

.venue {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 4px !important;
  text-transform: uppercase;
}

.publication h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 6px;
}

.publication h3 a {
  color: var(--link);
}

.authors,
.where,
.links {
  margin: 0 0 5px !important;
}

.author-marker,
.corresponding-author {
  color: inherit;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 0;
  margin-left: 1px;
  position: relative;
  top: -0.28em;
  vertical-align: baseline;
}

.corresponding-author {
  font-size: 0.82em;
  top: -0.34em;
}

.author-notes {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 0 !important;
}

.note-icon {
  display: inline-block;
  font-size: 0.9em;
  line-height: 1;
  margin-left: 8px;
  top: 0;
  vertical-align: baseline;
}

.where {
  color: #333333;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a,
.link-button {
  font-size: 0.92rem;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--link);
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  padding: 0;
}

.link-button:hover,
.link-button:focus-visible,
.link-button[aria-expanded="true"] {
  color: var(--link-hover);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bibtex-entry {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #333333;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 9px 0 5px;
  max-width: 100%;
  overflow-x: auto;
  padding: 11px 12px;
  white-space: pre;
}

.pub-thumb {
  align-items: center;
  align-self: start;
  aspect-ratio: 1.35;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #ffffff;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  justify-content: center;
  overflow: hidden;
}

.pub-thumb span {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  padding: 9px 13px;
}

.pub-thumb.publication-figure {
  background: #ffffff;
}

.publication-figure img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.publication-figure:hover,
.publication-figure:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  text-decoration: none;
}

.pub-thumb.teal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--teal), #275b68);
}

.pub-thumb.gold {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16) 1px, transparent 1px, transparent 18px),
    linear-gradient(135deg, var(--gold), #81632d);
}

.pub-thumb.plum {
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.24) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--plum), #3f516b);
}

.compact p {
  color: #333333;
}

.awards-list {
  margin: 0;
  padding-left: 1.25rem;
}

.awards-list li + li {
  margin-top: 4px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px auto 0;
  max-width: 980px;
  padding: 18px 24px 28px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .header-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .profile,
  .publication {
    grid-template-columns: 1fr;
  }

  .profile-card img {
    width: min(280px, 100%);
  }

  .publication::before {
    display: none;
  }

  .pub-thumb {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .page,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .facts div,
  .news-list li {
    grid-template-columns: 1fr;
  }

  .facts div,
  .news-list li {
    gap: 2px;
  }

  .header-actions {
    gap: 12px;
  }
}
