/* Public desktop pages share Football's 1,400 px content grid.
   Backgrounds, the masthead, sponsor ticker and the full-bleed jersey rack keep their existing geometry. */
@media(min-width:761px){
 .page{--invaders-content-max:1400px;--invaders-content-edge:max(5%,calc((100% - 1400px)/2))}

 /* Full-width sections keep their backgrounds; their content follows one shared inset. */
 body .page #main .team-showcase{padding-inline:var(--invaders-content-edge)}
 body .page>.closing-partners,body .page>footer,body .page>.principal-partners{padding-inline:var(--invaders-content-edge)}
 body .page #main :is(.banner-community,.banner-footer){width:100%;max-width:var(--invaders-content-max);margin-inline:auto}
 /* Match the exposed gutters around Home's bounded Next Game panel to the dark site surface. */
 body[data-mobile-layout="home"] .page #main{background:#101114}
 /* Keep the entire Next Game panel, including its photograph and borders, on the content grid. */
 body .page #main .stadium-game{box-sizing:border-box;width:min(var(--invaders-content-max),90%);max-width:var(--invaders-content-max);margin-inline:auto;padding-inline:clamp(20px,2.5vw,40px);border-inline:1px solid #ffffff20}
 body .page #main .stadium-game .game-actions{flex-direction:column;align-items:stretch}
 body .page #main .stadium-game .game-actions .eventfrog-ticket{flex-shrink:0}

 /* Wrappers use the same effective content width, without a second inset inside them. */
 body .page #main :is(.fb-wrap,.ng-wrap,.cheer-wrap,.board-wrap){box-sizing:border-box;width:min(var(--invaders-content-max),90%);max-width:var(--invaders-content-max);margin-inline:auto}
 body .page #main .ng-wrap{padding-inline:0}
 /* Draw the board banner's existing accent inside the surface so it cannot shift its content grid. */
 body.board-page .page #main .board-hero{border-left-width:0;box-shadow:inset 4px 0 #a5a7ac}
 body.partners-page .page #main :is(.sponsor-profiles,.sponsoring-explorer){box-sizing:border-box;width:min(var(--invaders-content-max),90%);max-width:var(--invaders-content-max);padding-inline:0;margin-inline:auto}

 /* Hero text stays on the same grid while the photograph remains edge to edge. */
 body .page #main :is(.fb-hero,.ng-hero,.cheer-hero){padding-inline:var(--invaders-content-edge)}
 body .page #main :is(.fb-hero-copy,.ng-hero-copy,.cheer-hero-inner){width:100%;max-width:var(--invaders-content-max);margin-inline:auto}
 body .page #main .partners-hero-content{padding-inline-start:var(--invaders-content-edge)}
 body .page #main :is(.ng-hero-foot,.cheer-hero-footer,.partners-hero-bottom){left:var(--invaders-content-edge);right:var(--invaders-content-edge)}
}

/* Home sections share the banner's base tone, including the exposed panel gutters. */
body[data-mobile-layout="home"]{--invaders-home-bg:#090a0c}
body[data-mobile-layout="home"] .page,
body[data-mobile-layout="home"] .page #main,
body[data-mobile-layout="home"] .page #main :is(.nation-banner,.team-showcase){background-color:var(--invaders-home-bg)}
body[data-mobile-layout="home"] .nation-banner .banner-image{
 -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 80px),transparent 100%);
 mask-image:linear-gradient(to bottom,#000 calc(100% - 80px),transparent 100%)
}
/* Team emblems are nested inside their team rows; direct card images are league badges. */
body .results-belt .result-card>img,
body .results-belt :is(.result-league-mark,.result-league-watermark,.result-competition img){display:none!important}

