/* SerieAGoal v1.70 — three-column editorial redesign on Home, Pronostici and Match Center only. */
html[data-sg-theme] body.sgw-editorial-mode {
  --sgw-canvas:#f7f8fa;--sgw-raised:#ffffff;--sgw-ink:#161a20;
  --sgw-soft:#596474;--sgw-hairline:#e3e7ed;
  background:var(--sgw-canvas)!important;color:var(--sg-text);
}
html[data-sg-theme="dark"] body.sgw-editorial-mode {
  --sgw-canvas:#111316;--sgw-raised:#20252b;--sgw-ink:#f4f7fa;
  --sgw-soft:#b5becb;--sgw-hairline:#303945;
}
/* A single page canvas, no independent center column surface. */
body.sgw-editorial-mode .sg-shell,
body.sgw-editorial-mode .sg-main,
body.sgw-editorial-mode .sg-content-grid,
body.sgw-editorial-mode .sg-feed,
body.sgw-editorial-mode .sg-match-tab-panel {
  background:transparent!important;box-shadow:none!important;min-width:0;
}
/* Eliminate nested editorial boxes without touching the AI paywall or paid-market tiles. */
body.sgw-editorial-mode .sg-feed > :is(.sg-card,.sg-section,.sg-home-control-strip,.sg-predictions-carousel-section,.sg-home-predictions-interlude,.sg-ai-only-cta),
body.sgw-editorial-mode .sg-match-tab-panel > :is(.sg-card,.sg-section,.sg71-preview,.sg-lineups-section,.sg-result-card,.sgd-intro,.sgd-dossier),
body.sgw-editorial-mode .sg-feed > .sg-match-center-card,
body.sgw-editorial-mode .sg-match-center-card > :is(.sg-match-center-head,.sg-match-stage,.sg-match-primary-tabs),
body.sgw-editorial-mode .sg-feed > .sg-home-control-strip {
  background:transparent!important;border-radius:0!important;
  border-left:0!important;border-right:0!important;
  box-shadow:none!important;
}
body.sgw-editorial-mode .sg-match-tab-panel > .sg-card:not(.sg-ai-premium-panel),
body.sgw-editorial-mode .sg-match-tab-panel > .sg-section:not(.sg-ai-premium-panel),
body.sgw-editorial-mode .sg-match-center-card,
body.sgw-editorial-mode .sg-match-tab-panel > .sg71-preview {
  border-top:0!important;border-bottom:1px solid var(--sgw-hairline)!important;
  overflow:visible!important;
}
body.sgw-editorial-mode .sg-feed > .sg-card:not(.sg-ai-premium-panel) {overflow:visible!important}
body.sgw-editorial-mode .sg-feed .sg-card-title {
  background:transparent!important;border-color:var(--sgw-hairline)!important;min-height:42px;
}
body.sgw-editorial-mode .sg-match-tab-panel > .sg-card > .sg-card-title,
body.sgw-editorial-mode .sg-match-tab-panel > .sg-section > .sg-card-title {padding-left:16px!important;padding-right:16px!important}
body.sgw-editorial-mode .sg-match-tab-panel > .sg-card > :not(.sg-card-title),
body.sgw-editorial-mode .sg-match-tab-panel > .sg-section > :not(.sg-card-title) {max-width:100%;min-width:0}
body.sgw-editorial-mode .sg-home-control-strip,
body.sgw-editorial-mode .sg-match-tab-panel > .sg71-preview,
body.sgw-editorial-mode .sg-match-tab-panel > .sgd-intro {padding-block:12px!important}
body.sgw-editorial-mode .sg-match-tab-panel .sg71-lineups,
body.sgw-editorial-mode .sg-match-tab-panel .sg71-lineup-team,
body.sgw-editorial-mode .sg-match-tab-panel .sg71-preview-prose,
body.sgw-editorial-mode .sg-match-tab-panel .sg-lineups {
  background:transparent!important;box-shadow:none!important;
}
/* Premium must remain a clearly raised, protected surface. No visibility, blur,
   opacity, pointer-events or paywall entitlement settings are modified. */
