/* ── Base ── */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 100%;
}

* {
  font-family: 'Lato', Helvetica, sans-serif;
  color: #333447;
  line-height: 1.5;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 400; }
h4 { font-size: 1.125rem; font-weight: 700; }

p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
}

.center { text-align: center; }

img,
video { max-width: 100%; }

.img { max-width: 100%; }

.full-width { width: 100%; }

.line {
  height: 1px;
  width: 100%;
  background: #D6D6D8;
  margin: 30px 0;
}

/* ── Links ── */
a.amber {
  color: #F5A803 !important;
  text-decoration: none;
  font-weight: 700;
}
a.amber:hover { text-decoration: underline; }

/* ── DOLA brand color ── */
.dola-name {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

/* ── Venue badge ── */
.venue {
  font-size: 1.1rem;
  font-weight: 400;
  color: #555;
}

/* ── Teaser video ── */
.teaser-video { max-width: 60%; }

/* ── Teaser Keynote (HTML5 export, 16:9) ── */
.teaser-keynote {
  width: 100%;
  aspect-ratio: 1620 / 580;
  background: transparent;
  overflow: hidden;
}
.teaser-keynote iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Figure caption ── */
.caption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 2rem;
}

/* ── Simulated benchmark tables ── */
.results-figure { margin: 1.25rem 0 2rem; }

.results-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table-scroll:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.results-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border-top: 2px solid #333447;
  border-bottom: 2px solid #333447;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.results-table th,
.results-table td {
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.results-table thead th {
  border-bottom: 1px solid #999aa6;
  font-weight: 700;
}

.results-table tbody tr + tr { border-top: 1px solid #e5e7eb; }

.results-table th:first-child { text-align: left; }

.results-table-highlight {
  background: #eff5ff;
  font-weight: 700;
}

.results-figure .caption { margin: 0.75rem 0 0; }

/* ── Body content wrapper ── */
.body-content { padding-bottom: 100px; }

/* ── Narrow text block ── */
.text-narrow { max-width: 900px; }

/* ── Single video (centered) ── */
.singlevideo {
  display: flex;
  justify-content: center;
}

/* ── Real-robot 2-col layout ── */
.tworow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tworow video {
  width: 100%;
  background: #111;
  display: block;
  border-radius: 4px;
}

.tworow-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #555;
  padding: 4px 0;
}

.tworow-label.execution { color: #2563eb; }

/* ── Six-video row (cross-embodiment) ── */
.sixrow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.sixrow video {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.sixrow-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 0;
  margin: 0;
}

.sixrow-label.success { color: #16a34a; }
.sixrow-label.failure { color: #dc2626; }

/* ── Paired skill grid (panda row over ur5e row) ── */
.skillgrid {
  display: grid;
  column-gap: 0;
  row-gap: 6px;
  align-items: center;
  margin-bottom: 24px;
  --pairgap: 16px;
}

/* top: 3 flush pairs, gap only between pairs */
.skillgrid.top {
  grid-template-columns:
    max-content 1fr 1fr var(--pairgap) 1fr 1fr var(--pairgap) 1fr 1fr;
}

/* bottom: 2 flush pairs, centered by 1fr spacers, same video width */
.skillgrid.bottom {
  grid-template-columns:
    max-content 1fr 1fr 1fr var(--pairgap) 1fr 1fr 1fr;
}

.skillgrid video {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.skillgrid-skill {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #555;
  padding: 2px 0;
  margin: 0;
}

.skillgrid-skill.pos { color: #7da4f5; }
.skillgrid-skill.neg { color: #f59d98; }

.skillgrid-robot {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  padding-right: 6px;
  white-space: nowrap;
}

/* ── Env grid ── */
.envs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.env-col video {
  width: 100%;
  border-radius: 6px;
}

/* ── Carousel override ── */
.carousel-control-prev-icon,
.carousel-control-next-icon { filter: invert(1); }

.carousel-control-prev,
.carousel-control-next { width: 5%; }

.carousel-indicators [data-bs-target] { background-color: #333447; }

/* ── BibTeX block ── */
.bibtex-wrap { position: relative; }

.bibtex-wrap pre {
  background: #0f1117;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1e2330;
  color: #94a3b8;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: #2563eb;
  color: #fff;
}

/* ── KaTeX ── */
.katex { font-size: 1em; }

/* ── Responsive ── */
@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
}