/* Shared public footer: the selected Invaders edge and one continuous dark surface. */
body .page>.closing-partners,
body .page>footer{position:relative;background:#141517;color:#ededeb}
body .page>.closing-partners{border-top:1px solid #5a5b60;padding-top:38px;padding-bottom:28px}
body .page>.closing-partners::before{
 content:'';position:absolute;top:-5px;left:var(--invaders-content-edge,5%);
 width:130px;height:6px;background:#e4e4e1;pointer-events:none;
 clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%)
}
body .page>footer{border-top:0;padding-top:25px;padding-bottom:25px}
body .page>footer::before{
 content:'';position:absolute;top:0;left:var(--invaders-content-edge,5%);
 right:var(--invaders-content-edge,5%);height:1px;background:#3b3c40;pointer-events:none
}
@media(max-width:760px){
 body .page>.closing-partners{padding-top:30px;padding-bottom:24px}
 body .page>.closing-partners::before{left:20px;width:100px}
 body .page>footer::before{left:20px;right:20px}
}

/* Club emblem replaces the small rule in the Home banner label. */
body .nation-banner .banner-eyebrow{align-items:center;gap:14px}
body .nation-banner .banner-club-logo{display:block;flex:none;width:40px;height:48px;object-fit:contain}
@media(max-width:760px){
 body .nation-banner .banner-eyebrow{gap:10px}
 body .nation-banner .banner-club-logo{width:30px;height:36px}
}

/* Balance the Home banner's club label and stadium details on one inset row. */
@media(min-width:761px){
 body .page #main .nation-banner{padding-block-start:40px}
 body .page #main .nation-banner .banner-eyebrow{margin-block:0}
 body .page #main .nation-banner .banner-location{
  top:40px;right:max(5%,calc((100% - 1400px)/2));min-height:48px;align-items:center;gap:14px
 }
 body .page #main .nation-banner .hero-intro{margin-top:24px}
}

/* Public phone layouts share a gutter and a comfortable reading width. */
@media (max-width:760px) {
 .page { --phone-edge:clamp(16px,5vw,28px); --phone-gap:clamp(16px,4vw,24px); }
 .page #main :is(.cheer-wrap,.board-wrap) { width:calc(100% - 2 * var(--phone-edge)); max-width:620px; margin-inline:auto; }
 .page #main :is(.team-showcase,.stadium-game,.sponsor-profiles,.sponsoring-explorer,.ng-wrap) { padding-inline:var(--phone-edge); }
 .page #main :is(.ng-section-heading,.cheer-section-heading,.board-section-head,.sponsoring-heading) h2 { text-wrap:balance; line-height:1.06; }
 .page :is(.board-email,.sponsor-profile-link,.cheer-button,.ng-team-shortcuts a) { min-height:44px; }
 .page .closing-partners { padding-inline:var(--phone-edge); gap:24px; }
 .page .closing-partners .affiliation-copy h3 { line-height:1.17; }
 .page .closing-partners .affiliation-card { min-width:0; }

 /* Cheer: give the team photo its own area above the title and primary action. */
 .cheer-page .page #main .cheer-hero {
  display:flex; flex-direction:column; align-items:stretch; isolation:isolate;
  gap:0; min-height:0; height:auto; max-height:none; padding:0 var(--phone-edge) 24px;
  background:#101013;
 }
 .cheer-page #main .cheer-hero .cheer-hero-photo {
  position:relative; inset:auto; order:0; z-index:0; display:block; flex:none;
  width:calc(100% + var(--phone-edge) * 2); max-width:none; height:clamp(220px,66vw,360px);
  margin-inline:calc(-1 * var(--phone-edge)); transform:none; opacity:1;
  object-fit:cover; object-position:50% 12%; mask-image:linear-gradient(#000 72%,transparent);
 }
 .cheer-page #main .cheer-hero::after, .cheer-page #main .cheer-hero-atmosphere { display:none; }
 .cheer-page #main .cheer-hero > .home-pennant {
  inset:0 auto auto var(--phone-edge); width:clamp(42px,12vw,65px); transform:none;
 }
 .cheer-page #main .cheer-hero .cheer-hero-inner,
 .cheer-page #main .cheer-hero .cheer-hero-copy { display:contents; }
 .cheer-page #main .cheer-hero-copy,
 .cheer-page #main .cheer-hero #cheer-title,
 .cheer-page #main .cheer-hero-description { text-align:left; }
 .cheer-page #main .cheer-hero #cheer-title { order:1; width:100%; max-width:540px; align-self:center; margin:0 0 8px; font-size:clamp(38px,11.8vw,66px); line-height:.98; }
 .cheer-page #main .cheer-hero-description { order:2; width:100%; max-width:540px; align-self:center; margin:0 0 18px; font-size:16px; line-height:1.45; }
 .cheer-page #main .cheer-hero-actions { order:4; align-self:center; width:auto; max-width:100%; margin:24px auto 0; justify-content:center; }
 .cheer-page #main .cheer-hero-actions > .cheer-button { width:auto; max-width:100%; min-height:46px; padding:12px 18px; justify-content:center; gap:18px; font-size:11px; letter-spacing:.7px; }
 .cheer-page #main .cheer-hero-actions > .cheer-button > span { font-variant-emoji:text; }
 .cheer-page .page #main .cheer-hero > .cheer-musicbox { order:3; width:min(100%,340px); margin:20px auto 0; padding:0; }
 .cheer-page .page #main .cheer-musicbox .inc-musicbox { width:100%; max-width:100%; box-sizing:border-box; }
 .cheer-page #main .cheer-hero-footer { order:5; margin:18px auto 0; max-width:540px; font-size:10px; line-height:1.45; }
 .cheer-page #main .cheer-section { padding-block:clamp(30px,8vw,48px); }
 .cheer-page #main .cheer-section-heading { gap:12px; margin-bottom:20px; }
 .cheer-page #main .cheer-team-grid { gap:var(--phone-gap); }
 .cheer-page #main .cheer-team-brand { height:clamp(134px,37vw,190px); padding:16px; }
 .cheer-page #main .cheer-team-brand > img { height:100%; max-width:65%; }
 .cheer-page #main .cheer-team-content { padding:var(--phone-gap); }
 .cheer-page #main .cheer-team-intro { min-height:0; margin:12px 0 16px; line-height:1.55; }
 .cheer-page #main .cheer-training strong { font-size:clamp(20px,5.8vw,26px); }
 .cheer-page #main .cheer-events { gap:10px; }
 .cheer-page #main .cheer-events li { display:grid; grid-template-columns:62px minmax(0,1fr); gap:14px; padding:16px; }
 .cheer-page #main .cheer-events h3 { font-size:clamp(20px,5.6vw,26px); }
 .cheer-page #main .cheer-faq summary { font-size:16px; gap:12px; }

 .page #main .team-showcase .team-photo-card { height:clamp(230px,68vw,350px); }
 .nextgen-page #main .ng-section { padding-block:clamp(32px,8vw,48px); }
 .board-page #main .board-grid,.partners-page #main .sponsor-standard-grid { gap:var(--phone-gap); }
 .board-page #main .board-card-body { min-width:0; padding:var(--phone-gap); }
 .board-page #main .board-email-address { overflow-wrap:anywhere; }
 .partners-page #main .sponsor-standard-card { padding:var(--phone-gap); }
 .football-page #main :is(.fb-section-heading,.fb-section-head) h2 { text-wrap:balance; }
 .page footer { row-gap:18px; padding-inline:var(--phone-edge); }
}
@media(max-width:430px) {
 .page .closing-partners .affiliation-grid { grid-template-columns:minmax(0,1fr); }
 .page .closing-partners .affiliation-card { min-height:54px; padding:8px 28px 8px 10px; }
 .page .closing-partners .affiliation-copy h3 { font-size:16px; }
}

