/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #4d5d70;
  --text-light: #94a3b8;
  --background-primary: #e5e9ee;
  --background-secondary: #dce2e9;
  --background-accent: #d3dce6;
  --border-color: #c2ccd8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Immediate anchor navigation keeps long research sections easy to reach. */
html {
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Modern Button Styles */
.button {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.footer .icon-link {
    font-size: 25px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-block a {
    margin: 8px 4px;
}

.dnerf {
  font-variant: small-caps;
}


/* Hero Section Modernization */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light,
.section.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.teaser {
  font-family: 'Inter', sans-serif;
}


/* Publication Content Styling */
.publication-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
    line-height: 1.1 !important;
}

.publication-banner {
  max-height: 70vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 2rem 0;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

.publication-header .hero-body {
  padding: 6rem 1.5rem 4rem;
}

.publication-authors {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.publication-venue {
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 600;
    background: var(--background-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: inline-block;
}

.publication-awards {
    color: #ef4444;
    width: fit-content;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ef4444;
    margin-top: 1rem;
}

.publication-authors a {
   color: var(--primary-color) !important;
   text-decoration: none;
   font-weight: 600;
   transition: var(--transition);
   position: relative;
}

.publication-authors a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.publication-authors a:hover::after {
    width: 100%;
}

.publication-authors a:hover {
    color: var(--primary-hover) !important;
}

.author-block {
  display: inline-block;
  margin-right: 0.5rem;
}

.publication-banner img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.publication-banner img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Modern Video and Carousel Styling */
.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.publication-video:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.publication-body img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.publication-body img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.results-carousel {
  overflow: hidden;
  padding: 1rem 0;
}

.results-carousel .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.results-carousel .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.results-carousel .item img,
.results-carousel video {
  margin: 0;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.results-carousel .subtitle {
  font-size: 1rem !important;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 500;
}

/* Pagination and Misc Improvements */
.slider-pagination .slider-page {
  background: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.slider-pagination .slider-page.is-active {
  background: var(--primary-hover);
  transform: scale(1.2);
}

.eql-cntrb { 
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Section Titles */
.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-primary);
  margin-bottom: 2rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Content Improvements */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 1.5rem;
}

/* Footer Improvements */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer .content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* BibTeX Styling */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: var(--background-accent) !important;
  color: var(--text-primary) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

/* BibTeX Section Improvements */
.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.copy-bibtex-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-bibtex-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.copy-bibtex-btn.copied {
  background: #10b981;
}

.copy-bibtex-btn.copied .copy-text::after {
  content: "ied!";
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-header .hero-body {
    padding: 3rem 1rem 2rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .publication-authors {
    font-size: 1rem !important;
  }
  
  .button {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }
  
  .more-works-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
  
  .results-carousel .item {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .teaser .hero-body {
    padding: 1rem;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2rem !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .more-works-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body {
    padding: 3rem 2rem;
  }
  
  .publication-header .hero-body {
    padding: 4rem 2rem 3rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.button:focus,
.related-works-btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
}



/* OptDiff: research content within the Academic Project Page Template. */
.project-name { color: var(--primary-color); font-weight: 700; letter-spacing: .06em; font-size: .85rem; margin-bottom: 1.2rem; }
.project-name span { padding: 0 .4rem; }
.publication-header .hero-body { padding-top: 4.5rem; padding-bottom: 1.25rem; }
.publication-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15 !important; }
.author-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.2rem; margin-bottom: .8rem; }
.author-block { white-space: nowrap; }
.author-block sup { font-size: .62em; padding-left: .12rem; }
.affiliations { color: var(--text-secondary); line-height: 1.8; }
.eql-cntrb { color: var(--text-secondary); margin-top: .5rem; }
.publication-venue { margin: .8rem 0 .5rem; padding: .25rem .8rem; font-size: .85rem; }
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; }
.button-detail { font-size: .72em; font-weight: 400; margin-left: .6rem; opacity: .85; }
.availability-note { font-size: .8rem; color: var(--text-secondary); margin-top: .25rem; }
.section-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.5rem; padding-top: 1.8rem; font-size: .85rem; }
.section-nav a { color: var(--text-secondary); }
.section-nav a:hover { color: var(--primary-color); }
.section { padding: 3.5rem 1.5rem; scroll-margin-top: 1rem; }
.teaser .hero-body { padding-top: 1rem; padding-bottom: 3rem; }
.title.is-3::after { background: var(--primary-color); }
.section-intro { max-width: 760px; margin: 0 auto 2rem; font-size: 1.1rem; line-height: 1.8; text-align: center; color: var(--text-secondary); }
.content.has-text-justified { text-align: left !important; color: var(--text-primary); }
.paper-figure { margin: 2rem 0; }
#noise-schedule-figure, #sampler-descent-figure { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.teaser .paper-figure { margin: 0; }
.figure-link { display: block; background: white; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.figure-link img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 1rem; color: var(--text-secondary); font-size: .92rem; line-height: 1.7; }
figcaption strong { color: var(--text-primary); }
figcaption a { white-space: nowrap; }
.compact-figure { max-width: 670px; margin: 0 auto; }
.insight { border-top: 2px solid var(--border-color); padding-top: 1.2rem; height: 100%; }
.step-number { color: var(--primary-color); font-size: .85rem; font-weight: 700; display: block; margin-bottom: .6rem; }
.insight .title { margin-bottom: .7rem; }
.insight p { color: var(--text-secondary); }
.motivation-challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.challenge-card { padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 8px; }
.challenge-card .title { display: flex; align-items: center; gap: .7rem; line-height: 1.4; margin-bottom: .75rem; }
.challenge-icon { width: 1.65rem; height: 1.65rem; flex-shrink: 0; color: var(--primary-color); }
.challenge-card p, .motivation-approach p { color: var(--text-secondary); line-height: 1.75; }
.motivation-approach { margin-top: 1.25rem; padding: 1.5rem; border-left: 3px solid var(--primary-color); border-radius: 4px; background: transparent; }
.motivation-approach .title { margin-bottom: .75rem; }
@media screen and (max-width: 768px) {
 .motivation-challenges { grid-template-columns: 1fr; }
 .challenge-card, .motivation-approach { padding: 1.25rem; }
}
.pipeline { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pipeline li { counter-increment: step; border-left: 3px solid var(--primary-color); padding-left: 1rem; }
.pipeline li::before { content: '0' counter(step); color: var(--primary-color); font-size: .8rem; font-weight: 700; }
.pipeline li > strong, .pipeline li > span { display: block; margin-top: .4rem; }
.pipeline span { color: var(--text-secondary); font-size: .95rem; }
.hero .pipeline .method-detail-link { color: var(--primary-color); text-decoration: underline; text-underline-offset: .2em; display: inline-block; margin-top: .75rem; font-size: .85rem; font-weight: 600; }
.pipeline .method-detail-link span { color: inherit; font-size: inherit; }
.contribution h3[id] { scroll-margin-top: 5.5rem; }
.contribution + .contribution { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border-color); }
.contribution .title, .result-section .title { line-height: 1.35; margin-bottom: 1rem; }
.contribution p, .result-section > p { line-height: 1.8; margin-bottom: 1rem; }
.research-note { padding: 1.1rem 1.3rem; border-left: 3px solid #94a3b8; background: var(--background-accent); font-size: .95rem; color: var(--text-secondary); }
.equation { overflow-x: auto; padding: 1.5rem .5rem; margin: 1.3rem 0; background: var(--background-secondary); border: 1px solid var(--border-color); border-radius: 8px; font-size: 1.15rem; }
.equation math { margin: 0 auto; }
.equation-key { text-align: center; color: var(--text-secondary); font-size: .85rem; }
details { margin-top: 1.2rem; border: 1px solid var(--border-color); border-radius: 8px; }
summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--primary-color); }
.detail-body { padding: 0 1.2rem .5rem; }
.covariance-details > h4 { margin-top: 2rem; }
.covariance-details > h4:first-child { margin-top: .5rem; }
.covariance-details .equation-key { margin-top: -.6rem; }
.covariance-connection { margin: 2rem 0 1rem; padding: 1.5rem; border-left: 3px solid var(--primary-color); border-radius: 4px; background: var(--background-secondary); }
.covariance-connection p:last-child { margin-bottom: 0; }
.covariance-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1.25rem 0; }
.covariance-comparison dt { font-weight: 700; color: var(--primary-color); margin-bottom: .4rem; }
.covariance-comparison dd { margin: 0; line-height: 1.7; }
@media screen and (max-width: 768px) {
 .covariance-comparison { grid-template-columns: 1fr; gap: 1rem; }
 .covariance-connection { padding: 1rem; }
}

.result-highlights { margin: 1.5rem 0 2.5rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.result-highlights .column { padding: 1rem; }
.result-highlights p { color: var(--text-secondary); font-size: .9rem; }
.result-highlights .result-value { color: var(--primary-color); font-size: 2rem; font-weight: 800; margin-bottom: .3rem; }
.result-section + .result-section { margin-top: 3.5rem; }
.table-container { margin-top: 1.5rem; max-width: 100%; border-radius: 8px; border: 1px solid var(--border-color); background: white; }
.research-table { font-size: .92rem; margin: 0; }
.research-table caption { text-align: left; font-size: .85rem; color: var(--text-secondary); padding: 1rem; background: white; }
.research-table td, .research-table th { padding: .8rem 1rem; white-space: nowrap; vertical-align: middle; }
.research-table thead { background: var(--background-accent); }
.research-table tbody th { font-weight: 500; }
.research-table .ours { background: #eff6ff; }
.research-table .ours th { color: var(--primary-color); font-weight: 700; }
.research-table span { color: var(--text-secondary); }
p.table-note { color: var(--text-secondary); font-size: .8rem; margin-top: .75rem; line-height: 1.7; }
.bibtex-header { margin-bottom: .5rem; gap: 1rem; }
.bibtex-header .title.is-3 { margin-bottom: 0 !important; padding-bottom: 0; }
.bibtex-header .title::after { display: none; }
.citation-note { margin-bottom: 1rem; color: var(--text-secondary); font-size: .9rem; }
.copy-bibtex-btn.copied .copy-text::after { content: none; }
#copy-status { min-height: 1.6em; font-size: .85rem; margin-top: .5rem; color: var(--text-secondary); }
.funding { color: var(--text-secondary); font-size: .95rem; line-height: 1.8; }
.footer { font-size: .8rem; padding: 2rem 1.5rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { display: block; padding: 1rem; background: white; }
button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
@media screen and (max-width: 768px) {
  .pipeline { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 1.1rem; }
  .section-intro { font-size: 1rem; text-align: left; }
  .publication-header .hero-body { padding: 3.5rem 1.1rem 1rem; }
  .publication-title { font-size: 2rem !important; }
  .author-list { gap: .4rem .9rem; }
  .teaser .hero-body { padding: 1rem 1.1rem 2rem; }
  .link-block { display: inline-block; margin: 0; }
  .publication-links .button { width: auto; }
  .result-highlights .column { padding: .7rem; }
  .result-highlights .result-value { font-size: 1.7rem; }
  .copy-bibtex-btn { white-space: nowrap; padding: .7rem; }
  .equation { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .section-nav, .scroll-to-top, .copy-bibtex-btn { display: none; } }
/* Bulma hero containers must be allowed to shrink around wide scientific tables. */
.section > .container { width: 100%; min-width: 0; }
@media screen and (max-width: 768px) {
  .columns.is-variable.motivation-grid { margin-left: 0; margin-right: 0; }
  .columns.is-variable.motivation-grid > .column { padding-left: 0; padding-right: 0; }
}

/* Publication status and forthcoming code release. */
.affiliations span { display: inline-block; margin: 0 .5rem; }
.publication-links .code-placeholder { margin: 8px 4px; opacity: 1; background: #e2e8f0 !important; color: #475569 !important; box-shadow: none; cursor: not-allowed; }
.publication-links .code-placeholder:hover { transform: none; box-shadow: none; }

/* Softer reading surfaces; scientific image pixels keep their original colors. */
html { background: var(--background-primary); }
.table-container, .research-table, .research-table caption { background: var(--background-primary); }
.research-table td, .research-table th { border-color: var(--border-color); }
.research-table .ours { background: #d4e2f1; }
.skip-link:focus { background: var(--background-primary); }

/* Consistent result comparisons with progressive task selection. */
.schedule-comparisons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.schedule-comparisons .research-table { font-size: .82rem; }
.schedule-comparisons .research-table td, .schedule-comparisons .research-table th { padding: .7rem .65rem; }
.result-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; padding-bottom: .8rem; border-bottom: 1px solid var(--border-color); }
.result-tabs button { font: inherit; font-weight: 600; padding: .65rem 1rem; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); background: var(--background-primary); cursor: pointer; }
.result-tabs button[aria-selected="true"] { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.task-panel { min-width: 0; }
.task-panel > p { color: var(--text-secondary); margin-bottom: 1rem; }
.setting-control { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 1.3rem 0; }
.setting-control label { font-size: .9rem; font-weight: 600; }
.setting-control select { font: inherit; padding: .55rem 2rem .55rem .7rem; max-width: 100%; color: var(--text-primary); background: var(--background-primary); border: 1px solid var(--border-color); border-radius: 6px; }
.result-setting { margin-top: 1.5rem; }
.result-setting .table-container { margin-top: .75rem; }
.result-finding { margin-top: 1rem; line-height: 1.8; }
.research-table .unreported { font-size: .8rem; color: var(--text-secondary); }
.results-explorer [hidden] { display: none !important; }
@media screen and (max-width: 768px) {
 .schedule-comparisons { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
 .result-tabs button { padding: .6rem .7rem; font-size: .9rem; }
}

/* Persistent reading-version navigation, shared by both pages. */
.reading-bar { position: sticky; top: 0; z-index: 1001; background: var(--background-primary); border-bottom: 1px solid var(--border-color); }
.reading-switch { max-width: 960px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; justify-content: flex-end; gap: .8rem; }
.reading-label { color: var(--text-secondary); font-size: .8rem; }
.reading-options { display: inline-flex; gap: .2rem; padding: .2rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--background-secondary); }
.reading-options a { display: block; padding: .45rem .8rem; border-radius: 5px; color: var(--text-secondary); font-size: .85rem; font-weight: 600; text-decoration: none; }
.reading-options a:hover { background: var(--background-accent); color: var(--text-primary); }
.reading-options a[aria-current="page"] { background: var(--primary-color); color: white; }
.reading-options a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
main > section[id], .paper-figure[id], #main-content { scroll-margin-top: 5.5rem; }
@media screen and (max-width: 480px) {
 .reading-switch { justify-content: center; padding: .4rem .65rem; }
 .reading-label { display: none; }
 .reading-options a { min-height: 44px; display: flex; align-items: center; }
}
@media print { .reading-bar { display: none; } }

/* Reading guidance, numbered references, and optional learning resources. */
.reading-note { max-width: 780px; margin: 1.5rem auto 0; padding: 1rem 1.2rem; border-left: 3px solid var(--primary-color); border-radius: 4px; background: var(--background-secondary); color: var(--text-secondary); font-size: .9rem; line-height: 1.7; text-align: left; }
.reference-cite { white-space: nowrap; font-size: .85em; font-weight: 500; }
.reference-list { list-style: decimal; padding-left: 1.6rem; margin: 1rem 0 0; font-size: .8rem; line-height: 1.4; }
.reference-list li { padding: .1rem .25rem; margin-bottom: .25rem; overflow-wrap: anywhere; }
.reference-list li::marker { color: var(--text-secondary); }
.reference-list li, .reference-cite { scroll-margin-top: 6rem; }
.reference-list li:target { background: var(--background-accent); border-radius: 5px; }
.reference-back { display: inline-block; padding: 0 .4rem; text-decoration: none; }
.resources-intro { margin-bottom: 1.5rem; color: var(--text-secondary); }
.learning-resources { list-style: none; margin: 0; padding: 0; }
.learning-resources > li { border-top: 1px solid var(--border-color); padding: 1.1rem 0; }
.learning-resources h3 { font-size: 1rem; font-weight: 600; line-height: 1.5; margin: 0 0 .25rem; }
.learning-resources p { font-size: .92rem; line-height: 1.55; margin: .3rem 0 0; }
.learning-resources .resource-meta { color: var(--text-secondary); font-size: .8rem; }
.resources-return { margin-top: 2rem; }
@media screen and (max-width: 768px) {
 .reading-note { padding: .85rem 1rem; }
}

#resources .learning-resources a, #resources .resources-return a { color: var(--primary-color); text-decoration: underline; text-underline-offset: .2em; }

/* Results overview links target the corresponding detailed experiments. */
.result-section[id] { scroll-margin-top: 5.5rem; }

/* Compact ranking legend beneath each result table. */
.table-with-note { min-width: 0; }
.table-with-note .table-container, .result-setting .table-container { margin-bottom: 0; }
p.table-ranking-note { color: var(--text-secondary); font-size: .72rem; line-height: 1.45; margin: .45rem 0 0; }

#abstract a.result-link { color: var(--primary-color); text-decoration: underline; text-underline-offset: .15em; }


/* Section navigation: a reserved desktop rail and a compact mobile menu. */
.page-nav { position: sticky; top: 0; z-index: 1002; background: #526b87; border-bottom: 1px solid #6c829b; }
.page-nav nav { padding: .8rem 1rem; }
.page-nav-label { color: #e0e9f4; font-size: .95rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 .7rem; padding-left: .75rem; }
.page-nav ul { list-style: none; margin: 0; padding: 0; }
.page-nav a { display: block; padding: .4rem .7rem; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; font-size: .83rem; line-height: 1.45; color: #f0f4fa; text-decoration: none; }
.page-nav a:hover { background: #607b99; color: #ffffff; }
.page-nav a[aria-current="location"] { border-left-color: #a6ccff; background: #405c7b; color: #ffffff; font-weight: 600; }
.page-nav a.is-parent { color: #ffffff; font-weight: 600; }
.page-nav ul ul { margin: .15rem 0 .4rem .65rem; }
.page-nav ul ul a { font-size: .75rem; }
.page-nav-toggle { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 0; background: #526b87; color: #ffffff; font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.page-nav-toggle[hidden] { display: none; }
.page-nav-current { margin-left: auto; color: #bfdaff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.page-nav-toggle > span:first-child { flex-shrink: 0; }
.page-nav a:focus-visible, .page-nav-toggle:focus-visible { outline: 2px solid #a6ccff; outline-offset: -2px; }
.has-page-nav #paper-title, .has-page-nav .contribution h3[id] { scroll-margin-top: 5.5rem; }
@media screen and (max-width: 1199px) {
 .page-nav.nav-ready:not(.is-open) nav { display: none; }
 .page-nav.nav-ready nav { max-height: calc(100dvh - 3.5rem); overflow-y: auto; }
}
@media screen and (min-width: 1200px) {
 .has-page-nav > main, .has-page-nav > footer { margin-left: 230px; }
 .page-nav { position: fixed; inset: 0 auto 0 0; width: 230px; overflow-y: auto; border-bottom: 0; border-right: 1px solid #6c829b; }
 .page-nav nav { padding: 2rem .8rem; }
 .page-nav-toggle { display: none; }
}
@media print {
 .page-nav { display: none; }
 .has-page-nav > main, .has-page-nav > footer { margin-left: 0; }
}

/* Abstract audience switch */
.abstract-switch { display: flex; justify-content: center; gap: .25rem; margin: 0 auto 1.5rem; padding: .25rem; width: fit-content; max-width: 100%; border: 1px solid #aab9ca; border-radius: 999px; background: #d7e0e9; }
.abstract-switch button { border: 0; border-radius: 999px; padding: .6rem 1rem; background: transparent; color: #344a62; font: inherit; font-size: .9rem; cursor: pointer; }
.abstract-switch button[aria-pressed="true"] { background: #486581; color: white; }
.abstract-switch button:focus-visible { outline: 2px solid #244c76; outline-offset: 3px; }
#abstract [hidden] { display: none; }
