:root {
  --text: #1f2328;
  --muted: #57606a;
  --accent: #2f5d8a;
  --rule: #d8dee4;
  --soft: #f6f8fa;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  background: #ffffff;
}

.section {
  padding: 2.5rem 1.5rem;
}

.publication-title,
.publication-authors,
.title.is-3 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.publication-title {
  line-height: 1.2;
}

.nowrap {
  white-space: nowrap;
}

.publication-authors {
  color: var(--muted);
}

.publication-authors a {
  color: var(--accent) !important;
}

.author-block {
  display: inline-block;
}

.publication-venue {
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.5rem;
}

.publication-links {
  margin-top: 1rem;
}

.link-block a {
  margin: 0.3rem 0.15rem;
}

/* Links that are not available yet (paper, arXiv, video). */
.button.is-placeholder {
  opacity: 0.55;
  pointer-events: none;
}

.title.is-3 {
  margin-bottom: 1.25rem;
}

.content {
  font-size: 1.05rem;
  line-height: 1.65;
}

figure.paper-figure {
  margin: 0 auto 0.5rem;
}

figure.teaser-figure,
.teaser-caption {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

figure.paper-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.figure-caption {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  text-align: left;
}

video.project-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #000;
}

video.clip {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #000;
}

.tldr {
  border-left: 4px solid var(--accent);
  background: var(--soft);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.stat-line {
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
  color: var(--muted);
}

.stat-line strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.component {
  margin-top: 2.5rem;
}

.component img {
  width: auto;
  max-width: 100%;
  max-height: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.component .title.is-5 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.recovery-card video.clip {
  aspect-ratio: 640 / 900;
  object-fit: cover;
}

.recovery-card .recovery-name {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent);
  margin-top: 0.6rem;
}

.recovery-card .recovery-scenario {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.recovery-card .recovery-desc {
  font-size: 0.93rem;
  line-height: 1.5;
  margin-top: 0.3rem;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 8px;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.module-card {
  height: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  background: var(--soft);
}

.module-card h4 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  vertical-align: 0.1em;
}

.scenario-list dl {
  margin: 0;
}

.scenario-list dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.scenario-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.scenario-list .scenario-group-label {
  margin-top: 0.5rem;
}

.scenario-list .scenario-group-label + dl dt:first-child {
  margin-top: 0.2rem;
}

.module-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.scenario-group-label {
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  margin: 1.5rem 0 0.6rem;
}

.scenario-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.scenario-card .scenario-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0.5rem;
}

.scenario-card .scenario-name {
  font-weight: 600;
  margin-top: 0.45rem;
}

.scenario-card .scenario-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.results-table {
  font-size: 0.92rem;
  margin: 0 auto;
}

.results-table th,
.results-table td {
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.results-table td:first-child,
.results-table th:first-child {
  text-align: left !important;
}

.results-table .group-row td {
  background: var(--soft);
  font-style: italic;
  color: var(--muted);
  text-align: left !important;
}

.results-table .ours {
  font-weight: 700;
}

.findings li {
  margin-bottom: 0.5rem;
}

pre.bibtex {
  background: var(--soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.footer {
  padding: 2rem 1.5rem;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .section {
    padding: 2rem 1rem;
  }

  .publication-title {
    font-size: 1.8rem !important;
  }
}

/* Keeps wide clips and their captions at a moderate size on large screens. */
.narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.equal-contrib {
  margin-top: 0.15rem;
}

.publication-authors .author-block + .author-block {
  margin-left: 0.25rem;
}
