/* Brandbook landing and item detail pages. Two-column grid of asset cards
 * grouped by category. Card = square-ish thumb + title + format chips.
 * Detail page keeps the same rounded-hero, download-tiles look. */

.brandbook-hero {
    padding-bottom: 1rem;
}

.brandbook-category { margin-top: 2.5rem; }
.brandbook-category:first-child { margin-top: 1.5rem; }

.brandbook-category__title {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    color: rgb(var(--color-dark-blue));
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgb(var(--color-light-blue) / 0.55);
}

.brandbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.brandbook-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgb(var(--color-light-blue) / 0.45);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.brandbook-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(10, 35, 75, 0.10);
    border-color: rgb(var(--color-dark-blue) / 0.30);
}

.brandbook-card__thumb {
    aspect-ratio: 3 / 2;
    background: rgb(var(--color-light-blue) / 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brandbook-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brandbook-card__thumb-empty {
    font-family: 'Literata', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    color: rgb(var(--color-dark-blue) / 0.35);
}

.brandbook-card__body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brandbook-card__title {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    color: rgb(var(--color-dark-blue));
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.brandbook-card__formats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.brandbook-card__format {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgb(var(--color-dark-blue));
    background: rgb(var(--color-light-blue) / 0.40);
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Detail page */
.brandbook-item__crumbs { margin-bottom: 0.5rem; }
.brandbook-item__crumb-link {
    color: rgb(var(--color-blue));
    text-decoration: none;
    font-weight: 600;
}
.brandbook-item__crumb-link:hover { text-decoration: underline; }

.brandbook-item__hero {
    background: rgb(var(--color-light-blue) / 0.20);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 520px;
}
.brandbook-item__hero img {
    max-width: 100%;
    height: auto;
    display: block;
}

.brandbook-item__section-title {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    color: rgb(var(--color-dark-blue));
    font-size: 1.4rem;
    margin: 1.75rem 0 1rem;
}

.brandbook-item__file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.brandbook-item__file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1.5px solid rgb(var(--color-dark-blue) / 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: rgb(var(--color-dark));
    transition: border-color 0.15s ease, background 0.15s ease;
}
.brandbook-item__file:hover {
    border-color: rgb(var(--color-blue));
    background: rgb(var(--color-light-blue) / 0.14);
}
.brandbook-item__file-label {
    display: inline-block;
    min-width: 44px;
    padding: 3px 8px;
    background: rgb(var(--color-dark-blue));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 6px;
    text-align: center;
}
.brandbook-item__file-name { flex: 1; font-weight: 600; }
.brandbook-item__file-size { font-size: 0.85rem; color: rgb(var(--color-dark) / 0.6); }

.brandbook-item__preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.brandbook-item__preview-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(10, 35, 75, 0.08);
}
