/**
 * NMR Design Studio 1.4.3 - shorter, mobile-first homepage carousel banner.
 * ONLY the existing homepage carousel is affected. We do not set display on
 * slide articles, preserving theme hidden/inactive-slide and fade logic.
 * Styling does not touch slide links, image overlay anchors or carousel JS.
 */
body.nmrpd-compact-banner #nmr-highlights-2.nmr-hero {
  --nmrpd-banner-min: 410px;
  --nmrpd-banner-phone-image: 165px;
  min-height: 0 !important;
  padding-bottom: 0 !important;
}
body.nmrpd-compact-banner.nmrpd-banner-balanced #nmr-highlights-2.nmr-hero {
  --nmrpd-banner-min: 475px;
  --nmrpd-banner-phone-image: 205px;
}
/* No fixed max-height: extra slide CTAs and text must never be clipped. */
body.nmrpd-compact-banner #nmr-highlights-2.nmr-hero > article.nmr-hero-panel {
  box-sizing: border-box;
  height: auto !important;
  min-height: var(--nmrpd-banner-min) !important;
  max-height: none !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  overflow: hidden;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-copy {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0 !important;
  padding: clamp(22px, 2.8vw, 34px) clamp(24px, 3.0vw, 40px) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 1.25vw, 13px) !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-eyebrow {
  font-size: clamp(11px, 1.0vw, 13px) !important;
  line-height: 1.25 !important;
  letter-spacing: .14em;
  margin: 0 !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-title {
  font-size: clamp(27px, 3.2vw, 43px) !important;
  line-height: 1.11 !important;
  letter-spacing: -.035em;
  margin: 0 !important;
  max-width: 21ch;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-summary {
  font-size: clamp(15px, 1.35vw, 18px) !important;
  line-height: 1.46 !important;
  margin: 0 !important;
  max-width: 51ch;
  overflow: visible !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 6px 0 0 !important;
  width: 100%;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-actions .nmr-button {
  box-sizing: border-box;
  min-height: 44px !important;
  min-width: 0 !important;
  max-width: 100%;
  font-size: clamp(13px, 1.12vw, 16px) !important;
  line-height: 1.25 !important;
  padding: 11px 15px !important;
  margin: 0 !important;
  white-space: normal !important;
  text-align: center;
  justify-content: center;
}
/* Override 1.4.2's forced 16:9 photo figure for a fill-the-banner image.
   Photographs remain in Media Library untouched, with original srcset. */
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-image,
body.nmrpd-compact-banner #nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image,
body.nmrpd-compact-banner #nmr-highlights-2 article[data-nmrpd-photo-fit] .wp-block-image > figure {
  box-sizing: border-box;
  min-width: 0;
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden !important;
  background: transparent !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-image > picture,
body.nmrpd-compact-banner #nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image > picture,
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-image figure > picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  inset: 0;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-image img,
body.nmrpd-compact-banner #nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image img {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: var(--nmrpd-photo-focus, 50% 50%) !important;
  border-radius: 0;
  transform: none !important;
}
/* Respect an explicit "show entire photo" selection, if saved for a slide. */
body.nmrpd-compact-banner #nmr-highlights-2 article[data-nmrpd-photo-fit="contain"] .nmr-hero-image img {
  object-fit: contain !important;
}
/* Respect an explicit "original theme" photo setting; the compact frame remains. */
body.nmrpd-compact-banner #nmr-highlights-2 article:not([data-nmrpd-photo-fit]) .nmr-hero-image img {
  object-fit: cover !important;
}
/* Controls become a single stable row below the banner, not floating on top of CTA text. */
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slider-controls:not([hidden]) {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center !important;
  column-gap: 10px;
  row-gap: 10px;
  min-height: 52px;
  margin: 14px 0 6px !important;
  padding: 0 4px !important;
  pointer-events: auto !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-pickers {
  position: static !important;
  grid-column: 2;
  justify-self: center;
  transform: none !important;
  margin: 0 !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows {
  position: static !important;
  inset: auto !important;
  grid-column: 3;
  justify-self: end;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin: 0 !important;
  transform: none !important;
  pointer-events: auto !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev],
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next] {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  font-size: 20px !important;
  pointer-events: auto;
  z-index: auto !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-play] {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-height: 40px;
  margin: 0 !important;
  padding: 6px 12px !important;
}
@media (max-width: 900px) {
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-copy {
    padding: 24px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-title {
    font-size: clamp(26px, 3.6vw, 36px) !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-actions .nmr-button {
    padding: 10px 13px !important;
  }
}
@media (max-width: 680px) {
  body.nmrpd-compact-banner #nmr-highlights-2.nmr-hero > article.nmr-hero-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto var(--nmrpd-banner-phone-image) !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-copy {
    padding: 22px 20px 17px !important;
    gap: 11px !important;
    align-items: flex-start;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-eyebrow {
    font-size: 11px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-title {
    max-width: 100%;
    font-size: clamp(26px, 7.3vw, 34px) !important;
    line-height: 1.12 !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-summary {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-actions {
    gap: 8px !important;
    margin-top: 2px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-actions .nmr-button {
    font-size: 14px !important;
    min-height: 44px !important;
    padding: 9px 12px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-image,
  body.nmrpd-compact-banner #nmr-highlights-2 article[data-nmrpd-photo-fit] .nmr-hero-image {
    height: var(--nmrpd-banner-phone-image) !important;
    min-height: 0 !important;
    max-height: var(--nmrpd-banner-phone-image) !important;
    overflow: hidden !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slider-controls:not([hidden]) {
    display: flex !important;
    justify-content: center !important;
    gap: 8px 14px !important;
    flex-wrap: wrap !important;
    margin: 12px 0 5px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-pickers,
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows {
    justify-self: auto;
    grid-column: auto;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows {
    justify-content: center !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev],
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next] {
    min-width: 38px !important;
    min-height: 38px !important;
    width: 38px !important;
    height: 38px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-hero-panel .nmr-hero-image img {
    transition: none !important;
  }
}
