/* Main Styles */

:root {
  color-scheme: light;

  /* Theme tokens */
  --background: #f5f5f7;
  --background-elevated: #fbfbfd;
  --surface: #ffffff;
  --surface-muted: #f5f5f7;
  --surface-tint: #f0f0f2;
  --border: #d2d2d7;
  --border-strong: #b8b8bd;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-subtle: #86868b;
  --accent: #6b4f3f;
  --accent-hover: #4f392d;
  --accent-soft: rgba(107, 79, 63, 0.14);
  --accent-contrast: #ffffff;
  --button: #6b4f3f;
  --button-hover: #4f392d;
  --input: #ffffff;
  --input-border: #d2d2d7;
  --focus-ring: rgba(107, 79, 63, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-bg-hover: rgba(255, 255, 255, 0.74);
  --glass-active: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-border-muted: rgba(180, 180, 188, 0.34);
  --glass-highlight: rgba(255, 255, 255, 0.96);
  --glass-shadow: 0 12px 30px rgba(29, 29, 31, 0.10), 0 2px 8px rgba(29, 29, 31, 0.06);
  --glass-shadow-active: 0 16px 34px rgba(29, 29, 31, 0.14), 0 5px 12px rgba(29, 29, 31, 0.10);
  --glass-inset: inset 0 1px 0 var(--glass-highlight), inset 0 -10px 22px rgba(29, 29, 31, 0.045);
  --shadow-sm: 0 1px 2px rgba(29, 29, 31, 0.05);
  --shadow-md: 0 8px 22px rgba(29, 29, 31, 0.07);
  --shadow-lg: 0 18px 44px rgba(29, 29, 31, 0.10);
  --shadow-xl: 0 28px 60px rgba(29, 29, 31, 0.12);
  --hero-background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  --hero-glass: rgba(255, 255, 255, 0.68);
  --footer-background: #1d1d1f;
  --footer-text: #f5f5f7;
  --footer-muted: #a1a1a6;
  --schedule-row: #f5f5f7;

  /* Compatibility aliases */
  --color-primary: var(--accent);
  --color-primary-light: #927463;
  --color-primary-dark: var(--accent-hover);
  --color-secondary: #7a6558;
  --color-secondary-light: #9b8170;
  --color-secondary-dark: #4f392d;
  --color-accent: var(--accent);
  --color-accent-light: #927463;
  --color-accent-dark: var(--accent-hover);
  --color-success: #2f8f5b;
  --color-warning: #7a6558;
  --color-error: #c74d3d;
  --color-neutral-100: var(--surface-muted);
  --color-neutral-200: var(--border);
  --color-neutral-300: var(--input-border);
  --color-neutral-400: var(--text-subtle);
  --color-neutral-500: var(--text-subtle);
  --color-neutral-600: var(--text-muted);
  --color-neutral-700: var(--text-muted);
  --color-neutral-800: #424245;
  --color-neutral-900: var(--text);
  --color-white: var(--surface);
  --color-black: #12110f;
  --color-gray: var(--background);
  --color-neon-light: var(--surface-tint);

  /* Typography */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3rem;      /* 48px */

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;

  /* Spacing System (based on 8px) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 2.5rem;    /* 40px */
  --space-8: 3rem;      /* 48px */
  --space-9: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */

  /* Other Variables */
  --border-radius-sm: 0.25rem;  /* 4px */
  --border-radius-md: 0.5rem;   /* 8px */
  --border-radius-lg: 1rem;     /* 16px */
  --border-radius-xl: 1.5rem;   /* 24px */
  --module-radius: 1.25rem;     /* 20px */
  --module-radius-sm: 1rem;     /* 16px */
  --section-y: 3.75rem;
  --section-y-compact: 3rem;
  --section-header-gap: 1.85rem;
  --content-gap: 1.25rem;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container width */
  --container-max-width: 900px;
  --container-padding: var(--space-4);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #000000;
  --background-elevated: #161617;
  --surface: #1d1d1f;
  --surface-muted: #2c2c2e;
  --surface-tint: #242426;
  --border: #3a3a3c;
  --border-strong: #5a5a5d;
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-subtle: #86868b;
  --accent: #d2b49c;
  --accent-hover: #e4c8b1;
  --accent-soft: rgba(210, 180, 156, 0.16);
  --accent-contrast: #241913;
  --button: #d2b49c;
  --button-hover: #e4c8b1;
  --input: #1d1d1f;
  --input-border: #3a3a3c;
  --focus-ring: rgba(210, 180, 156, 0.30);
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.16);
  --glass-bg-hover: rgba(255, 255, 255, 0.18);
  --glass-active: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass-border-muted: rgba(255, 255, 255, 0.13);
  --glass-highlight: rgba(255, 255, 255, 0.34);
  --glass-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  --glass-shadow-active: 0 18px 40px rgba(0, 0, 0, 0.34), 0 6px 16px rgba(0, 0, 0, 0.22);
  --glass-inset: inset 0 1px 0 var(--glass-highlight), inset 0 -12px 24px rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.34);
  --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.42);
  --hero-background: linear-gradient(180deg, #161617 0%, #000000 100%);
  --hero-glass: rgba(29, 29, 31, 0.72);
  --footer-background: #000000;
  --footer-text: #f5f5f7;
  --footer-muted: #aaa59d;
  --schedule-row: #161617;
  --color-primary-light: #e4c8b1;
  --color-secondary: #c2a28b;
  --color-secondary-light: #e4c8b1;
  --color-secondary-dark: #9f806a;
  --color-neutral-800: #d2d2d7;
  --color-black: #f7f1e8;
}

/* Global Styles */
body {
  color: var(--text);
  background-color: var(--background);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-5);
  color: var(--color-neutral-900);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-neutral-900);
}

