/* Loaded only for the UK public site; the approved flag is entirely static. */
.site-header--uk .uk-header-flag {
  position: absolute;
  inset: 0 auto 0 0;
  width: max(52%, 360px);
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  /* A static flag sweeps from the logo side into the white header. */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 16%, #0009 50%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 16%, #0009 50%, transparent 100%);
}
.site-header--uk .uk-header-flag::before {
  content: "";
  position: absolute;
  inset: -4px 0;
  background: url('/assets/img/uk-header-flag-wave.svg') left center / max(800px, 100%) 112px no-repeat;
  opacity: .22;
}
.site-header--uk .wrap.nav-row { z-index: 1; }
/* A soft clear area keeps the original logo readable without adding a badge. */
.site-header--uk .brand { position: relative; isolation: isolate; }
.site-header--uk .brand::before {
  content: "";
  position: absolute;
  inset: -10px -24px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #fff 25%, #fffffff0 45%, #ffffff00 72%);
}
@media (max-width: 800px) {
  .site-header--uk .uk-header-flag { width: min(85%, 400px); }
  .site-header--uk .uk-header-flag::before {
    background-size: 400px 100px;
    opacity: .22;
  }
  .site-header--uk .brand::before { inset: -8px -16px; }
}
