/*
 * Event page (/competition/:slug) touch-ups for the prebuilt SPA, whose source
 * is not in this repo. Linked from public/index.html — re-add the <link> there
 * after rebuilding the SPA.
 */

/* Partner logos: equal tiles with room around the logo (they used to touch the
   edges or be cropped), a centred last row, three per row on phones. The same
   block is used on the event page and on the partners' list page. */
div.bg-\[\#FFFFFF0D\] > div.grid.lg\:grid-cols-7 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
div.bg-\[\#FFFFFF0D\] > div.grid.lg\:grid-cols-7 > div {
    flex: 0 0 140px;
    max-width: none;
    height: 92px;
    padding: 12px 16px;
    border-radius: 12px;
    box-sizing: border-box;
    transition: transform .15s ease, box-shadow .15s ease;
}
div.bg-\[\#FFFFFF0D\] > div.grid.lg\:grid-cols-7 > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
div.bg-\[\#FFFFFF0D\] > div.grid.lg\:grid-cols-7 > div img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
}
@media (max-width: 639px) {
    div.bg-\[\#FFFFFF0D\] > div.grid.lg\:grid-cols-7 { gap: 10px; }
    div.bg-\[\#FFFFFF0D\] > div.grid.lg\:grid-cols-7 > div {
        flex-basis: calc((100% - 20px) / 3);
        height: 72px;
        padding: 6px 8px;
        border-radius: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    div.bg-\[\#FFFFFF0D\] > div.grid.lg\:grid-cols-7 > div { transition: none; }
}
