/* ASCII display - white terminal look */
#display-container.ascii-display {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 8px;
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.1),
    0 0 32px rgba(0, 0, 0, 0.05);
}
#display-container .ascii-viewport {
  background: #f8f9fa;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.05),
    0 0 10px rgba(0, 0, 0, 0.05);
}
#ascii-layer {
  background: #f8f9fa;
}
#display-container .ascii-toggle {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 4px;
  gap: 6px;
}
.ascii-toggle-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #64748b;
  background: rgba(248, 249, 250, 0.8);
}
.ascii-toggle-btn.active {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}
.ascii-toggle-btn:hover {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.5);
}
/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-body: #374151;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --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);
  --page-max-width: 1200px;
  --page-max-width-wide: 1400px;
  --page-padding-desktop: 20px;
  --page-padding-tablet: 20px;
  --page-padding-mobile: 18px;
}

/* Smooth scrolling for better UX - Override Bulma */
html {
  scroll-behavior: smooth !important;
  background-color: #f5f5f7 !important; /* Override Bulma's white background (#fff) */
  font-size: 16px !important;
  -moz-osx-font-smoothing: grayscale !important;
  -webkit-font-smoothing: antialiased !important;
  min-width: 300px !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  text-rendering: optimizeLegibility !important;
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

/* Body styles - Override Bulma framework styles */
body {
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
  background-color: #ffffff !important; /* White background */
  color: #1d1d1f !important; /* Override Bulma's #4a4a4a */
  margin: 0 !important; /* Override Bulma and user agent (8px) */
  padding: 0 !important;
  line-height: 1.6 !important; /* Override Bulma's 1.5 */
  font-size: 1em !important; /* Match Bulma but ensure our font-family takes precedence */
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: block !important; /* Override user agent */
}

/* Override Bulma's font-family for form elements - Ensure consistent font across all elements */
body, button, input, optgroup, select, textarea {
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
}

/* Override Bulma's margin/padding reset for specific elements if needed */
blockquote, dd, dl, dt, fieldset, figure, h1, h2, h3, h4, h5, h6, hr, iframe, legend, li, ol, p, pre, textarea, ul {
  margin: 0;
  padding: 0;
}


/* 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;
}

/* Only apply .is-dark styles if NOT .apple-button */
.button.is-dark:not(.apple-button) {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

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

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

/* Apple-style Buttons - Glassmorphism with Dark Blue Semi-transparent */
.button.is-dark.apple-button,
.apple-button {
  /* Glassmorphism effect - Dark blue semi-transparent */
  font-family: 'Space Mono', 'Courier New', monospace !important;
  background: rgba(0, 26, 51, 0.6) !important; /* Dark blue (#001a33) semi-transparent */
  backdrop-filter: blur(20px) saturate(180%) !important; /* Glass blur effect */
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important; /* Safari support */
  color: #ffffff !important; /* White text for contrast */
  border-radius: 980px !important; /* Apple's pill shape */
  padding: 12px 24px !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  border: 1px solid rgba(0, 26, 51, 0.5) !important; /* Dark blue border */
  box-shadow: 
    0 4px 16px rgba(0, 26, 51, 0.3),
    0 1px 3px rgba(0, 26, 51, 0.2) !important; /* Dark blue shadows */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  /* Override any conflicting styles */
  overflow: visible !important;
}

.button.is-dark.apple-button:hover,
.apple-button:hover {
  background: rgba(0, 26, 51, 0.7) !important; /* Darker blue on hover */
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 8px 24px rgba(0, 26, 51, 0.4),
    0 2px 6px rgba(0, 26, 51, 0.3) !important; /* Darker blue shadows */
  border-color: rgba(0, 26, 51, 0.6) !important; /* Darker border on hover */
}

.button.is-dark.apple-button:active,
.apple-button:active {
  transform: translateY(0) !important;
  box-shadow: 
    0 2px 8px rgba(0, 26, 51, 0.3) !important; /* Dark blue shadow */
  background-color: rgba(0, 26, 51, 0.65) !important; /* Slightly lighter when pressed */
}

/* Paper Button - Dark Navy Blue */
.paper-button {
  background: #1a1a2e !important; /* Dark navy blue */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.paper-button:hover {
  background: #16213e !important; /* Slightly lighter on hover */
  box-shadow: 
    0 8px 24px rgba(26, 26, 46, 0.4),
    0 2px 6px rgba(26, 26, 46, 0.3) !important;
}

.paper-button:active {
  background: #0f1419 !important; /* Darker when pressed */
  box-shadow: 
    0 2px 8px rgba(26, 26, 46, 0.3) !important;
}

/* Coming Soon Buttons (Code and arXiv) */
.coming-soon-button {
  background: rgba(0, 26, 51, 0.3) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 26, 51, 0.3) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.coming-soon-button:hover {
  background: rgba(0, 26, 51, 0.35) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(0, 26, 51, 0.4) !important;
  transform: none !important;
}

.coming-soon-button:active {
  background: rgba(0, 26, 51, 0.3) !important;
  transform: none !important;
}

.coming-soon-button .icon {
  opacity: 0.6;
}

.coming-soon-text {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.25rem;
  font-weight: 400;
}

.apple-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Reduced: 12px→10px */
  margin-top: 0; /* Controlled by abstract margin */
  text-align: left;
}

/* Abstract - Back to Left Panel */
.apple-abstract {
  margin: 28px 0 24px; /* Increased vertical spacing */
  text-align: left;
  padding-top: 0;
  border-top: none;
}

.apple-abstract p {
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.98rem, 1vw + 0.45rem, 1.15rem) !important; /* Slightly smaller */
  line-height: 1.85; /* Increased line spacing */
  color: var(--text-body); /* Unified body text color */
  font-weight: 400; /* Regular weight */
  margin: 0;
  letter-spacing: normal;
}

.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;
}


/* Apple-style Hero Section */
.apple-hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f7;
  /* Prevent flex from stretching content vertically */
  align-content: flex-start;
  justify-content: flex-start;
  padding-bottom: 0;
}

/* Full-width Title Container */
.apple-title-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px var(--page-padding-desktop) 30px;
  text-align: left;
  /* Prevent flex layout from stretching the container */
  flex-shrink: 0;
  align-self: flex-start; /* Align to top, don't stretch */
}

