/* Home profile: large image, no circle, full image visible, centered in content column */
.main .profile .profile_inner {
  width: 100%;
  max-width: 100%;
  align-items: center;
}

/* New Home Hero Styles */
@keyframes heroReveal {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroGlow {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 0.5; transform: scale(1); }
}

.home-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Ambient background glow */
.home-hero-container::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(236,72,153,0.05) 40%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(60px);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite;
}
[data-theme="dark"] .home-hero-container::before {
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, rgba(236,72,153,0.1) 40%, rgba(0,0,0,0) 70%);
}

.home-hero-text {
  max-width: 900px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary) 20%, #6366f1 80%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
[data-theme="dark"] .home-hero-title {
  background: linear-gradient(135deg, #ffffff 20%, #818cf8 80%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 750px;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

.home-hero-focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

.home-hero-focus-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  font-weight: 700;
}

.home-hero-focus-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.home-hero-focus-pills .news-type-pill {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

.home-hero-actions .buttons {
  display: flex;
  gap: 1rem;
}

.home-hero-actions .buttons .button {
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.home-hero-actions .buttons .button:first-child {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
}

.home-hero-actions .buttons .button:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.6);
  filter: brightness(1.1);
}

.home-hero-actions .buttons .button:nth-child(2) {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.home-hero-actions .buttons .button:nth-child(2):hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .home-hero-actions .buttons .button:nth-child(2):hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-hero-actions .social-icons {
  justify-content: center;
  padding: 0;
  gap: 1rem;
}

.home-hero-actions .social-icons a {
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px; /* Squircle look */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .home-hero-actions .social-icons a {
  background: rgba(0, 0, 0, 0.2);
}

.home-hero-actions .social-icons a svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.home-hero-actions .social-icons a:hover {
  background: #6366f1;
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  border-color: #6366f1;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4), 0 4px 6px -2px rgba(99, 102, 241, 0.2);
}
.home-hero-actions .social-icons a:hover svg {
  transform: scale(1.1);
}

.home-hero-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.45s;
  opacity: 0;
  perspective: 1000px;
}

.home-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  transform: rotateX(2deg) translateY(0);
  transform-origin: bottom center;
}

.home-hero-image:hover img {
  transform: rotateX(0deg) translateY(-8px);
  box-shadow: 0 35px 60px -15px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.15);
}

