/* Photo-first blocks for public pages (functions_photocards.php): photo mosaic hero, large portrait
   cards, academy cards with cover photo + logo, rounded-square member thumbnails.
   Team page, academy page, all academies. Light and dark through the --bc-* tokens. */

/* ---- Hero with photo mosaic ------------------------------------------- */
.bc-pc-hero { position: relative; border-radius: var(--bc-r-lg, 22px); overflow: hidden; background: var(--bc-surface); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); min-width: 0; }
.bc-pc-mosaic { position: relative; display: grid; gap: 3px; height: 280px; background: var(--bc-surface-2); }
.bc-pc-mosaic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 10, 20, 0) 45%, rgba(10, 10, 20, .45)); }
.bc-pc-mosaic span { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.bc-pc-mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bc-pc-mosaic.n2 { grid-template-columns: 1fr 1fr; }
.bc-pc-mosaic.n3, .bc-pc-mosaic.n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.bc-pc-mosaic.n3 { grid-template-columns: 2fr 1fr; }
.bc-pc-mosaic.n4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.bc-pc-mosaic.n3 span:first-child, .bc-pc-mosaic.n4 span:first-child, .bc-pc-mosaic.n5 span:first-child { grid-row: span 2; }
.bc-pc-mosaic.n4 span:nth-child(2) { grid-row: span 2; }
.bc-pc-mosaic.is-empty { height: 150px; background: linear-gradient(120deg, #03b2d1, #5b4bd1 55%, #d4744f); }
.bc-pc-mosaic.is-empty::after { background: radial-gradient(120% 140% at 85% 0%, rgba(255, 255, 255, .22), transparent 55%); }

.bc-pc-hero-body { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 20px; padding: 0 24px; }
.bc-pc-hero-logo { flex: none; position: relative; width: 128px; height: 128px; margin-top: -64px; border-radius: 30px; overflow: hidden; display: grid; place-items: center;
  border: 4px solid var(--bc-surface); background: linear-gradient(135deg, #03b2d1, #5b4bd1 55%, #d4744f); box-shadow: 0 16px 34px -18px rgba(16, 16, 30, .6); }
.bc-pc-hero-logo.has-logo { background: #fff; }
.bc-pc-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.bc-pc-hero-logo b { color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.bc-pc-hero-text { min-width: 0; padding-top: 16px; }
.bc-pc-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); }
.bc-pc-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-pc-sub { margin: 6px 0 0; color: var(--bc-ink-2); font-size: 15px; }
.bc-pc-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 16px 24px 20px; border-top: 1px solid var(--bc-line); }
.bc-pc-keys > div { display: flex; flex-direction: column-reverse; min-width: 0; }
.bc-pc-keys dd { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--bc-ink); font-variant-numeric: tabular-nums; }
.bc-pc-keys dt { font-size: 13px; font-weight: 600; color: var(--bc-muted); }
.bc-pc-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; font-size: 13.5px; color: var(--bc-ink-2); }
.bc-pc-facts > span { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.bc-pc-facts .fa-circle-check { color: var(--bc-green, #16a34a); }

/* ---- Belt bar ---------------------------------------------------------- */
.bc-pc-belt { display: flex; justify-content: flex-end; width: 100%; height: 10px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); overflow: hidden; }
.bc-pc-belt i { display: flex; align-items: stretch; justify-content: flex-end; gap: 3px; width: 22%; margin-right: 7%; padding: 0 4px; background: #141418; }
.bc-pc-belt.is-black i { background: #d23c3c; }
.bc-pc-belt b { width: 3px; background: #fff; }

/* ---- Portrait cards ---------------------------------------------------- */
.bc-pc-portraits { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px 16px; }
.bc-pc-portrait { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: inherit !important; text-decoration: none !important; }
.bc-pc-pimg { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #03b2d1, #5b4bd1 55%, #d4744f);
  box-shadow: 0 1px 2px rgba(16, 16, 30, .06), 0 14px 30px -18px rgba(16, 16, 30, .45); transition: transform .25s ease, box-shadow .25s ease; }
.bc-pc-pimg b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.bc-pc-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.bc-pc-portrait:hover .bc-pc-pimg { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16, 16, 30, .06), 0 22px 40px -20px rgba(16, 16, 30, .55); }
.bc-pc-portrait .bc-pc-belt { margin-top: 3px; }
.bc-pc-pname { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--bc-ink); overflow-wrap: anywhere; }
.bc-pc-psub { margin-top: -4px; font-size: 13px; color: var(--bc-ink-2); }
.bc-pc-pmeta { margin-top: -5px; font-size: 12.5px; line-height: 1.3; color: var(--bc-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Academy cards ----------------------------------------------------- */
.bc-pc-acads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bc-pc-acad { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line); color: inherit !important; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.bc-pc-acad[hidden] { display: none; }
.bc-pc-acad:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--bc-line), 0 16px 30px -20px rgba(16, 16, 30, .5); }
.bc-pc-acover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, hsl(calc(var(--t, 0) * 60 + 190) 70% 60% / .16), hsl(calc(var(--t, 0) * 60 + 230) 70% 55% / .30)), var(--bc-surface-2); }
.bc-pc-acover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-pc-acover img.is-logo { position: relative; inset: auto; width: 84px; height: 84px; border-radius: 20px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 22px -14px rgba(16, 16, 30, .55); }
.bc-pc-acover > b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--bc-ink-2); opacity: .7; }
.bc-pc-alogo { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin: -28px 0 0 14px; border-radius: 15px; overflow: hidden; background: #fff; border: 3px solid var(--bc-surface); box-shadow: 0 6px 16px -10px rgba(16, 16, 30, .6); }
.bc-pc-alogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bc-pc-alogo b { font-size: 16px; font-weight: 800; color: #5b4bd1; }
.bc-pc-abody { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px 14px; }
.bc-pc-acad.has-cover .bc-pc-abody { padding-top: 8px; }
.bc-pc-abody b { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--bc-ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-pc-abody small { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--bc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-pc-abody small i { flex: none; width: 12px; text-align: center; font-size: 11px; opacity: .8; }
.bc-pc-cfilter { margin: 0 0 14px; }
.bc-pc-cfilter small { font-weight: 600; opacity: .65; }

/* ---- Member thumbnails --------------------------------------------------- */
.bc-pc-face { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-pc-face b { font-size: 18px; font-weight: 800; color: var(--bc-muted); letter-spacing: -0.02em; }
.bc-pc-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bc-pc-face::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c, transparent); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .12); }
.bc-pc-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 10px; }
.bc-pc-thumbs li[hidden] { display: none; }
.bc-pc-thumbs a { display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: 16px; min-width: 0; color: inherit !important; text-decoration: none !important; }
.bc-pc-thumbs a:hover { background: var(--bc-surface-2); }
.bc-pc-thumbs a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bc-pc-thumbs b { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--bc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-pc-thumbs small { font-size: 12.5px; line-height: 1.35; color: var(--bc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-tm-promos .bc-pc-face { width: 44px; height: 44px; border-radius: 13px; }
.bc-tm-promos .bc-pc-face b { font-size: 15px; }

/* ---- Country groups (all academies) -------------------------------------- */
.bc-pc-countries { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.bc-pc-countries a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); font-size: 13px; font-weight: 600; color: var(--bc-ink-2) !important; text-decoration: none !important; }
.bc-pc-countries a:hover { color: var(--bc-ink) !important; }
.bc-pc-countries small { font-weight: 600; color: var(--bc-muted); }
.bc-pc-group { scroll-margin-top: 80px; }
.bc-pc-ghead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 14px; }
.bc-pc-ghead h2 { margin: 0 !important; }
.bc-pc-ghead a { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--bc-accent, #5b4bd1) !important; text-decoration: none !important; }
.bc-pc-ghead a:hover { text-decoration: underline !important; }

.bc-pc-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-pc-more { display: block; margin: 16px 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; }
a.bc-pc-more { width: fit-content; max-width: 100%; text-align: center; text-decoration: none !important; }
.bc-pc-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 0; }
.bc-pc-pager a, .bc-pc-pager span { min-width: 40px; padding: 8px 12px; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 700; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); color: var(--bc-ink-2) !important; text-decoration: none !important; }
.bc-pc-pager span[aria-current] { background: var(--bc-ink); color: var(--bc-surface) !important; box-shadow: none; }
.bc-pc-countries a[aria-current] { background: var(--bc-ink); color: var(--bc-surface) !important; }
.bc-pc-countries a[aria-current] small { color: inherit; opacity: .7; }
.bc-pc-group h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--bc-ink); }

