/* Brand hub and brand landing pages. The sections around these come from
   style-category.css and stylized-sections.css; only the brand-specific
   pieces - the tile grid, the hero's logo and the style chips - live here. */

.brand-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .brand-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
    .brand-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 20px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    background-color: var(--surface-page);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--elevate-1);
}

.brand-tile:hover {
    border-color: var(--border-brand);
}

.brand-tile-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand-tile-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-studio-mist);
    color: var(--text-brand);
    font-size: 22px;
    font-weight: 600;
}

.brand-tile-name {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.brand-tile-count {
    color: var(--text-secondary);
    font-size: 13px;
}

.brand-hub-list {
    padding-bottom: 32px;
}

.brand-hub-empty {
    color: var(--text-secondary);
}

/* Hero: the brand's own logo above the heading. */
.brand-hero-identity {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .brand-hero-identity { margin-bottom: 20px; }
}

.brand-hero-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Four tips fill the two columns, and the cards in a row end level like the style cards do. */
.category-howto .howto-tip-grid > *,
.category-howto .howto-tip-card {
    height: 100%;
}

/* Same rhythm as the sections above them. */
.brand-styles,
.brand-others {
    padding: 48px 24px;
}

@media (min-width: 768px) {
    .brand-styles,
    .brand-others { padding: 70px 48px; }
}

@media (min-width: 1024px) {
    .brand-styles,
    .brand-others { padding-left: 96px; padding-right: 96px; }
}

.brand-styles .category-section-heading,
.brand-others .category-section-heading {
    margin-bottom: 32px;
}

.brand-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-chip {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border-brand-subtle);
    border-radius: 999px;
    background-color: var(--surface-studio-mist);
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
}

.brand-chip:hover {
    border-color: var(--border-brand);
    color: var(--text-brand);
}