@media(max-width:760px){
 .football-page .page #main .fb-hero {padding-inline:var(--phone-edge);padding-bottom:28px}
 .football-page #main .fb-hero .fb-hero-copy {width:100%;margin-inline:auto;max-width:580px}
 .football-page #main .fb-hero .history-language-buttons {display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,28%);align-items:center;gap:12px}
 .football-page #main .fb-hero .history-language-buttons>* {min-width:0;max-width:100%;margin:0}
 .football-page #main .hero-video-open,.football-page #main .hero-video-open svg {width:100%;height:auto}
 .football-page #trophy-room {margin:0;padding:12px var(--phone-edge) 20px}
 .football-page #trophy-room .tr-wall {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;max-width:580px;margin:auto;overflow:visible;scroll-snap-type:none}
 .football-page #trophy-room .tr-locker-case {width:100%;height:clamp(118px,32vw,160px)}
 .football-page #trophy-room .tr-year {opacity:1}
 .football-page #trophy-room .tr-plinth {max-width:80%}
 .page #main .stadium-game {padding-inline:var(--phone-edge);row-gap:18px}
 .page #main .stadium-game .fixture-pair {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;align-items:center}
 .page #main .stadium-game .fixture-club {display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px}
 .page #main .stadium-game .fixture-club strong {grid-column:2;grid-row:1;text-align:left;overflow-wrap:anywhere}
 .page #main .stadium-game .fixture-club :is(img,.opponent-mark) {grid-column:1;grid-row:1;max-width:34px}
 .page #main .stadium-game .fixture-versus {margin:0;padding:0 0 0 44px;text-align:left}
 .page #main .stadium-game .game-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px;width:100%;padding:0}
 .page #main .stadium-game .game-actions>* {display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0}
 .page #main .stadium-game .game-actions>a {border:1px solid #ffffff35;padding:10px;gap:10px}
 .page #main .stadium-game .eventfrog-ticket {flex-direction:column}
 .page #main .stadium-game .ticket-provider {align-items:center;justify-content:center}
}

