/* Phase 7 GOV.UH identity substitutions.
   Preserve the native GOV.UK organisation-logo component geometry. UH artwork
   replaces the crest assets; directory rendering remains controlled by the
   upstream organisations-list template. */

.gem-c-organisation-logo__crest--single-identity,
.gem-c-organisation-logo__crest--eo,
.gem-c-organisation-logo__crest--org {
  background-image: url("/uh-brand/uh-government-crest.webp") !important;
  background-repeat: no-repeat !important;
  background-position: 8px 0 !important;
  background-size: auto 32px !important;
  padding-top: 35px !important;
}

.gem-c-organisation-logo__crest--eo,
.brand--executive-office .gem-c-organisation-logo__crest {
  background-position: 0 0 !important;
}

.organisation-header--hcg .gem-c-organisation-logo__crest--single-identity,
.organisation-header--hcg .gem-c-organisation-logo__crest--org {
  background-image: url("/uh-brand/hcg-uk-crest.png") !important;
  background-repeat: no-repeat !important;
  background-position: 8px 0 !important;
  background-size: auto 32px !important;
  padding-top: 35px !important;
}

.gem-c-organisation-logo__crest--ho {
  background-image: url("/uh-brand/uh-organisation-badge.webp") !important;
  background-repeat: no-repeat !important;
  background-position: 9px 0 !important;
  background-size: auto 34px !important;
  padding-top: 39px !important;
}

/* Parliamentary business offices retain the native GOV.UK portcullis identity.
   Use a product-local stable asset so the crest cannot disappear through an
   upstream fingerprint/cache mismatch. */
.gem-c-organisation-logo__crest--portcullis {
  background-image: url("/uh-brand/parliament-portcullis.png") !important;
  background-repeat: no-repeat !important;
  background-position: 9px 0 !important;
  background-size: auto 32px !important;
  padding-top: 35px !important;
}

.govuk-footer__copyright-logo::before {
  background-image: url("/uh-brand/uh-government-coat-of-arms.webp") !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: 50% 0 !important;
  background-size: 125px auto !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Phase 7: do not expose email-alert controls until the email subscription service is connected. */
.gem-c-subscription-links { display: none !important; }
