@font-face {
  font-family: "Exo 2";
  src: url("../fonts/Exo2-Regular-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("../fonts/Exo2-Italic-Latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  background-color: white;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
}

p {
  text-align: justify;
  text-justify: inter-word;
}

a {
  color: #1a55b5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

#history .row {
  grid-template-columns: 160px 98px minmax(0, 1fr);
  column-gap: 18px;
  align-items: stretch;
}

#dhead {
  margin-top: 20px;
}

#dpic {
  grid-column: span 6;
  text-align: right;
}

#ddesc {
  padding-top: 40px;
  padding-left: 20px;
  grid-column: span 6;
}

@media (max-width: 991px) {
  #dpic {
    grid-column: span 12;
    text-align: center;
  }

  #ddesc {
    grid-column: span 12;
    padding-top: 20px;
    padding-left: 0;
    text-align: center;
  }
}

h1 {
  font-size: 34px;
  font-weight: normal;
  padding: 0;
  margin: 0;
}

h2 {
  font-weight: normal;
  font-style: italic;
  color: #999;
  font-size: 18px;
  padding: 0;
  margin: 5px 0 10px 0;
}

@media (min-width: 992px) {
  h2 {
    max-width: 320px;
  }
}

#dpic img {
  width: 240px;
  height: 240px;
  border-radius: 120px;
  object-fit: cover;
  object-position: center top;
}

.dintro {
  max-width: 420px;
  margin: 0 0 12px 0;
}

@media (max-width: 991px) {
  .dintro {
    max-width: none;
  }
}

#dico {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 991px) {
  #dico {
    justify-content: center;
  }
}

.iico-text {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  text-transform: lowercase;
  cursor: pointer;
}

.cv-link {
  text-transform: none;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.scholar-link {
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.iico-text svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.iico-text:hover {
  text-decoration: none;
  border-color: #bbb;
  color: #222;
}

button.iico-text {
  font-family: inherit;
  padding: 0;
}

#demail {
  margin-top: 10px;
  color: #555;
  opacity: 0;
  transition: opacity 0.7s;
}

hr {
  height: 1px;
  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  background-image: -ms-linear-gradient(left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  padding: 0;
  margin: 20px 0 20px 0;
  border: 0;
}

.timespan {
  grid-column: auto;
  font-size: 14px;
  text-align: right;
  padding-top: 8px;
  color: #bbb;
  align-self: start;
  white-space: nowrap;
}

.ico {
  grid-column: auto;
  vertical-align: top;
  border-left: 2px solid #cfcfcf;
  position: relative;
  padding-left: 16px;
  padding-bottom: 16px;
  min-height: 92px;
  align-self: stretch;
}

.ico img {
  display: block;
  width: 76px;
  height: 76px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: white;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

.ico img.logo-duke {
  width: 76px;
  height: 76px;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

.desc {
  grid-column: auto;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.4;
  padding-top: 2px;
  padding-bottom: 22px;
  max-width: 760px;
  align-self: start;
}

.entry-dot {
  position: absolute;
  top: 0;
  left: -8px;
  width: 10px;
  height: 10px;
  border-radius: 7px;
  background-color: #cfcfcf;
  border: 2px solid white;
}

.entry {
  margin-bottom: 0;
}

.desc-title {
  margin-bottom: 4px;
}

.desc-summary {
  margin-top: 8px;
  color: #555;
  line-height: inherit;
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 767px) {
  #history .row {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .timespan {
    text-align: left;
    padding-top: 0;
    margin-bottom: 6px;
  }

  .ico {
    min-height: 66px;
    padding-left: 12px;
    margin-bottom: 8px;
  }

  .desc {
    padding-top: 0;
    padding-bottom: 18px;
  }

  .ico img {
    width: 56px;
    height: 56px;
    padding: 6px;
  }

  .ico img.logo-duke {
    width: 56px;
    height: 56px;
    padding: 1px;
    object-fit: cover;
    object-position: center;
  }
}

.ctitle {
  font-size: 36px;
  margin-bottom: 20px;
  margin-top: 40px;
}

#bio {
  margin-bottom: 10px;
}

#bio > div:not(.ctitle) {
  text-align: justify;
  text-justify: inter-word;
}

#publications {
  margin-bottom: 96px;
}

.pub {
  font-size: 14px;
  border-left: 4px solid #aaa;
  padding: 2px 0 2px 10px;
  margin-bottom: 10px;
}

.pub-title {
  display: inline;
  color: #333;
}

.pub-venue {
  display: inline;
  color: #090;
  margin-left: 6px;
}

.pub-authors {
  display: block;
  color: #333;
}

.backlink {
  margin-top: 24px;
  margin-bottom: 18px;
}

.project-page-title {
  font-size: 34px;
  margin-bottom: 4px;
  font-weight: normal;
}

.project-page-subtitle {
  font-size: 18px;
  color: #777;
  margin-bottom: 18px;
  font-style: italic;
}

.detail-figure {
  margin: 20px 0 24px 0;
  width: 100%;
  max-width: 760px;
}

.detail-figure img {
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.detail-figure figcaption {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 14px;
}

.media-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.media-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.media-grid-compact {
  max-width: 760px;
}

.media-grid-compact .media-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.media-grid-compact .media-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.media-card {
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: white;
}

.media-card img {
  width: 100%;
  display: block;
  border-radius: 4px;
  background: #fff;
}

.media-card figcaption {
  margin-top: 8px;
  color: #555;
  font-size: 14px;
  text-align: center;
}

.detail-section {
  margin-bottom: 28px;
}

.detail-section h2 {
  font-size: 26px;
  margin-bottom: 10px;
  font-style: normal;
  color: #333;
}

.section-title-long {
  white-space: nowrap;
}

.detail-section h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: normal;
}

.detail-section p {
  max-width: 760px;
}

.detail-quote {
  max-width: 760px;
  margin: 14px 0 0 0;
  padding-left: 14px;
  border-left: 3px solid #ddd;
  color: #444;
  text-align: justify;
  text-justify: inter-word;
}

.detail-list {
  margin: 10px 0 0 18px;
  padding: 0;
  max-width: 760px;
}

.detail-list li {
  margin-bottom: 8px;
  text-align: justify;
  text-justify: inter-word;
}

.detail-ordered {
  margin: 10px 0 0 18px;
  padding-left: 18px;
  max-width: 760px;
}

.detail-ordered li {
  margin-bottom: 8px;
  text-align: justify;
  text-justify: inter-word;
}

.detail-code {
  max-width: 760px;
  margin: 12px 0 0 0;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  white-space: pre-wrap;
  overflow-x: auto;
  line-height: 1.45;
  font-size: 14px;
  box-sizing: border-box;
}

.data-table {
  border-collapse: collapse;
  margin-top: 10px;
  width: 100%;
  max-width: 760px;
  font-size: 15px;
}

.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f7f7f7;
  font-weight: normal;
}

@media (max-width: 767px) {
  .section-title-long {
    white-space: normal;
  }

  .media-grid-two,
  .media-grid-three {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    max-width: none;
  }
}
