.wp-block-whu-hero {
  display: block;
  --whu-hero-layout-direction-current: var(--whu-hero-layout-direction-desktop);
  --whu-hero-layout-align-current: var(--whu-hero-layout-align-desktop);
  --whu-hero-image-width-current: var(--whu-hero-image-width-desktop);
  --whu-hero-image-height-current: var(--whu-hero-image-height-desktop);
  --whu-hero-text-width-current: var(--whu-hero-text-width-desktop);
  --whu-hero-section-gap-current: var(--whu-hero-section-gap-desktop);
  --whu-hero-button-gap-current: var(--whu-hero-button-gap-desktop);
  --whu-hero-banner-top-padding-current: var(--whu-hero-banner-top-padding-desktop);
  --whu-hero-content-padding-top-current: var(--whu-hero-content-padding-top-desktop);
  --whu-hero-content-gap-current: var(--whu-hero-content-gap-desktop);
  --whu-hero-copy-gap-current: var(--whu-hero-copy-gap-desktop);
  --whu-hero-button-direction-current: var(--whu-hero-button-direction-desktop);
  --whu-hero-button-align-current: var(--whu-hero-button-align-desktop);
  --whu-hero-story-gap-current: var(--whu-hero-story-gap-desktop);
  --whu-hero-story-direction-current: var(--whu-hero-story-direction-desktop);
  --whu-hero-fold-display-current: var(--whu-hero-fold-display-desktop);
  --whu-hero-fold-horizontal-width-current: var(--whu-hero-fold-horizontal-width-desktop);
  --whu-hero-fold-vertical-height-current: var(--whu-hero-fold-vertical-height-desktop);
  --whu-hero-title-font-size-current: var(--whu-hero-title-font-size-desktop);
  --whu-hero-title-font-weight-current: var(--whu-hero-title-font-weight-desktop);
  --whu-hero-title-line-height-current: var(--whu-hero-title-line-height-desktop);
  --whu-hero-button-font-size-current: var(--whu-hero-button-font-size-desktop);
  --whu-hero-button-font-weight-current: var(--whu-hero-button-font-weight-desktop);
  --whu-hero-button-line-height-current: var(--whu-hero-button-line-height-desktop);
  --whu-hero-story-title-font-size-current: var(--whu-hero-story-title-font-size-desktop);
  --whu-hero-story-title-font-weight-current: var(--whu-hero-story-title-font-weight-desktop);
  --whu-hero-story-title-line-height-current: var(--whu-hero-story-title-line-height-desktop);
  --whu-hero-story-text-font-size-current: var(--whu-hero-story-text-font-size-desktop);
  --whu-hero-story-text-font-weight-current: var(--whu-hero-story-text-font-weight-desktop);
  --whu-hero-story-text-line-height-current: var(--whu-hero-story-text-line-height-desktop);
}

.wp-block-whu-hero .whu-v4-hero__slides {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y;
}

.wp-block-whu-hero .whu-v4-hero__slide[hidden] {
  display: none;
}

.wp-block-whu-hero .whu-v4-hero__slide {
  position: relative;
  will-change: transform, opacity, filter;
}

.wp-block-whu-hero .whu-v4-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.wp-block-whu-hero .whu-v4-hero__copy {
  min-width: 0;
}

.wp-block-whu-hero .whu-v4-hero__slide.has-mobile-title-override .whu-v4-hero__title-mobile {
  display: none;
}

.wp-block-whu-hero .whu-v4-hero__fold-line {
  position: absolute;
  display: block;
  box-sizing: border-box;
  pointer-events: none;
}

.wp-block-whu-hero .whu-v4-hero__fold-line--corner {
  max-width: 100%;
  background: transparent;
}

.wp-block-whu-hero .whu-v4-hero__story-copy,
.wp-block-whu-hero .whu-v4-hero__story-pager {
  position: relative;
  z-index: 1;
}

