/* CAT's editorial layer. Loaded after the template styles so the page can
   retain its existing components without inheriting the template's split
   hero, alternating panels, or narrow research figures. */

:root {
  --cat-ink: #202124;
  --cat-muted: #62666d;
  --cat-rule: #d9dadd;
  --cat-paper: #fff;
  /* The largest research figures establish one shared page measure. Text,
     media, controls, cards, and supporting copy all align to this boundary. */
  --cat-content: 1120px;
  --cat-blue: #3E5CA4;
  --cat-blue-dark: #2F4F8F;
  --cat-red: #C5232A;
  --cat-radius: 12px;
  --cat-media-radius: 14px;
  --cat-card-gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

html {
  background: var(--cat-paper);
}

body {
  background: var(--cat-paper);
  color: var(--cat-ink);
}

/* Floating related-work index, following the interaction used by
   LeCropFollow while retaining CAT's typography and colour system. */
.related-works {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: "Poppins", sans-serif;
}

.related-works-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--cat-rule);
  border-radius: var(--cat-radius);
  background: var(--cat-paper);
  box-shadow: 0 5px 18px rgba(32, 33, 36, 0.12);
  color: var(--cat-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.related-works-trigger:hover,
.related-works-trigger[aria-expanded="true"] {
  border-color: var(--cat-blue);
  box-shadow: 0 7px 22px rgba(47, 79, 143, 0.16);
  transform: translateY(-1px);
}

.related-works-trigger:focus-visible,
.related-works-close:focus-visible,
.related-work-item:focus-visible {
  outline: 2px solid var(--cat-blue);
  outline-offset: 2px;
}

.related-works-arrow {
  font-size: 0.7rem;
  transition: transform 160ms ease;
}

.related-works-trigger[aria-expanded="true"] .related-works-arrow {
  transform: rotate(180deg);
}

.related-works-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(400px, calc(100vw - 2rem));
  max-height: min(70vh, 580px);
  overflow-y: auto;
  border: 1px solid var(--cat-rule);
  border-radius: var(--cat-radius);
  background: var(--cat-paper);
  box-shadow: 0 16px 42px rgba(32, 33, 36, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.55rem);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.related-works-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.related-works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--cat-rule);
}

.related-works-header h2 {
  margin: 0;
  color: var(--cat-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.related-works-close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--cat-muted);
  cursor: pointer;
}

.related-works-close:hover {
  background: #f3f4f6;
  color: var(--cat-ink);
}

.related-works-list {
  padding: 0.7rem;
}

.related-work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.related-work-item + .related-work-item {
  margin-top: 0.15rem;
}

.related-work-item:hover {
  background: #f4f6fa;
  transform: translateX(2px);
}

