/* MHR Club 3.04.82: responsive interface correction, scoped to existing MHR surfaces.
   Existing role destinations, server actions and payment workflows are unchanged. */
@media (max-width:1024px) {
  body.mhr-official-shell-body, body.mhr-club-admin { -webkit-text-size-adjust:100%; }
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center,.mhr-experience-public,.mhr-shell-main,.mhr207-home),
  body.mhr-club-admin :where(#wpcontent,#wpbody-content,.wrap,.mhr-admin-wrap) {min-width:0;max-width:100%;box-sizing:border-box;}
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center,.mhr-experience-public) :where(img,picture,video,iframe,canvas,svg),
  body.mhr-club-admin :where(.wrap,.mhr-admin-wrap) :where(img,picture,video,iframe,canvas,svg) {max-width:100%;height:auto;}
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center,.mhr-experience-public) :where(input:not([type=checkbox]):not([type=radio]),textarea,select),
  body.mhr-club-admin :where(.wrap,.mhr-admin-wrap) :where(input:not([type=checkbox]):not([type=radio]),textarea,select) {box-sizing:border-box;min-width:0;max-width:100%;font-size:16px;}
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center) :where(button,input[type=submit],input[type=button],a.mhr-member-action),
  body.mhr-club-admin :where(.wrap,.mhr-admin-wrap) :where(button,.button,input[type=submit]) {min-height:44px;touch-action:manipulation;}
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center) :where(table,.mhr-table-container),
  body.mhr-club-admin :where(.wrap,.mhr-admin-wrap) :where(table,.widefat,.mhr-table-container) {max-width:100%;}
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center) :where(.mhr-table-container,.table-responsive),
  body.mhr-club-admin :where(.wrap,.mhr-admin-wrap) :where(.mhr-table-container,.table-responsive) {overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center) :where(pre,code),
  body.mhr-club-admin :where(.wrap,.mhr-admin-wrap) :where(pre,code) {overflow-wrap:anywhere;}
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app) :where(a,button,input,select,textarea):focus-visible,
  body.mhr-club-admin :where(.wrap,.mhr-admin-wrap,.mhr-native-admin-dock,.mhr-native-admin-more) :where(a,button,input,select,textarea):focus-visible {outline:3px solid #2675a7;outline-offset:3px;}
}
@media (max-width:767px) {
  body.mhr-official-shell-body :where(.mhr-official-main,.mhr-member-app,.mhr-member-command-center,.mhr-experience-public) :where(.mhr-dashboard-card-grid,.mhr-dashboard-two-column,.mhr63-goal-grid,.mhr63-member-hero,.mhr63-profile-header) {grid-template-columns:minmax(0,1fr);}
  body.mhr-official-shell-body :where(.mhr-member-command-center,.mhr63-profile-wrap) {width:100%;margin-inline:auto;padding-inline:clamp(12px,4vw,20px);}
  body.mhr-official-shell-body :where(.mhr-dashboard-section,.mhr-member-card,.mhr63-profile-section) {min-width:0;max-width:100%;box-sizing:border-box;}
  body.mhr-official-shell-body :where(.mhr63-member-actions,.mhr63-profile-actions) {flex-wrap:wrap;}
  body.mhr-official-shell-body :where(.mhr63-member-actions,.mhr63-profile-actions) :where(a,button) {max-width:100%;}
  body.mhr-official-shell-body :where(.mhr-member-command-center,.mhr-member-app) :where(h1,h2,h3,p) {overflow-wrap:break-word;}
  body.mhr-official-shell-body :where(.mhr-mobile-nav-shell,.mhr48-mobile-dock,.mhr-app-nav) {box-sizing:border-box;max-width:calc(100% - 12px);}
  body.mhr-official-shell-body .mhr-mobile-nav-rail {min-width:0;}
  body.mhr-official-shell-body .mhr-mobile-nav-rail>a {min-height:48px;}
  body.mhr-official-shell-body :where(.mhr-mobile-nav-shell,.mhr48-mobile-dock,.mhr-app-nav) :where(a,button):focus-visible {outline:3px solid #2675a7;outline-offset:-3px;}
  body.mhr-club-admin :where(.mhr-command-grid,.mhr-stat-grid,.mhr-hub-grid,.mhr-action-grid,.mhr-admin-grid,.mhr69-editorial-grid,.mhr70-story-editor-grid) {grid-template-columns:minmax(0,1fr);}
  body.mhr-club-admin .mhr-admin-wrap :where(.widefat,.wp-list-table) {display:block;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
  body.mhr-club-admin .mhr-native-admin-dock {box-sizing:border-box;max-width:calc(100% - 12px);}
  body.mhr-club-admin .mhr-native-admin-dock :where(a,button) {min-width:0;min-height:48px;}
  body.mhr-club-admin .mhr-native-admin-more {padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));}
}
@media (max-width:380px) {
  body.mhr-club-admin .mhr-native-admin-dock {left:4px;right:4px;max-width:calc(100% - 8px);padding:3px;gap:0;}
  body.mhr-club-admin .mhr-native-admin-dock strong {font-size:9px;line-height:1.18;overflow-wrap:break-word;}
  body.mhr-official-shell-body .mhr-mobile-nav-shell {left:4px;right:4px;max-width:calc(100% - 8px);}
}
@media (prefers-reduced-motion:reduce) {
  body.mhr-official-shell-body :where(.mhr-mobile-more-screen,.mhr-mobile-nav-shell,.mhr-app-nav),
  body.mhr-club-admin :where(.mhr-native-admin-more,.mhr-native-admin-dock) {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}

/* 3.04.87 touch and layout regression protections across existing role surfaces. */
@media(max-width:767px){body.mhr-official-shell-body :where(.mhr85-digital-today,.mhr85-digital-grid,.mhr350-quick-actions,.mhr350-more-grid),body.mhr-club-admin :where(.mhr86-work-desk,.mhr86-work-grid,.mhr30101-command-grid){min-width:0;max-width:100%;box-sizing:border-box}body.mhr-official-shell-body :where(.mhr85-digital-grid a,.mhr350-quick-actions a),body.mhr-club-admin :where(.mhr86-work-grid a){overflow-wrap:anywhere;touch-action:manipulation}body.mhr-club-admin :where(.mhr30101-admin-command,.mhr-command-panel) :where(input,select,textarea){max-width:100%;box-sizing:border-box}}