.wp-block-whu-hero .whu-v4-hero__story-pager button {
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--whu-blue);
  transition:
    background-color var(--whu-ds-motion-duration, 300ms) ease,
    color var(--whu-ds-motion-duration, 300ms) ease,
    opacity var(--whu-ds-motion-duration, 300ms) ease;
  padding: 0;
}

.wp-block-whu-hero .whu-v4-hero__title {
  font-size: var(--whu-hero-title-font-size-current);
  font-weight: var(--whu-hero-title-font-weight-current);
  line-height: var(--whu-hero-title-line-height-current);
}

.wp-block-whu-hero .whu-v4-hero__button {
  font-size: var(--whu-hero-button-font-size-current);
  font-weight: var(--whu-hero-button-font-weight-current);
  line-height: var(--whu-hero-button-line-height-current);
  gap: 31px;
}

.wp-block-whu-hero .whu-v4-hero__button > span {
  display: inline-block;
  width: 15px;
  height: 14px;
  flex: 0 0 15px;
  overflow: hidden;
  background: currentColor;
  font-size: 0;
  -webkit-mask: var(--whu-ds-arrow-right) center / contain no-repeat;
  mask: var(--whu-ds-arrow-right) center / contain no-repeat;
}

.wp-block-whu-hero .whu-v4-hero__story {
  align-items: flex-end;
}

.wp-block-whu-hero .whu-v4-hero__story-copy {
  max-width: 378px;
}

.wp-block-whu-hero .whu-v4-hero__story-lead {
  margin: 0 0 12px;
  font-size: var(--whu-hero-story-title-font-size-current);
  line-height: var(--whu-hero-story-title-line-height-current);
  font-weight: var(--whu-hero-story-title-font-weight-current);
}

.wp-block-whu-hero .whu-v4-hero__story-sub {
  font-size: var(--whu-hero-story-text-font-size-current);
  font-weight: var(--whu-hero-story-text-font-weight-current);
  line-height: var(--whu-hero-story-text-line-height-current);
}

.wp-block-whu-hero .whu-v4-hero__story-pager {
  display: grid;
  grid-template-columns: 44px 29px 44px;
  align-items: center;
  gap: 0;
  width: var(--whu-ds-count-pager-width, 117px);
  height: var(--whu-ds-control-height, 44px);
  padding: 0;
  font-size: 18px;
  text-align: center;
  background: var(--whu-ds-control-surface, #e6ebf0);
}

.wp-block-whu-hero .whu-v4-hero__story-dots {
  display: none;
}

.wp-block-whu-hero .whu-v4-hero__story-pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  font-size: 0;
  line-height: 1;
  font-weight: 700;
}

