/* Original WorkSmart evidence, scoped away from the homepage. */
/* Crop blank artboard tails without altering the original interface pixels.
   These selectors also apply to the enlarged image viewer. */
.page-worksmart img[src$="validator-review.webp"] { --screen-crop-ratio: 721 / 970; }
.page-worksmart img[src$="central-overview.webp"] { --screen-crop-ratio: 708 / 970; }
.worksmart-hero-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 26px 20px 12px; background: #e8f3f6; border: 1px solid #d5e6eb; border-radius: 14px; }
.page-worksmart .worksmart-hero-pair .internal-hero-figure { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; min-width: 0; }
.page-worksmart .worksmart-hero-pair img { width: auto; max-width: 100%; height: 420px; object-fit: contain; aspect-ratio: auto; margin-inline: auto; border-radius: 0; }
.page-worksmart .worksmart-hero-pair figcaption { border: 0; padding: 14px 0 0; text-align: center; font-size: 11px; }
.worksmart-view-hint, .worksmart-evidence-note { font: 11px/1.7 var(--font-sans); color: #71736a; }
.worksmart-view-hint { margin-top: 12px; }
.worksmart-evidence-note { margin: -28px 0 48px; }
.worksmart-screen-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin: 32px 0 8px; align-items: start; }
.worksmart-screen-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.worksmart-screen { margin: 0; min-width: 0; }
.page-worksmart .worksmart-screen .figure-frame { display: grid; place-items: center; height: 510px; padding: 22px 14px; background: #edf4f6; border: 1px solid #d6e4e8; border-radius: 10px; }
.page-worksmart .worksmart-screen img { display: block; width: auto; max-width: 100%; height: auto; max-height: 464px; object-fit: contain; margin-inline: auto; border-radius: 0; }
.page-worksmart .worksmart-screen img:is([src$="validator-review.webp"], [src$="central-overview.webp"]),
.page-worksmart .media-viewer img:is([src$="validator-review.webp"], [src$="central-overview.webp"]) {
  aspect-ratio: var(--screen-crop-ratio);
  object-fit: cover;
  object-position: center top;
  height: auto;
}
.page-worksmart .worksmart-screen img:is([src$="validator-review.webp"], [src$="central-overview.webp"]) { width: 336px; }
.worksmart-screen figcaption { padding-top: 16px; }
.worksmart-screen-title { display: block; font-size: 13px; font-weight: 750; line-height: 1.6; color: var(--ink); }
.worksmart-screen figcaption p { font-size: 12px; line-height: 1.75; color: #595c54; margin: 7px 0; }
.worksmart-source { display: block; font: 9px/1.7 var(--font-mono); color: #797b73; }
.page-worksmart .worksmart-screen-wide { margin-block: 30px; }
.page-worksmart .worksmart-screen-wide .figure-frame { height: auto; padding: 18px; background: #f1f1ed; }
.page-worksmart .worksmart-screen-wide img { width: 100%; height: auto; max-height: none; }
.page-worksmart #identity .worksmart-screen-wide:last-child { max-width: 420px; margin-inline: auto; }
.internal-page .worksmart-work-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; justify-items: center; gap: 20px; background: #e8f3f6; padding: 30px; }
.internal-page .worksmart-work-preview img { width: auto; max-width: 100%; height: 340px; object-fit: contain; aspect-ratio: auto; border-radius: 0; }
.page-work #worksmart { scroll-margin-top: 100px; }
.page-worksmart .qh-next-nav { gap: 20px; flex-wrap: wrap; }
.page-worksmart .media-viewer { width: min(640px,94vw); padding: 12px 20px 20px; }
.page-worksmart .media-viewer img { max-height: none; }
.page-worksmart .media-close { position: sticky; top: 0; display: block; margin: 0 0 12px auto; background: #f7f5ef; z-index: 1; }
@media(max-width:1100px) { .worksmart-screen-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) {
 .worksmart-hero-pair { gap: 12px; padding: 16px 12px; }
 .page-worksmart .worksmart-hero-pair img { height: 310px; }
 .worksmart-screen-grid, .worksmart-screen-grid:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0,1fr); gap: 30px; }
 .page-worksmart .worksmart-screen .figure-frame { height: auto; min-height: 300px; padding: 18px; }
 .page-worksmart .worksmart-screen img { max-height: 560px; max-width: min(100%,280px); }
 .page-worksmart .worksmart-screen-wide .figure-frame { padding: 8px; min-height: 0; }
 .page-worksmart .worksmart-screen-wide img { max-width: 100%; max-height: none; }
 .worksmart-evidence-note { margin: -12px 0 32px; }
 .internal-page .worksmart-work-preview { gap: 12px; padding: 20px 16px; }
 .internal-page .worksmart-work-preview img { height: 280px; }
}