@media (max-width:760px) {
 .partners-page .page #main .partners-hero {
  display:grid; grid-template-columns:minmax(0,1fr); justify-items:center;
  row-gap:0; height:auto; min-height:0; max-height:none; padding:clamp(48px,14vw,76px) var(--phone-edge) 28px;
 }
 .partners-page #main .partners-hero > .hero-pennant-pair {
  --pennant-width:clamp(32px,9vw,52px);
  position:absolute; inset:0 max(var(--phone-edge),calc((100% - 540px)/2)) auto auto;
  width:auto; padding:0; gap:6px;
 }
 .partners-page .page #main .partners-hero-content { display:contents; }
 .partners-page .page #main #partners-hero-title {
  grid-row:1; width:min(100%,540px); box-sizing:border-box; padding-right:clamp(78px,21vw,120px); margin:0; font-size:clamp(36px,10vw,58px); line-height:.98;
 }
 .partners-page #main .partners-hero-intro { grid-row:2; width:min(100%,540px); margin:12px 0 0; max-width:none; font-size:16px; line-height:1.5; }
 .partners-page #main .partners-packages-link {
  grid-row:4; display:flex; width:min(100%,280px); min-height:46px; box-sizing:border-box;
  justify-content:space-between; align-items:center; padding:10px 16px; margin:0;
 }
 .partners-page #main .partners-hero .partners-hero-jersey {
  position:relative; inset:auto; translate:none; margin:0;
  grid-row:3; width:clamp(152px,47vw,210px); height:auto; aspect-ratio:1; margin:22px 0 14px;
 }
 .partners-page #main .partners-hero-jersey svg { transform:none; }
}

@media (max-width:760px) {
 body[data-mobile-layout="home"] .results-belt {display:none}
 body[data-mobile-layout="home"] .page #main .nation-banner {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;
  column-gap:12px;row-gap:16px;padding:0 var(--phone-edge);min-height:0;
 }
 body[data-mobile-layout="home"] .page #main .banner-location {
  position:static;grid-column:1;grid-row:1;align-self:center;min-width:0;text-align:left;
 }
 .nation-banner .banner-location>.location-cross {display:none}
 .nation-banner .banner-location>div {margin:0;gap:3px}
 body .page #main :is(.nation-banner,.board-hero)>.hero-pennant-pair {
  --pennant-width:clamp(34px,9vw,52px);
  position:static;inset:auto;transform:none;width:auto;justify-self:end;
  justify-content:flex-end;padding:0;gap:6px;
 }
 .nation-banner>.hero-pennant-pair {grid-column:2;grid-row:1}
 .nation-banner :is(.banner-content,.banner-community) {grid-column:1/-1;min-width:0;width:100%}
 .nation-banner .banner-content .hero-intro {margin:0 0 8px}
 .nation-banner .banner-content #hero-title {margin:0;line-height:.98}
 .nation-banner .banner-manifesto {margin:14px 0 0}
 .nation-banner .championships {width:100%;margin:24px 0 0}
 .nation-banner .championships ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:0;padding:0}
 .nation-banner .championships ul>li {min-width:0;padding-inline:4px}
 .board-page .page #main .board-hero {
  display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:0;
  padding:0 var(--phone-edge) 32px;height:auto;min-height:0;
 }
 .board-page .page #main .board-hero>.hero-pennant-pair {grid-area:1/1;z-index:2}
 .board-page .page #main .board-hero .board-wrap.board-hero-layout {
  grid-area:1/1;display:block;width:100%;max-width:none;min-height:0;margin:0;padding:28px 0 0;
 }
 .board-page .page #main .board-hero-copy {width:100%;max-width:none}
 .board-page .page #main #board-title {margin:0;padding-right:clamp(85px,21vw,125px);font-size:clamp(36px,10vw,60px);line-height:1}
 .board-page .page #main .board-hero-copy>p {margin:24px 0 0;font-size:16px;line-height:1.5}
 .board-page .page #main .board-hero-contact {width:100%;margin-top:18px;box-sizing:border-box}
}
@media(max-width:760px){.board-page .page #main .board-hero-contact>.board-contact-arrow{margin-inline-start:auto;font-family:Arial,sans-serif}}