.wp-block-whu-hero .whu-v4-hero__story-pager button:hover {
  background: var(--whu-ds-control-hover, #e3eaf3);
  color: var(--whu-ds-blue-hover, #215ba2);
  transform: none;
}

.wp-block-whu-hero .whu-v4-hero__story-pager button:focus-visible {
  outline: 3px solid var(--whu-ds-cyan, #0099db);
  outline-offset: 3px;
  background: var(--whu-ds-control-hover, #e3eaf3);
  color: var(--whu-ds-blue-hover, #215ba2);
  box-shadow: none;
}

.wp-block-whu-hero .whu-v4-hero__story-pager button:active,
.wp-block-whu-hero .whu-v4-hero__story-pager button.is-pressed {
  transform: none;
}

.wp-block-whu-hero .whu-v4-hero__story-pager button:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

.wp-block-whu-hero[data-transitioning="true"] .whu-v4-hero__slide {
  pointer-events: none;
}

@media (min-width: 901px) {
  .wp-block-whu-hero:not(.is-preview-mobile) {
    --whu-hero-image-height-current: min(var(--whu-hero-image-height-desktop), 560px);
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__media {
    order: 1;
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__content {
    order: 2;
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__slide {
    min-height: var(--whu-hero-image-height-current) !important;
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__content {
    position: relative;
    align-self: flex-start;
    height: var(--whu-hero-image-height-current);
    padding-top: 0 !important;
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__copy {
    position: absolute;
    top: 42px;
    left: 0;
    width: 100%;
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__story {
    position: absolute !important;
    top: 396px !important;
    left: 0 !important;
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__story-pager {
    margin-right: var(--whu-ds-space-7, 42px);
  }
}

/* Keep the desktop composition balanced on compact laptop viewports. */
@media (min-width: 901px) and (max-width: 1200px) {
  .wp-block-whu-hero:not(.is-preview-mobile) {
    --whu-hero-image-width-current: min(var(--whu-hero-image-width-desktop), 50vw);
    --whu-hero-section-gap-current: min(var(--whu-hero-section-gap-desktop), 4vw);
  }

  .wp-block-whu-hero:not(.is-preview-mobile) .whu-v4-hero__title {
    font-size: min(var(--whu-hero-title-font-size-current), 34px);
  }
}

.wp-block-whu-hero.is-preview-mobile {
  --whu-hero-layout-direction-current: var(--whu-hero-layout-direction-mobile);
  --whu-hero-layout-align-current: var(--whu-hero-layout-align-mobile);
  --whu-hero-image-width-current: var(--whu-hero-image-width-mobile);
  --whu-hero-image-height-current: var(--whu-hero-image-height-mobile);
  --whu-hero-text-width-current: var(--whu-hero-text-width-mobile);
  --whu-hero-section-gap-current: var(--whu-hero-section-gap-mobile);
  --whu-hero-button-gap-current: var(--whu-hero-button-gap-mobile);
  --whu-hero-banner-top-padding-current: var(--whu-hero-banner-top-padding-mobile);
  --whu-hero-content-padding-top-current: var(--whu-hero-content-padding-top-mobile);
  --whu-hero-content-gap-current: var(--whu-hero-content-gap-mobile);
  --whu-hero-copy-gap-current: var(--whu-hero-copy-gap-mobile);
  --whu-hero-button-direction-current: var(--whu-hero-button-direction-mobile);
  --whu-hero-button-align-current: var(--whu-hero-button-align-mobile);
  --whu-hero-story-gap-current: var(--whu-hero-story-gap-mobile);
  --whu-hero-story-direction-current: var(--whu-hero-story-direction-mobile);
  --whu-hero-fold-display-current: var(--whu-hero-fold-display-mobile);
  --whu-hero-fold-horizontal-width-current: var(--whu-hero-fold-horizontal-width-mobile);
  --whu-hero-fold-vertical-height-current: var(--whu-hero-fold-vertical-height-mobile);
  --whu-hero-title-font-size-current: var(--whu-hero-title-font-size-mobile);
  --whu-hero-title-font-weight-current: var(--whu-hero-title-font-weight-mobile);
  --whu-hero-title-line-height-current: var(--whu-hero-title-line-height-mobile);
  --whu-hero-button-font-size-current: var(--whu-hero-button-font-size-mobile);
  --whu-hero-button-font-weight-current: var(--whu-hero-button-font-weight-mobile);
  --whu-hero-button-line-height-current: var(--whu-hero-button-line-height-mobile);
  --whu-hero-story-title-font-size-current: var(--whu-hero-story-title-font-size-mobile);
  --whu-hero-story-title-font-weight-current: var(--whu-hero-story-title-font-weight-mobile);
  --whu-hero-story-title-line-height-current: var(--whu-hero-story-title-line-height-mobile);
  --whu-hero-story-text-font-size-current: var(--whu-hero-story-text-font-size-mobile);
  --whu-hero-story-text-font-weight-current: var(--whu-hero-story-text-font-weight-mobile);
  --whu-hero-story-text-line-height-current: var(--whu-hero-story-text-line-height-mobile);
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__slide.has-mobile-title-override .whu-v4-hero__title-desktop {
  display: none;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__slide.has-mobile-title-override .whu-v4-hero__title-mobile {
  display: inline;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__inner {
  padding-inline: 24px;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__copy {
  display: contents !important;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__content {
  order: 2;
  padding-top: 0 !important;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__media {
  order: 1;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__story {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  order: 2;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__fold-line--corner {
  top: 0 !important;
  right: 0 !important;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__title {
  order: 1;
}

.wp-block-whu-hero.is-preview-mobile .whu-v4-hero__actions {
  order: 3;
}

@media (max-width: 781px) {
  .wp-block-whu-hero {
    --whu-hero-mobile-media-height: clamp(280px, 104vw, 405px);
    --whu-hero-layout-direction-current: var(--whu-hero-layout-direction-mobile);
    --whu-hero-layout-align-current: var(--whu-hero-layout-align-mobile);
    --whu-hero-image-width-current: var(--whu-hero-image-width-mobile);
    --whu-hero-image-height-current: var(--whu-hero-image-height-mobile);
    --whu-hero-text-width-current: var(--whu-hero-text-width-mobile);
    --whu-hero-section-gap-current: var(--whu-hero-section-gap-mobile);
    --whu-hero-button-gap-current: var(--whu-hero-button-gap-mobile);
    --whu-hero-banner-top-padding-current: var(--whu-hero-banner-top-padding-mobile);
    --whu-hero-content-padding-top-current: var(--whu-hero-content-padding-top-mobile);
    --whu-hero-content-gap-current: var(--whu-hero-content-gap-mobile);
    --whu-hero-copy-gap-current: var(--whu-hero-copy-gap-mobile);
    --whu-hero-button-direction-current: var(--whu-hero-button-direction-mobile);
    --whu-hero-button-align-current: var(--whu-hero-button-align-mobile);
    --whu-hero-story-gap-current: var(--whu-hero-story-gap-mobile);
    --whu-hero-story-direction-current: var(--whu-hero-story-direction-mobile);
    --whu-hero-fold-display-current: var(--whu-hero-fold-display-mobile);
    --whu-hero-fold-horizontal-width-current: var(--whu-hero-fold-horizontal-width-mobile);
    --whu-hero-fold-vertical-height-current: var(--whu-hero-fold-vertical-height-mobile);
    --whu-hero-title-font-size-current: var(--whu-hero-title-font-size-mobile);
    --whu-hero-title-font-weight-current: var(--whu-hero-title-font-weight-mobile);
    --whu-hero-title-line-height-current: var(--whu-hero-title-line-height-mobile);
    --whu-hero-button-font-size-current: var(--whu-hero-button-font-size-mobile);
    --whu-hero-button-font-weight-current: var(--whu-hero-button-font-weight-mobile);
    --whu-hero-button-line-height-current: var(--whu-hero-button-line-height-mobile);
    --whu-hero-story-title-font-size-current: var(--whu-hero-story-title-font-size-mobile);
    --whu-hero-story-title-font-weight-current: var(--whu-hero-story-title-font-weight-mobile);
    --whu-hero-story-title-line-height-current: var(--whu-hero-story-title-line-height-mobile);
    --whu-hero-story-text-font-size-current: var(--whu-hero-story-text-font-size-mobile);
    --whu-hero-story-text-font-weight-current: var(--whu-hero-story-text-font-weight-mobile);
    --whu-hero-story-text-line-height-current: var(--whu-hero-story-text-line-height-mobile);
  }

  .wp-block-whu-hero .whu-v4-hero__slides {
    display: grid;
  }

  .wp-block-whu-hero .whu-v4-hero__slide {
    grid-area: 1 / 1;
    width: 100%;
  }

  .wp-block-whu-hero .whu-v4-hero__slide[hidden] {
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .wp-block-whu-hero .whu-v4-hero__inner {
    gap: 24px !important;
    padding-inline: var(--whu-ds-mobile-gutter, 24px);
  }

  .wp-block-whu-hero .whu-v4-hero__content {
    order: 2;
    gap: 22px !important;
    width: 100% !important;
    padding-top: 0 !important;
  }

  .wp-block-whu-hero .whu-v4-hero__media {
    order: 1;
    width: 100% !important;
    height: var(--whu-hero-mobile-media-height) !important;
    min-height: var(--whu-hero-mobile-media-height);
    max-height: var(--whu-hero-mobile-media-height);
    flex: 0 0 var(--whu-hero-mobile-media-height) !important;
  }

  .wp-block-whu-hero .whu-v4-hero__copy {
    display: contents !important;
  }

  .wp-block-whu-hero .whu-v4-hero__story {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    order: 2;
    width: 100% !important;
    padding-top: 28px !important;
  }

  .wp-block-whu-hero .whu-v4-hero__fold-line--corner {
    top: 0 !important;
    right: 0 !important;
  }

  .wp-block-whu-hero .whu-v4-hero__title {
    order: 1;
    max-width: 20em;
    font-size: clamp(28px, var(--whu-hero-title-font-size-mobile), 32px);
    line-height: max(var(--whu-hero-title-line-height-mobile), 1.3);
  }

  .wp-block-whu-hero .whu-v4-hero__actions {
    order: 3;
    width: 100%;
    gap: 12px !important;
  }

  .wp-block-whu-hero .whu-v4-hero__button {
    min-height: 54px;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: min(var(--whu-hero-button-font-size-mobile), 17px);
    line-height: max(var(--whu-hero-button-line-height-mobile), 1.35);
  }

  .wp-block-whu-hero .whu-v4-hero__slide.has-mobile-title-override .whu-v4-hero__title-desktop {
    display: none;
  }

  .wp-block-whu-hero .whu-v4-hero__slide.has-mobile-title-override .whu-v4-hero__title-mobile {
    display: inline;
  }

  .wp-block-whu-hero .whu-v4-hero__story-copy {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding-right: 0;
  }

  .wp-block-whu-hero .whu-v4-hero__story-lead {
    margin-bottom: 10px;
    font-size: min(var(--whu-hero-story-title-font-size-mobile), 21px);
    line-height: max(var(--whu-hero-story-title-line-height-mobile), 1.4);
  }

  .wp-block-whu-hero .whu-v4-hero__story-sub {
    font-size: min(var(--whu-hero-story-text-font-size-mobile), 16px);
    line-height: max(var(--whu-hero-story-text-line-height-mobile), 1.65);
  }

  .wp-block-whu-hero .whu-v4-hero__story-pager button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .wp-block-whu-hero .whu-v4-hero__story-pager {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center;
    width: 100%;
    height: 44px;
    background: transparent;
  }

  .wp-block-whu-hero .whu-v4-hero__story-pager-number {
    display: none;
  }

  .wp-block-whu-hero .whu-v4-hero__story-pager > [data-hero-nav] {
    position: static;
    grid-row: 1;
    display: inline-flex;
    background: var(--whu-ds-control-surface, #e6ebf0);
    transition: none;
  }

  .wp-block-whu-hero .whu-v4-hero__story-pager > [data-hero-nav="prev"] {
    grid-column: 2;
  }

  .wp-block-whu-hero .whu-v4-hero__story-pager > [data-hero-nav="next"] {
    grid-column: 3;
  }

  .wp-block-whu-hero .whu-v4-hero__story-dots {
    display: flex;
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    height: 44px;
    align-items: center;
    gap: 8px;
  }

  .wp-block-whu-hero .whu-v4-hero__story-dots [data-hero-dot] {
    display: block;
    width: 28px;
    min-width: 28px;
    height: 4px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: rgba(5, 70, 150, 0.28);
    transition: none;
  }

  .wp-block-whu-hero .whu-v4-hero__story-dots [data-hero-dot][aria-current="true"] {
    background: var(--whu-blue);
  }
}

@media (max-width: 359px) {
  .wp-block-whu-hero .whu-v4-hero__inner,
  .wp-block-whu-hero.is-preview-mobile .whu-v4-hero__inner {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-whu-hero .whu-v4-hero__slide,
  .wp-block-whu-hero .whu-v4-hero__story-pager,
  .wp-block-whu-hero .whu-v4-hero__story-pager button {
    transition: none;
    animation: none;
  }
}