.related-work-copy {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.related-work-copy strong {
  color: var(--cat-ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.related-work-copy > span {
  color: #44484e;
  font-size: 0.78rem;
  line-height: 1.5;
}

.related-work-copy small {
  color: var(--cat-muted);
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.4;
}

.related-work-item > .fa-arrow-up-right-from-square {
  flex: 0 0 auto;
  margin-top: 0.18rem;
  color: var(--cat-blue);
  font-size: 0.72rem;
}

/* CAT's long two-line title reaches farther across tablet viewports than the
   LeCropFollow hero, so move the control below it before a collision occurs. */
@media screen and (max-width: 1100px) {
  .related-works {
    top: auto;
    right: 1rem;
    bottom: 1rem;
  }

  .related-works-panel {
    top: auto;
    right: 0;
    bottom: calc(100% + 0.55rem);
    width: calc(100vw - 2rem);
    max-height: min(68vh, 540px);
    transform: translateY(0.55rem);
  }

  .related-works-panel.is-open {
    transform: translateY(0);
  }
}

body > .container.blog,
.site-main > .container.blog {
  box-sizing: border-box;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: transparent;
}

.site-main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

div.container.blog.main,
section.container.blog.main {
  max-width: var(--cat-content);
  padding: clamp(1.5rem, 3vw, 2.75rem) 0 0;
}

div.container.blog.extra-large,
section.container.blog.extra-large,
figure.container.blog.extra-large,
div.container.blog.extra-extra-large,
section.container.blog.extra-extra-large,
figure.container.blog.extra-extra-large {
  max-width: var(--cat-content);
  padding: clamp(1.25rem, 2.5vw, 2.5rem) 0 0;
}

.container.blog.first {
  margin-top: 0;
}

.container.blog h2,
.container.blog h3 {
  color: var(--cat-ink);
  letter-spacing: -0.015em;
}

.container.blog p.text {
  color: #34373c;
  font-size: 1.05rem;
  hyphens: auto;
  line-height: 1.72;
  text-align: justify;
  text-justify: inter-word;
}

.container.blog p.caption,
.container.blog figcaption.caption {
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  color: var(--cat-muted);
  font-size: 0.9rem;
  font-weight: 400;
  hyphens: auto;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.container.blog img {
  padding-bottom: 0;
}

div.container.blog#first-content {
  max-width: none;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 3rem) 0;
  background: var(--cat-paper);
}

div.container.blog#first-content div.blog-title {
  display: block;
}

div.container.blog#first-content div.blog-title .blog-intro {
  display: block;
  padding: 0;
}

div.container.blog#first-content h1.title {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
  color: var(--cat-ink);
  font-size: clamp(2.25rem, 3.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
}

div.container.blog#first-content h1.title .title-line {
  display: block;
}

@media screen and (min-width: 1100px) {
  div.container.blog#first-content h1.title .title-line {
    white-space: nowrap;
  }
}

div.container.blog#first-content div.blog-title .blog-intro p.author {
  max-width: var(--cat-content);
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  font-style: normal;
  line-height: 1.45;
  text-align: center;
}

div.container.blog#first-content div.blog-title .blog-intro p.hero-authors {
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--cat-ink);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 500;
}

div.container.blog#first-content div.blog-title .blog-intro p.hero-affiliation {
  margin-top: 0.4rem;
  color: var(--cat-muted);
  font-size: 1.08rem;
  font-weight: 400;
}

