:root {
  --global-text-color: #325d81;
  --global-text-color-light: #6388af;
  --global-theme-color: #4683c6;
  --global-theme-color-deep: #266aaf;
  --global-theme-color-alt: #77b2eb;
  --global-hover-color: #d3e9fd;
}

.publications {
  margin-top: 0.2rem;
}

.publications h2 {
  margin-bottom: 0.22rem;
}

.publications-note {
  margin: 0 0 1.18rem;
  color: var(--global-text-color-light);
  font-size: 0.8rem;
  font-weight: 440;
  line-height: 1.35;
}

.publications ol.bibliography {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.08rem;
}

.publications ol.bibliography li {
  margin: 0;
}

.pub-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 224px) minmax(0, 1fr);
  gap: 1.28rem;
  align-items: start;
  padding: 1.36rem 1.38rem 1.28rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.8), rgba(247, 249, 252, 0.76) 36%, rgba(239, 244, 249, 0.76) 62%, rgba(231, 238, 246, 0.74));
  box-shadow: 0 22px 48px rgba(22, 48, 82, 0.07), 0 8px 18px rgba(22, 48, 82, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -1px 0 rgba(206, 217, 229, 0.28);
  backdrop-filter: blur(24px) saturate(170%);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.pub-row > :not(.pub-venue-watermark) {
  position: relative;
  z-index: 1;
}

.pub-row--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.pub-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(193, 205, 220, 0.52), rgba(103, 158, 255, 0.34), rgba(123, 185, 202, 0.18), rgba(255, 255, 255, 0.08));
}

.pub-row::after {
  display: none;
}

.pub-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 58px rgba(22, 48, 82, 0.1), 0 12px 26px rgba(22, 48, 82, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pub-venue-watermark {
  position: absolute;
  right: 1rem;
  bottom: 0.82rem;
  width: clamp(88px, 10vw, 132px);
  height: auto;
  opacity: 0.17;
  object-fit: contain;
  pointer-events: none;
  filter: none;
  mix-blend-mode: multiply;
  z-index: 0;
  user-select: none;
}

.pub-venue-watermark--arxiv {
  right: 0.94rem;
  bottom: 0.4rem;
  width: auto;
  height: clamp(29px, 3.3vw, 38px);
  opacity: 0.16;
  filter: brightness(0.3) contrast(1.1);
  mix-blend-mode: normal;
}

.pub-venue-watermark--cvpr {
  width: clamp(108px, 12vw, 156px);
  opacity: 0.15;
  filter: brightness(0.34) contrast(1.08);
  mix-blend-mode: normal;
}

.pub-venue-watermark--aaai {
  right: 0.92rem;
  bottom: 0.38rem;
  width: auto;
  height: clamp(46px, 5.3vw, 62px);
  opacity: 0.24;
  filter: none;
  mix-blend-mode: normal;
}

.pub-venue-watermark--ijcv {
  width: clamp(92px, 10.8vw, 134px);
  opacity: 0.15;
  filter: brightness(0.34) contrast(1.08);
  mix-blend-mode: normal;
}

.pub-venue-watermark--tifs,
.pub-venue-watermark--tmm {
  width: clamp(96px, 11vw, 140px);
  opacity: 0.15;
}

.pub-media {
  position: relative;
  padding-top: 0.04rem;
  z-index: 1;
}

.publications .teaser {
  display: block;
  width: 100%;
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(24, 47, 79, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 0.28s ease;
}

.pub-row:hover .teaser {
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(236, 241, 247, 0.9) 46%, rgba(221, 230, 241, 0.88) 72%, rgba(213, 225, 239, 0.84));
  color: #3779c1 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(77, 98, 126, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(191, 205, 223, 0.32);
  backdrop-filter: blur(12px) saturate(150%);
}

.pub-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  padding-top: 0.02rem;
  z-index: 1;
}

.publications .title {
  color: #183351;
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 44rem;
}

.publications .title a {
  color: inherit;
}

.publications .title a:hover {
  color: var(--global-theme-color);
}

.publications .author,
.publications .periodical {
  margin-top: 0.16rem;
  color: var(--global-text-color);
}

.publications .author {
  font-size: 0.955rem;
  line-height: 1.46;
  font-weight: 490;
}

.publications .periodical {
  color: var(--global-text-color-light);
  font-size: 0.92rem;
  line-height: 1.38;
  font-weight: 490;
}

.publications .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  margin-top: 0.72rem;
}

.publications .pub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(242, 246, 250, 0.76), rgba(232, 239, 246, 0.72));
  color: var(--global-theme-color);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.publications a.pub-badge {
  text-decoration: none;
}

.publications a.pub-badge:hover {
  transform: translateY(-1px);
}

.publications .pub-badge.pub-badge--link {
  border-color: var(--global-theme-color);
  color: var(--global-theme-color);
}

.publications .pub-badge.pub-badge--link:hover {
  background: linear-gradient(135deg, var(--global-theme-color), var(--global-theme-color-alt));
  color: #fff;
}

.publications .pub-badge.pub-badge--pdf {
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--global-theme-color-deep);
  background: linear-gradient(135deg, rgba(244, 247, 251, 0.86), rgba(233, 240, 247, 0.82), rgba(236, 250, 255, 0.8));
}

.publications .pub-badge.pub-badge--pdf:hover {
  background: var(--global-hover-color);
  color: var(--global-theme-color-deep);
}

.publications .pub-badge.pub-badge--rank {
  border-color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, rgba(239, 243, 249, 0.84), rgba(232, 239, 246, 0.82), rgba(232, 245, 255, 0.76));
  color: var(--global-theme-color-deep);
}

.publications .pub-badge.pub-badge--note {
  border-color: #4683c6;
  background: linear-gradient(135deg, #3d7cc0, #73b0ea);
  color: #fff;
}

.publications .pub-badge.pub-badge--highlight,
.publications .pub-badge.pub-badge--oral {
  border-color: transparent;
  background: linear-gradient(270deg, #ff7f96, #ffb07f, #ffcd49, #f3dc12, #b8cc7d, #7dcd6f, #6fcda6, #87dcdc, #7fcaff, #7f9dff, #9b7fff, #c57fff, #ff7fb9);
  background-size: 400% 400%;
  color: #fff;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(176, 151, 233, 0.16);
  animation: pubRainbowFlow 4s ease infinite;
}

@keyframes pubRainbowFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.publications .hidden {
  display: none;
}

@media print, screen and (max-width: 860px) {
  .pub-row {
    grid-template-columns: 1fr;
  }

  .pub-venue-watermark {
    right: 0.8rem;
    bottom: 0.72rem;
    width: 92px;
    opacity: 0.12;
  }

  .pub-venue-watermark--arxiv {
    right: 0.78rem;
    bottom: 0.38rem;
    width: auto;
    height: 31px;
    opacity: 0.16;
  }

  .pub-venue-watermark--aaai {
    right: 0.76rem;
    bottom: 0.34rem;
    width: auto;
    height: 46px;
    opacity: 0.24;
  }
}
