@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:focus,
a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #1b1f23;
  --muted: #5c6773;
  --link: #1768d1;
  --link-hover: #f08a24;
  --border: #e3e7ee;
  --card: #f7f8fa;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

html {
  scroll-behavior: smooth;
}

nav.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
  background: var(--card);
}

.nav-links a.active {
  color: var(--text);
  background: #e7eefc;
  border: 1px solid #c8d8f5;
}

main.page {
  width: 100%;
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: 78px;
}

.content {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
  text-align: center;
}

.sidebar .avatar {
  width: 95%;
  max-width: 300px;
}

.sidebar-name {
  margin: 12px 0 6px;
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 700;
}

.sidebar-line {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.sidebar-line.level-primary {
  color: #1f2a37;
  font-weight: 600;
}

.sidebar-line.level-secondary {
  color: #4b5563;
  font-weight: 500;
}

.sidebar-line.level-tertiary {
  color: #6b7280;
}

.sidebar-links {
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.sidebar-links i {
  font-size: 34px;
}

.icon-hf {
  width: 34px;
  height: 34px;
  vertical-align: middle;
}

.link-sep {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

table.page-table {
  width: 100%;
  max-width: 860px;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  margin: 0 auto;
}

table.section-table {
  width: 100%;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  margin: 0 auto;
  scroll-margin-top: 84px;
}

table.pub-table td.thumb-cell img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
  background: #fff;
  display: block;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

table.pub-table td.thumb-cell a {
  display: block;
}

table.pub-table td.thumb-cell a:hover img,
table.pub-table td.thumb-cell a:focus img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.18);
}

table.pub-table {
  border-collapse: separate;
  border-spacing: 0 16px;
}

table.pub-table tr {
  filter: drop-shadow(0 10px 24px rgba(16, 24, 40, 0.12));
  transition: filter 200ms ease, transform 200ms ease;
}

table.pub-table tr:hover {
  filter: drop-shadow(0 18px 36px rgba(16, 24, 40, 0.18));
  transform: translateY(-4px);
}

table.pub-table tr td {
  background: var(--card);
  border: 1px solid var(--border);
}

table.pub-table tr td:first-child {
  border-right: none;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

table.pub-table tr td:last-child {
  border-left: none;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

p {
  margin: 0 0 0.8rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

h2 {
  margin: 0 0 8px;
  font-weight: 700;
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-size: 28px;
  letter-spacing: 0.2px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.other-publications .paper-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.other-publications .paper-authors {
  color: var(--muted);
  font-size: 15px;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-size: 34px;
  letter-spacing: 0.3px;
  text-align: center;
}

.venue {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.venue-neurips {
  background: #e8f2ff;
  color: #1455c0;
}

.venue-cvpr {
  background: #e7fff6;
  color: #0b7a5a;
}

.venue-acmmm {
  background: #fff1e8;
  color: #b44814;
}

.venue-iclr {
  background: #f2e8ff;
  color: #6b2bbf;
}

.venue-iccv {
  background: #eaf0ff;
  color: #2a4fd5;
}

.venue-emnlp {
  background: #e8f7ff;
  color: #0f6da1;
}

.venue-aaai {
  background: #ffecee;
  color: #b02735;
}

.venue-icme {
  background: #fff6e8;
  color: #a56413;
}

.venue-tgrs {
  background: #eefaf0;
  color: #227a3b;
}

.venue-cbm {
  background: #f0f2ff;
  color: #3a4ea3;
}

.venue-cmpb {
  background: #eef1f6;
  color: #39424f;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  margin: 4px 6px 4px 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1b3b6f;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.link-chip i {
  font-size: 13px;
}

.link-chip:hover,
.link-chip:focus {
  transform: translateY(-2px);
  border-color: #c5d2f0;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.14);
}

.link-chip.arxiv {
  background: #fff2f2;
  color: #a10f24;
  border-color: #f2c9cf;
}

.link-chip.code {
  background: #f2f7ff;
  color: #1a4fb5;
  border-color: #c8d8f5;
}

.link-chip.project {
  background: #f3fff6;
  color: #0f7a46;
  border-color: #c7efd6;
}

.center {
  text-align: center;
}

.cell-tight {
  padding: 0;
}

.icon-lg {
  font-size: 28px;
}

.icon-md {
  font-size: 24px;
}

.icon-email {
  color: #107bd0;
}

.icon-scholar {
  color: #4081ec;
}

.icon-github {
  color: #171515;
}

.org-title {
  font-size: 20px;
}

.org-logo {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.author-me {
  color: var(--text);
  font-weight: 700;
}

.authors-line {
  color: var(--muted);
}

.section-cell {
  padding: 22px 20px;
  width: 100%;
  vertical-align: middle;
}

.thumb-cell {
  padding: 18px 20px;
  width: 42%;
  vertical-align: middle;
}

.content-cell {
  padding: 18px 20px;
  width: 58%;
  vertical-align: middle;
}

.intro-text {
  padding: 2.5%;
  width: 63%;
  vertical-align: middle;
}

.intro-photo {
  padding: 2.5%;
  width: 40%;
  max-width: 40%;
  vertical-align: middle;
  text-align: center;
}

.avatar {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.14);
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

@media (max-width: 720px) {
  .layout {
    flex-direction: column;
    padding-top: 10px;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .sidebar-card {
    text-align: left;
  }

  .sidebar-links {
    text-align: left;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 8px;
  }
}
