/* The black belt guides (functions_belt_guides.php), on top of styles/forclubs.css. */
.bg-disclaimer { margin: 28px 0 0; padding: 14px 18px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; color: var(--bc-muted, #6b6b76); background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
.bg-hero-note { display: block; margin-top: 14px; font-size: 14px; color: var(--fc-muted); }
/* Live numbers: tiles that wrap two per row on a phone */
.bg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 0; }
.bg-stats div { padding: 16px 18px; border-radius: 18px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
.bg-stats b { display: block; font-size: 28px; font-weight: 850; letter-spacing: -0.03em; color: var(--bc-ink, #0c0d1d); font-variant-numeric: tabular-nums; }
.bg-stats span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--bc-muted, #6b6b76); }
/* The tables read as text: no column is bold by default */
.bg-table td { font-weight: 500; color: var(--bc-ink-2, #3a3d52); width: auto; }
.bg-table td.is-num { font-weight: 800; color: var(--bc-ink, #0c0d1d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bg-table thead th { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-muted, #6b6b76); background: color-mix(in srgb, var(--bc-ink, #0c0d1d) 3%, var(--bc-surface, #fff)); }
.bg-belt { display: inline-block; width: 34px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.bg-belt--black { background: linear-gradient(90deg, #111 0 64%, #c62828 64% 92%, #111 92%); }
.bg-belt--redblack { background: repeating-linear-gradient(90deg, #c62828 0 8px, #111 8px 16px); }
.bg-belt--redwhite { background: repeating-linear-gradient(90deg, #c62828 0 8px, #f5f5f5 8px 16px); }
.bg-belt--red { background: #c62828; }
/* Years actually taken per degree on the site next to the IBJJF minimum */
.bg-bars { display: grid; gap: 12px; margin: 18px 0 0; padding: 20px; border-radius: 18px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
.bg-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 12px; align-items: center; font-size: 14px; }
.bg-bar > b { color: var(--bc-ink, #0c0d1d); }
.bg-bar-track { position: relative; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--bc-ink, #0c0d1d) 5%, var(--bc-surface, #fff)); }
.bg-bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, #5b4bd1, #03c3e3); }
.bg-bar-min { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bc-ink, #0c0d1d); }
.bg-bar-val { grid-column: 2; font-size: 13px; color: var(--bc-muted, #6b6b76); }
.bg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 13px; color: var(--bc-muted, #6b6b76); }
.bg-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: linear-gradient(90deg, #5b4bd1, #03c3e3); }
.bg-legend i.is-min { width: 2px; border-radius: 0; background: var(--bc-ink, #0c0d1d); }
/* Search a name, in the hero */
.bg-search { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.bg-search input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 0; font-size: 16px; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.bg-search input::placeholder { color: rgba(255, 255, 255, .6); }
.bg-search button { flex: none; padding: 0 20px; border: 0; border-radius: 14px; background: #fff; color: #0c0d1d; font-weight: 800; font-size: 16px; cursor: pointer; }
.bg-ol { margin: 0; padding-left: 20px; }
.bg-ol li { margin: 6px 0; }
@media (max-width: 860px) {
	.bg-table th, .bg-table td { padding: 11px 12px; font-size: 14.5px; }
	.bg-bar { grid-template-columns: 74px minmax(0, 1fr); }
}
.bg-search .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
	/* The fee table on a phone: one card per fee, name and amount on top, when it applies underneath */
	.fc-costs.bg-table:not(.fc-compare) { display: block; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
	.fc-costs.bg-table:not(.fc-compare) thead { display: none; }
	.fc-costs.bg-table:not(.fc-compare) tbody { display: grid; gap: 10px; }
	.fc-costs.bg-table:not(.fc-compare) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 16px; border-radius: 16px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
	.fc-costs.bg-table:not(.fc-compare) th, .fc-costs.bg-table:not(.fc-compare) td { display: block; width: auto; padding: 0; border: 0; }
	.fc-costs.bg-table:not(.fc-compare) th { grid-column: 1; grid-row: 1; font-weight: 750; color: var(--bc-ink, #0c0d1d); }
	.fc-costs.bg-table:not(.fc-compare) td:last-child { grid-column: 2; grid-row: 1; max-width: 9em; text-align: right; font-weight: 800; color: var(--bc-ink, #0c0d1d); }
	.fc-costs.bg-table:not(.fc-compare) td:not(:last-child) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; color: var(--bc-muted, #6b6b76); }
}
@media (max-width: 860px) {
	/* Side by side tables on a phone: one card per row, each value with its column name, nothing scrolls sideways */
	.fc-tablewrap:has(.bg-vs) { overflow: visible; }
	.fc-costs.bg-vs { display: block; min-width: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
	.fc-costs.bg-vs thead { display: none; }
	.fc-costs.bg-vs tbody { display: grid; gap: 10px; }
	.fc-costs.bg-vs tr { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
	.fc-costs.bg-vs th[scope="row"], .fc-costs.bg-vs td { position: static; display: block; width: auto; max-width: none; padding: 0; border: 0; box-shadow: none; background: none; font-size: 15px; white-space: normal; }
	.fc-costs.bg-vs th[scope="row"] { font-weight: 800; color: var(--bc-ink, #0c0d1d); }
	.fc-costs.bg-vs td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--bc-muted, #6b6b76); }
}
}
.bg-belt--phone { display: none; }
@media (max-width: 860px) {
	/* The degree table on a phone: no sideways scroll, the belt colour moves next to the degree */
	.fc-tablewrap:has(.bg-deg) { overflow: visible; }
	.fc-costs.bg-deg { min-width: 0; }
	.bg-deg th:nth-child(2), .bg-deg td:nth-child(2) { display: none; }
	.bg-deg .bg-belt--phone { display: inline-block; width: 22px; margin-right: 6px; }
	.fc-costs.bg-deg th[scope="row"] { position: static; max-width: none; box-shadow: none; white-space: nowrap; }
	.bg-deg td[colspan] { font-size: 13.5px; }
}