p {
  font-size: var(--font-size-md);
  line-height: 1.68;
  margin-bottom: var(--content-gap);
  color: var(--color-neutral-700);
  text-align: justify;
}

p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.button {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: var(--text);
  font-weight: var(--font-weight-semibold);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  text-align: center;
}

.button.primary {
  background: linear-gradient(180deg, var(--glass-active), var(--glass-bg-hover));
  border-color: var(--glass-border);
  color: var(--text);
  box-shadow: var(--glass-shadow-active), var(--glass-inset);
}

.button.primary:hover {
  background: linear-gradient(180deg, var(--glass-active), var(--glass-bg-strong));
  transform: translateY(-1px);
}

.button.secondary {
  background: linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
  border-color: var(--glass-border-muted);
  color: var(--text);
}

.button.secondary:hover {
  background: linear-gradient(180deg, var(--glass-bg-hover), var(--glass-bg));
  transform: translateY(-1px);
}

/* Sticky Header Styles */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  box-shadow: none;
}
.sticky-header.scrolled {
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

/* Sections */
section {
  padding: var(--section-y) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--section-header-gap);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-neutral-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  box-sizing: border-box;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-9) + 72px); /* Extra padding for fixed header */
  padding-bottom: clamp(5rem, 9vh, 8rem);
  background: var(--hero-background);
  border-bottom: 1px solid var(--border);
}

.health-hero {
  isolation: isolate;
  background: #020d0a;
  border-bottom-color: rgba(190, 229, 97, 0.22);
}

.health-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #020d0a url("../../public/genai-health-hero.png") center 62% / cover no-repeat;
}

.health-hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 900px;
}

.health-illustration-source {
  display: none !important;
}

.health-wave-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100% !important;
  min-width: 0 !important;
  height: min(31%, 265px) !important;
  overflow: visible;
}

.health-wave-line {
  fill: none;
  stroke: #c8ec68;
  stroke-linecap: round;
  stroke-width: 1.35;
  stroke-dasharray: 5 13;
  opacity: 0.42;
  animation: health-wave-flow 13s linear infinite;
}

.health-wave-line-two {
  stroke-width: 1;
  opacity: 0.28;
  animation-duration: 17s;
  animation-direction: reverse;
}

.health-wave-line-three {
  stroke-width: 0.9;
  opacity: 0.2;
  animation-duration: 21s;
}

.health-hero .container {
  z-index: 1;
}

