/* WSN Site Builder: Stats pages (T-323 to T-326), the approved look (mockup 2026-12-03) in the site's style
   kit: colors, fonts and corners come from the --wsb-* settings, so Varsity, Stadium and every school's colors
   restyle it. Laid out by the block's own width (container queries), so it fits sections and phones. */
.wsb-st { container-type: inline-size; container-name: wsbst; font-family: var(--wsb-body, Inter, system-ui, sans-serif); color: var(--wsb-text, #15202e); min-width: 0;
	--st-soft: var(--wsb-bg, #eef1f5); /* tints only between bg and surf: the main color as text (c1x) is checked readable on both, so it stays readable on every tint */
	--st-zebra: color-mix(in srgb, var(--wsb-bg, #eef1f5) 55%, var(--wsb-surf, #fff));
	--st-line2: color-mix(in srgb, var(--wsb-line, #d5dbe4) 60%, var(--wsb-surf, #fff));
	--st-sorted: color-mix(in srgb, var(--wsb-c2, #F2B705) 18%, transparent);
	--st-fill: var(--wsb-c1w, var(--wsb-c1, #0B2545)); }
.wsb-st-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.wsb-st-app > *, .wsb-st [role=tabpanel] { min-width: 0; }
.wsb-st :focus-visible { outline: 3px solid var(--wsb-text, #15202e); outline-offset: 2px; }
.wsb-st-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wsb-st-empty { margin: 0; padding: 16px; color: var(--wsb-muted, #4c5869); }
.wsb-st-h { font-family: var(--wsb-head, Oswald, sans-serif); text-transform: var(--wsb-headcase, uppercase); color: var(--wsb-c1x, var(--wsb-c1)); font-size: 26px; line-height: 1.1; margin: 0; }

/* head: season line + pickers */
.wsb-st-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.wsb-st-kicker { margin: 0; font-family: var(--wsb-head, Oswald, sans-serif); text-transform: var(--wsb-headcase, uppercase); font-weight: 700; font-size: 20px; line-height: 1.15; color: var(--wsb-c1x, var(--wsb-c1)); }
.wsb-st-info { margin: 4px 0 0; color: var(--wsb-muted, #4c5869); }
.wsb-st-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.wsb-st-pick label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; color: var(--wsb-muted, #4c5869); }
.wsb-st-pick select { min-width: 150px; min-height: 40px; border: 1px solid var(--wsb-muted, #8794a6); border-radius: 6px; padding: 8px 10px; background: var(--wsb-surf, #fff); color: var(--wsb-text, #15202e); font: inherit; font-size: 15px; }

/* tabs */
.wsb-st-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--st-fill); overflow-x: auto; scrollbar-width: thin; }
.wsb-st-tabs [role=tab] { border: 0; background: var(--st-soft); color: var(--wsb-text, #15202e); padding: 10px 16px; min-height: 44px; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border-radius: 6px 6px 0 0; white-space: nowrap; }
.wsb-st-tabs [role=tab][aria-selected="true"] { background: var(--st-fill); color: #fff; }
.wsb-st-tabs.is-sub { border-bottom-width: 1px; border-color: var(--wsb-line, #d5dbe4); }
.wsb-st-tabs.is-sub [role=tab] { background: transparent; text-transform: none; letter-spacing: 0; font-size: 15px; border-bottom: 3px solid transparent; border-radius: 0; padding: 9px 12px; }
.wsb-st-tabs.is-sub [role=tab][aria-selected="true"] { background: transparent; color: var(--wsb-c1x, var(--wsb-c1)); border-bottom-color: var(--wsb-c1x, var(--wsb-c1)); }
.wsb-st-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
.wsb-st-subrow { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: end; justify-content: space-between; }
.wsb-st-subrow .wsb-st-tabs { flex: 1 1 320px; min-width: 0; }

/* chips */
.wsb-st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wsb-st-chips button { border: 1px solid var(--wsb-muted, #8794a6); background: var(--wsb-surf, #fff); color: var(--wsb-text, #15202e); border-radius: 999px; padding: 6px 14px; min-height: 36px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wsb-st-chips button[aria-pressed="true"] { background: var(--st-fill); border-color: var(--st-fill); color: #fff; }

/* cards + tables */
.wsb-st-card { background: var(--wsb-surf, #fff); border: 1px solid var(--wsb-line, #d5dbe4); border-radius: var(--wsb-rad, 8px); min-width: 0; overflow: hidden; }
.wsb-st-card-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--st-line2); }
.wsb-st-card-h h2, .wsb-st-card-h h3 { font-family: var(--wsb-head, Oswald, sans-serif); font-weight: 600; font-size: 18px; line-height: 1.2; text-transform: var(--wsb-headcase, uppercase); letter-spacing: .02em; margin: 0; color: var(--wsb-c1x, var(--wsb-c1)); }
.wsb-st-card-h span { font-size: 13px; color: var(--wsb-muted, #4c5869); }
.wsb-st-tw { overflow-x: auto; min-width: 0; }
.wsb-st table { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; font-size: 14px; margin: 0; }
.wsb-st th, .wsb-st td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--st-line2); text-align: right; white-space: nowrap; color: var(--wsb-text, #15202e); }
.wsb-st thead th { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--wsb-muted, #4c5869); background: var(--st-zebra); border-bottom: 1px solid var(--wsb-line, #d5dbe4); vertical-align: bottom; }
.wsb-st th:first-child, .wsb-st td:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: inherit; }
.wsb-st tbody th { font-weight: 600; }
.wsb-st tbody tr { background: var(--wsb-surf, #fff); }
.wsb-st tbody tr:nth-child(even) { background: var(--st-zebra); }
.wsb-st thead tr { background: var(--st-zebra); }
.wsb-st .is-left { text-align: left; }
.wsb-st th.is-sorted, .wsb-st td.is-sorted { background-image: linear-gradient(var(--st-sorted), var(--st-sorted)); }
.wsb-st tr.is-tot > * { font-weight: 700; background: var(--st-soft); border-top: 2px solid var(--wsb-line, #d5dbe4); }
.wsb-st tr.is-opp > * { color: var(--wsb-muted, #4c5869); }
.wsb-st abbr { text-decoration: none; }
.wsb-st-sortb { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 4px 0; min-height: 24px; display: inline-flex; gap: 3px; align-items: center; text-transform: inherit; letter-spacing: inherit; }
.wsb-st-sortb::after { content: ""; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; opacity: .35; margin-top: 4px; }
.wsb-st th[aria-sort] .wsb-st-sortb::after { opacity: 1; }
.wsb-st th[aria-sort="ascending"] .wsb-st-sortb::after { border-top-color: transparent; border-bottom-color: currentColor; margin-top: -4px; }
.wsb-st-num { display: inline-block; min-width: 22px; color: var(--wsb-muted, #4c5869); font-size: 12px; font-weight: 600; }
.wsb-st-pl { color: var(--wsb-c1x, var(--wsb-c1)); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.wsb-st-short { display: none; }
.wsb-st-mark { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; border-radius: 3px; padding: 0 4px; margin-left: 3px; vertical-align: 1px; line-height: 15px; }
.wsb-st-mark.is-hs { background: #ece6f8; color: #4a2f8a; }
.wsb-st-mark.is-pbp { background: #e3eefb; color: #174a86; }
.wsb-st-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; padding: 10px 16px; font-size: 13px; color: var(--wsb-muted, #4c5869); }
.wsb-st-gloss summary { cursor: pointer; color: var(--wsb-c1x, var(--wsb-c1)); font-weight: 600; display: inline-block; padding: 4px 0; min-height: 24px; }
.wsb-st-gloss dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 8px 0 0; }
.wsb-st-gloss dt { font-weight: 700; color: var(--wsb-text, #15202e); }
.wsb-st-gloss dd { margin: 0; }
.wsb-st-pill { display: inline-block; min-width: 22px; text-align: center; border-radius: 4px; font-weight: 700; font-size: 12px; padding: 1px 6px; color: #111; background: #c9ced6; }
.wsb-st-pill.is-w { background: #22c55e; }
.wsb-st-pill.is-l { background: #f87171; }
.wsb-st-lead { margin: 0; color: var(--wsb-muted, #4c5869); }
.wsb-st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.wsb-st-stack { gap: 16px; }
.wsb-st table.is-ts thead th:not(:first-child) { min-width: 96px; }

/* leaders */
.wsb-st-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.wsb-st-ld { background: var(--wsb-surf, #fff); border: 1px solid var(--wsb-line, #d5dbe4); border-radius: var(--wsb-rad, 8px); overflow: hidden; display: flex; flex-direction: column; }
.wsb-st-ld h2 { margin: 0; background: var(--st-fill); color: #fff; font-family: var(--wsb-head, Oswald, sans-serif); font-weight: 600; font-size: 15px; line-height: 1.2; text-transform: var(--wsb-headcase, uppercase); letter-spacing: .03em; padding: 9px 12px; }
.wsb-st-ld-top { display: flex; gap: 12px; align-items: center; padding: 12px; }
.wsb-st-av { width: 46px; height: 46px; border-radius: 50%; background: var(--st-soft); border: 2px solid var(--wsb-c2, #F2B705); color: var(--wsb-c1x, var(--wsb-c1)); display: grid; place-items: center; font: 700 15px var(--wsb-head, Oswald, sans-serif); flex: none; }
.wsb-st-big { font: 700 28px/1 var(--wsb-head, Oswald, sans-serif); color: var(--wsb-c1x, var(--wsb-c1)); }
.wsb-st-ld-next { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 4px; font-size: 14px; }
.wsb-st-ld-next li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--st-line2); padding-top: 4px; }
.wsb-st-ld-next .wsb-st-pl { display: inline-block; min-height: 24px; line-height: 24px; } /* WCAG 2.2 target size: list links at least 24px tall */
.wsb-st-min { font-size: 12px; color: var(--wsb-muted, #4c5869); padding: 0 12px 10px; margin: auto 0 0; }

/* player tab */
.wsb-st-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); background: var(--wsb-surf, #fff); border: 1px solid var(--wsb-line, #d5dbe4); border-radius: var(--wsb-rad, 8px); overflow: hidden; }
.wsb-st-strip div { padding: 12px 14px; box-shadow: .5px .5px 0 .5px var(--wsb-line, #d5dbe4); }
.wsb-st-strip b { display: block; font: 700 26px/1.05 var(--wsb-head, Oswald, sans-serif); color: var(--wsb-c1x, var(--wsb-c1)); }
.wsb-st-strip span { font-size: 12px; color: var(--wsb-muted, #4c5869); font-weight: 600; letter-spacing: .03em; }
.wsb-st-gate { border: 1px dashed var(--wsb-line, #8fb0d8); background: var(--st-zebra); border-radius: var(--wsb-rad, 8px); padding: 14px 16px; color: var(--wsb-text, #1f3f66); }
.wsb-st-gate b { display: block; margin-bottom: 2px; }

@container wsbst (max-width: 700px) {
	.wsb-st-pick { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
	.wsb-st-pick select { min-width: 0; width: 100%; }
	.wsb-st-tabs [role=tab] { padding: 9px 12px; font-size: 12px; }
	.wsb-st-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.wsb-st-chips button { white-space: nowrap; }
	.wsb-st-grid2 { grid-template-columns: minmax(0, 1fr); }
	.wsb-st th, .wsb-st td { padding: 7px 8px; }
	.wsb-st table.has-num th:first-child, .wsb-st table.has-num td:first-child { max-width: 140px; overflow: hidden; text-overflow: ellipsis; box-shadow: 2px 0 0 var(--st-line2); }
	.wsb-st-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* screen readers keep the full name */
	.wsb-st-short { display: inline; }
	.wsb-st-strip b { font-size: 22px; }
	.wsb-st-kicker { font-size: 18px; }
}
