/* /brands: Shop by Brand. Tiles are a dark plate with the maker's logo
   (drawn white for dark plates), lit from the top edge in the maker's
   color (--accent, set per tile). */
.brandpage__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 18px; }
.brandpage__head .page-title { margin-bottom: 0; }
.brandpage__lede { margin: 0; color: var(--muted); font: 500 18px/1.35 var(--body); }

.brandgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.brandtile {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #1b1b1b radial-gradient(ellipse 80% 70% at 50% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
  border: 1px solid #262626; border-top: 3px solid var(--accent); color: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s, background-color .2s;
}
.brandtile:hover, .brandtile:focus-visible { transform: translateY(-4px); text-decoration: none; border-color: #3a3a3a; border-top-color: var(--accent); background-color: #202020; box-shadow: 0 14px 28px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.brandtile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.brandtile__plate { flex: 1; display: grid; place-items: center; min-height: 150px; padding: 30px 26px; }
.brandtile__plate img { width: min(80%, 240px); height: 66px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); transition: transform .25s; }
.brandtile:hover .brandtile__plate img { transform: scale(1.06); }
/* Logos drawn for a light background get one. */
.brandtile--light .brandtile__plate { margin: 16px 16px 0; padding: 18px; background: var(--chip-bg); border-radius: 4px; min-height: 118px; }
.brandtile--light .brandtile__plate img { filter: none; }
/* No logo uploaded yet: the name, set like the site's headings. */
.brandtile__word { font: 400 44px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-align: center; text-shadow: 0 3px 0 rgba(0,0,0,.6); transition: transform .25s; }
.brandtile:hover .brandtile__word { transform: scale(1.06); }

.brandtile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; background: rgba(0,0,0,.45); border-top: 1px solid #262626; font: 500 16px/1.2 var(--body); color: var(--muted); }
.brandtile__count strong { color: #fff; font-weight: 700; }
.brandtile__go { font: 400 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.brandtile__go i { display: inline-block; font-style: normal; transition: transform .2s; }
.brandtile:hover .brandtile__go i { transform: translateX(4px); }

.brandpage__all { margin: 26px 0 4px; text-align: center; }

@media (max-width: 991px) {
  .brandgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 767px) {
  .brandpage__lede { font-size: 16px; }
  .brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brandtile__plate { min-height: 104px; padding: 20px 14px; }
  .brandtile__plate img { width: 88%; height: 46px; }
  .brandtile--light .brandtile__plate { margin: 10px 10px 0; padding: 12px; min-height: 84px; }
  .brandtile__word { font-size: 32px; }
  .brandtile__foot { padding: 9px 11px; font-size: 14px; }
  .brandtile__go { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .brandtile, .brandtile__plate img, .brandtile__word, .brandtile__go i { transition: none; }
  .brandtile:hover, .brandtile:hover .brandtile__plate img, .brandtile:hover .brandtile__word { transform: none; }
}
