@charset "UTF-8";
@font-face {
  font-family: 'Recoleta';
  src: url("../fonts/Recoleta-RegularDEMO.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Reset & Base Styles */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide all scrollbars globally */
* {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none;
  /* WebKit */
}

/* Crosshair cursor for clickable elements */
a, button, [role="button"], input[type="submit"], input[type="button"] {
  cursor: crosshair;
}

/* Inline SVG icons (replacement for Font Awesome) */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.icon svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

body {
  font-family: 'Hanken Grotesk', sans-serif;
  line-height: 1.6;
  color: #1d1d1d;
  background-color: #f6f6f6;
  margin: 0 auto;
  height: 100vh;
  scroll-behavior: smooth;
  /* Gentle fade-in on load */
  animation: page-fade-in 0.6s ease-out forwards;
  /* Hide scrollbar permanently but keep scrolling */
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}
body::-webkit-scrollbar {
  display: none;
  /* WebKit */
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Typography */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

/* Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-gray-300 {
  background-color: #d1d5db;
}

.bg-gray-400 {
  background-color: #9ca3af;
}

.bg-red-400 {
  background-color: #f87171;
}

.bg-blue-400 {
  background-color: #60a5fa;
}

.text-white {
  color: #ffffff;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-t {
  border-top-width: 1px;
}

/* Effects */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.hover\:shadow-lg:hover {
  box-shadow: none;
}

.hover\:-translate-y-1:hover {
  transform: none;
}

.hover\:bg-gray-200:hover {
  background-color: inherit;
}

.hover\:text-gray-900:hover {
  color: inherit;
}

.transition-transform {
  transition-property: none;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
}

.duration-300 {
  transition-duration: 300ms;
}

.min-h-screen {
  min-height: 100vh;
}

/* Utility classes */
.w-full {
  width: 100%;
}

.w-6 {
  width: 1.5rem;
}

.h-48 {
  height: 12rem;
}

.h-6 {
  height: 1.5rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-1 {
  gap: 0.25rem;
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.overflow-hidden {
  overflow: hidden;
}

.object-cover {
  object-fit: cover;
}

/* Responsive utilities */
@media (min-width: 769px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Sidebar layout (default.html - projects with sidebar) */
body.layout-sidebar .main-content {
  margin-left: 0;
  padding: 2rem;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  body.layout-sidebar .main-content {
    margin-left: 280px;
    padding: 3rem;
  }
}

/* Section Visibility Rules */
@media (max-width: 768px) {
  .desktop-section {
    display: none !important;
  }

  .mobile-section {
    display: block !important;
  }

  /* Legacy mobile pub list: column stack — avoid 1fr/1fr grid (adds empty space under the text) */
  .mobile-pub-card-no-image {
    display: flex !important;
    flex-direction: column;
  }
}
@media (min-width: 769px) {
  .mobile-section {
    display: none !important;
  }

  .desktop-section {
    display: block !important;
  }
}
/* Layout - Desktop */
@media (min-width: 769px) {
  .container {
    display: grid;
    grid-template-rows: 48px auto 48px;
    grid-gap: 20px;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .desktop-container {
    width: 60%;
    margin: 0 auto;
  }

  .content {
    width: 100%;
  }
  .content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  .content h2 {
    font-size: 24px;
  }
  .content p {
    margin-bottom: 8px;
    font-size: 1rem;
  }
  .content img {
    max-width: 100%;
  }
  .content ul {
    margin-left: 20px;
    margin-bottom: 20px;
  }
  .content ul li {
    margin-bottom: 8px;
  }
  .content a {
    color: #0078ff;
    text-decoration: none;
  }
  .content a:hover {
    text-decoration: underline;
  }

  .content-emran,
  .content-works {
    flex-direction: column;
  }

  .content-gallery {
    padding-bottom: 6rem;
  }

  /* Desktop Profile Styles */
  .desktop-profile-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .desktop-profile-container .profile-info {
    display: flex;
    align-items: flex-start;
  }

  .desktop-profile-container .profile-text {
    margin-top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .desktop-profile-container .profile-name {
    line-height: 1;
    margin-bottom: 1rem;
  }

  .desktop-profile-container .profile-title {
    line-height: 1.2;
  }

  .desktop-profile-container .profile-email {
    line-height: 1;
  }

  .desktop-profile-container .nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  .desktop-profile-container .icon-link {
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: none;
  }

  .desktop-profile-container .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 48px;
    background-color: #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  .desktop-profile-container .text-link:hover {
    color: #2563eb;
  }
}
section {
  width: 100%;
  margin: 0 auto;
}

#main-content {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    min-height: 100vh;
    padding: 20px;
  }
}
.desktop-profile-container .text-link span {
  font-size: 1rem;
  color: #666;
}

/* Mobile scrolling fix */
@media (max-width: 768px) {
  .desktop-wrapper {
    padding: 32px;
    padding-bottom: 5rem;
    /* Extra bottom space so content isn’t covered by fixed mobile nav */
  }

  .main-column {
    height: auto !important;
    overflow: visible !important;
    grid-template-columns: 1fr !important;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Hide desktop navigation on mobile since buttons are at bottom */
  .desktop-nav {
    display: none !important;
  }

  /* Hide footer on mobile */
  .footer {
    display: none !important;
  }

  /* Hide desktop works panel on mobile */
  .works-panel {
    display: none !important;
  }

  /* Make masonry two columns on mobile */
  .grid-item,
  .project-card,
  .pub-item {
    width: calc(50% - 8px) !important;
  }

  .pub-image-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Align theses section with masonry grid */
  .article-gallery {
    margin: 0 !important;
    padding: 0 !important;
  }

  .section-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* Hide mobile works panel on desktop */
@media (min-width: 769px) {
  .mobile-works-panel,
  .mobile-works-overlay {
    display: none !important;
  }

  /* Hide section dividers on desktop */
  .section-divider {
    display: none !important;
  }
}
/* Desktop wrapper styles */
@media (min-width: 769px) {
  body {
    overflow-x: auto;
  }

  .desktop-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: visible;
  }

  /* Top nav: same width as main content */
  .desktop-nav {
    padding: 0 10rem;
  }

  .desktop-nav .nav-links-section,
  .desktop-nav .nav-buttons {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
  }
}
/* News Section Wrapper - same width as main content */
@media (min-width: 769px) {
  .news-section-wrapper {
    width: 100%;
    margin-top: 2rem;
    padding: 2rem 2rem;
  }

  .news-section-wrapper .news-section-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
.news-section-container .news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 14rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 transparent;
}
.news-section-container .news-list.news-list-expanded {
  max-height: none;
  overflow-y: visible;
}

.news-section-container .news-year-divider {
  font-size: 0.875rem;
  font-weight: 600;
  color: #888;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding-bottom: 0.25rem;
}

.news-section-container .news-year-divider:first-child {
  margin-top: 0;
}

.news-section-container .news-list::-webkit-scrollbar {
  display: block;
  width: 6px;
}

.news-section-container .news-list::-webkit-scrollbar-track {
  background: transparent;
}

.news-section-container .news-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.news-section-container .news-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.news-section-container .news-card {
  display: flex;
  gap: 0.75rem;
  padding: 0;
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  align-items: stretch;
}

.news-section-container .news-icon {
  display: none;
  /* hidden for cleaner look */
  width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.news-section-container .news-icon.award {
  background: transparent;
  color: #94a3b8;
}

.news-section-container .news-icon.publication {
  background: transparent;
  color: #94a3b8;
}

.news-section-container .news-icon.talk {
  background: transparent;
  color: #94a3b8;
}

.news-section-container .news-icon.education {
  background: transparent;
  color: #94a3b8;
}

.news-section-container .news-icon.conference {
  background: transparent;
  color: #94a3b8;
}

.news-section-container .news-icon.art {
  background: transparent;
  color: #94a3b8;
}

.news-section-container .news-content {
  flex: 1;
  min-width: 0;
}

.news-section-container .news-meta {
  font-size: 0.75rem;
  color: #888;
}

.news-section-container .news-meta .news-category::before {
  content: " · ";
}

.news-section-container .news-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #333;
}

.news-section-container .news-text p {
  display: inline;
  margin: 0;
}

.news-section-container .news-text a {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.news-section-container .news-text a:hover {
  color: #000;
  text-decoration: underline;
}

.news-section-container .news-link {
  font-size: inherit;
  color: #666;
  text-decoration: underline;
  margin-left: 0.25rem;
  transition: color 0.2s ease;
}

.news-section-container .news-link:hover {
  color: #000;
  text-decoration: underline;
}

.news-section-container .news-card-hidden {
  display: none;
}

.news-section-container .news-show-more-wrap {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.news-section-container .news-show-more-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: 1px solid #9ca3af;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
  cursor: crosshair;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-section-container .news-show-more-btn:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #6b7280;
}

/* Service Section Wrapper - same width as main content */
@media (min-width: 769px) {
  .service-section-wrapper {
    width: 100%;
    padding: 2rem 2rem;
    margin-top: 0;
  }

  .service-section-wrapper .service-section-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
.service-section-container .service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .service-section-container .service-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .service-section-container .service-card {
    width: calc((100% - 1.5rem) / 2);
  }
}
.service-section-container .service-card {
  display: flex;
  gap: 0.75rem;
  padding: 0;
  align-items: stretch;
}

.service-section-container .service-icon {
  display: none;
  /* hidden for cleaner look, matches news */
  width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  background: transparent;
  color: #94a3b8;
}

.service-section-container .service-content {
  flex: 1;
  min-width: 0;
}

.service-section-container .service-meta {
  font-size: 0.75rem;
  color: #888;
}

.service-section-container .service-meta .service-venue::before {
  content: " · ";
}

.service-section-container .service-text {
  font-size: 1rem;
  line-height: 1.4;
}

.service-section-container .service-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-section-container .service-text a:hover {
  color: #64748b;
}

/* Grants Section Wrapper - same width as main content */
@media (min-width: 769px) {
  .grants-section-wrapper {
    width: 100%;
    padding: 2rem 2rem;
    margin-top: 0;
  }

  .grants-section-wrapper .grants-section-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
.grants-section-container .grants-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .grants-section-container .grants-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .grants-section-container .grant-card {
    width: calc((100% - 1.5rem) / 2);
  }
}
.grants-section-container .grant-card {
  display: flex;
  gap: 0.75rem;
  padding: 0;
  align-items: stretch;
}

.grants-section-container .grant-content {
  flex: 1;
  min-width: 0;
}

.grants-section-container .grant-meta {
  font-size: 0.75rem;
  color: #888;
}

.grants-section-container .grant-meta .grant-source::before {
  content: " · ";
}

.grants-section-container .grant-text {
  font-size: 1rem;
  line-height: 1.4;
}

.grants-section-container .grant-description {
  color: #666;
  font-size: 0.9375rem;
}

.grants-section-container .grant-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grants-section-container .grant-text a:hover {
  color: #64748b;
}

/* Talks Section Wrapper - centered, horizontally scrollable with visible scrollbar */
@media (min-width: 769px) {
  .talks-section-wrapper {
    width: 100%;
    padding: 2rem 2rem;
    margin-top: 0;
    overflow: visible;
  }

  .talks-section-wrapper .talks-section-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow: visible;
  }

  .talks-section-wrapper .talks-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: visible;
    overflow-y: visible;
  }

  .talks-section-wrapper .talks-grid .work-grid-item,
  .talks-section-wrapper .work-grid-item[data-type="presentation"] {
    width: calc((48rem - 3rem) / 3);
    min-width: calc((48rem - 3rem) / 3);
    flex-shrink: 0;
  }
}
.talks-section-wrapper .work-grid-item[data-type="presentation"] .work-image {
  aspect-ratio: unset;
  height: auto;
}

.talks-section-wrapper .work-grid-item[data-type="presentation"] .work-image img,
.talks-section-wrapper .work-grid-item[data-type="presentation"] .work-image .placeholder-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Section headers - same size as intro text, bolder (exclude publications filter line) */
.news-section-container .intro-block > p,
.publications-section-container .intro-block > p:not(.publications-intro-line),
.service-section-container .intro-block > p,
.grants-section-container .intro-block > p,
.talks-section-container .intro-block > p,
.selected-works-container .intro-block > p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Hide citation text on publication cards (all breakpoints) */
.work-citation,
.work-citation-desktop,
.work-citation.work-citation-desktop,
.publications-page .work-citation,
.publications-section-container .work-citation {
  display: none !important;
}

/* Publications split sections (publications + position/workshop papers) */
.publications-split-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.publications-subsection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publications-subsection-title {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: lowercase;
  color: #333;
}

/* Publications intro line: match intro font (1rem, font-weight 350, line-height 1.5) */
.publications-section-container .intro-block > p.publications-intro-line,
.publications-intro-line {
  font-weight: 350 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Publications page only: extra space beneath intro sentence */
.publications-page .publications-section-container .intro-block.publications-intro-block {
  margin-bottom: 4rem;
}

/* Inline in sentence: override .publications-filter-buttons flex */
.publications-intro-line .publications-filter-inline {
  display: inline;
  margin-left: 0.35rem;
}

.publications-filter-inline .pub-filter-btn {
  display: inline-block;
  margin: 0 0.35rem 0.25rem 0;
  padding: 0.15rem 0.35rem;
  vertical-align: baseline;
  line-height: 1.4;
  font-size: 1rem !important;
  font-weight: 350 !important;
  background: #f3f4f6;
  border-radius: 0.25rem;
  color: #9ca3af;
  text-decoration: none;
  cursor: crosshair;
  transition: background 0.2s, color 0.2s;
}

.publications-filter-inline .pub-filter-btn:hover {
  background: #e5e7eb;
  color: #6b7280;
}

.publications-filter-inline .pub-filter-btn.active {
  background: #e5e7eb;
  color: #4b5563;
}

.publications-filter-inline .pub-filter-btn.active:hover {
  background: #d1d5db;
  color: #374151;
}

/* Publications filter buttons */
.publications-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pub-filter-btn {
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0 0.5rem 0.25rem 0.5rem;
  border: none;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: crosshair;
  transition: background 0.2s, color 0.2s;
  text-transform: lowercase;
}

.pub-filter-btn:hover {
  background: #e5e7eb;
  color: #6b7280;
}

.pub-filter-btn.active {
  background: #e5e7eb;
  color: #4b5563;
}

.pub-filter-btn.active:hover {
  background: #d1d5db;
  color: #374151;
}

/* BibTeX content - always hidden (clip technique works at all breakpoints) */
.pub-horizontal-card .pub-horizontal-tags .work-bib-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pub-horizontal-card .pub-horizontal-tags .work-bib-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Publications grid wrapper and empty state */
.publications-grid-wrapper {
  position: relative;
  margin-bottom: 0;
}

.publications-section-wrapper .publications-grid.publications-grid-horizontal {
  margin-bottom: 0;
}

.publications-empty-state {
  margin: 0;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

/* Base horizontal layout - applies at all breakpoints */
.publications-section-wrapper .publications-grid.publications-grid-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Publications horizontal card: image left, details right, image 3:2 */
.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] {
  width: 100%;
}

.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-link {
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Placeholder-only: stretch image area to match title content height */
.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"]:has(.placeholder-image) .work-link {
  align-items: stretch;
}

.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"]:has(.placeholder-image) .work-image {
  aspect-ratio: unset;
}

/* Research /pubs: square thumb on the side (override placeholder unset + stretch) */
.publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"]:has(.placeholder-image) .work-link {
  align-items: flex-start;
}

.publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"]:has(.placeholder-image) .work-image {
  aspect-ratio: 1 / 1;
}

.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image {
  flex: 0 0 auto;
  width: 30%;
  max-width: 200px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
}

/* Selected publications: square thumbnails (same row layout as other horizontal lists, 1:1 image) */
.publications-section-wrapper .publications-section-container.publications-selected-only .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image,
.publications-section-wrapper .publications-section-container.publications-selected-only .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"]:has(.placeholder-image) .work-image {
  aspect-ratio: 1 / 1;
}

.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image img,
.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image .placeholder-image {
  border-radius: 8px;
}

.publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-title-below {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
}

@media (max-width: 768px) {
  .publications-subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
  }

  .publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-link {
    flex-direction: column;
  }

  /* Placeholder cards: same column flex as real thumbnails — avoid 1fr/1fr grid rows, which reserve a second row as tall as the image and leave a huge gap under the text */
  .publications-section-wrapper .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image {
    width: 100%;
    max-width: none;
  }

  /* /research/ listing: match other horizontal grids — full-width image on top, text below (not thumbnail + text in a row) */
  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-link {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image,
  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"]:has(.placeholder-image) .work-image {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
  }

  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image img,
  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.pub-horizontal-card .pub-horizontal-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.pub-horizontal-card .pub-horizontal-visual {
  flex: 0 0 auto;
}

.pub-horizontal-card .pub-horizontal-meta {
  flex: 1;
  min-width: 0;
}

/* Publications Section Wrapper - same width as main content */
@media (min-width: 769px) {
  .publications-section-wrapper {
    width: 100%;
    padding: 2rem 0;
    margin-top: 0;
  }

  .publications-section-wrapper .publications-section-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Wider publication blocks = fewer per row, more rows */
  .publications-section-wrapper .publications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .publications-section-wrapper .publications-grid .work-grid-item,
  .publications-section-wrapper .work-grid-item[data-type="pub"] {
    width: calc((100% - 1.5rem) / 2);
  }

  /* Research page: square thumbnail on the left, details on the right (horizontal row) */
  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-link {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image {
    flex: 0 0 auto;
    width: clamp(6rem, 18vw, 8.75rem);
    max-width: 200px;
    aspect-ratio: 1 / 1;
  }

  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image img,
  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"]:has(.placeholder-image) .work-image {
    aspect-ratio: 1 / 1;
  }

  .publications-section-wrapper.publications-page .publications-grid.publications-grid-horizontal .work-grid-item[data-type="pub"] .work-title-below {
    flex: 1;
    min-width: 0;
  }
}
/* Selected Works Wrapper - centered, horizontally scrollable with visible scrollbar */
@media (min-width: 769px) {
  .selected-works-wrapper {
    width: 100%;
    padding: 2rem 2rem;
    margin-top: 0;
    overflow: visible;
  }

  .selected-works-wrapper .selected-works-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow: visible;
  }

  .selected-works-wrapper .selected-works {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: visible;
    overflow-y: visible;
  }

  .selected-works-wrapper .selected-works .work-grid-item,
  .selected-works-wrapper .work-grid-item[data-type="project"],
  .selected-works-wrapper .work-grid-item[data-type="presentation"] {
    width: calc((48rem - 3rem) / 3);
    min-width: calc((48rem - 3rem) / 3);
    flex-shrink: 0;
  }
}
.selected-works-wrapper .work-grid-item[data-type="project"] .work-image,
.selected-works-wrapper .work-grid-item[data-type="presentation"] .work-image {
  aspect-ratio: unset;
  height: auto;
}

.selected-works-wrapper .work-grid-item[data-type="project"] .work-image img,
.selected-works-wrapper .work-grid-item[data-type="project"] .work-image .placeholder-image,
.selected-works-wrapper .work-grid-item[data-type="presentation"] .work-image img,
.selected-works-wrapper .work-grid-item[data-type="presentation"] .work-image .placeholder-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Under each tile in talks + selected works: show summary and description only */
.talks-section-wrapper .work-title-below > *:not(.work-tile-summary):not(.work-description),
.selected-works-wrapper .work-title-below > *:not(.work-tile-summary):not(.work-description) {
  display: none !important;
}

.talks-section-wrapper .work-description,
.selected-works-wrapper .work-description {
  display: block !important;
  font-size: 0.6875rem;
  color: #666;
  line-height: 1.35;
  margin: 0.25rem 0 0;
}

.talks-section-wrapper .work-tile-summary,
.selected-works-wrapper .work-tile-summary {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  font-weight: 500;
  color: #333;
  line-height: 1.35;
  margin: 0;
  width: 100%;
}

@media (max-width: 768px) {
  .publications-section-wrapper,
  .news-section-wrapper,
  .service-section-wrapper,
  .grants-section-wrapper,
  .talks-section-wrapper {
    width: 100%;
    padding: 1rem 0;
    margin-top: 1rem;
  }

  .talks-section-wrapper {
    padding: 0;
    margin-top: 0;
  }

  .news-section-wrapper {
    margin-top: 1.5rem;
  }

  .publications-section-wrapper .publications-section-container,
  .news-section-wrapper .news-section-container,
  .service-section-wrapper .service-section-container,
  .grants-section-wrapper .grants-section-container,
  .talks-section-wrapper .talks-section-container,
  .selected-works-wrapper .selected-works-container {
    max-width: 100%;
  }

  /* Masonry-style layout on mobile: two columns, items flow by height */
  .talks-section-wrapper .talks-grid {
    column-count: 2;
    column-gap: 1rem;
    display: block;
  }

  .talks-section-wrapper .talks-grid .work-grid-item,
  .talks-section-wrapper .work-grid-item[data-type="presentation"] {
    width: 100%;
    min-width: 0;
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    box-sizing: border-box;
  }

  .selected-works-wrapper .selected-works {
    column-count: 2;
    column-gap: 1rem;
    display: block;
  }

  .selected-works-wrapper .selected-works .work-grid-item,
  .selected-works-wrapper .work-grid-item[data-type="project"],
  .selected-works-wrapper .work-grid-item[data-type="presentation"] {
    width: 100%;
    min-width: 0;
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    box-sizing: border-box;
  }

  .selected-works-wrapper {
    width: 100%;
    padding: 0;
    margin-top: 1rem;
  }

  /* Works page: masonry on mobile (2 columns) */
  body.page-works .works-masonry-wrapper {
    width: 100%;
    padding: 1rem;
  }

  body.page-works .works-masonry-container {
    max-width: 100%;
  }

  body.page-works .works-masonry-grid {
    column-count: 2;
    column-gap: 1rem;
    display: block;
  }

  body.page-works .works-masonry-grid .work-grid-item {
    width: 100%;
    min-width: 0;
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    box-sizing: border-box;
  }

  /* Research page: stack columns on mobile */
  body.page-research main.research-two-column {
    flex-direction: column;
    padding: 1rem 0;
  }

  body.page-research .research-column-intro {
    width: 100%;
    min-width: 0;
  }

  body.page-research .research-column-pubs {
    width: 100%;
  }
}
/* Desktop: main content uses same width as nav (1rem 2rem) */
@media (min-width: 769px) {
  main.content {
    width: 100% !important;
    padding: 0;
    min-width: 769px;
  }

  .content-inner {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Publication pages: same width as publication-detail (800px) */
  .content-inner:has(.publication-detail) {
    max-width: 800px;
  }

  /* Works page: full viewport width */
  .content-works .content-inner {
    max-width: 100%;
  }

  body.page-works main.content {
    padding: 1rem 2rem;
  }

  body.page-works .desktop-nav {
    padding: 1rem 2rem;
  }

  body.page-works .desktop-nav .nav-links-section,
  body.page-works .desktop-nav .nav-buttons {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Works page: combined masonry layout (same width as main/publications: 48rem) */
  body.page-works .works-masonry-wrapper {
    padding: 1rem 2rem;
    max-width: 100%;
  }

  body.page-works .works-masonry-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
  }

  body.page-works .works-masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    display: block;
  }

  body.page-works .works-masonry-grid .work-grid-item {
    width: 100%;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-sizing: border-box;
  }

  body.page-works .works-masonry-grid .work-grid-item[data-type="project"] .work-image,
  body.page-works .works-masonry-grid .work-grid-item[data-type="presentation"] .work-image,
  body.page-works .works-masonry-grid .work-grid-item[data-type="pub"] .work-image {
    aspect-ratio: unset;
    height: auto;
  }

  body.page-works .works-masonry-grid .work-grid-item[data-type="project"] .work-image img,
  body.page-works .works-masonry-grid .work-grid-item[data-type="project"] .work-image .placeholder-image,
  body.page-works .works-masonry-grid .work-grid-item[data-type="presentation"] .work-image img,
  body.page-works .works-masonry-grid .work-grid-item[data-type="presentation"] .work-image .placeholder-image,
  body.page-works .works-masonry-grid .work-grid-item[data-type="pub"] .work-image img,
  body.page-works .works-masonry-grid .work-grid-item[data-type="pub"] .work-image .placeholder-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  body.page-works .works-masonry-grid .work-title-below > *:not(.work-tile-summary):not(.work-description) {
    display: none !important;
  }

  body.page-works .works-masonry-grid .work-description {
    display: block !important;
    font-size: 0.6875rem;
    color: #666;
    line-height: 1.35;
    margin: 0.25rem 0 0;
  }

  body.page-works .works-masonry-grid .work-tile-summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    line-height: 1.35;
    margin: 0;
    width: 100%;
  }

  /* Research page: same width as nav */
  body.page-research main.content {
    padding: 1rem 2rem;
  }

  body.page-research .content-inner {
    margin-left: auto;
    margin-right: auto;
  }

  /* Research page: top-down narrow layout (intro above, publications below) */
  body.page-research main.research-two-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    padding: 2rem 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  body.page-research .research-column-intro {
    width: 100%;
    min-width: 0;
  }

  body.page-research .research-column-intro .intro-section {
    margin-top: 0;
  }

  body.page-research .research-column-intro .intro-publications-filter {
    margin-top: 0.75rem;
  }

  body.page-research .research-column-pubs {
    width: 100%;
    min-width: 0;
  }

  body.page-research .research-column-pubs .publications-section-wrapper {
    padding: 0;
    max-width: 100%;
  }

  body.page-research .research-column-pubs .publications-section-container {
    max-width: 100%;
    padding: 0;
  }

  #main-content {
    width: 100% !important;
    min-width: 0;
  }

  .main-column {
    max-width: 100%;
    width: 100% !important;
    margin: 0;
    padding: 0 2rem;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    align-items: start;
  }

  .main-column main.content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .work-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #333;
  }

  .work-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .work-list .work-item {
    margin-bottom: 0.25rem !important;
    padding-left: 1.5rem;
    position: relative;
    width: 100%;
    max-width: none;
  }

  .work-list .work-item::before {
    content: "↳";
    position: absolute;
    left: 0;
    color: #666;
  }

  .work-list .work-item > span {
    color: #000;
    font-size: 1.25rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
  }

  .work-list .work-item .work-year {
    color: #888;
    font-size: 0.875rem;
    font-weight: 400;
    margin-left: 0.5rem;
  }

  .work-list .work-item.work-section-header {
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem !important;
  }

  .work-item.work-section-header::before {
    content: "↳";
  }

  .work-list .work-item.work-sub-item {
    padding-left: 3rem;
    margin-bottom: 0.25rem !important;
  }

  .work-list .work-item.work-sub-item::before {
    content: "↳";
    left: 2rem;
  }

  .work-item a {
    color: #666;
    text-decoration: underline;
    font-size: 1.25rem;
    line-height: 1.4;
    display: block;
    width: 100%;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
  }

  .work-item a:hover {
    color: #000;
  }

  .work-item .work-meta {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    width: 100%;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
/* Skip link (accessibility) */
.skip-link {
  position: fixed;
  top: -100%;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1d1d1d;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 9999;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: #64748b;
  transition: width 0.1s ease-out;
}

/* Navigation */
@media (min-width: 769px) {
  .nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
  }

  .nav-links-grid {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
  }

  .nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  .icon-link {
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: none;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 48px;
    background-color: #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
  }
  .text-link:hover {
    color: #2563eb;
  }
  .text-link span {
    font-size: 1rem;
    color: #666;
  }
}
@media (min-width: 769px) {
  .nav-buttons {
    gap: 1.5rem;
  }

  .text-link {
    padding: 0 1.5rem;
    height: 56px;
  }
  .text-link span {
    font-size: 1.125rem;
  }
}
@media (min-width: 1024px) {
  .nav-buttons {
    gap: 2rem;
  }

  .text-link {
    padding: 0 2rem;
    height: 64px;
  }
  .text-link span {
    font-size: 1.25rem;
  }
}
/* Buttons - Desktop */
@media (min-width: 769px) {
  .filter-btn, .works-nav-button {
    font-family: 'Hanken Grotesk', sans-serif !important;
    padding: 8px 16px;
    background-color: #dad7d7;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: crosshair;
    transition: all 0.2s ease;
  }

  .filter-btn:hover, .works-nav-button:hover {
    background-color: #e0e0e0;
    transform: none;
  }

  .filter-btn.active, .works-nav-button.active {
    background-color: #0078ff;
    color: white;
    border-color: #0078ff;
  }

  /* Cards */
  .project-card {
    display: block;
    width: 240px;
    margin-bottom: 16px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .pub-item {
    display: block;
    width: 240px;
    margin-bottom: 16px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .article-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  .article-card:hover {
    border-color: #d1d5db;
  }
}
/* Tags */
.tag,
.tag-overlay,
.tag-container,
.tag-container *,
.subject-tag,
.project-tag,
.project-type-tag,
.projtype-tag,
.work-venue-tag,
.work-tagline,
.work-tag-item,
.work-tags-overlay,
.work-tags-overlay *,
.work-tags-legend,
.work-tags-legend *,
.pub-tag,
.pub-venue-tag,
.tech-tag,
.article-type-tag,
.article-cite-tag,
.article-venue-tag,
.article-shape-tag,
.category-tag {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Keywords/subject-tags: standardize to lowercase across site */
.pub-tag,
.subject-tag:not(.venue-tag):not(.status-tag) {
  text-transform: lowercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  background-color: #f4f4f4;
  color: #666;
  transition: background-color 0.2s;
}
.tag:hover {
  background-color: #e0e0e0;
}
.tag[data-tag="repo"] {
  background-color: #e8f5e9;
  color: #2e7d32;
}
.tag[data-tag="pdf"] {
  background-color: #ffebee;
  color: #c62828;
}
.tag[data-tag="demo"] {
  background-color: #e3f2fd;
  color: #1565c0;
}
.tag[data-tag="video"] {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.tag-container {
  display: flex;
  gap: 8px;
  padding: 0 8px;
  margin: 8px 0 12px 0;
  flex-wrap: wrap;
}
.tag-container .project-tag {
  text-transform: lowercase;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
}
.tag-container .project-type-tag {
  background: #f87171;
  color: white;
}
.tag-container .project-year-tag {
  background: #E5E7EB;
  color: #374151;
}

@media (max-width: 768px) {
  .tag {
    font-size: 10px;
  }

  .projtype-tag {
    display: none;
  }
}
.tag-link {
  text-decoration: none;
}

/* Icons */
.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  vertical-align: middle;
  /* Icon color variations */
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-lg {
  width: 32px;
  height: 32px;
}
.icon-xl {
  width: 48px;
  height: 48px;
}
.icon-primary {
  fill: #0078ff;
}
.icon-secondary {
  fill: #333;
}

.tag-icon {
  margin-right: 4px;
  vertical-align: -2px;
}

mark {
  background-color: #ffce1b;
  color: #000;
}

/* Links */
.project-link,
.pub-image-link,
.pub-content,
.tag-link,
.post-card-link {
  text-decoration: none !important;
}
.project-link:hover,
.pub-image-link:hover,
.pub-content:hover,
.tag-link:hover,
.post-card-link:hover {
  text-decoration: none !important;
}

/* Ensure masonry link content doesn't have underlines */
.project-link *,
.pub-image-link *,
.pub-content *,
.post-card-link * {
  text-decoration: none !important;
}
.project-link *:hover,
.pub-image-link *:hover,
.pub-content *:hover,
.post-card-link *:hover {
  text-decoration: none !important;
}

@media (min-width: 769px) {
  /* Projects */
  .projects-grid {
    /* No display property, Masonry will handle layout */
  }

  .selected-project-card-bg-image {
    width: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
  }

  .project-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
  }

  .project-subtitle {
    font-size: 12px !important;
    color: #666;
    margin: 0;
  }

  .project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
  }

  .project-year {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    padding: 0 8px 8px;
  }

  /* Filter Controls */
  .filter-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
}
/* Projects List View - Desktop */
@media (min-width: 769px) {
  .projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .projects-list-scrollable {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
    /* Hide scrollbar permanently but keep scrolling */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
  }
  .projects-list-scrollable::-webkit-scrollbar {
    display: none;
    /* WebKit */
  }

  .proj-compact-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
  }

  .proj-compact-item:last-child {
    border-bottom: none;
  }

  .proj-compact-image {
    flex: 0 0 150px;
  }

  .proj-compact-image img,
  .placeholder-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
  }

  .proj-compact-content {
    flex: 1;
  }

  .proj-compact-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
  }

  .proj-compact-meta {
    font-size: 16px !important;
    color: #555;
    margin: 0 0 8px 0;
    line-height: 1.4;
  }

  .proj-compact-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  /* Publications */
  .pubs-list {
    /* No display property, Masonry will handle layout */
  }
}
.pub-image {
  width: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
}

