/* ACE Controls v1.9.8 — focused manufacturer gallery layout correction.
   The v1.9.7 premium cascade set .ace-brand-visual img { height:auto },
   overriding the bounded image slot and allowing square marks to protrude. */
:root { --ace-gallery-anchor-offset: 126px; }
html { scroll-padding-top: var(--ace-gallery-anchor-offset); }
.ace-brands-section { scroll-margin-top: var(--ace-gallery-anchor-offset); position: relative; }
.ace-brands-section .ace-brands-head { margin-bottom: clamp(26px, 3vw, 36px); }
.ace-brands-section .ace-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 22px);
  align-items: stretch;
}
.ace-brands-section .ace-brand-tile {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 242px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  background: #fff;
}
.ace-brands-section .ace-brand-visual {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 130px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  min-height: 0;
  max-height: 130px;
  padding: 8px 4px;
  margin: 0 0 16px;
  overflow: hidden;
}
/* Both dimensions must be constrained: height:auto in v1.9.7 was the collision. */
.ace-brands-section .ace-brand-visual img,
.ace-brands-section .ace-brand-tile[data-logo-status="local-user-supplied"] .ace-brand-visual img {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}
.ace-brands-section .ace-brand-meta {
  box-sizing: border-box;
  flex: 1 0 auto;
  min-width: 0;
  padding: 14px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible;
}
.ace-brands-section .ace-brand-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #17394b;
  overflow-wrap: anywhere;
}
.ace-brands-section .ace-brand-meta small {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: #526e7a;
  overflow-wrap: anywhere;
}
.ace-brands-section .ace-brand-tile:focus-visible { outline: 3px solid #087e99; outline-offset: 3px; }
@media (max-width: 960px) {
  .ace-brands-section .ace-brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --ace-gallery-anchor-offset: 100px; }
  .ace-brands-section .ace-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ace-brands-section .ace-brand-tile { padding: 15px; min-height: 220px; }
  .ace-brands-section .ace-brand-visual { flex-basis: 110px; height: 110px; max-height: 110px; margin-bottom: 12px; }
}
@media (max-width: 380px) {
  .ace-brands-section .ace-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ace-brands-section .ace-brand-tile { padding: 11px; min-height: 205px; }
  .ace-brands-section .ace-brand-visual { flex-basis: 88px; height: 88px; max-height: 88px; }
  .ace-brands-section .ace-brand-meta strong { font-size: 13px; }
  .ace-brands-section .ace-brand-meta small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ace-brands-section .ace-brand-tile { transition: none; }
}
