/* Independent orange-and-white academic system with editorial typography. */
:root {
  color-scheme: light;
  --global-bg-color: #fff !important;
  --global-code-bg-color: #f3efe9 !important;
  --global-text-color: #34363b !important;
  --global-text-color-light: #70747c !important;
  --global-theme-color: #eb7617 !important;
  --global-hover-color: #c95d0a !important;
  --global-hover-text-color: #fff !important;
  --global-footer-bg-color: #fff !important;
  --global-footer-text-color: #73767d !important;
  --global-footer-link-color: #c95d0a !important;
  --global-divider-color: #e3ded5 !important;
  --global-card-bg-color: #fff !important;
  --global-highlight-color: #eb7617 !important;
  --site-heading-color: #22252a;
  --site-soft-text-color: #656a73;
  --site-accent-ink: #fff;
  --site-navbar-bg: rgba(255, 255, 255, 0.96);
  --site-profile-shadow: 0 24px 60px rgba(43, 39, 34, 0.15);
  --site-accent-shadow: 0 10px 24px rgba(235, 118, 23, 0.2);
  --site-panel-bg: #fff;
  --site-panel-shadow: 0 18px 45px rgba(43, 39, 34, 0.07);
  --site-orange-soft: #fff0e3;
  --site-page-glow: rgba(235, 118, 23, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --global-bg-color: #282828 !important;
  --global-code-bg-color: #333 !important;
  --global-text-color: #f1f1ed !important;
  --global-text-color-light: #c0c0bb !important;
  --global-theme-color: #ff963f !important;
  --global-hover-color: #ffb06c !important;
  --global-hover-text-color: #292929 !important;
  --global-footer-bg-color: #202020 !important;
  --global-footer-text-color: #d4d4cf !important;
  --global-footer-link-color: #ffad57 !important;
  --global-divider-color: #4a4a47 !important;
  --global-card-bg-color: #333 !important;
  --global-highlight-color: #ff963f !important;
  --site-heading-color: #fff;
  --site-soft-text-color: #d0d0cb;
  --site-accent-ink: #292929;
  --site-navbar-bg: rgba(40, 40, 40, 0.96);
  --site-profile-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  --site-accent-shadow: 0 10px 24px rgba(255, 150, 63, 0.18);
  --site-panel-bg: #333;
  --site-panel-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
  --site-orange-soft: #49331f;
  --site-page-glow: rgba(255, 130, 0, 0.07);
}

html,
body {
  color: var(--global-text-color);
  background: var(--global-bg-color);
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-image: none;
}

.container {
  max-width: 1080px;
}

a,
table.table a {
  color: var(--global-theme-color);
  text-underline-offset: 0.16em;
}

a:hover,
table.table a:hover {
  color: var(--global-hover-color);
}

.navbar {
  border-bottom: 0;
  background: var(--site-navbar-bg);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.navbar .navbar-brand {
  color: var(--site-heading-color) !important;
  font-family: Newsreader, Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.navbar.navbar-light .navbar-nav .nav-item .nav-link {
  color: var(--global-text-color);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}

.navbar.navbar-light .navbar-nav .nav-item .nav-link:hover,
.navbar.navbar-light .navbar-nav .nav-item.active > .nav-link {
  color: var(--global-theme-color);
}

.navbar-menu-list > .nav-item:first-child {
  display: none;
}

#light-toggle {
  color: var(--global-text-color);
}

#light-toggle:hover {
  color: var(--global-theme-color);
}

.post-header .post-title {
  position: relative;
  margin-bottom: 1.55rem;
  padding-bottom: 0;
  color: var(--site-heading-color);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2.65rem, 5vw, 4rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1;
}

.post-header .post-title::after {
  display: none;
  content: none;
}

.post-header .desc,
.post-description {
  margin-bottom: 2.15rem;
  color: var(--global-text-color-light);
  font-size: 0.98rem;
}

.profile {
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--global-divider-color) 72%, transparent);
  border-radius: 0.65rem;
  box-shadow: 0 18px 48px rgba(30, 33, 38, 0.08);
}

.profile figure,
.profile picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.profile img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
  object-fit: cover;
  transform: scale(1.22);
  transform-origin: 50% 47%;
}

@media (min-width: 576px) {
  .profile {
    width: 27%;
    max-width: 260px;
    margin: 0 0 1.8rem 3rem;
  }
}

body:has(.profile) .post article h2 {
  clear: both;
}