.pub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-image .placeholder-image {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pub-image .placeholder-image .placeholder-svg {
  width: 40%;
  height: 40%;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  opacity: 1;
}

/* Notes page placeholder sizing */
.content-notes .placeholder-image {
  width: 100%;
  max-width: 100%;
  height: 200px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-notes .placeholder-image .placeholder-svg {
  width: 40%;
  height: auto;
  max-width: 200px;
  max-height: 160px;
}

.pub-content {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 769px) {
  .pub-venue-tag {
    font-size: 11px !important;
    color: #888;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 0 12px 0;
    display: inline-block;
    width: fit-content;
    font-weight: 500;
  }

  .pub-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.3;
  }
}
/* News item icon differentiation */
.pub-item[data-type="news"] .pub-date::before {
  content: "\f1ea";
  /* Font Awesome newspaper icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #999;
  /* Same color as the date */
}

/* Publication item icon differentiation */
.pub-item[data-type="pub"] .pub-meta::before {
  content: "\f15c";
  /* Font Awesome document icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #666;
  /* Same color as the meta text */
}

/* Presentation item icon differentiation */
.pub-item[data-type="presentation"] .pub-meta::before {
  content: "\f130";
  /* Font Awesome microphone icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #666;
  /* Same color as the meta text */
}

/* Compact publication listings (cards/list items) */
.pub-item .pub-authors {
  font-size: 12px;
  font-weight: 400;
  color: #444;
  margin: 0 0 2px 0;
}

.pub-item .pub-venue {
  font-size: 11px;
  color: #666;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 8px 0;
}

.pub-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Notes template: concept/keyword tags */
.content-notes .pub-tags {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.content-notes .pub-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: default;
}

.content-notes .pub-tag:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Notes template: BibTeX block */
.content-notes pre,
.content-notes pre code {
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.content-notes pre {
  background-color: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

/* Ensure the BibTeX container itself has a visible background,
 * regardless of whether the class is on a div or the code element. */
.content-notes .language-bibtex,
.content-notes pre code.language-bibtex {
  display: block;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* Publications Gallery */
.pub-compact-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: none;
  height: 100%;
}
.pub-compact-card:hover {
  transform: none;
  box-shadow: none;
}

.pub-compact-card:hover {
  transform: none;
}

/* Publications List */
.publications-list-section {
  margin-bottom: 2rem;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.publication-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: none;
}
.publication-card:hover {
  transform: none;
}

.publication-card-bg-image {
  height: 200px;
  background-color: #e0e0e0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  position: relative;
}

.publication-card-title {
  padding: 1rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: #f7f7f7;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.publication-tag {
  display: inline-block;
  border-radius: 4px;
  font-weight: 500;
}

.publication-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
  text-align: left;
}

.publication-authors {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.publication-link {
  color: inherit;
  text-decoration: none;
}
.publication-link:hover {
  text-decoration: underline;
}

.pub-compact-item {
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.pub-compact-item:last-child {
  border-bottom: none;
}

.pub-compact-image {
  flex: 0 0 120px;
}

.pub-compact-content {
  flex: 1;
}

.pub-compact-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.pub-compact-meta {
  font-size: 16px !important;
  margin-bottom: 0px !important;
  color: #555;
  margin: 0 0 8px 0;
}

.pub-compact-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pub-compact-authors {
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #333;
}

.pub-compact-venue {
  font-size: 12px;
  font-style: italic;
  margin: 0 0 4px 0;
  color: #666;
}

.pub-compact-year {
  font-size: 12px;
  margin: 0 0 12px 0;
  color: #666;
}

/* Compact Link */
.compact-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #0078ff;
  text-decoration: none;
}

.compact-link:hover {
  color: #2563eb;
  text-decoration: none;
}

/* Responsive Publications */
@media (max-width: 768px) {
  .pub-item {
    flex-direction: column;
    gap: 16px;
  }

  .pub-image {
    flex: 0 0 auto;
  }

  .publications-gallery {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .pub-compact-item {
    flex-direction: column;
    gap: 8px;
  }

  .pub-compact-image {
    flex: 0 0 auto;
  }

  .pub-compact-image img,
  .placeholder-image {
    width: 100%;
    height: 120px;
  }
}
/* News - Desktop */
@media (min-width: 769px) {
  .news-desktop-section {
    width: 100%;
    margin: 32px 0;
    display: block;
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  .news-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
  }
  .news-item-link:hover .news-item {
    background-color: #f8f9fa;
    transform: none;
  }

  .news-item {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: none;
  }
  .news-item:hover {
    transform: none;
  }

  .news-item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .news-date {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
  }

  .news-title-container {
    flex: 1;
  }

  .news-title {
    font-size: 1rem !important;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
  }

  .news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
  }

  .conference-link {
    color: #2563eb;
    text-decoration: none;
  }
  .conference-link:hover {
    text-decoration: underline;
  }

  .news-icon {
    font-size: 1rem;
  }
  .news-icon.award {
    color: #2563eb;
  }
  .news-icon.publication {
    color: #dc2626;
  }
  .news-icon.talk {
    color: #059669;
  }
  .news-icon.education {
    color: #7c3aed;
  }
  .news-icon.art {
    color: #9333ea;
  }

  .news-link-icon {
    font-size: 0.875rem;
    color: #2563eb;
  }

  .mobile-news-section {
    display: none;
  }
}
@media (min-width: 769px) and (min-width: 769px) and (max-width: 1023px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Pagination */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.proj-pagination-indicators,
.pub-pagination-indicators {
  display: flex;
  gap: 4px;
}

.proj-indicator,
.pub-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #e0e0e0;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.pub-indicator.active,
.proj-indicator.active {
  background-color: #5c5c5c;
}

/* Footer - same padding as navbar (.desktop-nav uses 1rem 2rem) */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: none;
  background: transparent;
  font-size: 0.5rem;
}

@media (min-width: 769px) {
  footer {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
.footer-links {
  display: flex;
  gap: 16px;
  margin-right: 20px;
}
.footer-links a {
  color: #333;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

.powered-by-text {
  font-size: 0.4375rem;
  color: #333;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 1000;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }

  .mobile-nav .nav-links-section {
    max-width: 100%;
    padding: 0;
  }

  .mobile-nav .nav-links-grid {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .mobile-nav .nav-left {
    flex: 0 1 auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mobile-nav .nav-right {
    order: 0;
    margin-left: auto;
  }

  .desktop-top-nav {
    display: none;
  }

  .main-content-row {
    flex-direction: column;
  }

  body {
    padding-bottom: 6rem;
    /* Space for fixed mobile nav so content stays visible */
  }
}
@media (min-width: 769px) {
  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: visible;
  }

  .main-column {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 27px;
    align-items: start;
    max-width: 100%;
    width: 100%;
    margin: 0;
    height: 100%;
    overflow: visible;
    outline: none;
    border: none;
    padding: 0;
    padding-top: 0px;
    /* Account for fixed navigation height */
  }

  /* Tablet and smaller desktop: add side padding so content doesn't touch edges */
}
@media (min-width: 769px) and (min-width: 769px) and (max-width: 1280px) {
  .main-column {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 769px) {
  .desktop-nav {
    z-index: 1000;
    background: transparent;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }

  main.content {
    overflow: visible;
    outline: none;
    border: none;
    width: 100%;
  }

  /* Works panel specific styles */
  .right-nav .works-nav-button {
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #4b5563;
    background: #e5e7eb;
    border: none;
    cursor: crosshair;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .right-nav .works-nav-button i {
    font-size: 0.7rem;
  }

  /* Filter type specific colors */
  .right-nav .works-nav-button[data-filter="all"] {
    background: #e5e7eb;
    color: #6b7280;
  }

  .right-nav .works-nav-button[data-filter="all"]:hover {
    background: #d1d5db;
    color: #374151;
  }

  .right-nav .works-nav-button[data-filter="all"].active {
    background: #6b7280;
    color: white;
  }

  .right-nav .works-nav-button[data-filter="project"] {
    background: #fef3c7;
    color: #d97706;
  }

  .right-nav .works-nav-button[data-filter="project"]:hover {
    background: #fde68a;
    color: #b45309;
  }

  .right-nav .works-nav-button[data-filter="project"].active {
    background: #d97706;
    color: white;
  }

  .right-nav .works-nav-button[data-filter="pub"] {
    background: #dbeafe;
    color: #2563eb;
  }

  .right-nav .works-nav-button[data-filter="pub"]:hover {
    background: #bfdbfe;
    color: #1d4ed8;
  }

  .right-nav .works-nav-button[data-filter="pub"].active {
    background: #2563eb;
    color: white;
  }

  .right-nav .works-nav-button[data-filter="news"] {
    background: #fce7f3;
    color: #be185d;
  }

  .right-nav .works-nav-button[data-filter="news"]:hover {
    background: #fbcfe8;
    color: #9d174d;
  }

  .right-nav .works-nav-button[data-filter="news"].active {
    background: #be185d;
    color: white;
  }

  .right-nav .works-nav-button[data-filter="presentation"] {
    background: #f0fdf4;
    color: #16a34a;
  }

  .right-nav .works-nav-button[data-filter="presentation"]:hover {
    background: #dcfce7;
    color: #15803d;
  }

  .right-nav .works-nav-button[data-filter="presentation"].active {
    background: #16a34a;
    color: white;
  }

  /* Mobile filter button styling */
  .mobile-works-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    cursor: crosshair;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .mobile-works-filter-btn i {
    font-size: 0.8rem;
  }

  .mobile-works-filter-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
  }

  .mobile-works-filter-btn.active {
    background: #2563eb;
    color: white;
  }

  /* Mobile filter type specific colors */
  .mobile-works-filter-btn[data-filter="all"] {
    background: #f3f4f6;
    color: #6b7280;
  }

  .mobile-works-filter-btn[data-filter="all"]:hover {
    background: #e5e7eb;
    color: #374151;
  }

  .mobile-works-filter-btn[data-filter="all"].active {
    background: #6b7280;
    color: white;
  }

  .mobile-works-filter-btn[data-filter="project"] {
    background: #fef3c7;
    color: #d97706;
  }

  .mobile-works-filter-btn[data-filter="project"]:hover {
    background: #fde68a;
    color: #b45309;
  }

  .mobile-works-filter-btn[data-filter="project"].active {
    background: #d97706;
    color: white;
  }

  .mobile-works-filter-btn[data-filter="pub"] {
    background: #dbeafe;
    color: #2563eb;
  }

  .mobile-works-filter-btn[data-filter="pub"]:hover {
    background: #bfdbfe;
    color: #1d4ed8;
  }

  .mobile-works-filter-btn[data-filter="pub"].active {
    background: #2563eb;
    color: white;
  }

  .mobile-works-filter-btn[data-filter="news"] {
    background: #fce7f3;
    color: #be185d;
  }

  .mobile-works-filter-btn[data-filter="news"]:hover {
    background: #fbcfe8;
    color: #9d174d;
  }

  .mobile-works-filter-btn[data-filter="news"].active {
    background: #be185d;
    color: white;
  }

  .mobile-works-filter-btn[data-filter="presentation"] {
    background: #f0fdf4;
    color: #16a34a;
  }

  .mobile-works-filter-btn[data-filter="presentation"]:hover {
    background: #dcfce7;
    color: #15803d;
  }

  .mobile-works-filter-btn[data-filter="presentation"].active {
    background: #16a34a;
    color: white;
  }

  .works-panel .pubs-list {
    column-count: 3;
    column-gap: 16px;
    width: 100%;
  }

  .works-panel .pub-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
    break-inside: avoid;
  }

  .works-panel .pub-image {
    width: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f8f9fa;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
  }

  .works-panel .pub-image img,
  .works-panel .placeholder-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .works-panel .pub-content {
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #f8f9fa;
    border-radius: 0 0 4px 4px;
  }

  .works-panel .pub-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
  }

  .works-panel .pub-item[data-type="news"] .pub-title {
    font-weight: 400;
  }

  .works-panel .pub-date {
    font-size: 11px;
    color: #999;
    line-height: 1.2;
    margin-bottom: 4px;
    text-decoration: none !important;
  }

  .works-panel .pub-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    text-decoration: none !important;
  }

  .works-panel .placeholder-image {
    width: 100%;
    height: 120px;
    background: #fafafa;
    border-radius: 16px;
    display: block;
  }

  .main-content-row {
    display: flex;
    flex: 1;
    overflow: visible;
  }

  .container {
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .content {
    flex: 1;
    min-height: 0;
    overflow: visible;
    scroll-behavior: smooth;
  }
}
@media (min-width: 769px) {
  .main-content {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .publications-section-container {
    margin: 0;
    width: 100%;
  }
  .publications-section-container .publications-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    overflow-x: visible;
  }

  /* Selected publications: only 2 font sizes (0.875rem primary, 0.75rem secondary) */
  .publications-selected-only .work-citation {
    display: none !important;
  }
  .publications-selected-only .work-location-overlay .work-location {
    font-size: 0.75rem !important;
  }
  .publications-selected-only .work-title-below,
  .publications-selected-only .work-title-below .work-title-text,
  .publications-selected-only .work-title-below .work-title-subtitle,
  .publications-selected-only .work-title-below .work-tagline,
  .publications-selected-only .work-title-below .work-authors-below,
  .publications-selected-only .work-title-below .work-citation,
  .publications-selected-only .work-title-below .work-citation *,
  .publications-selected-only .work-title-below .work-description,
  .publications-selected-only .work-title-below .work-role,
  .publications-selected-only .work-title-below .work-location-below {
    font-size: 0.875rem !important;
  }
  .publications-selected-only .work-title-below .work-doi-btn,
  .publications-selected-only .work-title-below .work-bib-btn,
  .publications-selected-only .work-title-below .subject-tag {
    font-size: 0.75rem !important;
  }
}
@media (min-width: 769px) and (max-width: 768px) {
  .publications-selected-only .work-location-overlay .work-location {
    font-size: 0.75rem !important;
  }
  .publications-selected-only .work-title-below,
  .publications-selected-only .work-title-below .work-title-text,
  .publications-selected-only .work-title-below .work-title-subtitle,
  .publications-selected-only .work-title-below .work-tagline,
  .publications-selected-only .work-title-below .work-authors-below,
  .publications-selected-only .work-title-below .work-citation,
  .publications-selected-only .work-title-below .work-citation *,
  .publications-selected-only .work-title-below .work-description,
  .publications-selected-only .work-title-below .work-role,
  .publications-selected-only .work-title-below .work-location-below {
    font-size: 0.875rem !important;
  }
  .publications-selected-only .work-title-below .work-doi-btn,
  .publications-selected-only .work-title-below .work-bib-btn,
  .publications-selected-only .work-title-below .subject-tag {
    font-size: 0.75rem !important;
  }
}

@media (min-width: 769px) {
  .selected-works-container {
    margin: 0;
    width: 100%;
  }
  .selected-works-container .work-tags-legend {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 0.75rem 0;
  }
  .selected-works-container .work-tags-legend .work-tag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .selected-works-container .work-tags-legend .work-tag-item > div {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .selected-works-container .work-tags-legend .work-tag-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.7;
    display: block;
  }
  .selected-works-container .work-tags-legend .work-tag-item span {
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
  }
  .selected-works-container .selected-works + .intro-block {
    text-align: right !important;
  }
  .selected-works-container .selected-works + .intro-block p {
    text-align: right !important;
  }
  .selected-works-container .selected-works + .intro-block a .icon,
  .selected-works-container .selected-works + .intro-block a .icon-layer-group {
    color: #0078ff;
    transition: color 0.2s ease;
  }
  .selected-works-container .selected-works + .intro-block a:hover .icon,
  .selected-works-container .selected-works + .intro-block a:hover .icon-layer-group {
    color: #0066cc;
  }

  .selected-works-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1d;
    margin: 0 0 1.5rem 0;
  }

  .selected-works,
  .publications-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    overflow-x: visible;
  }

  .project-grid-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 auto;
    min-width: 0;
    width: calc(10% - 1.125rem);
  }

  .work-grid-item {
    background: transparent;
    flex: 0 0 auto;
    min-width: 0;
    width: calc(10% - 1.125rem);
  }

  .publications-grid .work-grid-item,
  .work-grid-item[data-type="pub"] {
    width: calc(14% - 1.125rem);
  }

  .work-grid-item[data-type="project"],
  .work-grid-item[data-type="presentation"] {
    width: calc(14% - 1.125rem);
  }

  .selected-works-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: #e5e7eb;
    border-radius: 0.5rem;
    color: #444;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    flex: 0 0 auto;
  }
  .selected-works-button:hover {
    background: #d1d5db;
    color: #222;
  }
  .selected-works-button span {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: lowercase;
    white-space: nowrap;
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .selected-works,
  .publications-grid {
    gap: 1.5rem;
  }

  .publications-grid .work-grid-item,
  .work-grid-item[data-type="pub"] {
    width: calc((100% - 3rem) / 3);
  }

  .work-grid-item[data-type="project"],
  .work-grid-item[data-type="presentation"] {
    width: calc((100% - 3rem) / 3);
  }

  .work-grid-item {
    width: calc((100% - 3rem) / 3);
  }

  .project-grid-item {
    width: calc((100% - 3rem) / 3);
  }
}
@media (max-width: 768px) {
  .selected-works-container {
    margin: 1rem 0 0 0;
  }
  .selected-works-container .work-tags-legend {
    gap: 1rem;
  }
  .selected-works-container .work-tags-legend .work-tag-item > div {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
  }
  .selected-works-container .work-tags-legend .work-tag-item span {
    font-size: 0.8125rem;
  }
  .selected-works-container .intro-block {
    text-align: right;
  }
  .selected-works-container .selected-works + .intro-block a .icon,
  .selected-works-container .selected-works + .intro-block a .icon-layer-group {
    color: #0078ff;
    transition: color 0.2s ease;
  }
  .selected-works-container .selected-works + .intro-block a:hover .icon,
  .selected-works-container .selected-works + .intro-block a:hover .icon-layer-group {
    color: #0066cc;
  }

  .selected-works-header {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }

  .selected-works,
  .publications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow-x: visible;
  }

  .project-grid-item {
    width: calc(50% - 0.5rem);
    min-width: 0;
  }

  .work-grid-item {
    width: calc(50% - 0.5rem);
    min-width: 0;
  }

  .publications-grid .work-grid-item,
  .work-grid-item[data-type="pub"],
  .work-grid-item[data-type="thesis"] {
    width: calc(50% - 0.5rem);
  }
}
.work-meta-row {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  margin: 0;
}

.work-tags-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 11;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 60%;
}
.work-tags-overlay .work-tag-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.95;
  display: block;
}
.work-tags-overlay .work-tag-icon-wrapper {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 3px;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .work-tags-overlay {
    top: 0.5rem;
    left: 0.5rem;
    gap: 0.375rem;
    max-width: 50%;
  }
  .work-tags-overlay .work-tag-icon-wrapper {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
    padding: 2px;
  }
}

