/* Global */
html {
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #3f4448;
  background: #ffffff;
}

a {
  color: #2793c7;
  text-decoration: underline;
}

a:hover {
  color: #16729c;
}

/* Top navigation bar */
.topbar {
  width: 100%;
  height: 70px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
}

.topbar-inner {
  max-width: 980px;
  height: 70px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.site-title {
  font-size: 18px;
  font-weight: 700;
  color: #3f4448;
  margin-right: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: #3f4448;
  text-decoration: none;
}

.nav-links a:hover {
  color: #2793c7;
  text-decoration: none;
}

/* Main layout */
.site-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 70px 20px;
  box-sizing: border-box;
}

/* Homepage two-column layout */
.home-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  column-gap: 70px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  padding-top: 6px;
}

.profile-photo {
  width: 170px;
  height: 230px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #dddddd;
  padding: 5px;
  background: #ffffff;
  display: block;
  margin-bottom: 18px;
}

.sidebar h2 {
  font-size: 17px;
  line-height: 1.2;
  margin: 0 0 4px 0;
  color: #3f4448;
}

.side-item {
  font-size: 13px;
  line-height: 1.35;
  margin: 9px 0;
  color: #3f4448;
}

.side-item i {
  width: 18px;
  margin-right: 4px;
  color: #3f4448;
}

.side-item a {
  color: #3f4448;
  text-decoration: none;
}

.side-item a:hover {
  color: #2793c7;
  text-decoration: none;
}

/* Main content */
.main-content {
  max-width: 680px;
  min-width: 0;
}

.main-content section {
  margin-bottom: 28px;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #3f4448;
}

h2 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 20px 0 6px 0;
  color: #3f4448;
}

p {
  font-size: 16px;
  line-height: 1.5;
  margin: 6px 0 12px 0;
  color: #3f4448;
}

ul {
  margin-top: 6px;
  padding-left: 24px;
}

li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 5px;
}

/* Single-column pages: Team and Research */
.page-content {
  max-width: 760px;
}

.page-content section {
  margin-bottom: 30px;
}

/* Research image block, if used */
.research-block {
  display: grid;
  grid-template-columns: 1fr 210px;
  column-gap: 36px;
  align-items: start;
}

.research-image {
  width: 210px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Highlighted works */
.highlighted-works {
  margin-top: 28px;
}

.work-item {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eeeeee;
}

.work-item h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 7px 0;
  font-weight: 700;
}

.work-number {
  color: #3f4448;
  margin-right: 4px;
}

.work-item h2 a {
  color: #3f4448;
  text-decoration: none;
}

.work-item h2 a:hover {
  color: #2793c7;
  text-decoration: underline;
}

.work-authors {
  font-size: 15px;
  line-height: 1.45;
  margin: 5px 0;
  color: #3f4448;
}

.work-summary {
  font-size: 15px;
  line-height: 1.5;
  margin: 6px 0 0 0;
  color: #4d5358;
}

.note {
  font-size: 13px;
  color: #666666;
}

/* Mobile version */
@media (max-width: 780px) {
  .topbar {
    height: auto;
  }

  .topbar-inner {
    height: auto;
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-title {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .nav-links {
    gap: 22px;
    flex-wrap: wrap;
  }

  .site-container {
    padding: 30px 22px 60px 22px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .profile-photo {
    width: 160px;
    height: 210px;
  }

  .main-content {
    max-width: 100%;
  }

  .research-block {
    grid-template-columns: 1fr;
  }

  .research-image {
    width: 100%;
    max-width: 320px;
    margin-top: 18px;
  }
}

/* Publication list */
.publication-list {
  margin-top: 20px;
}

.publication-item {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eeeeee;
}

.pub-number {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #3f4448;
}

.pub-authors {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 5px 0;
  color: #3f4448;
}

.pub-title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 5px 0;
}

.pub-title a {
  color: #3f4448;
  text-decoration: none;
}

.pub-title a:hover {
  color: #2793c7;
  text-decoration: underline;
}

.pub-journal {
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  color: #4d5358;
}
