.brand,
.footer-brand,
.admin-brand {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
}

/* The supplied PNGs include generous transparent canvas around each mark.
   Scale and center that canvas so the complete logo stays visible. */
.brand {
  width: 230px;
  height: 82px;
}

.brand img,
.footer-brand img {
  position: absolute;
  display: block;
  width: 347px;
  max-width: none;
  height: auto;
  left: -58px;
  top: 50%;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

.brand-symbol {
  display: none !important;
}

.footer-brand {
  width: 190px;
  height: 64px;
}

.footer-brand img {
  width: 286px;
  left: -48px;
}

/* Visible mark: 30%–67.1% of the PNG width, vertically centred. Each box below
   is sized to the mark plus ~1px, and the image is shifted so nothing is clipped. */
.admin-brand {
  width: 88px;
  height: 68px;
}

.admin-brand img {
  position: absolute;
  display: block;
  width: 230px;
  max-width: none;
  height: auto;
  left: -68px;
  top: 50%;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
}

.admin-top .admin-brand {
  width: 58px;
  height: 42px;
}

.admin-top .admin-brand img {
  width: 148px;
  left: -43px;
}

@media (max-width: 900px) {
  .brand {
    width: 190px;
    height: 72px;
  }

  .brand img {
    width: 286px;
    left: -48px;
  }
}

@media (max-width: 800px) {
  .brand {
    width: 145px;
    height: 62px;
  }

  .brand img {
    width: 219px;
    left: -37px;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 58px;
    height: 56px;
  }

  .brand .brand-wordmark {
    display: none;
  }

  .brand .brand-symbol {
    display: block !important;
    width: 180px;
    left: -61px;
  }
}