.work-location-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 11;
}
.work-location-overlay .work-location {
  font-size: 0.75rem;
  font-weight: 400;
  color: #fff;
  text-align: right;
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (max-width: 768px) {
  .work-location-overlay {
    top: 0.5rem;
    right: 0.5rem;
  }
  .work-location-overlay .work-location {
    font-size: 0.6875rem;
  }
}

.selected-works-container .work-grid-item:hover .work-location-overlay .work-location {
  opacity: 1;
}

.selected-works-container .work-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline !important;
  visibility: visible !important;
}
@media (max-width: 768px) {
  .selected-works-container .work-label {
    font-size: 0.6875rem;
  }
}

.selected-works-container .work-location {
  font-size: 0.75rem;
  font-weight: 400;
  color: #fff;
  text-align: right;
  display: inline !important;
  visibility: visible !important;
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (max-width: 768px) {
  .selected-works-container .work-location {
    font-size: 0.6875rem;
  }
}

.selected-works-container .work-grid-item:hover .work-location {
  opacity: 1;
}

.project-link,
.work-link {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
  position: relative;
}

.work-link:hover {
  text-decoration: none !important;
}

.work-link:hover .work-title {
  text-decoration: none !important;
}

.work-link * {
  text-decoration: none !important;
}
.work-link *:hover {
  text-decoration: none !important;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-image .placeholder-image {
  width: 100%;
  height: 100%;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
}

.work-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  position: relative;
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-image .work-image-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
}
.work-image .work-image-grid .work-image-grid-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.work-image .work-image-grid .work-image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-grid-item[data-type="pub"] .work-image, .work-grid-item[data-type="thesis"] .work-image, .work-grid-item[data-type="project"] .work-image, .work-grid-item[data-type="presentation"] .work-image {
  aspect-ratio: 3 / 2;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}
.work-grid-item[data-type="pub"] .work-image .work-image-grid, .work-grid-item[data-type="thesis"] .work-image .work-image-grid, .work-grid-item[data-type="project"] .work-image .work-image-grid, .work-grid-item[data-type="presentation"] .work-image .work-image-grid {
  border-radius: 8px 8px 0 0;
}
.work-grid-item[data-type="pub"]:has(.placeholder-image) .work-image, .work-grid-item[data-type="thesis"]:has(.placeholder-image) .work-image {
  aspect-ratio: unset;
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: filter 0.2s ease;
}
.work-grid-item[data-type="pub"] .work-image img, .work-grid-item[data-type="thesis"] .work-image img {
  border-radius: 8px 8px 0 0;
}
.work-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  border-radius: 8px;
  pointer-events: none;
  transition: background 0.2s ease;
  z-index: 5;
}
.work-image .placeholder-image {
  width: 100%;
  height: 100%;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
  border-radius: 8px;
  position: relative;
}
.work-image .placeholder-image .placeholder-svg {
  width: 40%;
  height: 40%;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  opacity: 1;
}
.work-grid-item[data-type="pub"] .work-image .placeholder-image, .work-grid-item[data-type="thesis"] .work-image .placeholder-image {
  border-radius: 8px 8px 0 0;
}