body:has(.profile) .post article > p {
  max-width: 700px;
}

body:has(.profile) .post article > p:first-of-type {
  color: var(--site-heading-color);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.72;
}

.home-social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.35rem 0 0;
}

.home-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--site-heading-color);
  background: transparent;
  font-size: 1.25rem;
  text-decoration: none;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.home-social-links a:hover,
.home-social-links a:focus-visible {
  color: var(--global-theme-color);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-news-section {
  clear: both;
  margin-top: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-news-header {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.home-news-header > h2 {
  display: flex;
  flex: 1 1 auto;
  gap: 0.7rem;
  align-items: center;
  margin: 0 !important;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.home-news-header > h2::before,
.home-detail-card > h2::before,
.home-projects-header h2::before {
  display: block;
  flex: 0 0 auto;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--global-theme-color);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--global-theme-color) 12%, transparent);
  content: "";
}

.home-news-header > h2::after,
.home-detail-card > h2::after,
.home-projects-header h2::after {
  display: block;
  flex: 1 1 auto;
  height: 1px;
  margin-left: 0.15rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--global-divider-color) 65%, transparent), transparent);
  content: "";
}

.home-news-list:empty {
  display: none;
}

.home-projects-section {
  clear: both;
  margin-top: 3.25rem;
}

.home-projects-header {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.home-projects-header h2 {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  margin: 0 !important;
  color: var(--site-heading-color);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.75rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.05;
}

.home-publication-list {
  display: grid;
  gap: 1.8rem;
}

.home-publication-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(11.5rem, 23%) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 0.35rem 0 1.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--global-divider-color) 62%, transparent);
  border-radius: 0;
  transition: background-color 160ms ease;
}

.home-publication-item:last-child {
  padding-bottom: 0.35rem;
  border-bottom: 0;
}

.home-publication-item:hover {
  background: color-mix(in srgb, var(--global-theme-color) 2.5%, transparent);
}

.home-publication-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 9rem;
  min-height: 9rem;
  padding: 0.55rem;
  overflow: hidden;
  border: 0;
  border-radius: 0.4rem;
  background: #fff;
}

.home-publication-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
}

.home-publication-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.home-publication-content h3 {
  margin: 0 0 0.4rem !important;
  font-family: Newsreader, Georgia, serif !important;
  font-size: 1.38rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.012em;
  line-height: 1.22;
}

.home-publication-content h3 a {
  color: var(--site-heading-color);
  text-decoration: none;
}

.home-publication-content h3 a:hover {
  color: var(--global-theme-color);
}

.home-publication-authors {
  margin: 0 0 0.18rem !important;
  color: var(--global-text-color) !important;
  font-family: Newsreader, Georgia, serif;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

.home-publication-authors strong {
  color: var(--site-heading-color);
  font-weight: 700;
}

.home-publication-venue {
  margin: 0 !important;
  color: var(--global-text-color-light) !important;
  font-family: Newsreader, Georgia, serif;
  font-size: 1rem !important;
  font-style: italic;
  line-height: 1.4 !important;
}

.home-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.7rem;
}

.home-publication-pdf {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.58rem;
  border: 1px solid color-mix(in srgb, var(--global-divider-color) 78%, transparent);
  border-radius: 0.25rem;
  color: var(--global-theme-color);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.home-publication-pdf:hover {
  border-color: color-mix(in srgb, var(--global-theme-color) 65%, var(--global-divider-color));
  color: var(--global-hover-color);
  background: transparent;
  text-decoration: underline;
}

.home-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  clear: both;
  align-items: start;
  margin-top: 2.6rem;
}