[data-theme="dark"] .home-hero-image img {
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
[data-theme="dark"] .home-hero-image:hover img {
  box-shadow: 0 40px 70px -15px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Team page: circular image left of name */
.team-member {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.team-member .team-member-img {
  width: 72px;
  height: 72px;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}
.team-member-body {
  flex: 1;
  min-width: 0;
}
.team-member-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.team-member-body p:last-child {
  margin-bottom: 0;
}

/* Research page: card-style blocks with clear topic and team line */
.research-directions {
  margin-top: 1.5rem;
}
.research-directions h2 {
  font-size: 1.15rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--primary, #fff);
}
.research-directions h2:first-child {
  margin-top: 0;
}
.research-directions h2 + p {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
/* Team / contributors line (second paragraph after each h2) */
.research-directions h2 + p + p {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.88;
  margin-bottom: 0;
  margin-top: 0.25rem;
}

/* Community / Courses: grid of cards, description on course page only */
.course-entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .course-entries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.course-entries-grid .course-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  padding: 1rem;
  border-radius: 8px;
  background: var(--entry, #2e2e33);
}
.course-entries-grid .course-entry-img-link {
  margin-bottom: 0.75rem;
}
.course-entries-grid .course-entry .course-entry-img {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  align-self: center;
}
.course-entries-grid .course-entry-body {
  width: 100%;
}
.course-entries-grid .course-entry-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.course-entries-grid .course-entry-title a {
  text-decoration: none;
}
.course-entries-grid .course-entry-period {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.course-entries-grid .course-entry-more {
  margin: 0;
  font-size: 0.9rem;
}
.course-entries-grid .course-entry-more a {
  text-decoration: none;
}

/* Poster gallery: posters only, full-width grid */
.poster-gallery-page .poster-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.poster-gallery-page .poster-gallery-item {
  margin: 0;
  background: var(--entry, #2e2e33);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.poster-gallery-page .poster-gallery-link {
  display: block;
  line-height: 0;
}
.poster-gallery-page .poster-gallery-img {
  width: 100%;
  height: auto;
  display: block;
}
.poster-gallery-page .poster-gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.poster-gallery-page .poster-gallery-empty {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
  grid-column: 1 / -1;
}

/* Poster lightbox: click thumbnail to view larger (like bit-ml.github.io/teaching/deep-bit-2019) */
.poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
.poster-lightbox[hidden] {
  display: none !important;
}
.poster-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.poster-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--entry, #2e2e33);
  color: var(--primary, #fff);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.poster-lightbox-close:hover {
  background: var(--tertiary, #4a4a4f);
}
.poster-lightbox-content {
  position: relative;
  z-index: 10000;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.poster-lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.poster-lightbox-dl {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary, #fff);
  opacity: 0.9;
}
.poster-lightbox-dl:hover {
  text-decoration: underline;
}
.poster-gallery-page .poster-gallery-link {
  cursor: pointer;
}

/* Home feed sections (News & Selected Publications) */
.home-feed-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
}

.home-feed {
  background: var(--entry);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.home-feed-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.home-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-feed-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.home-feed-date {
  font-size: 0.85rem;
  color: var(--secondary);
  min-width: 100px;
  margin-top: 0;
  text-align: left;
}

.home-feed-link {
  font-weight: 500;
  text-decoration: none;
  color: var(--primary);
  line-height: 1.4;
  text-align: left;
}

.home-feed-link:hover {
  text-decoration: underline;
}

.home-feed-item--pub {
  align-items: flex-start;
}

.home-feed-item--pub-no-thumb .home-pub-body {
  min-height: 0;
  flex: 1;
  width: 100%;
}

.home-pub-thumb {
  width: 100px;
  height: 60px;
  flex: 0 0 100px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--tertiary);
  line-height: 0;
}

.home-pub-thumb img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  /* Paper / screenshot teasers: anchor to top so no gray band above */
  object-position: center top;
  border-radius: 0 !important;
}

.home-pub-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  gap: 0.25rem;
  text-align: left;
}

.home-pub-meta {
  font-size: 0.85rem;
  color: var(--secondary);
}

.home-pub-authors {
  font-style: italic;
  display: block;
}

.home-pub-venue {
  font-weight: 500;
}

.home-feed-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.home-feed-more:hover {
  text-decoration: underline;
}

/* Ensure vertical stacking for profile */
.profile--home-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* List Entry (News, Academic, Blog) */
.academic-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--entry);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .academic-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.academic-card--no-thumb {
  gap: 0;
}

.academic-card-thumb {
  width: 100%;
  max-width: 220px;
  height: 156px;
  flex: 0 0 220px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tertiary);
  position: relative;
}

@media (min-width: 768px) {
  .academic-card-thumb {
    width: 220px;
    max-width: 220px;
    height: 156px;
    flex: 0 0 220px;
  }
}

.academic-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0 !important;
}

.academic-card-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.3rem;
  overflow: visible;
}

.academic-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex-shrink: 0;
}

.academic-card-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.academic-card-title a {
  text-decoration: none;
  color: var(--primary);
}

.academic-card-title a:hover {
  text-decoration: underline;
}