.work-grid-item.has-white-text:hover .work-image::after {
  background: rgba(255, 255, 255, 0.3);
}

.work-grid-item.has-black-text:hover .work-image::after {
  background: rgba(0, 0, 0, 0.3);
}

.work-title-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: #fff;
  text-decoration: none;
  z-index: 10;
}
@media (max-width: 768px) {
  .work-title-overlay {
    font-size: 0.875rem;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }
}

.work-grid-item[data-type="pub"] .work-title-overlay,
.work-grid-item[data-type="presentation"] .work-title-overlay {
  font-size: 0.75rem !important;
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (max-width: 768px) {
  .work-grid-item[data-type="pub"] .work-title-overlay,
  .work-grid-item[data-type="presentation"] .work-title-overlay {
    font-size: 0.75rem !important;
  }
}

.work-grid-item[data-type="pub"]:hover .work-title-overlay,
.work-grid-item[data-type="presentation"]:hover .work-title-overlay {
  opacity: 1;
}

.work-venue-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
  .work-venue-tag {
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.6875rem;
    padding: 0.2rem 0.4rem;
  }
}

.work-author-label {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.2s ease;
}
@media (max-width: 768px) {
  .work-author-label {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.6875rem;
  }
}

.work-grid-item[data-type="pub"]:hover .work-author-label {
  opacity: 0;
}

