/* Small additions to the upstream template: user content and mobile layout.
   Base typography, link colors, table widths and spacing come from
   vendor/jon-barron/stylesheet.css and the upstream HTML. */
html { scroll-padding-top: 16px; }
body { background: #fff; color: #000; }
.name { font-weight: normal; }
.skip-link { position: absolute; top: -60px; left: 16px; background: white; padding: 8px; }
.skip-link:focus { top: 8px; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #1772d0; outline-offset: 3px; }
.papertitle { margin: 0; }
.paper-image { display: block; }
.paper-image img { display: block; width: 160px; max-width: 100%; height: auto; }
sup { font-size: 10px; line-height: 0; }
.citation { margin-top: 8px; }
.citation summary { color: #1772d0; cursor: pointer; width: fit-content; }
.citation pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f6f6; padding: 12px; font-size: 12px; }
.content-table { margin-top: 10px; }
.background-grid { margin-top: 18px; }
.background-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 12px; }
.column-label, .timeline-item h4, .team-heading h3, .robot-project h4 { margin: 0; font-size: 14px; font-weight: 700; }
.institution-logo { width: 90px; height: 30px; object-fit: contain; }
.sensetime-logo { width: 34px; height: 18px; }
.timeline-item { position: relative; margin-bottom: 16px; padding-right: 175px; }
.timeline-item p { margin: 4px 0; }
.date { position: absolute; right: 0; top: 0; color: #555; }
.honors-list { margin: 12px 0 0; padding: 0 15px 0 20px; max-height: 330px; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
.honors-list li { margin-bottom: 12px; }
.honors-list h3 { margin: 0; font-size: 14px; font-weight: normal; }
.honors-list p { margin: 3px 0 0; color: #555; }
.scroll-note { color: #555; }
.team-experience { margin-top: 18px; }
.team-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.team-wordmark { width: 140px; height: auto; }
.role-year { font-weight: normal; white-space: nowrap; }
.robot-project { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 20px; align-items: center; margin-left: 10px; padding-left: 18px; border-left: 1px solid #ddd; }
.robot-photo { width: 90px; height: 100px; object-fit: contain; }
.project-label { color: #555; margin-bottom: 5px; }
.template-credit { text-align: right; }
.template-credit img { vertical-align: middle; margin-right: 8px; }
@media (max-width: 600px) {
  .profile-table, .profile-table > tbody, .profile-table > tbody > tr,
  .publication-table, .publication-table > tbody, .publication-row { display: block; width: 100%; }
  .profile-table > tbody > tr { display: flex; flex-direction: column; }
  .profile-table .profile-copy { display: block; width: auto !important; padding: 16px !important; }
  .profile-table .profile-photo-cell { display: block; order: -1; width: 160px !important; max-width: 160px !important; padding: 16px 0 0 !important; margin: 0 auto; }
  .profile-copy .name { padding-top: 4px; }
  .publication-row { margin-bottom: 20px; }
  .publication-row .paper-visual, .publication-row .paper-copy { display: block; width: auto !important; padding: 12px 16px !important; }
  .paper-image img { width: 250px; }
  .timeline-item { padding-right: 0; }
  .date { position: static; }
  .team-wordmark { width: 95px; }
  .robot-project { grid-template-columns: 70px minmax(0,1fr); gap: 12px; margin-left: 0; padding-left: 12px; }
  .robot-photo { width: 70px; height: 90px; }
}
@media print { .honors-list { max-height: none; overflow: visible; } }
