/* Approved 9:16 report editions. Loaded after legacy A4 and campaign rules. */
body.theme-dark .report-library .library-cover-frame,
body.theme-dark.home-document .editorial-home .home-report-cover,
body.theme-dark .page-example-detail .detail-cover-frame > img,
body.theme-dark .page-example-detail .example-page-frame > img,
body.theme-dark .review-moment-cover,
body.theme-dark .review-proof-cover {
  aspect-ratio: 9 / 16;
}

body.theme-dark .report-library .library-cover,
body.theme-dark.home-document .editorial-home .home-report-cover img,
body.theme-dark .page-example-detail .detail-cover-frame > img,
body.theme-dark .page-example-detail .example-page-frame > img,
body.theme-dark .review-moment-cover img,
body.theme-dark .review-proof-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

body.theme-dark .report-library .library-cover-frame {
  padding: 0;
}

body.theme-dark.home-document .editorial-home .home-report-cover {
  min-height: 0;
  padding: 0;
}

body.theme-dark .page-example-detail .detail-cover-frame > img,
body.theme-dark .page-example-detail .example-page-frame > img {
  max-width: 100%;
  max-height: none;
}

body.theme-dark .report-library .library-name {
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.24;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

body.theme-dark.home-document .editorial-home .home-report-caption h3 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

@media (max-width: 640px) {
  body.theme-dark .report-library .library-name {
    font-size: 17px;
  }
}

/* Keep the complete approved portrait page visible in the native zoom view. */
body.theme-dark .page-example-detail ~ .report-dialog .dialog-image-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}
