/* Restrained UI accents; scientific figures and ranking colors stay intact. */
.eyebrow { color: #68448b; } /* NeurIPS identity, kept as the existing text heading. */

/* Quiet text navigation; keep the resource links below the title distinct. */
.research-home,
.research-toggle {
  padding-inline: .55rem;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}
.research-home:hover,
.research-toggle:hover {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.research-home-icon { display: none; }
.research-home:focus-visible,
.research-toggle:focus-visible {
  outline: 2px solid #68448b;
  outline-offset: 2px;
}
.publication-links .button.is-rounded { border-radius: 7px; }
.publication-links a.button:hover { transform: none; }

/* Keep section navigation in place, with less button-like framing. */
.section-nav a { border-color: transparent; border-radius: 5px; background: transparent; }
.section-nav a:hover,
.section-nav a:focus-visible,
.section-nav a[aria-current='location'] { border-color: transparent; background: #f3f5f7; }

.paper-section .story-card,
.paper-section .step-card,
.paper-section .figure-panel,
.paper-section .table-panel { border-radius: 8px; box-shadow: none; }

/* Problem and method notes use the same restrained, text-only treatment. */
.paper-section .story-card::before,
.paper-section .step-card::before { display: none; }
.paper-section .story-card,
.paper-section .step-card {
  border-color: #dfe2e6;
  border-radius: 4px;
  transition: none;
}
.paper-section .signal-head { margin-bottom: .8rem; }
.paper-section .signal-head .card-kicker {
  margin: 0;
  color: #626a73;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

/* Separate stages, with the connectors occupying their own space. */
.paper-section .grounding-flow {
  gap: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.paper-section .grounding-stage {
  padding: 1.1rem .85rem;
  border: 1px solid #d7dbe1;
  border-radius: 4px;
  background: #fff;
}
.paper-section .grounding-stage:not(:last-child)::after { display: none; }
.paper-section .grounding-stage.is-grounding { background: #fff; }
.paper-section .stage-label {
  color: #626a73;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.paper-section .is-grounding .stage-title { color: var(--navy-deep); }
.paper-section .stage-detail { color: var(--muted); }
.paper-section .flow-arrow {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  width: 24px;
  height: 12px;
  transform: translateY(-50%);
  color: #707883;
  pointer-events: none;
}

/* The scientific panels keep all original corners and labels. */
.paper-section .figure-panel img { border-radius: 0; }
.paper-section .result-video { border-radius: 4px; }
.paper-section .bibtex-section { border-radius: 6px; }
.paper-section .section-title { border-bottom-width: 1px; border-bottom-color: #e3e7ec; }

/* Flat highlights retain the original red/yellow ranking palette. */
.paper-section .score-mark {
  display: inline;
  min-width: 0;
  padding: .06em .18em;
  border-radius: 0;
  color: inherit;
  box-shadow: none;
  transition: none;
}
.paper-section .score-mark.best {
  color: #a73b2a;
  background: #f7ddd8;
  box-shadow: none;
}
.paper-section .score-mark.second {
  color: #9d671d;
  background: #fbefc9;
  box-shadow: none;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.paper-section .table-panel:hover .score-mark.best,
.paper-section .table-panel:focus-within .score-mark.best {
  transform: none;
  box-shadow: none;
}

@media screen and (max-width: 760px) {
  .paper-section .grounding-flow {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 32px;
  }
  .paper-section .grounding-stage:first-child,
  .paper-section .grounding-stage:last-child { border-radius: 4px; }
  .paper-section .flow-arrow {
    left: 50%;
    top: auto;
    bottom: -23px;
    transform: translateX(-50%) rotate(90deg);
  }
}
