/* Club results (BILMS-493): the results list, a game's ranking and boards, a board's deal and traveller */

.bi-results-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bi-results-table th, .bi-results-table td { padding: 8px 10px; border-top: 1px solid #e3eef9; vertical-align: top; text-align: left; }
.bi-results-table thead th { border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7782; font-weight: 600; white-space: nowrap; }
.bi-results-table .is-num { text-align: right; white-space: nowrap; }
.bi-results-table .is-muted { color: #8a96a3; }
.bi-results-table tr.is-you td { background: #fff7d6; }
.bi-results-table a { font-weight: 600; }
.bi-results-names { display: block; color: #4a5260; font-size: .9rem; }

.bi-results-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: rgba(255, 255, 255, .88); margin: 6px 0 0; }
.bi-results-meta .bi { color: rgba(255, 255, 255, .6); }
.bi-results-source { margin: 14px 0 0; color: #6b7782; font-size: .88rem; }
.bi-results-source a { color: inherit; text-decoration: underline; }

.bi-results-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.bi-results-tabs a, .bi-results-tabs span { display: inline-block; padding: 6px 14px; border: 1px solid #d6e2ee; border-radius: 999px; font-size: .9rem; text-decoration: none; }
.bi-results-tabs span { background: #12305a; border-color: #12305a; color: #fff; }

.bi-results-group + .bi-results-group { margin-top: 22px; }
.bi-results-group h3 { font-size: 1rem; margin: 0 0 6px; }

/* a game's boards as tiles with the four hands */
.bi-results-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bi-board-tile { display: block; padding: 8px 10px 10px; border: 1px solid #d6e2ee; border-radius: 12px; background: #fff; color: inherit; text-decoration: none;
    font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.bi-board-tile:hover, .bi-board-tile:focus-visible { border-color: #12305a; box-shadow: 0 2px 10px rgba(18, 48, 90, .12); color: inherit; }
.bi-board-tile .bt-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bi-board-tile .bt-head strong { color: #12305a; }
.bi-board-tile .bt-head small { color: #6b7782; font-size: .74rem; }
.bi-board-tile .bt-score { margin-left: auto; padding: 0 7px; border-radius: 999px; background: #e9f5e6; color: #2e7d32; font-size: .76rem; font-weight: 600; }
.bi-board-tile .bt-score.is-minus { background: #fdeceb; color: #c62828; }
.bi-board-tile .bt-deal { display: grid; max-width: 300px; margin: 0 auto; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto; gap: 2px 6px; font-size: .8rem; line-height: 1.25; }
.bi-board-tile .bt-hand { display: flex; flex-direction: column; }
.bi-board-tile .bt-n { grid-column: 2; grid-row: 1; } .bi-board-tile .bt-s { grid-column: 2; grid-row: 3; }
.bi-board-tile .bt-w { grid-column: 1; grid-row: 2; } .bi-board-tile .bt-e { grid-column: 3; grid-row: 2; padding-left: 4px; }
.bi-board-tile .bt-centre { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #d9e0e7; border-radius: 6px; background: #f4f7fa; color: #6b7782; font-weight: 600; }
.bi-board-tile .bt-suit { white-space: nowrap; }
.bi-board-tile .bt-suit > span { display: inline-block; width: 1em; }
.bi-board-tile .bd-red { color: #c62828; }
.bi-board-tile .bt-none { display: block; padding: 18px 0; color: #8a96a3; font-size: .85rem; text-align: center; }

.bi-results-board-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.bi-results-board-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.bi-results-board-talk { padding-left: 28px; border-left: 1px solid #e3eef9; }
.bi-results-board-talk h2 { font-size: 1.15rem; }
@media (max-width: 1100px) {
    .bi-results-board-top { grid-template-columns: auto minmax(0, 1fr); }
    .bi-results-board-talk { grid-column: 1 / -1; padding: 18px 0 0; border-left: 0; border-top: 1px solid #e3eef9; }
}

.bi-deal { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto; gap: 6px 18px; max-width: 460px;
    padding: 14px 16px; border: 1px solid #e2e7ec; border-radius: 12px; background: #fff; font-variant-numeric: tabular-nums; }
.bi-deal .bd-n { grid-column: 2; grid-row: 1; } .bi-deal .bd-w { grid-column: 1; grid-row: 2; justify-self: end; }
.bi-deal .bd-e { grid-column: 3; grid-row: 2; } .bi-deal .bd-s { grid-column: 2; grid-row: 3; }
.bi-deal .bd-centre { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; min-width: 74px; min-height: 64px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; border: 1px solid #d9e0e7; border-radius: 8px; background: #f4f7fa; text-align: center; line-height: 1.2; }
.bi-deal .bd-centre small { color: #6b7782; font-size: .75rem; }
.bi-deal .bd-seat { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #8a96a3; margin-bottom: 2px; }
.bi-deal .bd-suit { font-size: 1.02rem; white-space: nowrap; }
.bi-deal .bd-red { color: #c62828; }

.bi-dd { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bi-dd th, .bi-dd td { padding: 4px 8px; text-align: center; border: 1px solid #e3eef9; }
.bi-dd th { font-weight: 600; color: #4a5260; background: #f7fafc; }
.bi-dd .bd-red { color: #c62828; }
.bi-dd td.is-none { color: #c4ccd4; }

.bi-results-latest { list-style: none; margin: 0; padding: 0; }
.bi-results-latest li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid #e3eef9; }
.bi-results-latest li:first-child { border-top: 0; }
.bi-results-latest .bi-club-date { flex: 0 0 auto; }
.bi-results-latest a { font-weight: 600; }
.bi-results-latest small { color: #6b7782; }

@media (max-width: 767px) {
    .bi-results-board-top { grid-template-columns: minmax(0, 1fr); }
    .bi-deal { gap: 4px 8px; padding: 10px; max-width: 100%; }
    .bi-deal .bd-suit { font-size: .92rem; }
    .bi-deal .bd-centre { min-width: 52px; min-height: 52px; }
    .bi-results-board-nav { font-size: .92rem; }
    .bi-results-table th, .bi-results-table td { padding: 7px 6px; }
    .bi-results-hide-sm { display: none; }
}
.bi-results-table .bd-red { color: #c62828; }

/* "This is me" (BILMS-494) */
.bi-results-me { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin-bottom: 12px;
    border: 1px solid #f0d77a; border-radius: 12px; background: #fff9e0; }
.bi-results-me.is-known { border-color: #cfe3c8; background: #f2faef; }
.bi-results-me .bi { margin-right: 4px; }
.bi-results-me-actions { display: flex; gap: 8px; }
.bi-results-me form { margin: 0; }
.bi-link-button { border: 0; background: none; padding: 0; color: #0861a9; text-decoration: underline; cursor: pointer; }
.bi-results-pick { margin: 0 0 16px; }
.bi-results-pick summary { color: #0861a9; cursor: pointer; }
.bi-results-pick-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; max-width: 560px; }
.bi-results-pick-form .form-select { flex: 1 1 260px; }
.bi-results-you { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #12305a; color: #fff; font-size: .72rem; font-weight: 600; vertical-align: 1px; }
.bi-results-table .bi-results-minus { color: #c62828; }
.bi-results-table a.bi-results-pair-link { font-weight: inherit; color: #12305a; text-decoration: none; border-bottom: 1px dotted #9fb3c8; }
.bi-results-table a.bi-results-pair-link:hover { color: #0861a9; border-bottom-color: #0861a9; }