.work-title-below {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1d1d1d;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* DOI / Bib / PDF links - uppercase, no outline, neutral */
}
.work-title-below .work-title-text {
  font-weight: 600;
  line-height: 1.4;
}
.work-title-below .work-title-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  margin-top: -0.25rem;
}
.work-title-below .work-tagline {
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: italic;
  color: #888;
  line-height: 1.4;
  margin-top: 0.375rem;
  margin-bottom: 0.5rem;
}
.work-title-below .work-authors-below {
  font-size: 0.75rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}
.work-title-below .work-authors-below strong {
  color: #1d1d1d;
  font-weight: 600;
}
.work-title-below .work-citation {
  font-size: 0.6875rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #666;
  line-height: 1.4;
  margin-top: 0.25rem;
}
.work-title-below .work-citation,
.work-title-below .work-citation * {
  font-weight: 400 !important;
  font-style: italic !important;
}
.work-title-below .work-description {
  font-size: 0.75rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  margin-top: 0.25rem;
}
.work-title-below .work-role {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #888;
  line-height: 1.4;
  margin-top: 0.25rem;
  font-style: italic;
}
.work-title-below .work-location-below {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #888;
  line-height: 1.4;
  margin-top: 0.125rem;
}
.work-title-below .work-doi-btn,
.work-title-below .work-bib-btn,
.work-title-below .work-pdf-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  padding: 0.125rem 0.375rem;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  cursor: crosshair;
  font-family: inherit;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, text-decoration 0.2s ease;
}
.work-title-below .work-doi-btn {
  text-decoration: none;
}
.work-title-below .work-doi-btn:hover,
.work-title-below .work-bib-btn:hover,
.work-title-below .work-pdf-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}
.work-title-below .work-doi-btn:hover {
  text-decoration: underline;
}
.work-title-below .work-bib-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.work-title-below .work-bib-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.work-title-below .work-venue-tags,
.work-title-below .work-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.work-title-below .work-venue-tags .subject-tag,
.work-title-below .work-subject-tags .subject-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: #555;
  text-transform: lowercase;
  padding: 0.125rem 0.375rem;
  background: #e5e5e5;
  border-radius: 0.25rem;
}
.work-title-below .work-venue-tags .subject-tag.status-under-review,
.work-title-below .work-subject-tags .subject-tag.status-under-review {
  background: #fef3c7;
  color: #b45309;
  font-weight: 500;
}
.work-title-below .work-venue-tags .subject-tag.status-conditionally-accepted,
.work-title-below .work-subject-tags .subject-tag.status-conditionally-accepted {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 500;
}
.work-title-below .work-venue-tags .subject-tag.venue-tag,
.work-title-below .work-subject-tags .subject-tag.venue-tag {
  text-transform: none;
  background: #e5e5e5;
  color: #555;
}
.work-title-below .work-venue-tags .paper-keyword-tag,
.work-title-below .work-subject-tags .paper-keyword-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
  text-transform: lowercase;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid #e0e0e0;
}
.work-title-below .work-venue-tags {
  margin-top: 0.5rem;
}
.work-title-below .work-subject-tags {
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .work-title-below {
    font-size: 0.8125rem;
    padding: 0.625rem 0;
    gap: 0.375rem;
  }
  .work-title-below .work-title-text {
    font-size: 0.8125rem;
  }
  .work-title-below .work-title-subtitle {
    font-size: 0.6875rem;
    line-height: 1.4;
    margin-top: -0.25rem;
  }
  .work-title-below .work-tagline {
    font-size: 0.75rem;
    margin-top: 0.3125rem;
    margin-bottom: 0.375rem;
  }
  .work-title-below .work-authors-below {
    font-size: 0.6875rem;
  }
  .work-title-below .work-venue-tags,
  .work-title-below .work-subject-tags {
    gap: 0.375rem;
  }
  .work-title-below .work-venue-tags .subject-tag,
  .work-title-below .work-subject-tags .subject-tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.3125rem;
  }
  .work-title-below .work-venue-tags .paper-keyword-tag,
  .work-title-below .work-subject-tags .paper-keyword-tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.3125rem;
  }
  .work-title-below .work-venue-tags {
    margin-top: 0.375rem;
  }
  .work-title-below .work-subject-tags {
    margin-top: 0.375rem;
  }
}

.work-grid-item[data-type="pub"] .work-link,
.work-grid-item[data-type="thesis"] .work-link {
  display: flex;
  flex-direction: column;
}

.work-grid-item[data-type="pub"],
.work-grid-item[data-type="thesis"] {
  display: flex;
  flex-direction: column;
}

.work-date-label {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.2s ease;
}
@media (max-width: 768px) {
  .work-date-label {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.6875rem;
  }
}

.work-grid-item[data-type="presentation"]:hover .work-date-label {
  opacity: 0;
}

.project-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.work-content {
  padding: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  color: #1d1d1d;
}

.work-title {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: #1d1d1d;
  text-decoration: none;
}