/* Conference Badge */
.conference-badge {
  display: inline-block;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 12px; /* Reduced: 16px→12px */
  padding: 6px 12px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

.hero-split-container {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  flex: 0 0 auto;
  align-items: flex-start; /* Align to top instead of stretching */
  align-content: flex-start; /* Compact vertical alignment */
}

/* Left Panel: Information Console */
.hero-left-panel {
  flex: 1 1 50%; /* Balanced 50/50 layout */
  min-width: 0; /* Allow flex shrinking */
  display: flex;
  align-items: flex-start; /* Align to top to match image */
  justify-content: flex-start;
  padding: 40px var(--page-padding-desktop) 20px;
  background-color: #f5f5f7;
}

.hero-content-wrapper {
  max-width: 100%;
  width: 100%;
  min-width: 0; /* Allow flex shrinking */
  text-align: left;
  /* Strict left alignment with generous vertical spacing */
  display: flex;
  flex-direction: column;
  gap: 0; /* Controlled spacing via individual margins */
  /* Align to top */
  justify-content: flex-start;
}

/* Right Panel: Visual Window */
.hero-right-panel {
  flex: 1 1 50%; /* Balanced 50/50 layout */
  min-width: 0; /* Allow flex shrinking */
  display: flex;
  align-items: flex-start; /* Align to top to match authors */
  justify-content: center;
  padding: 40px var(--page-padding-desktop) 20px;
  background-color: #f5f5f7;
  position: relative;
  overflow: hidden;
  /* Visual balance - align with left panel */
  align-self: stretch;
}

.apple-image-container {
  width: 100%;
  display: flex;
  align-items: flex-start; /* Align image to top */
  justify-content: center;
  position: relative;
  margin-top: 0; /* Ensure no extra top margin */
}

.apple-teaser-image {
  width: 100%;
  height: auto;
  max-height: 95vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0;
}

.apple-teaser-image:hover {
  transform: none;
  box-shadow: none;
}

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

.hero.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: 'Karla', sans-serif;
}


/* Publication Content Styling */
.publication-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 30px !important;
    line-height: 1.1 !important;
    background: linear-gradient(180deg, #111 0%, #333 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Apple-style Title - Responsive with clamp() - Higher priority to override .publication-title */
.publication-title.apple-title,
.apple-title {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
    font-size: clamp(2rem, 3vw + 1rem, 3.2rem) !important; /* Reduced: 2rem on small, 3.2rem on large - less overwhelming */
    font-weight: 800 !important; /* Slightly lighter than 900 */
    letter-spacing: -0.04em !important; /* Slightly looser tracking */
    margin: 0 !important; /* Reset all margins to prevent browser default spacing */
    margin-top: 0 !important; /* Explicitly reset top margin */
    margin-bottom: 0 !important; /* Explicitly reset bottom margin */
    line-height: 1 !important; /* Very tight line height - no extra space */
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    background: none !important; /* Override gradient */
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-align: left !important;
    word-break: keep-all;
    overflow-wrap: break-word;
    /* Prevent flex layout from stretching the title */
    flex-shrink: 0;
}

/* Title Main - VisGym */
.publication-title.apple-title .title-main,
.apple-title .title-main {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem) !important; /* Reduced: 2rem on small, 3.5rem on large (was 4rem) */
    font-weight: 900 !important; /* Ultra bold */
    color: #001a33 !important; /* Navy blue - deep dark blue (墨蓝) */
    -webkit-text-fill-color: #001a33 !important;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.1 !important; /* Improved readability */
    margin: 0 !important; /* Reset all margins */
    margin-bottom: -0.15em !important; /* More negative margin to pull subtitle closer */
    padding: 0; /* Reset all padding */
    padding-bottom: 0;
}

.apple-title .title-main img {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
}

/* Title Subtitle - Detailed description */
.publication-title.apple-title .title-subtitle,
.apple-title .title-subtitle {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(1.2rem, 2vw + 0.6rem, 1.8rem) !important; /* Increased: 1.2rem on small, 1.8rem on large (was 1.6rem) */
    font-weight: 500 !important; /* Medium weight - lighter than main */
    color: #424245 !important; /* Medium gray - softer than main */
    -webkit-text-fill-color: #424245 !important;
    display: block;
    line-height: 1.1 !important; /* Tighter line height */
    letter-spacing: -0.01em;
    margin: 0 !important; /* Reset all margins */
    margin-top: 0 !important;
    padding: 0; /* Reset all padding */
    padding-top: 0;
}

.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: 'Karla', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    margin-bottom: 10px !important;
    color: #444 !important;
}

/* Authors Block Module - Blocked with Accent Line */
.authors-block-module {
    position: relative;
    padding-left: 24px; /* Space for accent line */
    margin-bottom: 32px; /* Reduced: 50px→32px */
    padding-top: 4px;
    padding-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Blue line that runs through entire module */
.authors-block-module::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #003262 0%, #1e88e5 100%); /* Berkeley Blue gradient */
    border-radius: 2px;
}

/* Apple-style Authors - Natural Flow */
.apple-authors {
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.35rem) !important; /* Responsive font size */
    font-weight: 600 !important; /* Bold names */
    margin-bottom: 12px !important; /* Reduced: 20px→12px */
    color: #1d1d1f !important; /* Darker for weight */
    line-height: 1.7 !important; /* Reduced: 1.8→1.7 */
    text-align: left !important;
    /* Natural flow - let names wrap naturally */
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Ensure container allows horizontal flow */
    width: 100%;
    max-width: 100%;
}

/* Author block - merged definition */
.author-block {
    display: inline !important; /* Force inline - prevent vertical stacking */
    white-space: normal; /* Allow wrapping between blocks */
    margin-right: 0.3rem; /* Tighter spacing */
}

.apple-affiliations {
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(1.1rem, 1.4vw + 0.5rem, 1.4rem) !important; /* Increased: 1.25rem→1.4rem for larger text */
    color: #003262 !important; /* Berkeley Blue */
    font-weight: 600 !important; /* Bold */
    margin-bottom: 4px !important; /* Reduced: 8px→4px */
    text-align: left !important;
    padding-bottom: 0;
    /* Ensure proper alignment within the blue line module */
    display: flex;
    flex-direction: column;
}

/* Affiliation Group - University + Lab Logos */
.affiliation-group {
    display: flex;
    align-items: center; /* Perfect vertical center alignment */
    gap: 20px; /* Increased: 16px→20px for more spacing between UC Berkeley and logos */
    flex-wrap: wrap;
    margin-bottom: 0; /* No bottom margin since eql-cntrb is above now */
    margin-top: 4px; /* Add top margin for spacing from eql-cntrb */
    /* Ensure visual center alignment between text and logos */
    min-height: 40px; /* Minimum height for consistent alignment */
}

.lab-logos {
    display: flex;
    align-items: center; /* Perfect center alignment with UC Berkeley */
    gap: 20px; /* Increased: 14px→20px for more spacing between logos */
    /* Match the visual center line of text */
    height: fit-content;
}

.lab-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Full color - no grayscale */
    opacity: 1;
}

.lab-logo:hover {
    opacity: 0.9; /* Slight fade on hover */
    transform: translateY(-1px);
}

.lab-logo-img {
    height: 42px; /* Increased: 36px→42px for larger logos */
    width: auto;
    max-width: 180px; /* Increased: 150px→180px */
    object-fit: contain;
    display: block;
}

.apple-affiliations .eql-cntrb {
    font-family: 'Space Mono', 'Courier New', monospace !important;
    color: #86868b !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    margin-top: 0; /* At the top now */
    margin-bottom: 0;
    display: block;
    /* Align with affiliation-group start */
    margin-left: 0;
    padding-left: 0;
}

.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: #2563eb !important;
   text-decoration: none;
   transition: color 0.2s ease;
   position: relative;
}

