body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #222;
  background: #ffffff;
  line-height: 1.65;
  overflow-y: scroll;
}

/* Header */

.site-header-wrapper {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 100;
  border-bottom: 1px solid #d9d9d9;
}

.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px 24px 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.header-title {
  margin: 0;
}

.lab-name {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  color: #008080;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

.lab-subtitle {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  color: #222;
  margin-top: 2px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  text-align: right;
}

.navbar a {
  display: inline-block;
  font-size: 17px;
  line-height: 1.3;
  color: #222;
  text-decoration: none;
  margin: 0;
}

.navbar a:hover {
  text-decoration: underline;
}

/* General layout */

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px;
}

h1 {
  font-size: 38px;
  margin-top: 0;
}

h2 {
  font-size: 25px;
  margin-top: 34px;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 6px;
}

h3 {
  font-size: 21px;
  margin-top: 0;
}

a {
  color: #0645ad;
}

/* Homepage hero image */

.hero-with-image {
  position: relative;
  width: 100%;
  height: 430px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  background: none;
  margin-bottom: 34px;
}

.hero-with-image .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 80, 0.35);
  z-index: 1;
}

.hero-with-image .hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px;
}

.hero-with-image .hero-text h1 {
  font-size: 64px;
  color: white;
  margin: 0 0 18px 0;
}

.hero-with-image .hero-text h2 {
  font-size: 34px;
  color: white;
  font-weight: normal;
  margin: 0 0 18px 0;
  border-bottom: none;
  padding-bottom: 0;
}

.hero-with-image .affiliation {
  font-size: 23px;
  color: white;
  margin: 0;
}

/* Homepage text */

.homepage-link {
  text-align: center;
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.lab-description {
  text-align: justify;
  text-justify: inter-word;
}

/* News box */

.news-box {
  background-color: #eaf7f2;
  border-left: 7px solid #008080;
  border-radius: 4px;
  padding: 32px 38px;
  margin-top: 42px;
  margin-bottom: 36px;
}

.news-box h2 {
  font-size: 34px;
  font-weight: bold;
  color: #b00020;
  margin-top: 0;
  margin-bottom: 26px;
  border-bottom: none;
  padding-bottom: 0;
}

.news-entry {
  margin-bottom: 22px;
}

.news-entry:last-child {
  margin-bottom: 0;
}

.news-entry h3 {
  font-size: 26px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.news-entry p {
  font-size: 22px;
  margin: 0;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}

/* People page */

.person {
  display: grid;
  grid-template-columns: 230px 1fr;
  column-gap: 50px;
  align-items: start;
  margin-top: 24px;
}

.person-photo {
  width: 230px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #cfcfcf;
  display: block;
}

.person h3 {
  margin-top: 0;
}

.photo-placeholder {
  width: 230px;
  height: 280px;
  border: 1px solid #cfcfcf;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

/* Open positions */

.positions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.position-card {
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 28px 24px;
  text-align: center;
  background-color: #ffffff;
}

.position-card h3 {
  font-size: 26px;
  margin: 0;
}

.position-title {
  font-size: 21px;
  margin-top: 4px;
  margin-bottom: 28px;
  text-align: center;
  display: block;
  width: 100%;
}

.position-image {
  height: 160px;
  margin: 20px 0 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  background-color: #f4f7fb;
  color: #008080;
  font-size: 28px;
  font-weight: bold;
}

.position-card p {
  font-size: 18px;
  line-height: 1.55;
  text-align: left;
}

.position-card .position-title {
  text-align: center;
}

.recruiting-text {
  text-align: justify;
  text-justify: inter-word;
}

/* Publications */

.publication {
  margin-bottom: 22px;
}

.scholar-note {
  font-size: 19px;
  margin-bottom: 30px;
}

/* Contact map */

.map-container {
  margin-top: 20px;
  border: 1px solid #d9d9d9;
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* Footer */

footer {
  max-width: 860px;
  margin: 20px auto 30px auto;
  padding: 20px 24px;
  border-top: 1px solid #d9d9d9;
  color: #555;
  font-size: 15px;
}

/* Responsive design */

@media screen and (max-width: 900px) {
  .positions-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 700px) {
  .site-header {
    display: block;
  }

  .navbar {
    display: block;
    text-align: left;
    margin-top: 18px;
  }

  .navbar a {
    display: inline-block;
    margin: 8px 16px 8px 0;
  }

  .hero-with-image {
    height: 340px;
  }

  .hero-with-image .hero-text h1 {
    font-size: 42px;
  }

  .hero-with-image .hero-text h2 {
    font-size: 24px;
  }

  .hero-with-image .affiliation {
    font-size: 18px;
  }

  .news-box {
    padding: 24px 24px;
  }

  .news-box h2 {
    font-size: 30px;
  }

  .news-entry h3 {
    font-size: 23px;
  }

  .news-entry p {
    font-size: 19px;
  }

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

  .person-photo {
    width: 230px;
    height: 280px;
  }
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 34px 24px 18px 24px !important;
  border-bottom: 1px solid #d9d9d9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.header-title {
  margin: 0 !important;
  padding: 0 !important;
}

.lab-name {
  display: block !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: #008080 !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-style: italic !important;
}

.lab-subtitle {
  display: block !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #222 !important;
  margin-top: 2px !important;
}

.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 34px !important;
  text-align: right !important;
}

.navbar a {
  display: inline-block !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  color: #222 !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: normal !important;
}

@media screen and (max-width: 700px) {
  .site-header {
    display: block !important;
  }

  .navbar {
    display: block !important;
    text-align: left !important;
    margin-top: 18px !important;
  }

  .navbar a {
    display: inline-block !important;
    margin: 8px 16px 8px 0 !important;
  }
}

/* Force consistent header size across all pages */

.site-header {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 34px 24px 18px 24px !important;
  border-bottom: 1px solid #d9d9d9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.header-title {
  margin: 0 !important;
  padding: 0 !important;
}

.header-title .lab-name {
  display: block !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: #008080 !important;
  text-decoration: none !important;
  font-weight: bold !important;
}

.header-title .lab-subtitle {
  display: block !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #222 !important;
  margin-top: 2px !important;
}

.site-header .navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 34px !important;
  text-align: right !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .navbar a {
  display: inline-block !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  color: #222 !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: normal !important;
}

.green-text {
  color: #008080;
  font-weight: bold;
}

/* Research application areas grid */

.app-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.app-card {
  grid-column: span 2;
  text-align: center;
}

.app-card:nth-child(4),
.app-card:nth-child(5) {
  grid-column: span 3;
}

.app-card:nth-child(4) img,
.app-card:nth-child(5) img {
  aspect-ratio: unset;
  height: auto;
  object-fit: fill;
}

.app-label {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #222;
}

.app-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  display: block;
}

@media screen and (max-width: 700px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}