/* AOW Tournament Portal V11.23 — shared wide desktop page frame.
   Every full-page section now uses the same 1800px desktop footprint as the
   public/admin brackets.  This late stylesheet intentionally outranks
   legacy page-specific 1100px/1600px wrappers and does not affect phones. */
@media (min-width: 761px) {
  /* Global page shell: home, results, admin, registration, roster, chat, etc. */
  body.aow-masters-theme > .wrap,
  body.aow-masters-theme.aow-home-view:not(.tournament-chat-view) > .wrap,
  body.aow-masters-theme.tournament-chat-view > .wrap,
  body.aow-masters-theme:not(.tournament-chat-view) > .wrap,
  body.aow-masters-theme > .wrap:has(> .bracket-page) {
    box-sizing: border-box;
    width: min(1800px, calc(100% - 48px)) !important;
    max-width: 1800px !important;
    margin-inline: auto !important;
  }
  /* Tournament Chat has a legacy 1000px internal page cap.  Expand only its
     outer page region; retain feed/composer heights and scroll containers. */
  body.aow-masters-theme.tournament-chat-view .tournament-chat-page {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin-inline: auto !important;
  }
  /* Expand genuine full-page sections, not dialogs, editors, or form fields. */
  body.aow-masters-theme .participants-page,
  body.aow-masters-theme .registration-section,
  body.aow-masters-theme .aow-avatar-collection {
    width: 100% !important;
    max-width: none !important;
    margin-inline: auto !important;
  }
  /* Results previously broke out of the narrow shell using fixed viewport
     offsets.  Now it can participate in the common full-width page flow. */
  body.aow-masters-theme .public-results-page {
    position: relative;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: auto !important;
  }
}
/* Phone and short-screen chat viewports retain their V11.10-V11.22 rules. */
