/* UNIBRO | Elegant readable hero text on EVERY page
   Text animates via JS only when dashboard copy exists.
   Slider images, videos, overlays and slider timings are untouched. */

/* Support optional dashboard fields: an image-only slide must stay image-only. */
.unibro-hero-slider .uhs-copy-panel.uhta-empty-copy > .u26-hero-actions,
.unibro-hero-slider .uhs-copy-panel.uhta-empty-copy > .hero-actions { display: none !important; }

/* Improved text contrast without putting a dark overlay on the whole photo. */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > h1,
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > p,
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > .u26-eyebrow,
.page-hero .page-hero-inner.uhta-has-copy > h1,
.page-hero .page-hero-inner.uhta-has-copy > p,
.page-hero .page-hero-inner.uhta-has-copy > .kicker,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > h1,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > p,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > .gov-page-hero-eyebrow,
.uhta-has-copy > h1 {
  text-shadow: 0 2px 5px rgba(0, 0, 0, .5), 0 6px 24px rgba(0, 0, 0, .35);
}

/* Small eyebrow feels editorial; preserve original font and color. */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > .u26-eyebrow,
.page-hero .page-hero-inner.uhta-has-copy > .kicker,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > .gov-page-hero-eyebrow,
.uhta-has-copy > h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

/* JS is progressive enhancement: no animation means original text is visible. */
@media (prefers-reduced-motion: reduce) {
  .unibro-hero-slider .uhs-copy-panel > *,
  .page-hero .page-hero-inner > *,
  .gov-page-hero .gov-page-hero-copy > *,
  .upp-hero > * {
    animation: none !important;
  }
}

/* ------------------------------------------------------------
   SOFT HEADLINE HALO | clear white letters on bright photos
   A gentle, feathered shadow BEHIND the heading only.
   No card, border, full-slide dark overlay, or layout shift.
   ------------------------------------------------------------ */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > h1,
.page-hero .page-hero-inner.uhta-has-copy > h1,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > h1,
.upp-hero.uhta-has-copy > h1 {
  position: relative;
  isolation: isolate;
  /* Small dark outline + soft natural shadow on bright/white photos. */
  text-shadow: 0 1px 2px rgba(2, 16, 25, .82),
               0 3px 12px rgba(2, 16, 25, .47),
               0 8px 28px rgba(2, 16, 25, .23);
}

.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > h1::before,
.page-hero .page-hero-inner.uhta-has-copy > h1::before,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > h1::before,
.upp-hero.uhta-has-copy > h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -.25em -.52em;
  border-radius: 50%;
  /* Fades out in every direction: no visible rectangle. */
  background: radial-gradient(ellipse at 48% 49%,
              rgba(4, 20, 32, .29) 0%,
              rgba(4, 20, 32, .17) 40%,
              rgba(4, 20, 32, .045) 68%,
              rgba(4, 20, 32, 0) 90%);
}

/* Keep small supporting text crisp while leaving the photo bright. */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > .u26-eyebrow,
.page-hero .page-hero-inner.uhta-has-copy > .kicker,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > .gov-page-hero-eyebrow {
  text-shadow: 0 1px 3px rgba(2, 15, 23, .78),
               0 3px 13px rgba(2, 15, 23, .40);
}

@media (max-width: 767px) {
  .unibro-hero-slider .uhs-copy-panel.uhta-has-copy > h1::before,
  .page-hero .page-hero-inner.uhta-has-copy > h1::before,
  .gov-page-hero .gov-page-hero-copy.uhta-has-copy > h1::before,
  .upp-hero.uhta-has-copy > h1::before {
    inset: -.22em -.38em;
  }
}


/* UNIBRO HERO | Gold and muted copy contrast refresh (v2)
   Only copy that actually exists is enhanced; blank slides remain untouched.
   Keeps the feathered headline halo and the existing text animation. */

/* Muted grey descriptions: softly lift them towards ivory so they stay clear
   over videos, bright photos and mid-tone textile imagery. */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > p,
.page-hero .page-hero-inner.uhta-has-copy > p,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > p,
.upp-hero.uhta-has-copy > p {
  color: #fcfaf5 !important;
  font-weight: 500;
  text-shadow:
    0 1px 2px rgba(3, 18, 28, .94),
    0 3px 9px rgba(3, 18, 28, .76),
    0 7px 22px rgba(3, 18, 28, .38);
  position: relative;
  isolation: isolate;
}

/* Slight feathering right behind the paragraph — never across the full slide. */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > p::before,
.page-hero .page-hero-inner.uhta-has-copy > p::before,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > p::before,
.upp-hero.uhta-has-copy > p::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: -.38em -.7em;
  border-radius: 40%;
  background: radial-gradient(ellipse at 36% 50%,
    rgba(4, 20, 31, .24),
    rgba(4, 20, 31, .12) 56%,
    rgba(4, 20, 31, 0) 100%);
}

/* Warm bronze/gold highlighted heading: a fresher champagne tone and a crisp
   hairline edge help it read on white without making the whole image darker. */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > h1 em,
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > h1 strong,
.page-hero .page-hero-inner.uhta-has-copy > h1 em,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > h1 em,
.upp-hero.uhta-has-copy > h1 em {
  color: #ffe0a6 !important;
  -webkit-text-stroke: .45px rgba(3, 16, 25, .55);
  text-shadow:
    0 1px 2px rgba(3, 16, 25, .95),
    0 3px 9px rgba(3, 16, 25, .78),
    0 8px 24px rgba(3, 16, 25, .46);
}

/* Small brown labels are deliberately a touch warmer and more legible too. */
.unibro-hero-slider .uhs-copy-panel.uhta-has-copy > .u26-eyebrow,
.page-hero .page-hero-inner.uhta-has-copy > .kicker,
.gov-page-hero .gov-page-hero-copy.uhta-has-copy > .gov-page-hero-eyebrow,
.upp-hero.uhta-has-copy > .upp-hero-eyebrow {
  color: #ffe0a6 !important;
  text-shadow:
    0 1px 2px rgba(3, 16, 25, .98),
    0 2px 7px rgba(3, 16, 25, .82),
    0 5px 16px rgba(3, 16, 25, .48);
}