.health-hero .display-text-palatino,
.health-hero .hero-workshop-text {
  color: #f2f8df;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.health-network path,
.health-network circle,
.health-profile,
.health-circuit,
.health-brain-nodes circle,
.health-icon circle,
.health-icon path,
.health-clinical-panel rect,
.health-chart,
.health-lungs,
.health-shield,
.health-plus-mark,
.health-projection ellipse,
.health-scan-line,
.health-data-streams path {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health-network path {
  stroke-width: 1.6;
  opacity: 0.54;
}

.health-network circle {
  fill: #ffffff;
  stroke: #d8f0ff;
  stroke-width: 2;
}

.health-network-left,
.health-network-right {
  opacity: 0.72;
}

.health-network-left {
  animation: health-drift-left 15s ease-in-out infinite alternate;
}

.health-network-right {
  animation: health-drift-right 17s ease-in-out infinite alternate;
}

.health-profile {
  fill: rgba(178, 222, 248, 0.16);
  stroke-width: 2.2;
  opacity: 0.9;
}

.health-circuit {
  stroke: #e7f8ff;
  stroke-width: 1.7;
  opacity: 0.94;
}

.health-brain-nodes circle {
  fill: #ffffff;
  stroke-width: 1.5;
}

.health-brain text {
  fill: #f8fdff;
  font: 600 52px Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.health-brain {
  animation: health-breathe 7s ease-in-out infinite;
}

.health-medical-icons {
  opacity: 0.72;
}

.health-icon circle {
  fill: rgba(255, 255, 255, 0.13);
  stroke-width: 1.8;
}

.health-icon path {
  stroke-width: 2.4;
}

.health-icon-heart,
.health-icon-plus {
  animation: health-pulse 4.2s ease-in-out infinite;
}

.health-icon-dna,
.health-icon-pill {
  animation: health-float 6.5s ease-in-out infinite alternate;
}

.health-clinical-panel {
  fill: rgba(255, 255, 255, 0.08);
  stroke: url(#panelStroke);
  stroke-width: 1.8;
  opacity: 0.78;
}

.health-clinical-panel rect:not(:first-child) {
  fill: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.health-plus-mark,
.health-chart,
.health-lungs,
.health-shield {
  stroke-width: 2.3;
}

.health-clinical-panel-top {
  animation: health-panel-top 8s ease-in-out infinite alternate;
}

.health-clinical-panel-bottom {
  animation: health-panel-bottom 9s ease-in-out infinite alternate;
}

.health-projection {
  opacity: 0.88;
}

.health-projection ellipse {
  stroke-width: 1.5;
}

.health-projection ellipse:nth-child(1) {
  animation: health-ring-expand 5.2s ease-out infinite;
  transform-origin: 1354px 755px;
}

.health-projection ellipse:nth-child(2) {
  animation: health-ring-expand 5.2s ease-out 1.2s infinite;
  transform-origin: 1354px 755px;
}

.health-scan-line {
  stroke-width: 2;
  stroke-dasharray: 9 15;
  animation: health-scan 3.6s linear infinite;
}

.health-data-streams {
  opacity: 0.63;
}

.health-data-streams path {
  stroke-width: 1.2;
  stroke-dasharray: 4 10;
  animation: health-data-flow 10s linear infinite;
}

.health-data-streams path:nth-child(2) {
  animation-duration: 12s;
  animation-direction: reverse;
}

.health-data-streams path:nth-child(3) {
  animation-duration: 14s;
}

html[data-theme="dark"] .health-hero {
  background: #020d0a;
  border-bottom-color: rgba(190, 229, 97, 0.22);
}

html[data-theme="dark"] .health-hero-art {
  opacity: 1;
  filter: none;
}

html[data-theme="dark"] .health-hero .display-text-palatino,
html[data-theme="dark"] .health-hero .hero-workshop-text {
  color: #f2f8df;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

@keyframes health-drift-left {
  to { transform: translate(12px, -9px); }
}

@keyframes health-drift-right {
  to { transform: translate(-14px, 11px); }
}

@keyframes health-breathe {
  50% { opacity: 0.74; transform: translateY(-5px) scale(1.012); }
}

@keyframes health-pulse {
  50% { opacity: 0.45; transform: scale(1.045); transform-origin: center; }
}

@keyframes health-float {
  to { transform: translateY(-10px); }
}

@keyframes health-panel-top {
  to { transform: translate(-8px, 6px); opacity: 0.64; }
}

@keyframes health-panel-bottom {
  to { transform: translate(9px, -7px); opacity: 0.64; }
}

@keyframes health-ring-expand {
  0%, 100% { opacity: 0.18; transform: scale(0.92); }
  50% { opacity: 0.92; transform: scale(1.03); }
}

@keyframes health-scan {
  to { stroke-dashoffset: -96; }
}

@keyframes health-data-flow {
  to { stroke-dashoffset: -168; }
}

@keyframes health-wave-flow {
  to { stroke-dashoffset: -216; }
}

@media (max-width: 768px) {
  .health-hero-art {
    background-image: url("../../public/genai-health-hero-mobile.png");
    background-position: center center;
  }

  .health-wave-overlay {
    height: min(27%, 190px) !important;
  }

  .health-brain,
  .health-medical-icons {
    opacity: 0.58;
  }

  .health-clinical-panel {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .health-hero-art *,
  .health-hero-art svg {
    animation: none !important;
  }
}

/* GenAI4Health 2025 content migration */
.genai-section-copy {
  max-width: var(--container-max-width);
}

.genai-section-copy p,
.genai-section-copy li {
  color: var(--text-muted);
}

#call-for-papers .genai-section-copy > h3 {
  font-size: 1.375rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.genai-section-copy code {
  display: inline-block;
  padding: 0.12rem 0.32rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-muted);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#call-for-papers .genai-cfp-about {
  margin-top: var(--space-6);
}

#call-for-papers .genai-cfp-camera-ready {
  margin-top: var(--space-7);
}

#call-for-papers .genai-cfp-important-dates {
  margin-top: var(--space-6);
}

#call-for-papers .genai-cfp-deadline-note {
  margin-top: var(--space-6);
}

.genai-submission-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  margin: var(--space-5) 0 var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--border-radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.genai-submission-module h3 {
  margin: 0;
}

.genai-submission-module p {
  margin: var(--space-2) 0 0;
  text-align: left;
}

.genai-submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.genai-submission-actions a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--button);
  border-radius: 4px;
  background: var(--button);
  color: var(--accent-contrast);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.genai-submission-actions a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  transform: translateY(-1px);
}

.genai-list {
  margin: 0 0 var(--space-6);
  padding-left: 1.35rem;
  list-style: disc;
}

/* Keep the workshop's accent color consistent across all bullet lists. */
main ul li::marker,
footer ul li::marker {
  color: #b8d85b;
}

.genai-list li + li {
  margin-top: var(--space-3);
}

.genai-track-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: var(--space-4) 0 var(--space-7);
}

.genai-track-panel {
  display: grid;
  grid-template-columns: minmax(175px, 0.34fr) minmax(0, 1fr);
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}

.genai-track-panel:last-child {
  border-bottom: 1px solid var(--border);
}

.genai-track-panel h4 {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
}

.genai-track-page-limit {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  background: var(--accent-soft);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.genai-track-panel-content > * + * {
  margin-top: var(--space-4);
}

.genai-track-panel p {
  text-align: left;
}

.genai-section-copy .genai-track-summary {
  color: var(--text);
  font-weight: var(--font-weight-semibold);
}

.genai-track-panel h5 {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

.genai-agenda-heading {
  padding: var(--space-4) 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.genai-agenda-break .schedule-entry-session {
  color: var(--text-muted);
  font-style: italic;
}

.genai-people-section {
  padding-top: 0;
}

.genai-subsection-title {
  margin-bottom: var(--space-5);
}

.genai-people-section-heading {
  text-align: center;
}

.genai-people-section-header .section-header-row {
  justify-content: center;
}

.genai-people-section-header {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 0;
}

.genai-people-section-header::before,
.genai-people-section-header::after {
  display: none;
}

.genai-people-grid {
  align-items: stretch;
}

.genai-people-grid .organizer-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.genai-people-grid .organizer-card:hover {
  color: inherit;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-2px);
}

.genai-profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  width: 100%;
  aspect-ratio: 3 / 4;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.genai-profile-overlay i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: transform var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
}

.genai-people-grid .organizer-card:hover .genai-profile-overlay {
  opacity: 1;
}

.genai-people-grid .organizer-card:hover .genai-profile-overlay i {
  background: var(--button);
  color: var(--accent-contrast);
  transform: scale(1.1);
}

.genai-people-grid .organizer-photo {
  transition: transform var(--transition-normal);
}

.genai-people-grid .genai-empty-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface-muted);
}

.genai-people-grid .organizer-card:hover .organizer-photo {
  transform: scale(1.03);
}

#speakers .genai-people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: var(--space-4);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

#speakers .genai-speaker-card {
  width: 93%;
  justify-self: center;
  padding: 0;
}