.project-meta {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .introduction .hello-text {
    display: block;
    margin-bottom: 1rem;
  }

  .introduction .mobile-hello-text {
    display: none;
  }

  .introduction .mobile-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .projects-section {
    display: none;
  }

  .mobile-projects-section,
  .mobile-publications-section,
  .mobile-experience-section,
  .mobile-sections {
    display: block;
    width: 100%;
  }

  .introduction {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1rem;
    padding-top: 0 !important;
  }

  .mobile-projects-section h2,
  .mobile-publications-section h2,
  .mobile-experience-section h2 {
    margin-bottom: 0.5rem;
  }

  .profile-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .profile-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .profile-text {
    margin-bottom: auto;
  }

  .profile-name {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .profile-title {
    font-size: 0.875rem;
    color: #666;
  }

  .profile-location {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
  }

  .profile-email {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
  }

  .profile-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #f3f4f6;
  }

  .icon-link {
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: none;
  }

  .desktop-buttons {
    display: none !important;
  }

  .mobile-buttons {
    display: flex !important;
  }

  .profile-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .publications-desktop {
    display: none !important;
  }

  .publications-section {
    display: none !important;
  }

  footer {
    margin-top: 0;
    padding: 16px 0 2rem 0;
    border-top: none;
    width: 100%;
  }
  footer p {
    color: #999;
    font-size: 0.8125rem;
  }

  .footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .footer-links a:hover {
    color: #333;
  }

  .powered-by-text {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
  }

  .desktop-profile {
    display: none !important;
  }

  .mobile-profile {
    display: flex !important;
  }

  .main-content {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
}
@media (min-width: 769px) {
  .mobile-projects-section,
  .mobile-publications-section,
  .mobile-experience-section {
    display: none;
  }

  .introduction .mobile-hello-text,
  .introduction .mobile-title {
    display: none;
  }

  .introduction {
    margin-top: 0;
    padding-top: 0 !important;
    height: auto;
    min-height: 0;
  }

  .profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
  }

  .profile-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
  }

  .profile-email {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
  }

  .introduction .hello-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .profile-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0 0 0;
  }

  .profile-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .profile-text {
    margin-bottom: auto;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #f3f4f6;
  }

  .icon-link {
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: none;
  }

  .desktop-buttons {
    display: none !important;
  }

  .mobile-buttons {
    display: none !important;
  }

  .profile-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .mobile-only {
    display: none !important;
  }

  footer {
    position: static;
    width: 100%;
    background: transparent;
    padding: 0 2rem 2rem 2rem;
    border-top: none;
    text-align: center;
    font-size: 0.875rem;
  }
  footer p {
    color: #999;
    font-size: 0.8125rem;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .footer-links a:hover {
    color: #333;
  }

  .powered-by-text {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
  }

  .mobile-profile {
    display: none !important;
  }

  .desktop-profile {
    display: flex !important;
  }
}
/* Article Gallery Styles - Desktop */
@media (min-width: 769px) {
  .article-gallery {
    margin: 3rem 0;
    width: 100%;
  }

  .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1d1d1d;
    text-align: left;
  }

  .articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .article-content {
    flex: 1;
  }

  .article-image {
    flex-shrink: 0;
    width: 120px;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    overflow: hidden;
    align-self: stretch;
  }

  .article-image:empty {
    background: #f3f4f6;
  }

  .article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
  }

  .article-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .article-title a {
    color: #1d1d1d;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .article-title a:hover {
    color: #2563eb;
  }

  .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
    align-items: center;
  }

  .article-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
  }

  .article-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .section-divider {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 3rem 0 2rem 0;
    opacity: 0.6;
  }

  .article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
  }

  .article-cite-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    font-family: 'Courier New', monospace;
  }

  .article-venue-tag {
    background: #f0f0f0;
    color: #888;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
  }

  .article-shape-tag {
    padding: 0.25rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
  }

  .article-type-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
  }

  /* Publication Type Colors */
  .article-type-tag[data-type="Position Paper"] {
    background: #fff3e0;
    color: #f57c00;
  }

  .article-type-tag[data-type="Demonstration"] {
    background: #e8f5e8;
    color: #2e7d32;
  }

  .article-type-tag[data-type="Full Paper"] {
    background: #e3f2fd;
    color: #1976d2;
  }

  .article-type-tag[data-type="Late-Breaking Poster"] {
    background: #fce4ec;
    color: #c2185b;
  }

  .article-type-tag[data-type="Thesis"] {
    background: #f3e5f5;
    color: #7b1fa2;
  }

  /* Citation shape colors - no default filter */
  .article-cite-tag .citation-shape {
    /* No filter - will use individual colors below */
  }

  /* All citation shapes are grey */
  .article-shape-tag .citation-shape {
    filter: brightness(0) saturate(100%) invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  }

  .category-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
  }

  .venue-full {
    color: #666;
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    flex: 1;
  }

  .article-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.75rem;
  }

  .article-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #e5e7eb;
    color: #666 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    border: none;
    outline: none;
  }

  .read-more:hover {
    background: #d1d5db;
    color: #222 !important;
    text-decoration: none !important;
  }

  .cite-button {
    background-color: #e5e7eb;
    color: #666 !important;
    border: none;
    outline: none;
  }

  .cite-button:hover {
    background: #d1d5db;
    color: #222 !important;
    text-decoration: none !important;
  }

  .view-all-articles {
    text-align: center;
    margin-top: 2rem;
  }

  .view-all-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
  }

  .view-all-link:hover {
    background: #e2e8f0;
    color: #1f2937;
  }
}
/* Mobile styles for article gallery */
@media (max-width: 768px) {
  .article-gallery {
    margin: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .articles-list {
    gap: 1rem;
  }

  .article-card {
    padding: 1.25rem;
  }

  .article-title {
    font-size: 1.125rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* Horizontal divider between intro and publications list */
.intro-publications-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
  width: 100%;
}

.intro-publications-divider.research-in-progress-divider {
  margin: 1.5rem 0 2rem;
}

/* /research/ — tentative threads before the papers list */
.research-in-progress {
  margin-top: 0;
  margin-bottom: 0;
}

.research-in-progress-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: normal;
  text-transform: lowercase;
  color: #333;
}

.research-in-progress-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.research-in-progress-item {
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.5;
  color: #333;
  margin-bottom: 0.5rem;
}
.research-in-progress-item:last-child {
  margin-bottom: 0;
}
.research-in-progress-item p {
  margin: 0;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
.research-in-progress-item a {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.research-in-progress-item a:hover {
  color: #000;
}

.intro-section .intro-subsection-item,
.intro-section .intro-subsection-item-content,
.intro-section .intro-subsection-item p,
.intro-section .intro-research-lead .intro-subsection-item-content,
.intro-section .intro-background .intro-subsection-item-content,
.intro-section .intro-block p,
.intro-section p {
  font-size: 1rem !important;
  font-weight: 350 !important;
  line-height: 1.5 !important;
}

@media (min-width: 769px) {
  .intro-section {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding-bottom: 0;
  }
  .intro-section a {
    color: #666;
    text-decoration: underline;
    transition: color 0.2s ease;
  }
  .intro-section a:hover {
    color: #000;
    text-decoration: underline;
  }
  .intro-section p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: left;
  }
  .intro-section .hello-text {
    font-size: 1.1rem !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .intro-section .hello-text a {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: crosshair;
  }

  .intro-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
  }

  .intro-content {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .intro-content .introduction {
    height: auto !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .intro-meta-bottom {
    margin-top: 0.25rem;
  }

  .intro-image {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
    overflow: hidden;
  }

  .intro-placeholder-image {
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 1 !important;
    border-radius: 0.5rem !important;
  }

  .intro-block {
    margin-bottom: 0;
    text-align: left;
  }
  .intro-block p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: left;
  }

  .intro-university {
    font-size: 1rem;
    color: #666;
    margin-top: 0.15rem;
    font-weight: 400;
  }
}
.intro-name-pronouns {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .intro-name-pronouns {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .intro-name {
    font-size: 1rem;
  }

  .intro-meta {
    font-size: 0.875rem;
    color: #666;
  }

  .intro-location-inline {
    display: none;
  }

  .intro-location-bottom {
    display: none;
  }
}
@media (min-width: 769px) {
  .intro-location-inline {
    display: none;
  }

  .intro-location-bottom {
    display: block;
  }
}
.intro-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
  line-height: 1.3;
}

.intro-name-above {
  margin-bottom: 0.25rem;
}
.intro-name-above .intro-name {
  font-size: 1.875rem;
  margin-bottom: 0;
}

.intro-location {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.intro-names-alt {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.intro-names-divider {
  margin: 0 0.35rem;
  color: #999;
  user-select: none;
}

.intro-name-pronouns .intro-meta {
  margin-bottom: 0;
}

.intro-meta {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.intro-pronouns {
  font-weight: 500;
}

.intro-email-line {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.intro-email {
  color: #666;
}

.intro-block + .intro-block p {
  text-indent: 0.75em;
}
.intro-block + .intro-block p .fas, .intro-block + .intro-block p .fab, .intro-block + .intro-block p i {
  text-indent: 0.25rem;
}

.intro-image-name-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

@media (min-width: 769px) {
  .intro-image-name-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}
.intro-image-research-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.intro-image-research-row.intro-research-row-no-side .intro-image-research-content {
  width: 100%;
  max-width: 100%;
}

.intro-image-research-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.intro-image-research-content .intro-current-above {
  margin-top: -0.5rem;
}

.intro-image-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  flex: 0 0 auto;
}
.intro-image-column .intro-name-pronouns {
  margin-top: 0.75rem;
}
.intro-image-column .intro-meta-bottom {
  margin-top: 0.75rem;
}
.intro-image-column .intro-meta-bottom .intro-university {
  margin-bottom: 0.25rem;
  margin-top: 0;
}

@media (min-width: 769px) {
  .intro-image-research-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .intro-image-research-row .intro-image-column {
    flex: 0 0 auto;
  }

  .intro-image-research-row .intro-image-research-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .intro-image-research-row .intro-research-lead {
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  .intro-image-research-row {
    flex-direction: column;
  }

  .intro-image-research-row .intro-image-column {
    max-width: 100%;
  }
}
.intro-content-below {
  margin-top: 1.5rem;
}

.intro-content-rest {
  margin-top: 0;
}

.intro-education-subsection {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 0.5rem;
}

.intro-education-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #333;
  flex-shrink: 0;
}

.intro-education-items {
  flex: 1;
  min-width: 0;
}

.intro-education-items .intro-education-item {
  display: inline;
}
.intro-education-items .intro-education-item p {
  display: inline;
}

.intro-education-item {
  font-size: 1.1rem;
  line-height: 1.6;
}
.intro-education-item p {
  margin: 0;
  font-size: 1.1rem;
}

.intro-subsection {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.intro-subsection:first-child {
  margin-top: 0;
}

.intro-subsection-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #333;
  margin-bottom: 0.35rem;
}

.intro-subsection-item {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.intro-subsection-item p {
  margin: 0;
  font-size: 1.1rem;
}

.intro-subsection-item:last-child {
  margin-bottom: 0;
}

.intro-research-subsection {
  margin-top: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 0.5rem;
}

.intro-research-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #333;
  flex-shrink: 0;
}

.intro-research-items {
  flex: 1;
  min-width: 0;
}

.intro-research-items .intro-research-item {
  display: inline;
}
.intro-research-items .intro-research-item p {
  display: inline;
}

.intro-research-item {
  font-size: 1.1rem;
  line-height: 1.6;
}
.intro-research-item p {
  margin: 0;
  font-size: 1.1rem;
}

.intro-teaching-subsection {
  margin-top: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 0.5rem;
}

.intro-teaching-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #333;
  flex-shrink: 0;
}

.intro-teaching-items {
  flex: 1;
  min-width: 0;
}

.intro-teaching-items .intro-teaching-item {
  display: inline;
}
.intro-teaching-items .intro-teaching-item p {
  display: inline;
}

.intro-teaching-item {
  font-size: 1.1rem;
  line-height: 1.6;
}
.intro-teaching-item p {
  margin: 0;
  font-size: 1.1rem;
}

.intro-others-subsection {
  margin-top: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 0.5rem;
}

.intro-others-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #333;
  flex-shrink: 0;
}

.intro-others-items {
  flex: 1;
  min-width: 0;
}

.intro-others-items .intro-others-item {
  display: inline;
}
.intro-others-items .intro-others-item p {
  display: inline;
}

.intro-others-item {
  font-size: 1.1rem;
  line-height: 1.6;
}
.intro-others-item p {
  margin: 0;
  font-size: 1.1rem;
}

.intro-block mark {
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background-color: #fef08a;
}
.intro-block code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  background-color: #fee2e2;
  color: #dc2626;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}
.intro-block p + p {
  text-indent: 0.75em;
}
.intro-block .fas, .intro-block .fab, .intro-block i {
  text-indent: 0.25rem;
}
.intro-block a {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.intro-block a:hover {
  color: #000;
  text-decoration: underline;
}

.intro-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: lowercase;
}

@media (min-width: 769px) {
  .intro-text {
    font-size: 1.25rem;
  }
}
.intro-text mark {
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background-color: #fef08a;
}
.intro-text code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  background-color: #fee2e2;
  color: #dc2626;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

.citation-shape {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.125rem;
  margin-right: 0.0625rem;
  vertical-align: super;
  font-size: 0.6em;
  line-height: 0;
  position: relative;
  top: -0.5em;
}

#citation-1,
#citation-2,
#citation-3,
#citation-4,
#citation-5 {
  filter: brightness(0) saturate(100%) invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.intro-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.0125rem 0.5rem;
  background-color: #e5e7eb;
  border-radius: 0.375rem;
  color: #666 !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 1.75rem;
  height: 1.75rem;
}
.intro-link i {
  font-size: 1rem;
}
.intro-link:hover {
  background-color: #d1d5db;
}

.arrow-icon {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0.25rem;
}

.intro-list {
  margin: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.5;
  list-style: none;
  text-align: left;
  display: inline-block;
}

.intro-list li::before {
  content: "↳ ";
  margin-right: 0.35em;
  color: #64748b;
}

.intro-list-item {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.intro-table {
  margin: 0 auto;
  border-collapse: collapse;
  text-align: left;
}

.intro-table-number {
  padding-right: 1rem;
  font-weight: 600;
  color: #666;
  vertical-align: top;
  font-size: 0.875rem;
  min-width: 3.25rem;
}

.intro-table-content {
  font-size: 1.125rem;
  line-height: 1.5;
}

.links-section {
  margin-top: 1rem;
}

.links-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .intro-section {
    display: block;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
    max-width: 100%;
  }
  .intro-section .hello-text {
    font-size: 1rem !important;
  }
  .intro-section p {
    text-align: left;
  }

  .intro-image {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.75rem;
  }

  .intro-placeholder-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
  }

  .intro-container {
    display: block;
  }

  .introduction {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
    min-height: 0;
  }

  .intro-buttons {
    display: flex !important;
  }

  .intro-block {
    text-align: left;
    margin-bottom: 0.5rem;
  }
  .intro-block p {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }

  .intro-university,
  .intro-email-line {
    font-size: 0.875rem;
    color: #666;
  }

  .intro-subsection-label {
    font-size: 0.875rem;
  }

  .intro-subsection-item,
  .intro-subsection-item p {
    font-size: 0.9375rem;
  }

  .intro-university {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .intro-meta-bottom {
    margin-top: 0.5rem;
  }

  .intro-email-line {
    margin-bottom: 0;
  }

  .intro-list {
    display: block;
  }

  .intro-table {
    display: block;
    width: 100%;
  }
}
@media (min-width: 769px) {
  .intro-section {
    display: block;
    margin-top: 2rem;
    margin-bottom: 0;
    height: auto;
    min-height: 0;
    text-align: left;
    padding-bottom: 0;
  }

  .introduction {
    height: auto;
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0 !important;
    padding-bottom: 0;
  }

  .intro-buttons {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .project-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }

  .project-header {
    margin-bottom: 2rem;
  }

  .project-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
  }

  .project-subtitle {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 1rem;
    font-weight: normal;
  }

  .project-meta {
    color: #6b7280;
    font-size: 0.875rem;
  }

  .project-meta p {
    margin: 0.5rem 0;
  }

  .project-image {
    margin: 0;
  }

  .project-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
  }

  .project-overview {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 1rem;
  }

  .project-overview h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
  }

  .project-overview p {
    margin: 0;
    line-height: 1.6;
    color: #4b5563;
  }

  .project-content {
    line-height: 1.6;
    font-size: 1.125rem;
    color: #374151;
  }

  .project-content p {
    margin-bottom: 1.5rem;
  }

  .project-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #111827;
  }

  .project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #111827;
  }

  .project-content ul,
  .project-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
  }

  .project-content li {
    margin-bottom: 0.5rem;
  }

  .project-technologies {
    margin-top: 2rem;
  }

  .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f1f3f5;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #444;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }

  .tech-tag:hover {
    background: #e5e7eb;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .project-links {
    margin-top: 2rem;
  }

  .link-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .link-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f1f3f5;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }

  .link-button:hover {
    background: #e5e7eb;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .link-button i {
    margin-right: 0.5rem;
  }
}
@media (max-width: 768px) {
  .project-header h1 {
    font-size: 2rem;
  }

  .project-subtitle {
    font-size: 1.25rem;
  }

  .project-content {
    font-size: 1rem;
  }

  .project-content h2 {
    font-size: 1.5rem;
  }

  .project-content h3 {
    font-size: 1.25rem;
  }

  .link-buttons {
    flex-direction: column;
  }

  .link-button {
    width: 100%;
    justify-content: center;
  }
}
.publication-detail .pub-location-date {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0 0 1rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.publication-detail .pub-location-date-line {
  display: block;
}

.publication-detail .pub-location-date-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.publication-detail .pub-location-date-right {
  flex-shrink: 0;
  text-align: right;
}

.publication-detail .pub-location-date .pub-sep {
  margin: 0 0.35em;
  opacity: 0.7;
}

.publication-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.publication-sidebar {
  flex: 0 0 auto;
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-bib-data {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.publication-main {
  flex: 1;
  min-width: 0;
}

.publication-abstract {
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.5;
  color: #000;
  margin: 0 0 1.5rem;
}

.publication-detail .pub-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.publication-detail .pub-keywords .pub-tag {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #718096;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e0e0e0;
  font-size: 0.875rem;
  cursor: default;
}

.publication-detail pre,
.publication-detail pre code {
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.publication-detail pre {
  background-color: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.publication-detail .related-work-block {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.publication-detail .related-work-heading {
  font-size: 0.875rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.publication-detail .related-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.publication-detail .related-work-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  text-decoration: none;
  background: white;
  border: 1px solid #e5e7eb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
  color: inherit;
}

.publication-detail .related-work-card:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.publication-detail .related-work-thumb {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
}

.publication-detail .related-work-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.publication-detail .related-work-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: lowercase;
}

.publication-detail .related-work-sub {
  font-size: 0.8rem;
  color: #6b7280;
}

.publication-image.publication-hero-placeholder-wrap {
  background-color: #e0e0e0;
  border-radius: 8px;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.publication-image.publication-hero-placeholder-wrap .publication-hero-placeholder-svg {
  width: 40%;
  height: 40%;
  max-width: 160px;
  max-height: 120px;
  opacity: 0.5;
  filter: grayscale(100%);
}

@media (min-width: 769px) {
  .content-block {
    max-width: 1200px;
    margin: 0 auto;
  }

  .publication-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem 1rem 2rem;
  }

  .publication-detail .pub-preprint-btn,
  .publication-detail .pub-copy-bib-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 1rem;
    color: #4b5563 !important;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
  }
  .publication-detail .pub-preprint-btn:hover,
  .publication-detail .pub-copy-bib-btn:hover {
    color: #374151 !important;
  }

  .publication-detail .pub-copy-bib-btn {
    text-align: left;
  }

  .publication-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0 1.75rem;
  }

  .publication-header {
    margin-bottom: 2rem;
  }

  .publication-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .publication-meta {
    color: #666;
  }

  .publication-meta p {
    margin: 0.5rem 0;
  }

  .publication-image {
    margin: 2rem 0;
  }

  .publication-image__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .publication-content {
    line-height: 1.6;
    font-size: 1.125rem;
    font-weight: 350;
  }

  .publication-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .publication-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  .publication-content h3 {
    font-size: 1rem;
    margin: 1.5rem 0 1rem;
  }

  .publication-content ul,
  .publication-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
  }

  .publication-content li {
    margin-bottom: 0.5rem;
  }

  .publication-tags {
    margin-top: 2rem;
  }

  .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #374151;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .tag-link {
    text-decoration: none;
  }

  .tag-link:hover .tag {
    background-color: #e5e7eb;
  }
}
@media (max-width: 768px) {
  .publication-detail {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0;
    margin: 0;
    box-sizing: border-box;
  }

  .publication-detail .pub-header {
    margin-bottom: 1.5rem;
  }

  .publication-detail .pub-header .pub-venue-short {
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
  }

  .publication-detail .pub-header .pub-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .publication-detail .pub-header .pub-authors {
    font-size: 1rem;
  }

  .publication-detail .pub-header .pub-tags {
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .publication-detail .pub-header .pub-tag {
    font-size: 0.8125rem;
    padding: 0.2rem 0.5rem;
  }

  .publication-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
  }

  .publication-image {
    margin: 1rem 0;
  }

  .publication-image__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .publication-body {
    flex-direction: column;
    gap: 1rem;
  }

  .publication-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .publication-detail .pub-preprint-btn,
  .publication-detail .pub-copy-bib-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.9375rem;
    color: #4b5563 !important;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem 0;
  }

  .publication-detail .pub-preprint-btn + .pub-copy-bib-btn::before {
    content: " · ";
    margin-right: 0.25rem;
    color: #4b5563;
  }

  .publication-detail .pub-copy-bib-btn {
    text-align: left;
  }

  .publication-content {
    font-size: 1rem;
    font-weight: 350;
  }

  .publication-content p {
    margin-bottom: 1rem;
  }

  .publication-content h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
  }

  .publication-content h3 {
    font-size: 1.125rem;
    margin: 1.25rem 0 0.5rem;
  }

  .publication-detail .pub-keywords {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .publication-detail pre {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}
.cv-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0 2rem;
}

