/* Page introductions only. Keep media, sponsor artwork and match-state colors intact.
   The same file ships with each independently served RLF application. */
html[data-theme] body [data-site-banner]:not([data-site-banner="existing"]){
  --banner-art-width:clamp(160px,25vw,290px);
  --banner-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 180' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 89h384M32 89l64-43 64 43M245 89l30-69h26l30 69M275 20v69m26-69v69m-26-46h26m-26 22h26m-26-22 26 22-26 24m-9-69h44M164 75h65m-65 7h65m-53-14h41'/%3E%3Ccircle cx='288' cy='20' r='12'/%3E%3Cpath d='m280 12 16 16m-16 0 16-16M18 112h384v54H18zM210 112v54M18 124h48v30H18m384-30h-48v30h48M18 132h19v14H18m384-14h-19v14h19'/%3E%3Cellipse cx='210' cy='139' rx='24' ry='19'/%3E%3Ccircle cx='210' cy='139' r='1.8' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  box-sizing:border-box;position:relative;isolation:isolate;display:block;
  min-width:0;min-height:164px;margin:12px 0 24px;
  padding:26px calc(var(--banner-art-width) + 56px) 26px 28px;
  background:var(--panel2,var(--panel,#edf2f6));color:var(--text,#142432);
  border:1px solid var(--line,#cdd7df);border-radius:12px;box-shadow:none;
  text-shadow:none;overflow-wrap:anywhere;
}
html[data-theme] body [data-site-banner]:not([data-site-banner="existing"])::after{
  content:"";display:block;position:absolute;inset:auto 28px auto auto;
  top:50%;transform:translateY(-50%);width:var(--banner-art-width);height:auto;
  aspect-ratio:7/3;border:0;box-shadow:none;background:var(--muted,#526575);
  mask:var(--banner-art) center/contain no-repeat;
  -webkit-mask:var(--banner-art) center/contain no-repeat;
  pointer-events:none;opacity:.78;
}
html[data-theme] body [data-site-banner]:not([data-site-banner="existing"])::before{content:none}
html[data-theme] body [data-site-banner]:not([data-site-banner="existing"]) h1,
html[data-theme] body h1[data-site-banner]{
  font-size:clamp(30px,3.7vw,48px);line-height:1.15;letter-spacing:-.025em;
  font-style:normal;font-weight:800;color:var(--text,#142432)!important;
  text-shadow:none;text-transform:none;text-wrap:balance;
}
html[data-theme] body [data-site-banner]:not([data-site-banner="existing"]) h1{margin:0 0 12px;max-width:25ch}
html[data-theme] body [data-site-banner]:not([data-site-banner="existing"]) p{
  margin:10px 0 0;max-width:62ch;font-size:15px;line-height:1.6;color:var(--muted,#526575);
}
html[data-theme] body [data-site-banner] :is(.teams-hero-copy,.calendar-hero-copy){margin:0;max-width:none}
html[data-theme] body [data-site-banner] :is(.teams-crumb,.calendar-breadcrumb){display:block;margin-bottom:14px;color:var(--muted);font-size:12px}
html[data-theme] body [data-site-banner] :is(.teams-kicker,.calendar-kicker,.teams-slogan,.calendar-hero-slogan,.eyebrow){display:none}
html[data-theme] body [data-site-banner] :is(.teams-hero-copy,.calendar-hero-copy) h1::before{content:none}
html[data-theme] body [data-site-banner] .teams-hero-copy strong{font-size:17px;color:var(--text)}
/* Variants repeat the explicit exclusion to keep the same specificity as the shared base. */
html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]){--banner-art-width:156px;min-height:110px;padding-block:22px}
html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]) h1,
html[data-theme] body h1[data-site-banner="compact"]:not([data-site-banner="existing"]){font-size:clamp(26px,3vw,36px)}
html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]) p{font-size:14px}
html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]) :is(.status,.analytics-timezone){display:inline-block;margin-top:12px}
html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]) .download{position:static;margin-top:16px}
html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]) .hero-note{margin-top:16px}
/* The match title supplies the artwork; the scoreboard keeps its full content width. */
html[data-theme] body [data-site-banner="score"]:not([data-site-banner="existing"]){padding:24px;min-height:0}
html[data-theme] body [data-site-banner="score"]:not([data-site-banner="existing"])::after{
  content:none;display:none;
}
html[data-theme] body .hero[data-site-banner="score"]:not([data-site-banner="existing"]){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
html[data-theme] body [data-site-banner] .hero-mark{display:none}
html[data-theme] body [data-site-banner="feature"]:not([data-site-banner="existing"]){padding:24px;min-height:280px;margin:0}
html[data-theme] body [data-site-banner="feature"]:not([data-site-banner="existing"])::after{
  position:static;transform:none;width:min(100%,240px);margin:24px 0 0;aspect-ratio:7/3;
}
html[data-theme] body [data-site-banner="feature"]:not([data-site-banner="existing"]) strong{display:block;font-size:26px;line-height:1.2;margin:0;color:var(--text)}
html[data-theme] body [data-site-banner="feature"]:not([data-site-banner="existing"])>span{display:none}
html[data-theme] body [data-site-banner="feature"]:not([data-site-banner="existing"]) p{font-size:14px}
/* Direct core entry retains the official league logo and its existing content. */
html[data-theme] body [data-site-banner="brand"]:not([data-site-banner="existing"]){padding:28px 0;min-height:0}
html[data-theme] body [data-site-banner="brand"]:not([data-site-banner="existing"])::after{content:none}
html[data-theme] body [data-site-banner="brand"]:not([data-site-banner="existing"]) .hero-content{color:var(--text)}
html[data-theme] body [data-site-banner="brand"]:not([data-site-banner="existing"]) h1 span{color:inherit}
html[data-theme] body [data-site-banner] ::selection,
html[data-theme] body [data-site-banner]::selection{background:var(--text);color:var(--panel)}
html[data-theme] body [data-site-banner] :is(a,button):focus-visible{outline:3px solid var(--accent);outline-offset:4px}
/* Narrow layouts place artwork in normal flow, always after the complete title/copy. */
@media(max-width:740px){
  html[data-theme] body [data-site-banner]:not([data-site-banner="existing"]){
    min-height:0;margin:8px 0 18px;padding:20px 18px;border-radius:12px;
  }
  html[data-theme] body [data-site-banner]:not([data-site-banner="existing"])::after{
    position:static;inset:auto;transform:none;width:min(100%,200px);margin:18px 0 0;
  }
  html[data-theme] body [data-site-banner]:not([data-site-banner="existing"]) h1{font-size:30px;max-width:none;line-height:1.2}
  html[data-theme] body [data-site-banner]:not([data-site-banner="existing"]) p{font-size:14px;max-width:62ch}
  html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]){padding:18px;min-height:0}
  html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"]) h1,
  html[data-theme] body h1[data-site-banner="compact"]:not([data-site-banner="existing"]){font-size:27px}
  html[data-theme] body [data-site-banner="compact"]:not([data-site-banner="existing"])::after{width:112px;margin-top:14px}
  html[data-theme] body [data-site-banner="score"]:not([data-site-banner="existing"]){padding:16px 12px}
  html[data-theme] body .hero[data-site-banner="score"]:not([data-site-banner="existing"]){grid-template-columns:1fr}
  html[data-theme] body [data-site-banner="feature"]:not([data-site-banner="existing"]){display:none}
  html[data-theme] body [data-site-banner="brand"]:not([data-site-banner="existing"]){padding:24px 0}
}