#speakers .genai-speaker-card .organizer-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-muted);
  object-fit: cover;
  object-position: center;
}

#speakers .genai-speaker-card .genai-empty-photo {
  width: 200px;
  height: 267px;
}

#speakers .genai-speaker-card .organizer-info {
  min-height: 4.6rem;
  padding: var(--space-3) var(--space-4);
}

#organizers .container {
  max-width: 1098px;
}

#organizers .genai-people-grid {
  grid-template-columns: repeat(4, 200px);
  justify-content: center;
  gap: var(--space-2);
  max-width: calc(4 * 200px + 3 * var(--space-2));
  margin-right: auto;
  margin-left: auto;
}

#organizers .genai-people-grid .organizer-card {
  width: 200px;
  padding: 0;
}

#organizers .genai-people-grid .organizer-photo {
  width: 200px;
  height: 240px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-muted);
  object-fit: cover;
  object-position: center;
}

#organizers .genai-people-grid .genai-empty-photo {
  width: 200px;
  height: 240px;
}

.genai-placeholder-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: default;
}

.genai-placeholder-card:hover {
  transform: none;
}

.genai-people-section .genai-people-grid {
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center;
  gap: var(--space-4);
  max-width: calc(6 * 200px + 5 * var(--space-4));
  margin-right: auto;
  margin-left: auto;
}

#student-organizers .genai-people-grid {
  grid-template-columns: repeat(3, 200px);
  max-width: calc(3 * 200px + 2 * var(--space-4));
}

.genai-people-section .genai-people-grid .organizer-card {
  width: 200px;
  padding: 0;
}

.genai-people-section .genai-people-grid .organizer-photo {
  width: 200px;
  height: 240px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-muted);
  object-fit: cover;
  object-position: center;
}

.genai-people-section .genai-people-grid .genai-empty-photo {
  width: 200px;
  height: 240px;
}

#organizers .genai-people-grid .organizer-info,
.genai-people-section .genai-people-grid .organizer-info {
  min-height: 4.4rem;
  padding: var(--space-3) var(--space-2);
}

#organizers .organizer-name,
.genai-people-section .organizer-name {
  font-size: var(--font-size-sm);
}

#organizers .organizer-org,
.genai-people-section .organizer-org {
  font-size: var(--font-size-xs);
  line-height: 1.35;
}

.genai-talk-title {
  margin-top: var(--space-3);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.genai-card-copy {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.58;
  text-align: left;
}

.genai-pc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.genai-pc-list li {
  min-width: 0;
  min-height: 5.25rem;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.genai-pc-list li:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.genai-pc-list strong,
.genai-pc-list span {
  display: block;
}

.genai-pc-list strong {
  color: var(--text);
  font-size: var(--font-size-sm);
}

.genai-pc-list span {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.4;
}

.genai-pc-status {
  display: none;
}

.genai-pc-status-confirmed {
  color: #21724a;
  background: #edf8f0;
}

.genai-pc-status-pending {
  color: #8a5b11;
  background: #fff7e7;
}

#committee .section-header-subtitle {
  display: none;
}

.genai-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: center;
}

.genai-sponsor-grid a {
  display: grid;
  min-height: 84px;
  place-items: center;
}

.genai-sponsor-grid img {
  display: block;
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.genai-footer-columns {
  display: grid;
  grid-template-columns: 112px repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.genai-footer-neurips-logo img {
  display: block;
  width: 112px;
  height: auto;
}

.genai-footer-columns div,
.genai-footer-columns a,
.genai-footer-columns span,
.genai-footer-columns strong {
  display: block;
}

.genai-footer-columns strong {
  margin-bottom: var(--space-2);
  color: var(--footer-text);
}

.genai-footer-columns a,
.genai-footer-columns span {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.genai-footer-columns a {
  color: #d2b49c;
}

.genai-footer-columns span {
  color: var(--footer-muted);
}

.genai-footer-columns a:hover {
  color: #e4c8b1;
}

@media (max-width: 768px) {
  .genai-track-grid,
  .genai-footer-columns {
    grid-template-columns: 1fr;
  }

  .genai-track-panel {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .genai-people-section-header .section-header-row {
    align-items: center;
    text-align: center;
  }

  .genai-people-section-header {
    padding-bottom: 0;
  }

  .genai-submission-module {
    grid-template-columns: 1fr;
  }

  .genai-submission-actions {
    justify-content: flex-start;
  }

  .genai-pc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  #speakers .genai-people-grid {
    grid-template-columns: repeat(2, 130px);
    max-width: calc(2 * 130px + var(--space-4));
    gap: var(--space-4);
  }

  #speakers .genai-speaker-card,
  #speakers .genai-speaker-card .organizer-photo,
  #speakers .genai-speaker-card .genai-empty-photo {
    width: 130px;
  }

  #speakers .genai-speaker-card .organizer-photo,
  #speakers .genai-speaker-card .genai-empty-photo {
    height: 174px;
  }

  #organizers .genai-people-grid,
  #student-organizers .genai-people-grid,
  .genai-people-section .genai-people-grid {
    grid-template-columns: repeat(3, 99px);
    max-width: calc(3 * 99px + 2 * var(--space-2));
    gap: var(--space-2);
    justify-content: center;
    margin-left: auto;
  }

  #organizers .genai-people-grid .organizer-card,
  .genai-people-section .genai-people-grid .organizer-card,
  #organizers .genai-people-grid .organizer-photo,
  .genai-people-section .genai-people-grid .organizer-photo,
  #organizers .genai-people-grid .genai-empty-photo,
  .genai-people-section .genai-people-grid .genai-empty-photo {
    width: 99px;
  }

  #organizers .genai-people-grid .genai-empty-photo,
  .genai-people-section .genai-people-grid .genai-empty-photo {
    height: 132px;
  }

  #organizers .genai-people-grid .organizer-photo,
  .genai-people-section .genai-people-grid .organizer-photo {
    height: 132px;
  }
}

.hero .container {
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  min-height: calc(100svh - 220px);
  padding: clamp(2rem, 5vh, 4.5rem) 16px;
  transform: translateY(clamp(-8.5rem, -11vh, -4.5rem));
}

.hero .container.hero-badge-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-5);
}

