/* NOREX 65: sitewide mobile layout, preserves both dark and light themes. */
.nx-shell,.nx-hero-layout,.nx-topbar,.nx6-page,.nx52,.nx48,.nx59-actions{min-width:0}
.nx-body img,.nx-body video,.nx-body iframe,.nx-body svg{max-width:100%}
.nx-body :is(h1,h2,h3,h4,p,small,strong,b,span,a){overflow-wrap:break-word}
.nx-body :is(input,select,textarea,button){max-width:100%;font-family:inherit}
.nx-body :is(.nx-table-scroll,.table-wrap,.nx52-table-wrap,.nx57-score-wrap,.nx58-table-wrap,[class*="table-scroll"],[class*="table-wrap"]){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.nx-body :is(.nx-hero-actions,.nx51-spotlight-actions,.nx-featured-actions,.nx-event-bottom,.nx52-save,.nx59-actions,.nx52-choose-row,.nx-topbar){min-width:0}
.nx65-map-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.nx65-map-card{min-width:0;padding:17px;border:1px solid rgba(148,163,184,.32);border-radius:15px;background:rgba(90,100,125,.08);display:flex;flex-direction:column;gap:9px}
.nx65-map-card strong{font-size:clamp(18px,2.8vw,25px);font-weight:800;color:inherit}
.nx65-map-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;font-weight:800;letter-spacing:.045em}
.nx65-map-kicker span{font-size:10px;letter-spacing:0;color:#c24e6b;border:1px solid #aa6274;border-radius:100px;padding:3px 7px}
.nx65-map-card form{display:grid;gap:9px;margin:0}
.nx65-map-card label{font-size:13px;font-weight:700}
.nx65-map-card select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #8190a3;border-radius:9px;background:var(--nx-card, #fff);color:var(--nx-ink,#172333);font-size:16px}
.nx65-map-card button{width:100%;min-height:44px;font-size:13px;white-space:normal}
.nx65-map-card small{font-size:12px;opacity:.78}
@media(max-width:900px){.nx65-map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){
  *, *::before, *::after{box-sizing:border-box}
  html{max-width:100%;-webkit-text-size-adjust:100%}
  body.nx-body{max-width:100%;min-width:0}

  .nx-shell{width:calc(100% - 28px)!important;max-width:100%!important;margin-inline:auto!important}
  .nx-topbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;padding-block:10px!important}
  .nx-header .nx-brand{flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 122px)!important;display:flex!important;gap:8px!important;align-items:center!important}
  .nx-header .nx-brand img{width:40px!important;height:40px!important;flex:0 0 40px!important}
  .nx-header .nx-brand-type{min-width:0!important;display:block!important}
  .nx-header .nx-brand-type strong{font-size:clamp(14px,3.7vw,19px)!important;white-space:nowrap!important}
  .nx-header .nx-brand-type small{font-size:clamp(8px,2vw,11px)!important;letter-spacing:.12em!important;white-space:nowrap!important}
  .nx-header .no232-quick-open,.nx-header .nx-menu-toggle{flex:0 0 44px!important;width:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important}
  .nx-header .no232-quick-open{padding:8px!important}
  .nx-header .no232-quick-open .no232-quick-label,.nx-header .no232-quick-open kbd{display:none!important}
  .nx-hero{max-width:100%;overflow:hidden}
  .nx-hero-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding-block:clamp(24px,7vw,45px)!important}
  .nx-hero-art{display:none!important}
  .nx-hero-copy{min-width:0!important;width:100%!important}
  .nx-hero-copy h1{font-size:clamp(32px,9vw,56px)!important;line-height:1.04!important;letter-spacing:-.04em!important;max-width:100%!important}
  .nx-hero-copy p{font-size:clamp(14px,3.8vw,17px)!important;max-width:100%!important}
  .nx-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;align-items:stretch!important}
  .nx-hero-actions .nx-btn,.nx-hero-actions a{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:50px!important;padding:12px 14px!important;text-align:center!important;white-space:normal!important;font-size:14px!important;line-height:1.4!important}
  .nx-hero-foot,.nx-hero-foot span{font-size:10px!important;max-width:100%!important}
  .nx51-home-spotlight,.nx51-spotlight-actions,.nx-st03-feature,.nx-overview,.nx-featured-grid,.nx-event-grid,.nx-card-grid,.nx6-panel-grid,.nx52-choose-row,.nx52-tasknav,.nx52-top,.nx54-board-title{min-width:0!important;max-width:100%!important}
  .nx51-home-spotlight,.nx51-spotlight-actions,.nx52-top,.nx54-board-title{flex-wrap:wrap!important}
  .nx51-spotlight-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important}
  .nx51-spotlight-actions .nx-btn{width:100%!important;min-width:0!important}
  .nx-st03-feature,.nx-overview,.nx-featured-grid,.nx-event-grid,.nx-card-grid,.nx6-panel-grid{grid-template-columns:minmax(0,1fr)!important}
  .nx52-choose-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .nx52-choose-row select,.nx52-choose-row button{width:100%!important;min-width:0!important}
  .nx52-section-head,.nx52-event-caption{flex-wrap:wrap!important}
  .nx59-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important}
  .nx59-actions>a,.nx52-save button{width:100%!important;min-height:44px!important}
  .nx52-tasknav{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .nx52-tasknav a{min-width:0!important}
  .nx54-kpis,.nx54-scrim-cards,.nx59-shortcuts,.nx59-notice-grid,.nx59-room-grid{grid-template-columns:minmax(0,1fr)!important}
  .nx52-section,.nx52 .panel{max-width:100%!important;min-width:0!important;padding:clamp(13px,3.5vw,20px)!important}
  .nx52-match,.nx52-match summary,.nx52-match form{min-width:0!important;max-width:100%!important}
  .nx52-match .two,.nx54-room-form .two{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .nx52-match input,.nx52-match textarea,.nx52-match select{min-width:0!important;width:100%!important;font-size:16px!important}
  .nx52-match summary{gap:7px!important;flex-wrap:wrap!important}
  .nx52-save{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  .nx-body input,.nx-body select,.nx-body textarea{font-size:16px}
  .nx-body :is(.nx-btn,.btn,button,input[type=submit],a[role=button]){min-height:44px}
  .nx-body :is(.nx-section-head,.nx6-section-row,.nx52-section-head){max-width:100%}
  .nx-body :is(.nx-featured-actions,.nx-event-bottom,.nx52-section-head){gap:9px;flex-wrap:wrap}
  .nx-body :is(.nx-section h2,.nx-section-head h2){font-size:clamp(22px,7vw,36px)}
  .nx-body [class*="grid"] > *{min-width:0}
  /* Legacy tournament/admin pages still use templates/base.html. */
  body:not(.nx-body) :is(.header,.main,.container,.dashboard-grid,.match-grid,.page-title,.panel,.content-panel,.fields,.form-end,.studio-actions){min-width:0;max-width:100%}
  body:not(.nx-body) :is(.dashboard-grid,.match-grid,.studio-actions){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  body:not(.nx-body) :is(.page-title,.form-end,.panel-top,.header){flex-wrap:wrap!important;gap:10px!important}
  body:not(.nx-body) :is(.btn,button,input[type=submit]){min-height:44px}
  body:not(.nx-body) :is(.table-scroll,[class*="table-wrap"]){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body:not(.nx-body) :is(input,select,textarea){max-width:100%;font-size:16px}
  body:not(.nx-body) :is(h1,h2,h3,p,span,strong,a){overflow-wrap:break-word}
  body:not(.nx-body) .main{padding-inline:12px!important}
  body:not(.nx-body) .header{padding-inline:12px!important}
  body:not(.nx-body) :is(.panel,.content-panel){padding:clamp(12px,3.8vw,20px)}
  .nx-body [class*="table"]{max-width:100%}
  .nx65-map-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:390px){
 .nx-shell{width:calc(100% - 22px)!important}
 .nx65-map-grid{grid-template-columns:minmax(0,1fr)}
 .nx-header .nx-brand{max-width:calc(100% - 108px)!important}
 .nx-header .nx-brand img{width:34px!important;height:34px!important;flex-basis:34px!important}
}
@media(prefers-reduced-motion:reduce){.nx65-map-card{transition:none}}
