/* State of BJJ report (state_of_bjj.php, functions_state_report.php), on top of styles/forclubs.css. Phone first. */
.sor { max-width: 980px; }
.sor-hero { padding: 40px 22px 30px; border-radius: 26px; }
.sor-hero h1 { font-size: clamp(30px, 6.4vw, 52px); line-height: 1.04; }
.sor-hero p { max-width: 64ch; font-size: 17px; }
.sor-hero-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.sor-hero-nums li { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); min-width: 0; }
.sor-hero-nums b { display: block; font-size: clamp(24px, 5vw, 32px); font-weight: 850; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.sor-hero-nums span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--fc-muted); }

.sor-sec { scroll-margin-top: 16px; }
.sor .fc-h { margin: 52px 0 14px; }
.sor-h3 { margin: 34px 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--bc-ink, #0c0d1d); }
.sor-finding { margin: 0 0 14px; font-size: 18px; line-height: 1.55; font-weight: 600; color: var(--bc-ink, #0c0d1d); max-width: 68ch; text-wrap: pretty; }
.sor-method { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--bc-muted, #6b6b76); max-width: 78ch; }
.sor-method a, .sor-more a { color: var(--bc-accent, #5b4bd1); }
.sor-more { margin: 14px 0 0; font-weight: 700; }

/* Key findings: numbered cards */
.sor-keys { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: sork; }
.sor-keys li { counter-increment: sork; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 12px; align-items: start; padding: 16px 14px 16px 16px; border-radius: 18px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); scroll-margin-top: 16px; }
.sor-keys li::before { content: counter(sork); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: 15px; color: #fff; background: linear-gradient(135deg, #03c3e3, #5b4bd1); }
.sor-keys li:target { box-shadow: 0 0 0 2px var(--bc-accent, #5b4bd1); }
.sor-keys p { margin: 4px 0 0; font-size: 16.5px; line-height: 1.55; font-weight: 600; color: var(--bc-ink, #0c0d1d); }
.sor-anchor { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--bc-muted, #6b6b76) !important; text-decoration: none !important; }
.sor-anchor:hover, .sor-anchor:focus-visible { color: var(--bc-accent, #5b4bd1) !important; background: color-mix(in srgb, var(--bc-accent, #5b4bd1) 10%, transparent); }

/* Cite box */
.sor-cite { margin: 22px 0 0; padding: 20px; border-radius: 20px; background: color-mix(in srgb, var(--bc-accent, #5b4bd1) 6%, var(--bc-surface, #fff)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bc-accent, #5b4bd1) 28%, var(--bc-line, #e7e7ee)); scroll-margin-top: 16px; }
.sor-cite h2 { margin: 0 0 10px; font-size: 20px; font-weight: 850; letter-spacing: -0.02em; color: var(--bc-ink, #0c0d1d); }
.sor-cite-text { margin: 0; padding: 12px 14px; border-radius: 12px; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bc-ink, #0c0d1d); background: var(--bc-surface, #fff); box-shadow: inset 0 0 0 1px var(--bc-line, #e7e7ee); overflow-wrap: anywhere; }
.sor-cite-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.sor-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--bc-ink, #0c0d1d) !important; text-decoration: none !important; background: var(--bc-surface, #fff); box-shadow: inset 0 0 0 1px var(--bc-line, #e2e2ea); }
.sor-copy:hover { box-shadow: inset 0 0 0 1px var(--bc-accent, #5b4bd1); }
.sor-cite-dl { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.sor-cite-dl dt { margin-top: 8px; font-weight: 750; color: var(--bc-ink, #0c0d1d); }
.sor-cite-dl dd { margin: 0; color: var(--bc-ink-2, #3a3d52); overflow-wrap: anywhere; }
.sor-cite-dl a { color: var(--bc-accent, #5b4bd1); }

/* Charts */
.sor-fig { margin: 16px 0 0; padding: 16px 14px 10px; border-radius: 20px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); scroll-margin-top: 16px; }
.sor-fig figcaption { margin: 0 2px 8px; font-size: 15px; font-weight: 750; color: var(--bc-ink, #0c0d1d); }
.sor-fig .bc-chart { margin: 0; }
.sor-meta { display: grid; gap: 6px; }
.sor-embed { margin: 2px 0 0; font-size: 13.5px; }
.sor-embed summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: var(--bc-accent, #5b4bd1); list-style: none; }
.sor-embed summary::-webkit-details-marker { display: none; }
.sor-embed textarea { display: block; width: 100%; margin: 8px 0; padding: 10px 12px; border: 0; border-radius: 12px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bc-ink, #0c0d1d); background: var(--bc-surface, #fff); box-shadow: inset 0 0 0 1px var(--bc-line, #e7e7ee); resize: vertical; }

/* Tables */
.sor-tablewrap { margin: 16px 0 0; overflow-x: auto; border-radius: 18px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
.sor-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sor-table caption { caption-side: top; padding: 14px 14px 4px; text-align: left; font-size: 15px; font-weight: 750; color: var(--bc-ink, #0c0d1d); }
.sor-table th, .sor-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--bc-line, #e7e7ee); vertical-align: top; }
.sor-table tbody tr:last-child th, .sor-table tbody tr:last-child td { border-bottom: 0; }
.sor-table thead th { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--bc-muted, #6b6b76); white-space: nowrap; }
.sor-table tbody th { font-weight: 650; color: var(--bc-ink, #0c0d1d); }
.sor-table td { color: var(--bc-ink-2, #3a3d52); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sor-table td:first-of-type { font-weight: 750; color: var(--bc-ink, #0c0d1d); }
.sor-table--rank td:first-child { width: 1%; color: var(--bc-muted, #6b6b76); font-weight: 600; }
.sor-table--rank td:nth-child(3) { font-weight: 750; color: var(--bc-ink, #0c0d1d); }
.sor-table small { font-size: 12px; color: var(--bc-muted, #6b6b76); font-weight: 500; }
.sor-table a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.sor-table tr.is-total th, .sor-table tr.is-total td { background: color-mix(in srgb, var(--bc-ink, #0c0d1d) 4%, var(--bc-surface, #fff)); }
.sor-na { color: var(--bc-muted, #6b6b76); }
.sor-two { display: grid; gap: 0; }

.sor-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.sor-pills li { padding: 14px 16px; border-radius: 16px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
.sor-pills b { display: block; font-size: 26px; font-weight: 850; letter-spacing: -0.03em; color: var(--bc-ink, #0c0d1d); }
.sor-pills span { display: block; font-size: 13.5px; color: var(--bc-ink-2, #3a3d52); }
.sor-pills small { display: block; margin-top: 2px; font-size: 12px; color: var(--bc-muted, #6b6b76); }

.sor-method-box { padding: 18px 20px; border-radius: 18px; background: var(--bc-surface, #fff); box-shadow: 0 0 0 1px var(--bc-line, #e7e7ee); }
.sor-method-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sor-method-box li { font-size: 15px; line-height: 1.6; color: var(--bc-ink-2, #3a3d52); }
.sor-method-box b { color: var(--bc-ink, #0c0d1d); }
.sor-foot { margin: 48px 0 40px; }

@media (min-width: 720px) {
	.sor-hero { padding: 56px; border-radius: 30px; }
	.sor-hero-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sor-keys li { padding: 18px 18px 18px 20px; grid-template-columns: 38px minmax(0, 1fr) 28px; gap: 16px; }
	.sor-keys li::before { width: 38px; height: 38px; }
	.sor-keys p { font-size: 17.5px; }
	.sor-cite { padding: 24px 26px; }
	.sor-cite-dl { grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
	.sor-cite-dl dt { margin-top: 0; }
	.sor-fig { padding: 20px 20px 12px; }
	.sor-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
	.sor-table th, .sor-table td { padding: 12px 16px; }
}
/* Phones: the average column goes (the median and the sample size stay) */
@media (max-width: 559px) {
	.sor-table .is-wide { display: none; }
	.sor-table tbody th { min-width: 7.5em; }
}