body.sgw-editorial-mode #sg110-premium-analysis.sg-ai-premium-panel,
body.sgw-editorial-mode .sg110-verdict-card {
  background:var(--sgw-raised)!important;border:1px solid var(--sgw-hairline)!important;
  box-shadow:0 10px 30px rgba(15,23,42,.075)!important;border-radius:13px!important;
  margin-block:16px!important;overflow:hidden;
}
html[data-sg-theme="dark"] body.sgw-editorial-mode #sg110-premium-analysis.sg-ai-premium-panel,
html[data-sg-theme="dark"] body.sgw-editorial-mode .sg110-verdict-card {box-shadow:0 12px 36px rgba(0,0,0,.23)!important}
/* Hero without outer framed tile; bigger, fuller club crests and less dead space. */
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-center-card,
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-center-head,
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage.sg-match-stage-compact,
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-primary-tabs.sg-match-tabs-modern {
  background:transparent!important;box-shadow:none!important;border-radius:0!important;
}
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage.sg-match-stage-compact {
  min-height:200px!important;padding:12px 8px 15px!important;align-items:center!important;
}
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team-logo {
  width:clamp(90px,9vw,118px)!important;height:clamp(90px,9vw,118px)!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  border-radius:0!important;padding:0!important;overflow:visible!important;
}
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team-logo img {
  width:100%!important;height:100%!important;max-width:118px!important;max-height:118px!important;object-fit:contain!important;
}
/* Juventus black logo: visible against dark canvas. */
html[data-sg-theme="dark"] body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team[href*="/squadra/496-"] .sg-match-team-logo img {filter:brightness(0) invert(1)!important}
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team > strong {font-size:clamp(12px,1.1vw,16px)!important;max-width:180px!important;line-height:1.25!important}
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-score-center {align-self:center!important}
body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-primary-tabs {border-bottom:1px solid var(--sgw-hairline)!important}
/* Left column: one prominent live card, featured competitions below, then existing country leagues. */
body.sgw-editorial-mode .sg-sidebar.sg-sidebar-competition-only {overflow-y:auto;scrollbar-width:thin}
body.sgw-editorial-mode .sg-sidebar .sg-sidebar-competitions,
body.sgw-editorial-mode .sg-sidebar .sg-sidebar-featured {margin-top:10px}
body.sgw-editorial-mode .sg-sidebar .sg-sidebar-featured {
  background:var(--sgw-raised)!important;border:1px solid var(--sgw-hairline)!important;
  box-shadow:0 8px 25px rgba(15,23,42,.055)!important;border-radius:12px!important;padding:13px 10px!important;
}
body.sgw-editorial-mode .sg-sidebar .sg-sidebar-country-groups {padding-top:9px}
/* Raised module grammar, both themes. */
body.sgw-editorial-mode .sgw-raised {
  background:var(--sgw-raised);color:var(--sgw-ink);border:1px solid var(--sgw-hairline);
  box-shadow:0 10px 28px rgba(16,24,40,.075);border-radius:13px;
  padding:15px 14px;margin:0;min-width:0;
}
html[data-sg-theme="dark"] body.sgw-editorial-mode .sgw-raised {box-shadow:0 12px 28px rgba(0,0,0,.24)}
body.sgw-editorial-mode .sgw-module-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
body.sgw-editorial-mode .sgw-module-heading strong {font-size:12px;font-weight:850;line-height:1.3}
body.sgw-editorial-mode :is(.sgw-live-tag,.sgw-free-tag,.sgw-win-tag) {font-size:9px;font-weight:850;letter-spacing:.04em;white-space:nowrap}
body.sgw-editorial-mode .sgw-live-tag.is-live {color:#e64751}
body.sgw-editorial-mode .sgw-live-tag:not(.is-live),body.sgw-editorial-mode .sgw-win-tag {color:var(--sgw-soft)}
body.sgw-editorial-mode .sgw-free-tag {color:#148771}
body.sgw-editorial-mode .sgw-live-match {display:block;color:inherit;text-decoration:none}
body.sgw-editorial-mode .sgw-live-match >small {display:block;font-size:10px;color:var(--sgw-soft);line-height:1.4;margin-bottom:9px}
body.sgw-editorial-mode .sgw-live-team {display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:7px;align-items:center;padding-block:5px}
body.sgw-editorial-mode .sgw-live-team img {width:23px;height:23px;object-fit:contain}
body.sgw-editorial-mode .sgw-live-team b {font-size:11px;line-height:1.3;min-width:0;overflow-wrap:break-word}
body.sgw-editorial-mode .sgw-live-team strong {font-size:15px;font-variant-numeric:tabular-nums}
body.sgw-editorial-mode .sgw-live-footer {display:flex;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--sgw-hairline);font-weight:750;font-size:10px}
body.sgw-editorial-mode .sgw-live-footer span {color:var(--sgw-soft);text-align:right}
body.sgw-editorial-mode .sgw-small-link {font-size:11px;text-decoration:underline}
body.sgw-editorial-mode .sgw-empty {font-size:11px;line-height:1.6;color:var(--sgw-soft);margin:5px 0 0}
/* Right rail: free public double-chance ring + verified historical winners above sticky AdSense. */
body.sgw-editorial-mode .sg-content-grid:has(>.sgw-right-rail){align-items:stretch!important}
body.sgw-editorial-mode .sgw-right-rail {position:static!important;display:flex!important;flex-direction:column;gap:14px;min-width:0;align-self:stretch!important;overflow:visible!important}
body.sgw-editorial-mode .sgw-right-rail .sgw-ad-sticky {position:sticky;top:115px;min-height:180px;min-width:0}
body.sgw-editorial-mode .sgw-right-rail .sgw-recommended,
body.sgw-editorial-mode .sgw-right-rail .sgw-results {flex:0 0 auto}
body.sgw-editorial-mode .sgw-free-match {display:grid;grid-template-columns:100px minmax(0,1fr);gap:9px;align-items:center;min-width:0}
body.sgw-editorial-mode .sgw-gauge {position:relative;width:100px;height:100px;display:grid;place-items:center}
body.sgw-editorial-mode .sgw-gauge svg {position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:8}
body.sgw-editorial-mode .sgw-gauge-track {stroke:var(--sgw-hairline)}
body.sgw-editorial-mode .sgw-gauge-progress {stroke:#20b99a;stroke-linecap:round;stroke-dasharray:0 301.6;transition:stroke-dasharray .3s ease}
body.sgw-editorial-mode .sgw-gauge>span {font-size:21px;font-weight:900;z-index:1;font-variant-numeric:tabular-nums}
body.sgw-editorial-mode .sgw-free-copy {display:flex;flex-direction:column;gap:6px;min-width:0;line-height:1.35}
body.sgw-editorial-mode .sgw-free-copy small {color:var(--sgw-soft);font-size:10px}
body.sgw-editorial-mode .sgw-free-copy strong {font-size:12px;overflow-wrap:break-word}
body.sgw-editorial-mode .sgw-free-copy span {font-size:11px;line-height:1.5;color:var(--sgw-soft)}
body.sgw-editorial-mode .sgw-recommended > a {display:inline-block;font-weight:750;font-size:11px;color:var(--sgw-ink);margin-top:15px;text-decoration:underline;text-underline-offset:3px}
body.sgw-editorial-mode [data-sgw-winners] {list-style:none;margin:0;padding:0}
body.sgw-editorial-mode [data-sgw-winners] li {padding:10px 0;border-top:1px solid var(--sgw-hairline)}
body.sgw-editorial-mode [data-sgw-winners] li:first-child {border-top:0}
body.sgw-editorial-mode [data-sgw-winners] li a {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;color:var(--sgw-ink);text-decoration:none}
body.sgw-editorial-mode [data-sgw-winners] li strong {font-size:11px;overflow-wrap:break-word;line-height:1.4}
body.sgw-editorial-mode [data-sgw-winners] li em {font-size:10px;font-style:normal;font-weight:800;color:#128a64;white-space:nowrap}
body.sgw-editorial-mode [data-sgw-winners] li small {display:block;color:var(--sgw-soft);font-size:10px;padding-top:4px}
body.sgw-editorial-mode [data-sgw-winners] li a:hover strong {text-decoration:underline}
/* Sidebar presentation only for chosen views; other site sections untouched. */
@media(min-width:1241px){body.sgw-editorial-mode .sg-shell {gap:14px!important}body.sgw-editorial-mode .sg-content-grid:has(>.sgw-right-rail){gap:14px!important}}
@media(max-width:1240px){body.sgw-editorial-mode .sgw-right-rail{display:none!important}}
@media(max-width:760px){
  body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage.sg-match-stage-compact{min-height:154px!important;padding:9px 7px 13px!important;grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr)!important}
  body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team-logo {width:clamp(73px,23vw,98px)!important;height:clamp(73px,23vw,98px)!important;padding:0!important}
  body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team-logo img {max-width:98px!important;max-height:98px!important}
  body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team > strong{max-width:120px!important;font-size:clamp(10px,3vw,13px)!important}
  body.sgw-editorial-mode .sg-match-tab-panel > .sg-card:not(.sg-ai-premium-panel){padding-top:10px!important;padding-bottom:12px!important}
  body.sgw-editorial-mode #sg110-premium-analysis.sg-ai-premium-panel,body.sgw-editorial-mode .sg110-verdict-card {border-radius:0!important;margin-inline:0!important}
}
@media(max-width:380px){body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage.sg-match-stage-compact{grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr)!important}body.sgw-editorial-mode .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team-logo{width:clamp(68px,21vw,83px)!important;height:clamp(68px,21vw,83px)!important}}

/* WinScore-style plain center strips: match lists and date navigation are
   structural rows, not another layer of cards. */
html[data-sg-theme] body.sgw-editorial-mode .sg-feed :is(.sg-date-strip,.sg-match-row-wrap,.sg-league-head,.sg-home-control-strip,.sg-match-tabs-modern) {
  background:transparent!important;border-radius:0!important;box-shadow:none!important;
}
html[data-sg-theme] body.sgw-editorial-mode .sg-feed .sg-match-row-wrap {
  border-left:0!important;border-right:0!important;border-top:0!important;
  border-bottom:1px solid var(--sgw-hairline)!important;
}
html[data-sg-theme] body.sgw-editorial-mode .sg-match-tab-panel > .sg-card > .sg-card-title,
html[data-sg-theme] body.sgw-editorial-mode .sg-match-tab-panel > .sg-section > .sg-card-title,
html[data-sg-theme] body.sgw-editorial-mode .sg-feed > .sg-card > .sg-card-title {
  background:transparent!important;box-shadow:none!important;
}
/* Older Match Center themes forced white square logo tiles even in night mode.
   Outrank that legacy rule on this page only; keep original club crest artwork. */
html[data-sg-theme] body.sgw-editorial-mode.sg-page-partite .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team-logo {
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;border-radius:0!important;overflow:visible!important;
}
html[data-sg-theme="dark"] body.sgw-editorial-mode.sg-page-partite .sg-match-modern-v2225 .sg-match-stage-compact .sg-match-team[href*="/squadra/496-"] .sg-match-team-logo img {
  filter:brightness(0) invert(1)!important;
}
/* The featured competitions sit directly below the one raised LIVE module. */
html[data-sg-theme] body.sgw-editorial-mode.sg-body .sg-sidebar.sg-sidebar-competition-only .sg-sidebar-competitions .sg-sidebar-featured {
  background:var(--sgw-raised)!important;
  border:1px solid var(--sgw-hairline)!important;
  border-radius:12px!important;
  box-shadow:0 8px 25px rgba(15,23,42,.05)!important;
  padding:13px 10px!important;
}
/* Flatten the secondary containers inside Match Center tabs without changing
   their content hierarchy. The Premium AI panel and its gated market tiles
   are intentionally excluded. */
html[data-sg-theme] body.sgw-editorial-mode.sg-page-partite .sg-match-tab-panel :is(
  .sg71-lineups,.sg71-lineup-team,.sg71-lineups-grid,.sg-lineup-team,.sg-lineup-card,
  .sg-stats-card,.sg-stat-card,.sg-detail-card,.sg-timeline-card,.sg-h2h-card
) {
  background:transparent!important;box-shadow:none!important;
  border-radius:0!important;
}