.academic-card-meta {
  font-size: 0.78rem;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.academic-card-authors {
  font-style: italic;
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.academic-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  line-height: 1.3;
}

.academic-card-meta-dot {
  opacity: 0.55;
  user-select: none;
}

.academic-card-venue {
  font-weight: 500;
  color: var(--secondary);
}

.academic-card-date {
  color: var(--secondary);
  opacity: 0.92;
  white-space: nowrap;
}

.academic-card-summary {
  font-size: 0.76rem;
  color: var(--secondary);
  margin-top: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.academic-card-links {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.2rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.academic-card-more,
.academic-card-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: var(--tertiary);
  transition: background 0.2s;
  white-space: nowrap;
}

.academic-card-more:hover,
.academic-card-link:hover {
  background: var(--border);
}

.academic-card .news-type-pill {
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  line-height: 1.2;
}

/* News Type Pills */
.news-type-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  background: var(--tertiary);
  color: var(--primary);
  border: 1px solid var(--border);
}

.news-type-pill--academic {
  background: color-mix(in srgb, #3b82f6 15%, var(--entry));
  color: color-mix(in srgb, #3b82f6 80%, var(--primary));
  border-color: color-mix(in srgb, #3b82f6 30%, var(--border));
}

.news-type-pill--community {
  background: color-mix(in srgb, #10b981 15%, var(--entry));
  color: color-mix(in srgb, #10b981 80%, var(--primary));
  border-color: color-mix(in srgb, #10b981 30%, var(--border));
}

.news-type-pill--patent {
  background: color-mix(in srgb, #8b5cf6 15%, var(--entry));
  color: color-mix(in srgb, #8b5cf6 80%, var(--primary));
  border-color: color-mix(in srgb, #8b5cf6 30%, var(--border));
}

.news-type-pill--post {
  background: color-mix(in srgb, #f59e0b 15%, var(--entry));
  color: color-mix(in srgb, #f59e0b 80%, var(--primary));
  border-color: color-mix(in srgb, #f59e0b 30%, var(--border));
}

.news-type-pill--direction {
  text-decoration: none;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.news-type-pill--direction-generalization {
  background: color-mix(in srgb, #ec4899 16%, var(--entry));
  color: color-mix(in srgb, #ec4899 85%, var(--primary));
  border-color: color-mix(in srgb, #ec4899 28%, var(--border));
}

.news-type-pill--direction-deepfake {
  background: color-mix(in srgb, #ef4444 16%, var(--entry));
  color: color-mix(in srgb, #ef4444 85%, var(--primary));
  border-color: color-mix(in srgb, #ef4444 28%, var(--border));
}

.news-type-pill--direction-nlp {
  background: color-mix(in srgb, #06b6d4 16%, var(--entry));
  color: color-mix(in srgb, #06b6d4 85%, var(--primary));
  border-color: color-mix(in srgb, #06b6d4 28%, var(--border));
}

.news-type-pill--direction-rl {
  background: color-mix(in srgb, #14b8a6 16%, var(--entry));
  color: color-mix(in srgb, #14b8a6 85%, var(--primary));
  border-color: color-mix(in srgb, #14b8a6 28%, var(--border));
}

a.news-type-pill--direction:hover {
  filter: brightness(1.06);
  opacity: 0.95;
}

.academic-card-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.research-direction-explore {
  margin: 0.75rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.research-direction-explore-label {
  font-size: 0.9rem;
  color: var(--secondary);
}

.research-page .research-page-intro h2 {
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.research-page .research-page-intro h2:first-of-type {
  margin-top: 0.5rem;
}

.research-page-all-pubs-heading {
  margin-top: 2.75rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.research-page-all-pubs-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--secondary);
  max-width: 52rem;
}

.research-direction-page .research-direction-papers-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.academic-paper-direction {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.academic-paper-direction-label {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* Single academic paper */
.academic-paper-meta {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--entry);
  border-radius: var(--radius);
  border-left: 4px solid color-mix(in srgb, #3b82f6 80%, var(--primary));
}

.academic-paper-authors {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.academic-paper-venue {
  font-size: 1rem;
  color: var(--secondary);
}

/* Fix team member images */
.team-member-img-wrap {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-img-wrap img.team-member-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.course-entry-contact {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

/* Research recent papers */
.research-recent-papers {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.research-recent-papers li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.research-recent-venue {
  color: var(--secondary);
  font-size: 0.85rem;
}
.research-recent-empty {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Migrated blog posts (Remark/Prism): PaperMod uses `pre code { display: grid }` for
   Chroma line wrappers. Prism emits one <span> per token, so each becomes its own row.
   Restore normal preformatted flow for .remark-highlight blocks only. */
.post-content .remark-highlight pre code {
  display: block;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.post-content .remark-highlight pre {
  margin: 0;
  overflow-x: auto;
}

.post-content .remark-highlight {
  margin: 1rem 0;
  padding: 0;
  background: var(--code-block-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Hide leftover KaTeX HTML from imported blogs (prevents duplicated math) */
.katex-html {
  display: none !important;
}

/* Prevent horizontal scrollbars from hero glow */
body {
  overflow-x: hidden;
}

/* Increase the main content width to make blogs and images larger */
:root {
  --main-width: 960px;
}
