/* A plain academic homepage: one typeface and ordinary document spacing. */
:root {
  --ink: #333;
  --muted: #666;
  --link: #1772d0;
  --line: #e5e5e5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    16px/1.55 Arial,
    Helvetica,
    sans-serif;
}
.wrap {
  width: min(930px, calc(100% - 40px));
  margin-inline: auto;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
p {
  margin: 0 0 16px;
}
h1,
h2,
h3,
h4 {
  font-family: inherit;
  line-height: 1.35;
}
h1 {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 18px;
}
h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 15px;
  color: #222;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
h4 {
  font-size: 16px;
  margin: 0 0 3px;
}
strong {
  font-weight: 600;
}
sup {
  font-size: 11px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}
.site-name {
  font-size: 25px;
  font-weight: 400;
  color: #333;
  margin: 0;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  font-size: 14.5px;
}
.site-name {
  white-space: nowrap;
}
section[id], #about-me {
  scroll-margin-top: 16px;
}
.site-header nav a {
  color: #444;
}
.site-header nav a[aria-current] {
  color: var(--link);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 36px;
  align-items: start;
  margin: 34px 0 26px;
}
.intro-copy p {
  margin: 0 0 14px;
  text-align: justify;
}
.portrait {
  margin: 6px 0 0;
}
.portrait img {
  width: 220px;
  height: auto;
  aspect-ratio: 440 / 540;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
}
.profile-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.profile-icon:hover {
  background: #f1f5f8;
  text-decoration: none;
}
.profile-icon svg {
  width: 26px;
  height: 26px;
}
.icon-email {
  color: #b64b3e;
}
.icon-scholar {
  color: #4285f4;
}
.icon-github {
  color: #24292f;
}
.icon-linkedin {
  color: #0a66c2;
}
.icon-cv {
  color: #287c72;
}
.section {
  margin: 30px 0 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
.section-head h2 {
  margin: 0;
}
.section-head > a {
  font-size: 14px;
  white-space: nowrap;
}
.section-note {
  color: var(--muted);
  font-size: 15px;
}
.news-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}
.news-date {
  color: var(--muted);
  font-size: 14px;
}
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pub {
  padding: 0;
  margin: 0 0 23px;
}
.pub-title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 3px;
}
.pub-title a {
  color: var(--link);
}
.pub-authors {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 2px;
}
.pub-meta {
  font-size: 14px;
  font-style: italic;
  margin: 0;
}
.meta-separator {
  padding: 0 5px;
}
.presentation {
  font-style: normal;
  color: #9b2929;
}
.pub-actions {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin: 3px 0 0;
}
.equal-note {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.review-status {
  font-style: normal;
  color: #775126;
  margin-left: 8px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.small-heading {
  font-size: 17px;
  margin: 0 0 14px;
  font-weight: 600;
}
.compact-entry {
  margin-bottom: 16px;
}
.compact-entry p {
  font-size: 14px;
  margin: 0;
}
.date {
  font-size: 13px;
  color: var(--muted);
}
#service p {
  font-size: 15px;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 16px 0 24px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.page-heading {
  padding: 32px 0 10px;
}
.page-heading p {
  font-size: 15px;
}
.page-heading .document-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  margin: 10px 0 26px;
}
.download-link {
  font-size: 15px;
}
.cv-section {
  margin: 26px 0 0;
}
.cv-entry {
  margin: 0 0 20px;
}
.cv-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}
.cv-entry h3 {
  font-size: 16px;
  margin: 0 0 3px;
}
.cv-entry-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.cv-entry p,
.cv-entry ul,
.plain-list {
  font-size: 15px;
}
.cv-entry p {
  margin: 0 0 4px;
}
.cv-entry ul {
  margin: 5px 0 0;
  padding-left: 20px;
}
.muted {
  color: var(--muted);
}
.kv-list {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 18px;
  font-size: 15px;
}
.kv-list dt {
  color: var(--muted);
  font-size: 14px;
}
.kv-list dd {
  margin: 0;
}
.project-grid {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.project-card {
  margin-bottom: 27px;
}
.project-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px;
}
.project-desc {
  font-size: 15px;
  margin-bottom: 6px;
}
.project-meta,
.project-tags {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 7px;
}
.project-links {
  font-size: 15px;
  margin: 0;
}
.project-meta span + span::before,
.project-tags span + span::before {
  content: " · ";
  white-space: pre;
}
.project-links a {
  margin-right: 14px;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  background: #fff;
  padding: 8px;
}
.skip-link:focus {
  top: 0;
}
@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
  }
  .site-name {
    font-size: 26px;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 24px;
    margin-top: 25px;
  }
  .portrait img {
    width: 160px;
  }
  .cv-entry-head {
    display: block;
  }
  .cv-entry-date {
    white-space: normal;
  }
  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 480px) {
  .intro {
    display: block;
  }
  .portrait {
    margin: 0 0 20px;
    float: right;
  }
  .intro {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .portrait {
    order: -1;
    align-self: flex-start;
  }
  .portrait img {
    width: 150px;
  }
  .intro-copy p {
    text-align: left;
  }
  .section-head {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .news-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }
  .news-date {
    font-size: 13px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .site-header nav {
    gap: 20px;
  }
  .pub {
    margin-bottom: 24px;
  }
}
@media print {
  body {
    font-size: 10pt;
  }
  .wrap {
    width: 100%;
  }
  .site-header,
  .site-footer,
  .no-print,
  .skip-link,
  .section-nav,
  .download-link {
    display: none;
  }
  .page-heading {
    padding: 0;
  }
  h1 {
    font-size: 22pt;
  }
  h2 {
    font-size: 16pt;
  }
  .cv-entry,
  .pub {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
  @page {
    margin: 17mm;
  }
}

/* Research rows keep the figure beside its citation, including on phones. */
.pub,
.project-card.has-image {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  column-gap: 28px;
  margin-bottom: 30px;
}
.pub-image {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.pub-image img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: contain;
}
.pub-body,
.project-body {
  min-width: 0;
}
.publication-note {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px;
}
.related-paper {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.related-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fff6e0;
  border: 1px solid #f0d596;
  color: #6b4e00;
  font-weight: 600;
}
.related-chip a {
  font-weight: 600;
}
.related-chip .venue-logo {
  height: 16px;
  margin-right: 0;
  vertical-align: middle;
}
.related-chip .resource-link {
  margin-left: 2px;
}
.related-authors {
  display: block;
  color: #666;
  margin-top: 4px;
}
.pub-title,
.project-title {
  font-size: 16px;
}
.project-card.has-image .project-title {
  margin-top: 0;
}
#submitted,
#projects {
  margin-top: 40px;
}
@media (max-width: 680px) {
  .pub,
  .project-card.has-image {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
  }
  .pub-image img {
    height: 115px;
  }
}
@media (max-width: 480px) {
  .pub,
  .project-card.has-image {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 15px;
  }
  .pub-image {
    align-self: start;
    margin-top: 3px;
  }
  .pub-image img {
    height: auto;
    max-height: 115px;
  }
  .pub-title {
    font-size: 15px;
  }
  .pub-authors,
  .pub-meta {
    font-size: 13px;
  }
  .related-paper {
    font-size: 12px;
  }
}
.github-icon {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}
.github-link,
.resource-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
}
.resource-icon {
  width: 18px;
  height: 18px;
}
.profile-icon .github-icon,
.profile-icon .resource-icon {
  width: 26px;
  height: 26px;
}
.github-link {
  color: #24292f;
}
.resource-link {
  color: #2774a5;
}
.pub-meta a {
  color: inherit;
}
.publisher-label {
  font-style: normal;
}
.project-links,
.pub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-card.has-photo .pub-image img {
  height: 158px;
  object-fit: cover;
  border-radius: 3px;
}
#project-visionai .pub-image img {
  object-position: 50% 27%;
}
@media (max-width: 680px) {
  .project-card.has-photo .pub-image img {
    height: 120px;
  }
}
@media (max-width: 480px) {
  .project-card.has-photo .pub-image img {
    height: 90px;
  }
}
/* Keep each printed citation together with its figure. */
@media print {
  .pub,
  .project-card.has-image {
    display: grid;
    grid-template-columns: 38mm minmax(0, 1fr);
    column-gap: 5mm;
    margin-bottom: 6mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .pub-image {
    display: flex;
    align-self: center;
    margin-top: 0;
  }
  .pub-image img,
  .project-card.has-photo .pub-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 32mm;
    object-fit: contain;
  }
}

