/* Historical Season + accepted Season Hero rhythm · normal Polish baseline; Track rhythm remains preview-isolated. */

html[data-gpb-polish="1"] #app>main .v7007d1-seasons>.gpb-public-contextbar-is-switchable,
html[data-gpb-polish="1"] #app>main .v7007d2r1-track-detail>.gpb-public-contextbar-is-switchable{
  margin:0 0 10px!important;
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons>.gpb-public-contextbar-is-switchable+.v7007d1-calendar-head{
  padding-top:0!important;
}

html[data-gpb-polish="1"] #app>main :is(.v7007d1-seasons,.v7007d1-track-stats) .v7007d1-season-meta.is-8{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(104px,1fr));
  gap:10px!important;
  margin-top:auto!important;
  padding-top:12px!important;
}
html[data-gpb-polish="1"] #app>main :is(.v7007d1-seasons,.v7007d1-track-stats) .v7007d1-season-meta.is-archive-stats .v7007d1-archive-stat-card{
  min-height:104px!important;
  padding:12px!important;
}
html[data-gpb-polish="1"] #app>main :is(.v7007d1-seasons,.v7007d1-track-stats) .v7007d1-season-meta.is-archive-stats .v7007d1-archive-stat-card>.eyebrow{
  color:var(--gpb-ui-muted)!important;
}
html[data-gpb-polish="1"] #app>main :is(.v7007d1-seasons,.v7007d1-track-stats) .v7007d1-season-meta.is-archive-stats .v7007d2r1-stat-value>strong{
  font-size:24px!important;
  font-variant-numeric:tabular-nums;
}

html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-id.is-enhanced{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons:not(.v7007f1r6r1-header-shell) .v7007f3-champion-visual.gpb-ui-media{
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  flex:0 0 46px!important;
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons:not(.v7007f1r6r1-header-shell) .v7007f3-champion-visual.is-team.gpb-ui-media>img{
  width:100%!important;
  height:100%!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center center!important;
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-copy{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:0!important;
  min-width:0!important;
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-copy>b{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--gpb-ui-text)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.5!important;
  letter-spacing:0!important;
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-meta,
html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-team-drivers>small{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  margin:0!important;
  color:var(--gpb-ui-muted)!important;
  font-size:10px!important;
  font-weight:400!important;
  line-height:1.5!important;
  letter-spacing:0!important;
  white-space:nowrap;
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-meta>i,
html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-team-drivers>small>i{
  width:5px;
  height:5px;
  flex:0 0 5px;
  border-radius:50%;
  background:var(--team-accent,#6b7280);
}
html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007f3-champion-team-drivers{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  min-width:0!important;
}

@media(min-width:1051px){
  html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007d1-season-hero.is-live,
  html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007d1-season-hero.is-archive{
    height:auto!important;
    min-height:360px!important;
    max-height:none!important;
    box-sizing:border-box!important;
  }
  html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007d1-season-leaders{
    height:auto!important;
    grid-template-rows:repeat(2,max-content)!important;
    align-content:start!important;
    align-self:start!important;
  }
  html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007d1-season-leaders>.v7007f2-champion-card{
    height:auto!important;
    min-height:0!important;
    box-sizing:border-box!important;
    grid-template-rows:auto auto!important;
  }
  html[data-gpb-polish="1"] #app>main .v7007d1-seasons .v7007d1-season-leaders>.v7007f2-champion-card>small{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
}
@media(max-width:1050px){
  html[data-gpb-polish="1"] #app>main :is(.v7007d1-seasons,.v7007d1-track-stats) .v7007d1-season-meta.is-8{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:none;
  }
}
@media(max-width:680px){
  html[data-gpb-polish="1"] #app>main .v7007d1-seasons>.gpb-public-contextbar-is-switchable,
  html[data-gpb-polish="1"] #app>main .v7007d2r1-track-detail>.gpb-public-contextbar-is-switchable{
    margin:0 0 6px!important;
  }
}

/* Polish 1 preview only: restore the accepted larger Season Hero reference without squeezing content. */
@media(min-width:1051px){
  html[data-gpb-polish-preview="1"] #app>main .v7007d1-seasons .v7007d1-season-hero.is-live:not(.v7007f1r6r1-grid-hero),
  html[data-gpb-polish-preview="1"] #app>main .v7007d1-seasons .v7007d1-season-hero.is-archive{
    height:392px!important;
    min-height:392px!important;
    max-height:392px!important;
    box-sizing:border-box!important;
  }
}
