/* Original logos retain their colours and aspect ratios on the declared surface. */
.place-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;
  width: auto;
  max-width: min(160px, 100%);
  height: 40px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  letter-spacing: normal;
  text-shadow: none;
  text-transform: none;
}
.place-brand--detail { max-width: min(320px, 100%); height: 80px; padding: 8px 12px; }
.place-brand--light { background: #fff; color: #17212b; border-color: #e5e7eb; }
.place-brand--dark { background: #101820; color: #f3f5f7; border-color: #2c3742; }
.place-brand > img { display: block; width: auto; height: 100%; min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; filter: none; transform: none; }
.place-brand-fallback { display: none; font: 600 14px/1.2 var(--font-body, sans-serif); font-variation-settings: normal; text-align: center; overflow-wrap: anywhere; }
.place-brand--detail .place-brand-fallback { font-size: 20px; }
.place-brand--failed > img, .place-brand > img[hidden] { display: none; }
.place-brand--failed { min-height: 40px; height: auto; overflow: visible; }
.place-brand--detail.place-brand--failed { min-height: 80px; }
.place-brand--failed .place-brand-fallback { display: block; }
.place-brand-name { overflow-wrap: anywhere; }
.place-brand-caption { display: block; margin-top: 4px; font: 500 12px/1.3 var(--font-body, sans-serif); font-variation-settings: normal; letter-spacing: normal; text-transform: none; text-shadow: none; color: var(--text, #f3f5f7); overflow-wrap: anywhere; }
/* A failed image already reveals the full name in its reserved area. */
.place-brand--failed + .place-brand-caption { display: none; }
@media (prefers-reduced-motion: reduce) {
  .place-brand, .place-brand > img { animation: none; transition: none; }
}
