/* A compact, responsive version of the original academic-homepage style. */

html {
  background: #eeeeee;
}

body {
  max-width: 1180px;
  margin: 30px auto;
  padding: 38px 54px 32px;
  background: #ffffff;
  color: #222222;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

a {
  color: #224b8d;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 309px;
  grid-template-areas: "profile-text portrait";
  align-items: flex-start;
  gap: 42px;
}

.profile-text {
  grid-area: profile-text;
  flex: 1;
  min-width: 0;
}

#toptitle {
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  color: #203060;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  margin: 34px 0 16px;
  padding: 0 0 6px;
  border-bottom: 1px solid #aaaaaa;
  color: #527bbd;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

p {
  margin: 0 0 14px;
}

.profile-links a {
  display: inline-block;
  margin: 0 8px 5px 0;
}

.portrait {
  grid-area: portrait;
  justify-self: start;
  width: 270px;
  height: 352px;
  border: 1px solid #d4d4d4;
  object-fit: cover;
  object-position: 50% 18%;
}

.infoblock {
  margin: 24px 0 8px;
}

.blockcontent {
  padding: 12px 16px;
  border: 1px solid #c8c8c8;
  background: #ffffee;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
}

.overview-grid h2 {
  margin-top: 30px;
}

.news-section ul {
  padding-left: 22px;
}

ul,
ol {
  margin: 8px 0 16px;
  padding-left: 28px;
}

li {
  margin: 8px 0;
}

.section-note {
  color: #555555;
  font-size: 14px;
}

.publication-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.publication-list {
  margin-top: 4px;
  padding-left: 30px;
}

.publication-list li {
  margin-bottom: 18px;
  padding-left: 4px;
}

.paper-title {
  color: #202020;
  font-weight: bold;
}

.visitor-section {
  width: 100%;
}

.visitor-map {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.visitor-counter {
  display: block;
  width: 100%;
}

.visitor-map img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2.75%;
  border: 0;
}

.visitor-note {
  margin-top: 8px;
  text-align: center;
}

#footer {
  margin-top: 48px;
  padding-top: 10px;
  border-top: 1px solid #c0c0c0;
  color: #999999;
  font-size: 13px;
  text-align: center;
}

#footer p {
  margin: 0;
}

@media (max-width: 850px) {
  html {
    background: #ffffff;
  }

  body {
    margin: 0 auto;
    padding: 26px 22px 28px;
  }

  .profile {
    grid-template-columns: minmax(0, 1fr) 254px;
    gap: 28px;
  }

  .portrait {
    width: 215px;
    height: 280px;
  }

  .overview-grid,
  .publication-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .publication-list + .publication-list {
    margin-top: 0;
  }

  h1 {
    font-size: 27px;
  }
}

@media (max-width: 650px) {
  .profile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "profile-text";
  }

  .portrait {
    justify-self: center;
    width: 210px;
    height: 274px;
  }
}

@media (max-width: 520px) {
  h2 {
    margin-top: 30px;
  }
}

@media print {
  html,
  body {
    background: #ffffff;
  }

  body {
    max-width: none;
    margin: 0;
    padding: 0;
  }
}
