/* Academic homepage style */

:root {
  --body-font: 16px;
  --name-font: 23px;
  --position-font: 16px;
  --heading-font: 20px;
  --nav-font: 16px;
  --footer-font: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 16px;
  color: #111111;
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--body-font);
  line-height: 1.32;
}

.container {
  width: min(1100px, calc(100% - 24px));
  min-height: 900px;
  margin: 0 auto;
  padding: 24px 26px 38px;
  background: #ffffff;
  border: 1px solid #c8d0df;
  box-shadow: 0 0 7px rgba(28, 54, 105, 0.38);
}

a.anchor {
  display: block;
  position: relative;
  top: -20px;
  visibility: hidden;
}

a {
  color: #9400d3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.profile-table,
.profile-table td {
  border: none;
  border-collapse: collapse;
}

.profile-table {
  width: 100%;
}

.photo-cell {
  width: 165px;
  padding: 6px 18px 0 0;
  vertical-align: top;
}

.profile-text {
  padding: 0;
  text-align: left;
  vertical-align: top;
}

.profile-photo {
  display: block;
  width: 150px;
  height: 188px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
}

.name {
  margin: 0 0 10px;
  font-size: var(--name-font);
  line-height: 1.05;
}

.position {
  margin: 0 0 8px;
  font-size: var(--position-font);
  line-height: 1.28;
}

.contact {
  margin: 4px 0 10px;
  font-size: var(--body-font);
  line-height: 1.32;
}

.profile-links {
  margin: 2px 0 10px;
  line-height: 1.2;
}

.profile-links a {
  display: inline-block;
  margin-right: 8px;
  text-decoration: none;
}

.profile-links i {
  font-size: 23px;
  line-height: 1;
  vertical-align: middle;
}

.scholar-icon {
  color: #4285f4;
}

.linkedin-icon {
  color: #0a66c2;
}

.github-icon {
  color: #181717;
}

.profile-links a:hover i {
  opacity: 0.78;
}

.about-text {
  font-size: var(--body-font);
}

h2 {
  margin: 28px 0 8px;
  padding: 0 0 4px;
  color: #483d8b;
  font-size: var(--heading-font);
  line-height: 1.12;
  border-bottom: 1px solid #b9b9b9;
}

p {
  margin: 4px 0 10px;
}

.staffshortcut {
  margin: 22px 0 16px;
  font-size: var(--nav-font);
  line-height: 1.75;
}

ul,
ol {
  margin-top: 7px;
  margin-bottom: 14px;
  padding-left: 44px;
}

ul {
  list-style-type: square;
}

li {
  margin: 5px 0;
}

.news-list li {
  margin: 4px 0;
}

.publications li {
  margin-bottom: 11px;
}

.subheading {
  margin-top: 12px;
  margin-bottom: 5px;
}

.highlight {
  color: #9b1c1c;
}

#footer {
  margin-top: 36px;
  padding-top: 9px;
  color: #777777;
  font-size: var(--footer-font);
  text-align: right;
  border-top: 1px solid #d0d0d0;
}

@media (max-width: 800px) {
  :root {
    --body-font: 15px;
    --name-font: 28px;
    --position-font: 16px;
    --heading-font: 20px;
    --nav-font: 14px;
    --footer-font: 12px;
  }

  body {
    padding: 0;
    line-height: 1.4;
  }

  .container {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 18px;
    border: none;
    box-shadow: none;
  }

  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .photo-cell {
    padding: 0 0 16px;
  }

  .profile-photo {
    width: 155px;
    height: 194px;
  }

  ul,
  ol {
    padding-left: 25px;
  }
}
