:root {
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e6e8ee;
  --shade: #f6f7fa;
  --accent: #2f5bea;
  --accent-soft: #e8eeff;
  --ok: #1f9d55;
}

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { color: var(--ink); background: #fff; }

/* top navigation */
.topnav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--page); margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topnav .brand { font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.topnav-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: flex-end; }
.topnav-links a { color: var(--muted); font-size: .95rem; }
.topnav-links a:hover { color: var(--accent); }

/* header */
.hero .hero-body { padding: 3.5rem 1.5rem 1.5rem; }
.publication-title { line-height: 1.2; margin-bottom: 1.5rem !important; }
.publication-authors { margin-bottom: .35rem; }
.publication-authors .author-block { margin: 0 .05rem 0 .3rem; }
.affiliation-logos {
  display: flex; justify-content: space-between; align-items: center; gap: 3rem;
  max-width: 560px; margin: 1.6rem auto .4rem;
}
.affiliation-logos img { height: 34px; width: auto; display: block; }
.affiliation-logos a:last-child img { height: 30px; }
.publication-links { margin-top: 1.4rem; }
.publication-links .button { margin: .25rem; }

/* every video carries its playback speed */
.vid { position: relative; }
.speed-badge {
  position: absolute; bottom: .55rem; left: .55rem; z-index: 2; pointer-events: none;
  background: rgba(15, 20, 35, .72); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .18rem .55rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.system-badge {
  position: absolute; top: .55rem; left: .55rem; z-index: 2; pointer-events: none;
  background: rgba(255, 255, 255, .9); color: #1a1f2e; font-size: .78rem; font-weight: 700;
  padding: .18rem .55rem; border-radius: 999px;
}
.clip-card .vid { border-radius: 12px 12px 0 0; overflow: hidden; }
.teaser-videos .speed-badge { font-size: .85rem; bottom: .7rem; left: .7rem; }

/* teaser: one long-horizon success per suite */
.teaser-videos { padding-top: 1rem; padding-bottom: 1.5rem; }
.teaser-clip {
  width: 100%; aspect-ratio: 16 / 10 !important; object-fit: cover; background: #000;
  border-radius: 12px; display: block; box-shadow: 0 6px 24px rgba(20, 30, 60, .12);
}
.teaser-label { text-align: center; margin-top: .6rem; color: var(--muted); font-size: .95rem; }

/* sections */
.section { padding: 4rem 1.5rem; }
.section.shade { background: var(--shade); }
.section .title.is-3 { margin-bottom: .75rem; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.section > .container > .title.is-3 + * { margin-top: 1.75rem; }
img.figure { width: 100%; height: auto; display: block; margin: 0 auto; }
.figure-caption { color: var(--muted); font-size: .9rem; margin: .8rem auto 0; max-width: 820px; text-align: justify; }
.abstract-title { margin-top: 2.5rem; }
.abstract { max-width: 820px; margin: 0 auto; }

/* benchmark */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 2.5rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem .6rem; text-align: center;
}
.stat-value { display: block; font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-label { display: block; font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.suite-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%;
}
.suite-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #000; }
.suite-body { padding: .9rem 1.1rem 1.1rem; }
.suite-name { font-weight: 700; font-size: 1.1rem; margin-bottom: .2rem; }
.suite-facts { color: var(--muted); font-size: .9rem; }

/* task categories */
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%; }
.cat-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.cat-body { padding: .75rem .9rem .9rem; }
.cat-name { font-weight: 700; margin-bottom: .25rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.cat-count { color: var(--muted); font-weight: 500; font-size: .8rem; white-space: nowrap; }
.cat-req { font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
.cat-example { font-size: .85rem; color: var(--muted); }

/* headline findings */
.tagline { max-width: 860px; margin: 2rem auto 0; text-align: center; font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 2.2rem 0 2.5rem; }
.finding {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 12px; padding: 1.1rem 1.2rem 1.2rem;
}
.shade .finding { box-shadow: 0 2px 10px rgba(20, 30, 60, .04); }
.finding-value { display: block; font-size: 1.65rem; font-weight: 800; color: var(--accent); line-height: 1.15; }
.finding-head { font-weight: 700; margin: .45rem 0 .3rem; line-height: 1.3; }
.finding-text { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.subhead { margin-top: 3.5rem; margin-bottom: .5rem !important; }
.subhead-note { text-align: center; color: var(--muted); max-width: 820px; margin: 0 auto 1.5rem; font-size: .95rem; }
.row-title { font-weight: 700; font-size: 1rem; margin: 2rem 0 .8rem; color: var(--ink); }
.row-title:first-of-type { margin-top: 0; }

/* chips */
.chip {
  display: inline-block; padding: .15rem .6rem; margin: .2rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600;
}
.chip.strong { background: var(--accent); color: #fff; }
.chip.ok { background: #e3f6ea; color: var(--ok); }
.chip.bad { background: #fde8e8; color: #c53030; }
.chip.muted { background: #eef0f4; color: var(--muted); }

/* results tables */
.table-wrap { overflow-x: auto; }
table.results { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 auto; }
table.results th, table.results td { padding: .5rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
table.results thead th { font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); }
table.results tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
table.results td.bar { font-variant-numeric: tabular-nums; }
table.results tr.ours th, table.results tr.ours td { font-weight: 700; }
table.results tr.sep td { padding: 0; border-bottom: 2px solid var(--line); }
table.results tr.foot th, table.results tr.foot td { color: var(--muted); font-style: italic; font-size: .85rem; border-bottom: none; }
table.results .pm { color: var(--muted); font-size: .78em; font-weight: 400; margin-left: .15rem; white-space: nowrap; }
table.results td { white-space: nowrap; }
table.results tr.group td {
  text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--shade); padding: .35rem .8rem;
}
.shade table.results tr.group td { background: #eceef3; }
table.results tr.ours th, table.results tr.ours td { background: var(--accent-soft); }
table.results.compact { font-size: .85rem; }
table.results.compact th, table.results.compact td { padding: .35rem .55rem; }
table.results thead th small { font-weight: 400; }
.best-learned { color: #0a7d2c; font-weight: 700; }
.best-tool { color: #0050c8; font-weight: 700; }
.best-learned .pm, .best-tool .pm { color: inherit; opacity: .75; }
table.results.real td { font-variant-numeric: tabular-nums; }
.table-note { color: var(--muted); font-size: .85rem; text-align: center; margin: .6rem 0 3rem; }
.tab-pane + h3 { margin-top: 3rem; }
.tabs.is-boxed { margin-bottom: 1.5rem; }
.tabs.is-boxed li.is-active a { color: var(--accent); font-weight: 600; }
details.more { margin: 1.5rem auto 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .8rem 1rem; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.more[open] summary { margin-bottom: 1rem; }
.real-results { margin-top: 1rem; }

/* rollout galleries */
.tabs.is-toggle a { border-color: var(--line); }
.tabs.is-toggle li.is-active a { background: var(--accent); border-color: var(--accent); }
.tab-pane.is-hidden { display: none; }
.pane-text { text-align: center; color: var(--muted); max-width: 820px; margin: 0 auto 1.5rem; font-size: .95rem; }
.clip-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%; }
video.rollout { width: 100%; height: auto; object-fit: cover; background: #000; display: block; }
.clip-title { font-weight: 600; font-size: .9rem; padding: .7rem .9rem 0; }
.clip-instruction { font-size: .9rem; padding: .7rem .9rem .2rem; color: var(--ink); }
.clip-meta { padding: 0 .7rem .8rem; }
.system-grid .clip-title { padding-top: .5rem; font-size: .85rem; }
.clip-title .chip { vertical-align: middle; }

/* resources */
a.resource {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 1.2rem; color: var(--ink); transition: box-shadow .15s, border-color .15s;
}
a.resource:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(47, 91, 234, .12); }
.resource-icon { font-size: 1.6rem; color: var(--accent); margin-bottom: .5rem; }
.resource-name { font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.resource-text { color: var(--muted); font-size: .9rem; line-height: 1.5; }

pre.bibtex { white-space: pre-wrap; word-break: break-word; background: var(--shade); border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; }
.footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 768px) {
  .topnav-links { display: none; }
  .affiliation-logos { gap: 1.5rem; }
  .affiliation-logos img { height: 24px; }
  .affiliation-logos a:last-child img { height: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tagline { font-size: 1rem; }
  .publication-title { font-size: 2.1rem !important; }
  .tabs a { font-size: .85rem; padding: .4em .75em; }
  .findings { gap: .75rem; }
  table.results tbody th, table.results thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
  .shade table.results tbody th, .shade table.results thead th:first-child { background: var(--shade); }
  table.results tr.ours th { background: var(--accent-soft); }
  .abstract, .figure-caption { text-align: left !important; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
.hf-logo { width: 1.25em; height: 1.25em; }

/* one column width for every section and the navigation bar, wider on large monitors */
:root { --page: 1152px; }
@media (min-width: 1800px) { :root { --page: 1400px; } html { font-size: 17px; } }
@media (min-width: 2400px) { :root { --page: 1600px; } html { font-size: 18px; } }
.container.is-max-desktop, .container.is-max-widescreen { max-width: var(--page) !important; }
#bibtex .title { text-align: center; }
pre.bibtex { max-width: 900px; margin: 0 auto; }
.lb-link { margin-top: 1.5rem; }
.picker { margin-left: .6rem; vertical-align: middle; }
.picker select { font-weight: 600; }

/* Evaluate your system: one card per kind of system */
.evaluate-card { height: 100%; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.evaluate-name { font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.evaluate-text { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.evaluate-card pre { padding: .7rem .8rem; font-size: .76rem; background: #f6f7fa; border-radius: 6px; overflow-x: auto; }
.evaluate-next { max-width: 46rem; margin: 1.2rem auto 0; text-align: center; color: var(--muted); }
.evaluate-next code { font-size: .85em; color: var(--ink); }