.hero-pill,
.hero-blurb {
  display: inline-block;
  background: var(--hero-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.hero-pill {
  padding: 0 var(--space-3);
  border-radius: 999px;
}

.hero-workshop-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(88vw, 420px);
  min-height: 52px;
  margin: 0.35rem auto 0;
  padding: 0.68rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid rgba(160, 160, 166, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 241, 244, 0.76)),
    rgba(245, 245, 247, 0.78);
  box-shadow:
    0 8px 18px rgba(29, 29, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -2px 0 rgba(29, 29, 31, 0.035);
  color: #111113;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.65vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  overflow: hidden;
}

.hero-workshop-badge::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

html[data-theme="dark"] .hero-workshop-badge {
  border-color: rgba(255, 255, 255, 0.30);
  background:
    linear-gradient(180deg, rgba(248, 248, 250, 0.86), rgba(228, 228, 231, 0.72)),
    rgba(245, 245, 247, 0.68);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  color: #111113;
}

@media (max-width: 768px) {
  .hero-workshop-badge {
    max-width: min(86vw, 360px);
    min-height: 48px;
    padding: 0.62rem 1.28rem;
    font-size: clamp(1rem, 4.6vw, 1.18rem);
  }
}

.hero-blurb {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.hero-blurb span {
  display: block;
}

.hero-blurb span + span {
  margin-top: var(--space-1);
}

.hero-buttons {
  display: flex;
  gap: var(--space-3);
}

/* About Section */
.about {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.about p + p,
.container > p + p {
  margin-top: 0.75rem;
}

.about > p::first-letter {
  float: none;
  margin: 0 0.02em 0 0;
  font-family: 'Palatino', 'Palatino Linotype', serif;
  font-size: 1.42em;
  line-height: 0;
  font-weight: 700;
  color: var(--color-primary);
}

.about-content {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.about-text {
  flex: 1;
}

.stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  align-items: baseline;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-600);
}

/* Features Section */
.features {
  background-color: var(--background-elevated);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.feature-card {
  background-color: var(--color-white);
  padding: var(--space-5);
  border-radius: var(--module-radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
  overflow: hidden;
  border-radius: var(--module-radius-sm);
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  margin-bottom: var(--space-2);
  color: var(--color-neutral-900);
}

.feature-card p {
  color: var(--color-neutral-600);
  margin-bottom: 0;
}

/* Get Started Section */
.get-started {
  background-color: var(--color-white);
}

.cta-container {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.cta-content {
  flex: 1;
}

.cta-image {
  flex: 1;
}

.cta-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  margin-top: var(--space-5);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-md);
  background-color: var(--input);
  color: var(--text);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  padding: var(--space-7) 0 var(--space-4);
}

footer .container {
  max-width: 1200px;
}

.footer-sponsors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.05rem;
  margin-bottom: 2rem;
}

.footer-sponsors-title {
  color: var(--footer-muted);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-sponsors .sponsor-grid {
  max-width: 520px;
  column-gap: clamp(1.75rem, 5vw, 3.75rem);
  row-gap: 0.95rem;
  padding: 0;
}

.footer-sponsors .genai-sponsor-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
  justify-content: center;
  width: min(100%, 520px);
}

.footer-sponsors .genai-sponsor-grid a {
  min-height: 104px;
  padding: var(--space-3) var(--space-4);
  border-radius: 4px;
  background: #f7f8f4;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.footer-sponsors .genai-sponsor-grid img {
  max-height: 80px;
}

.footer-sponsors .sponsor-logo {
  min-height: 34px;
  opacity: 0.9;
}

.footer-sponsors .sponsor-logo-zoom .sponsor-logo-img {
  height: clamp(19px, 2.2vw, 24px);
}

.footer-sponsors .sponsor-logo-tencent .sponsor-logo-img {
  height: clamp(20px, 2.35vw, 25px);
  filter: brightness(1.12) saturate(0.92);
}

.footer-sponsors .sponsor-logo-img-light {
  display: none;
}

.footer-sponsors .sponsor-logo-img-dark {
  display: block;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-logo {
  flex: 1;
}

.footer-logo .logo {
  color: var(--footer-text);
  margin-bottom: var(--space-2);
  display: inline-block;
}

.footer-logo p {
  color: var(--footer-muted);
  margin-bottom: 0;
}

.footer-links {
  flex: 2;
  display: flex;
  gap: var(--space-6);
}

.footer-column h4 {
  color: var(--footer-text);
  margin-bottom: var(--space-3);
}

.footer-column ul li {
  margin-bottom: var(--space-2);
}

.footer-column ul li a {
  color: var(--footer-muted);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--footer-text);
}

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-strong);
  text-align: center;
}

.footer-bottom p {
  color: var(--footer-muted);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

#navbar > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


/* Remove nav-link underline animation */
.nav-link::after {
  display: none !important;
}

#header {
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
  border-bottom: 1px solid var(--glass-border-muted);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.navbar-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 60px;
  gap: 0.75rem;
}

.theme-switcher {
  position: fixed !important;
  top: calc(80px + 1rem) !important;
  right: 1rem !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 1400;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  flex-shrink: 0;
  transform: none !important;
}

.theme-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.theme-option span {
  display: none;
}

