/* Location and belt hubs (hub.php). Builds on styles/team.css; --bc-* tokens, so light and dark mode follow. */
.bc-hub { gap: 14px; }
.bc-hub a { color: inherit; }
.bc-hub-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 2px 0; padding: 0; font-size: 13px; color: var(--bc-muted); }
.bc-hub-crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.bc-hub-crumbs a { color: var(--bc-ink-2); text-decoration: none; }
.bc-hub-crumbs a:hover { text-decoration: underline; }
.bc-hub-crumbs [aria-current] { color: var(--bc-ink); font-weight: 600; }

.bc-hub .bc-tm-mono i { font-size: 40px; }
.bc-hub-flagbox { font-size: 56px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-hub-flagbox i { color: var(--bc-ink-2); }
.bc-hub .bc-tm-kicker a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bc-hub .bc-tm-sub a { color: var(--bc-accent, #2a78d6); font-weight: 600; text-decoration: none; }
.bc-hub-pg { font-size: .45em; font-weight: 700; color: var(--bc-muted); letter-spacing: 0; vertical-align: middle; }
.bc-hub-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bc-hub-stats .bc-tm-stat b { overflow-wrap: anywhere; }
@media (max-width: 860px) { .bc-hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bc-hub-claimed { color: #16a34a; font-weight: 700; }
.bc-hub-claimed i { margin-right: 4px; }
.bc-hub-none, .bc-hub-note { color: var(--bc-muted); font-size: 13.5px; margin: 0; }
.bc-hub-note { margin-top: 10px; font-size: 12.5px; }
.bc-hub-none a { color: var(--bc-accent, #2a78d6); font-weight: 600; }
a.bc-hub-citychip { text-decoration: none; color: var(--bc-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--bc-line); }
a.bc-hub-citychip:hover { background: var(--bc-surface-3, var(--bc-surface-2)); }
a.bc-tm-more { width: fit-content; text-decoration: none; }

.bc-hub-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-hub-links a { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 12px; text-decoration: none; }
.bc-hub-links a:hover { background: var(--bc-surface-2); }
.bc-hub-links b { color: var(--bc-ink); font-size: 14px; }
.bc-hub-links small { color: var(--bc-muted); font-size: 12.5px; }

/* Pages */
.bc-hub-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.bc-hub-pager > a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--bc-ink); background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-hub-pages { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.bc-hub-pages a, .bc-hub-pages b, .bc-hub-gap { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 13.5px; text-decoration: none; }
.bc-hub-pages a { color: var(--bc-ink-2); }
.bc-hub-pages a:hover { background: var(--bc-surface-2); }
.bc-hub-pages b { background: var(--bc-ink); color: var(--bc-surface); }
.bc-hub-gap { color: var(--bc-muted); min-width: 20px; }
@media (max-width: 600px) { .bc-hub-pages { order: 3; width: 100%; } }

/* Index: top countries as bars, then every country */
.bc-hub-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bc-hub-bars a { display: grid; grid-template-columns: minmax(110px, 220px) 1fr auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; text-decoration: none; }
.bc-hub-bars a:hover { background: var(--bc-surface-2); }
.bc-hub-bar-label { color: var(--bc-ink); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-hub-bar-track { height: 12px; border-radius: 6px; background: var(--bc-surface-2); overflow: hidden; }
.bc-hub-bar-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #03b2d1, #5b4bd1); }
.bc-hub-bars b { color: var(--bc-ink); font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
@media (max-width: 600px) { .bc-hub-bars a { grid-template-columns: 1fr auto; } .bc-hub-bar-track { grid-column: 1 / -1; grid-row: 2; } }
.bc-hub-flag { margin-right: 7px; }
.bc-hub-countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 10px; }
.bc-hub-countries a { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 12px; text-decoration: none; min-width: 0; }
.bc-hub-countries a:hover { background: var(--bc-surface-2); }
.bc-hub-cname b { color: var(--bc-ink); font-size: 14.5px; }
.bc-hub-countries small { color: var(--bc-muted); font-size: 12.5px; }
.bc-hub-foot { text-align: center; color: var(--bc-muted); font-size: 13.5px; margin: 0; }
.bc-hub-foot a { color: var(--bc-ink-2); font-weight: 600; }
.bc-hub-back { margin-top: 16px !important; }

/* Black belts */
.bc-hub-bbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.bc-hub-bbs li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--bc-surface-2); min-width: 0; }
.bc-hub-bb-who { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.bc-hub-bb-who > span { display: flex; flex-direction: column; min-width: 0; }
.bc-hub-bb-who b { color: var(--bc-ink); font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bc-hub-bb-who small { color: var(--bc-ink-2); font-size: 12.5px; }
.bc-hub-ver { color: #16a34a; font-size: 12px; }
.bc-hub-bb-facts { display: flex; flex-direction: column; gap: 3px; padding-left: 60px; font-size: 12.5px; color: var(--bc-muted); }
.bc-hub-bb-facts i { width: 14px; margin-right: 6px; opacity: .7; }
.bc-hub-bb-facts a { color: var(--bc-ink-2); font-weight: 600; text-decoration: none; }
.bc-hub-bb-facts a:hover { text-decoration: underline; }

/* ---------- Visual layer: banner, featured academies, highest ranked, country cards ---------- */
.bc-hub-section h2 { font-size: 19px; margin: 6px 2px 12px; color: var(--bc-ink); letter-spacing: -0.01em; }

/* Banner: photo mosaic with the place and its numbers over it */
.bc-hub-banner { position: relative; border-radius: var(--bc-r-lg, 22px); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(135deg, #03b2d1, #5b4bd1 55%, #d4744f); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); isolation: isolate; }
.bc-hub-mosaic { position: absolute; inset: 0; display: grid; gap: 3px; grid-auto-rows: minmax(0, 1fr); z-index: -2; background: #111; }
.bc-hub-mosaic img { width: 100%; height: 100%; max-height: none; object-fit: cover; display: block; min-width: 0; min-height: 0; }
.is-n2 .bc-hub-mosaic { grid-template-columns: 3fr 2fr; }
.is-n3 .bc-hub-mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.is-n3 .bc-hub-mosaic img:first-child { grid-row: span 2; }
.is-n4 .bc-hub-mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.is-n4 .bc-hub-mosaic img:first-child { grid-row: span 2; }
.is-n4 .bc-hub-mosaic img:nth-child(4) { grid-column: span 2; }
.is-n5 .bc-hub-mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.is-n5 .bc-hub-mosaic img:first-child { grid-row: span 2; }
.bc-hub-banner.has-photos::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 20, .05) 0%, rgba(8, 10, 20, .35) 40%, rgba(8, 10, 20, .86) 100%); }
.bc-hub-bigflag { position: absolute; right: -10px; top: -30px; font-size: 260px; line-height: 1; opacity: .22; transform: rotate(-8deg); z-index: -1; pointer-events: none; }
.bc-hub-banner.is-plain::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 100%, rgba(0, 0, 0, .35), transparent 60%); }
.bc-hub-banner-body { padding: 28px; width: 100%; min-width: 0; }
.bc-hub-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.bc-hub-kicker a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.bc-hub-banner h1 { margin: 0; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -0.025em; color: #fff; max-width: 900px; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.bc-hub-banner h1 small { font-size: .42em; font-weight: 700; opacity: .8; letter-spacing: 0; vertical-align: middle; }
.bc-hub-banner-sub { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, .9); max-width: 720px; }
.bc-hub-banner-sub a { color: #fff; font-weight: 700; }
.bc-hub-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.bc-hub-chips li { display: flex; flex-direction: column; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); min-width: 92px; }
.bc-hub-chips b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.bc-hub-chips span { font-size: 12px; font-weight: 600; opacity: .85; }
@media (max-width: 600px) {
  .bc-hub-banner { min-height: 340px; border-radius: 18px; }
  .bc-hub-banner-body { padding: 20px 18px; }
  .is-n4 .bc-hub-mosaic, .is-n5 .bc-hub-mosaic, .is-n3 .bc-hub-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 3fr 2fr; }
  .is-n3 .bc-hub-mosaic img:first-child, .is-n4 .bc-hub-mosaic img:first-child, .is-n5 .bc-hub-mosaic img:first-child { grid-row: auto; grid-column: span 2; }
  .is-n4 .bc-hub-mosaic img:nth-child(4) { grid-column: auto; }
  .is-n4 .bc-hub-mosaic img:nth-child(n+4), .is-n5 .bc-hub-mosaic img:nth-child(n+4) { display: none; }
  .bc-hub-chips { gap: 6px; }
  .bc-hub-chips li { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 8px 12px; }
  .bc-hub-chips b { font-size: 19px; }
  .bc-hub-bigflag { font-size: 190px; }
}

/* Featured academies */
.bc-hub-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bc-hub-feat a { display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: var(--bc-surface); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); text-decoration: none !important; transition: transform .18s ease, box-shadow .18s ease; }
.bc-hub-feat a:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(16, 16, 30, .55), 0 0 0 1px var(--bc-line); }
.bc-hub-feat-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bc-surface-2); }
.bc-hub-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-hub-feat-badge { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(22, 163, 74, .92); }
.bc-hub-feat-body { display: flex; align-items: flex-start; gap: 12px; padding: 0 14px 14px; }
.bc-hub-feat-logo { flex: none; width: 52px; height: 52px; margin-top: -24px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--bc-surface); box-shadow: 0 0 0 3px var(--bc-surface), 0 6px 16px -8px rgba(0, 0, 0, .5); position: relative; }
.bc-hub-feat-logo img { width: 100%; height: 100%; object-fit: cover; }
.bc-hub-feat-logo b { font-size: 16px; color: var(--bc-ink-2); }
.bc-hub-feat-text { display: flex; flex-direction: column; min-width: 0; padding-top: 10px; }
.bc-hub-feat-text b { color: var(--bc-ink); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-hub-feat-text small { color: var(--bc-muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 600px) { .bc-hub-feat { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .bc-hub-feat li { scroll-snap-align: start; } }

/* Highest ranked: portrait cards */
.bc-hub-portraits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bc-hub-portraits a { display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: var(--bc-surface); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); text-decoration: none !important; transition: transform .18s ease; }
.bc-hub-portraits a:hover { transform: translateY(-3px); }
.bc-hub-portrait-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--bc-surface-2); overflow: hidden; }
.bc-hub-portrait-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.bc-hub-beltbar { display: block; height: 10px; background: var(--belt); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .25); }
.bc-hub-portrait-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; min-width: 0; }
.bc-hub-portrait-body b { color: var(--bc-ink); font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.bc-hub-portrait-belt { color: var(--bc-ink-2); font-size: 13px; font-weight: 700; }
.bc-hub-portrait-body small { color: var(--bc-muted); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-hub-portrait-body small i { width: 14px; margin-right: 5px; opacity: .7; }
@media (max-width: 600px) { .bc-hub-portraits { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; } .bc-hub-portraits li { scroll-snap-align: start; } }

/* Square-ish thumbnails instead of small circles */
.bc-hub-thumb { flex: none; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--bc-surface-2); box-shadow: 0 0 0 2px var(--bc-surface), 0 0 0 4px var(--belt, var(--bc-line)); }
.bc-hub .bc-hub-thumb.is-mono { display: grid; place-items: center; flex-direction: unset;font-size: 14px; font-weight: 800; color: #fff; background: var(--belt); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.bc-tm-promos .bc-hub-thumb { border-radius: 10px; }
.bc-tm-promos a { padding-left: 10px; }

/* Country cards on the index */
.bc-hub-ccards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bc-hub-ccards a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; text-decoration: none !important; background: #222; box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); isolation: isolate; }
.bc-hub-ccards img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.bc-hub-ccards a:hover img { transform: scale(1.05); }
.bc-hub-ccards a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 20, 0) 20%, rgba(8, 10, 20, .55) 55%, rgba(8, 10, 20, .9)); }
.bc-hub-ccard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; display: flex; flex-direction: column; color: #fff; }
.bc-hub-ccard-body b { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.bc-hub-ccard-body small { font-size: 12px; opacity: .88; }
@media (max-width: 600px) { .bc-hub-ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
