/* Match-only extension. No selectors outside this namespace. */
.arena-match-stats{display:grid;gap:var(--arena-match-section-gap,12px);margin:0;min-width:0;width:100%;color:#173d31;font-family:var(--arena-font,ArenaInter,Arial,Helvetica,sans-serif);container-type:inline-size;container-name:arena-match-statistics}
.arena-match-stats__card{min-width:0;background:#fff;border:1px solid #d7e5df;border-radius:10px;overflow:hidden;box-shadow:0 4px 16px #163d3105}
.arena-match-stats__card>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 22px;cursor:pointer;list-style:none}
.arena-match-stats__card>summary::-webkit-details-marker{display:none}
.arena-match-stats__card>summary::marker{content:""}
.arena-match-stats__card>summary:focus-visible,.arena-match-stats a:focus-visible{outline:2px solid #00895d;outline-offset:-3px}
.arena-match-stats__card>summary h2{display:flex;align-items:center;gap:12px;margin:0;font-size:16px;font-weight:600;line-height:1.5;color:#17372c}
.arena-match-stats__card>summary svg{width:19px;height:19px;flex:none;color:#009763}
.arena-match-stats__chevron{display:flex;flex:none}
.arena-match-stats__card[open] .arena-match-stats__chevron{transform:rotate(180deg)}
.arena-match-stats__body{padding:0 22px 22px;min-width:0}
.arena-match-stats__teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.arena-match-stats__team{min-width:0;container-type:inline-size;container-name:arena-stat-team}
.arena-match-stats__team h3{margin:6px 0 12px;padding-bottom:9px;border-bottom:2px solid #d5e8dc;font-size:15px;line-height:1.5;font-weight:600;color:#175940}
.arena-match-stats .arena-match-stats__empty{font-size:14px;line-height:1.6;color:#486456;margin:0;padding:16px;background:#f5f9f6;border-radius:6px}
.arena-match-stats table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0;font-family:inherit;font-size:14px;line-height:1.5;background:#fff;color:#173d31}
.arena-match-stats th,.arena-match-stats td{padding:11px 8px;border:0;border-bottom:1px solid #d3e3da;vertical-align:middle;overflow-wrap:break-word}
.arena-match-stats thead th{background:#e4f0e9;color:#345b49;font-size:13px;font-weight:600;text-align:center}
.arena-match-stats tbody th{font-weight:400;text-align:left;color:#254b3a}
.arena-match-stats tbody td{text-align:center}
.arena-match-stats tbody tr:nth-child(even){background:#f7faf8}
.arena-match-stats tbody tr:last-child>*{border-bottom:0}
.arena-match-stats__games th:nth-child(1){width:15%}.arena-match-stats__games th:nth-child(2){width:21%}.arena-match-stats__games th:nth-child(4){width:15%}
.arena-match-stats__games td:nth-child(1){font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;padding-inline:3px}
.arena-match-stats__games td:nth-child(2){font-size:13px;color:#486456}
.arena-match-stats__score{display:flex;align-items:center;justify-content:center;min-height:36px;box-sizing:border-box;padding:6px 3px;min-width:0;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;border-radius:4px;text-decoration:none!important;color:inherit;white-space:nowrap}
.arena-match-stats .is-win{background:#e6f4eb;color:#17633c}.arena-match-stats .is-loss{background:#fcebe8;color:#9b3d30}.arena-match-stats .is-draw{background:#f8f0db;color:#78602e}.arena-match-stats .is-neutral{background:#edf3ef;color:#3e5b4b}
.arena-match-stats__metrics thead th:first-child{width:43%;text-align:left}.arena-match-stats__metrics td{font-variant-numeric:tabular-nums;font-weight:500}
.arena-match-stats__metrics tbody td:last-child{background:#eaf3ed;color:#174f36;font-weight:600}
.arena-match-stats__sample{color:#486456;background:#f1f6f3}
.arena-match-stats__timing th:first-child{width:24%}.arena-match-stats__timing tbody th{font-variant-numeric:tabular-nums}
.arena-match-stats__bar{display:flex;align-items:center;gap:8px}.arena-match-stats__bar>span:last-child{min-width:20px;font-variant-numeric:tabular-nums;font-weight:600}
.arena-match-stats__track{display:block;flex:1;height:9px;background:#e0eae4;border-radius:3px;overflow:hidden}.arena-match-stats__track i{display:block;height:100%;background:#2c815c}.arena-match-stats__track .is-against{background:#6a8273}
/* Compare side by side only when the main column has room for readable tables. */
@container arena-match-statistics (max-width:780px){.arena-match-stats__teams{grid-template-columns:minmax(0,1fr)}}
/* Preserve all fields: metadata above the home / result / away row on narrow panels. */
@container arena-stat-team (max-width:460px){
    .arena-match-stats__games,.arena-match-stats__games thead,.arena-match-stats__games tbody{display:block}
    .arena-match-stats__games tr{display:grid;grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);align-items:center;border-bottom:1px solid #d3e3da;padding:8px 4px;row-gap:4px}
    .arena-match-stats__games thead tr{background:#e4f0e9}
    .arena-match-stats__games th,.arena-match-stats__games td{width:auto;min-width:0;padding:4px 6px;border:0}
    .arena-match-stats__games th:nth-child(n){width:auto}
    .arena-match-stats__games tr>:nth-child(1){grid-column:1;grid-row:1;text-align:left}
    .arena-match-stats__games tr>:nth-child(2){grid-column:2/-1;grid-row:1;text-align:right}
    .arena-match-stats__games tr>:nth-child(3){grid-column:1;grid-row:2}
    .arena-match-stats__games tr>:nth-child(4){grid-column:2;grid-row:2}
    .arena-match-stats__games tr>:nth-child(5){grid-column:3;grid-row:2}
    .arena-match-stats__games tbody tr:last-child{border-bottom:0}
    .arena-match-stats__score{min-height:40px}
}
@media(max-width:700px){
    .arena-match-stats__card>summary{padding:16px 12px;gap:10px}
    .arena-match-stats__card>summary h2{gap:8px}
    .arena-match-stats__body{padding:0 10px 16px}
    .arena-match-stats__metrics th,.arena-match-stats__metrics td,.arena-match-stats__timing th,.arena-match-stats__timing td{padding:11px 4px}
}
/* Paired tables share intrinsic row heights; stacked tables retain their natural mobile layout. */
@supports(grid-template-rows:subgrid){
    @container arena-match-statistics (min-width:781px){
        .arena-match-stats__teams{grid-template-rows:repeat(var(--arena-match-stats-rows),auto);row-gap:0}
        .arena-match-stats__team{display:grid;grid-template-rows:subgrid;grid-row:1/-1;container-type:normal}
        .arena-match-stats__team:first-child{grid-column:1}
        .arena-match-stats__team:last-child{grid-column:2}
        .arena-match-stats__team>table{display:grid;grid-template-rows:subgrid;grid-row:2/-1}
        .arena-match-stats__team>table>thead,.arena-match-stats__team>table>tbody{display:contents}
        .arena-match-stats__team>table tr{display:grid;align-items:stretch}
        .arena-match-stats__games tr{grid-template-columns:15% 21% minmax(0,1fr) 15% minmax(0,1fr)}
        .arena-match-stats__metrics tr{grid-template-columns:43% repeat(3,minmax(0,1fr))}
        .arena-match-stats__timing tr{grid-template-columns:24% repeat(2,minmax(0,1fr))}
        .arena-match-stats .arena-match-stats__team>table :is(th,td){box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;width:auto}
        .arena-match-stats .arena-match-stats__team>table tbody th,.arena-match-stats__metrics thead th:first-child{justify-content:flex-start}
        .arena-match-stats__score,.arena-match-stats__bar{width:100%}
        .arena-match-stats__team>.arena-match-stats__empty{grid-row:2/-1;align-self:start}
    }
    /* The paired grid cannot also be a size container; use its known half-width here. */
    @container arena-match-statistics (min-width:781px) and (max-width:992px){
        .arena-match-stats__games tr{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);align-items:center;border-bottom:1px solid #d3e3da;padding:8px 4px;row-gap:4px}
        .arena-match-stats__games thead tr{background:#e4f0e9}
        .arena-match-stats__games th,.arena-match-stats__games td{padding:4px 6px;border:0}
        .arena-match-stats .arena-match-stats__games tr>:nth-child(1){grid-column:1;grid-row:1;text-align:left;justify-content:flex-start}
        .arena-match-stats .arena-match-stats__games tr>:nth-child(2){grid-column:2/-1;grid-row:1;text-align:right;justify-content:flex-end}
        .arena-match-stats__games tr>:nth-child(3){grid-column:1;grid-row:2}
        .arena-match-stats__games tr>:nth-child(4){grid-column:2;grid-row:2}
        .arena-match-stats__games tr>:nth-child(5){grid-column:3;grid-row:2}
        .arena-match-stats__games tbody tr:last-child{border-bottom:0}
        .arena-match-stats__score{min-height:40px}
    }
    @container arena-stat-team (max-width:460px){
        .arena-match-stats .arena-match-stats__games tr>:nth-child(1){justify-content:flex-start}
        .arena-match-stats .arena-match-stats__games tr>:nth-child(2){justify-content:flex-end}
    }
}

/* Legacy match disclosures share the statistical cards' title rhythm. */
.arena-match-page .arena-match-detail:is(.arena-match-detail--statistics,#equipas,#jogadores)>summary{min-height:0;padding:19px 22px;gap:12px;font-family:var(--arena-font,ArenaInter,Arial,Helvetica,sans-serif);font-size:16px;font-weight:600;line-height:1.5;color:#17372c}
.arena-match-page .arena-match-detail:is(.arena-match-detail--statistics,#equipas,#jogadores)>summary::before{width:19px;height:19px;background-size:19px}
.arena-match-page .arena-match-detail:is(.arena-match-detail--statistics,#equipas,#jogadores)>summary::after{content:"";display:block;flex:none;width:19px;height:19px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009763' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/19px no-repeat;transition:transform .18s ease}
.arena-match-page .arena-match-detail:is(.arena-match-detail--statistics,#equipas,#jogadores)[open]>summary::after{transform:rotate(180deg)}
@media(max-width:700px){.arena-match-page .arena-match-detail:is(.arena-match-detail--statistics,#equipas,#jogadores)>summary{padding:16px 12px;gap:8px}}