.theme-option:hover {
  color: var(--text);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-muted);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 4px 12px rgba(29, 29, 31, 0.06);
}

.theme-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.theme-option[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(180deg, var(--glass-active), var(--glass-bg-hover));
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow-active), var(--glass-inset);
  transform: translateY(-1px) scale(1.02);
}

html[data-theme="dark"] .theme-option[aria-pressed="true"] {
  color: var(--text);
}

.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-logo-img {
  width: 100%;
  height: 64px;
}

html[data-theme="dark"] .navbar-logo img {
  filter: grayscale(1) invert(1) brightness(1.85) opacity(0.78) !important;
}

.navbar-logo a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

#navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.75rem;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: clamp(1.2rem, 2.8vh, 2rem);
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(242, 248, 223, 0.32);
  border-radius: 4px;
  background: rgba(242, 248, 223, 0.08);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
  color: #f2f8df;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  text-align: left;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.hero-social-link:hover {
  border-color: var(--accent);
  background: rgba(242, 248, 223, 0.16);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-social-link i {
  font-size: 1rem;
}

.navbar-links-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-link {
  width: auto;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  white-space: nowrap;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  color: var(--text-muted);
  line-height: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link.active,
.nav-link:active {
  background: linear-gradient(180deg, var(--glass-active), var(--glass-bg-hover));
  border-color: var(--glass-border);
  color: var(--text) !important;
  box-shadow: var(--glass-shadow-active), var(--glass-inset);
  transform: translateY(-1px);
  padding: 0.45rem 0.82rem;
}

.nav-link:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-muted);
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 5px 14px rgba(29, 29, 31, 0.07);
  transform: translateY(-1px);
}

html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .nav-link:active,
html[data-theme="dark"] .nav-link:hover {
  color: var(--text) !important;
}

.navbar-title-group {
  display: flex;
  width: auto !important;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.navbar-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  gap: 1rem;
  font-family: 'Palatino', 'Palatino Linotype', serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--color-primary);
  white-space: nowrap;
}

#header .container {
  gap: 12px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--module-radius);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.bento-card:hover {
  box-shadow: var(--shadow-lg);
}
.bento-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.bento-title {
  font-size: 1.4rem;
  line-height: 2rem;
  font-weight: bold;
  font-family: 'Palatino', 'Palatino Linotype', serif;
  color: var(--color-primary);
  transition: color 0.2s;
}
.bento-title:hover {
  color: var(--color-primary);
}

.bento-desc {
  font-size: 1.1rem;
  line-height: 1.5rem;
  font-weight: 400;
  font-family: 'Times New Roman', Times, serif;
  color: var(--color-neutral-700);
}

.schedule-table {
  width: 100%;
  overflow-x: auto;
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--module-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1rem;
}
.schedule-table .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.schedule-table th, .schedule-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}
.schedule-table th {
  background: var(--button);
  color: var(--accent-contrast);
  font-weight: bold;
}

html[data-theme="dark"] .schedule-table th {
  color: #201713;
}

.schedule-table tr:nth-child(even) td {
  background: var(--schedule-row);
}

.schedule-table td {
  color: var(--color-neutral-900);
}

.schedule-timeline {
  width: 100%;
  margin-top: var(--section-header-gap);
  padding: 1.5rem 1.4rem 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--module-radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-family: 'Lato', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.schedule-timeline-header,
.schedule-timeline-row {
  display: grid;
  grid-template-columns: 5.25rem 1.75rem minmax(0, 1fr);
  gap: 1rem;
}

.schedule-timeline-header {
  align-items: end;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.schedule-timeline-heading-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.schedule-timeline-list {
  padding-top: 0.25rem;
}

.schedule-timeline-row {
  min-height: 68px;
  position: relative;
}

.schedule-duration {
  padding-top: 1.05rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.schedule-rail {
  position: relative;
}

.schedule-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 2px;
  border-radius: 999px;
  background: var(--border);
}

.schedule-timeline-row.first .schedule-rail::before {
  top: 26px;
}

.schedule-timeline-row.last .schedule-rail::before {
  bottom: calc(100% - 26px);
}

.schedule-rail span {
  position: absolute;
  top: 18px;
  left: 6px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--surface-muted);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--surface), var(--border));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 5px rgba(29, 29, 31, 0.12);
}

.schedule-entry {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.78rem 0 0.84rem;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.schedule-timeline-row.last .schedule-entry {
  border-bottom: 0;
}

.schedule-entry-time {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.schedule-entry-session {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .schedule-rail span {
  border-color: var(--surface-tint);
  background: linear-gradient(180deg, var(--surface-muted), var(--border-strong));
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .schedule-timeline {
    padding: 1.2rem 0.85rem 1.3rem;
  }

  .schedule-timeline-header,
  .schedule-timeline-row {
    grid-template-columns: 3.8rem 1.5rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .schedule-timeline-header {
    font-size: 0.76rem;
  }

  .schedule-duration {
    font-size: 0.84rem;
  }

  .schedule-entry-time {
    font-size: 0.98rem;
  }

  .schedule-entry-session {
    font-size: 0.88rem;
  }

  .schedule-rail::before {
    left: 11px;
  }

  .schedule-rail span {
    left: 4px;
  }
}

.section-header-component {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: var(--section-header-gap);
  gap: 8px;
  position: relative;
  width: 100%;
}

.section-header-component::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--border);
}

.section-header-component::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 1;
  width: 56px;
  height: 3px;
  background: #b8d85b;
}

.section-header-row {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
}
.section-header-title {
  font-family: 'Palatino', 'Palatino Linotype', serif;
  width: auto;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}
.section-header-subtitle {
  width: auto;
  font-family: 'Inter', Arial, sans-serif;
  font-style: italic;
  font-weight: 200;
  font-size: 0.5rem;
  line-height: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  margin-top: var(--section-header-gap);
  gap: 1.65rem 1rem;
}
.organizer-card {
  background: transparent;
  padding: 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, color 0.2s;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-radius: 0;
}
.organizer-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
  text-decoration: none;
}
.organizer-photo {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.78rem;
  border: 2px solid var(--color-primary);
}
.xueshen-liu-photo {
  object-position: 23% 18%;
}
.initial-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin-bottom: 0.78rem;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--color-primary);
  font-family: 'Palatino', 'Palatino Linotype', serif;
  font-size: 1.38rem;
  font-weight: bold;
}
.organizer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.organizer-name {
  font-weight: bold;
  font-size: 1.02rem;
  color: var(--color-primary);
}
.organizer-org {
  font-size: 0.88rem;
  color: var(--color-neutral-700);
  margin-bottom: 0.25rem;
}
.organizer-info a {
  font-size: 0.9rem;
  color: var(--color-secondary);
  text-decoration: underline;
}

