/* Dana brand logos: what both designs share (sections/brand-logos.jinja).
   A cell (.dana-brand-logos__item, a link when the merchant gave one) holds
   the logo whole, centred, never cropped or enlarged past its own size, or
   the brand name when there is no picture. Each design's sheet sizes the
   cell. Numbers: planning/evidence/content.md «brand-logos». */
.dana-brand-logos .dana-head__title { color: var(--dana-bl-ink, var(--dana-heading)); overflow-wrap: anywhere; }
.dana-brand-logos .dana-head__text { color: var(--dana-bl-ink, var(--dana-muted)); overflow-wrap: anywhere; }
/* The template's .flat-title is 48px above the content from 1200px
   (styles.css 20327), 30px under it (core.css .dana-head). */
@media (min-width: 1200px) { .dana-brand-logos .dana-head { margin-block-end: 48px; } }

.dana-brand-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 0;
  color: var(--dana-bl-ink, var(--dana-heading));
  text-decoration: none;
  transition: opacity .3s ease-in-out;
}
.dana-brand-logos__item:hover, .dana-brand-logos__item:focus { color: var(--dana-bl-ink, var(--dana-heading)); text-decoration: none; }
.dana-brand-logos__item:focus { outline: none; }
.dana-brand-logos__logo {
  display: block;
  inline-size: auto;
  block-size: auto;
  min-inline-size: 0;
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
  transition: opacity .3s ease-in-out;
}
/* No picture: the brand name as a word mark, two lines at most. */
.dana-brand-logos__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-inline-size: 100%;
  padding-inline: 12px;
  font-family: var(--dana-font-heading);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
  transition: opacity .3s ease-in-out;
}
