/* SFH2026 brands grid — a table of brand names.
 *
 * The earlier version drew a "logo wall": row rules across the full width, column
 * rules stopping 14px short of them, and no outer verticals, so the lattice was
 * deliberately open at the edges. The design asks for a closed table instead --
 * every cell boxed, outer border all round, verticals running the full height.
 *
 * Drawn with borders rather than a `gap: 1px` backdrop: a gap fills the whole
 * grid area including the outside, and hiding that again means either a negative
 * margin or an inset shadow. Top and left on the CONTAINER, right and bottom on
 * each CELL, is the one arrangement that closes the box with no doubled line and
 * no :nth-child arithmetic -- so it holds for any column count the section is
 * set to, and for the last row whatever length it is.
 */
.sfh-brands { padding: 64px 20px; background: #fff; }
.sfh-brands-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 6), 1fr);
    gap: 0;
    border-top: 1px solid #DADADA;
    border-left: 1px solid #DADADA;
}

.sfh-brand-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Tall cells: the design gives each brand a lot of air, and the name is the
       only thing in the box. */
    /* min-height: 150px; */
    padding: 26px 14px;
    background: #fff;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    /* color: #121212; */
    text-decoration: none;
    transition: color .15s, background-color .15s;
}
/* Only the cells that lead somewhere react — a plain name is not a control. */
a.sfh-brand-cell:hover { color: #fff; background: #121212; }

/* Tablet (601-1024px): one size and weight across the whole range. The size
   used to jump 17px -> 18px at the 760px column switch, inside what is the same
   device class. */
@media (max-width: 1024px) {
    .sfh-brand-cell { min-height: 0; padding: 18px 14px; font-size: 14px; font-weight: 600; }
}
@media (max-width: 760px) {
    .sfh-brands-grid { grid-template-columns: repeat(var(--cols-m, 2), 1fr); }
    .sfh-brand-cell { min-height: 0; padding: 18px 10px; }
}
/* phone keeps the larger name it always had */
@media (max-width: 600px) {
    .sfh-brand-cell { font-size: 17px; }
}
