/* The Partnership desk: the desk, a request and its offers, and the cards
   that show on club, tournament and profile pages too. */

.bi-partner-list { display: grid; gap: 10px; }

.bi-partner-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid var(--bi-border, #b8d6f1);
    border-radius: 8px;
    background: #fff;
}
.bi-partner-card.is-own { background: #f5faff; }

.bi-partner-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.bi-partner-initials { display: flex; align-items: center; justify-content: center; background: #e6f0fb; color: var(--bi-navy, #082d62); font-weight: 700; }

.bi-partner-body p { margin: 0 0 4px; }
.bi-partner-name a { font-weight: 700; color: var(--bi-ink, #071c55); text-decoration: none; }
.bi-partner-level { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: .88rem; color: var(--bi-muted, #687b9c); }
.bi-level-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bi-partner-pro { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bi-plum, #4a174f); color: #fff; font-size: .75rem; font-weight: 700; vertical-align: 1px; }
.bi-partner-what { font-size: .97rem; }
.bi-partner-what .bi { color: var(--bi-blue, #0866c6); margin-right: 3px; }
.bi-partner-note { color: #33456b; font-style: italic; overflow-wrap: anywhere; }
.bi-partner-meta { font-size: .85rem; color: var(--bi-muted, #687b9c); }

.bi-partner-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.bi-partner-sent { font-weight: 700; color: #1d7a46; text-decoration: none; white-space: nowrap; }
.bi-partner-book { white-space: nowrap; }

.bi-partner-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #c62828; color: #fff; font-size: .78rem; font-weight: 700; text-align: center; }

.bi-partners-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }
.bi-partners-sub { font-size: 1.1rem; margin: 0 0 8px; }
.bi-partners-dates { display: flex; align-items: center; gap: 6px; }
.bi-partners-dates input { min-width: 0; }
.bi-partners-waiting { padding: 12px 16px; background: #fff8e6; border-color: #f0d48a; }
.bi-partners-empty { padding: 18px; }

/* the form for a request */
.bi-partner-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.bi-partner-kind { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--bi-border, #b8d6f1); border-radius: 8px; color: var(--bi-ink, #071c55); text-decoration: none; }
.bi-partner-kind .bi { font-size: 1.3rem; color: var(--bi-blue, #0866c6); }
.bi-partner-kind.is-current { border-color: var(--bi-blue, #0866c6); background: #eef6ff; box-shadow: inset 0 0 0 1px var(--bi-blue, #0866c6); }
.bi-partner-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 360px; overflow: auto; padding: 2px; }
.bi-partner-choice { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid #d6dde8; border-radius: 6px; cursor: pointer; }
.bi-partner-choice:has(input:checked) { border-color: var(--bi-blue, #0866c6); background: #f2f8ff; }

/* a request, on its own page */
.bi-partner-offer { padding: 12px 0; border-top: 1px solid #e3eaf3; }
.bi-partner-offer:first-child { border-top: 0; }
.bi-partner-contacts { padding: 12px 16px; border-radius: 8px; background: #edf8f1; border: 1px solid #b9e2c8; }
.bi-partner-report summary { cursor: pointer; color: var(--bi-muted, #687b9c); font-size: .88rem; }

@media (max-width: 575px) {
    .bi-partner-card { grid-template-columns: 40px 1fr; }
    .bi-partner-photo { width: 40px; height: 40px; }
    .bi-partner-act { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; }
}
.bi-secondary-button.is-small { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.bi-partners-here { margin-bottom: 16px; }
.bi-partners-here h2 { font-size: 1.25rem; }

/* the secondary button (pros.css), for pages that do not load it */
.bi-partner-card .bi-secondary-button, .bi-partners-page .bi-secondary-button {
    display: inline-flex; align-items: center; border: 1px solid var(--bi-border, #b8d6f1); border-radius: 8px;
    background: #fff; color: var(--bi-navy, #082d62); font-weight: 700; text-decoration: none;
}
.bi-partner-card .bi-secondary-button:hover { border-color: var(--bi-blue, #0866c6); }

/* "Need a partner?" next to games on Find a game */
.bi-games-go { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bi-games-partner { font-size: .85rem; white-space: nowrap; }
.bi-games-online-card .bi-games-partner { display: inline-block; margin-top: 6px; }
@media (max-width: 575px) { .bi-games-go { align-items: flex-start; } }

/* on the dark hero: light links */
.bi-partners-page .bi-account-eyebrow a, .bi-partners-hero-links .bi-club-hero-link { color: #fff; }
.bi-partners-hero-links .bi-club-hero-link:hover { color: #dbeeff; }
.bi-partner-who, .bi-partner-who:hover { text-decoration: none; }
/* the desk's dates, one under the other in the narrow filters */
.bi-partners-dates { flex-direction: column; align-items: stretch; }
.bi-partners-dates span { font-size: .85rem; color: var(--bi-muted, #687b9c); }
