/* Team page (affiliation.php). Uses the --bc-* tokens, so it follows light and dark mode. */
.bc-team { max-width: 1120px; margin: 8px auto 48px; padding: 0 12px; display: flex; flex-direction: column; gap: 16px; }
.bc-tm-card { background: var(--bc-surface); border-radius: var(--bc-r-lg, 22px); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); padding: 20px; min-width: 0; }
.bc-tm-card h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 14px; color: var(--bc-ink); letter-spacing: -0.01em; }
.bc-tm-count { font-size: 12.5px; font-weight: 700; color: var(--bc-ink-2); background: var(--bc-surface-2); border-radius: 999px; padding: 2px 9px; }
.bc-tm-empty { text-align: center; padding: 40px 20px; }
.bc-tm-empty h1 { font-size: 24px; margin: 0 0 6px; color: var(--bc-ink); }
.bc-tm-empty p { color: var(--bc-muted); margin: 0; }

/* Hero */
.bc-tm-hero { display: flex; align-items: center; gap: 22px; padding: 28px; position: relative; overflow: hidden; }
.bc-tm-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #03b2d1, #5b4bd1 50%, #d4744f); }
.bc-tm-mono { flex: none; width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
  background: linear-gradient(135deg, #03b2d1, #5b4bd1 55%, #d4744f); box-shadow: 0 14px 30px -14px rgba(91, 75, 209, .7); }
.bc-tm-hero-body { min-width: 0; }
.bc-tm-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); }
.bc-tm-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.025em; color: var(--bc-ink); overflow-wrap: anywhere; }
.bc-tm-sub { margin: 8px 0 0; color: var(--bc-ink-2); font-size: 15px; }

/* Numbers */
.bc-tm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bc-tm-stat { background: var(--bc-surface); border-radius: 18px; box-shadow: var(--bc-shadow-1, none), 0 0 0 1px var(--bc-line); padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-tm-stat b { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.bc-tm-stat > span { font-size: 13px; color: var(--bc-muted); font-weight: 600; }
.bc-tm-medals { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: var(--bc-ink-2); font-weight: 700; }
.bc-tm-medals i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 4px; }
.bc-tm-medals i:first-child { margin-left: 0; }
.bc-tm-medals .is-gold { background: #e8b923; } .bc-tm-medals .is-silver { background: #a9b2c0; } .bc-tm-medals .is-bronze { background: #cd8a55; }
@media (max-width: 860px) { .bc-tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bc-tm-stat--medals { grid-column: span 2; } }

/* Belt distribution */
.bc-tm-bar { display: flex; gap: 2px; height: 22px; border-radius: 8px; overflow: hidden; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line); }
.bc-tm-bar span { min-width: 3px; }
.bc-tm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; font-size: 13.5px; color: var(--bc-ink-2); }
.bc-tm-legend li { display: flex; align-items: center; gap: 6px; }
.bc-tm-legend i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bc-tm-legend b { color: var(--bc-ink); }
.bc-tm-legend span { color: var(--bc-muted); font-size: 12px; }

/* Black belts */
.bc-tm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bc-tm-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 10px; border-radius: 16px; background: var(--bc-surface-2); text-decoration: none !important; min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.bc-tm-person:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(16, 16, 30, .4); }
.bc-tm-person > :first-child { margin-bottom: 6px; }
.bc-tm-person b { color: var(--bc-ink); font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.bc-tm-person span { color: var(--bc-ink-2); font-size: 12.5px; }
.bc-tm-person small { color: var(--bc-muted); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }

.bc-tm-more { display: block; margin: 14px auto 0; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 14px; color: var(--bc-ink); background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); cursor: pointer; }
.bc-tm-more:hover { background: var(--bc-surface-3, var(--bc-surface-2)); }