@media (max-width: 600px) {
  .bc-pc-mosaic { height: 190px; }
  .bc-pc-mosaic.n4, .bc-pc-mosaic.n5 { grid-template-columns: 2fr 1fr; }
  .bc-pc-mosaic.n4 span:nth-child(2) { grid-row: auto; }
  .bc-pc-mosaic.n4 span:nth-child(n+4), .bc-pc-mosaic.n5 span:nth-child(n+4) { display: none; }
  .bc-pc-hero-body { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 18px; }
  .bc-pc-hero-logo { width: 96px; height: 96px; margin-top: -48px; border-radius: 24px; }
  .bc-pc-hero-logo b { font-size: 34px; }
  .bc-pc-hero-text { padding-top: 12px; }
  .bc-pc-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 18px 18px; margin-top: 16px; }
  .bc-pc-keys dd { font-size: 24px; }
  .bc-pc-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .bc-pc-acads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bc-pc-abody { padding: 10px 11px 12px; }
  .bc-pc-abody b { font-size: 14px; }
  .bc-pc-acover img.is-logo { width: 64px; height: 64px; border-radius: 16px; }
  .bc-pc-alogo { width: 44px; height: 44px; margin: -24px 0 0 10px; border-radius: 13px; }
  .bc-pc-thumbs { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .bc-pc-acads { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bc-pc-pimg, .bc-pc-acad { transition: none; } }
