:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-blue: #4f46e5;
  --accent-purple: #7c3aed;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --bg-light: #f8fafc;
  --bg-section-alt: #f1f5f9;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', 'Noto Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

/* ===== Hero Section ===== */
.hero-header-section {
  position: relative;
  background: linear-gradient(160deg, #e0f2fe 0%, #dbeafe 45%, #c7d2fe 100%);
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-header-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header-section .publication-title {
  font-family: 'Google Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-header-section .publication-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-family: 'Google Sans', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0b0b0b;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.hero-header-section .publication-kicker .kicker-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.hero-header-section .publication-title .highlight-text {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-header-section .publication-authors {
  position: relative;
  z-index: 1;
}

.hero-header-section .publication-authors a {
  color: #0b0b0b;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.hero-header-section .publication-authors a:hover {
  color: #0b0b0b;
  text-decoration: underline;
}

.hero-header-section .publication-authors span.author-block {
  color: #0b0b0b;
}

.hero-header-section .publication-authors sup {
  color: #2563eb;
}

.hero-header-section .publication-authors-list {
  color: #0b0b0b;
}

.hero-header-section .publication-affiliations {
  color: #4b5563;
}

.hero-header-section .is-size-6.publication-authors {
  color: #475569;
}

/* Link Buttons */
.publication-links .button.is-dark {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #0b0b0b;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  font-weight: 500;
}

.publication-links .button.is-dark:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.45);
  color: #0b0b0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

/* ===== Section Styling ===== */
.section {
  padding: 4rem 1.5rem;
}

.section:nth-child(even) {
  background-color: var(--bg-section-alt);
}

.section:nth-child(odd) {
  background-color: #ffffff;
}

.section .title.is-3 {
  font-family: 'Google Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  margin-bottom: 1.8rem;
}

.section .title.is-3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-radius: 2px;
}

/* ===== Content Cards ===== */
.content-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.content-card .content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-card .content ul li,
.content-card .content ol li {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.content-card .content ul li b,
.content-card .content ol li b {
  color: var(--text-primary);
}

/* ===== Image Display ===== */
.image-showcase {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  margin-top: 2rem;
  overflow: hidden;
}

.image-showcase img {
  border-radius: 10px;
  width: 100%;
  display: block;
}

.image-showcase .image-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 1rem;
  padding: 0 1rem;
  line-height: 1.6;
}

/* ===== Task Pills ===== */
.task-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88em;
}

.task-pill.code {
  background: #dbeafe;
  color: #1d4ed8;
}

.task-pill.arithmetic {
  background: #fce7f3;
  color: #be185d;
}

.task-pill.spatial {
  background: #d1fae5;
  color: #065f46;
}

.task-pill.attribute {
  background: #fef3c7;
  color: #92400e;
}

.task-pill.text {
  background: #ede9fe;
  color: #5b21b6;
}

/* ===== Evaluation Setting Tags ===== */
.eval-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9em;
}

.eval-tag.direct {
  background-color: #d1eefc;
  color: #208bba;
}

.eval-tag.guided {
  background-color: #ffe8cc;
  color: #d97706;
}

.eval-tag.decontext {
  background-color: #fce1ed;
  color: #d61f69;
}

/* ===== Leaderboard Section ===== */
.leaderboard-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 4rem 1.5rem;
}

.leaderboard-section .title.is-3 {
  font-family: 'Google Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.leaderboard-section .title.is-3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  border-radius: 2px;
}

.leaderboard-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Tabulator overrides */
.tabulator {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', 'Noto Sans', sans-serif;
}

.tabulator .tabulator-header {
  background: linear-gradient(160deg, #e0f2fe 0%, #dbeafe 45%, #c7d2fe 100%) !important;
  border-bottom: none !important;
}

.tabulator .tabulator-header .tabulator-col {
  background: transparent !important;
  border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
  color: #0f172a !important;
  font-weight: 600;
  font-size: 0.98em;
}

.tabulator .tabulator-header .tabulator-col-group .tabulator-col-group-cols {
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  border-bottom: 1px solid #f1f5f9;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
  background-color: #eef2ff !important;
}

.tabulator-row .tabulator-cell {
  border-right: 1px solid #f1f5f9 !important;
  padding: 10px 8px;
}

.tabulator-row .tabulator-cell[tabulator-field="Model"],
.tabulator-row .tabulator-cell[tabulator-field="Setting"] {
  white-space: nowrap;
}

/* ===== Contact Section ===== */
.contact-section {
  background: #ffffff;
  padding: 3rem 1.5rem;
}

.contact-card {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid #c7d2fe;
}

.contact-card .title {
  font-family: 'Google Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-card a {
  color: #6366f1;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(160deg, #e0f2fe 0%, #dbeafe 45%, #c7d2fe 100%) !important;
  padding: 2rem 1.5rem !important;
}

.footer .content {
  color: #0f172a !important;
}

.footer a {
  color: #1e3a8a !important;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #1d4ed8 !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-header-section .publication-title {
    font-size: 1.8rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }
}