/* Academies + side column */
.bc-tm-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.bc-tm-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 860px) { .bc-tm-two { grid-template-columns: 1fr; } }
.bc-tm-acads, .bc-tm-promos, .bc-tm-members { list-style: none; margin: 0; padding: 0; }
.bc-tm-acads { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.bc-tm-acads a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none !important; min-width: 0; }
.bc-tm-acads a:hover { background: var(--bc-surface-2); }
.bc-tm-alogo { flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-tm-alogo img { width: 100%; height: 100%; object-fit: cover; }
.bc-tm-alogo b { font-size: 15px; color: var(--bc-ink-2); }
.bc-tm-atext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-tm-atext b { color: var(--bc-ink); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.bc-tm-atext small { color: var(--bc-muted); font-size: 12.5px; }
.bc-tm-an { flex: none; font-size: 12px; font-weight: 700; color: var(--bc-ink-2); background: var(--bc-surface-2); border-radius: 999px; padding: 2px 8px; }

.bc-tm-promos { display: flex; flex-direction: column; gap: 4px; }
.bc-tm-promos a, .bc-tm-members a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none !important; min-width: 0; }
.bc-tm-promos a:hover, .bc-tm-members a:hover { background: var(--bc-surface-2); }
.bc-tm-promos a > span, .bc-tm-members a > span { min-width: 0; display: flex; flex-direction: column; }
.bc-tm-promos b, .bc-tm-members b { color: var(--bc-ink); font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-tm-promos small, .bc-tm-members small { color: var(--bc-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-tm-promos small i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

.bc-tm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-tm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bc-surface-2); font-size: 13px; color: var(--bc-ink-2); }
.bc-tm-chip b { color: var(--bc-ink); }
.bc-tm-chip.is-muted { color: var(--bc-muted); }

/* Members */
.bc-tm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.bc-tm-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 999px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); color: var(--bc-muted); }
.bc-tm-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--bc-ink); outline: none; }
.bc-tm-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-tm-filter button { border: 0; border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 13px; font-weight: 700; color: var(--bc-ink-2); background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); cursor: pointer; }
.bc-tm-filter button.is-on { background: var(--bc-ink); color: var(--bc-surface); box-shadow: none; }
.bc-tm-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 8px; }
.bc-tm-none { text-align: center; color: var(--bc-muted); margin: 16px 0 4px; }
@media (max-width: 600px) { .bc-tm-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .bc-tm-person:nth-child(n+7) { display: none; } .bc-tm-hero { padding: 22px 18px; gap: 16px; } .bc-tm-mono { width: 72px; height: 72px; font-size: 28px; border-radius: 20px; } .bc-tm-card { padding: 16px; } }

/* Team logo (functions_teamlogo.php) */
.bc-tm-mono.has-logo { background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--bc-line), 0 14px 30px -16px rgba(16, 16, 30, .45); }
.bc-tm-mono.has-logo img { width: 100%; height: 100%; object-fit: cover; }
.bc-tm-heroacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bc-tm-act { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 700; color: var(--bc-ink-2); background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); cursor: pointer; }
.bc-tm-act:hover { color: var(--bc-ink); }
.bc-tm-note { margin: -6px 0 12px; color: var(--bc-muted); font-size: 13.5px; }
.bc-tm-sugg { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--bc-line); }
.bc-tm-sugg:first-of-type { border-top: 0; }
.bc-tm-sugg img { flex: none; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--bc-line); }
.bc-tm-sugg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bc-tm-sugg-body b { color: var(--bc-ink); font-size: 14px; }
.bc-tm-progress { display: flex; align-items: center; gap: 4px; }
.bc-tm-progress i { width: 22px; height: 6px; border-radius: 3px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-tm-progress i.is-on { background: #16a34a; box-shadow: none; }
.bc-tm-progress small { margin-left: 6px; color: var(--bc-muted); font-size: 12.5px; }
.bc-tm-sugg-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.bc-tm-vote { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--bc-ink); background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-tm-vote.is-on { background: #16a34a; color: #fff; box-shadow: none; }
.bc-tm-vote.is-no.is-on { background: #dc2626; }
.bc-tm-waiting { font-size: 13px; color: var(--bc-muted); font-weight: 600; }
.bc-tm-wall > .card, .bc-tm-wall > div { margin: 0 !important; }
@media (max-width: 600px) { .bc-tm-sugg { flex-wrap: wrap; } .bc-tm-sugg-acts { width: 100%; } }
