/* A horizontal header treatment of the supplied African Strategic logo.
   The image stays intact; the display window trims its transparent canvas. */
.gateway-identity .official-brand,
.site-header .official-brand {
  --header-logo-width: 240px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 var(--header-logo-width);
  width: var(--header-logo-width);
  min-width: var(--header-logo-width);
  min-height: 64px;
  padding: 0;
}

.official-brand .brand-image {
  display: block;
  position: relative;
  flex: 0 0 var(--header-logo-width);
  width: var(--header-logo-width);
  height: auto;
  aspect-ratio: 1991 / 461;
  overflow: hidden;
}

.official-brand .brand-image img {
  position: absolute;
  display: block;
  width: 109.091%;
  height: 157.05%;
  max-width: none;
  left: -4.721%;
  top: -27.983%;
  transform: none;
  object-fit: contain;
}

/* Leave the upper-left strip blank and keep the region links aligned right. */
.region-bar .region-links { margin-left: auto; }

.africa-page .site-header .nav-wrap,
.middle-east-page .site-header .nav-wrap { min-height: 112px; }
.africa-page section[id],
.middle-east-page section[id] { scroll-margin-top: 132px; }
.africa-page .expertise-row { scroll-margin-top: 132px; }

@media (max-width: 1024px) {
  .africa-page .site-header .mobile-nav,
  .middle-east-page .site-header .mobile-nav {
    max-height: calc(100svh - 112px);
    overflow-y: auto;
  }
}
@media (max-width: 700px) {
  .gateway-identity .official-brand,
  .site-header .official-brand {
    --header-logo-width: 190px;
    min-height: 52px;
  }
  .region-bar .region-links { margin-left: 0; }
  .africa-page .site-header .nav-wrap,
  .middle-east-page .site-header .nav-wrap { min-height: 94px; }
  .africa-page .site-header .mobile-nav,
  .middle-east-page .site-header .mobile-nav { max-height: calc(100svh - 94px); }
  .africa-page section[id],
  .middle-east-page section[id],
  .africa-page .expertise-row { scroll-margin-top: 114px; }
}
@media (max-width: 360px) {
  .site-header .official-brand { --header-logo-width: 180px; }
}
