/* Home page "Brands we stock" (Views/Home/_HomeBrands.cshtml), 11 Nov 2026. Logo cards on white so every maker's logo
   shows as the maker drew it; phone first (2 across), up to 6 across on a wide screen. */
.home-brands { background: var(--pg-surface-2, #f4f6f9); }
.hb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
/* phones: the 12 biggest brands (6 rows) - 24 cards made the home page very long; "All brands" shows the rest */
@media (max-width: 575.98px) { .hb-grid li:nth-child(n+13) { display: none; } }
@media (min-width: 576px) { .hb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .hb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .hb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.hb-card {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .35rem;
    height: 100%; padding: .9rem .75rem .75rem; text-align: center; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid rgba(20, 40, 58, .12); border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hb-card:hover, .hb-card:focus-visible {
    transform: translateY(-2px); border-color: var(--pg-sun, #ffc107); box-shadow: 0 8px 22px rgba(20, 40, 58, .12); color: inherit;
}
.hb-card:focus-visible { outline: 3px solid var(--pg-sun, #ffc107); outline-offset: 2px; }

/* The logo box has a fixed height so the page does not jump while logos load; logos keep their own shape. */
.hb-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; margin-bottom: .35rem; box-sizing: border-box; }
.hb-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
/* a white logo (file <slug>.ondark.*) gets a dark tile so it shows; the logo itself is unchanged */
.hb-logo-dark { background: #14283a; border-radius: 10px; padding: 10px 14px; }
.hb-logo-dark img { max-height: 48px; }
.hb-name { font-weight: 600; font-size: .9rem; line-height: 1.2; color: var(--pg-ink, #14283a); }
.hb-count { font-size: .78rem; color: var(--pg-muted, #5b6877); }

@media (prefers-reduced-motion: reduce) { .hb-card { transition: none; } .hb-card:hover, .hb-card:focus-visible { transform: none; } }

/* 11 Nov 2026: the same section on the store landing page (_HomeBrands with ViewData InStore) - no band background there */
.home-brands.home-brands-instore { background: transparent; }
