/* Only a live, user-opened oversized reverse uses the measured reveal lane.
   Its article, rail, front artwork and shared measurement remain unchanged. */
.pb7-cards .pb7c-card.pb7c-reveal-compact > details[open] > .pb7c-back {
  inset: 0 0 auto;
  height: var(--pb7c-reveal-height);
  grid-template-rows: auto auto minmax(0, 1fr) minmax(44px, auto);
}

.pb7-cards .pb7c-card.pb7c-reveal-compact > details[open] > .pb7c-back > .pb7c-back-copy {
  min-height: 0;
  overflow: auto;
  padding-block-start: 2px;
}

/* The existing native summary stays in the compact reverse's reserved footer. */
.pb7-cards .pb7c-card.pb7c-reveal-compact > details[open] > summary.pb7c-disclosure {
  bottom: calc(100% - var(--pb7c-reveal-height) + var(--pb7c-reveal-inset));
}

/* Measured Back width keeps enlarged labels clear of the source action. */
.pb7-cards .pb7c-card.pb7c-reveal-compact > details[open] > .pb7c-back > .pb7c-back-foot {
  padding-right: max(96px, var(--pb7c-reveal-back-reserve, 96px));
}

/* Preserve the two-character ordinal at enlarged type without narrowing its text. */
.pb7-cards .pb7c-card.pb7c-reveal-compact > details[open] > .pb7c-back > .pb7c-back-copy > .pb7c-outputs > li {
  grid-template-columns: max-content minmax(0, 1fr);
}

.pb7-cards .pb7c-card.pb7c-reveal-compact > details[open] > .pb7c-back > .pb7c-back-copy > .pb7c-outputs > li > .pb7c-output-number {
  min-width: 2ch;
  white-space: nowrap;
}