.pc-list-item {
  font-size: 0.9rem;
  color: var(--color-neutral-700);
}

.pc-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.5rem;
  margin-top: 4em;
  margin-bottom: 1.5em;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--module-radius-sm);
  background: var(--surface);
}
.pc-list-grid > div {
  padding: 0.25em 0;
}

.pc-grid {
  margin-top: var(--section-header-gap);
}

.pc-card {
  min-height: 160px;
}

@media (min-width: 1180px) {
  .organizers-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 760px) and (max-width: 1179px) {
  .organizers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .organizers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 0.7rem;
  }

  .organizer-card {
    padding: 0.25rem 0.35rem;
  }

  .organizer-photo,
  .initial-avatar {
    width: 68px;
    height: 68px;
    margin-bottom: 0.65rem;
  }

  .organizer-name {
    font-size: 0.96rem;
  }

  .organizer-org {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .pc-card {
    min-height: 145px;
  }
}

@media (max-width: 380px) {
  .organizers-grid {
    grid-template-columns: 1fr;
  }
}

.notice-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--module-radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  margin-top: var(--content-gap);
}

.notice-panel h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.display-text-palatino {
  font-family: 'Palatino', 'Palatino Linotype', serif;
  font-weight: bold;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.2vh, 0.9rem);
  text-align: center;
  margin: 0 0 clamp(1.2rem, 2.8vh, 2rem) 0;
  line-height: 1.08;
}

.display-text-palatino .hero-title-top {
  font-size: 3rem;
}

.display-text-palatino .hero-title-main {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
}

.display-text-palatino .hero-title-subtitle {
  font-size: 1.8rem;
  font-weight: 700;
}

html[data-theme="dark"] .display-text-palatino {
  color: #ffffff;
}

.hero-workshop-text {
  margin-top: clamp(1.1rem, 2.4vh, 1.8rem);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
}

html[data-theme="dark"] .hero-workshop-text {
  color: #ffffff;
}

