/* One cached, self-contained SVG replaces all font/emoji logo assemblies. */
body .brand {
  --brand-width: 140px;
  --brand-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 var(--brand-width);
  gap: 0;
  width: var(--brand-width);
  min-width: var(--brand-width);
  max-width: var(--brand-width);
  height: var(--brand-height);
  min-height: var(--brand-height);
  max-height: var(--brand-height);
  padding: 0;
  text-decoration: none;
}

body .brand > .brand-logo {
  display: block;
  flex: none;
  width: var(--brand-width);
  min-width: var(--brand-width);
  max-width: none;
  height: var(--brand-height);
  min-height: var(--brand-height);
  max-height: none;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
  transform: none;
  filter: none;
}

body .brand::before,
body .brand::after {
  content: none;
  display: none;
}

body .brand:focus-visible {
  outline: 3px solid #1565d8;
  outline-offset: 5px;
  border-radius: 4px;
}

/* Keep the same coloured logo readable on the dark footer without recolouring. */
body .brand.footer-brand {
  margin: 6px 0;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 0 6px #fff;
}

@media (max-width: 600px) {
  body .brand {
    --brand-width: 128px;
    --brand-height: 38px;
  }
}
