/* Visual audit fixes: keep generated media complete, consistent and responsive. */

.metop-creative-factory-parity .metop-cf-hero-visual {
  display: block !important;
  width: 100%;
}

.metop-creative-factory-parity .metop-cf-hero-main,
.metop-creative-factory-parity .metop-cf-hero-main .elementor-widget-container,
.metop-creative-factory-parity .metop-cf-definition-media,
.metop-creative-factory-parity .metop-cf-definition-media .elementor-widget-container,
.metop-creative-factory-parity .metop-cf-workflow-media,
.metop-creative-factory-parity .metop-cf-workflow-media .elementor-widget-container,
.metop-creative-factory-parity .metop-cf-output-media,
.metop-creative-factory-parity .metop-cf-output-media .elementor-widget-container {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  width: 100%;
}

.metop-creative-factory-parity .metop-cf-hero-main img,
.metop-creative-factory-parity .metop-cf-definition-media img,
.metop-creative-factory-parity .metop-cf-workflow-media img,
.metop-creative-factory-parity .metop-cf-workflow-card:nth-child(3) .metop-cf-workflow-media img,
.metop-creative-factory-parity .metop-cf-output-media img {
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  width: 100% !important;
}

.metop-scan-parity .metop-scan-capability-card .metop-scan-card-image,
.metop-scan-parity .metop-scan-capability-card .metop-scan-card-image .elementor-widget-container {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100%;
}

.metop-scan-parity .metop-scan-capability-card .metop-scan-card-image img {
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

.metop-about-profile-image,
.metop-about-profile-image .elementor-widget-container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
}

.metop-about-profile-image img {
  aspect-ratio: auto !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

.metop-engine-parity .metop-engine-module-card:not(.is-wide) {
  gap: 0 !important;
  grid-template-columns: 1fr !important;
  overflow: hidden;
  padding: 0 !important;
}

.metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-module-copy {
  order: 2;
  padding: 28px;
}

.metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-module-media {
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  order: 1;
  width: 100%;
}

.metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-module-media,
.metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-media-image,
.metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-media-image .elementor-widget-container,
.metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-media-image img {
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
}

.metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-media-image img {
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .metop-creative-factory-parity .metop-cf-hero-main {
    grid-column: auto !important;
  }

  .metop-engine-parity .metop-engine-module-card:not(.is-wide) .metop-engine-module-copy {
    padding: 22px;
  }
}

/* Tablet English templates need room for long labels and descriptions. The
   legacy facts grid is intentionally compact, but it must never clip a word
   when the viewport is between the desktop and mobile layouts. */
@media (min-width: 761px) and (max-width: 920px) {
  html[lang="en"] .metop-support-fact-value .elementor-heading-title,
  html[lang="en"] .metop-resource-fact-value .elementor-heading-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html[lang="en"] .metop-resource-aside-title .elementor-heading-title {
    font-size: 23px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  html[lang="en"] .metop-tools-parity
    .metop-tools-feature-card:not(.metop-tools-feature-card--1)
    .metop-tools-card-description p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    overflow: visible;
  }
}

/* English tool descriptions can exceed two lines at desktop widths. Let the
   card grow with the copy instead of hiding the final line. */
@media (min-width: 921px) {
  html[lang="en"] .metop-tools-parity
    .metop-tools-feature-card:not(.metop-tools-feature-card--1)
    .metop-tools-card-description p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    overflow: visible;
  }
}

/* The consent link is generated by the contact shortcode rather than
   Elementor, so keep it on the same brand-blue token as the rest of V3. */
body .metop-contact-form .metop-form-consent a {
  color: #142e90 !important;
}
