/*
 * Owner-approved homepage hero scope only.
 * These rules remain inert until the fail-closed JavaScript adds both marker
 * classes after validating the current front-page structure and map asset.
 */

body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-hero__copy {
  position: relative;
  z-index: 2;
}

body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-mosaic--worldmap-approved {
  width: 100%;
  height: 420px;
  position: relative;
  z-index: 1;
  margin-left: 0;
  transform: translateY(6px);
}

body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-mosaic--worldmap-approved .dms-home-mosaic__map[data-dms-approved-home-map] {
  width: min(780px, 55vw);
  max-width: none;
  height: auto;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 49%;
  display: block;
  opacity: .64;
  filter: brightness(0) saturate(100%) invert(43%) sepia(85%) saturate(927%) hue-rotate(163deg) brightness(87%) contrast(93%);
  transform: translate(-50%, -54%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .58) 13%, #000 29%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .58) 13%, #000 29%, #000 100%);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-hero__inner {
    gap: 18px;
    padding-bottom: 30px;
  }

  body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-mosaic--worldmap-approved {
    width: 100%;
    height: 270px;
    justify-self: stretch;
    margin: 0;
    transform: none;
  }

  body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-mosaic--worldmap-approved .dms-home-mosaic__map[data-dms-approved-home-map] {
    width: min(760px, 100%);
    top: 50%;
    left: 50%;
    opacity: .7;
    transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  }
}

@media (max-width: 620px) {
  body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-hero__inner {
    gap: 16px;
    padding-bottom: 26px;
  }

  body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-mosaic--worldmap-approved {
    width: 100%;
    height: 180px;
    margin: 0;
    transform: none;
  }

  body.home main.dms-home > section.dms-home-hero--worldmap-approved .dms-home-mosaic--worldmap-approved .dms-home-mosaic__map[data-dms-approved-home-map] {
    width: 100%;
    max-width: 520px;
    opacity: .72;
  }
}
