.manga-lede {
  color: var(--forest);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.42;
}

.prose .manga-figure {
  max-width: 100%;
  margin-block: 2.2rem;
  margin-inline: 0;
}

.manga-figure img {
  width: 100%;
  display: block;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.manga-figure figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.prose .manga-figure--wide {
  position: relative;
  left: 50%;
  width: min(1080px, calc(100vw - 3rem));
  max-width: none;
  transform: translateX(-50%);
}

.prose .manga-figure--portrait {
  max-width: 560px;
  margin-inline: auto;
}

.prose .manga-figure--chart {
  max-width: 392px;
  margin-inline: auto;
}

.manga-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 100%;
  margin: 2.4rem 0;
}

.manga-stats div {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.manga-stats dt {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

.manga-stats dd {
  order: -1;
  margin: 0;
  color: var(--forest);
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1;
}

.prose .manga-summary {
  padding: 1rem 1.2rem;
  color: var(--forest);
  background: rgba(21, 63, 51, 0.07);
  border-left-color: var(--forest-light);
  border-radius: 0 12px 12px 0;
}

.manga-summary p {
  margin: 0;
}

.manga-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 100%;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: manga-stage;
}

.manga-pipeline li {
  position: relative;
  min-height: 120px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: manga-stage;
}

.manga-pipeline li::before {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent-dark);
  content: "0" counter(manga-stage);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.manga-pipeline li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -1.25rem;
  color: var(--accent);
  content: "→";
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.manga-pipeline strong,
.manga-pipeline span {
  display: block;
}

.manga-pipeline span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.manga-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 1.6rem 0;
  border-radius: 12px;
}

.prose .manga-experiment-table {
  display: table;
  width: 100%;
  margin: 0;
  background: var(--surface);
}

.manga-experiment-table caption {
  padding: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 680;
  text-align: left;
}

.manga-experiment-table th {
  color: white;
  background: var(--forest);
}

.manga-experiment-table td:last-child {
  color: var(--forest);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.manga-lessons {
  padding-left: 1.25rem;
}

.manga-lessons li + li {
  margin-top: 0.8rem;
}

.manga-repository {
  max-width: 100%;
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--validation-soft);
  border: 1px solid rgba(182, 122, 22, 0.35);
  border-radius: 14px;
}

.manga-repository p {
  margin: 0;
}

@media (max-width: 760px) {
  .manga-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manga-pipeline {
    grid-template-columns: 1fr;
  }

  .manga-pipeline li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -1.45rem;
    content: "↓";
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  .prose .manga-figure--wide {
    width: calc(100vw - 2rem);
  }

  .manga-stats,
  .manga-pipeline {
    grid-template-columns: 1fr;
  }
}
