* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
}

a {
  color: #1a5fb4;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.page {
  width: min(880px, calc(100% - 36px));
  margin: 42px auto 28px;
}

.profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 34px;
}

.photo-column { width: 180px; }

.portrait {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
  border-radius: 2px;
}

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  margin: 2px 0 12px;
  color: #111;
}

.position { margin: 0 0 13px; }
.quick-links { margin-top: 10px; }

section { margin: 32px 0 0; }

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #111;
  font-size: 23px;
  font-weight: 500;
  margin: 0 0 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid #cfcfcf;
}

p { margin: 8px 0; }
ul { margin: 8px 0 0; padding-left: 22px; }
li { margin: 5px 0; }

.news-timeline {
  position: relative;
  margin: 8px 0 0 5px;
  padding-left: 28px;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: 8px;
  width: 1px;
  background: #cfcfcf;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 0 0 17px;
}

.news-item:last-child { padding-bottom: 0; }

.news-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid #1a5fb4;
  border-radius: 50%;
  background: #fff;
}

.news-date {
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}

.news-text { color: #222; }
.research-line { margin: 7px 0; }

/* Selected research: academic two-column entries.
   Image width follows the shape of each figure rather than forcing a common crop. */
.research-showcase { margin-top: 2px; }

.research-feature {
  display: grid;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #e1e1e1;
}

.research-feature-compact { grid-template-columns: 305px 1fr; }
.research-feature-medium  { grid-template-columns: 360px 1fr; }
.research-feature-wide    { grid-template-columns: 430px 1fr; }

.research-feature:first-child { padding-top: 6px; }
.research-feature:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.research-visual {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dedede;
  background: #fff;
  line-height: 0;
}

.research-visual:hover {
  text-decoration: none;
}

.research-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 285px;
  object-fit: contain;
  background: #fff;
}

.research-feature-wide .research-visual img {
  max-height: 240px;
}

.research-copy {
  padding-top: 1px;
}

.research-copy h3 {
  margin: 2px 0 6px;
  color: #111;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 600;
}

.research-copy p { margin: 5px 0; }

.research-meta {
  color: #666;
  font-size: 13.5px;
}

.research-links { font-size: 14px; }

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid #cfcfcf;
  margin-bottom: 13px;
}

.section-heading-row h2 {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 3px;
}

.small-link { font-size: 14px; }

.publication { margin: 0 0 20px; }
.publication p { margin: 2px 0; }

.pub-title {
  font-weight: 700;
  color: #111;
}

.pub-links { font-size: 14px; }

footer {
  border-top: 1px solid #cfcfcf;
  color: #666;
  font-size: 13.5px;
  margin-top: 40px;
  padding-top: 14px;
}

/* CV page support */
.topbar {
  width: min(880px, calc(100% - 36px));
  margin: 28px auto 0;
}

.wrap {
  width: min(880px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid #cfcfcf;
}

.nav .name {
  color: #111;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.hero { margin-top: 28px; margin-bottom: 0; }
.hero h1 { margin-bottom: 8px; }

.kicker {
  color: #666;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.subtitle { margin: 0 0 10px; }
.links { margin-top: 7px; }
.section { margin-top: 28px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.timeline article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.when { color: #666; }

.timeline h3,
.pub h3 {
  margin: 0;
  font-size: 15.5px;
}

.timeline p,
.pub p { margin: 2px 0; }

.pub {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.year { color: #666; }
.muted { color: #666; }

@media (max-width: 760px) {
  .research-feature,
  .research-feature-compact,
  .research-feature-medium,
  .research-feature-wide {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .research-visual {
    width: min(100%, 520px);
  }

  .research-feature-wide .research-visual {
    width: 100%;
  }

  .research-visual img,
  .research-feature-wide .research-visual img {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .page { margin-top: 24px; }

  .profile {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .photo-column,
  .portrait { width: 150px; }

  h1 { font-size: 30px; }
  h2 { font-size: 21px; }

  .news-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-bottom: 16px;
  }

  .section-heading-row { display: block; }
  .nav { display: block; }
  .nav nav { margin-top: 8px; }

  .timeline article,
  .pub {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}