/* ===== Base Reset & Typography ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:hover {
  color: #f09228;
  text-decoration: underline;
}

/* ===== Layout Container ===== */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== Bio Section ===== */
.bio-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.bio-table td {
  vertical-align: top;
  padding: 10px;
}

.bio-table td.bio-text {
  padding-right: 18px;
}

.bio-text h1 {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 14px;
  color: #222;
}

.bio-text p {
  margin-bottom: 12px;
  text-align: justify;
}

.bio-links {
  margin-top: 8px;
}

.bio-links a {
  display: inline-block;
  margin-right: 16px;
  font-size: 15px;
  white-space: nowrap;
}

.bio-links i {
  margin-right: 4px;
}

.bio-photo {
  width: 200px;
  min-width: 200px;
  text-align: center;
}

.bio-table td.bio-photo {
  vertical-align: bottom;
  padding-bottom: 60px;
}

.bio-photo img {
  width: 190px;
  height: auto;
  border-radius: 0;
  border: 2px solid #ddd;
  transform: translateX(4px);
}

/* ===== Section Headings ===== */
h2 {
  font-size: 22px;
  font-weight: normal;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.section-note {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}

/* ===== News Section ===== */
.news-section ul {
  list-style: none;
  padding: 0;
}

.news-section li {
  padding: 4px 0;
  font-size: 15px;
}

.news-date {
  font-weight: bold;
  color: #555;
  margin-right: 6px;
}

/* ===== Publications ===== */
.pub-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.pub-image {
  flex-shrink: 0;
  width: 200px;
}

.pub-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #eee;
  background: #f5f5f5;
  min-height: 100px;
}

.pub-text {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-size: 16px;
  font-weight: bold;
  color: #1772d0;
  display: block;
  margin-bottom: 4px;
}

.pub-authors {
  font-size: 14px;
  margin-bottom: 4px;
  color: #555;
}

.pub-authors a {
  color: #555;
}

.pub-authors a:hover {
  color: #f09228;
}

.pub-venue {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #555;
}

.pub-status {
  font-weight: normal;
}

.pub-award {
  display: inline-block;
  background: #f09228;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 8px;
  border-radius: 3px;
  margin-left: 6px;
  font-style: normal;
}

.pub-links {
  font-size: 14px;
  margin-bottom: 4px;
}

.pub-links a {
  margin-right: 8px;
}

.pub-desc {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.bibtex {
  display: none;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 14px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  overflow-x: auto;
  margin-top: 6px;
  margin-bottom: 6px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ===== Experience Section ===== */
.exp-entry {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.exp-logo {
  flex-shrink: 0;
  width: 110px;
  height: 64px;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.exp-text {
  font-size: 15px;
  line-height: 1.5;
}

.exp-role {
  display: block;
  color: #555;
}

.exp-date {
  color: #777;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

/* ===== Awards Section ===== */
.awards-list {
  list-style: none;
  padding: 0;
}

.awards-list li {
  padding: 4px 0;
  font-size: 15px;
}

.award-year {
  font-weight: bold;
  color: #555;
  margin-right: 10px;
  display: inline-block;
  min-width: 40px;
}

/* ===== Miscellaneous Section ===== */
.misc-list {
  list-style: none;
  padding: 0;
}

.misc-list li {
  padding: 4px 0;
  font-size: 15px;
}

/* ===== Footer ===== */
footer {
  margin-top: 50px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 13px;
  color: #999;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .bio-table,
  .bio-table tbody,
  .bio-table tr,
  .bio-table td {
    display: block;
    width: 100%;
  }

  .bio-photo {
    text-align: center;
    margin-bottom: 16px;
    order: -1;
  }

  .bio-table td.bio-photo {
    vertical-align: top;
    padding-bottom: 10px;
  }

  .bio-photo img {
    transform: none;
  }

  .bio-table td.bio-text {
    padding-right: 10px;
  }

  .pub-entry {
    flex-direction: column;
  }

  .pub-image {
    width: 100%;
    max-width: 300px;
  }
}

/* Official lockups are used as complete image assets. */
.exp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 76px;
}

.exp-logo img {
  max-width: 132px;
  max-height: 66px;
  border-radius: 0;
}

.pub-entry {
  align-items: center;
}

.pub-image img {
  min-height: 0;
  background: #fff;
}

.pub-image--paper {
  text-align: center;
}

/* Show the review's title block at the same height as landscape thumbnails. */
.pub-image--paper img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

.pub-desc {
  margin: 0 0 5px;
  font-style: italic;
}

@media (max-width: 640px) {
  .pub-entry { align-items: flex-start; }
  .pub-image--paper { text-align: left; }
  .exp-entry {
    grid-template-columns: 110px minmax(0, 1fr);
    row-gap: 4px;
  }
  .exp-logo { width: 110px; grid-row: span 2; }
  .exp-logo img { max-width: 106px; }
  .exp-date { grid-column: 2; justify-self: end; }
}
