/* Academic homepage style inspired by jemdoc. */

html {
  background-color: #eeeeee;
}

body {
  max-width: 960px;
  margin: 30px auto;
  padding: 10px 50px 30px;
  color: #000000;
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-align: left;
}

#layout-content {
  padding: 0 1em;
  background: #ffffff;
}

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

a:hover {
  border-bottom: 1px dotted #777777;
}

#toptitle {
  padding-bottom: 0.2em;
  margin-bottom: 1.5em;
}

#toptitle + h2,
#toptitle + h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #527bbd;
  margin-top: 0.7em;
  margin-bottom: 0.5em;
  padding-top: 0.5em;
  padding-bottom: 0.2em;
  line-height: 1;
  border-bottom: 1px solid #aaaaaa;
}

h1 {
  font-size: 165%;
  padding-bottom: 0.3em;
}

h2 {
  padding-top: 0.8em;
  font-size: 125%;
}

h3 {
  font-size: 110%;
  border-bottom: none;
}

p {
  margin-top: 0;
  margin-bottom: 0.8em;
  padding: 0;
  line-height: 1.35;
}

ul {
  margin-top: 0.2em;
  margin-bottom: 0.8em;
  padding-top: 0;
  list-style-position: outside;
  list-style-type: square;
}

li {
  margin-top: 0.9em;
  line-height: 1.35;
}

.profile-header {
  margin-top: 25px;
}

.profile-main {
  min-width: 0;
  margin-right: 196px;
}

.profile-photo-wrap {
  float: right;
  margin-left: 28px;
  margin-bottom: 14px;
  padding-top: 18px;
  text-align: right;
}

.profile-photo {
  display: block;
  width: 168px;
  height: 210px;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
}

.hanzi {
  font-family: Arial, "Noto Sans CJK SC", sans-serif;
  font-weight: normal;
}

.publication-list,
.project-list,
.education-list {
  padding-left: 1.2em;
}

.publication-list {
  padding-right: 0;
}

.meta {
  color: #555555;
  font-size: 92%;
}

.meta::before {
  content: " | ";
  color: #777777;
}

.publication-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: baseline;
  width: 100%;
}

.publication-title {
  min-width: 0;
}

.publication-venue {
  justify-self: end;
  white-space: nowrap;
}

.paper-note {
  color: #222222;
}

#footer {
  clear: both;
  margin-top: 4em;
  padding-top: 0.1em;
  color: #999999;
  font-size: small;
  border-top: 1px solid #c0c0c0;
}

#footer a {
  color: #80a0b0;
}

@media (max-width: 720px) {
  body {
    margin: 0;
    padding: 8px 18px 24px;
  }

  #layout-content {
    padding: 0;
  }

  .profile-header {
    margin-top: 18px;
  }

  .profile-main {
    margin-right: 0;
  }

  .profile-photo-wrap {
    float: none;
    margin-left: 0;
    margin-bottom: 16px;
    padding-top: 0;
    text-align: left;
  }

  .profile-photo {
    width: 132px;
    height: 164px;
  }

  h1 {
    font-size: 150%;
    line-height: 1.1;
  }

  .publication-title-row {
    display: block;
  }

  .publication-venue {
    display: block;
    margin-top: 0.15em;
  }
}
