/* Public pages: phone layouts only. Desktop styles remain untouched. */
@media (max-width:760px){
 body[data-mobile-layout] .site-header .header{padding-inline:12px;gap:6px}
 body[data-mobile-layout] .site-header .brand{min-width:0;gap:0}
 body[data-mobile-layout] .site-header .brand>img{display:none}
 body[data-mobile-layout] .site-header .brand .football-wordmark{width:clamp(64px,calc(100vw - 280px),110px)}
 body[data-mobile-layout] .site-header .header-join{min-width:0;padding-inline:10px;font-size:14px}
 body[data-mobile-layout] .site-header .header-login{min-width:0;max-width:102px;padding-inline:8px;gap:5px}
 body[data-mobile-layout] .site-header .menu-toggle{width:42px;min-width:42px;padding-inline:8px}
 body[data-mobile-layout] .site-header .header nav{max-height:calc(100dvh - 140px);overflow-y:auto;padding-inline:20px}
 body[data-mobile-layout] :is(main,section,article,form,fieldset){min-width:0}
 body[data-mobile-layout] main :is(h1,h2,h3){max-width:100%}
 body[data-mobile-layout] main h1 br{display:initial}
 body[data-mobile-layout] :is(dialog,.homepage-login){box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
 body[data-mobile-layout] dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;max-width:100%;font-size:16px}
 body[data-mobile-layout] dialog :is(h1,h2,h3,p,label,a){overflow-wrap:anywhere}
 body[data-mobile-layout] footer{gap:22px;min-width:0}
 body[data-mobile-layout] footer>div{flex-wrap:wrap;gap:16px}
 body[data-mobile-layout] .invaders-cinema::before{inset-inline:0}

 /* HOME: all teams are visible without swiping the card rail. */
 [data-mobile-layout=home] .nation-banner{min-width:0}
 [data-mobile-layout=home] #main #hero-title{font-size:clamp(54px,14vw,92px);line-height:.98}
 [data-mobile-layout=home] .team-showcase{padding:36px 20px}
 [data-mobile-layout=home] .team-showcase .section-top{align-items:flex-start;flex-wrap:wrap}
 [data-mobile-layout=home] .team-showcase .team-links{grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;gap:16px;overflow:visible;scroll-snap-type:none;padding-bottom:0}
 [data-mobile-layout=home] .team-showcase .team-photo-card{width:100%;height:300px;min-height:0;box-sizing:border-box}
 [data-mobile-layout=home] :is(.team-carousel-controls,.team-swipe-hint){display:none}
 [data-mobile-layout=home] .stadium-game{grid-template-columns:minmax(0,1fr) 48px;grid-template-areas:'intro intro' 'match match' 'venue league' 'actions actions';gap:22px 14px;padding:30px 20px}
 [data-mobile-layout=home] .stadium-game .next-label{grid-area:intro;flex-wrap:wrap;min-width:0;max-width:100%;padding:0 0 18px}
 [data-mobile-layout=home] .stadium-game .next-label h2{white-space:normal;font-size:clamp(34px,9vw,44px);margin:0}
 [data-mobile-layout=home] .stadium-game .fixture-pair{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
 [data-mobile-layout=home] .stadium-game .fixture-club{width:100%;min-width:0;gap:12px}
 [data-mobile-layout=home] .stadium-game .fixture-club strong{font-size:clamp(24px,6.5vw,32px);min-width:0;white-space:normal;overflow-wrap:anywhere}
 [data-mobile-layout=home] .stadium-game .fixture-versus{padding-left:46px}
 [data-mobile-layout=home] .stadium-game .fixture-club-logo{width:34px;height:40px;flex:none}
 [data-mobile-layout=home] .stadium-game .game-venue{padding-left:0;min-width:0;overflow-wrap:anywhere}
 [data-mobile-layout=home] .stadium-game .game-actions{grid-area:actions;display:flex;flex-wrap:wrap;gap:14px;min-width:0}
 [data-mobile-layout=home] .stadium-game .game-actions>a{min-width:0;min-height:44px}
 [data-mobile-layout=home] .stadium-game .game-actions .button{min-width:0;flex:1 1 160px;max-width:100%}
 [data-mobile-layout=home] .stadium-game>.next-league-logo{width:42px;height:50px}
 [data-mobile-layout=home] .fixture-meta{gap:18px;flex-wrap:wrap}
 [data-mobile-layout=home] .merch-meta{flex-wrap:wrap;gap:12px;min-width:0}

 /* ACADEMY: readable cards, wrapped navigation and one-column forms. */
 .nextgen-page .ng-wrap{padding-inline:20px}
 .nextgen-page .ng-section{padding-block:48px}
 .nextgen-page .ng-section-heading{flex-direction:column;align-items:stretch;gap:18px;margin-bottom:24px}
 .nextgen-page .ng-section-heading>p{max-width:none;font-size:15px}
 .nextgen-page .ng-section-heading h2{font-size:clamp(30px,8vw,42px);line-height:1.08}
 .nextgen-page .ng-subnav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:8px 20px;overflow:visible}
 .nextgen-page .ng-subnav a{min-width:0;min-height:44px;white-space:normal;font-size:10px;letter-spacing:.6px}
 .nextgen-page :is(.ng-contact-layout,.ng-parent-layout,.ng-compare){grid-template-columns:minmax(0,1fr)}
 .nextgen-page :is(.ng-contact-panel,.ng-steps-panel){padding:20px;min-width:0}
 .nextgen-page :is(.ng-contact-panel a,.ng-contact-social-links a){overflow-wrap:anywhere}
 .nextgen-page .ng-contact-social-links{grid-template-columns:minmax(0,1fr);gap:12px}
 .nextgen-page .ng-compare h3{font-size:clamp(22px,5.5vw,28px);overflow-wrap:anywhere;hyphens:auto}
 .nextgen-page .ng-team-shortcuts{gap:10px;flex-wrap:wrap}
 .nextgen-page .ng-team-shortcuts a{min-width:0;max-width:100%;white-space:normal;min-height:44px}
 .nextgen-page #main .ng-hero h1{max-width:100%;font-size:clamp(52px,14vw,92px)}
 .nextgen-page .ng-hero h1 span{font-size:clamp(23px,6vw,34px);line-height:1.2}
 .nextgen-page .ng-hero h1 span br{display:initial}

 /* CHEERLEADING: section links and information fit the viewport. */
 .cheer-page .cheer-quick-nav-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:6px 20px;overflow:visible}
 .cheer-page .cheer-quick-nav a{white-space:normal;text-align:center;min-width:0;min-height:44px;font-size:13px;letter-spacing:.04em}
 .cheer-page .cheer-section{padding-block:48px}
 .cheer-page .cheer-section-heading{flex-direction:column;align-items:stretch;gap:18px;margin-bottom:24px}
 .cheer-page .cheer-section-heading h2{font-size:clamp(30px,8vw,42px);line-height:1.08}
 .cheer-page .cheer-section-heading>p{font-size:15px;max-width:none}
 .cheer-page .cheer-main :is(.cheer-information-layout,.cheer-join-layout){grid-template-columns:minmax(0,1fr)}
 .cheer-page .cheer-training strong{white-space:normal;overflow-wrap:anywhere;font-size:24px}
 .cheer-page .cheer-team-content{padding:20px}
 .cheer-page .cheer-team-content p{font-size:14px}
 .cheer-page .cheer-partner{width:100%;box-sizing:border-box;min-width:0}
 .cheer-page #main .cheer-hero #cheer-title{font-size:clamp(34px,9.8vw,66px);line-height:1.05;letter-spacing:-.5px}
 .cheer-page .cheer-hero-brand{max-width:100%;min-width:0}
 .cheer-page .cheer-hero-brand>div{min-width:0}
 .cheer-page .cheer-events li>div{min-width:0}

 /* VORSTAND: portrait and information retain their proportions. */
 .board-page .board-wrap{width:calc(100% - 40px)}
 .board-page #main .board-hero h1{font-size:clamp(46px,12vw,76px);line-height:1.05}
 .board-page .board-hero-footer{flex-wrap:wrap;gap:10px}
 .board-page .board-jumps{grid-template-columns:repeat(2,minmax(0,1fr))}
 .board-page .board-jumps a{min-width:0;white-space:normal;min-height:44px}
 .board-page .board-grid{grid-template-columns:minmax(0,1fr)}
 .board-page .board-card{grid-template-columns:34% minmax(0,1fr);min-width:0}
 .board-page .board-card h3{font-size:clamp(22px,6vw,30px);line-height:1.1}
 .board-page .board-card :is(.board-role,.board-remit){overflow-wrap:anywhere}
 .board-page .board-section-head h2{min-width:0;font-size:clamp(25px,6.8vw,36px);line-height:1.1;overflow-wrap:anywhere}
 .board-page .board-contact{flex-direction:column;align-items:stretch;gap:20px}
 .board-page .board-contact .button{width:100%;min-width:0;box-sizing:border-box}

 /* SPONSOREN / PARTNER: no truncated text or squeezed selectors. */
 .partners-page .partners-hero-content{padding:38px 20px 0;max-width:100%;box-sizing:border-box}
 .partners-page #main .partners-hero h1{font-size:clamp(42px,11.5vw,76px);line-height:1.02}
 .partners-page .partners-hero h1 br{display:initial}
 .partners-page .partners-hero .partners-hero-jersey{position:relative;inset:auto;translate:none;width:min(85%,380px);height:290px;margin:18px auto 0}
 .partners-page .partners-hero{height:auto;min-height:0;max-height:none;padding-bottom:72px}
 .partners-page .sponsor-profile{padding:20px;min-width:0}
 .partners-page .sponsor-standard-card{height:auto;min-height:0;padding:20px}
 .partners-page .sponsor-standard-body{overflow:visible;min-height:0}
 .partners-page .sponsor-standard-body h3{display:block;min-height:0;overflow:visible;margin-bottom:12px}
 .partners-page .sponsor-standard-body>p{display:block;overflow:visible}
 .partners-page .sponsor-standard-card .sponsor-profile-link{gap:10px;flex-wrap:wrap}
 .partners-page .sponsoring-explorer{padding:48px 20px}
 .partners-page .sponsoring-heading h2{font-size:clamp(30px,8vw,42px);line-height:1.08}
 .partners-page .sponsoring-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible}
 .partners-page .sponsoring-category-tabs button{min-width:0;white-space:normal;min-height:44px;padding:10px 6px;font-size:10px;letter-spacing:0}
 .partners-page .sponsoring-option{min-width:0}
 .partners-page .sponsoring-option>strong{min-width:0;overflow-wrap:anywhere}
 .partners-page .sponsoring-contact{grid-template-columns:minmax(0,.8fr) minmax(0,1fr);max-width:100%;min-width:0}
 .partners-page .sponsoring-contact-copy h3{font-size:clamp(24px,6.5vw,34px);overflow-wrap:anywhere}
 .partners-page .sponsoring-contact-copy a{white-space:normal;overflow-wrap:anywhere}
 .partners-page .sponsor-info-dialog{padding:38px 20px 24px}
}
@media (max-width:600px){
 .nextgen-page .ng-team-grid{grid-template-columns:minmax(0,1fr)}
 .cheer-page .cheer-main .cheer-team-grid{grid-template-columns:minmax(0,1fr)}
 .partners-page .sponsor-standard-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:480px){
 body[data-mobile-layout] .header-login.is-member{width:44px;min-width:44px;max-width:44px;height:44px;padding:5px}
 body[data-mobile-layout] .header-profile-copy{display:none}
 .cheer-page :is(.cheer-venues,.cheer-videos){grid-template-columns:minmax(0,1fr)}
}
@media (max-width:360px){
 body[data-mobile-layout] .site-header .header-login{width:44px;min-width:44px;max-width:44px;height:44px;padding:8px;font-size:0}
 body[data-mobile-layout] .header-login>span{display:none}
 body[data-mobile-layout] .header-login svg{width:22px;height:22px}
}

