/* AUTO-GENERATED: brands.css — do not edit; run build_static_bundles */

/* === css/components/brand_tiles.css === */
.brands__title,
.brand-page__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
}

.brands__empty {
  margin: 0;
  color: var(--color-neutral-700);
}

/* --- shared logo rendering --- */

.brand-logo__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Fixed height + preserveAspectRatio keeps every wordmark optically the same
   size, instead of short names ballooning to the full tile width. */
.brand-logo__wordmark {
  width: 100%;
  height: clamp(30px, 8vw, 52px);
  /* The viewBox width is an estimate from the name length; let a wide-glyph
     name spill into the tile padding rather than get clipped. */
  overflow: visible;
}

.brand-logo__wordmark text {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--color-text);
}

/* --- brand grid --- */

.brand-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}

.brand-tiles__item {
  min-width: 0;
}

.brand-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border: 0;
  color: var(--color-text);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease;
}

.brand-tile:hover {
  color: var(--color-text);
  opacity: 0.92;
}

.brand-tile:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.brand-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
}

.brand-tile__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
  border: 0;
  outline: none;
  transform: scale(1.08);
  transform-origin: center bottom;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.brand-tile__media .brand-logo__img,
.brand-tile__media .brand-logo__wordmark {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 78%;
  max-height: 70%;
  width: auto;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  transform: none;
}

.brand-tile__name {
  padding: 10px 4px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* --- single brand page --- */

.brand-page__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--color-divider);
}

.brand-page__logo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
}

.brand-page__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
  border: 0;
  transform: scale(1.08);
  transform-origin: center bottom;
}

.brand-page__logo .brand-logo__img,
.brand-page__logo .brand-logo__wordmark {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 78%;
  max-height: 70%;
  width: auto;
  height: auto;
  padding: 0;
  box-sizing: border-box;
}

.brand-page__logo .brand-logo__wordmark {
  height: 64px;
  max-height: 64px;
}

.brand-page__text {
  align-self: center;
}

.brand-page__title {
  margin-bottom: 12px;
}

.brand-page__tagline {
  margin: 0 0 14px;
  max-width: 46em;
  color: var(--color-neutral-700);
  font-size: 15px;
  line-height: 1.65;
}

.brand-page__all {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

@media (min-width: 640px) {
  .brand-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

@media (min-width: 768px) {
  .brand-page__head {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .brand-tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 14px;
  }
}

@media (hover: none) {
  .brand-tile:hover {
    opacity: 1;
  }
}