.publication-authors a:hover {
    color: #1e40af !important;
}

.apple-authors a {
   color: #1d1d1f !important; /* Dark for weight */
   text-decoration: none;
   transition: color 0.2s ease;
   font-weight: 600 !important; /* Bold links */
   display: inline !important; /* Ensure inline - prevent block stacking */
   white-space: nowrap; /* Keep names together */
}

.apple-authors a:hover {
    color: #003262 !important; /* Berkeley Blue on hover */
    text-decoration: none;
}

.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;
}

/* Affiliations and Conference Info Styling */
.affiliations {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 5px;
  font-weight: 300;
}

.conference-info {
  font-family: 'Inter', monospace; /* 稍微换个字体风格区分 */
  font-size: 1rem;
  color: #d97706; /* 强调色，例如琥珀色或深红 */
  font-weight: 600;
  margin-top: 10px;
}

/* Section Titles */
.title.is-3 {
  font-family: 'Space Grotesk', '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-family: 'Karla', sans-serif;
  font-size: 1.18rem !important;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: left !important;
  text-justify: auto;
  letter-spacing: normal;
  word-spacing: normal;
}

/* Abstract Highlighting - Core Contributions (Berkeley Gold) */
.content.has-text-justified .highlight-contribution {
  color: #003262 !important; /* Berkeley Blue */
  font-weight: 700 !important; /* Bold */
}

/* Abstract Highlighting - Negative Results (Dark Gray) */
.content.has-text-justified .highlight-negative {
  color: #555 !important; /* Dark gray */
  font-weight: 700 !important; /* Bold */
}

/* Abstract Statistics - Easy (Blue) and Hard (Red) */
.content.has-text-justified .stat-easy {
  color: #1e88e5 !important; /* Blue */
  font-weight: 700 !important; /* Bold */
}

.content.has-text-justified .stat-hard {
  color: #e53e3e !important; /* Red */
  font-weight: 700 !important; /* Bold */
}

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

/* Abstract Section - Full Width */
section.hero.is-light {
  padding-bottom: 0 !important; /* Remove bottom padding to make it tight with dashboard */
  margin-bottom: 0 !important; /* Remove bottom margin */
}

section.hero.is-light .container.is-max-desktop {
  max-width: 100% !important;
  width: 100%;
  padding-left: var(--page-padding-desktop);
  padding-right: var(--page-padding-desktop);
  padding-bottom: 0 !important; /* Remove bottom padding */
}

section.hero.is-light .columns.is-centered {
  max-width: 100%;
}

section.hero.is-light .column.is-four-fifths {
  flex: none;
  width: 100% !important;
  max-width: 100% !important;
}

/* Abstract Title - Left Aligned with Blue Underline */
section.hero.is-light .title.is-3 {
  text-align: left !important;
}

