/* ACM CERT 8.0 — intrinsic media sizes, coherent cards, WPForms image controls.
 * Text/logo artwork is contained; only photographic backgrounds may be cropped.
 * Deliberately scoped to the theme front end, not the WordPress/plugin admin. */
body.acm-v8 .scheme-card,body.acm-v8 .norm-card{--acm-card-padding:26px;min-width:0;padding:var(--acm-card-padding);overflow:hidden}
body.acm-v8 .scheme-card .acm-scheme-cover{display:block;flex:0 0 auto;width:calc(100% + var(--acm-card-padding) + var(--acm-card-padding));max-width:none;height:auto;min-height:0;aspect-ratio:8/5;object-fit:contain;object-position:center;margin:calc(-1 * var(--acm-card-padding)) calc(-1 * var(--acm-card-padding)) 24px;border-radius:0;background:#0b333d;transform:none}
body.acm-v8 .norm-card .acm-norm-card-cover{flex:0 0 auto;width:calc(100% + var(--acm-card-padding) + var(--acm-card-padding));max-width:none;margin:calc(-1 * var(--acm-card-padding)) calc(-1 * var(--acm-card-padding)) 23px;border-radius:0;overflow:hidden;aspect-ratio:8/5;background:#0b333d}
body.acm-v8 .norm-card .acm-norm-card-cover img{display:block;width:100%;height:auto;min-height:0;max-width:100%;aspect-ratio:8/5;object-fit:contain;transform:none}
body.acm-v8 .acm-v7-cover{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;aspect-ratio:8/5;transform:none}
body.acm-v8 .norm-hero-visual.acm-media-artwork,body.acm-v8 .norm-hero-visual.acm-media-custom{position:relative;inset:auto;align-self:center;display:block;opacity:1;pointer-events:auto;isolation:isolate;width:100%;max-width:100%;height:auto;min-height:0;aspect-ratio:auto;border-radius:20px;overflow:hidden;background:#0b333d}
body.acm-v8 .norm-hero-visual.acm-media-artwork>img,body.acm-v8 .norm-hero-visual.acm-media-custom>img{display:block;position:static;inset:auto;width:100%;max-width:100%;height:auto;min-height:0;aspect-ratio:auto;object-fit:contain;border-radius:0;opacity:1;transform:none}
body.acm-v8 .norm-hero-visual.acm-media-artwork::after,body.acm-v8 .norm-hero-visual.acm-media-custom::after{display:none}
body.acm-v8 .norm-hero-visual.acm-media-artwork .norm-orbit-icon,body.acm-v8 .norm-hero-visual.acm-media-artwork .norm-visual-note,body.acm-v8 .norm-hero-visual.acm-media-custom .norm-orbit-icon,body.acm-v8 .norm-hero-visual.acm-media-custom .norm-visual-note{display:none}
/* News use a stable 8:5 frame; keep the whole cover text inside it. */
body.acm-v8 .portal-news-cover{height:auto;min-height:0;aspect-ratio:8/5}
body.acm-v8 .portal-news-cover>img.acm-v7-cover{position:static;inset:auto;display:block;width:100%;height:auto;max-width:100%;aspect-ratio:8/5;object-fit:contain;opacity:1;transform:none}
body.acm-v8 .portal-news-card:hover .portal-news-cover>img.acm-v7-cover{transform:none}
body.acm-v8 .portal-news-cover>img:not(.acm-v7-cover):not(.news-design-photo){width:100%;height:100%;object-fit:cover}
body.acm-v8 .portal-cover-fallback>img:not(.acm-v7-cover):not(.news-design-photo){width:85%;height:140%;object-fit:contain}
body.acm-v8 .acm-article-header-grid>img,body.acm-v8 .acm-article-header-grid .acm-v7-cover{width:100%;max-width:100%;height:auto;object-fit:contain}
body.acm-v8 .entry-content .wp-block-image img,body.acm-v8 .entry-content img.alignnone,body.acm-v8 .entry-content img.aligncenter{max-width:100%;height:auto}
body.acm-v8 .entry-content .wp-block-image{max-width:100%;margin-inline:0}
body.acm-v8 .acm-custom-logo{width:auto;max-width:min(240px,52vw);height:auto;max-height:62px;object-fit:contain}
/* WPForms: retain plugin logic/visibility; isolate content imagery from spinners and thumbnails. */
body.acm-v8 div.wpforms-container{max-width:100%;min-width:0}
body.acm-v8 div.wpforms-container .wpforms-field{min-width:0;max-width:100%}
body.acm-v8 div.wpforms-container .wpforms-field-html img,body.acm-v8 div.wpforms-container .wpforms-field-content img,body.acm-v8 div.wpforms-container .wpforms-field-description img,body.acm-v8 div.wpforms-container .wpforms-field-label img,body.acm-v8 div.wpforms-container .wpforms-image-choices-label img{display:block;width:auto;max-width:100%;height:auto;max-height:none;object-fit:contain;margin:12px auto;float:none}
body.acm-v8 div.wpforms-container .wpforms-field-html figure,body.acm-v8 div.wpforms-container .wpforms-field-content figure{width:auto;max-width:100%;margin-inline:0}
body.acm-v8 div.wpforms-container ul.wpforms-image-choices{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:14px!important;padding:0!important;margin:12px 0!important;list-style:none}
body.acm-v8 div.wpforms-container ul.wpforms-image-choices>li{display:block!important;float:none!important;width:auto!important;max-width:100%!important;margin:0!important;box-sizing:border-box}
body.acm-v8 div.wpforms-container .wpforms-image-choices-item label{display:block!important;width:100%;height:auto;max-width:100%;box-sizing:border-box}
body.acm-v8 div.wpforms-container .wpforms-image-choices-image{display:flex;align-items:center;justify-content:center;max-width:100%;aspect-ratio:8/5;overflow:hidden}
body.acm-v8 div.wpforms-container .wpforms-image-choices-image img{display:block;width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;margin:0!important;transform:none;border-radius:8px}
body.acm-v8 div.wpforms-container .wpforms-image-choices-label{display:block;margin-top:10px;white-space:normal;line-height:1.5}
body.acm-v8 div.wpforms-container img.wpforms-submit-spinner,body.acm-v8 div.wpforms-container .wpforms-submit-spinner img{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain;margin:0 0 0 10px!important;vertical-align:middle}
body.acm-v8 div.wpforms-container .wpforms-uploader .dz-image{width:80px;max-width:100%;height:80px}
body.acm-v8 div.wpforms-container .wpforms-uploader .dz-image img{width:100%;height:100%;max-width:100%;object-fit:contain}
body.acm-v8 div.wpforms-container input[type=image]{width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}
body.acm-v8 div.wpforms-container input[type=checkbox],body.acm-v8 div.wpforms-container input[type=radio]{border-radius:3px!important}
body.acm-v8 div.wpforms-container input[type=radio]{border-radius:50%!important}
body.acm-v8 div.wpforms-container .acm-choice-grid li{min-width:0}
body.acm-v8 div.wpforms-container .acm-choice-grid .wpforms-field-label-inline{min-width:0;overflow-wrap:anywhere}
body.acm-v8 div.wpforms-container [hidden]{display:none!important}
@media(max-width:700px){body.acm-v8 .scheme-card,body.acm-v8 .norm-card{--acm-card-padding:22px}body.acm-v8 .acm-custom-logo{max-height:52px;max-width:min(210px,50vw)}
body.acm-v8.acm-design-v6 .norm-hero-visual,body.acm-v8.acm-design-v6 .portal-hero-art{position:relative;inset:auto;display:block;opacity:1;pointer-events:auto;width:100%;max-width:100%;margin:24px 0 0}
body.acm-v8 .norm-hero-visual.acm-media-artwork,body.acm-v8 .norm-hero-visual.acm-media-custom{height:auto;min-height:0;aspect-ratio:auto}
body.acm-v8.acm-design-v6 .portal-hero-art{height:auto;min-height:0;aspect-ratio:16/10}
body.acm-v8.acm-design-v6 .portal-hero-art>img{width:100%;height:100%;max-width:100%;object-fit:cover}
body.acm-v8 div.wpforms-container ul.wpforms-image-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){body.acm-v8 div.wpforms-container ul.wpforms-image-choices{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.acm-v8 .acm-scheme-cover,body.acm-v8 .acm-v7-cover{transition:none;transform:none}}
