/* Opt-in H1 treatment for English expertise pages. The existing page layout,
   imagery, body copy and third-party widgets remain outside this scope. */
main h1.expertise-hero-title {
  font-family: "Open Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: break-word;
  margin-bottom: 1.5rem;
}

/* Legacy landing styles highlight every span. Give each span its own role. */
h1.expertise-hero-title span {
  color: inherit;
  background: transparent;
  padding: 0;
  font: inherit;
}

h1.expertise-hero-title .expertise-hero-done {
  display: inline-block;
  color: #1bb76d;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0 0.3em;
  font-weight: 800;
}

h1.expertise-hero-title .expertise-hero-support {
  display: inline-block;
  max-width: 100%;
  text-wrap: balance;
}

h1.expertise-hero-title .expertise-hero-ce,
h1.expertise-hero-title .expertise-hero-ukca {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-right: 0.375em;
  vertical-align: baseline;
}

h1.expertise-hero-title .expertise-hero-ce img,
h1.expertise-hero-title .expertise-hero-ukca img {
  display: block;
  height: 1.75em;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h1.expertise-hero-title .expertise-hero-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keep the complete support phrase readable on narrow screens. */
@media (max-width: 600px) {
  main h1.expertise-hero-title {
    font-size: clamp(1.5rem, 7vw, 1.75rem);
  }
}
