/* Spec 446: the board game lists and their hub - the rows, the cover boxes, the next step and the cards. Every colour is a
   tabletop token, so the light and the dark theme both follow html[data-theme]. The cover itself shows whole by the
   shared rule of tabletop-pieces.css. */

.bl-rows {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bl-row {
    display: grid;
    grid-template-columns: 2rem 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid var(--tt-line);
    background: var(--tt-field);
    scroll-margin-top: 7rem;
}

.bl-place {
    font-family: var(--tt-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--tt-accent);
}

/* Rule 15: the initials lie beneath the cover, so a removed cover leaves them showing. */
.bl-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--tt-surface);
}

.bl-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bl-initials {
    color: var(--tt-muted);
    font-family: var(--tt-font-display);
    font-size: 1.4rem;
    font-weight: 700;
}

.bl-text {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.bl-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tt-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bl-name:hover,
.bl-name:focus-visible {
    color: var(--tt-accent);
}

.bl-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.9rem;
    margin: 0;
    padding: 0;
    color: var(--tt-muted);
    font-size: 0.9rem;
    list-style: none;
}

.bl-bgg {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

/* Rule 13: the two next steps, side by side from 768 px. */
.bl-next {
    display: grid;
    gap: 1rem;
}

.bl-next-item {
    display: grid;
    gap: 0.6rem;
    align-content: space-between;
    justify-items: start;
}

.bl-next-item p {
    margin: 0;
}

@media (min-width: 768px) {
    .bl-next {
        grid-template-columns: 1fr 1fr;
    }
}

/* Rule 17: one framed link per list. */
.bl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bl-card {
    display: grid;
    gap: 0.3rem;
    align-content: start;
    height: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--tt-line);
    background: var(--tt-field);
    color: var(--tt-ink);
    text-decoration: none;
}

.bl-card:hover,
.bl-card:focus-visible {
    border-color: var(--tt-accent);
}

.bl-card-name {
    font-weight: 700;
}

.bl-card-text {
    font-size: 0.9rem;
    color: var(--tt-muted);
}

@media (max-width: 420px) {
    .bl-row {
        grid-template-columns: 1.5rem 3.5rem minmax(0, 1fr);
        gap: 0.6rem;
    }

    .bl-cover {
        width: 3.5rem;
    }
}
