:root {
  --ink: #1b1b1b;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --paper: #ffffff;
  --wash: #f6f6f4;
  --position: #2f6fbd;
  --velocity: #d97706;
  --viper: #0f766e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.publication-title {
  font-family: Castoro, Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.publication-method {
  margin-top: 0.85rem;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
}

.publication-method .name {
  color: var(--viper);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.publication-authors,
.publication-venue {
  font-family: "Noto Sans", Helvetica, Arial, sans-serif;
}

.publication-authors {
  color: var(--ink);
  font-size: 1.05rem;
}

.publication-venue {
  color: #555;
  font-weight: 700;
}

.takeaway {
  max-width: 42rem;
  margin: 1.6rem auto 0;
  font-size: 1.2rem;
  line-height: 1.45;
  font-style: italic;
  color: #333;
}

.hero-body {
  padding-top: 3.2rem;
  padding-bottom: 1.2rem;
}

.section {
  padding: 2.4rem 1.5rem;
}

.section.wash {
  background: var(--wash);
}

.section-title {
  font-family: Castoro, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 400;
  margin-bottom: 0.9rem;
}

.lede {
  max-width: 44rem;
  margin: 0 auto 1.4rem;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
}

.coming-soon {
  pointer-events: none;
  opacity: 0.55;
  cursor: default;
}

.coming-soon .caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.35rem;
  font-weight: 400;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  border: 1.5px dashed #cfcfc8;
  background:
    linear-gradient(180deg, #fbfbf9 0%, #f3f3ef 100%);
  color: #4a4a4a;
  border-radius: 10px;
  padding: 1.4rem 1rem;
}

.placeholder-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.45rem;
}

.placeholder-title {
  font-family: Castoro, Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.placeholder-body {
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.placeholder-file {
  margin-top: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #666;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
}

.placeholder-16x9 {
  aspect-ratio: 16 / 9;
  min-height: 12rem;
}

.placeholder-figure {
  aspect-ratio: 16 / 8;
  min-height: 14rem;
}

.placeholder-task {
  aspect-ratio: 16 / 10;
  min-height: 9rem;
  border-radius: 8px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.task-card {
  min-width: 0;
}

.task-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.task-name {
  font-weight: 700;
  font-size: 1rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.badge-sim {
  background: #e8f1fb;
  color: var(--position);
}

.badge-real {
  background: #fdecd3;
  color: #b45309;
}

.compare + .compare {
  margin-top: 1.6rem;
}

.compare-task {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.compare-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.compare-side {
  min-width: 0;
}

.compare-label {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.compare-label.baseline {
  color: var(--ink);
}

.compare-label.viper {
  color: var(--viper);
}

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0.4rem 0 1.3rem;
}

.result {
  text-align: center;
  padding: 1.1rem 0.6rem 1.2rem;
}

.result-task {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.result-score {
  font-family: Castoro, Georgia, serif;
  font-size: 2.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.result-from {
  color: #7a7a7a;
}

.result-to {
  color: var(--viper);
}

.result-label {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.results-note {
  max-width: 40rem;
  margin: 0 auto 1.4rem;
  text-align: center;
  color: #333;
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.triptych-item {
  padding: 1.1rem 1rem 1.2rem;
  border-top: 3px solid var(--line);
}

.triptych-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.triptych-item.position { border-top-color: var(--position); }
.triptych-item.spline { border-top-color: #9aa0a6; }
.triptych-item.viper { border-top-color: var(--viper); }

.triptych-item p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.key-line {
  text-align: center;
  font-style: italic;
  margin: 1.4rem 0 1.2rem;
  font-size: 1.12rem;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem 1rem;
  align-items: stretch;
  max-width: 52rem;
  margin: 0 auto 1.4rem;
}

.pipeline-vla,
.pipeline-expert,
.pipeline-couple,
.pipeline-robot {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.85rem 0.9rem;
  text-align: center;
}

.pipeline-vla,
.pipeline-couple,
.pipeline-robot {
  grid-column: 1 / -1;
}

.pipeline-vla {
  background: #f7f7f5;
  font-weight: 700;
}

.pipeline-expert.pos {
  border-color: #c9dbf2;
  background: #f5f9fd;
}

.pipeline-expert.vel {
  border-color: #f3d7b0;
  background: #fff8ee;
}

.pipeline-expert .kind {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.pipeline-expert.pos .kind { color: var(--position); }
.pipeline-expert.vel .kind { color: var(--velocity); }

.pipeline-expert .out {
  margin-top: 0.25rem;
  font-family: Castoro, Georgia, serif;
  font-size: 1.2rem;
}

.pipeline-couple {
  border-color: #b7ddd8;
  background: #f2fbf9;
  color: var(--viper);
  font-weight: 700;
}

.pipeline-robot {
  font-weight: 700;
}

.abstract {
  max-width: 44rem;
  margin: 0 auto;
  color: #444;
  font-size: 0.98rem;
  line-height: 1.65;
}

.abstract-label {
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #888;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Sidebar navigation */
.sidebar-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 170px;
}

.sidebar-nav .sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  padding: 0 10px 6px 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 6px;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin: 2px 0;
}

.sidebar-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: #777;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
  color: #222;
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-nav a.active {
  color: #2a5bd8;
  font-weight: 600;
  border-left-color: #2a5bd8;
  background: rgba(42, 91, 216, 0.07);
}

/* Nested sub-section links */
.sidebar-nav .nav-group > a { font-weight: 600; color: #555; }
.sidebar-nav .nav-sub { list-style: none; margin: 1px 0 4px 0; padding: 0; }
.sidebar-nav .nav-sub a { padding: 4px 10px 4px 22px; font-size: 0.78rem; color: #9a9a9a; }

/* Hide sidebar on smaller screens */
@media screen and (max-width: 1280px) {
  .sidebar-nav {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.55rem;
  }

  .task-grid,
  .compare-pair,
  .results,
  .triptych,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-expert {
    grid-column: 1 / -1;
  }

  .result-score {
    font-size: 1.9rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
