/* Presentation only: active 18th Edition landing, dashboard and guided Practice.
   Learn/Book placeholders, tests, review and unrelated hub screens are excluded. */
body:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) {
  --reg-page-padding:clamp(18px,3vw,48px);
}
body:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) .app-shell {
  width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important;
}
body:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) .app-shell>header {
  margin-inline:var(--reg-page-padding);
}
body:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) main {
  width:100%;max-width:none;padding-inline:0;
}
#learnerView:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) {margin-bottom:0}
#learnerPortalContent:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) .learner-dashboard-grid {
  display:block;width:100%;max-width:none;margin:0;
}
#learnerProfilePanel:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) {
  width:100%;max-width:none;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;
}
/* Keep portal navigation comfortable without framing the page underneath it. */
#learnerView:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) #learnerMenu {padding-inline:var(--reg-page-padding)}
[data-prep-course="regulations"]:has(.rl-cards)>.ecs-content {
  max-width:none!important;padding:0!important;
}
.rl-page:has(.rl-cards),.rl-page.rp-intro {
  width:100%;border-radius:0;min-height:calc(100svh - 155px);
}
.rl-page:has(.rl-cards) .rl-content,.rp-intro .rl-content {
  max-width:1640px;padding-inline:var(--reg-page-padding,32px);
}
.rp-intro .rp-intro-map {max-width:1320px}
.rp-shell {
  box-sizing:border-box;width:100%;max-width:1640px;margin-inline:auto;
  padding:28px var(--reg-page-padding,32px) 40px;border-radius:0;
}
#learnerProfilePanel:has(.rp-shell) {background:#f3f6fa}
.rp-shell .rp-question h2 {max-width:1100px}
.rp-shell :is(.rp-feedback p,.tx-method li>p,.tx-clue p) {max-width:75ch}
/* The premium dashboard hero is the sole dashboard intro. */
[data-prep-course="regulations"]:has(.reg-ref-dashboard)>.ecs-content>.ecs-heading,
#learnerPortalContent:has(.reg-ref-dashboard) .lesson-heading {display:none!important}
[data-prep-course="regulations"]:has(.reg-ref-dashboard)>.ecs-content {
  box-sizing:border-box;width:100%;max-width:1640px;margin-inline:auto;
  padding:0 var(--reg-page-padding,32px) 36px!important;
}
[data-prep-course="regulations"] .reg-ref-dashboard {padding-top:0}
@media(max-width:600px){
  body:has(:is(.rl-cards,.rp-intro,.rp-shell,.reg-ref-dashboard)) {--reg-page-padding:18px}
  .rp-shell{padding-top:22px}
}

[data-prep-course="regulations"].ecs-page:has(.rl-cards){border-radius:0}
