/* Team history content. Shared landing assets own the header, drawer and footer. */
.statistics-team-history .page-shell{font-family:var(--font-ui,Roboto,Arial,sans-serif);max-width:1280px;padding:12px 22px 48px;--panel:#081c2f;--panel-raised:#0c2540;--line:#204561;--line-soft:#16324c;--text:#f5f9ff;--muted:#adc6de;--blue:#54bbff;--control:#071b30;--selected:#103c6a}
.statistics-team-history .page-shell .statistics-breadcrumbs ol{font-size:13px;line-height:20px;margin-bottom:10px}
.statistics-team-history .page-shell .history-hero{min-height:202px;display:flex;align-items:center;justify-content:space-between;padding:16px 36px;gap:24px;border:1px solid var(--line);border-radius:14px;background:var(--panel) url('/img/statistics/team-stadium-20261002-2280641d0965.webp') center/cover no-repeat;overflow:hidden}
.statistics-team-history .page-shell .history-hero__content{max-width:490px;flex:1 1 490px;min-width:0}
.statistics-team-history .page-shell .history-hero .eyebrow{font-size:12px;line-height:18px;letter-spacing:.045em;border:1px solid #103a65;border-radius:18px;padding:3px 10px;background:rgba(7,32,62,.85);min-height:26px}
.statistics-team-history .page-shell .history-hero h1{font-size:32px;line-height:1.18;letter-spacing:-.025em;margin:12px 0 9px;font-weight:700}
.statistics-team-history .page-shell .history-hero__content>p{color:#bfd5eb;font-size:14px;line-height:20px;margin:0;max-width:470px}
.statistics-team-history .page-shell .history-hero__art{display:flex;align-items:center;gap:42px;flex:0 1 495px;padding-right:50px}
.statistics-team-history .page-shell .history-hero__crest{width:170px;height:170px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 4px 12px rgba(0,0,0,.3))}
.statistics-team-history .page-shell .history-hero__art>p{color:#c8def5;font-size:15px;line-height:20px;letter-spacing:.15em;margin:0;white-space:nowrap}
.statistics-team-history .page-shell .history-icon{display:block;flex:0 0 24px;width:24px;height:24px;object-fit:contain}
.statistics-team-history .page-shell .history-coverage{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:10px 20px;margin:12px 0;min-height:46px;color:var(--muted);font-size:13px;line-height:20px}
.statistics-team-history .page-shell .history-coverage>div{display:flex;align-items:center;gap:12px;min-width:0}
.statistics-team-history .page-shell .history-coverage strong{color:#c5dcf2;font-weight:600}
.statistics-team-history .page-shell .history-coverage>div:last-child{margin-left:auto;font-size:12px}
.statistics-team-history .page-shell .statistics-content{gap:16px}
.statistics-team-history .page-shell .history-dashboard{display:grid;grid-template-columns:minmax(0,870px) minmax(0,352px);gap:15px;align-items:start}
.statistics-team-history .page-shell .panel{background:var(--panel);border-radius:13px}
.statistics-team-history .page-shell .history-results .panel__head{padding:16px 18px 8px}
.statistics-team-history .page-shell .history-results .panel__head h2{font-size:23px;line-height:29px;margin:0}
.statistics-team-history .page-shell .history-controls{display:grid;grid-template-columns:minmax(200px,1.75fr) minmax(132px,1.05fr) minmax(122px,1fr) minmax(138px,.95fr);gap:10px;padding:0 18px}
.statistics-team-history .page-shell .history-controls label{min-width:0;position:relative}
.statistics-team-history .page-shell .history-search{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:var(--control);padding:0 9px;gap:10px}
.statistics-team-history .page-shell .history-search .history-icon{width:18px;height:18px;flex-basis:18px;opacity:.85}
.statistics-team-history .page-shell .history-controls input,.statistics-team-history .page-shell .history-controls select{width:100%;min-height:38px;font-family:inherit;font-size:13px;line-height:20px;color:var(--text);background:var(--control);border:1px solid var(--line);border-radius:9px;padding:8px 11px;max-width:100%}
.statistics-team-history .page-shell .history-controls input{min-width:0;border:none;padding-left:0;padding-right:0;background:transparent}
.statistics-team-history .page-shell .history-controls input::placeholder{color:var(--muted)}
.statistics-team-history .page-shell .history-controls select{padding-right:8px;cursor:pointer;color-scheme:dark}
.statistics-team-history .page-shell select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.statistics-team-history .page-shell .history-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.statistics-team-history .page-shell .history-search input:focus-visible{outline:none}
.statistics-team-history .page-shell .history-categories{display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px 13px}
.statistics-team-history .page-shell .history-categories button{border:1px solid var(--line);border-radius:20px;padding:6px 16px;min-height:31px;font-size:12px;line-height:18px;background:var(--control);color:var(--text)}
.statistics-team-history .page-shell .history-categories button[aria-pressed=true]{background:#2b9af4;border-color:#2b9af4;color:#031b32;font-weight:700}
.statistics-team-history .page-shell .history-selection{font-size:12px;line-height:18px;color:var(--muted);padding:0 18px;margin:0 0 10px}
.statistics-team-history .page-shell .history-match-list{padding:0 18px 7px}
.statistics-team-history .page-shell .history-match{display:grid;grid-template-columns:137px minmax(0,1fr) 76px 30px;gap:12px;align-items:center;border-top:1px solid var(--line-soft);padding:6px 0;min-height:58px}
.statistics-team-history .page-shell .history-match[data-history-target]{cursor:pointer}
.statistics-team-history .page-shell .history-match[data-history-target]:hover{background:rgba(33,102,163,.14)}
.statistics-team-history .page-shell .history-match__date{font-size:12px;line-height:18px;color:var(--muted)}
.statistics-team-history .page-shell .history-match__date time{display:block;max-width:130px}
.statistics-team-history .page-shell .history-match__fixture{min-width:0}
.statistics-team-history .page-shell .history-match__teams{display:flex;gap:10px;align-items:center;justify-content:flex-start;min-height:32px}
.statistics-team-history .page-shell .history-team{flex:0 1 auto;max-width:calc((100% - 33px)/2);min-width:0;font-size:13px;line-height:18px;color:var(--text)}
.statistics-team-history .page-shell .history-team a{color:var(--text);font-weight:400}
.statistics-team-history .page-shell .history-team--own a,.statistics-team-history .page-shell .history-team--own{color:var(--blue)}
.statistics-team-history .page-shell .team-name__identity{display:flex;align-items:center;gap:10px;min-width:0;white-space:normal}
.statistics-team-history .page-shell .history-team .team-name__identity{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;padding-left:0;min-height:32px}
.statistics-team-history .page-shell .history-team .team-crest{position:static;width:32px;height:32px;object-fit:contain}
.statistics-team-history .page-shell .history-team a{min-width:0;overflow-wrap:anywhere}
.statistics-team-history .page-shell .history-match__separator{flex:0 0 auto;font-size:13px;color:var(--muted)}
.statistics-team-history .page-shell .history-match__context{font-size:12px;line-height:18px;color:var(--muted);padding-left:0;margin:0 0 5px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.statistics-team-history .page-shell .history-match__context a{color:var(--muted);font-weight:400}
.statistics-team-history .page-shell .history-match__context a:hover{color:var(--blue)}
.statistics-team-history .page-shell .history-match__score{align-self:center;text-align:center;min-width:0}
.statistics-team-history .page-shell .history-match__score strong{display:block;border:1px solid #15446e;border-radius:8px;font-size:18px;line-height:20px;padding:2px 7px}
.statistics-team-history .page-shell .history-match__score strong a{color:inherit;display:block}
.statistics-team-history .page-shell .history-match__score>span{display:block;font-size:12px;line-height:16px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.statistics-team-history .page-shell .history-row-link{display:flex;align-items:center;justify-content:center;width:30px;min-height:40px}
.statistics-team-history .page-shell .history-row-link .history-icon{width:19px;height:19px;flex-basis:19px}
.statistics-team-history .page-shell .history-match .statistics-result-note{font-size:12px;line-height:18px;margin:4px 0 0;color:var(--muted)}
.statistics-team-history .page-shell .history-sidebar{display:grid;gap:12px;min-width:0}
.statistics-team-history .page-shell .history-sidebar__cards>.panel{padding:15px 16px}
.statistics-team-history .page-shell .history-sidebar h2{font-size:18px;line-height:24px;margin:0 0 15px}
.statistics-team-history .page-shell .history-profile__identity{display:flex;align-items:center;gap:15px;margin:18px 0 12px}
.statistics-team-history .page-shell .history-profile__crest{width:84px;height:84px;object-fit:contain;flex-shrink:0;margin:-8px}
.statistics-team-history .page-shell .history-profile h3{font-size:20px;line-height:25px;letter-spacing:-.01em;margin:0 0 9px;overflow-wrap:anywhere}
.statistics-team-history .page-shell .history-profile__identity p{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;line-height:20px;margin:0}
.statistics-team-history .page-shell .history-profile__identity p img{object-fit:cover;border-radius:2px}
.statistics-team-history .page-shell .history-facts{margin:0;font-size:12px;line-height:18px}
.statistics-team-history .page-shell .history-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:9px;border-bottom:1px solid var(--line-soft);padding:5px 7px}
.statistics-team-history .page-shell .history-facts>div:first-child{border:1px solid var(--line-soft);border-radius:8px}
.statistics-team-history .page-shell .history-facts>div:last-child{border-bottom:none;padding-bottom:0}
.statistics-team-history .page-shell .history-facts dt{color:var(--muted);flex-shrink:0}
.statistics-team-history .page-shell .history-facts dd{margin:0;text-align:right;color:#dce9f7;overflow-wrap:anywhere}
.statistics-team-history .page-shell .history-facts dd a{color:inherit}
.statistics-team-history .page-shell .history-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.statistics-team-history .page-shell .history-card-head h2{font-size:16px;line-height:22px;margin-bottom:12px}
.statistics-team-history .page-shell .history-card-head>span{font-size:12px;line-height:18px;color:var(--muted);text-align:right}
.statistics-team-history .page-shell .history-form-note{font-size:11px;line-height:16px;color:var(--muted);margin:7px 0}
.statistics-team-history .page-shell .history-all-link{display:inline-flex;align-items:center;min-height:28px;font-size:13px;line-height:20px}
.statistics-team-history .page-shell .history-metrics h2{font-size:16px;line-height:22px;margin-bottom:12px}
.statistics-team-history .page-shell .history-metrics__grid{display:grid;grid-template-columns:1fr 1.25fr 1.05fr;gap:9px}
.statistics-team-history .page-shell .history-metrics__grid>div{display:grid;grid-template-rows:minmax(36px,auto) auto minmax(18px,auto);align-content:start;gap:4px;border:0;background:transparent;border-radius:8px;padding:10px 8px;min-width:0}
.statistics-team-history .page-shell .history-metrics__grid span{display:block;font-size:11px;line-height:16px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.statistics-team-history .page-shell .history-metrics__grid strong{display:block;font-size:23px;line-height:29px;font-weight:600;white-space:nowrap;letter-spacing:-.015em;color:var(--metric-accent,var(--text));font-variant-numeric:tabular-nums}
.statistics-team-history .page-shell .history-metrics__grid small{display:block;font-size:10px;line-height:14px;color:var(--muted);margin:0;white-space:normal}
.statistics-team-history .page-shell .history-metric--wins{--metric-accent:#c6f8e8;--metric-border:#247861;--metric-tint:rgba(17,97,79,.32)}
.statistics-team-history .page-shell .history-metric--goals{--metric-accent:var(--blue);--metric-border:#2479ad;--metric-tint:rgba(43,154,244,.18)}
.statistics-team-history .page-shell .history-metric--win-rate{--metric-accent:#fff0ba;--metric-border:#806c32;--metric-tint:rgba(119,97,42,.3)}
html[data-theme=light] .statistics-team-history .page-shell .history-metric--wins{--metric-accent:#11614f;--metric-tint:rgba(17,97,79,.08)}
html[data-theme=light] .statistics-team-history .page-shell .history-metric--goals{--metric-tint:rgba(43,154,244,.08)}
html[data-theme=light] .statistics-team-history .page-shell .history-metric--win-rate{--metric-accent:#77612a;--metric-tint:rgba(119,97,42,.08)}
.statistics-team-history .page-shell .history-metrics>p{font-size:11px;line-height:17px;color:var(--muted);margin:9px 0 0}
.statistics-team-history .page-shell .history-data-details{border:1px solid var(--line);border-radius:10px;padding:9px 13px;color:var(--muted);background:var(--panel);font-size:12px;line-height:18px;min-width:0}
.statistics-team-history .page-shell .history-data-details>summary{cursor:pointer;min-height:24px;color:var(--muted)}
.statistics-team-history .page-shell .history-data-details .statistics-coverage{border:0;background:transparent;padding:0;margin:10px 0 0;font-size:12px;line-height:18px}
.statistics-team-history .page-shell .history-data-details .statistics-notes{padding:8px 0 0;border:0;background:transparent;margin:0;font-size:12px}
.statistics-team-history .page-shell .history-page-notes{margin:0}
.statistics-team-history .page-shell .history-empty{padding:30px 20px;color:var(--muted);text-align:center}
.statistics-team-history .page-shell .history-empty h3{font-size:20px;margin:0 0 9px;color:var(--text)}
.statistics-team-history .page-shell .history-empty p{font-size:14px;margin:0 0 16px}
.statistics-team-history .page-shell .history-empty button{min-height:40px;border:1px solid var(--line);background:var(--selected);color:var(--text);border-radius:8px;padding:8px 16px;font-size:14px}
.statistics-team-history .page-shell .history-noscript{padding:0 18px;font-size:13px;color:var(--muted)}
.statistics-team-history .page-shell .statistics-update{font-size:12px;line-height:18px;margin-top:16px}
html[data-theme=light] .statistics-team-history .page-shell{color-scheme:light;--panel:#f7fbff;--panel-raised:#eaf3fc;--line:#b8d1e7;--line-soft:#d9e7f2;--text:#163550;--muted:#476982;--blue:#0871b9;--control:#f7fbff;--selected:#d0e8ff}
html[data-theme=light] .statistics-team-history .page-shell .history-hero{color:#f5f9ff}
html[data-theme=light] .statistics-team-history .page-shell .history-coverage strong,html[data-theme=light] .statistics-team-history .page-shell .history-facts dd{color:var(--text)}
html[data-theme=light] .statistics-team-history .page-shell .history-controls select{color-scheme:light}
@media(max-width:1200px){.statistics-team-history .page-shell .history-hero__art{gap:25px;padding-right:10px;flex-basis:390px}.statistics-team-history .page-shell .history-dashboard{grid-template-columns:minmax(0,1fr) 330px}.statistics-team-history .page-shell .history-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.statistics-team-history .page-shell .history-match{grid-template-columns:112px minmax(0,1fr) 65px 25px;gap:9px}.statistics-team-history .page-shell .history-match__teams{gap:6px}.statistics-team-history .page-shell .history-team .team-crest{width:28px;height:28px;flex-basis:28px}.statistics-team-history .page-shell .history-match__context{padding-left:0}.statistics-team-history .page-shell .history-coverage>div:last-child{margin-left:0}}
@media(max-width:950px){.statistics-team-history .page-shell .history-dashboard{grid-template-columns:minmax(0,1fr)}.statistics-team-history .page-shell .history-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.statistics-team-history .page-shell .history-hero__art{flex-basis:200px;padding-right:0}.statistics-team-history .page-shell .history-hero__art>p{display:none}.statistics-team-history .page-shell .history-profile{grid-row:span 2}.statistics-team-history .page-shell .history-match{grid-template-columns:130px minmax(0,1fr) 76px 30px;gap:12px}.statistics-team-history .page-shell .history-controls{grid-template-columns:minmax(170px,1.5fr) minmax(120px,1fr) minmax(110px,1fr) minmax(130px,1fr)}}
@media(max-width:700px){.statistics-team-history .page-shell{padding:14px 14px 36px}.statistics-team-history .page-shell .statistics-breadcrumbs ol{font-size:12px;line-height:18px}.statistics-team-history .page-shell .history-hero{min-height:0;padding:20px 18px;gap:12px;align-items:flex-start}.statistics-team-history .page-shell .history-hero__content{max-width:none}.statistics-team-history .page-shell .history-hero h1{font-size:28px;line-height:1.2}.statistics-team-history .page-shell .history-hero__content>p{font-size:14px;line-height:21px}.statistics-team-history .page-shell .history-hero__art{display:none}.statistics-team-history .page-shell .history-coverage{font-size:12px;line-height:18px;padding:12px 13px;gap:11px}.statistics-team-history .page-shell .history-coverage>div{gap:10px}.statistics-team-history .page-shell .history-coverage>div:last-child{font-size:12px}.statistics-team-history .page-shell .history-coverage .history-icon{width:20px;height:20px;flex-basis:20px}.statistics-team-history .page-shell .history-sidebar{grid-template-columns:minmax(0,1fr)}.statistics-team-history .page-shell .history-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:0 14px}.statistics-team-history .page-shell .history-search{grid-column:1/-1}.statistics-team-history .page-shell .history-controls input{font-size:16px;min-height:44px}.statistics-team-history .page-shell .history-controls select{min-height:44px;font-size:13px}.statistics-team-history .page-shell .history-controls label:last-child{grid-column:1/-1}.statistics-team-history .page-shell .history-results .panel__head{padding:15px 14px 10px}.statistics-team-history .page-shell .history-results .panel__head h2{font-size:20px;line-height:25px}.statistics-team-history .page-shell .history-categories{padding:10px 14px;gap:6px}.statistics-team-history .page-shell .history-categories button{font-size:12px;min-height:44px;padding:7px 11px}.statistics-team-history .page-shell .history-selection{padding:0 14px}.statistics-team-history .page-shell .history-match-list{padding:0 14px}.statistics-team-history .page-shell .history-match{grid-template-columns:minmax(0,1fr) 62px 22px;gap:6px 9px;padding:12px 0}.statistics-team-history .page-shell .history-match__date{grid-column:1/-1;font-size:12px;line-height:18px}.statistics-team-history .page-shell .history-match__date time{max-width:none}.statistics-team-history .page-shell .history-match__teams{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}.statistics-team-history .page-shell .history-team{flex:0 0 100%;max-width:100%;font-size:13px;line-height:19px}.statistics-team-history .page-shell .history-match__separator{display:none}.statistics-team-history .page-shell .history-team .team-crest{width:26px;height:26px;flex-basis:26px}.statistics-team-history .page-shell .team-name__identity{gap:7px}.statistics-team-history .page-shell .history-match__context{padding:0;margin:0 0 6px;font-size:12px;line-height:18px}.statistics-team-history .page-shell .history-row-link{width:22px;min-height:44px}.statistics-team-history .page-shell .history-match__score strong{font-size:18px;line-height:24px;padding:4px}.statistics-team-history .page-shell .history-match__score>span{font-size:11px}.statistics-team-history .page-shell .history-metrics__grid span{font-size:12px}.statistics-team-history .page-shell .history-metrics__grid small{font-size:11px;white-space:normal}.statistics-team-history .page-shell .history-form-note,.statistics-team-history .page-shell .history-metrics>p{font-size:12px;line-height:18px}.statistics-team-history .page-shell .history-all-link{min-height:40px}.statistics-team-history .page-shell .history-facts{font-size:13px;line-height:20px}}

.statistics-team-history .page-shell .history-sidebar>details>summary{display:none}
.statistics-team-history .page-shell .history-sidebar__cards{display:grid;gap:12px;min-width:0}
@media(min-width:701px) and (max-width:950px){.statistics-team-history .page-shell .history-sidebar{display:block}.statistics-team-history .page-shell .history-sidebar__cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.statistics-team-history .page-shell .history-sidebar{order:-1;display:block}.statistics-team-history .page-shell .history-sidebar>details>summary{display:list-item;cursor:pointer;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:14px;line-height:21px;padding:12px 16px;min-height:46px}.statistics-team-history .page-shell .history-sidebar__cards{padding-top:10px}.statistics-team-history .page-shell .history-team .team-name__identity{padding-left:0;grid-template-columns:26px minmax(0,1fr);min-height:26px}.statistics-team-history .page-shell .history-team .team-crest{width:26px;height:26px;top:0}}

@media(max-width:700px){.statistics-team-history .page-shell .history-hero{background-image:linear-gradient(rgba(2,15,31,.76),rgba(2,15,31,.76)),url('/img/statistics/team-stadium-20261002-2280641d0965.webp')}}

@media(min-width:701px) and (max-width:950px){.statistics-team-history .page-shell .history-sidebar{order:-1}.statistics-team-history .page-shell .history-sidebar>details>summary{display:list-item;cursor:pointer;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:14px;line-height:21px;padding:12px 16px;min-height:46px}.statistics-team-history .page-shell .history-sidebar__cards{padding-top:10px}}

.statistics-team-history .page-shell .history-match__score strong:not([class]){background:var(--control);color:var(--text)}

@media(max-width:700px){.statistics-team-history .page-shell .history-metrics__grid strong{font-size:21px}}

.statistics-team-history .page-shell .history-goals-for{font:inherit;color:#c6f8e8}
.statistics-team-history .page-shell .history-goals-against{font:inherit;color:#ffc0c7}
.statistics-team-history .page-shell .history-goals-separator{font:inherit;color:var(--muted)}
html[data-theme=light] .statistics-team-history .page-shell .history-goals-for{color:#11614f}
html[data-theme=light] .statistics-team-history .page-shell .history-goals-against{color:#ac273f}

@media(min-width:701px){
 .statistics-team-history .page-shell .history-match__teams{justify-content:center}
 .statistics-team-history .page-shell .history-match__context{text-align:left}
}

@media(min-width:701px){
 .statistics-team-history .page-shell .history-match__teams{display:grid;grid-template-columns:minmax(0,1fr) 13px minmax(0,1fr);gap:10px;justify-content:normal}
 .statistics-team-history .page-shell .history-match__separator{justify-self:center;text-align:center}
 .statistics-team-history .page-shell .history-team{display:flex;align-items:center;justify-content:flex-start;max-width:100%;text-align:left}
 .statistics-team-history .page-shell .history-team:first-child{justify-content:flex-start;text-align:left}
 .statistics-team-history .page-shell .history-team>.team-name__identity{max-width:100%}
}

.statistics-team-history .page-shell .history-kpi-season{display:grid;gap:5px;font-size:12px;line-height:18px;color:var(--muted);margin-bottom:10px}
.statistics-team-history .page-shell .history-kpi-season select{width:100%;min-height:40px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--control);color:var(--text);font:inherit;color-scheme:dark}
.statistics-team-history .page-shell .history-kpi-season select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.statistics-team-history .page-shell .history-metrics>.history-kpi-period{margin:0 0 12px;font-size:12px;line-height:18px}
.statistics-team-history .page-shell .history-kpi-group{border-top:1px solid var(--line-soft);padding-top:12px;margin-top:12px;min-width:0}
.statistics-team-history .page-shell .history-kpi-group h3{font-size:14px;line-height:20px;color:var(--text);margin:0 0 9px;font-weight:600}
.statistics-team-history .page-shell .history-kpi-context,.statistics-team-history .page-shell .history-kpi-empty{font-size:11px;line-height:17px;color:var(--muted);margin:8px 0 0}
.statistics-team-history .page-shell .history-kpi-group .history-metrics__grid>div{grid-template-rows:minmax(32px,auto) auto minmax(14px,auto);padding:8px 7px}
html[data-theme=light] .statistics-team-history .page-shell .history-kpi-season select{color-scheme:light}
@media(max-width:700px){.statistics-team-history .page-shell .history-kpi-season select{min-height:44px;font-size:14px}.statistics-team-history .page-shell .history-kpi-context,.statistics-team-history .page-shell .history-kpi-empty{font-size:12px;line-height:18px}.statistics-team-history .page-shell .history-kpi-group .history-metrics__grid{gap:7px}.statistics-team-history .page-shell .history-kpi-group .history-metrics__grid strong{font-size:20px}}

/* Stable team columns and a reserved crest slot, including unillustrated teams. */
.statistics-team-history .page-shell .history-team>.team-name__identity{width:100%;grid-template-columns:var(--history-crest-size,32px) minmax(0,1fr);text-align:left}
.statistics-team-history .page-shell .history-team__crest-slot{display:flex;align-items:center;justify-content:center;width:var(--history-crest-size,32px);height:var(--history-crest-size,32px);min-width:0}
.statistics-team-history .page-shell .history-team__name{min-width:0;overflow-wrap:anywhere;white-space:normal;text-align:left}
.statistics-team-history .page-shell .history-team__name a{display:block}
@media(max-width:1200px){.statistics-team-history .page-shell .history-match__teams{--history-crest-size:28px}}
@media(max-width:700px){.statistics-team-history .page-shell .history-match__teams{--history-crest-size:26px}.statistics-team-history .page-shell .history-team>.team-name__identity{gap:7px}}

html:has(body.statistics-team-history){scroll-behavior:auto}
.statistics-team-history .page-shell .history-match{grid-template-columns:minmax(0,1fr) 152px}
.statistics-team-history .page-shell .history-match-heading{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:14px;margin-bottom:5px}
.statistics-team-history .page-shell .history-match-heading .history-match__date{flex:0 0 auto;text-align:left;grid-column:auto;font-size:12px;line-height:18px}
.statistics-team-history .page-shell .history-match-heading time{max-width:none;white-space:nowrap}
.statistics-team-history .page-shell .history-match-heading .history-match__context{flex:1 1 260px;min-width:0;margin-bottom:0}
@media(max-width:700px){
 .statistics-team-history .page-shell .history-match{grid-template-columns:minmax(0,1fr) 110px}
}
.statistics-team-history .page-shell a.history-match-link{color:inherit;text-decoration:none}
.statistics-team-history .page-shell .history-match__score>.history-score-periods{display:flex;gap:12px;position:absolute;top:28px;left:50%;transform:translateX(-50%);width:max-content;max-width:none;font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap}
.statistics-team-history .page-shell .history-score-period{display:inline-flex;gap:4px}
.statistics-team-history .page-shell .history-score-period b{font-weight:600;color:var(--text)}
@media(min-width:701px){
 .statistics-team-history .page-shell .history-match{grid-template-columns:minmax(0,1fr)}
 .statistics-team-history .page-shell .history-match__fixture{width:calc(100% - 164px);justify-self:start;margin-left:max(0px,calc((100% - var(--history-visible-width,calc(100% - 164px))) / 2))}
 .statistics-team-history .page-shell .history-match__teams{position:relative}
 .statistics-team-history .page-shell .history-match__teams>.history-team:first-child{grid-column:1/-1;grid-row:1;width:calc(min(50%,max(220px,35%)) - 46px)}
 .statistics-team-history .page-shell .history-match__teams>.history-team:last-child{grid-column:3;grid-row:1}
 .statistics-team-history .page-shell .history-match__teams>.history-match__score{position:absolute;left:min(50%,max(220px,35%));top:50%;transform:translate(-50%,-13px);width:76px}
 .statistics-team-history .page-shell .history-match__fixture .history-match-actions{margin-top:17px}
}
@media(min-width:701px) and (max-width:1200px){
 .statistics-team-history .page-shell .history-match__teams{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)}
}
@media(max-width:700px){
 .statistics-team-history .page-shell .history-match{grid-template-columns:minmax(0,1fr)}
 .statistics-team-history .page-shell .history-match__teams{display:grid;grid-template-columns:minmax(0,1fr) 96px;column-gap:12px}
 .statistics-team-history .page-shell .history-match__teams>.history-team:first-child{grid-column:1;grid-row:1}
 .statistics-team-history .page-shell .history-match__teams>.history-team:last-child{grid-column:1;grid-row:2}
 .statistics-team-history .page-shell .history-match__teams>.history-match__score{grid-column:2;grid-row:1/3;width:96px;align-self:center}
 .statistics-team-history .page-shell .history-match__score>.history-score-periods{position:static;transform:none;width:100%;display:grid;gap:3px;margin-top:4px;font-size:11px;line-height:16px;text-align:left}
 .statistics-team-history .page-shell .history-score-period{display:flex;justify-content:space-between;gap:4px}
}
.statistics-team-history .page-shell a.history-match-link:hover .history-team__name{text-decoration:underline;text-underline-offset:3px}
.statistics-team-history .page-shell a.history-match-link:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:4px}
.statistics-team-history .page-shell .history-match-actions{display:flex;align-items:center;gap:18px;margin-top:5px;font-size:12px;line-height:18px}
.statistics-team-history .page-shell .history-match-actions a{font-style:normal}
.statistics-team-history .page-shell .history-match-actions>a{color:var(--blue)}
.statistics-team-history .page-shell .history-team-menu{position:relative;color:var(--muted)}
.statistics-team-history .page-shell .history-team-menu summary{cursor:pointer}
.statistics-team-history .page-shell .history-team-menu>div{position:absolute;z-index:10;top:25px;left:0;min-width:210px;max-width:280px;display:grid;gap:6px;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.statistics-team-history .page-shell .history-team-menu>div>a{min-height:32px;display:flex;align-items:center;color:var(--text)}
.statistics-team-history .page-shell .history-match:has(.history-team-menu[open]){position:relative;z-index:11}
.statistics-team-history .nav-detail{padding-top:28px}
.statistics-team-history .nav-back{margin-bottom:20px;font-size:14px}
.statistics-team-history .nav-match-card,.statistics-team-history .nav-pair-card{padding:28px;max-width:940px;margin:0 auto}
.statistics-team-history .page-shell .nav-fixture-card{overflow:visible}
.statistics-team-history .nav-eyebrow{font-size:12px;color:var(--blue);margin:0 0 10px}
.statistics-team-history .nav-match-card h1,.statistics-team-history .nav-pair-card h1{font-size:28px;line-height:1.3;margin:0 0 18px}
.statistics-team-history .nav-meta{color:var(--muted);font-size:14px;line-height:21px;margin:6px 0}
.statistics-team-history .page-shell .nav-fixture-card .history-match{max-width:none;margin:0;padding:20px 0 0;grid-template-columns:minmax(0,1fr)}
.statistics-team-history .page-shell .nav-fixture-card .history-match__fixture{width:100%;margin-left:0}
.statistics-team-history .page-shell .nav-fixture-card .history-match-heading{column-gap:16px;margin-bottom:24px}
.statistics-team-history .page-shell .nav-fixture-card .history-match-heading .history-match__date,
.statistics-team-history .page-shell .nav-fixture-card .history-match__context{font-size:14px;line-height:21px}
.statistics-team-history .page-shell .nav-fixture-card .history-match__teams{display:grid;grid-template-columns:minmax(0,1fr) 200px minmax(0,1fr);gap:24px;align-items:start}
.statistics-team-history .page-shell .nav-fixture-card .history-match__teams>.history-team:first-child{grid-column:1;grid-row:1;width:auto}
.statistics-team-history .page-shell .nav-fixture-card .history-match__teams>.history-team:last-child{grid-column:3;grid-row:1;width:auto}
.statistics-team-history .page-shell .nav-fixture-card .history-team{min-width:0;align-self:start;font-size:20px;line-height:26px}
.statistics-team-history .page-shell .nav-fixture-card .team-name__identity{display:flex;align-items:center;gap:12px;min-width:0}
.statistics-team-history .page-shell .nav-fixture-card .history-team__name{font-size:20px;line-height:26px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.statistics-team-history .page-shell .nav-fixture-card .history-team__crest-slot{width:44px;height:44px;flex:0 0 44px}
.statistics-team-history .page-shell .nav-fixture-card .team-crest{width:44px;height:44px;max-width:none;max-height:none;object-fit:contain}
.statistics-team-history .page-shell .nav-fixture-card .history-match__teams>.history-match__score{position:static;grid-column:2;grid-row:1;transform:none;width:200px;align-self:start;display:flex;flex-direction:column;align-items:center}
.statistics-team-history .page-shell .nav-fixture-card .history-match__score>strong{width:104px;min-width:104px;height:44px;font-size:28px;line-height:44px;border-radius:8px}
.statistics-team-history .page-shell .nav-fixture-card .history-match__score>.history-score-periods{position:static;transform:none;display:flex;justify-content:center;gap:14px;width:max-content;max-width:100%;margin-top:10px;font-size:13px;line-height:18px;text-align:center}
.statistics-team-history .page-shell .nav-fixture-card .history-match-actions{margin-top:24px;padding-top:16px;border-top:1px solid var(--line-soft);font-size:14px;line-height:22px}
@media(min-width:701px){
 .statistics-team-history .page-shell .nav-fixture-card .history-team:last-child .team-name__identity{justify-content:flex-end}
 .statistics-team-history .page-shell .nav-fixture-card .history-team:last-child .history-team__name{text-align:right}
}
.statistics-team-history .nav-primary{display:flex;flex-wrap:wrap;gap:20px;border-top:1px solid var(--line-soft);padding-top:18px;font-size:14px}
.statistics-team-history .nav-pair-results{margin:24px 0}
.statistics-team-history .page-shell .nav-pair-card .history-match{padding-bottom:24px}
@media(max-width:700px){
 .statistics-team-history .page-shell .history-match-actions{gap:12px;font-size:12px}
 .statistics-team-history .page-shell .history-team-menu>div{left:auto;right:0;min-width:170px;max-width:215px}
 .statistics-team-history .nav-match-card,.statistics-team-history .nav-pair-card{padding:18px}
 .statistics-team-history .nav-match-card h1,.statistics-team-history .nav-pair-card h1{font-size:23px}
 .statistics-team-history .page-shell .nav-fixture-card .history-match{padding-top:16px}
 .statistics-team-history .page-shell .nav-fixture-card .history-match-heading{margin-bottom:18px;row-gap:4px}
 .statistics-team-history .page-shell .nav-fixture-card .history-match-heading .history-match__date,
 .statistics-team-history .page-shell .nav-fixture-card .history-match__context{font-size:13px;line-height:19px}
 .statistics-team-history .page-shell .nav-fixture-card .history-match__teams{grid-template-columns:minmax(0,1fr) 96px;column-gap:14px;row-gap:14px;align-items:center}
 .statistics-team-history .page-shell .nav-fixture-card .history-match__teams>.history-team:last-child{grid-column:1;grid-row:2}
 .statistics-team-history .page-shell .nav-fixture-card .history-team{align-self:center}
 .statistics-team-history .page-shell .nav-fixture-card .team-name__identity{gap:10px}
 .statistics-team-history .page-shell .nav-fixture-card .history-team__name{font-size:16px;line-height:22px}
 .statistics-team-history .page-shell .nav-fixture-card .history-team__crest-slot{width:32px;height:32px;flex-basis:32px}
 .statistics-team-history .page-shell .nav-fixture-card .team-crest{width:32px;height:32px}
 .statistics-team-history .page-shell .nav-fixture-card .history-match__teams>.history-match__score{grid-column:2;grid-row:1/3;width:96px;align-self:center}
 .statistics-team-history .page-shell .nav-fixture-card .history-match__score>strong{width:96px;min-width:96px;height:36px;font-size:24px;line-height:36px}
 .statistics-team-history .page-shell .nav-fixture-card .history-match__score>.history-score-periods{display:grid;gap:3px;width:100%;margin-top:8px;font-size:12px;line-height:18px}
 .statistics-team-history .page-shell .nav-fixture-card .history-match-actions{margin-top:18px;padding-top:14px;font-size:14px}
}

/* The accepted fixture grid uses the entire component; its children keep their order. */
.statistics-team-history .page-shell .history-match[data-history-target]{cursor:pointer}
.statistics-team-history .page-shell .history-match__teams{width:100%}
.statistics-team-history .page-shell .history-team__name{font-weight:400}
.statistics-team-history .page-shell .nav-detail-heading{margin:0}
.statistics-team-history .page-shell .nav-fixture-card .history-team:last-child>.team-name__identity{width:max-content;max-width:100%;margin-left:auto}
.statistics-team-history .page-shell .nav-fixture-card .history-match__score strong{padding:0}
.statistics-team-history .page-shell .nav-fixture-card .history-match__score>span{margin-top:10px}
.statistics-team-history .page-shell .nav-fixture-card .history-team a{font-size:inherit}
.statistics-team-history .page-shell .nav-fixture-card .history-team:first-child>.team-name__identity{margin-left:0}
.statistics-team-history .page-shell .history-fixture-status{font-size:12px;color:var(--muted)}
@media(max-width:700px){.statistics-team-history .page-shell .nav-fixture-card .history-team:last-child>.team-name__identity{width:100%;margin-left:0}}

.statistics-team-history .page-shell .nav-fixture-card{width:100%;padding:28px;max-width:940px;box-sizing:border-box}
@media(max-width:700px){.statistics-team-history .page-shell .nav-fixture-card{padding:18px}}
