body {
  font-family: 'Noto Sans', sans-serif;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

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

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

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

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

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

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

.tldr-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(50, 115, 220, 0.2);
  border-left: 4px solid #3273dc;
  border-radius: 14px;
  background: #f3f8ff;
  color: #2f3b52;
  font-size: 1rem;
  line-height: 1.5;
}

.tldr-callout strong {
  color: #3273dc;
  white-space: nowrap;
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.dataset-section {
  background: #fff;
}

.dataset-pipeline {
  max-width: 1024px;
  margin: 0 auto 1rem;
}

.dataset-pipeline img {
  display: block;
  width: 100%;
}

.dataset-examples-note {
  max-width: 820px;
  margin: 0 auto 1rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 1024px;
  margin: 0 auto;
}

.dataset-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e8e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.05);
}

.dataset-card h3 {
  margin: 0;
  padding: 0.25rem 0.4rem;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.dataset-card img {
  display: block;
  width: 100%;
}

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

.label-blue h3 {
  background: #cfefff;
}

.label-green h3 {
  background: #d9f4cf;
}

.label-pink h3 {
  background: #f6d5f1;
}

.label-peach h3 {
  background: #f8e4d8;
}

.model-section {
  background: #fff;
}

.model-figure {
  max-width: 1024px;
  margin: 0 auto;
}

.model-figure img {
  display: block;
  width: 100%;
}

.results-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.comparison-strip {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #e8e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(20, 20, 40, 0.06);
}

.comparison-strip .title {
  margin-bottom: 1rem;
}

.section-note {
  margin: -0.35rem 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

.comparison-grid {
  display: grid;
  gap: 0.45rem;
  align-items: stretch;
}

.comparison-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.result-label {
  padding: 0.35rem 0.25rem;
  border-radius: 999px;
  background: #f2f3f7;
  color: #4a4a4a;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.result-label-ours {
  background: #3273dc;
  color: #fff;
  font-weight: 800;
}

.result-cell,
.reasoning-sequence figure,
.text-edit-card figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #ececf2;
  border-radius: 12px;
  background: #fafafa;
}

.result-cell img,
.reasoning-sequence img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.text-edit-card img {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.text-edit-card figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 9 / 16;
}

.text-edit-card.is-candle-example img {
  object-position: 50% 0%;
}

.is-ours {
  border-color: #3273dc;
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.15);
}

.reasoning-gallery,
.text-edit-gallery {
  display: grid;
  gap: 1rem;
}

.reasoning-gallery {
  grid-template-columns: 1fr;
}

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

.reasoning-card,
.text-edit-card {
  padding: 0.75rem;
  border-radius: 14px;
  background: #fbfbfd;
}

.reasoning-sequence,
.text-edit-card {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.35fr 0.9fr;
  gap: 0.45rem;
  align-items: stretch;
}

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

.thinking-trace {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(50, 115, 220, 0.22);
  border-left: 4px solid #3273dc;
  border-radius: 12px;
  background: #f3f8ff;
  color: #2f3b52;
}

.thinking-trace p {
  margin: 0 0 0.6rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.thinking-trace p:last-child {
  margin-bottom: 0;
}

.trace-label {
  margin-bottom: 0.45rem;
  color: #3273dc;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reasoning-sequence figcaption,
.text-edit-card figcaption {
  padding: 0.35rem 0.45rem;
  color: #555;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  background: #fff;
}

@media screen and (max-width: 900px) {
  .comparison-strip {
    padding: 0.9rem;
  }

  .comparison-grid {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    padding-bottom: 0.35rem;
  }

  .reasoning-gallery,
  .text-edit-gallery {
    grid-template-columns: 1fr;
  }

  .reasoning-sequence {
    grid-template-columns: 1fr 1fr;
  }

  .thinking-trace {
    grid-column: 1 / -1;
  }

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

@media screen and (max-width: 560px) {
  .dataset-grid {
    grid-template-columns: 1fr;
  }
}
