/* P01 Wide Desktop Layout Authority
 * Applies only to wide desktop viewports. It aligns the shared shell, subsite
 * masthead and page bodies without changing each product's body grammar.
 */
@media (min-width:1440px){
  body.vf-surface-app{
    --vf-wide-shell:min(1440px,calc(100vw - 40px));
    --vf-wide-edge:max(20px,calc((100vw - 1440px) / 2));
  }

  body.vf-surface-app .vf-global-domain-nav-inner{
    width:var(--vf-wide-shell)!important;
    margin-inline:auto!important;
  }

  body.vf-surface-app .vf-app-topbar.vf-domain-subbar{
    padding-left:var(--vf-wide-edge)!important;
    padding-right:var(--vf-wide-edge)!important;
  }

  body.vf-subject-page .vf-subject-main{
    width:var(--vf-wide-shell)!important;
    margin-inline:auto!important;
  }

  body.surface-home .vf-shell-main{
    width:var(--vf-wide-shell)!important;
    margin-inline:auto!important;
  }

  body.surface-home{
    --home-portal-max:1440px;
    --home-portal-rail:340px;
    --home-portal-gap:52px;
  }

  body.surface-home .vf-home-portal-layout{
    grid-template-columns:minmax(0,1fr) minmax(300px,var(--home-portal-rail))!important;
    gap:var(--home-portal-gap)!important;
  }

  body.surface-start.vf-functional-workspace{
    --vf-wide-start-gap:24px;
  }

  body.surface-start.vf-functional-workspace .vf-functional-sidebar{
    left:var(--vf-wide-edge)!important;
    width:var(--start-r9-sidebar)!important;
  }

  body.surface-start.vf-functional-workspace .vf-shell-main{
    width:calc(var(--vf-wide-shell) - var(--start-r9-sidebar) - var(--vf-wide-start-gap))!important;
    margin-left:calc(var(--vf-wide-edge) + var(--start-r9-sidebar) + var(--vf-wide-start-gap))!important;
    margin-right:0!important;
  }

  body.vf-workspace-page:not(.surface-start):not(.surface-home) .vf-shell-main{
    width:var(--vf-wide-shell)!important;
    margin-inline:auto!important;
  }
}

/* Reader keeps a narrower reading measure even when the outer subject shell grows. */
@media (min-width:1440px){
  body.vf-course-reader-page .vf-course-reader-bar,
  body.vf-course-reader-page .vf-course-reader-flash,
  body.vf-course-reader-page .vf-course-reader-layout{
    max-width:1320px;
  }
}

/* News is an immersive reader within the preserved P01 global domain nav. */
@media(min-width:1440px){body.surface-news.vf-subject-page .vf-shell-main.vf-subject-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}}

/* Must win over the later shared subsite-shell !important masthead layout. */
body.vf-surface-app.surface-news .vf-app-topbar.vf-domain-subbar{display:none!important}
