/* Keep welcome copy within its panel even when page-builder heading styles exist. */
.mr6-auth-intro{min-width:0;width:auto!important;max-width:none!important}
.mr6-auth-page .woocommerce:not(.mr6-password-card .woocommerce){grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;padding:0!important}
@media(max-width:1100px){.mr6-auth-page .woocommerce:not(.mr6-password-card .woocommerce){grid-template-columns:minmax(0,1fr)!important}}
.mr6-auth-intro h1{width:100%!important;max-width:100%!important;font-size:clamp(32px,3.5vw,48px)!important;line-height:1.12!important;letter-spacing:-.035em!important;white-space:normal!important;overflow-wrap:anywhere}
.mr6-auth-intro>p{max-width:100%;font-size:15px!important;line-height:1.7!important}
@media(max-width:600px){.mr6-auth-intro{padding:28px 24px!important}.mr6-auth-intro h1{font-size:34px!important}.mr6-auth-art{width:90px!important;height:90px!important}}
/* Recovery uses the same navy/gold panel as sign-in, without replacing its forms. */
.mr6-auth-page.mr6-auth-choosing-role .woocommerce:not(.mr6-password-card .woocommerce){display:block!important;width:min(760px,calc(100% - 32px))!important;min-height:0!important;margin:40px auto 64px!important;padding:0!important;background:transparent!important}
.mr6-auth-choosing-role .mr6-auth-intro{width:100%!important;min-height:0!important;margin:0!important;padding:42px!important}
.mr6-auth-choosing-role .mr6-auth-brand{margin-bottom:30px!important}
.mr6-auth-choosing-role .mr6-auth-kicker{margin-top:12px!important}
.mr6-auth-choosing-role #customer_login{display:none!important}
@media(max-width:600px){.mr6-auth-choosing-role .mr6-auth-intro{padding:28px 24px!important}.mr6-auth-page.mr6-auth-choosing-role .woocommerce:not(.mr6-password-card .woocommerce){margin-top:24px!important}}
body:has(.mr6-password-layout){background:#fcfaf6}
body:has(.mr6-password-layout) .woocommerce{display:block!important;width:100%!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.mr6-password-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);width:min(1120px,calc(100% - 40px));margin:48px auto 72px;overflow:hidden;border:1px solid #e3ddd2;border-radius:28px;background:#fff;box-shadow:0 24px 65px rgba(16,45,85,.12)}
.mr6-password-layout .mr6-auth-intro{min-height:540px}
.mr6-password-card{min-width:0;padding:58px 48px;color:#243c5a}
.mr6-password-kicker{font-size:11px;font-weight:900;letter-spacing:.15em;color:#a66c00}
.mr6-password-card h2{margin:12px 0 24px;font-size:36px;line-height:1.15;color:#102d55}
.mr6-password-card form{margin:0!important;padding:0!important;border:0!important}
.mr6-password-card p{font-size:15px;line-height:1.7}
.mr6-password-card .form-row{float:none!important;width:100%!important;margin:20px 0!important;padding:0!important}
.mr6-password-card label{display:block;margin-bottom:9px;font-size:14px;font-weight:800}
.mr6-password-card input.input-text{width:100%;min-height:54px;font-size:16px!important}
.mr6-password-card button.button{width:100%;min-height:52px;justify-content:center}
.mr6-password-card .mr6-password-support{margin-top:28px;padding-top:22px;border-top:1px solid #dce5ef;font-size:13px;color:#64748b}
.mr6-password-support a{color:#173b68;text-decoration:underline;font-weight:800}
/* Tablet layouts need their own proportions, not compressed desktop columns. */
@media(min-width:601px) and (max-width:1100px){
 .mr6-maths-route{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;padding:24px!important}
 .mr6-maths-route strong{grid-column:1/-1;margin:0 0 6px!important}
 .mr6-maths-route a{display:flex!important;align-items:center;justify-content:center;text-align:center;min-height:52px}
 .mr6-p2-entry,.mr6-revision-entry{padding:28px!important}
 .mr6-p2-entry h2,.mr6-revision-entry h2{font-size:30px!important;line-height:1.2!important}
 .mr6-maths-topic-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mr6-maths-topic{height:100%;min-width:0}
 .mr6-footer-grid,.mr6-modern-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:32px!important}
 .mr6-footer-grid>div:first-child,.mr6-modern-footer-brand{grid-column:1/-1;max-width:520px}
 .mr6-modern-footer-grid>div:not(.mr6-modern-footer-brand){grid-column:auto!important}
 .mr6-auth-page .woocommerce{grid-template-columns:1fr!important;min-height:0!important}
 .mr6-auth-page .mr6-auth-intro{min-height:0!important;padding:34px!important}
 .mr6-auth-page .mr6-auth-brand{margin-bottom:24px!important}
 .mr6-auth-page .mr6-auth-kicker{margin-top:12px!important}
 .mr6-auth-page #customer_login{padding:36px!important}
}
@media(max-width:900px){
 .mr6-password-layout{grid-template-columns:1fr;margin:28px auto 48px}
 .mr6-password-layout .mr6-auth-intro{min-height:0;padding:32px}
 .mr6-password-layout .mr6-auth-brand{margin-bottom:22px}
 .mr6-password-layout .mr6-auth-kicker{margin-top:10px}
 .mr6-password-layout .mr6-auth-intro h1{font-size:38px}
 .mr6-password-card{padding:32px}
}
@media(max-width:600px){
 .mr6-password-layout{width:calc(100% - 24px);border-radius:20px}
 .mr6-password-layout .mr6-auth-intro,.mr6-password-card{padding:26px 22px}
 .mr6-password-card h2{font-size:30px}
}