/* CV-style rows: experience, education, awards, talks. */
.cv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cv-row:last-child {
  border-bottom: 0;
}
.cv-row-main {
  min-width: 0;
}
.cv-row h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px;
}
.cv-row-place {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
}
.cv-row-role {
  font-size: 15px;
  font-style: italic;
  margin: 0;
}
.cv-row-role .muted {
  font-style: normal;
  font-size: 14px;
}
.cv-row ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink);
}
.cv-row li {
  margin: 2px 0;
}
.cv-row-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.line-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.line-list li:last-child {
  border-bottom: 0;
}
.line-main {
  min-width: 0;
}
.line-list .muted {
  font-size: 14px;
}
.talk-kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--link);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 5px;
  margin-right: 8px;
  vertical-align: 1px;
}
@media (max-width: 600px) {
  .cv-row,
  .line-list li {
    flex-direction: column;
    gap: 2px;
  }
  .cv-row-date {
    order: -1;
  }
  .cv-row-place {
    display: block;
    margin-left: 0;
  }
}
.cv-row.has-logo {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
}
.org-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin-top: 2px;
}
.cv-row.has-logo .cv-row-date {
  padding-top: 2px;
}
@media (max-width: 600px) {
  .cv-row.has-logo {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
  }
  .cv-row.has-logo .org-logo {
    width: 32px;
    height: 32px;
    grid-row: 1 / span 2;
  }
  .cv-row.has-logo .cv-row-date {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }
  .cv-row.has-logo .cv-row-main {
    grid-column: 2;
  }
}
.venue-logo {
  height: 20px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  vertical-align: -5px;
  margin-right: 7px;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 6px;
}
.service-chip {
  display: inline-block;
  line-height: 1.5;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fafafa;
}
.service-chip .venue-logo {
  height: 20px;
  max-width: 70px;
  vertical-align: -5px;
  margin-right: 6px;
}
.cv-entry ul.logo-list {
  list-style: none;
  padding-left: 0;
}
.logo-list li {
  margin: 5px 0;
}
.logo-list li:not(:has(.venue-logo))::before {
  content: "";
  display: inline-block;
  width: 20px;
  margin-right: 7px;
}
.award-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 4px;
  background: #fdecea;
  border: 1px solid #f3b8b2;
  color: #b3261e !important;
  font-weight: 600;
  font-size: 0.92em;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}
