/* Original bookmaker artwork remains separate, readable and linked. */

.bookmaker-collage {
    position: relative;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 16px 14px 11px;
    border: 1px solid #d9d9d9;
    border-top: 3px solid #111111;
    border-radius: 4px;
    background: linear-gradient(145deg, #ffffff, #f1f2f3);
    box-shadow: 0 3px 7px rgba(17, 17, 17, .05), 0 13px 28px rgba(17, 17, 17, .08);
}

.bookmaker-collage::before {
    content: "";
    position: absolute;
    top: -3px;
    right: 20px;
    width: 42px;
    height: 3px;
    background: #f4ce28;
}

.bookmaker-collage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bookmaker-collage-item {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bookmaker-collage-item:nth-child(4n + 2) {
    transform: translateY(-1px) rotate(.55deg);
}

.bookmaker-collage-item:nth-child(4n + 3) {
    transform: translateY(1px) rotate(-.55deg);
}

.bookmaker-collage-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 9px 7px;
    border: 1px solid #404040;
    border-radius: 3px;
    color: #ffffff;
    background: #1b1b1b;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .10);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.bookmaker-collage-tile.collage-light {
    border-color: #dddddd;
    color: #111111;
    background: #ffffff;
}

.bookmaker-collage-tile img {
    display: block;
    width: 100%;
    max-width: 160px;
    height: 36px;
    object-fit: contain;
    object-position: center;
}

.bookmaker-collage-wordmark {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.4px;
    white-space: nowrap;
}

.bookmaker-collage-tile:focus-visible,
.bookmaker-collage-caption a:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #f4ce28;
}

@media (hover: hover) {
    .bookmaker-collage-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 9px rgba(0, 0, 0, .17);
    }
}

.bookmaker-collage-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 12px;
    color: #5a5a5a;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.bookmaker-collage-caption a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    color: #111111;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 599px) {
    .bookmaker-collage {
        padding: 14px 12px 9px;
    }

    .bookmaker-collage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .bookmaker-collage-tile {
        height: 53px;
        padding: 8px 6px;
    }

    .bookmaker-collage-tile img {
        height: 34px;
    }

    .bookmaker-collage-wordmark {
        font-size: 18px;
    }
}

@media (max-width: 389px) {
    .bookmaker-collage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bookmaker-collage-item:nth-child(n) {
        transform: none;
    }

    .bookmaker-collage-tile img {
        max-width: 138px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bookmaker-collage-tile {
        transition: none;
    }
}