.home-detail-card {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-detail-card > h2 {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 0.7rem !important;
  padding: 0;
  border: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.home-detail-card > h2::before {
  display: block;
  content: "";
}

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

.home-detail-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin: 0 !important;
  padding: 0.72rem 0 0.82rem;
  border-bottom: 1px solid color-mix(in srgb, var(--global-divider-color) 46%, transparent);
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

.home-detail-list > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-detail-list > li::before {
  display: none;
  content: none;
}

.home-detail-list > li > time {
  grid-row: 1;
  grid-column: 2;
  margin-top: 0.16rem;
  color: var(--global-text-color-light);
  font-size: 0.76rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
  line-height: 1.35;
  white-space: nowrap;
}

.home-detail-content {
  grid-row: 1;
  grid-column: 1;
  display: grid;
  gap: 0.08rem;
}

.home-detail-content strong {
  color: var(--site-heading-color);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.35;
}

.home-detail-content span {
  color: var(--global-text-color-light);
  font-size: 0.87rem;
  line-height: 1.42;
}

.post article p,
.post article li {
  color: var(--global-text-color);
  font-size: 1.12rem;
  line-height: 1.68;
}

.post article h2 {
  margin-top: 2.55rem;
  margin-bottom: 0.7rem;
  color: var(--site-heading-color);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.post article h3 {
  color: var(--site-heading-color);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
}

.post article li {
  margin-bottom: 0.36rem;
}

.publication-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1.7rem 0 2.5rem;
}

.publication-filter__label {
  margin-right: 0.25rem;
  color: var(--global-text-color-light);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-filter__button {
  display: inline-flex;
  gap: 0.48rem;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.5rem 1.05rem;
  border: 2px solid var(--global-theme-color);
  border-radius: 999px;
  color: var(--global-theme-color);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.publication-filter__button > span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentcolor;
}

.publication-filter__button:hover {
  color: var(--site-heading-color);
  transform: translateY(-1px);
}

.publication-filter__button.is-active {
  color: var(--site-accent-ink);
  background: var(--global-theme-color);
  box-shadow: var(--site-accent-shadow);
}

.research-theme[hidden] {
  display: none;
}

.research-themes.is-all .research-theme > h2,
.research-themes.is-all .research-theme > p {
  display: none;
}

.research-themes.is-all .publications,
.research-themes.is-all .publications ol.bibliography {
  margin-top: 0;
  margin-bottom: 0;
}

.research-themes.is-all .publications ol.bibliography li:last-child {
  border-bottom: 1px solid var(--global-divider-color);
}

.research-themes.is-all .unclassified-publications .publications:last-child ol.bibliography li:last-child {
  border-bottom: 0;
}

.research-theme > h2 {
  margin-top: 3.15rem !important;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--global-divider-color);
}

.research-theme > h2::before {
  margin-right: 0.55rem;
  color: var(--global-theme-color);
  content: "—";
}

.research-theme > p {
  max-width: 820px;
  color: var(--global-text-color-light) !important;
  font-size: 1.04rem !important;
}

.publications {
  margin-top: 1.4rem;
  margin-bottom: 2.75rem;
}

.publications h2.bibliography {
  display: none;
}

.publications ol.bibliography li {
  margin-bottom: 0;
  padding: 1.4rem 0 1.55rem;
  border-bottom: 1px solid var(--global-divider-color);
  line-height: 1.45;
}

.publications ol.bibliography li:last-child {
  border-bottom: 0;
}

.publications ol.bibliography li > .row {
  position: relative;
  min-height: 3rem;
  margin: 0;
  padding-left: 0;
}

.publications ol.bibliography li .col-sm-10 {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0 0 8.75rem !important;
}

.publications ol.bibliography li .col-sm-10::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  box-sizing: border-box;
  width: 7.75rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.55rem;
  color: var(--site-accent-ink);
  background: var(--global-theme-color);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.15;
  text-align: center;
  content: var(--venue-label, "Paper");
}

#yang2026cooperative {
  --venue-label: "CVPR '26";
}

#li2026fedsta {
  --venue-label: "TCSVT '26";
}

#wang2026darkdriving {
  --venue-label: "ICRA '26";
}

#guo2026stealthy {
  --venue-label: "ECCV '26";
}

#yang2025da3d {
  --venue-label: "ACM MM '25";
}

#li2025taskaware {
  --venue-label: "MM Asia '25";
}

#li2025dynamic {
  --venue-label: "AAAI '25";
}

#guo2025robust {
  --venue-label: "ICASSP '25";
}

#yang2024digitaltwin {
  --venue-label: "ESWA '24";
}

#chen2023pyuppaal {
  --venue-label: "ICCPS '23";
}

#lai2022digitaltwin {
  --venue-label: "EMBC '22";
}

#lai2021synthetic {
  --venue-label: "EMBC '21";
}

#yang2021preclinical {
  --venue-label: "arXiv '21";
}

#yang2019rainfall {
  --venue-label: "ICBDT '19";
}

#tian2018plaque {
  --venue-label: "SPAC '18";
}

.publications ol.bibliography li .title {
  margin-bottom: 0.22rem;
  color: var(--site-heading-color);
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.35;
}

