/* ===== See2Act project page styles ===== */
:root { --ours-blue: #2563eb; }

body {
  font-family: 'Google Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  background: #ffffff;
}

.publication-title { letter-spacing: -0.01em; line-height: 1.18; }
.publication-title .accent { color: var(--ours-blue); }
.hero.is-light { background: #f6f8fb; }

.container.is-wide { max-width: 1200px; }

/* inline MathML (e.g. epsilon-tilde) — match caption size & vertical rhythm */
.figure-caption math { font-size: 1.15em; vertical-align: -0.08em; }

.author-block { margin: 0 0.4rem; }
.under-review-badge {
  display: inline-block;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 0.45em 1.3em;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.section-title { margin-bottom: 1.2rem !important; }

.figure-caption {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  margin-top: 0.6rem;
}
.figure-caption b { color: #1f2937; }

.abstract-text {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.occ-swatch {
  display: inline-block;
  width: 0.9em; height: 0.9em;
  background: rgba(37, 99, 235, 0.45);
  border: 1px solid var(--ours-blue);
  border-radius: 3px;
  vertical-align: -0.08em;
}

/* ===== Comparison grid ===== */
.task-title { margin-top: 1.8rem !important; margin-bottom: 0.9rem !important; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 1.2rem auto;
}
@media (max-width: 640px) { .method-grid { grid-template-columns: 1fr; } }

/* Ravens 4-up grid: always shows all four, no horizontal scroll */
.ravens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 820px) { .ravens-grid { grid-template-columns: repeat(2, 1fr); } }
.ravens-grid { align-items: start; }
.ravens-item .bench-label { padding-bottom: 0.5em; }
.ravens-item img { width: 100%; border-radius: 10px; border: 1px solid #e5e7eb; display: block; }

/* ===== Hover-expand task cards ===== */
.task-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37,99,235,0.20);
  border-color: var(--ours-blue);
}
.task-card .task-media { width: 100%; display: block; background: #f3f4f6; }
.task-card .task-body { padding: 0.7rem 0.95rem; }
.task-card .task-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 0.4em;
}
.task-card .task-chev {
  color: var(--ours-blue);
  font-size: 0.85em;
  transition: transform .28s ease;
}
.task-card:hover .task-chev { transform: rotate(180deg); }
.task-card .task-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #4b5563;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.task-card:hover .task-desc { max-height: 22em; opacity: 1; margin-top: 0.6rem; }
.task-card .task-desc b { color: #1f2937; }

/* Text-only task cards (real-robot rows): collapsed = title bar, expands on hover */
.task-card.is-text {
  max-width: 760px;
  margin: 0 auto 1.1rem auto;
}
.task-card.is-text .task-body { padding: 0.85rem 1.4rem; }
.task-card.is-text .task-name { font-size: 1.25rem; }
.task-card.is-text .task-desc { text-align: center; }
.task-card.is-text:hover .task-desc { max-height: 16em; }

/* ===== Takeaway callout card ===== */
.takeaway {
  max-width: 860px;
  margin: 1.8rem auto 0 auto;
  background: rgba(37, 99, 235, 0.07);
  border-left: 5px solid var(--ours-blue);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.62;
  color: #4b5563;
}
.takeaway p { margin: 0; }
.takeaway p + p { margin-top: 0.7rem; }
.takeaway .lead { color: #1f2937; font-weight: 700; }
.paper-ref {
  text-align: center;
  color: #6b7280;
  font-size: 0.92rem;
  margin: 1.2rem auto 0 auto;
}

/* Flagship single-row video */
.flagship-wrap {
  max-width: 900px;
  margin: 0 auto 1rem auto;
  border: 2px solid var(--ours-blue);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(37,99,235,0.18);
}
.flagship-wrap .flagship-label {
  text-align: center; font-weight: 600; color: #fff;
  background: var(--ours-blue); padding: 0.55em 0; font-size: 1rem;
}
.flagship-wrap video { width: 100%; display: block; background: #000; }

.method-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.method-card.is-ours {
  border: 2px solid var(--ours-blue);
  box-shadow: 0 4px 14px rgba(37,99,235,0.18);
}
.method-label {
  text-align: center;
  font-weight: 600;
  padding: 0.5em 0;
  font-size: 0.95rem;
  background: #f3f4f6;
  color: #374151;
}
.method-card.is-ours .method-label {
  background: var(--ours-blue);
  color: #fff;
}
.method-card .video-wrap { position: relative; line-height: 0; background: #000; }
.cmp-video { width: 100%; height: auto; display: block; }

.method-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 180px; color: #9ca3af; font-size: 0.95rem; background: #f9fafb;
}

/* ===== Horizontal scroller ===== */
.bench-scroller { position: relative; max-width: 980px; margin: 0 auto; padding: 0 44px; }
.bench-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  padding: 6px 2px 14px 2px; scrollbar-width: thin;
}
.bench-track::-webkit-scrollbar { height: 8px; }
.bench-track::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.bench-item { flex: 0 0 230px; }
.bench-label { text-align: center; font-weight: 600; font-size: 0.9rem; padding: 0.4em 0; color: #374151; }
.bench-item .video-wrap, .bench-item img {
  width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; display: block;
}
.bench-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #111827; color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; opacity: 0.85; z-index: 3;
}
.bench-arrow:hover { opacity: 1; }
.bench-prev { left: 0; }
.bench-next { right: 0; }

/* ===== Loading spinner ===== */
.video-wrap { position: relative; }
.cmp-spinner {
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: cmp-spin 0.8s linear infinite; z-index: 2;
}
@keyframes cmp-spin { to { transform: rotate(360deg); } }

.method-img { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; display: block; }
.footer-attribution { font-size: 0.85rem; color: #6b7280; }
