/* Base */
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background: #FAF6F1;
}

a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Main table (Jon Barron style) */
table {
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
}

/* Name */
.name {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  padding: 20px 0 10px;
  margin: 0;
}

/* Section headings */
.section-heading {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid #ddd5cc;
  padding-bottom: 6px;
  margin: 0;
}

/* Social links */
.social-links {
  text-align: center;
  padding: 4px 0;
}
.social-links a {
  color: #0066cc;
  text-decoration: none;
  margin: 0 6px;
  font-size: 14px;
}
.social-links a:hover {
  text-decoration: underline;
}
.coming-soon {
  color: #aaa;
  font-size: 12px;
}

/* News */
.news-date {
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  vertical-align: top;
  padding-right: 16px;
  font-size: 14px;
}
.news-item {
  font-size: 14px;
  color: #333;
  vertical-align: top;
}

/* Paper */
.papertitle {
  font-weight: 500;
  color: #1a1a1a;
}
.paper-authors {
  font-size: 14px;
  color: #555;
}
.paper-venue {
  font-size: 13px;
  color: #888;
  font-style: italic;
}
.paper-links {
  font-size: 13px;
}

/* Badges */
.badge-review {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #0066cc;
  border: 1px solid #0066cc;
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 6px;
}
.badge-submitted {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 6px;
}

/* Experience */
.exp-period {
  font-size: 13px;
  color: #888;
}

/* Header layout */
.header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.header-text {
  flex: 1;
}
.header-photo {
  flex-shrink: 0;
}

/* Detail bullet lists */
.detail-list {
  margin: 4px 0 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: #555;
  list-style-position: outside;
}
.detail-list li {
  padding-left: 4px;
  margin-left: -1px;
  margin-bottom: 2px;
}

/* Highlight for key experience items */
li.highlight-item {
  background: linear-gradient(to right, #fbeec1, transparent);
  padding: 2px 6px 2px 4px;
  margin-left: -1px;
  border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
  li.highlight-item {
    background: linear-gradient(to right, #3a3520, transparent);
  }
}

/* Green highlight for project roles */
li.highlight-green {
  background: linear-gradient(to right, #d4edda, transparent);
  padding: 2px 6px 2px 4px;
  margin-left: -1px;
  border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
  li.highlight-green {
    background: linear-gradient(to right, #1e3a1e, transparent);
  }
}

/* Paper thumbnail placeholder */
.paper-thumb-cell {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  vertical-align: middle;
  text-align: center;
}
.paper-thumb {
  width: 100%;
  padding-bottom: 60%;
  border-radius: 6px;
  position: relative;
}
.paper-thumb span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

/* Profile pic */
.profile-pic {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Project description */
.project-desc {
  font-size: 14px;
  color: #555;
}
.tba {
  font-size: 13px;
  color: #aaa;
  font-style: italic;
}

/* Awards */
.award-year {
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  vertical-align: top;
  padding-right: 16px;
  font-size: 14px;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  padding: 20px 0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body { background: #1a1a1a; color: #e0e0e0; }
  .section-heading { color: #f0f0f0; border-bottom-color: #333; }
  .name { color: #fff; }
  .papertitle { color: #f0f0f0; }
  a { color: #6db3f2; }
  .social-links a { color: #6db3f2; }
  .paper-authors { color: #aaa; }
  .paper-venue { color: #888; }
  .news-date { color: #aaa; }
  .news-item { color: #ddd; }
  .badge-review { color: #6db3f2; border-color: #6db3f2; }
  .exp-period { color: #888; }
  .project-desc { color: #aaa; }
  .award-year { color: #aaa; }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 12px;
    padding: 0 14px;
  }
  .header-row {
    display: flex;
    flex-direction: column;
  }
  .header-text, .header-photo {
    width: 100% !important;
    padding: 8px 0 !important;
  }
  .header-text {
    text-align: left;
  }
  .header-photo {
    text-align: center;
    order: -1;
  }
  .profile-pic {
    width: 150px;
  }
  .name {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .section-heading {
    font-size: 16px;
  }
  .social-links a {
    font-size: 11px;
  }
  td {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .header-text p {
    padding: 0 4px;
  }
  .social-links {
    padding: 0 4px;
  }
  .news-date, .award-year {
    font-size: 11px;
    padding-right: 4px !important;
    width: auto !important;
    min-width: 60px;
  }
  .news-item {
    font-size: 11px;
  }
  ul {
    font-size: 11px !important;
    padding-left: 14px !important;
  }
  .detail-list li {
    padding-left: 4px !important;
  }
  .papertitle {
    font-size: 13px;
  }
  .paper-authors {
    font-size: 11px;
  }
  .paper-venue {
    font-size: 10px;
  }
  .paper-links {
    font-size: 10px;
  }
  .paper-thumb-cell {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    vertical-align: top !important;
    padding-top: 12px !important;
  }
  .paper-thumb {
    width: 80px;
    height: 56px;
    padding-bottom: 0;
  }
  .paper-thumb span {
    font-size: 22px;
  }
  .exp-period {
    font-size: 11px;
  }
  /* Force narrow left columns on mobile */
  table td:first-child {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
  }
  .project-desc {
    font-size: 11px;
  }
}