.award-badge:hover {
  background: #fbd9d5;
  text-decoration: none;
}
.logo-list .venue-logo {
  width: 22px;
  max-width: 22px;
}
.logo-list li:not(:has(.venue-logo))::before {
  width: 22px;
}

/* Numbered service lists and publications. */
ol.logo-list,
.cv-entry ol.logo-list {
  list-style: decimal;
  margin: 4px 0 14px;
  padding-left: 26px;
  font-size: 15px;
}
ol.logo-list li {
  margin: 6px 0;
  padding-left: 4px;
}
ol.logo-list li::marker {
  color: var(--muted);
  font-size: 13px;
}
.service-group {
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0 4px;
}
main {
  counter-reset: pub;
}
.pub {
  counter-increment: pub;
}
.pub-title::before {
  content: "[" counter(pub) "] ";
  color: var(--muted);
  font-weight: 400;
}
.portrait .profile-links {
  justify-content: space-between;
  gap: 4px;
  margin: 12px 0 0;
  width: 220px;
}
.portrait .profile-icon {
  width: 38px;
  height: 38px;
}
.portrait .profile-icon svg,
.portrait .profile-icon .github-icon,
.portrait .profile-icon .resource-icon {
  width: 24px;
  height: 24px;
}
@media (max-width: 680px) {
  .portrait .profile-links {
    width: 160px;
  }
  .portrait .profile-icon {
    width: 30px;
    height: 30px;
  }
  .portrait .profile-icon svg,
  .portrait .profile-icon .github-icon,
  .portrait .profile-icon .resource-icon {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 480px) {
  .portrait .profile-links {
    width: 150px;
  }
  .portrait .profile-icon {
    width: 28px;
    height: 28px;
  }
}
.funders {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0 0;
}
.funder {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 0 10px;
  padding: 1px 8px 1px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
}
.funder:hover {
  background: #f5f7f9;
  text-decoration: none;
}
.funder img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.inline-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -3px;
  margin-right: 3px;
}
.project-award {
  margin-left: 0;
  font-size: 13px;
  padding: 1px 9px;
}
.availability {
  display: block;
  width: 220px;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  background: #f1f8f3;
  color: #2d6a45;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}
.availability::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2f9e5b;
  vertical-align: 1px;
}
.availability:hover {
  background: #e4f2e9;
  text-decoration: none;
}
@media (max-width: 680px) {
  .availability {
    width: 160px;
    font-size: 11px;
    padding: 4px 6px;
  }
}
@media (max-width: 480px) {
  .availability {
    width: 150px;
  }
}
.location {
  width: 220px;
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.location svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 3px;
  color: #b64b3e;
}
@media (max-width: 680px) {
  .availability {
    white-space: normal;
  }
  .location {
    width: 160px;
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .location {
    width: 150px;
  }
}
/* Pulsing "available" dot. */
.availability::before {
  position: relative;
  animation: availability-pulse 1.8s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.6);
}
@keyframes availability-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(47, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .availability::before {
    animation: none;
  }
}
.pub-note {
  font-size: 13.5px;
  color: #444;
  margin: 6px 0 4px;
}
.badge-new {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 3px;
  background: #d93025;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 1px;
}
.news-body a {
  font-weight: 500;
}

/* Print: links stay clickable in a saved PDF; keep them blue so readers can spot them. */
@media print {
  main a {
    color: #1772d0 !important;
    text-decoration: none !important;
  }
}
.news-date::before {
  content: "\2714";
  color: #2f9e5b;
  font-size: 13px;
  margin-right: 7px;
}
.benchmark-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 10px;
  border-radius: 999px;
  background: #2f9e5b;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.pub-benchmark {
  margin: 6px 0 4px;
}
.pub-benchmark .benchmark-pill {
  margin-left: 0;
}

a.benchmark-pill,
a.benchmark-pill:hover {
  color: #fff;
  text-decoration: none;
}
a.benchmark-pill:hover {
  background: #25804a;
}
