/* Existing dashboard surfaces and tokens; league statistics stay optional. */
.p-league-stats,.p-league-overview{min-width:0;overflow:hidden;border:1px solid var(--p-border);border-radius:16px;background:var(--p-surface);margin-block:24px}
:is(.p-league-stats,.p-league-overview) summary{list-style:none;display:flex;align-items:center;gap:14px;min-height:76px;padding:20px;cursor:pointer;color:var(--p-text);font-size:14px;line-height:1.5;transition:background 160ms ease}
:is(.p-league-stats,.p-league-overview) summary::-webkit-details-marker{display:none}
:is(.p-league-stats,.p-league-overview) summary::after{content:'';flex:none;width:8px;height:8px;border-right:1.7px solid var(--p-text-muted);border-bottom:1.7px solid var(--p-text-muted);transform:rotate(45deg);margin-left:auto;margin-right:4px;transition:transform 160ms ease}
:is(.p-league-stats,.p-league-overview) details[open]>summary::after{transform:rotate(225deg)}
:is(.p-league-stats,.p-league-overview) summary:hover{background:var(--p-surface-raised)}
:is(.p-league-stats,.p-league-overview) summary:focus-visible{outline:2px solid var(--p-focus);outline-offset:-3px;border-radius:12px}
.p-stats-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid var(--p-border);border-radius:11px;background:var(--p-surface-raised);color:var(--p-emphasis)}
.p-stats-summary-text{display:grid;gap:4px;min-width:0;text-align:left;font-weight:650;overflow-wrap:anywhere}
.p-league-stats .p-stats-summary-text h2{margin:0;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:0}
.p-stats-summary-text small{font-size:12px;line-height:1.5;font-weight:400;color:var(--p-text-muted)}
:is(.p-league-stats,.p-league-overview)>details[open]>summary{border-bottom:1px solid var(--p-border)}
.p-league-stats .p-league-stats-body,.p-league-overview .p-seo-context-body{padding:20px;color:var(--p-text-muted)}
.p-league-stats .p-stats-period{font-size:12px;margin:0 0 10px;font-variant-numeric:tabular-nums}
.p-league-stats-body>p{max-width:96ch;margin-block:0 16px;font-size:13px;line-height:1.8}
.p-stats-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.p-stats-tabs a{padding:7px 12px;border:1px solid var(--p-border);border-radius:9px;text-decoration:none;color:var(--p-text);background:var(--p-surface-raised);font-size:12px;line-height:1.5}
.p-stats-tabs a:hover,.p-stats-tabs a:focus-visible{border-color:var(--p-emphasis);color:var(--p-emphasis)}
.p-league-metric{border:1px solid var(--p-border);border-radius:12px;background:var(--p-surface);margin-top:10px;scroll-margin-top:90px;overflow:hidden}
.p-league-stats .p-league-metric>summary{min-height:68px;padding:14px 16px}
.p-stats-metric-label{font-size:14px;color:var(--p-text)}
.p-league-metric[open]>summary{border-bottom:1px solid var(--p-border);background:var(--p-surface-raised)}
.p-league-metric-body{padding:16px}
.p-league-stats .p-league-metric-body h3{margin:0 0 8px;font-size:14px;line-height:1.6}
.p-league-metric-body>p{margin:0 0 16px;font-size:12px;line-height:1.8}
.p-league-stats .p-public-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--p-border);border-radius:10px;overscroll-behavior:contain}
.p-league-stats table.p-public-stats{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.p-league-stats .p-public-stats caption{padding:12px 14px;text-align:left;font-size:12px;line-height:1.6;color:var(--p-text-muted)}
.p-league-stats .p-public-stats :is(th,td){padding:12px 14px;border-top:1px solid var(--p-border);text-align:right;font-size:13px;line-height:1.6;vertical-align:middle}
.p-league-stats .p-public-stats thead th{background:var(--p-surface-raised);color:var(--p-text-muted);font-size:11px;font-weight:600}
.p-league-stats .p-public-stats :is(th,td):first-child{width:52%;text-align:left;overflow-wrap:anywhere}
.p-league-stats .p-public-stats tbody th{font-weight:600;color:var(--p-text)}
.p-league-stats .p-public-stats td{color:var(--p-text)}
.p-league-stats .p-public-stats tbody tr:hover{background:var(--p-surface-raised)}
.p-league-stats .p-public-stats a{display:inline-flex;align-items:center;gap:10px;color:var(--p-text);text-decoration:none}
.p-league-stats .p-public-stats a:hover{color:var(--p-emphasis);text-decoration:underline;text-underline-offset:3px}
.p-league-stats .p-public-stats img{flex:none;width:22px;height:22px;object-fit:contain}
.p-stats-footer{display:flex;flex-wrap:wrap;gap:10px 20px;padding-top:16px;margin:16px 0 0;font-size:12px}
:is(.p-league-stats,.p-league-overview) .p-stats-footer a{color:var(--p-text-muted);text-decoration:none;line-height:1.7}
:is(.p-league-stats,.p-league-overview) .p-stats-footer a:hover{color:var(--p-emphasis);text-decoration:underline;text-underline-offset:3px}
.p-league-stats .p-stats-note{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--p-border);font-size:12px}
#estadisticas-por-equipo{scroll-margin-top:90px}
@media(max-width:680px){:is(.p-league-stats,.p-league-overview) summary{padding:16px;gap:10px;min-height:72px}.p-stats-icon{width:32px;height:32px;border-radius:9px}.p-league-stats .p-stats-summary-text h2{font-size:14px}.p-league-stats .p-league-stats-body,.p-league-overview .p-seo-context-body{padding:16px}.p-league-metric-body{padding:12px}.p-league-stats .p-public-stats :is(th,td){padding:10px 8px;font-size:12px}.p-league-stats .p-public-stats thead th{font-size:10px}.p-league-stats .p-public-stats :is(th,td):first-child{width:46%}.p-league-stats .p-public-stats a{gap:7px}.p-league-stats .p-public-stats img{width:18px;height:18px}.p-stats-tabs a{padding:7px 10px}.p-stats-footer{gap:10px 16px}}
@media(prefers-reduced-motion:reduce){:is(.p-league-stats,.p-league-overview) summary,:is(.p-league-stats,.p-league-overview) summary::after{transition:none}}