div.container.blog#first-content div.blog-title .blog-intro p.hero-corresponding {
  margin-top: 0.25rem;
  color: var(--cat-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.hero-corresponding a {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

.hero-corresponding a:hover {
  text-decoration: underline;
}

div.container.blog#first-content div.blog-title .blog-intro p.hero-venue {
  margin-top: 0.8rem;
  color: var(--cat-ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
}

div.container.blog#first-content div.blog-title .blog-intro .info.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.hero-links .button {
  box-sizing: border-box;
  min-height: 2.5rem;
  margin: 0;
  border: 1px solid var(--cat-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--cat-ink);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-links .resource-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  max-width: none;
  height: 1.05em;
  margin-left: 0.45rem;
  padding: 0;
  opacity: 0.58;
}

.hero-links .arxiv-icon {
  position: relative;
  top: 0.18em;
}

.hero-links .resource-icon img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.hero-links [hidden],
.citation-section[hidden] {
  display: none !important;
}

.hero-links a.button:hover {
  border-color: #a7a9ad;
  background: #f5f5f3;
  opacity: 1;
}

.hero-links .button.is-disabled {
  color: #777b81;
  cursor: not-allowed;
}

.hero-links .coming-soon {
  margin-left: 0.45rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hero-hook {
  max-width: var(--cat-content);
  margin: clamp(1.75rem, 3vw, 2.75rem) auto 0;
  color: var(--cat-ink);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.hero-teaser {
  width: 100%;
  max-width: var(--cat-content);
  margin: clamp(2rem, 4vw, 3.75rem) auto 0;
}

.hero-teaser img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-teaser-caption {
  width: 100%;
  margin: 0.65rem 0 0;
  padding: 0;
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  hyphens: auto;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.hero-teaser-caption strong {
  color: #4b4f55;
  font-weight: 600;
}

.research-section {
  scroll-margin-top: 2rem;
}

.research-section h2 {
  margin-bottom: 0.8rem;
  color: var(--cat-ink);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
}

/* Heading-only sections share their visual with the following container. Keep
   that transition compact instead of stacking both containers' spacing. */
.research-section.media-heading h2 {
  margin-bottom: 0;
}

.research-section.media-heading + .research-figure,
.research-section.media-heading + .robot-comparison {
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Results "topics" read as a distinct, centered tier below the section title,
   reusing the page's eyebrow language so the hierarchy is unambiguous. The
   extra class raises specificity above the template's `.container.blog h3`. */
.container.blog.subsection h3 {
  margin-bottom: 0.85rem;
  color: var(--cat-blue);
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.085em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.compact-points {
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
  color: #34373c;
  font-size: 1rem;
  line-height: 1.58;
}

.compact-points li + li {
  margin-top: 0.42rem;
}

.compact-points strong {
  color: var(--cat-ink);
  font-weight: 600;
}

.research-figure,
.robot-comparison {
  margin-right: auto;
  margin-left: auto;
  background: transparent;
}

.research-figure > img,
.robot-comparison img {
  display: block;
  width: 100%;
  height: auto;
}

/* Elevation is reserved for photographic and interactive media. Captions stay
   outside the frame so figures remain part of the editorial page flow. */
.media-elevated {
  overflow: hidden;
  border: 0;
  border-radius: var(--cat-media-radius);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
}

.media-flat {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.media-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #111;
}

/* Responsive 16:9 frame for the main video (YouTube embed drops straight in). */
.video-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--cat-media-radius);
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cat-rule);
  border-radius: var(--cat-media-radius);
  background: #f5f7f9;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--cat-muted);
}

.video-placeholder-icon {
  color: var(--cat-blue);
  font-size: 2.75rem;
  line-height: 1;
}

.video-placeholder-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.deployment-summary {
  padding-top: 1rem !important;
}

.approach-supervision {
  display: grid;
  grid-template-columns: minmax(0, 1.034fr) minmax(0, 1.778fr);
  gap: 0.625rem;
  margin-top: var(--cat-card-gap);
  padding: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--cat-rule);
  border-radius: var(--cat-media-radius);
  background: #f2f3f4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
}

.approach-supervision-item {
  min-width: 0;
  margin: 0;
}

.approach-supervision-stage {
  position: relative;
  display: grid;
  box-sizing: border-box;
  place-items: center;
  width: 100%;
  overflow: hidden;
  background: #eee;
}

.approach-supervision-stage--video {
  aspect-ratio: 16 / 9;
}

.approach-supervision-stage--figure {
  aspect-ratio: 2000 / 1934;
}

.container.blog .approach-supervision-stage > .media-video,
.container.blog .approach-supervision-stage > img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.approach-supervision-stage .media-video {
  background: transparent;
}

.approach-supervision-label {
  position: absolute;
  z-index: 2;
  top: 0.625rem;
  left: 0.625rem;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cat-ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.approach-supervision-original {
  display: none;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 0.6rem 0 0 auto;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--cat-rule);
  border-radius: 999px;
  background: #fff;
  color: var(--cat-ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-underline-offset: 0.15em;
}

.approach-supervision-original:hover {
  border-color: #a7a9ad;
  background: #f5f5f3;
  color: var(--cat-ink);
  opacity: 1;
}

.approach-supervision-original:focus-visible {
  outline: 2px solid var(--cat-blue);
  outline-offset: 3px;
}

.results-lead {
  max-width: var(--cat-content);
  margin-right: auto !important;
  margin-left: auto !important;
  hyphens: none !important;
  overflow-wrap: normal;
  word-break: normal;
}

.results-overview .evaluation-protocol {
  margin-top: 1.4rem;
}

.table-wrapper.evaluation-protocol table {
  min-width: 780px;
  table-layout: fixed;
}

.table-wrapper.evaluation-protocol th,
.table-wrapper.evaluation-protocol td {
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
}

.evaluation-protocol th:first-child {
  width: 19%;
}

.evaluation-protocol th:nth-child(2) {
  width: 28%;
}

.evaluation-protocol th:nth-child(3) {
  width: 28%;
}

.evaluation-protocol tbody th {
  color: var(--cat-ink);
  font-weight: 600;
  text-align: left;
}

.evaluation-guardrail {
  width: min(var(--cat-content), 100%);
  margin: 0.7rem auto 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--cat-rule);
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  line-height: 1.5;
}

.evaluation-guardrail strong {
  color: var(--cat-ink);
  font-weight: 600;
}

.results-subsection .table-wrapper {
  margin-top: 0.9rem;
}

.container.blog.results-subsection .table-wrapper + p.text {
  margin: 0 !important;
  padding-top: clamp(2rem, 3vw, 2.75rem) !important;
}

.table-wrapper.benchmark-results table {
  min-width: 960px;
}

.benchmark-results th:not(:first-child),
.benchmark-results td,
.compact-results td {
  text-align: right;
}

.compact-results thead th:nth-child(n+3) {
  text-align: right;
}

.benchmark-results .table-group {
  color: var(--cat-muted);
  text-align: center;
}

.benchmark-results tbody th,
.compact-results tbody th {
  color: var(--cat-ink);
  font-weight: 400;
  text-align: left;
}

.benchmark-results .cat-result-row th,
.benchmark-results .cat-result-row td {
  background: rgba(62, 92, 164, 0.08);
}

.benchmark-results .cat-result-row th,
.compact-results .cat-result-row th {
  font-weight: 600;
}

/* Ranking emphasis is intentionally limited to the prior-method benchmark. */
.benchmark-results .table-best {
  color: var(--cat-blue);
  font-weight: 700;
}

.benchmark-results .table-second {
  color: var(--cat-ink);
  font-weight: 700;
}

.compact-results .ablation-component {
  color: var(--cat-muted);
  font-style: italic;
  font-weight: 500;
  vertical-align: top;
}

.compact-results table {
  table-layout: fixed;
}

.compact-results .ablation-col-component {
  width: 18%;
}

.compact-results .ablation-col-variant {
  width: 34%;
}

.compact-results .ablation-col-metric {
  width: 16%;
}

.compact-results .ablation-reference th,
.compact-results .ablation-reference td {
  border-top: 1px solid var(--cat-ink);
  background: rgba(62, 92, 164, 0.08);
}

.compact-results .ablation-reference th {
  font-weight: 600;
}

.media-comparison {
  overflow: hidden;
}

.container.blog figcaption.caption {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0.65rem auto 0;
  padding: 0;
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  hyphens: auto;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.robot-comparison .columns-2,
.robot-comparison .table-wrapper {
  box-shadow: none;
}

.robot-comparison .slider-container {
  display: block;
  width: 100%;
  margin: 0 auto;
  outline-offset: 0.3rem;
  cursor: grab;
  --divider-width: 3px;
  --divider-color: rgba(255, 255, 255, 0.92);
  --divider-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
  --default-handle-opacity: 0;
}

.robot-comparison .slider-container:active {
  cursor: grabbing;
}

.robot-comparison .slider-container:focus-visible {
  outline: 2px solid var(--cat-blue);
  outline-offset: 0.3rem;
}

.robot-comparison .slider-container.is-fallback {
  /* The CDN component stylesheet keeps the host hidden until its script adds
     `.rendered`. If that script never loads, force the two maps visible. */
  visibility: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.robot-comparison .slider-container.is-fallback [slot="second"] {
  display: block;
}

.robot-comparison .slider-container.is-fallback figure {
  display: block;
  position: relative;
}

.interaction-hint,
.figure-note {
  max-width: var(--cat-content);
  margin-right: auto;
  margin-left: auto;
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

.interaction-hint {
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-align: center;
}

.figure-note {
  margin-top: 1rem;
  margin-bottom: 0;
}

.table-wrapper {
  width: 100%;
  margin-top: 1.5rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper::-webkit-scrollbar {
  width: auto;
  height: 0.45rem;
}

.table-wrapper::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8c9cc;
}

.table-wrapper:focus-visible {
  outline: 2px solid var(--cat-blue);
  outline-offset: 0.25rem;
}

.table-wrapper table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

/* The nine-column benchmark uses the shared page measure on desktop while
   retaining local horizontal scrolling on narrow screens. */
.research-section[aria-labelledby="results"] .table-wrapper {
  width: min(var(--cat-content), calc(100vw - 2.5rem));
  margin-left: 50%;
  transform: translateX(-50%);
}

.table-wrapper table caption {
  margin-bottom: 0.75rem;
  color: var(--cat-muted);
  font-size: 0.78rem;
  hyphens: auto;
  line-height: 1.45;
  text-align: justify;
  text-justify: inter-word;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.7rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--cat-rule);
  background: transparent;
  white-space: nowrap;
}

.table-wrapper thead th {
  border-top: 1px solid var(--cat-rule);
  color: var(--cat-ink);
  font-weight: 600;
}

.table-wrapper tbody tr,
.table-wrapper tbody tr:nth-child(odd) {
  border: 0;
  background: transparent;
}

.table-wrapper tbody tr:hover {
  background: #f7f7f5;
}

.citation-section pre {
  margin-top: 1rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.acknowledgments-section .acknowledgments-footnote {
  margin: 1rem 0 0;
  color: var(--cat-muted);
  font-weight: 400;
}

.acknowledgments-section .acknowledgments-footnote strong {
  color: var(--cat-ink);
  font-weight: 600;
}

footer.site-footer {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  padding: 0.8rem 1.25rem;
  background: #fafafa;
}

footer.site-footer .container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--cat-content);
  margin: 0 auto;
  padding: 0;
}

footer.site-footer .template-credit {
  margin: 0;
  color: #92969c;
  font-family: "Poppins", sans-serif;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

footer.site-footer .template-credit a {
  display: inline;
  color: inherit;
  font: inherit;
  font-size: inherit !important;
  line-height: inherit;
  text-decoration-color: #c6c8cb;
  text-underline-offset: 0.12em;
}

/* Shared card system: used by both project highlights and method cards so
   the two rows share height, spacing, borders, radius, and background. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--cat-card-gap);
  margin-top: 1.5rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: clamp(1rem, 1.6vw, 1.35rem);
  border: 1px solid var(--cat-rule);
  border-radius: var(--cat-radius);
  background: #fff;
}

.info-card .card-eyebrow {
  color: var(--cat-blue);
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: #eef1f7;
  color: var(--cat-blue);
  font-size: 1.05rem;
}

.info-card .card-title {
  margin: 0;
  color: var(--cat-ink);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.info-card .card-body {
  margin: 0;
  color: #34373c;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media screen and (max-width: 820px) {
  div.container.blog.main,
  section.container.blog.main,
  div.container.blog.extra-large,
  section.container.blog.extra-large,
  figure.container.blog.extra-large,
  div.container.blog.extra-extra-large,
  section.container.blog.extra-extra-large,
  figure.container.blog.extra-extra-large {
    max-width: none;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  div.container.blog#first-content {
    padding-top: 2.75rem;
  }

  div.container.blog#first-content h1.title {
    font-size: clamp(2rem, 9vw, 3.1rem);
    line-height: 1.1;
  }

  .hero-teaser {
    width: calc(100% + 1rem);
    margin-left: -0.5rem;
  }

  .hero-abstract {
    font-size: 1rem;
  }

  .research-figure,
  .robot-comparison {
    margin-right: auto;
    margin-left: auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrapper table {
    min-width: 680px;
  }
}

@media screen and (max-width: 900px) {
  .approach-supervision {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
}

@media screen and (max-width: 520px) {
  div.container.blog#first-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  div.container.blog#first-content h1.title {
    font-size: clamp(1.95rem, 9.5vw, 2.55rem);
    letter-spacing: -0.03em;
  }

  .hero-links .button {
    min-height: 2.35rem;
    padding: 0.65em 0.85em;
  }

  .hero-links .coming-soon {
    display: none;
  }

  .robot-comparison .slider-container.is-fallback {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .approach-supervision-original {
    display: inline-flex;
  }

}

/* ── Capability comparison: scene selector, frame, handle, labels ── */
.scene-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: var(--cat-content);
  margin: 0 auto 0.9rem;
}

.scene-tab {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--cat-rule);
  border-radius: 999px;
  background: #fff;
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.scene-tab:hover {
  border-color: var(--cat-ink);
  color: var(--cat-ink);
}

.scene-tab.is-active {
  background: var(--cat-ink);
  border-color: var(--cat-ink);
  color: #fff;
}

.scene-tab:focus-visible {
  outline: 2px solid var(--cat-blue);
  outline-offset: 2px;
}

/* Profile chooser: choose the two robot profiles for the slider sides. */
.profile-chooser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--cat-content);
  margin: 0 auto 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cat-rule);
  border-radius: var(--cat-radius);
  background: #f5f7f9;
}