.cv-header {
  margin-bottom: 2rem;
}

.cv-name {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #222;
}

.cv-contact {
  font-size: 1rem;
  color: #666;
  margin: 0 0 0.5rem;
}

.cv-interests {
  font-size: 0.9375rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

.cv-content-nav {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.cv-content-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cv-content-nav a {
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
}
.cv-content-nav a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.cv-section {
  margin-bottom: 3rem;
  scroll-margin-top: 4rem;
}
.cv-section:last-of-type {
  margin-bottom: 0;
}

.cv-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  margin: 0 0 1rem;
}

.cv-item {
  margin-bottom: 1.75rem;
}
.cv-item:last-child {
  margin-bottom: 0;
}

.cv-item-compact {
  margin-bottom: 1.5rem;
}
.cv-item-compact:last-child {
  margin-bottom: 0;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: nowrap;
}

.cv-item-title {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 5rem);
}

.cv-item-date {
  font-size: 0.875rem;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-item-org {
  font-size: 0.9375rem;
  color: #555;
  margin: 0.25rem 0 0;
}
.cv-item-org a {
  color: #2563eb;
  text-decoration: none;
}
.cv-item-org a:hover {
  text-decoration: underline;
}

.cv-item-meta {
  font-size: 0.875rem;
  color: #666;
  margin: 0.25rem 0 0;
}
.cv-item-meta a {
  color: #2563eb;
  text-decoration: none;
}
.cv-item-meta a:hover {
  text-decoration: underline;
}

.cv-item-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #444;
  margin: 0.5rem 0 0;
}

/* Hide descriptions in Experience and Service sections */
#experience .cv-item-desc,
#service .cv-item-desc {
  display: none !important;
}
#experience .cv-item-desc p,
#service .cv-item-desc p {
  margin: 0 0 0.5rem;
}
#experience .cv-item-desc p:last-child,
#service .cv-item-desc p:last-child {
  margin-bottom: 0;
}
#experience .cv-item-desc ul,
#service .cv-item-desc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
#experience .cv-item-desc li,
#service .cv-item-desc li {
  margin-bottom: 0.25rem;
}

.cv-item-list-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  margin: 0.5rem 0 0.25rem;
}

.cv-item-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #555;
  list-style-type: disc;
}
.cv-item-list li {
  display: block;
  margin-bottom: 0.5rem;
}
.cv-item-list li:last-child {
  margin-bottom: 0;
}

.cv-pub .cv-pub-authors {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.cv-pub .cv-author-me {
  font-weight: 700;
  text-decoration: underline;
}

.cv-pub .cv-pub-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #222;
}
.cv-pub .cv-pub-title a {
  color: #222;
  text-decoration: none;
}
.cv-pub .cv-pub-title a:hover {
  text-decoration: underline;
  color: #2563eb;
}

.cv-pub .cv-pub-venue {
  font-size: 0.8125rem;
  color: #666;
  margin-top: 0.25rem;
}

.cv-skills {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.cv-languages {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  padding-left: 1.25rem;
}
.cv-languages li {
  margin-bottom: 0.25rem;
}

.cv-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.cv-download {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}
.cv-download:hover {
  text-decoration: underline;
}

.works-content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.works-nav-container {
  position: relative;
  z-index: 100;
  background: transparent;
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
}
@media (min-width: 769px) {
  .works-nav-container {
    position: sticky;
    top: 0;
  }
}

.works-nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.works-nav-button {
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #4b5563;
  background: #e5e7eb;
  border: none;
  cursor: crosshair;
  transition: all 0.2s;
}
.works-nav-button:hover {
  background: #d1d5db;
  color: #1f2937;
}
.works-nav-button.active {
  background: #d4a017;
  color: white;
}

.work-item {
  display: block;
}

.pub-image-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .work-meta-row {
    margin-top: 0;
    margin-bottom: 0;
  }
}

.work-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .work-label {
    font-size: 0.6875rem;
  }
}

.work-location {
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  text-align: right;
}
@media (max-width: 768px) {
  .work-location {
    font-size: 0.6875rem;
  }
}

.pub-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  aspect-ratio: 3 / 2;
}
.pub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}
.pub-image .work-meta-row {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
}
.pub-image .work-label,
.pub-image .work-location {
  color: #fff;
}

.work-author-label {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .work-author-label {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.6875rem;
  }
}

.pub-content {
  text-decoration: none !important;
  color: inherit;
  display: block;
  padding: 8px;
  outline: none;
}

.pub-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none !important;
}

.pub-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
}

.work-item[data-type="news"] .pub-title {
  font-weight: 400;
}

.pub-date {
  font-size: 11px;
  color: #999;
  line-height: 1.2;
  margin-bottom: 4px;
  text-decoration: none !important;
}

.pub-meta {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
  text-decoration: none !important;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
}

.scrolling::-webkit-scrollbar {
  display: block;
  width: 4px;
}
.scrolling::-webkit-scrollbar-track {
  background: transparent;
}
.scrolling::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}
.scrolling::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

.pubs-list {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
  .grid-sizer {
    width: calc(25% - 12px) !important;
  }

  .grid-sizer {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
  }

  .work-item {
    margin-right: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    outline: none;
    min-width: 0;
    max-width: 100%;
  }

  .work-item[data-type="project"] {
    padding: 0 !important;
    display: block !important;
    flex-direction: unset !important;
    align-items: unset !important;
  }

  .work-item[data-type="teaching"] {
    background: #f8f8f8 !important;
    padding: 1rem !important;
    border: 1px solid #e5e7eb !important;
  }
  .work-item[data-type="teaching"] .pub-image {
    display: block !important;
    position: relative !important;
  }
  .work-item[data-type="teaching"] .pub-content {
    padding: 0 !important;
  }
  .work-item[data-type="teaching"] .pub-header {
    margin-top: 0 !important;
  }
  .work-item[data-type="teaching"] .placeholder-image {
    height: 60px !important;
  }
  .work-item[data-type="teaching"] .pub-image .work-meta-row {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 10 !important;
    display: flex !important;
    visibility: visible !important;
  }
  .work-item[data-type="teaching"] .pub-image .work-label,
  .work-item[data-type="teaching"] .pub-image .work-location {
    color: #1d1d1d !important;
    visibility: visible !important;
  }

  .work-item:nth-child(4n + 2) {
    margin-right: 0;
  }

  .nav-links-section,
  .nav-buttons {
    margin: 0px !important;
  }

  .nav-link:hover {
    color: #222 !important;
    background: #f1f3f5;
    text-decoration: none !important;
    transform: none !important;
  }

  .work-meta-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    visibility: visible !important;
  }

  .pub-image .work-meta-row {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 10 !important;
    display: flex !important;
    visibility: visible !important;
  }

  .work-label {
    display: inline-block !important;
    visibility: visible !important;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .pub-image .work-label,
  .pub-image .work-location {
    color: #fff !important;
    visibility: visible !important;
  }

  .work-location {
    display: inline-block !important;
    visibility: visible !important;
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    text-align: right;
  }

  .pub-header {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    visibility: visible !important;
  }

  .pub-title {
    display: block !important;
    visibility: visible !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #1d1d1d;
  }

  .pub-meta {
    display: block !important;
    visibility: visible !important;
    font-size: 12px;
    color: #666;
    line-height: 1.2;
  }

  .pub-content {
    display: block !important;
    visibility: visible !important;
  }
}
.placeholder-image {
  width: 100%;
  height: 140px;
  background: #fafafa;
  border-radius: 16px;
  display: block;
}

.work-item[data-type="teaching"] {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}
.work-item[data-type="teaching"] .pub-image {
  display: block;
  position: relative;
}
.work-item[data-type="teaching"] .pub-content {
  padding: 0;
}
.work-item[data-type="teaching"] .pub-header {
  margin-top: 4rem;
}
.work-item[data-type="teaching"] .pub-image .work-meta-row {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}
.work-item[data-type="teaching"] .pub-image .work-label,
.work-item[data-type="teaching"] .pub-image .work-location {
  color: #1d1d1d !important;
}