/* Cheer banner: one centred, naturally sized column on phones. */
@media(max-width:760px){
 .cheer-page #main .cheer-hero{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:0;min-height:0;padding:32px 20px 36px
 }
 .cheer-page #main .cheer-hero-inner{width:100%;max-width:420px;margin:0 auto}
 .cheer-page #main .cheer-hero-copy{width:100%;max-width:none;text-align:center}
 .cheer-page #main .cheer-hero-brand{
  justify-content:center;align-items:center;gap:14px;margin:0 0 24px
 }
 .cheer-page #main .cheer-hero-brand .cheer-hero-logo{width:72px;height:72px}
 .cheer-page #main .cheer-hero-brand>div{flex:0 1 auto;text-align:left}
 .cheer-page #main .cheer-hero-brand .cheer-hero-subtitle{
  margin:0;font-size:11px;line-height:1.5;letter-spacing:.6px
 }
 .cheer-page #main .cheer-hero #cheer-title{margin:0 0 16px;text-align:center}
 .cheer-page #main .cheer-hero-description{
  max-width:none;margin:0 0 22px;font-size:14px;line-height:1.6;text-align:center
 }
 .cheer-page #main .cheer-hero-actions{justify-content:center;margin:0;gap:0}
 .cheer-page #main .cheer-hero-actions>.cheer-button{
  box-sizing:border-box;min-width:0;max-width:100%;min-height:48px;
  justify-content:center;gap:20px;padding:14px 18px
 }
 .cheer-page #main .cheer-hero>.cheer-musicbox{
  position:relative;inset:auto;transform:none;flex:none;
  width:min(340px,100%);max-width:100%;margin:36px auto 0;padding:0
 }
 .cheer-page #main .cheer-hero-footer{
  position:relative;inset:auto;box-sizing:border-box;width:100%;max-width:420px;
  justify-content:center;flex-wrap:wrap;gap:8px;margin:32px auto 0;padding-top:14px;
  text-align:center;font-size:7px;line-height:1.6;letter-spacing:.65px
 }
 .cheer-page #main .cheer-hero-footer>span:last-child{display:none}
}
