/* ==========================================================================
   Homepage sections: section headers, news, CV entries, publication cards
   ========================================================================== */

/* section headers */
.page__content h3 {
  margin-top: 32px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #eee;
}

/* news date badges */
.news-date {
  display: inline-block;
  min-width: 74px;
  background: #f0f4f8;
  color: #52adc8;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
  text-align: center;
  vertical-align: middle;
}

/* cv entries (experience / education) */
.cv-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 0;
}
.cv-entry-date {
  min-width: 160px;
  color: #888;
  font-size: 13px;
  padding-top: 3px;
  flex-shrink: 0;
}
.cv-entry-info {
  flex: 1;
}
.cv-entry-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 3px;
}
.cv-entry-role {
  color: #444;
  font-size: 14px;
  margin-bottom: 3px;
}
.cv-entry-advisor {
  color: #666;
  font-size: 13px;
}

/* publication cards */
div.paper {
  display: grid;
  grid-template-columns: 210px 1fr;
  column-gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}
div.paper:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
div.pimg {
  grid-column: 1;
  grid-row: 1 / 4;
}
div.pimg img {
  width: 200px;
  height: 140px;
  /* contain, not cover: these are wide pipeline figures, and cropping them
     would cut off whole stages of the diagram */
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  display: block;
}
div.pimg .pimg-placeholder {
  width: 200px;
  height: 140px;
  border: 1px dashed #ddd;
  border-radius: 4px;
  background: #fafafa;
}
div.ptitle {
  grid-column: 2;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  align-self: start;
}
div.pauthors {
  grid-column: 2;
  font-size: 14px;
  font-style: italic;
  color: #555;
  margin: 4px 0 0;
  padding: 0;
  align-self: start;
}
div.pvenue {
  grid-column: 2;
  font-size: 14px;
  color: #555;
  margin: 4px 0 0;
  padding: 0;
  align-self: start;
}
div.pvenue p {
  margin: 3px 0;
}

/* stack on narrow screens */
@media screen and (max-width: 600px) {
  div.paper {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  div.pimg {
    grid-row: auto;
  }
  .cv-entry {
    display: block;
  }
  .cv-entry-date {
    min-width: 0;
    margin-bottom: 2px;
  }
}
