/* Grafting article details, scoped to keep the other lab posts unchanged. */
.grafting-post .hl-off { color: #2980b9; }
.grafting-post .hl-on { color: #b93245; }

.grafting-post .post-content p { text-align: left; }
.grafting-post .post-content h2,
.grafting-post .post-content h3 {
  text-align: left;
  line-height: 1.25;
}
.grafting-post .post-content > section {
  padding: 0;
  margin: 2.6rem 0;
}
.grafting-post .paper-intro {
  color: #5a5a60;
  font-size: 0.9em;
}
.grafting-post .paper-intro a,
.grafting-post .paper-footer a { overflow-wrap: anywhere; }

.grafting-post .fig-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: end;
}
.grafting-post .fig-pair img {
  width: 100%;
  margin: 0;
}
.grafting-post .post-content figure.medium {
  max-width: 72%;
  margin-left: auto;
  margin-right: auto;
}
.grafting-post .post-content figcaption {
  max-width: none;
  text-align: left;
  line-height: 1.5;
}

.grafting-post .post-content .formula {
  text-align: center;
  margin: 1.4rem 0;
}
.grafting-post .formula mjx-container[display="true"] { margin: 0; }

.grafting-post .paper-footer {
  margin-top: 2.6rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5ea;
  color: #5a5a60;
  font-size: 0.92em;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 600px) {
  .grafting-post .fig-pair { grid-template-columns: 1fr; }
  .grafting-post .post-content figure.medium { max-width: 100%; }
}
