/* One physical-cover treatment; original report artwork stays intact. */
html:not(#legacy-publication) body:is(.home-editorial,.reports-page) {
  --book-shadow: 0 3px 5px rgb(0 0 0 / .12), 0 10px 18px -7px rgb(0 0 0 / .22);
  --book-shadow-raised: 0 7px 12px rgb(0 0 0 / .14), 0 20px 32px -10px rgb(0 0 0 / .3);
  :is(.report-book-cover,.home-flagship-cover,.report-library-cover-wrap,.report-cover-wrapper) {
    display: block; position: relative; isolation: isolate;
    width: 100%; aspect-ratio: 5 / 7; padding: 0 !important;
    border: 0 !important; border-radius: 4px 14px 14px 4px !important;
    overflow: hidden; background: #fff !important;
    box-shadow: var(--book-shadow) !important;
    transform: none !important; transform-origin: left center;
    transition: box-shadow 240ms ease !important;
  }
  :is(.report-book-cover,.home-flagship-cover,.report-library-cover-wrap,.report-cover-wrapper) > img {
    display: block; width: 100% !important; height: 100% !important;
    aspect-ratio: 5 / 7; object-fit: contain !important;
    border: 0 !important; border-radius: inherit !important;
    box-shadow: none !important; transform: none !important; filter: none !important;
    opacity: 1 !important; transition: none !important;
  }
  /* Binding light and crease are a finish over the real artwork, not replacement art. */
  :is(.report-book-cover,.home-flagship-cover,.report-library-cover-wrap,.report-cover-wrapper)::before {
    content: ''; display: block !important; position: absolute;
    inset: 0; width: auto; height: auto; opacity: 1; transform: none; filter: none;
    z-index: 2; pointer-events: none; border-radius: inherit;
    background: linear-gradient(90deg, rgb(0 0 0 / .28), rgb(255 255 255 / .24) 1.3%, rgb(0 0 0 / .16) 2.7%, transparent 5.5%);
    box-shadow: inset -1px 0 1px rgb(0 0 0 / .12), inset 0 1px 1px rgb(255 255 255 / .2);
  }
  :is(.report-book-cover,.home-flagship-cover,.report-library-cover-wrap,.report-cover-wrapper)::after { display: none !important; }
  .report-library-grid { padding-block: 10px 24px !important; padding-inline: 10px !important; scroll-padding-inline: 10px; }
  .editorial-report-grid { padding: 10px 10px 24px; }
  /* Keep artwork in a flat layer: 3D rotation can black out clipped covers in WebKit. */
  :is(.editorial-report,.report-library-link) { perspective: none; }
  :is(.editorial-report,.home-flagship-cover,.report-library-link):focus-visible { outline: 2px solid var(--publication-focus) !important; outline-offset: 5px !important; }
  .editorial-report:focus-visible .report-book-cover,
  .home-flagship-cover:focus-visible,
  .report-library-link:focus-visible .report-library-cover-wrap {
    transform: none !important;
    box-shadow: var(--book-shadow-raised) !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  html:not(#legacy-publication) body:is(.home-editorial,.reports-page) {
    .editorial-report:hover .report-book-cover,
    .home-flagship-cover:hover,
    .report-library-link:hover .report-library-cover-wrap {
      transform: none !important;
      box-shadow: var(--book-shadow-raised) !important;
    }
  }
}
html[data-theme='dark']:not(#legacy-publication) body:is(.home-editorial,.reports-page) {
  --book-shadow: 0 0 0 1px rgb(255 255 255 / .13), 0 8px 18px rgb(0 0 0 / .4);
  --book-shadow-raised: 0 0 0 1px rgb(255 255 255 / .22), 0 15px 28px rgb(0 0 0 / .55);
}
@media (prefers-reduced-motion: reduce) {
  html:not(#legacy-publication) body:is(.home-editorial,.reports-page) {
    :is(.report-book-cover,.home-flagship-cover,.report-library-cover-wrap,.report-cover-wrapper) { transition: none !important; }
    .editorial-report:is(:hover,:focus-visible) .report-book-cover,
    .home-flagship-cover:is(:hover,:focus-visible),
    .report-library-link:is(:hover,:focus-visible) .report-library-cover-wrap { transform: none !important; }
  }
}
