/* Brand asset page styles. Loaded only for the brand-assets template. */

.brand-assets-page {
    padding-bottom: 1px;
}

.brand-section-heading {
    max-width: 760px;
    margin-bottom: clamp(28px, 5vw, 52px);
}

.brand-asset-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-grid);
}

.brand-asset-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--surface-strong);
}

.brand-asset-item.is-wide {
    grid-column: 1 / -1;
}

.brand-asset-preview {
    min-height: 250px;
    display: grid;
    place-items: center;
    padding: 36px;
    background: #ffffff;
}

.brand-asset-item:not(.is-wide) .brand-asset-preview img {
    width: min(100%, 150px);
    height: 150px;
    object-fit: contain;
}

.brand-asset-item.is-wide .brand-asset-preview img {
    width: min(100%, 420px);
    height: auto;
}

.brand-asset-copy {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-top: 1px solid var(--border);
}

.brand-asset-copy h3,
.brand-product-item span,
.brand-usage-list h3 {
    margin: 0;
    color: var(--text);
}

.brand-asset-copy p,
.brand-usage-list p,
.brand-contact p {
    margin: 8px 0 0;
    color: var(--muted);
}

.brand-asset-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-asset-copy .button {
    flex: 0 0 auto;
}

.brand-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-grid);
}

.brand-product-item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface-strong);
}

.brand-product-item > a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-2);
}

.brand-product-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-product-item figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.brand-product-item figcaption a {
    color: var(--accent-strong);
    font-weight: 700;
    white-space: nowrap;
}

.brand-usage-list {
    border-top: 1px solid var(--border);
}

.brand-usage-list article {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.brand-usage-list article > span {
    color: var(--accent-strong);
    font-family: var(--font-display);
    font-weight: 700;
}

.brand-usage-list p {
    max-width: 72ch;
}

.brand-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
}

.brand-contact p {
    margin: 0;
}

@media (max-width: 900px) {
    .brand-product-grid {
        grid-template-columns: 1fr;
    }

    .brand-product-item > a {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 720px) {
    .brand-asset-list {
        grid-template-columns: 1fr;
    }

    .brand-asset-item.is-wide {
        grid-column: auto;
    }

    .brand-asset-copy,
    .brand-contact {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-asset-preview {
        min-height: 210px;
        padding: 28px;
    }

    .brand-product-item figcaption {
        align-items: flex-start;
        flex-direction: column;
    }
}
