/* Keep the active theme header and footer, while giving plugin pages a clean full-width canvas. */
body.ams-plugin-page #wrap > .wrap.container > .breadcrumb,
body.ams-plugin-page .entry-head,
body.ams-plugin-page #wrap .main + .sidebar {
    display: none !important;
}

body.ams-plugin-page #wrap,
body.ams-plugin-page #wrap > .wrap.container,
body.ams-plugin-page #wrap .main,
body.ams-plugin-page #wrap article.entry,
body.ams-plugin-page #wrap .entry-main,
body.ams-plugin-page #wrap .entry-content {
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.ams-plugin-page {
    overflow-x: hidden;
}

body.ams-plugin-page .action.action-style-1 {
    display: none !important;
}

body.ams-plugin-studio-page > .top-news,
body.ams-plugin-studio-page > .header,
body.ams-plugin-studio-page > .footer,
body.ams-plugin-studio-page > .action,
body.ams-plugin-studio-page > .footer-bar {
    display: none !important;
}

body.ams-plugin-studio-page #wrap {
    padding-top: 0 !important;
}

/*
 * A cached or altered theme body class must not put the workbench back into
 * the theme's article-and-sidebar layout. This selector is intentionally
 * scoped to the workbench root and does not affect normal site pages.
 */
body:has(main.ams-studio) #wrap > .wrap.container > .breadcrumb,
body:has(main.ams-studio) .entry-head,
body:has(main.ams-studio) #wrap .main + .sidebar,
body:has(main.ams-studio) #wrap .sidebar.sidebar-on-left {
    display: none !important;
}

body:has(main.ams-studio) #wrap,
body:has(main.ams-studio) #wrap > .wrap.container,
body:has(main.ams-studio) #wrap .main,
body:has(main.ams-studio) #wrap article.entry,
body:has(main.ams-studio) #wrap .entry-main,
body:has(main.ams-studio) #wrap .entry-content {
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}