.bento-section {
  display: flex;
  min-height: unset;
  align-items: start;
  max-width: 1000px;
  gap: 2rem;
  padding: 0.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.bento-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  border-radius: var(--module-radius-sm);
  overflow: hidden;
  min-width: unset;
  min-height: unset;
  max-width: 640px;
  margin: 0 auto;
}
.bento-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bento-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.bento-topic {
  display: flex;
  align-items: start;
  font-size: 1.6rem;
  color: var(--color-neutral-400);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0.75rem;
  transition: color 0.2s;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bento-topic .bento-num {
  font-size: 0.8rem;
  margin-right: 1.4rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.bento-topic-content {
  display: flex;
  flex-direction: column;
}

.bento-topic .bento-title {
  margin: 0;
}

.bento-topic .bento-desc {
  margin: var(--space-2) 0 0;
}

.genai-topic-details {
  width: 100%;
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-family: 'Inter', Arial, sans-serif;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.genai-topic-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.genai-topic-details summary::marker {
  color: var(--accent);
}

.genai-topic-details ul {
  margin: var(--space-3) 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.genai-topic-details li + li {
  margin-top: var(--space-1);
}

.genai-topic-details li::marker {
  color: var(--accent);
}

.footer-text {
  margin-top: var(--space-5);
  text-align: center;
  color: var(--footer-muted);
}

@media (min-width: 1024px) {
  .footer-text {
    white-space: nowrap;
  }
}

.contact-blockquote {
  text-align: center;
  margin: 1.25rem auto 1.8rem auto;
  font-size: clamp(0.95rem, 1.45vw, 1.15rem);
  line-height: 1.5;
  font-family: 'Palatino', 'Palatino Linotype', serif;
  font-weight: 400;
  color: color-mix(in srgb, var(--footer-muted) 78%, var(--footer-background));
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: var(--section-header-gap) auto 2.5rem auto;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--module-radius);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--color-neutral-700);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  white-space: nowrap; /* Prevents breaking */
  width: auto;         /* Ensures it hugs content */
}
.contact-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-link .arrow-upright {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: middle;
  stroke: currentColor;
}

.organizer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.organizer-contact a {
  font-size: 0.8rem;
  color: var(--color-neutral-500);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}
.organizer-contact a:hover {
  color: var(--color-primary);
}

.important-dates {
  table-layout: fixed;
}

.important-date-row {
  display: table-row;
}


/* Important Dates Table */
.important-dates {
  width: 100%;
  margin: var(--section-header-gap) auto 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--module-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 1.1rem;
}
.important-dates tr {
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.important-dates tr:last-child {
  width: 100%;
  border-bottom: none;
}
.important-dates td {
  padding: 0.92rem 1.35rem;
  vertical-align: middle;
  text-align: left;
  color: var(--color-neutral-900);
}
.important-dates td:first-child {
  font-weight: bold;
  color: var(--color-primary);
  width: 17rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.important-dates time {
  display: inline-block;
  min-width: 14.5rem;
  font-variant-numeric: tabular-nums;
}

.important-dates td:last-child {
  color: var(--color-neutral-700);
  font-weight: 400;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .important-dates,
  .important-dates tbody,
  .important-dates tr,
  .important-dates td {
    display: block;
    width: 100%;
  }
  .important-dates td {
    padding: 0.85rem 1rem 0;
  }
  .important-dates td:first-child {
    width: 100%;
    white-space: normal;
  }

  .important-dates time {
    min-width: 0;
  }
  .important-dates td:last-child {
    padding-top: 0.25rem;
    padding-bottom: 0.85rem;
  }
}

@media (max-width: 991px) {

  .navbar-container {
    padding: 0;
    flex-wrap: wrap;
  }
  .navbar-logo a {
    font-size: 1.2rem;
    padding: 6px 0;
  }
  #navbar {
    display: none;
    background: var(--glass-bg);
  }
  #navbar.navbar-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
    border: 1px solid var(--glass-border-muted);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    min-width: 220px;
    padding: 1rem 2rem;
    z-index: 1200;
  }
  .sticky-header {
    height: 80px;
  }
  .theme-switcher {
    right: 0.75rem;
  }
}

@media (max-width: 1320px) {
  #navbar {
    gap: 0.45rem;
  }

  .nav-link {
    padding: 0.38rem 0.64rem;
    min-height: 32px;
    font-size: 0.88rem;
  }
  .nav-link.active,
  .nav-link:active {
    padding: 0.38rem 0.64rem;
  }
  .theme-option {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }
}

@media (min-width: 992px) and (max-width: 1320px) {
  .navbar-container {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
  }
  .navbar-title-group {
    justify-content: center;
    width: 100% !important;
  }
  #navbar {
    flex: 0 1 100%;
    justify-content: center !important;
    flex-wrap: wrap;
    height: auto;
    gap: 0.35rem;
    overflow: visible;
  }
  .nav-link {
    min-height: 30px;
    padding: 0.34rem 0.58rem;
  }
  .nav-link.active,
  .nav-link:active {
    padding: 0.34rem 0.58rem;
  }
  .theme-switcher {
    top: calc(128px + 1rem) !important;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding-top: 96px;
    padding-bottom: 5.5rem;
  }
  .hero .container {
    min-height: calc(100svh - 180px);
    padding: 2.5rem 1rem;
    transform: translateY(-2.25rem);
  }
  .display-text-palatino {
    gap: 0.55rem;
    margin-bottom: 1.2rem;
  }
  .display-text-palatino .hero-title-top {
    font-size: 2rem;
  }
  .display-text-palatino .hero-title-main {
    font-size: 2.6rem;
  }
  .display-text-palatino .hero-title-subtitle {
    font-size: 1.18rem;
  }
  .hero-workshop-text {
    margin-top: 1.05rem;
    font-size: clamp(1rem, 5vw, 1.35rem);
  }
  #navbar {
    display: none;
    background: var(--glass-bg);
  }
  .navbar-container {
    padding: 0;
    width: 100%;
    justify-content: space-between;
  }
  .theme-switcher {
    top: auto !important;
    right: auto;
    left: 50%;
    bottom: 1rem !important;
    flex-direction: row;
    transform: translateX(-50%) !important;
    padding: 6px;
    gap: 5px;
  }
  .theme-option {
    width: 36px;
    min-height: 36px;
  }
  .navbar-logo a {
    font-size: 1rem;
    padding: 4px 0;
  }
  /* Hide the NeurIPS logo on mobile to prevent blocking the mobile menu */
  .navbar-logo:last-child {
    display: none;
  }
  .bento-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    min-height: unset;
  }
  .bento-image {
    min-width: 0;
    width: 100%;
    min-height: 100px;
    margin-bottom: 1rem;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }
  .section-header-component {
    padding-bottom: 2rem;
  }
  /* Make the navbar logo image smaller on mobile */
  .navbar-logo img {
    height: 36px !important;
    max-width: 80px !important;
  }
  /* Make the navbar title text smaller on mobile */
  .navbar-title {
    font-size: 1rem !important;
  }
  .navbar-title-group {
    justify-content: flex-start;
    width: auto !important;
  }
}

/* Shared section content width for all main content paragraphs */
.section-content {
  width: 100%;
  margin: 0 auto;
}

.organizer-role {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--button);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 0.75em;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .organizer-role {
  color: #201713;
}

.support-team-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
}

.sponsor-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: clamp(2.25rem, 7vw, 5.75rem);
  row-gap: 1.25rem;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0.2rem 0 0.3rem;
}

.sponsor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  opacity: 0.94;
}

.sponsor-logo-img {
  display: block;
  width: auto;
  max-width: min(46vw, 260px);
  object-fit: contain;
}

.sponsor-logo-zoom .sponsor-logo-img {
  height: clamp(29px, 3.5vw, 39px);
}

.sponsor-logo-tencent .sponsor-logo-img {
  height: clamp(30px, 3.45vw, 40px);
}

.sponsor-logo-img-dark {
  display: none;
}

html[data-theme="dark"] .sponsor-logo-img-light {
  display: none;
}

html[data-theme="dark"] .sponsor-logo-img-dark {
  display: block;
}

html[data-theme="dark"] .sponsor-logo-tencent .sponsor-logo-img {
  filter: brightness(1.18) saturate(0.92);
}

@media (max-width: 640px) {
  .sponsor-grid {
    flex-direction: column;
    gap: 1.25rem;
  }

  .sponsor-logo-img {
    max-width: min(72vw, 260px);
  }
}