.profile-chooser-eyebrow {
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-chooser-rows {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.9rem;
}

.profile-side {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.profile-side-label {
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-opts {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--cat-rule);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.profile-opt {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.32rem 0.35rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.profile-opt + .profile-opt {
  border-left: 1px solid var(--cat-rule);
}

.profile-opt:hover {
  color: var(--cat-ink);
}

.profile-opt.is-active {
  background: var(--cat-ink);
  color: #fff;
}

.profile-opt:focus-visible {
  outline: 2px solid var(--cat-blue);
  outline-offset: -2px;
}

.profile-vs {
  color: var(--cat-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-style: italic;
}

.comparison-frame {
  position: relative;
  width: 100%;
  max-width: var(--cat-content);
  margin: 0 auto;
}

.robot-comparison .slider-container img {
  aspect-ratio: 4 / 3;
}

/* Custom drag handle — neutral, high-contrast on blue, red and bright areas. */
.compare-handle {
  display: grid;
  place-items: center;
}

.compare-handle-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(31, 41, 51, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #1f2933;
  font-size: 1rem;
}

.slider-container:focus-visible .compare-handle-btn {
  border-color: var(--cat-blue);
}

/* Persistent profile labels — neutral, never blue/red (reserved for traversability). */
.profile-label {
  position: absolute;
  bottom: 0.6rem;
  z-index: 3;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.72);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.profile-label--left {
  left: 0.6rem;
}

.profile-label--right {
  right: 0.6rem;
}

/* Fallback (CDN component missing): hide the custom handle. Labels still sit
   over the two side-by-side images and stay correct. */
.robot-comparison .slider-container.is-fallback .compare-handle {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .related-works-trigger,
  .related-works-arrow,
  .related-works-panel,
  .related-work-item {
    transition: none;
  }

  .scene-tab,
  .profile-opt {
    transition: none;
  }
}

@media screen and (max-width: 520px) {
  .scene-tab {
    font-size: 0.78rem;
    padding: 0.38rem 0.7rem;
  }
  .profile-label {
    font-size: 0.68rem;
    padding: 0.24rem 0.5rem;
  }
}

@media screen and (max-width: 800px) {
  .profile-chooser-rows { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .profile-vs { display: none; }
  .profile-side { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .profile-opts { width: 100%; }
  .profile-opt { flex: 1 1 0; padding: 0.42rem 0.3rem; font-size: 0.74rem; text-align: center; }
}
