/*
 * PlayRank compact shell, stage 1 (2026-12-01).
 * Desktop-only outer geometry; no changes to components, Arena or print.
 * Enabled by main.tpl for standard tournament, profile and calendar pages.
 * Disable instantly on any supported page with ?pr_layout=legacy.
 */
@media screen and (min-width: 981px) {
  html.pr-layout-compact #app-shell-container > .main-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0 12px 12px !important;
  }

  html.pr-layout-compact #app-shell-container > .main-content > .header-bar.pr-unified-header {
    box-sizing: border-box;
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding: 6px 12px !important;
    border-radius: 0 !important;
  }

  html.pr-layout-compact #app-shell-container > .main-content > .page-content-wrapper {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
  }

  html.pr-layout-compact #app-shell-container > .main-content > .page-content-wrapper .page-content-inner {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Profile layout has a separate legacy width cap at 1120px. */
  html.pr-layout-compact #app-shell-container > .main-content > .page-content-wrapper .profile-v3 {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* Existing tablet and mobile layout stays unchanged. */

/* Profile hero: neutralize the shared landing-page .hero-inner width/grid. */
@media screen and (min-width: 981px) {
  html.pr-layout-compact #app-shell-container .profile-v3 > .hero > .hero-inner {
    display: flex;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    justify-content: flex-start;
    text-align: left;
  }
  html.pr-layout-compact #app-shell-container .profile-v3 > .hero .hero-body {
    text-align: left;
  }
}
