/* Consolidated phone and tablet layout overrides. */
@media (max-width:1100px){
  .shell{width:min(100% - 48px,var(--shell))}
  .site-header{grid-template-columns:290px 1fr}
  .primary-nav{gap:30px;padding-right:32px;transform:translateY(12px)}
  .hero-content.shell{padding-left:6vw;padding-right:6vw}
  .fixture-panel{grid-template-columns:250px minmax(0,1fr)}
  .fixture-teams{min-width:0}
}

@media (max-width:760px){
  :root{--mobile-gutter:18px}
  html{scroll-padding-top:76px;-webkit-text-size-adjust:100%}
  body{min-width:0;padding-bottom:0!important}
  .shell,.hero-content.shell{width:calc(100% - 36px);padding-left:0;padding-right:0}
  button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
  .button{min-height:48px;height:auto;padding:13px 20px;font-size:15px}

  .mobile-actions{display:none!important;visibility:hidden!important}
  .site-header{position:absolute;height:76px;grid-template-columns:minmax(0,1fr) auto;align-items:center;background:rgba(9,9,13,.97);border-bottom:1px solid rgba(255,255,255,.08)}
  .site-header:after{content:none!important}
  .brand{min-width:0;height:76px;gap:9px;padding:0 0 0 18px;transform:none}
  .brand-logo,.brand img{width:56px!important;height:56px!important;flex:0 0 56px}
  .brand-name{max-width:145px;font-size:20px;line-height:.88;white-space:normal}
  .primary-nav{width:94px;height:76px;padding:0;transform:none}
  .primary-nav>a{display:none}
  .menu-trigger{position:static;width:94px;height:76px;margin:0;padding:0 18px 0 8px;justify-content:flex-end;gap:9px;opacity:1;color:#fff;font:700 14px "Barlow Condensed",sans-serif}
  .hamburger{gap:4px}.hamburger i{width:24px;height:2px}
  .menu-panel{inset:0;bottom:0;overflow-y:auto;overscroll-behavior:contain}
  .menu-top{position:sticky;top:0;z-index:2;height:76px;padding:0 18px;background:#002395}
  .menu-top img,.menu-logo img{width:58px!important;height:58px!important}
  .menu-close{width:50px;height:50px;padding:0;font-size:48px}
  .menu-columns{width:calc(100% - 36px);min-height:calc(100dvh - 76px);height:auto;grid-template-columns:1fr;align-content:start;gap:32px;padding:34px 0 max(38px,env(safe-area-inset-bottom))}
  .menu-main a{padding:4px 0;font-size:clamp(34px,11vw,48px);line-height:.96}
  .menu-secondary a{min-height:42px;display:flex;align-items:center;font-size:21px;line-height:1.2}
  .socials{margin-top:22px}.socials a{width:48px;height:48px}

  .hero{height:690px;min-height:0}
  .hero-media{inset:76px 0 auto;height:430px}
  .hero-media img{object-position:right center}
  .hero:after{inset:64px 0 auto;height:105px;filter:blur(4px)}
  .hero-shade{background:linear-gradient(180deg,rgba(0,0,0,.14),rgba(0,0,0,.02) 45%,#111 72%)}
  .hero-content,.hero-content.shell{inset:auto 0 0;height:230px;margin:0;width:100%;padding:24px 18px 22px;justify-content:flex-start;background:#111}
  .hero h1{max-width:100%;margin:11px 0 17px;font-size:clamp(42px,13vw,58px);line-height:.82}
  .hero h1 span{white-space:normal}.eyebrow{padding:6px 10px;font-size:13px}
  .news,.videos,.feature-section{padding:58px 0}
  .section-heading{gap:18px;margin-bottom:26px}.section-heading h2{font-size:34px}
  .news-grid,.video-grid{display:grid;grid-template-columns:1fr;gap:26px;margin:0;padding:0;overflow:visible}
  .news-card,.video-card{min-width:0}.news-card h3{font-size:18px}
  .feature-grid{grid-template-columns:1fr;gap:16px}.feature-card{height:270px}.feature-card h2{margin:22px;font-size:40px}
  .video-image{aspect-ratio:16/9}.video-card h3{min-height:0;padding:19px}
  .team-showcase img{width:150%;max-width:none;margin-left:-25%}
  .newsletter{padding:50px 0}.newsletter-inner{gap:24px}.newsletter h2{font-size:34px;line-height:.95}

  .club-page-hero,.game-centre-hero,.roster-hero{height:360px;padding-bottom:32px}
  .club-page-hero:before,.game-centre-hero:before,.roster-hero:before{inset:76px 0 0}
  .game-centre-hero:before{background-position:82% center}
  .roster-hero:before{background-position:center center}
  .club-page-hero h1{max-width:58%;font-size:clamp(46px,13vw,56px);line-height:.82;text-shadow:0 3px 20px rgba(0,0,0,.9)}
  .page-tabs{width:calc(100% + 36px);margin-left:-18px;gap:8px;padding:18px 18px 34px;overflow-x:auto;scrollbar-width:none}
  .page-tabs::-webkit-scrollbar,.category-scroll::-webkit-scrollbar,.admin-tabs::-webkit-scrollbar{display:none}
  .page-tabs a{flex:0 0 auto;min-height:46px;display:flex;align-items:center;padding:12px 18px;font-size:15px}

  .next-match,.next-match-feature{margin-bottom:46px;padding:32px 16px}
  .next-match-feature h2{font-size:38px}.next-match-feature>p{margin-bottom:27px;font-size:15px;line-height:1.55}
  .next-match-empty>p{margin-bottom:0;font-size:24px}
  .next-matchup{grid-template-columns:1fr 1fr;gap:20px 10px}
  .next-team,.next-team:last-child{min-width:0;flex-direction:column;justify-content:flex-start;gap:10px;text-align:center}
  .next-team:last-child{flex-direction:column-reverse}.next-team b{font-size:18px;line-height:1.05}
  .next-team img,.next-team .opponent-logo{width:70px;height:70px}
  .match-countdown{grid-column:1/-1;grid-row:2;justify-content:center;gap:10px}
  .match-countdown strong,.match-countdown i{font-size:30px}
  .fixtures{padding-bottom:65px}.fixtures h2{margin:48px 0 20px;font-size:38px}
  .fixture-panel{min-height:0;margin-bottom:22px;padding:24px 16px;grid-template-columns:1fr;gap:28px}
  .fixture-details{min-width:0}.fixture-details p{margin:19px 0 7px;font-size:15px;line-height:1.45}
  .fixture-details>span:last-child{font-size:14px;line-height:1.4}
  .fixture-teams{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:6px}
  .fixture-teams>div,.fixture-teams>div:last-child{min-width:0;flex-direction:column;gap:8px}
  .fixture-teams>div:last-child{flex-direction:column-reverse}
  .fixture-teams img,.fixture-teams .opponent-logo{width:64px;height:64px}
  .fixture-teams b{font-size:16px;line-height:1.05}.fixture-teams em{font-size:22px}

  .players-intro{padding-bottom:25px}.roster-section{padding:24px 0 70px}
  .roster-section h2{margin-bottom:34px;font-size:40px}.roster-grid{grid-template-columns:1fr;gap:32px}
  .player-card{width:100%;min-height:455px}.player-card img{height:370px}
  .player-silhouette{inset:35px 6% 82px}.player-number{min-width:66px;height:66px;font-size:34px}
  .player-info h3{margin-top:16px;font-size:29px}
  .profile-hero{min-height:0;padding:118px 0 68px}
  .profile-back{top:91px;left:18px;font-size:14px}
  .profile-hero-grid{min-height:0;grid-template-columns:1fr;gap:24px}
  .profile-hero .profile-photo{height:min(108vw,460px)}
  .profile-identity{min-width:0}.profile-identity .profile-number{min-width:68px;height:68px;margin-bottom:15px;font-size:36px}
  .profile-identity h1{font-size:clamp(54px,18vw,78px);line-height:.82}.profile-identity>p{margin:18px 0 28px;font-size:20px}
  .profile-facts{grid-template-columns:1fr}.profile-facts div{padding:18px}
  .next-player{position:static;width:calc(100% - 36px);margin:35px auto 0;text-align:left}
  .profile-biography{padding:65px 0}.profile-biography .shell{width:calc(100% - 36px)}
  .profile-biography h2{margin-bottom:25px;font-size:42px}.profile-biography .profile-bio{font-size:16px}

  .news-hero{height:340px}.news-hero-image{inset:76px 0 0;background-position:center center}.news-hero h1{max-width:58%;margin-bottom:32px;font-size:clamp(46px,13vw,56px);text-shadow:0 3px 20px rgba(0,0,0,.9)}
  .category-scroll{justify-content:flex-start;width:calc(100% + 36px);margin-left:-18px;margin-bottom:42px;padding:14px 18px 20px;scroll-snap-type:x proximity;scrollbar-width:none}
  .category-tab{min-height:46px;padding:12px 15px;scroll-snap-align:start}
  .article-grid{grid-template-columns:1fr;gap:22px}.article-image{aspect-ratio:16/10}.article-copy{min-height:0;padding:22px 20px}
  .media-enquiries{padding-bottom:65px}.media-panel{padding:34px 22px}.media-panel h2{font-size:36px}.media-panel>a{overflow-wrap:anywhere}
  .article-hero{min-height:470px;padding:145px 18px 65px}
  .article-title-wrap h1{font-size:clamp(43px,13vw,58px);line-height:.9}.article-meta{margin-bottom:20px;font-size:13px}
  .article-featured{width:calc(100% - 36px);transform:translateY(-24px)}.article-featured img{max-height:360px}
  .article-body{width:calc(100% - 36px);margin-top:0;font-size:16px;line-height:1.7}
  .article-body h2{margin:42px 0 16px;font-size:36px}.article-body h3{margin-top:32px;font-size:27px}
  .article-body ul{padding-left:22px}.article-body blockquote{margin:32px 0;font-size:17px}
  .article-share{width:calc(100% - 36px);flex-wrap:wrap;justify-content:flex-start}

  .faq-hero{height:390px}.faq-hero-image{inset:76px 0 0;background-position:center center}
  .faq-hero h1{max-width:58%;margin-bottom:34px;font-size:clamp(46px,13vw,56px);text-shadow:0 3px 20px rgba(0,0,0,.9)}
  .faq-content{padding:65px 0 75px}.faq-layout{grid-template-columns:1fr;gap:35px}.faq-heading h2{font-size:42px}
  .faq-list summary{min-height:76px;padding:20px 48px 20px 0;font-size:20px}.faq-list summary span{right:0}
  .faq-answer{padding:0 38px 25px 0;font-size:15px}.faq-contact{padding:65px 0}.faq-contact h2{font-size:46px}

  .league-hero{min-height:470px}.league-hero-image{inset:76px 0 0;background-position:right center}
  .league-hero-content{padding-bottom:42px}.league-hero h1{max-width:58%;font-size:clamp(46px,13vw,56px);text-shadow:0 3px 20px rgba(0,0,0,.9)}
  .league-intro,.league-tiers,.league-season,.league-eligibility{padding:68px 0}
  .league-intro-grid,.league-eligibility-grid{grid-template-columns:1fr;gap:30px}
  .league-intro h2,.league-section-heading h2,.league-eligibility h2{font-size:50px}
  .league-copy,.league-section-heading>p:last-child,.league-eligibility-grid>div:last-child>p{font-size:16px}
  .league-section-heading{margin-bottom:38px}.tier-grid{grid-template-columns:1fr}
  .tier-grid article{min-height:0;padding:25px 22px 30px}.tier-grid article>span{width:58px;height:58px}
  .tier-grid h3{margin:32px 0 10px}
  .season-grid article{grid-template-columns:44px minmax(0,1fr);gap:14px;padding:24px 18px}
  .season-grid article>span{font-size:29px}.season-grid h3{font-size:23px}
  .league-actions{flex-direction:column}.league-actions .button{width:100%}

  .footer{padding:54px 0 max(28px,env(safe-area-inset-bottom))}
  .footer-grid{grid-template-columns:1fr;gap:34px}
  .footer-brand-lockup img{width:68px;height:68px}.footer-brand-lockup span{font-size:29px}
  .footer-links{grid-template-columns:1fr 1fr;gap:18px 14px}.footer-links a{min-height:34px;font-size:19px}
  .footer-family h3{font-size:22px}.family-marks{flex-direction:row}.family-marks a{width:min(100%,260px)}
  .footer-bottom{align-items:flex-start;flex-direction:column;gap:9px;margin-top:42px}

  .admin-shell{padding:18px!important}
  .auth-card{margin:4vh auto;padding:26px!important}.auth-card h1{font-size:43px}
  .admin-header h1{font-size:43px}.header-controls{width:100%;justify-content:space-between}
  .admin-tabs{width:calc(100% + 36px);margin-left:-18px;padding:0 18px;overflow-x:auto;scrollbar-width:none}
  .admin-tabs button{flex:0 0 auto;min-height:48px;padding:13px 18px!important}
  .editor-card,.articles-card{padding:20px!important}
  .card-heading{gap:12px}.card-heading h2{font-size:26px}
  .editor-toolbar{gap:6px!important}.editor-toolbar button{min-height:40px;padding:8px 10px!important}
  input,textarea,select{min-height:48px;font-size:16px!important}
  textarea{min-height:130px}.image-preview{min-height:145px}
  .admin-article{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px}
  .admin-article img{width:64px;height:58px}.article-actions{grid-column:1/-1;flex-direction:row}
  .article-actions button{flex:1;min-height:42px}.management-list{max-height:none!important}
}

@media (max-width:390px){
  .brand-name{display:none}
  .hero{height:660px}.hero-media{height:410px}.hero-content,.hero-content.shell{height:220px}
  .hero h1{font-size:41px}.fixture-teams b{font-size:14px}.footer-links{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
