/* Tournaments: the list, its filters, and a tournament's page. */

.bi-tourn-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(140px, 1fr));
    align-items: end;
    gap: 10px 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--bi-border, #dfe3e8);
    border-radius: 14px;
    background: #fff;
}

.bi-tourn-filters .form-label {
    margin-bottom: 2px;
    color: #5b6773;
    font-size: 0.8rem;
    font-weight: 600;
}

.bi-tourn-range,
.bi-tourn-more,
.bi-tourn-go {
    grid-column: 1 / -1;
}

.bi-tourn-more > summary {
    color: #0a58ca;
    font-size: 0.9rem;
    cursor: pointer;
}

.bi-tourn-more-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    align-items: end;
    gap: 10px 14px;
    margin-top: 8px;
}

.bi-tourn-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
}

.bi-tourn-go {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bi-tourn-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 10px;
}

/* the list */
.bi-tourn-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--bi-border, #dfe3e8);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.bi-tourn {
    display: flex;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f4;
}

.bi-tourn:last-child {
    border-bottom: 0;
}

.bi-tourn.is-cancelled {
    opacity: 0.6;
}

.bi-tourn-date {
    display: flex;
    flex: 0 0 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 10px;
    background: #eef4fb;
    color: #0a315f;
    line-height: 1.05;
}

.bi-tourn-month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bi-tourn-day {
    font-size: 1.3rem;
    font-weight: 700;
}

.bi-tourn-main {
    min-width: 0;
}

.bi-tourn-name {
    color: #0a315f;
    font-weight: 700;
    text-decoration: none;
}

.bi-tourn-name:hover {
    text-decoration: underline;
}

.bi-tourn-meta,
.bi-tourn-where {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: #5b6773;
    font-size: 0.88rem;
}

.bi-tourn-cat,
.bi-tourn-type {
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef1f4;
    color: #3d4a57;
    font-size: 0.75rem;
    font-weight: 600;
}

.bi-tourn-cat.is-regional { background: #fdecdf; color: #9a4410; }
.bi-tourn-cat.is-sectional { background: #e5f4ec; color: #1d6b43; }
.bi-tourn-cat.is-nabc { background: #efe7f6; color: #6c3a8f; }
.bi-tourn-type.is-cancelled { background: #fbeceb; color: #9b2c24; }

.bi-tourn-distance {
    color: #0a315f;
    font-weight: 600;
}

/* a tournament's page */
.bi-tourn-venues {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bi-tourn-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
}

.bi-tourn-facts dt {
    color: #5b6773;
    font-weight: 500;
}

.bi-tourn-facts dd {
    margin: 0;
}

@media (max-width: 767px) {
    .bi-tourn-filters {
        grid-template-columns: 1fr 1fr;
    }

    .bi-tourn-near {
        grid-column: 1 / -1;
    }
}

/* "Tournaments ·" on the dark hero */
.bi-account-hero .bi-account-eyebrow a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
