/* Reading layout for the six public guides: match the 900px 2028 11+ guide.
   Keep the rules page-scoped so application and other site pages do not change. */
body.hm-focused-guide .shell {
  max-width: 900px;
}
body.hm-focused-guide > main:is(.ks1-page, .ks2-page, .ks3-page),
body.hm-eleven-article.hm-focused-guide > main.article-page {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 900px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 28px 20px 64px !important;
}
/* auth-nav wraps school landing pages in an app shell on larger screens.
   Its default 1120px reading column must not override the guide width. */
body.hm-article.hm-shell-app.hm-focused-guide:not(.hm-app) .app-main > main:is(.ks1-page, .ks2-page, .ks3-page) {
  box-sizing: border-box;
  width: min(900px, 100%) !important;
  max-width: 900px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 28px 20px 64px !important;
}
/* The app navigation may also move SEAG into its shared shell. */
body.hm-eleven-article.hm-focused-guide .app-main > main.article-page {
  box-sizing: border-box;
  width: min(900px, 100%) !important;
  max-width: 900px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
/* SEAG's article consistency sheet normally forces an 860px column. */
body.hm-eleven-article.hm-focused-guide > main.article-page,
body.hm-eleven-article.hm-focused-guide .app-main > main.article-page {
  padding: 28px 20px 64px !important;
}
/* These informational pages do not offer the language or partner controls.
   Other pages retain them. The translation preference still works. */
body.hm-focused-guide :is(.hm-menu-lang, .hm-standalone-lang, .hm-article-lang, .hm-sidebar-magic-coach, .studio-partner-side-rail, .studio-partner-ad) {
  display: none !important;
}
body.hm-focused-guide.hm-partner-promo-visible {
  padding-right: 0 !important;
}
body.hm-focused-guide.hm-partner-promo-visible.hm-shell-app:not(.hm-app) .app-main {
  padding-right: 0 !important;
}
/* The Website Helper/Maggie launcher should be at the bottom-right on
   these guides, not alongside the side menu or top-right controls. */
body.hm-focused-guide .hm-wh-root.hm-wh-floating {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
}
@media print {
  body.hm-focused-guide .hm-wh-root { display: none !important; }
}
