/* Scope every rule to a real course page; the rest of the site is unchanged. */
body.mr6-study-mode .mr6-social-bar,
body.mr6-study-mode .mr6-app-header,
body.mr6-study-mode header.elementor-location-header,
body.mr6-study-mode .elementor-location-footer,
body.mr6-study-mode footer.mr6-modern-footer,
body.mr6-study-mode footer.site-footer,
body.mr6-study-mode #colophon { display:none!important; }
html body.mr6-study-mode,
html body.mr6-study-mode.admin-bar { padding-top:0!important; }
.mr6-study-mode { --mr6-study-offset:0px; --mr6-study-height:72px; }
.mr6-study-mode.admin-bar { --mr6-study-offset:32px; }
.mr6-study-mode .mr6-study-header {
  position:sticky;top:var(--mr6-study-offset);z-index:99990;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
  gap:24px;min-height:var(--mr6-study-height);padding:12px clamp(16px,3vw,40px);
  margin:0;border-bottom:1px solid #d4dfeb;background:#fff!important;color:#17375e!important;
  box-sizing:border-box;font:500 15px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.mr6-study-header .mr6-study-identity { min-width:0;border-left:1px solid #55708a;padding-left:24px; }
.mr6-study-header .mr6-study-identity>span { display:block;color:#9a6400;font-size:10px;font-weight:750;letter-spacing:.12em; }
.mr6-study-header .mr6-study-identity>strong { display:block;margin-top:3px;color:#17375e;font-size:17px;line-height:1.35;overflow-wrap:anywhere; }
.mr6-study-header a { display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 12px;border:1px solid #b6c7d8;border-radius:9px;color:#17375e!important;background:#fff;text-decoration:none!important;font-weight:650;white-space:nowrap;box-sizing:border-box; }
.mr6-study-header a:hover { background:#eef4fa; }
.mr6-study-header a:focus-visible { outline:3px solid #ffd16c;outline-offset:3px; }
.mr6-study-mode :is(h1,h2,h3,[id]) { scroll-margin-top:calc(var(--mr6-study-height) + var(--mr6-study-offset) + 20px); }
/* Keep native course contents, sidebar controls, return bars and access notices. */
@media(max-width:782px) {
  .mr6-study-mode.admin-bar { --mr6-study-offset:46px; }
  .mr6-study-mode .mr6-study-header { gap:14px; }
  .mr6-study-header .mr6-study-identity { padding-left:14px; }
}
@media(max-width:600px) {
  .mr6-study-mode { --mr6-study-height:112px; }
  .mr6-study-mode .mr6-study-header { grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;padding:10px 14px; }
  .mr6-study-header .mr6-study-identity { grid-column:1/-1;grid-row:1;border:0;padding:0; }
  .mr6-study-header .mr6-study-identity>strong { font-size:16px; }
  .mr6-study-header .mr6-study-exit { justify-self:start; }
  .mr6-study-header a { font-size:13px;padding:7px 10px; }
}
@media print {
  .mr6-study-mode .mr6-study-header { display:none; }
}
