/* User-supplied final logo. Its generous canvas is cropped only at display
   time so the uploaded artwork itself remains untouched. */
.brand::before,
.brand-artwork {
  background-image: url("assets/logos-baptist-logo-horizontal-final.png?v=20260926-user3");
  background-size: 118% auto;
  background-position: center 49%;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 0;
}
.opening-popup-logo {
  background-image: url("assets/logos-baptist-logo-popup-vertical.png?v=20260926-user3");
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 0;
}
.admin-brand::before,
.brand.inverse::before,
.portal-footer .brand::before {
  background-image: url("assets/logos-baptist-logo-horizontal-final.png?v=20260926-user3");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 0;
  filter: brightness(0) invert(1);
}
.brand::before { width: 238px; height: 70px; }
.admin-brand::before { width: 198px; height: 62px; }
.brand-artwork { display: block; width: min(290px, 72vw); aspect-ratio: 5750 / 1800; }
.opening-popup-logo { width: 142px; height: 124px; }
@media (max-width: 1100px) {
  .brand::before { width: 202px; height: 60px; }
}
@media (max-width: 760px) {
  .brand::before { width: 184px; height: 55px; }
}
@media (max-width: 400px) {
  .brand::before { width: 166px; height: 50px; }
}

/* The same wordmark is reversed for dark footer backgrounds. */
.site-footer .brand::before,
.portal-footer .brand::before {
  height: auto;
  aspect-ratio: 4.47 / 1;
  background: transparent url("assets/logos-baptist-logo-horizontal-final.png?v=20260926-user3") center / 121.4% auto no-repeat;
  border-radius: 0;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

/* Align the visible artwork—not its transparent canvas—with the sitemap. */
.site-footer { padding-top: 30px; }
.site-footer .footer-brand { padding-bottom: 30px; }

@media (max-width: 700px) {
  .site-footer { padding-top: 24px; }
  .site-footer .footer-brand { padding-bottom: 24px; }
  .site-footer .footer-legal {
    width: 100%;
    gap: 12px 16px;
  }
  .site-footer .footer-bottom > p {
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .site-footer .footer-legal {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
  }
}
