/* Static card maps share one geographic frame at every responsive width.
   Move the raster and vector together so hover never separates their coastlines. */
body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map[data-map-static="true"] {
  aspect-ratio: 8 / 5;
  /* Enlarged text may grow the card; keep all geography visible below it. */
  min-height: 9rem;
  height: auto;
  background: #f2efe8;
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map-static {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
  filter: var(--spotlight-map-filter-rest, none);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map-static > :is(img, svg) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* The shared parent, not separate layers, owns the hover transform. */
  transform: none !important;
  filter: none !important;
  transition: none !important;
  will-change: auto;
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map:is(:hover, :focus-within) .community-carousel__map-static {
  transform: scale(1.035);
  filter: var(--spotlight-map-filter-hover, none);
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map-center {
  fill: #a91512;
  stroke: #fffdf8;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map[data-map-static="true"] .community-carousel__map-hitarea-title {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map-credit {
  width: calc(100% - (var(--dc-shell-gutter) * 2));
  max-width: var(--dc-shell-max);
  margin: 0.85rem auto 0;
  padding: 0;
  color: #46535c;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map-credit a {
  display: inline;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map-credit a:focus-visible {
  outline: 2px solid #1f6f9f;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.home .dc-landing--homepage .atlas-stage__bridge-carousel .community-carousel__map-static {
    transition: none;
    transform: none !important;
  }
}