section.hero.is-light .title.is-3::after {
  left: 0 !important; /* Align to left instead of center */
  transform: none !important; /* Remove centering transform */
  background: linear-gradient(90deg, #003262 0%, #1e88e5 100%) !important; /* Berkeley Blue gradient */
}

/* Understanding How Multimodal Agents Fail Section */
.understanding-failures-section {
  background-color: #ffffff;
  padding: 4rem 0;
  position: relative;
}

.understanding-failures-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.understanding-failures-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

@media screen and (max-width: 768px) {
  /* Leaderboard: tighten spacing on mobile */
  .leaderboard-section {
    padding: 16px 0;
    margin: 0;
  }
  .leaderboard-wrapper {
    padding: 0 10px;
  }
  .leaderboard-header {
    margin-bottom: 12px;
  }
  .leaderboard-title {
    font-size: clamp(1.1rem, 3vw + 0.6rem, 1.4rem);
    margin-bottom: 8px;
  }
  .leaderboard-title::after {
    bottom: -6px;
  }
  .leaderboard-description,
  .leaderboard-intro,
  .leaderboard-subtitle {
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
  }
  .leaderboard-visual {
    margin-top: 10px;
  }
  .leaderboard-image-container {
    padding: 0;
    margin: 0;
  }
  /* Hero section mobile optimization */
  .apple-hero {
    min-height: auto;
  }
  
  .hero-split-container {
    flex-direction: column !important;
    gap: 0;
    display: flex !important;
  }
  
  .hero-left-panel {
    padding: 32px var(--page-padding-mobile) 16px !important;
    order: 1;
    width: 100% !important;
  }

  /* Mobile: Hide buttons inside left panel */
  .hero-left-panel .apple-links {
    display: none !important;
  }

  /* Mobile: Show teaser image after abstract, before buttons */
  .hero-right-panel {
    padding: 0 var(--page-padding-mobile) 16px !important;
    order: 2;
    width: 100% !important;
  }
  
  /* Mobile: Show buttons container after teaser image */
  .hero-buttons-mobile-container {
    display: block !important;
    width: 100%;
    background-color: #f5f5f7;
    padding: 0 var(--page-padding-mobile) 20px !important;
  }
  
  /* Ensure proper order in apple-hero */
  .apple-hero > .hero-split-container {
    order: 1;
  }
  
  .apple-hero > .hero-buttons-mobile-container {
    order: 2;
  }
  
  /* Mobile: Lab logos stay in affiliation-group, no separate container needed */
  
  /* Ensure apple-hero contains all elements in correct order */
  .apple-hero {
    display: flex;
    flex-direction: column;
  }
  
  .apple-title-container {
    padding: 20px 16px 16px !important;
  }
  
  .apple-title .title-main {
    font-size: clamp(1.5rem, 6vw + 0.5rem, 2rem) !important;
  }
  
  .apple-title .title-subtitle {
    font-size: clamp(0.9rem, 3vw + 0.5rem, 1.1rem) !important;
    line-height: 1.3 !important;
  }
  
  .apple-authors {
    font-size: clamp(0.75rem, 2vw + 0.5rem, 0.9rem) !important;
    line-height: 1.5 !important;
  }
  
  .apple-affiliations {
    font-size: clamp(0.7rem, 2vw + 0.4rem, 0.85rem) !important;
    margin-top: 12px !important;
  }
  
  .apple-abstract {
    margin: 24px 0 !important;
  }
  
  .apple-abstract p {
    font-size: clamp(0.95rem, 2vw + 0.5rem, 1.05rem) !important;
    line-height: 1.8 !important;
  }
  
  /* Mobile: Keep lab logos in affiliation-group, adjust layout */
  .affiliation-group {
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
  }
  
  .affiliation-group .lab-logos {
    display: flex !important;
    gap: 12px !important;
  }
  
  .affiliation-group .lab-logo-img {
    height: 28px !important;
    max-width: 120px !important;
  }
  
  /* Mobile: Hide separate lab logos container */
  .lab-logos-mobile {
    display: none !important;
  }
  
  .apple-links {
    gap: 8px !important;
    margin-top: 0 !important;
  }
  
  .apple-button {
    font-size: clamp(0.8rem, 2vw + 0.4rem, 0.9rem) !important;
    padding: 10px 18px !important;
    min-height: 44px !important; /* Touch target size */
  }
  
  .apple-teaser-image {
    max-height: 60vh !important;
    width: 100% !important;
  }
  
  .lab-logo-img {
    height: 28px !important;
    max-width: 120px !important;
  }
  
  /* Understanding failures section */
  .understanding-failures-section {
    padding: 2rem 0;
  }
  
  .understanding-failures-content {
    padding: 0 1rem;
  }
  
  .understanding-failures-title {
    font-size: clamp(1.25rem, 5vw + 0.5rem, 1.75rem) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  /* Mobile: Simplified iframe containers - keep horizontal padding, remove vertical padding */
  .embed-shell,
  .dashboard-embed-container {
    width: 100% !important;
    margin: 0 !important;
    padding-left: var(--page-padding-mobile) !important;
    padding-right: var(--page-padding-mobile) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important; /* Allow iframe content to be fully visible */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile: Section containers - minimal padding, allow content to show */
  .task-success-rate-section,
  .key-insights-section,
  .failure-analysis-section {
    padding: 1rem 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile: Simplified iframe styles */
  .dashboard-iframe,
  iframe[src*="task_success_rate"],
  iframe[src*="key_insights"],
  iframe[src*="failure_analysis"],
  .embed-frame {
    width: 100% !important;
    min-height: 0 !important; /* No fixed minimum, let content determine */
    height: auto !important; /* Auto-adjust based on content */
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    overflow: auto !important; /* Allow scrolling when needed */
    flex-shrink: 0 !important;
    flex-grow: 1 !important; /* Allow iframe to grow with content */
    position: relative !important;
  }
  
  .frontier-fail-section .container,
  .understanding-failures-section .container,
  .radar-chart-section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .frontier-fail-title {
    font-size: clamp(1.25rem, 5vw + 0.5rem, 1.75rem) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .frontier-fail-description {
    font-size: clamp(0.9rem, 2vw + 0.4rem, 1.1rem) !important;
    margin: 2.5rem auto !important;
    line-height: 1.5 !important;
  }
  
  .frontier-fail-image-container {
    height: auto !important;
    min-height: 220px !important;
    max-width: 100% !important;
    margin-top: 1rem !important;
    padding: 0 1rem !important;
  }
  
  .frontier-fail-image-container img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  
  .responsive-container,
  .container.is-max-desktop {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Abstract section */
  section.hero.is-light {
    padding: 1.25rem 0 0 0 !important; /* Remove bottom padding on mobile */
    margin-bottom: 0 !important; /* Remove bottom margin */
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  section.hero.is-light .container.is-max-desktop {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  section.hero.is-light .title.is-3 {
    font-size: clamp(1.1rem, 4vw + 0.3rem, 1.3rem) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .content.has-text-justified {
    font-size: clamp(0.875rem, 2vw + 0.3rem, 0.95rem) !important;
    line-height: 1.65 !important;
  }
  
  .content.has-text-justified p {
    margin-bottom: 0 !important;
  }
  
  section.hero.is-light .column.is-four-fifths {
    padding: 0 !important;
    width: 100% !important;
  }
  
  /* Comparison table mobile */
  .comparison-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .comparison-table {
    font-size: 0.7rem !important;
    min-width: 600px !important;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.4rem !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
  }
  
  /* Prevent horizontal scroll on body */
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  /* Hero section small mobile */
  .apple-title-container {
    padding: 24px 12px 12px !important;
  }

  .apple-title .title-main {
    font-size: clamp(1.3rem, 7vw + 0.4rem, 1.8rem) !important;
  }

  .apple-title .title-main img {
    height: 1em !important;
  }

  .apple-title .title-subtitle {
    font-size: clamp(0.85rem, 3vw + 0.4rem, 1rem) !important;
  }

  .hero-left-panel {
    padding: 24px 12px !important;
    width: 100% !important;
  }
  
  .hero-right-panel {
    padding: 0 12px 16px !important;
    width: 100% !important;
  }
  
  .apple-authors {
    font-size: clamp(0.7rem, 2vw + 0.4rem, 0.85rem) !important;
  }
  
  .apple-affiliations {
    font-size: clamp(0.65rem, 2vw + 0.3rem, 0.8rem) !important;
  }
  
  .apple-abstract {
    margin: 20px 0 !important;
  }
  
  .apple-abstract p {
    font-size: clamp(0.9rem, 2vw + 0.4rem, 1.0rem) !important;
    line-height: 1.75 !important;
  }
  
  /* Small mobile: Adjust lab logos size in affiliation-group */
  .affiliation-group .lab-logo-img {
    height: 24px !important;
    max-width: 100px !important;
  }
  
  .affiliation-group {
    gap: 10px !important;
  }
  
  .apple-button {
    font-size: clamp(0.75rem, 2vw + 0.3rem, 0.85rem) !important;
    padding: 8px 16px !important;
  }
  
  .apple-teaser-image {
    max-height: 50vh !important;
    width: 100% !important;
  }
  
  .lab-logo-img {
    height: 24px !important;
    max-width: 100px !important;
  }
  
  /* Understanding failures section */
  .understanding-failures-title,
  .frontier-fail-title {
    font-size: clamp(1.1rem, 6vw + 0.4rem, 1.5rem) !important;
    margin-bottom: 0.5rem !important;
  }
  
  .frontier-fail-description {
    font-size: clamp(0.85rem, 2vw + 0.3rem, 1.0rem) !important;
    margin: 2.5rem auto !important;
  }
  
  /* Small mobile: Simplified iframe containers */
  .embed-shell,
  .dashboard-embed-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 var(--page-padding-mobile) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .dashboard-iframe,
  iframe[src*="task_success_rate"],
  iframe[src*="key_insights"],
  iframe[src*="failure_analysis"],
  .embed-frame {
    width: 100% !important;
    min-height: 0 !important; /* No fixed minimum, let content determine */
    height: auto !important; /* Auto-adjust based on content */
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    overflow: auto !important; /* Allow scrolling when needed */
    flex-shrink: 0 !important;
    flex-grow: 1 !important; /* Allow iframe to grow with content */
    position: relative !important;
  }
  
  .frontier-fail-image-container {
    height: auto !important;
    min-height: 180px !important;
    max-width: 100% !important;
    padding: 0 0.5rem !important;
  }
  
  .frontier-fail-image-container img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  
  .responsive-container,
  .container.is-max-desktop {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  section.hero.is-light {
    padding: 1rem 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  section.hero.is-light .container.is-max-desktop {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  section.hero.is-light .title.is-3 {
    font-size: clamp(1rem, 5vw + 0.2rem, 1.2rem) !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
  }
  
  .content.has-text-justified {
    font-size: clamp(0.8rem, 2vw + 0.25rem, 0.875rem) !important;
    line-height: 1.7 !important;
  }
  
  .content.has-text-justified p {
    margin-bottom: 0 !important;
  }
  
  section.hero.is-light .column.is-four-fifths {
    padding: 0 !important;
    width: 100% !important;
  }
  
  /* Comparison table small mobile */
  .comparison-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .comparison-table {
    font-size: 0.65rem !important;
    min-width: 500px !important;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.4rem 0.3rem !important;
    font-size: 0.65rem !important;
    white-space: nowrap !important;
  }
  
  /* Prevent horizontal scroll on body */
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Frontier VLMs Fail Section */
.frontier-fail-section {
  background-color: #ffffff;
  padding: 3rem 0 1.5rem 0;
  position: relative;
  margin-top: 0 !important; /* Ensure no negative margin that could overlap iframe */
  clear: both !important; /* Ensure it appears below iframe */
}

.frontier-fail-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Unified Main Section Title Style */
.section-main-title,
.frontier-fail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw + 0.75rem, 2.25rem);
  font-weight: 800;
  color: #1d1d1f;
  margin: 0 auto 1rem auto;
  letter-spacing: -0.03em;
  position: relative;
  display: block;
  text-align: center;
}

.section-main-title::after,
.frontier-fail-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #003262 0%, #1e88e5 100%);
  border-radius: 2px;
}

/* Abstract title - left aligned variant */
.section-main-title.left-align {
  text-align: left;
  margin: 0 0 1rem 0;
}

.section-main-title.left-align::after {
  left: 0;
  transform: none;
}

.frontier-fail-description {
  font-family: 'Karla', sans-serif;
  font-size: 1.2rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: #424245;
  margin: 2rem auto;
  max-width: 750px;
  text-align: center;
  word-wrap: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.frontier-fail-description .stat-easy {
  color: #1e88e5;
  font-weight: 700;
}

.frontier-fail-description .stat-hard {
  color: #e53e3e;
  font-weight: 700;
}

.frontier-fail-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.frontier-fail-image-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.frontier-fail-image-single {
  margin-top: 1.5rem;
}

.frontier-fail-image-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  min-height: 300px;
}

.frontier-fail-image-container img {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  object-fit: contain;
}

@media screen and (max-width: 1024px) {
  .frontier-fail-images-grid {
    gap: 1.5rem;
  }
  .frontier-fail-section {
    padding: 2.5rem 0 1rem 0;
  }
  
  .frontier-fail-content {
    padding: 0 15px;
  }
  
  .frontier-fail-description {
    font-size: 1.2rem;
    margin: 2rem auto;
  }

  .content.has-text-justified {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
}

@media screen and (max-width: 768px) {
  .frontier-fail-section {
    padding: 1.5rem 0 0.75rem 0;
  }
  
  .frontier-fail-content {
    padding: 0 12px;
  }
  
  .section-main-title,
  .frontier-fail-title {
    font-size: clamp(1.25rem, 4vw + 0.5rem, 1.75rem);
    margin-bottom: 0.75rem;
  }
  
  .frontier-fail-description {
    font-size: 1.1rem;
    margin: 2.5rem auto;
    line-height: 1.5;
    letter-spacing: 0;
  }
  
  .frontier-fail-images-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Leaderboard Section - Modern Design */
.leaderboard-section {
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.leaderboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.leaderboard-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-padding-desktop);
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.leaderboard-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(2rem, 4vw + 1rem, 3rem) !important;
  font-weight: 800 !important;
  color: #1d1d1f !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.leaderboard-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #003262 0%, #1e88e5 100%);
  border-radius: 2px;
}

.leaderboard-description {
  max-width: 100%;
  margin: 0;
  padding: 0 var(--page-padding-desktop);
}

.leaderboard-intro {
  font-family: 'Karla', sans-serif;
  font-size: 1.3rem !important;
  line-height: 1.8;
  color: #424245;
  margin-bottom: 0;
  font-weight: 400;
}

.leaderboard-stat {
  color: #003262;
  font-weight: 700;
  font-size: 1.35rem;
}

.leaderboard-subtitle {
  font-family: 'Karla', sans-serif;
  font-size: 1.1rem;
  color: #86868b;
  margin-top: 1.5rem;
  margin-bottom: 0;
  text-align: center;
  font-style: italic;
}

.leaderboard-visual {
  margin-top: 3rem;
}

.leaderboard-image-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  padding-bottom: 0;
  box-shadow: none;
  transition: none;
  overflow: visible;
  border: none;
}

.leaderboard-image-container:hover {
  transform: none;
  box-shadow: none;
}

.leaderboard-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Performance Analysis Section */
.performance-analysis-section {
  background-color: #fafafa;
  padding: 4rem 0;
  position: relative;
}

.performance-analysis-content {
  max-width: 1400px;
  margin: 0 auto;
}

.performance-analysis-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  text-align: left;
}

.performance-analysis-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #003262 0%, #1e88e5 100%);
  border-radius: 2px;
}

.performance-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.performance-image-item {
  width: 100%;
}

.performance-image-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

.performance-image-container img {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  width: 100%;
  height: auto;
  display: block;
}

.performance-image-container iframe {
  width: 100%;
  height: 600px;
  border: none;
  background: transparent;
}

@media screen and (max-width: 1024px) {
  .performance-analysis-section {
    padding: 3rem 0;
  }
  
  .performance-images-grid {
    gap: 1.5rem;
  }
  
  .performance-image-container iframe {
    height: 500px;
  }
}

@media screen and (max-width: 768px) {
  .performance-analysis-section {
    padding: 2.5rem 0;
  }
  
  .performance-images-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .performance-analysis-title {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem);
    margin-bottom: 1.25rem;
  }
  
  .performance-image-container iframe {
    height: 400px;
  }
}

/* Key Insights Section */
.key-insights-section {
  background-color: #ffffff;
  padding: 0.5rem 0 1.5rem 0;
  position: relative;
}

.key-insights-content {
  max-width: 1400px;
  margin: 0 auto;
}

.key-insights-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  text-align: left;
}

.key-insights-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #003262 0%, #1e88e5 100%);
  border-radius: 2px;
}

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

@media screen and (min-width: 1200px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.insight-item {
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.insight-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #003262;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 50, 98, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

.insight-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

.insight-description {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #424245;
  margin: 0 0 1.5rem 0;
}

.insight-visual {
  width: 100%;
  min-height: 200px;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-placeholder {
  padding: 2rem;
  text-align: center;
  color: #86868b;
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
}

@media screen and (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
}
  
  .key-insights-content {
    padding: 0 12px;
  }
  
  .key-insights-title {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem);
    margin-bottom: 1.25rem;
  }
  
  .insight-item {
    padding: 1.25rem;
  }
  
  .insight-title {
    font-size: 1.25rem;
  }
  
  .insight-description {
    font-size: 0.95rem;
  }


/* Density Curves Container - Transparent Background */
.density-curves-container {
  background: transparent;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  border: none;
}

.density-curves-container img {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* Leaderboard Responsive Design */
@media screen and (max-width: 1024px) {
  .leaderboard-wrapper {
    padding: 0 15px;
  }
  
  .leaderboard-description {
    padding: 0 10px;
  }
  
  .leaderboard-header {
    margin-bottom: 2.5rem;
  }
  
  .leaderboard-intro {
    font-size: 1.2rem !important;
  }
  
  .leaderboard-image-container {
    padding: 1.5rem;
    padding-bottom: 1rem;
    border-radius: 16px;
  }
}

@media screen and (max-width: 768px) {
  .leaderboard-section {
    padding: 3rem 0;
  }
  
  .leaderboard-wrapper {
    padding: 0 12px;
  }
  
  .leaderboard-description {
    padding: 0 5px;
  }
  
  .leaderboard-header {
    margin-bottom: 2rem;
  }
  
  .leaderboard-title {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem) !important;
    margin-bottom: 1.25rem !important;
  }
  
  .leaderboard-intro {
    font-size: 1.1rem !important;
    line-height: 1.7;
  }
  
  .leaderboard-stat {
    font-size: 1.2rem;
  }
  
  .leaderboard-subtitle {
    font-size: 1rem;
    margin-top: 1.25rem;
  }
  
  .leaderboard-visual {
    margin-top: 2rem;
  }
  
  .leaderboard-image-container {
    padding: 0;
    padding-bottom: 0;
    border-radius: 0;
    background: transparent;
    border: none;
  }
  
  .leaderboard-image {
    border-radius: 0;
    border: none;
  }
}

@media screen and (max-width: 480px) {
  .leaderboard-section {
    padding: 2.5rem 0;
  }
  
  .leaderboard-wrapper {
    padding: 0 5px;
  }
  
  .leaderboard-description {
    padding: 0;
  }
  
  .leaderboard-title {
    font-size: clamp(1.5rem, 6vw + 0.5rem, 2rem) !important;
    margin-bottom: 1rem !important;
  }
  
  .leaderboard-title::after {
    width: 60px;
    height: 3px;
  }
  
  .leaderboard-intro {
    font-size: 1rem !important;
    line-height: 1.6;
  }
  
  .leaderboard-stat {
    font-size: 1.1rem;
  }
  
  .leaderboard-subtitle {
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  
  .leaderboard-image-container {
    padding: 0;
    padding-bottom: 0;
    border-radius: 0;
    background: transparent;
    border: none;
  }
  
  .leaderboard-image-container:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Comparison Link Section */
.comparison-link-section {
  background: #ffffff;
  padding: 5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-link-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.comparison-link-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.comparison-link-subtitle {
  font-family: 'Karla', sans-serif;
  font-size: 1.1rem;
  color: #86868b;
  margin-bottom: 2.5rem;
}

.comparison-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #003262 0%, #1e88e5 100%);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 50, 98, 0.3);
}

.comparison-link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 50, 98, 0.4);
}

.comparison-link-button .arrow {
  transition: transform 0.3s ease;
}

.comparison-link-button:hover .arrow {
  transform: translateX(4px);
}

/* Comparison Link Responsive */
@media screen and (max-width: 768px) {
  .comparison-link-section {
    padding: 3rem 0;
  }
  
  .comparison-link-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .comparison-link-button {
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .comparison-link-section {
    padding: 2.5rem 0;
  }
  
  .comparison-link-title {
    font-size: clamp(1.5rem, 5vw + 0.5rem, 2rem);
  }
  
  .comparison-link-subtitle {
    font-size: 0.95rem;
  }
  
  .comparison-link-button {
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Radar Chart Comparison Section (for comparison.html) */
.radar-chart-section {
  background: #ffffff;
  padding: 4rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.radar-chart-section .container.is-max-desktop {
  max-width: 100%;
  padding-left: var(--page-padding-desktop);
  padding-right: var(--page-padding-desktop);
}

.radar-chart-wrapper {
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  padding: 0;
}

.radar-chart-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.radar-chart-why-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 2.8rem);
  font-weight: 800;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.radar-chart-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw + 0.8rem, 2rem);
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.radar-chart-subtitle {
  font-family: 'Karla', sans-serif;
  font-size: 1.1rem;
  color: #86868b;
  margin-bottom: 3rem;
}

.radar-chart-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.radar-chart-container {
  position: relative;
  flex: 7;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  padding-right: 0;
}

.echarts-radar {
  width: 100%;
  height: 600px;
  min-height: 500px;
}

.radar-chart-explanation {
  flex: 3;
  min-width: 0;
  padding: 0;
  margin: 2rem 0 0 0;
  padding-left: 0;
}

.radar-chart-explanation-text {
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #424245;
  text-align: left;
  margin: 0 0 1rem 0;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.radar-chart-explanation-text strong {
  color: #1d1d1f;
  font-weight: 600;
}

.radar-chart-explanation-list {
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #424245;
  margin: 0;
  padding: 0;
  padding-left: 0.3rem;
  list-style-type: disc;
}

.radar-chart-explanation-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.3rem;
}

.radar-chart-explanation-list li:last-child {
  margin-bottom: 0;
}

.radar-chart-explanation-list strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* Radar Chart Responsive */
@media screen and (max-width: 1024px) {
  .radar-chart-section {
    padding: 4rem 0;
  }
  
  .echarts-radar {
    height: 550px;
  }
}

@media screen and (max-width: 768px) {
  .radar-chart-section {
    padding: 2rem 0;
  }
  
  .radar-chart-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .radar-chart-layout {
    flex-direction: column;
    gap: 30px;
    padding: 0;
  }
  
  .radar-chart-container {
    width: 100%;
    padding: 0;
  }
  
  .echarts-radar {
    height: 500px;
    min-height: 400px;
  }
  
  .radar-chart-explanation {
    padding: 0;
    margin-top: 0;
    padding-right: 0;
  }
  
  .radar-chart-explanation-text {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0;
  }
}

@media screen and (max-width: 480px) {
  .radar-chart-section {
    padding: 2rem 0;
  }
  
  .radar-chart-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .radar-chart-why-title {
    font-size: clamp(2rem, 6vw + 0.8rem, 2.8rem);
    white-space: normal;
  }
  
  .radar-chart-title {
    font-size: clamp(1.5rem, 4vw + 0.6rem, 1.8rem);
    white-space: normal;
  }
  
  .radar-chart-subtitle {
    font-size: 0.95rem;
  }
  
  .radar-chart-layout {
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }
  
  .radar-chart-explanation {
    padding: 0;
    margin-top: 0;
    padding-right: 0;
  }
  
  .radar-chart-explanation-text {
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0;
  }
  
  .echarts-radar {
    height: 450px;
    min-height: 350px;
  }
}

.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Karla', sans-serif;
  font-size: 0.95rem;
  margin: 0 auto;
  background: #ffffff;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
}

.comparison-table th {
  background-color: #f8f9fa;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  border-top: 2px solid #1d1d1f;
  border-bottom: 2px solid #1d1d1f;
  color: #1d1d1f;
  font-size: 0.9rem;
}

.comparison-table tr:last-child td {
  border-bottom: 2px solid #1d1d1f;
}

.comparison-table .text-left {
  text-align: left;
  font-weight: 500;
}

.comparison-table .group-header {
  font-style: italic;
  background-color: #f8f9fa;
  text-align: left;
  padding-top: 16px;
  padding-bottom: 8px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #1d1d1f;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table .highlight-row {
  background-color: #e6f7ff;
  font-weight: 600;
}

.comparison-table .highlight-row td {
  color: #003262;
}

.comparison-table td {
  color: #424245;
}

.comparison-table td:not(.text-left) {
  text-align: center;
  vertical-align: middle;
}

/* Style for ✗ and ✓ symbols with circle background */
.comparison-table .cross-cell {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background-color: #ffebee;
  color: #c62828;
  font-weight: 700;
  font-size: 0.85em;
  vertical-align: middle;
}

.comparison-table .check-cell {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background-color: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.85em;
  vertical-align: middle;
}

/* Comparison Table Responsive */
@media screen and (max-width: 1024px) {
  .comparison-section {
    padding: 3rem 0;
  }
  
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 10px 6px;
  }
}

@media screen and (max-width: 768px) {
  .comparison-section {
    padding: 2.5rem 0;
  }
  
  .comparison-table {
    font-size: 0.8rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 8px 4px;
  }
  
  .comparison-table-wrapper {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
}

@media screen and (max-width: 480px) {
  .comparison-table {
    font-size: 0.75rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 6px 3px;
  }
}

/* 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;
}


/* Desktop: Show buttons in left panel, hide mobile container */
@media screen and (min-width: 769px) {
  /* Override mobile rule - show buttons in left panel on desktop */
  .hero-left-panel .publication-links.apple-links {
    display: flex !important;
  }
  
  /* Hide mobile buttons container on desktop */
  .hero-buttons-mobile-container {
    display: none !important;
  }
  
  /* Desktop layout fixes */
  .hero-split-container {
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  
  .hero-left-panel {
    flex: 1 1 50% !important;
    width: 50% !important;
  }
  
  .hero-right-panel {
    flex: 1 1 50% !important;
    width: 50% !important;
  }
  
  /* Desktop iframe adjustments */
  .dashboard-embed-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .dashboard-iframe,
  iframe[src*="task_success_rate"],
  iframe[src*="key_insights"],
  iframe[src*="failure_analysis"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Desktop section containers */
  .frontier-fail-section,
  .task-success-rate-section,
  .key-insights-section,
  .failure-analysis-section,
  .radar-chart-section {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .frontier-fail-section .container,
  .understanding-failures-section .container,
  .radar-chart-section .container {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Desktop comparison table */
  .comparison-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
  
  .comparison-table {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Prevent horizontal scroll on desktop */
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
}

/* Tablet Responsive Improvements */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  section.hero.is-light .container.is-max-desktop {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .apple-title-container {
    padding: 40px 15px 30px;
  }
  
  .hero-split-container {
    flex-direction: row;
    min-height: auto;
  }
  
  .hero-left-panel {
    flex: 1 1 50%;
    padding: 30px;
  }
  
  .hero-right-panel {
    flex: 1 1 50%;
    padding: 20px 20px 50px;
  }
  
  .apple-teaser-image {
    max-height: 85vh;
  }
  
  .authors-block-module {
    margin-bottom: 24px;
  }
  
  .affiliation-group {
    gap: 10px;
  }
  
  .lab-logos {
    gap: 16px;
  }
  
  .lab-logo-img {
    height: 38px;
    max-width: 160px;
  }
  
  .apple-affiliations {
    font-size: clamp(1.05rem, 1.3vw + 0.5rem, 1.3rem) !important;
  }
  
  .apple-affiliations .eql-cntrb {
    margin-left: 0;
    font-size: clamp(0.7rem, 2vw + 0.3rem, 0.8rem) !important; /* Smaller on mobile */
  }
  
  .apple-abstract {
    margin: 24px 0 20px; /* Reduced for mobile */
  }
}

@media screen and (max-width: 768px) {
  /* Abstract section mobile - already handled above */
  
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .apple-title-container {
    padding: 60px 24px 30px;
  }
  
  .hero-left-panel {
    padding: 30px 24px;
  }
  
  .hero-right-panel {
    padding: 20px 16px 60px;
  }
  
  .hero-content-wrapper {
    max-width: 100%;
  }
  
  .publication-header .hero-body {
    padding: 3rem 1rem 2rem;
  }
  
  .publication-title:not(.apple-title) {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em !important;
  }
  
  /* Apple title - ensure it overrides publication-title */
  .publication-title.apple-title,
  .apple-title {
    letter-spacing: -0.05em !important; /* Tighter tracking on mobile */
    margin: 0 !important; /* Reset all margins */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
  }
  
  .apple-title .title-main {
    font-size: clamp(1.8rem, 3vw + 0.8rem, 2.8rem) !important; /* Smaller on mobile */
    margin: 0 !important;
    margin-bottom: -0.15em !important;
    padding: 0;
  }
  
  .apple-title .title-subtitle {
    font-size: clamp(1.1rem, 1.7vw + 0.5rem, 1.6rem) !important; /* Increased on mobile */
    margin: 0 !important;
    padding: 0;
  }
  
  .conference-badge {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  
  .publication-authors {
    font-size: 1rem !important;
  }
  
  /* Authors use clamp() so responsive automatically - no override needed */

  .authors-block-module {
    padding-left: 20px;
    margin-bottom: 24px;
  }
  
  .authors-block-module::before {
    width: 2px;
  }
  
  .apple-affiliations {
    font-size: 1.1rem !important;
  }
  
  .apple-abstract {
    margin: 40px 0 30px;
  }
  
  .apple-abstract p {
    font-size: 1.1rem;
    line-height: 1.85;
  }
  
  .apple-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .apple-button {
    width: 100%;
    justify-content: center;
  }
  
  .button:not(.apple-button) {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .apple-teaser-image {
    max-height: 75vh;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
    left: 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;
    left: auto;
  }
  
  .results-carousel .item {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .teaser .hero-body {
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  /* Abstract section small mobile - already handled above */
  
  .publication-title:not(.apple-title) {
    font-size: 1.8rem !important;
    letter-spacing: -0.01em !important;
  }
  
  .apple-title-container {
    padding: 30px 20px 20px; /* Reduced: 40px→30px top */
  }
  
  /* Apple title - ensure it overrides publication-title */
  .publication-title.apple-title,
  .apple-title {
    letter-spacing: -0.04em !important; /* Tighter tracking on small mobile */
    margin: 0 !important; /* Reset all margins */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
  }
  
  .apple-title .title-main {
    font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.4rem) !important; /* Even smaller on small mobile */
    margin: 0 !important;
    margin-bottom: -0.15em !important;
    padding: 0;
  }
  
  .apple-title .title-subtitle {
    font-size: clamp(1.05rem, 1.5vw + 0.4rem, 1.4rem) !important; /* Increased on small mobile */
    margin: 0 !important;
    padding: 0;
  }
  
  .conference-badge {
    font-size: 0.7rem;
    margin-bottom: 8px; /* Reduced: 10px→8px */
    padding: 4px 10px;
  }
  
  .hero-left-panel {
    padding: 24px 20px; /* Reduced: 20px→24px vertical */
  }
  
  .hero-right-panel {
    padding: 20px 12px 40px;
  }
  
  .authors-block-module {
    padding-left: 16px;
    margin-bottom: 16px;
  }
  
  .authors-block-module::before {
    width: 2px;
  }
  
  .affiliation-group {
    gap: 12px; /* Reduced gap on mobile */
  }
  
  .lab-logos {
    gap: 14px; /* Increased: 8px→14px for mobile */
  }
  
  .lab-logo-img {
    height: 34px; /* Increased: 28px→34px */
    max-width: 140px; /* Increased: 110px→140px */
  }
  
  .apple-affiliations {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem) !important; /* Larger on mobile */
  }
  
  .apple-affiliations .eql-cntrb {
    margin-left: 0; /* No margin needed since it's at the top */
    font-size: clamp(0.65rem, 2vw + 0.25rem, 0.75rem) !important; /* Even smaller on small mobile */
  }
  
  .apple-abstract {
    margin: 22px 0 18px;
  }
  
  .apple-abstract p {
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .apple-teaser-image {
    max-height: 60vh;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
    left: auto;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
    top: auto;
    left: auto;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button:not(.apple-button) {
    width: 100%;
    justify-content: center;
  }
  
  .apple-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;
}

/* Global section rhythm */
.section.hero.is-light {
  padding: 2rem 0 0 0 !important; /* Remove bottom padding to make it tight with dashboard */
  margin-bottom: 0 !important; /* Remove bottom margin */
  background-color: #ffffff;
}

/* Simplified section styles - let iframe content determine height */
.task-success-rate-section,
.key-insights-section,
.failure-analysis-section {
  padding: 1.5rem 0;
  margin: 0;
  background-color: transparent;
  width: 100%;
  border: none;
  overflow: visible !important; /* Allow iframe content to be fully visible */
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.understanding-failures-section {
  padding: 1rem 0;
  background-color: #ffffff;
}

.radar-chart-section {
  padding: 2rem 0;
}

/* Abstract block helpers */
.abstract-column {
  padding: 0 !important;
}

.abstract-content {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Unified horizontal rhythm for desktop and mobile */
.page-shell {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-left: var(--page-padding-desktop) !important;
  padding-right: var(--page-padding-desktop) !important;
  box-sizing: border-box;
}

.container.is-max-desktop.page-shell {
  max-width: var(--page-max-width) !important;
}

section.hero.is-light .container.is-max-desktop.page-shell {
  max-width: var(--page-max-width) !important;
  padding-left: var(--page-padding-desktop) !important;
  padding-right: var(--page-padding-desktop) !important;
  margin: 0 auto;
}

.embed-shell,
.dashboard-embed-container.embed-shell {
  width: 100%;
  max-width: 100% !important; /* Use full width instead of max-width-wide */
  margin: 0 auto 2rem auto !important; /* Add bottom margin to separate from next section */
  padding-left: var(--page-padding-desktop) !important;
  padding-right: var(--page-padding-desktop) !important;
  padding-top: 0 !important; /* Remove top padding */
  padding-bottom: 0 !important; /* Remove bottom padding */
  box-sizing: border-box;
  overflow: visible !important; /* Allow full iframe content to be visible */
  height: auto !important; /* Allow container to grow with content */
  min-height: 0 !important;
  max-height: none !important;
  display: block !important; /* Ensure block display for proper height calculation */
  position: relative !important; /* Ensure proper stacking context */
  z-index: 1 !important; /* Ensure it's above background but below overlays */
}

.embed-shell iframe,
.dashboard-embed-container.embed-shell .dashboard-iframe {
  width: 100% !important;
  display: block;
  flex-shrink: 0 !important; /* Prevent flex container from shrinking iframe */
  flex-grow: 0 !important; /* Don't grow, use explicit height */
  align-self: auto !important; /* Reset flex alignment */
  border: none !important; /* Remove default iframe border */
  margin: 0 !important; /* Remove default margin */
  padding: 0 !important; /* Remove default padding */
  box-sizing: border-box !important;
  min-height: 1200px !important; /* Initial minimum height to prevent clipping */
  height: auto !important; /* Allow dynamic height adjustment */
  max-height: none !important; /* No maximum height limit */
  overflow: auto !important; /* Allow scrolling when needed */
}

/* Abstract tightening overrides */
.apple-abstract {
  margin: 24px 0 0 !important; /* Remove bottom margin to make it tight with dashboard */
}

.apple-abstract p {
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
  letter-spacing: normal !important;
  color: var(--text-body) !important;
}

.content.has-text-justified {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  text-align: left !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  color: var(--text-body) !important;
}

.content.has-text-justified p {
  margin-bottom: 0.9rem !important;
}

.embed-frame {
  width: 100% !important;
  min-height: 0; /* No fixed minimum, let content determine */
  height: auto; /* Auto-adjust based on content */
  max-height: none !important;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  overflow: auto; /* Allow scrolling when needed */
}

/* Remove fixed min-height classes - no longer needed */
.embed-frame.embed-900,
.embed-frame.embed-800,
.embed-frame.embed-1500 {
  min-height: 0; /* Override any remaining min-height */
  max-height: none !important; /* Remove any max-height restrictions */
}

@media screen and (max-width: 1024px) {
  .page-shell,
  .embed-shell,
  .dashboard-embed-container.embed-shell {
    padding-left: var(--page-padding-tablet) !important;
    padding-right: var(--page-padding-tablet) !important;
  }
  
  section.hero.is-light .container.is-max-desktop.page-shell {
    padding-left: var(--page-padding-tablet) !important;
    padding-right: var(--page-padding-tablet) !important;
  }
}

@media screen and (max-width: 768px) {
  /* Mobile: Simplified container padding */
  .page-shell {
    padding-left: var(--page-padding-mobile) !important;
    padding-right: var(--page-padding-mobile) !important;
  }
  
  /* Mobile: Simplified iframe containers - keep horizontal padding for content spacing */
  .embed-shell,
  .dashboard-embed-container {
    padding-left: var(--page-padding-mobile) !important;
    padding-right: var(--page-padding-mobile) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    overflow: visible !important; /* Allow full iframe content to be visible */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  
  .embed-shell iframe,
  .dashboard-embed-container iframe {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important; /* No fixed minimum, let content determine */
    max-height: none !important;
    display: block !important;
    flex-grow: 1 !important;
    flex-shrink: 0 !important;
  }
  
  section.hero.is-light .container.is-max-desktop.page-shell {
    padding-left: var(--page-padding-mobile) !important;
    padding-right: var(--page-padding-mobile) !important;
  }
  
  /* Mobile tightening for abstract/body text */
  .content.has-text-justified {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  
  .content.has-text-justified p {
    margin-bottom: 1.25rem !important;
  }
  
  .apple-abstract p {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button:not(.apple-button) {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
  
  .apple-button {
    background: rgba(0, 26, 51, 0.8) !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
  }
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button:not(.apple-button) {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
  
  .apple-button {
    background: rgba(0, 26, 51, 0.8) !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
  }
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button:not(.apple-button) {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
  
  .apple-button {
    background: rgba(0, 26, 51, 0.8) !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
  }
}