.publications ol.bibliography li .author,
.publications ol.bibliography li .periodical {
  color: var(--site-soft-text-color);
  font-size: 1.02rem;
  line-height: 1.48;
}

.publications ol.bibliography li .author > em {
  border-bottom: 1px solid var(--global-theme-color);
  color: var(--site-heading-color);
  font-style: normal;
  font-weight: 650;
}

.publications ol.bibliography li .links {
  margin-top: 0.55rem;
}

.publications ol.bibliography li .links a.btn {
  margin-right: 0.35rem;
  border-color: var(--global-divider-color);
  border-radius: 999px;
  color: var(--site-heading-color);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.publications ol.bibliography li .links a.btn:hover {
  border-color: var(--global-theme-color);
  color: var(--site-accent-ink);
  background: var(--global-theme-color);
}

.publications ol.bibliography li .badges {
  display: none;
}

.news-list {
  margin-top: 1.4rem;
  border-top: 1px solid var(--global-divider-color);
}

.news-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--global-divider-color);
}

.news-item time {
  color: var(--global-theme-color);
  font-size: 0.9rem;
  font-weight: 650;
}

.news-item p {
  margin: 0;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

.news-item strong {
  color: var(--site-heading-color);
  font-weight: 600;
}

body:has(.paper-project-page) .post-header {
  max-width: 1120px;
  margin: 2.6rem auto 0;
  text-align: center;
}

body:has(.paper-project-page) .post-header .post-title {
  margin-bottom: 1.45rem;
  font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  letter-spacing: -0.042em;
  line-height: 1.04;
}

body:has(.paper-project-page) .post-header .post-description {
  display: none;
}

.paper-project-page {
  max-width: 1080px;
  margin: 0 auto;
}

.paper-project-authors {
  max-width: 940px;
  margin: 0 auto !important;
  color: var(--global-text-color) !important;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem !important;
  line-height: 1.65 !important;
  text-align: center;
}

.paper-project-authors .author-block,
.paper-project-affiliations .author-block {
  display: inline-block;
  white-space: nowrap;
}

.paper-project-authors a {
  color: var(--site-heading-color);
  text-decoration: none;
}

.paper-project-authors a:hover {
  color: var(--global-theme-color);
}

.paper-project-authors sup,
.paper-project-affiliations sup,
.paper-project-note sup {
  color: var(--global-theme-color);
  font-family: var(--global-font-family);
  font-size: 0.62em;
  font-weight: 750;
  top: -0.55em;
}

.paper-project-authors strong {
  color: var(--site-heading-color);
  font-weight: 700;
}

.paper-project-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
  align-items: center;
  justify-content: center;
  max-width: 920px;
  margin: 0.65rem auto 0;
  color: var(--global-text-color-light);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.paper-project-note {
  margin: 0.32rem auto 0 !important;
  color: var(--global-text-color-light) !important;
  font-size: 0.75rem !important;
  line-height: 1.45 !important;
  text-align: center;
}

.paper-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.55rem;
}

.paper-project-actions a {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid var(--site-heading-color);
  border-radius: 999px;
  color: var(--global-bg-color);
  background: var(--site-heading-color);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.045em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.paper-project-actions a:hover {
  border-color: var(--global-theme-color);
  color: #fff;
  background: var(--global-theme-color);
}

.paper-project-actions i {
  color: inherit;
}

.paper-project-hero {
  margin: 3.2rem auto 4.2rem;
  text-align: center;
}

.paper-project-hero img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}

.paper-project-page > section {
  position: relative;
  margin-top: 4.4rem;
  padding-top: 2.35rem;
  scroll-margin-top: 6rem;
  border-top: 1px solid color-mix(in srgb, var(--global-divider-color) 72%, transparent);
}

.paper-project-page > section::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 3.2rem;
  height: 2px;
  background: var(--global-theme-color);
  content: "";
  transform: translateX(-50%);
}

.paper-project-page > section > h2 {
  margin: 0 0 1.2rem !important;
  color: var(--site-heading-color);
  font-family: Newsreader, Georgia, serif;
  font-size: 2rem !important;
  font-weight: 620 !important;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-align: center;
}

.paper-project-page > section > p {
  max-width: 820px;
  margin: 0 auto !important;
  color: var(--global-text-color) !important;
  font-size: 1.03rem !important;
  line-height: 1.78 !important;
  text-align: justify;
}

