.docpro_hero_heading { position: relative; }

/* Mobile stays stacked; desktop centers the complete active phrase. */
.docpro_heading_title .docpro_audience_line {
  display: block;
  padding-inline: 16px;
}

.docpro_audience_prefix { display: block; }

.docpro_audience_words {
  display: grid;
  box-sizing: content-box;
  width: 100%;
  min-width: 0;
  /* Signifier's ink extends below its line box. Keep the clipping edge clear
     of descenders without shifting the headline baseline or section height. */
  padding-block: 0.18em 0.34em;
  margin-block: -0.18em -0.34em;
  text-align: center;
  /* Clip the vertical roll, while allowing the words to keep their horizontal
     position as the centered slot changes width. */
  overflow: visible;
  clip-path: inset(0 -100vw 0 -100vw);
}

.docpro_audience {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
}

.docpro_audience.is-active { opacity: 1; }

@media (min-width: 981px) {
  .docpro_heading_title .docpro_audience_line {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.18em;
  }

  .docpro_audience_prefix { flex: 0 0 auto; }

  .docpro_audience_words {
    display: block;
    position: relative;
    flex: 0 0 auto;
    width: var(--audience-width, max-content);
    height: 1.1em;
    text-align: left;
    white-space: nowrap;
  }

  .docpro_audience { display: none; }
  .docpro_audience.is-active { display: block; }

  .docpro_hero_heading.is-enhanced .docpro_audience {
    display: block;
    position: absolute;
    top: 0.18em;
    left: 0;
    width: max-content;
  }
}