@media (max-width: 768px) {
  .pubs-list {
    column-count: 2 !important;
    column-gap: 10px !important;
    display: block !important;
    position: static !important;
    height: auto !important;
  }

  .grid-sizer {
    display: none !important;
  }

  .work-item {
    display: inline-block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .pub-content {
    position: relative !important;
    display: block !important;
  }

  .pub-image .work-meta-row {
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .work-label,
  .work-location {
    display: inline-block !important;
  }

  .pub-image .work-label,
  .pub-image .work-location {
    color: #fff !important;
  }

  .pub-image,
  .pub-image img {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block;
  }

  .work-item:not([data-type="pub"]):not([data-type="teaching"]) .pub-header,
  .work-item:not([data-type="pub"]):not([data-type="teaching"]) .pub-meta {
    display: none !important;
  }

  .work-item[data-type="teaching"] .pub-header,
  .work-item[data-type="teaching"] .pub-meta {
    display: block !important;
  }

  .work-item[data-type="teaching"] {
    background: #f8f8f8 !important;
    border: 1px solid #e5e7eb !important;
    padding: 1rem !important;
  }
  .work-item[data-type="teaching"] .pub-image {
    display: block !important;
    position: relative !important;
  }
  .work-item[data-type="teaching"] .pub-content {
    padding: 0 !important;
  }
  .work-item[data-type="teaching"] .pub-header {
    margin-top: 0.5rem !important;
  }
  .work-item[data-type="teaching"] .pub-image .work-meta-row {
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    z-index: 10 !important;
  }
  .work-item[data-type="teaching"] .pub-image .work-label,
  .work-item[data-type="teaching"] .pub-image .work-location {
    color: #1d1d1d !important;
  }
  .work-item[data-type="teaching"] .placeholder-image {
    height: 60px !important;
  }
}
@media (min-width: 769px) {
  .teaching-content {
    margin: 0 auto;
    padding: 2rem 0;
    width: 100%;
  }

  .teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
  }

  .teaching-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
  }

  .teaching-header {
    margin-bottom: 1rem;
  }

  .teaching-course {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #1d1d1d;
    line-height: 1.3;
  }

  .teaching-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .teaching-term {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
  }

  .teaching-org {
    font-size: 0.875rem;
    color: #666;
  }

  .teaching-details {
    margin-top: auto;
    padding-top: 1rem;
  }

  .teaching-role {
    font-size: 0.9375rem;
    color: #374151;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
  }

  .teaching-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
  }
}
@media (max-width: 768px) {
  .teaching-content {
    margin: 0 auto;
    padding: 1rem 0;
    width: 100%;
  }

  .teaching-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .teaching-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
  }

  .teaching-header {
    margin-bottom: 1rem;
  }

  .teaching-course {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #1d1d1d;
    line-height: 1.3;
  }

  .teaching-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .teaching-term {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
  }

  .teaching-org {
    font-size: 0.875rem;
    color: #666;
  }

  .teaching-details {
    margin-top: auto;
    padding-top: 1rem;
  }

  .teaching-role {
    font-size: 0.9375rem;
    color: #374151;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
  }

  .teaching-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
  }
}
.experience-page-content .intro-block {
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.experience-page-content .intro-block:first-child {
  margin-top: 0;
}
.experience-page-content .intro-block p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #333;
}

.experience-section {
  margin-bottom: 2rem;
}

.experience-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.experience-year {
  width: 70px;
  padding: 0.5rem 0.75rem 0.5rem 0;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
  vertical-align: top;
  text-align: right;
  box-sizing: border-box;
}

.experience-year-mobile {
  display: none;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.experience-year.current-year,
.experience-year-mobile.current-year {
  color: #64748b;
}

.experience-table .experience-content {
  padding: 0.5rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.experience-table .experience-content strong {
  color: #333;
  font-weight: 600;
}

.experience-org-location {
  color: #64748b;
  font-weight: 400;
}

.experience-org-location a {
  color: #64748b;
  text-decoration: underline;
}

.experience-org-location a:hover {
  color: #475569;
}

.experience-table .experience-content a {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.experience-table .experience-content a:hover {
  color: #000;
}

.edu-label {
  font-size: 0.9em;
  font-weight: 400;
  margin-right: 0.25em;
  color: #94a3b8;
}

.notable-list-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.75em;
  margin-bottom: 0.25em;
  color: #333;
}

.notable-list {
  margin: 0 0 0.5em 0;
  padding-left: 1.2em;
  list-style: none;
}

.notable-list li {
  margin-bottom: 0.25em;
  font-size: 0.9rem;
  color: #475569;
}

.notable-list li::before {
  content: "↳ ";
  margin-right: 0.35em;
  color: #64748b;
}

.notable-date {
  color: #64748b;
  font-weight: 500;
  margin-right: 0.5em;
  font-variant-numeric: tabular-nums;
}

.course-term-inline {
  font-size: 0.95em;
  color: #94a3b8;
  font-weight: 600;
  margin-right: 0.5em;
  display: none;
}

.citations {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.citation-label {
  font-weight: 500;
  color: #475569;
  margin-right: 0.5rem;
}

.citation-list {
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0;
}

.citation-list li::before {
  content: "↳ ";
  margin-right: 0.35em;
  color: #64748b;
}

.citation-link {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s;
}
.citation-link:hover {
  color: #000;
}

.pub-link {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s;
}
.pub-link:hover {
  color: #000;
}

.pub-authors {
  font-size: 0.875rem;
  color: #475569;
  margin: 0.25rem 0;
}

.pub-venue {
  font-size: 0.875rem;
  font-style: italic;
  color: #64748b;
}

.pub-tags {
  margin-top: 0.5rem;
}

.pub-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  background-color: #e2e8f0;
  color: #475569;
  border-radius: 9999px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
}
.pub-tag:hover {
  background-color: #cbd5e1;
  color: #334155;
}

.section-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
  width: 100%;
}

@media (max-width: 768px) {
  .experience-year {
    display: none;
  }

  .experience-year-mobile {
    display: block;
  }

  .experience-table .experience-content {
    padding: 0.75rem 0 0.75rem 0;
  }

  .course-term-inline {
    display: inline;
    margin-right: 0.3em;
  }
}
@media (min-width: 769px) {
  body.layout-masonry {
    /* Publications page: same width as publication page (800px) */
  }
  body.layout-masonry .work-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #333;
  }
  body.layout-masonry .work-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  body.layout-masonry .work-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    width: 100%;
    max-width: none;
  }
  body.layout-masonry .work-item::before {
    content: "↳";
    position: absolute;
    left: 0;
    color: #666;
  }
  body.layout-masonry .work-item span {
    color: #000;
    font-size: 1.25rem;
    line-height: 1.4;
    display: block;
    width: 100%;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  body.layout-masonry .work-item a {
    color: #666;
    text-decoration: underline;
    font-size: 1.25rem;
    line-height: 1.4;
    display: block;
    width: 100%;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
  }
  body.layout-masonry .work-item a:hover {
    color: #000;
  }
  body.layout-masonry .work-item .work-meta {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    width: 100%;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  body.layout-masonry .desktop-nav {
    flex: 0 0 auto;
    background: transparent;
    border-radius: 1rem;
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    gap: 1rem;
  }
  body.layout-masonry main.content,
  body.layout-masonry #main-content {
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
  }
  body.layout-masonry main.content::-webkit-scrollbar,
  body.layout-masonry #main-content::-webkit-scrollbar {
    display: none;
  }
  body.layout-masonry main.content.scrolling,
  body.layout-masonry #main-content.scrolling {
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
  }
  body.layout-masonry main.content.scrolling::-webkit-scrollbar,
  body.layout-masonry #main-content.scrolling::-webkit-scrollbar {
    display: block;
    width: 4px;
  }
  body.layout-masonry main.content.scrolling::-webkit-scrollbar-track,
  body.layout-masonry #main-content.scrolling::-webkit-scrollbar-track {
    background: transparent;
  }
  body.layout-masonry main.content.scrolling::-webkit-scrollbar-thumb,
  body.layout-masonry #main-content.scrolling::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
  }
  body.layout-masonry main.content.scrolling::-webkit-scrollbar-thumb:hover,
  body.layout-masonry #main-content.scrolling::-webkit-scrollbar-thumb:hover {
    background: #ccc;
  }
  body.layout-masonry .content {
    overflow: visible;
    scroll-behavior: smooth;
  }
  body.layout-masonry .content::-webkit-scrollbar {
    display: none;
  }
  body.layout-masonry .content.scrolling {
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
  }
  body.layout-masonry .content.scrolling::-webkit-scrollbar {
    display: block;
    width: 4px;
  }
  body.layout-masonry .content.scrolling::-webkit-scrollbar-track {
    background: transparent;
  }
  body.layout-masonry .content.scrolling::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
  }
  body.layout-masonry .content.scrolling::-webkit-scrollbar-thumb:hover {
    background: #ccc;
  }
  body.layout-masonry .grid {
    width: 100%;
    margin: 0 auto;
  }
  body.layout-masonry .grid-item,
  body.layout-masonry .project-card,
  body.layout-masonry .pub-item[data-type="project"] {
    width: calc(33.333% - 1rem);
    margin-bottom: 1.5rem;
    background: transparent;
    border-radius: 18px;
    box-shadow: none;
    outline: none;
    padding: 1rem 1rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: none !important;
    animation: none !important;
  }
  body.layout-masonry .pub-image,
  body.layout-masonry .selected-project-card-bg-image {
    width: 100%;
    height: auto;
    min-height: unset;
    max-height: unset;
    padding: 0;
    background: #f1f3f5;
    display: block;
    position: relative;
    border-radius: 16px;
  }
  body.layout-masonry .pub-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
    height: auto;
    min-height: unset;
    max-height: unset;
    padding: 0;
    background: #f1f3f5;
    border-radius: 16px;
    overflow: hidden;
  }
  body.layout-masonry .pub-image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
  }
  body.layout-masonry .pub-image img,
  body.layout-masonry .selected-project-card-bg-image img {
    width: 100%;
    height: auto;
    min-height: unset;
    max-height: unset;
    border-radius: 16px;
    object-fit: contain;
    object-position: center;
    display: block;
  }
  body.layout-masonry .grid-item .card-text,
  body.layout-masonry .project-card .card-text {
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
    transition: background 0.2s;
  }
  body.layout-masonry .grid-item .card-text:hover,
  body.layout-masonry .project-card .card-text:hover {
    background: #f5f6fa;
    border-radius: 8px;
  }
  body.layout-masonry .tag-overlay,
  body.layout-masonry .project-tags,
  body.layout-masonry .tag {
    display: none;
  }
  body.layout-masonry .pub-title {
    font-size: 14px;
    font-weight: 600;
  }
  body.layout-masonry .project-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
  }
  body.layout-masonry .pub-item[data-type="project"] .pub-content {
    width: 100% !important;
    text-align: left !important;
    margin-top: 0.5rem !important;
    transition: background 0.2s !important;
    display: block !important;
    visibility: visible !important;
    padding: 12px 8px !important;
  }
  body.layout-masonry .pub-item[data-type="project"] .pub-content:hover {
    background: #f5f6fa !important;
    border-radius: 8px !important;
  }
  body.layout-masonry .pub-item[data-type="project"] .pub-header {
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
  }
  body.layout-masonry .pub-item[data-type="project"] .pub-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    display: block !important;
    visibility: visible !important;
  }
  body.layout-masonry .pub-item[data-type="project"] .pub-meta {
    font-size: 0.75rem !important;
    color: #666 !important;
    display: block !important;
    visibility: visible !important;
    margin: 2px 0 !important;
  }
  body.layout-masonry .pub-venue {
    margin-bottom: 0 !important;
  }
  body.layout-masonry .pub-meta {
    font-size: 0.75rem !important;
    color: #666 !important;
  }
  body.layout-masonry .grid-item,
  body.layout-masonry .pub-item {
    transition: none !important;
    animation: none !important;
  }
  body.layout-masonry main.content {
    padding: 0 !important;
  }
  body.layout-masonry .main-column main.content.content-pubs {
    max-width: 800px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }
  body.layout-masonry body.layout-masonry .main-column main.content.content-pubs .publications-section-wrapper {
    max-width: 100%;
  }
}
:root {
  --research-primary: #2563eb;
  --research-secondary: #1e40af;
  --research-accent: #3b82f6;
  --research-text: #1f2937;
  --research-background: #ffffff;
}

.research-section {
  background-color: var(--research-background);
  color: var(--research-text);
  padding: 2rem 0;
}

.research-title {
  color: var(--research-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.research-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}
.research-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.research-link {
  color: var(--research-primary);
  text-decoration: none;
}
.research-link:hover {
  color: var(--research-secondary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .research-section {
    padding: 1rem 0;
  }

  .research-card {
    padding: 1rem;
  }
}
@media (min-width: 769px) {
  .hello-text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-size: 20px !important;
  }
  .hello-text a {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: crosshair;
  }
  .hello-text .emoji {
    font-size: 20px;
  }
  .hello-text ul {
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .hello-text {
    font-size: 14px !important;
  }
  .hello-text .emoji {
    font-size: 14px;
  }
}
/* 404 Error Page */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1;
}

.error-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: #444;
  margin: 0 0 0.5rem 0;
}

.error-description {
  font-size: 1rem;
  color: #666;
  margin: 0 0 2rem 0;
  max-width: 360px;
}

.error-home-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.error-home-link:hover {
  background-color: #555;
}

/* Sticky footer flush to bottom */
.desktop-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.desktop-wrapper .footer {
  margin-top: auto;
}

/* 404 page: ensure main grows */
body.page-error main.content {
  flex: 1;
}

/* Desktop Profile */
.desktop-profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 768px) {
  .desktop-profile {
    display: none;
  }
}

/* Hide citation text on research page publication cards */
body.page-research .research-column-pubs .work-citation.work-citation-desktop,
body.page-research .research-column-pubs .work-citation,
body.page-research .research-column-pubs .work-citation-desktop {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Hide short title in pub list section - show full title only */
body.page-research .research-column-pubs .work-tile-summary,
.publications-section-wrapper .work-tile-summary,
.publications-section-container .work-tile-summary {
  display: none !important;
}

/* Unbold pub titles in pub list section */
body.page-research .research-column-pubs .work-title-text,
.publications-section-wrapper .work-title-text,
.publications-section-container .work-title-text {
  font-weight: 400;
}