.paper-project-figure {
  max-width: 920px;
  margin: 2.1rem auto 0;
  text-align: center;
}

.paper-project-figure--compact {
  max-width: 590px;
}

.paper-project-figure img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.paper-project-media {
  width: 100%;
  padding: clamp(0.48rem, 1.15vw, 0.9rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--global-divider-color) 64%, transparent);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--site-heading-color) 6%, transparent);
}

.paper-project-media img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

.paper-project-figure figcaption,
.paper-project-hero figcaption {
  max-width: 820px;
  margin: 1rem auto 0;
  color: var(--global-text-color-light);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

.paper-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.8rem 2rem;
  align-items: start;
  max-width: 1040px;
  margin: 2.4rem auto 0;
}

.paper-project-gallery--single {
  grid-template-columns: 1fr;
}

.paper-project-gallery .paper-project-figure {
  width: 100%;
  max-width: none;
  margin: 0;
}

.paper-project-gallery .paper-project-figure--compact {
  max-width: 720px;
  justify-self: center;
}

.paper-project-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
}

.paper-project-highlights article {
  padding-top: 1.05rem;
  border-top: 2px solid color-mix(in srgb, var(--global-theme-color) 54%, var(--global-divider-color));
}

.paper-project-highlights strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--site-heading-color);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.14rem;
  font-weight: 650;
  line-height: 1.28;
}

.paper-project-highlights span {
  display: block;
  color: var(--global-text-color-light);
  font-size: 0.88rem;
  line-height: 1.62;
}

.paper-project-citation pre {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.15rem 1.3rem;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--global-divider-color) 76%, transparent);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--global-code-bg-color) 76%, transparent);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
  white-space: pre;
}

.paper-project-citation code {
  color: var(--global-text-color);
}

/* SPAR3D-inspired project treatment: simple title, linked authors, clean sections. */
body:has(.paper-project-page--spar) .post-header {
  max-width: 980px;
  margin-top: 3.4rem;
}

