/* SerieAGoal v1.74 | one consistent, slightly narrower sports frame.
   Corrects nested tinted bars in match info, coaches and unavailable players.
   News, article singles, pricing, legal and account are excluded SERVER-SIDE.
   Never touch premium gates, ads units or probability calculations. */
@media(min-width:1241px){
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-shell:not(.sg-account-shell),
 html[data-sg-theme] body.sg-body.sgw-editorial-mode:is(.sg-page-pronostici,.sg-page-fantacalcio) .sg-shell:not(.sg-account-shell){
   max-width:1490px!important;width:100%!important;
   display:grid!important;
   grid-template-columns:clamp(220px,16vw,240px) minmax(0,1fr)!important;
   column-gap:16px!important;
   padding:18px 18px 36px!important;
   box-sizing:border-box!important;
   margin-inline:auto!important;
 }
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-content-grid:has(>.sgw-right-rail),
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-news-layout.sg-editorial-landing-fantacalcio:has(>.sgw-right-rail){
   display:grid!important;
   grid-template-columns:minmax(0,1fr) clamp(290px,21vw,315px)!important;
   column-gap:16px!important;gap:16px!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
 }
 html[data-sg-theme] body.sg-body.sgw-editorial-mode :is(.sg-topbar-inner,.sg-sportbar-inner){
   max-width:1490px!important;padding-inline:18px!important;
 }
}
@media(min-width:1241px) and (max-width:1380px){
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-shell:not(.sg-account-shell),
 html[data-sg-theme] body.sg-body.sgw-editorial-mode:is(.sg-page-pronostici,.sg-page-fantacalcio) .sg-shell:not(.sg-account-shell){
   grid-template-columns:200px minmax(0,1fr)!important;
   column-gap:14px!important;padding-inline:14px!important;
 }
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-content-grid:has(>.sgw-right-rail),
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-news-layout.sg-editorial-landing-fantacalcio:has(>.sgw-right-rail){
   grid-template-columns:minmax(0,1fr) 278px!important;
   column-gap:14px!important;gap:14px!important;
 }
}
/* Original Fantacalcio template hid the navigation rail explicitly. */
@media(min-width:1241px){
 html[data-sg-theme] body.sg-body.sgw-editorial-mode.sg-page-fantacalcio .sg-shell:not(.sg-account-shell)>.sg-sidebar.sg-sidebar-competition-only{
  display:block!important;min-width:0!important;width:auto!important;max-width:none!important;
 }
 html[data-sg-theme] body.sg-body.sgw-editorial-mode.sg-page-fantacalcio .sg-shell:not(.sg-account-shell)>.sg-main{
  display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;
 }
}
/* Special editorial fantasy uses the same rails as the other football pages. */
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-news-layout.sg-editorial-landing-fantacalcio:has(>.sgw-right-rail)>.sg-news-main{
 background:transparent!important;box-shadow:none!important;
 min-width:0!important;max-width:100%!important;
}
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-news-layout.sg-editorial-landing-fantacalcio :is(.sg-news-heading,.sg-news-section,.sg-news-main){
 background:transparent!important;
}
/* Some legacy rail styles still force 300px width; keep it inside its grid cell. */
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-content-grid>.sgw-right-rail,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-news-layout>.sgw-right-rail{
 width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
/* Match info: source theme applied !important slab colors to each group. */
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-facts,
html[data-sg-theme="dark"] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-facts,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-facts>div,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-coaches,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-coaches>a,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries>a,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries>div,
html[data-sg-theme="dark"] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries,
html[data-sg-theme="dark"] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries>a,
html[data-sg-theme="dark"] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries>div{
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;
}
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-coaches{
 gap:0!important;
}
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-facts>div{
 border-bottom:1px solid var(--sgw-hairline)!important;
}
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries>a,
html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-coaches>a{
 border-bottom:1px solid var(--sgw-hairline)!important;
}
/* Do not remove photos, form-field pitch, badge backgrounds or Premium. */
@media(max-width:760px){
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-facts>div,
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-injuries>a,
 html[data-sg-theme] body.sg-body.sgw-editorial-mode .sg-main .sg-match-modern-v2225 .sg-match-coaches>a{padding-inline:12px!important}
}
