/* === BEGIN AE-LOGO-CONTRAST (David t165u fade-to-white) ===
   Preview only. Colour logo slowly fades to vivid white (and back) when
   contrast against what is behind it drops below ~4.5:1. On light surrounds
   a solid local shade plate sits behind the mark (no surround glow). tm fades too.
   White layer uses a hard opaque white PNG. Never set height on the colour img —
   keep .logo / .footer-logo sizes so the mark cannot blow up into a watermark. */
.ae-lc{position:relative;display:inline-block;line-height:0;vertical-align:top;z-index:1}
.ae-lc > .ae-lc-colour{
  display:block;transition:opacity 1.2s ease;max-width:100%;
  /* height comes from existing .logo / .footer-logo / height attrs — do not override */
}
.ae-lc > .ae-lc-white{
  position:absolute;left:0;top:0;width:100%;height:100%;
  object-fit:contain;object-position:left center;
  opacity:0;pointer-events:none;transition:opacity 1.2s ease;
}
.ae-lc.ae-lc-white-on > .ae-lc-white{opacity:1}
.ae-lc.ae-lc-white-on > .ae-lc-colour{opacity:0}
.ae-lc-host{position:relative;display:inline-block;line-height:0;vertical-align:top;max-width:100%}
.ae-lc-plate{
  position:absolute;z-index:0;pointer-events:none;
  left:-8px;right:-22px;top:-6px;bottom:-6px;border-radius:8px;
  background:#14232E;opacity:0;transition:opacity 1.2s ease;
}
.ae-lc-host.ae-lc-shade-on > .ae-lc-plate{opacity:.97}
.ae-lc .tm{transition:color 1.2s ease,opacity 1.2s ease}
.ae-lc.ae-lc-white-on .tm{color:#ffffff !important;opacity:1}
/* Topbar / footer: keep host sized to the constrained mark, never intrinsic PNG size */
.topbar .ae-lc-host,.topbar .ae-lc,.footer .ae-lc-host,.footer .ae-lc{max-height:100%}
.topbar .ae-lc > .ae-lc-colour,.topbar .ae-lc > .ae-lc-white{max-height:38px}
.footer .ae-lc > .ae-lc-colour,.footer .ae-lc > .ae-lc-white{max-height:18px}
footer .ae-lc > .ae-lc-colour, footer .ae-lc > .ae-lc-white,
header .ae-lc > .ae-lc-colour, header .ae-lc > .ae-lc-white{max-height:38px;width:auto}
@media (max-width:640px){
  .topbar .ae-lc > .ae-lc-colour,.topbar .ae-lc > .ae-lc-white{max-height:26px}
}
@media (prefers-reduced-motion:reduce){
  .ae-lc > .ae-lc-colour,.ae-lc > .ae-lc-white,
  .ae-lc-plate,.ae-lc .tm{transition:none !important}
}
/* === END AE-LOGO-CONTRAST === */