body:has(.paper-project-page--spar) .post-header .post-title {
  margin-bottom: 1.35rem;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(2.15rem, 3.6vw, 3.05rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.paper-project-page--spar {
  max-width: 960px;
}

.paper-project-page--spar .paper-project-authors {
  max-width: 920px;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.25rem !important;
  line-height: 1.65 !important;
}

.paper-project-page--spar .paper-project-authors a,
.paper-project-page--spar .paper-project-author {
  color: #3273dc;
  font-weight: 400;
  text-decoration: none;
}

.paper-project-page--spar .paper-project-authors a:hover {
  color: #1d5fbd;
  text-decoration: underline;
}

.paper-project-page--spar .paper-project-authors sup,
.paper-project-page--spar .paper-project-affiliations sup {
  color: var(--global-text-color-light);
  font-size: 0.72em;
  font-weight: 500;
  top: -0.42em;
}

.paper-project-page--spar .paper-project-affiliations {
  margin-top: 0.3rem;
  color: var(--global-text-color);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.12rem;
  line-height: 1.5;
}

.paper-project-page--spar .paper-project-institution-logo {
  display: block;
  width: min(20rem, 64vw);
  margin: 1rem auto 0;
}

.paper-project-page--spar .paper-project-institution-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.paper-project-page--spar .paper-project-actions {
  gap: 0.45rem;
  margin-top: 1rem;
}

.paper-project-page--spar .paper-project-actions a {
  min-height: 2.45rem;
  padding: 0.62rem 1.05rem;
  border-color: #363636;
  color: #fff;
  background: #363636;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.paper-project-page--spar .paper-project-actions a:hover {
  border-color: #1f1f1f;
  color: #fff;
  background: #1f1f1f;
  text-decoration: none;
}

.paper-project-page--spar .paper-project-hero {
  margin: 3.7rem auto 4.8rem;
}

.paper-project-page--spar .paper-project-media {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.paper-project-page--spar > section {
  margin-top: 4.8rem;
  padding-top: 0;
  border-top: 0;
}

.paper-project-page--spar > section::before {
  display: none;
}

.paper-project-page--spar > section > h2 {
  margin-bottom: 1.35rem !important;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 2rem !important;
  font-weight: 620 !important;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.paper-project-page--spar > section > p {
  max-width: 900px;
  font-size: 1rem !important;
  line-height: 1.68 !important;
  text-align: left;
}

.paper-project-page--spar .paper-project-figure,
.paper-project-page--spar .paper-project-gallery {
  margin-top: 2rem;
}

.paper-project-page--spar .paper-project-figure--compact {
  max-width: 620px;
}

.paper-project-page--spar .paper-project-citation pre {
  border: 0;
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--global-code-bg-color) 88%, transparent);
}

.paper-project-page--spar .ums-youtube-embed {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #000;
}

.paper-project-page--spar .ums-youtube-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.paper-project-page--spar .ums-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.6rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.paper-project-page--spar .ums-video-grid article {
  min-width: 0;
}

.paper-project-page--spar .ums-video-grid h3 {
  margin: 0 0 0.7rem;
  color: var(--site-heading-color);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

.paper-project-page--spar .ums-results-video {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0.3rem;
  background: #000;
  box-shadow: none;
}

footer.fixed-bottom {
  position: static !important;
  margin-top: 3.5rem;
  border-top: 0;
  background: var(--global-footer-bg-color);
  color: var(--global-footer-text-color);
}

footer.fixed-bottom a {
  color: var(--global-footer-link-color);
}

@media (max-width: 820px) {

  .home-publication-item {
    grid-template-columns: minmax(11rem, 26%) minmax(0, 1fr);
  }

  .home-details-grid {
    grid-template-columns: 1fr;
  }

  .paper-project-highlights {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .paper-project-gallery {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .paper-project-page--spar .ums-video-grid {
    gap: 2.5rem;
  }

  footer.fixed-bottom {
    margin-top: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .profile {
    aspect-ratio: 1;
  }

  .post-header .post-title {
    font-size: 1.85rem;
  }

  body:has(.paper-project-page) .post-header .post-title {
    font-size: clamp(1.75rem, 8.2vw, 2.05rem);
    letter-spacing: -0.032em;
    line-height: 1.1;
  }

  .paper-project-authors {
    font-size: 1rem !important;
  }

  .paper-project-affiliations {
    display: block;
    font-size: 0.82rem;
  }

  .paper-project-affiliations .author-block {
    display: block;
  }

  .paper-project-actions {
    gap: 0.45rem;
  }

  .paper-project-actions a {
    min-height: 2rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.68rem;
  }

  .paper-project-hero {
    margin: 2.3rem auto 3rem;
  }

  .paper-project-page > section {
    margin-top: 3.2rem;
    padding-top: 1.85rem;
  }

  .paper-project-page > section > h2 {
    font-size: 1.7rem !important;
  }

  .paper-project-page > section > p {
    font-size: 0.98rem !important;
    text-align: left;
  }

  .paper-project-figure {
    margin-top: 1.5rem;
  }

  .paper-project-media {
    padding: 0.35rem;
    border-radius: 0.5rem;
  }

  .post article p,
  .post article li {
    font-size: 1rem;
  }

  .home-detail-card {
    padding: 0;
  }

  .home-detail-card > h2 {
    font-size: 1.5rem;
  }

  .home-detail-list > li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.72rem 0;
  }

  .home-detail-list > li > time {
    font-size: 0.72rem;
  }

  .home-detail-content strong {
    font-size: 0.96rem;
  }

  .home-projects-section {
    margin-top: 2.7rem;
  }

  .home-projects-header {
    gap: 0.65rem;
    align-items: end;
  }

  .home-projects-header h2 {
    font-size: 1.68rem !important;
  }

  .home-publication-item {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    min-height: 0;
  }

  .home-publication-visual {
    width: 100%;
    max-width: 18rem;
    height: 9rem;
    min-height: 9rem;
    justify-self: start;
    aspect-ratio: auto;
    padding: 0.5rem;
    border: 0;
  }

  .home-publication-visual img {
    max-height: none;
  }

  .home-publication-content {
    padding: 0;
  }

  .home-publication-content h3 {
    font-size: 1.28rem !important;
  }

  .publication-filter {
    gap: 0.5rem;
  }

  .publication-filter__label {
    flex-basis: 100%;
  }

  .publication-filter__button {
    min-height: 2.15rem;
    padding: 0.38rem 0.72rem;
    font-size: 0.8rem;
  }

  .publications ol.bibliography li > .row {
    padding-left: 0;
  }

  .publications ol.bibliography li .col-sm-10 {
    padding-left: 0 !important;
  }

  .publications ol.bibliography li .col-sm-10::before {
    position: static;
    display: inline-block;
    width: auto;
    min-width: 5.8rem;
    margin-bottom: 0.65rem;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
