/* Scoped 18th Edition front door; assessment/review layouts remain untouched. */
.ecs-page:has(.rl-page){padding:0;background:#0d223c}.ecs-page:has(.rl-page)>.ecs-content{max-width:none;padding:0}.ecs-content:has(>.rl-page)>:is(.ecs-heading,.ecs-breadcrumb,.ecs-footer,#ecsNotice){display:none}#learnerPortalContent:has(.rl-page) .lesson-heading{display:none!important}
.rl-page{position:relative;isolation:isolate;overflow:hidden;background:#0c2038;color:#fff;border-radius:22px;min-height:calc(100vh - 155px);font-family:inherit}.rl-page *{box-sizing:border-box}.rl-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 44%;filter:blur(2px);transform:scale(1.015);z-index:-3}.rl-page:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#06172985 0%,#0b244370 30%,#06172ac9 68%,#061323f5 100%)}.rl-content{max-width:1640px;padding:26px 42px 30px;margin:auto}.rl-top{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:.8rem}.rl-top a{color:#fff;text-decoration:none;padding:10px 0}.rl-top>span{font-size:.62rem;letter-spacing:.2em;color:#edf2f9}.rl-intro{text-align:center;padding:15px 0 38px;max-width:860px;margin:auto}.rl-logo{width:170px;height:67px;object-fit:contain;padding:9px 13px;background:#ffffffed;border-radius:10px;margin-bottom:22px}.rl-kicker{font-size:.65rem!important;letter-spacing:.2em;font-weight:750;margin:0 0 12px;color:#eac775!important}.rl-intro h1{font-size:clamp(3.5rem,5.8vw,5.6rem);font-weight:750;letter-spacing:-.055em;line-height:1.06;margin:0;color:#fff}.rl-gold-rule{height:3px;width:65px;background:#e6bd57;margin:21px auto}.rl-subtitle{font-size:1.06rem;line-height:1.65;color:#f4f6fa;margin:0;text-shadow:0 2px 14px #031020}
.rl-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.rl-card{display:flex;flex-direction:column;min-width:0;position:relative;color:#102b4c;text-decoration:none;background:#fffffff2;border:1px solid #ffffffa8;border-radius:20px;box-shadow:0 20px 40px #0310213b;overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s;backdrop-filter:blur(12px)}.rl-card:hover{transform:translateY(-5px);border-color:#edc96c;box-shadow:0 22px 45px #03102170}.rl-card:focus-visible,.rl-page a:focus-visible{outline:3px solid #ffdb77;outline-offset:5px}.rl-card:active{border-color:#e6bb48}.rl-learn,.rl-test{background:#102a46e8;color:white}.rl-card-visual{height:180px;position:relative;overflow:hidden;background:linear-gradient(135deg,#cad6e3,#e9edf1)}.rl-card-visual:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,#ffffffc9)}.rl-learn .rl-card-visual:after,.rl-test .rl-card-visual:after{background:linear-gradient(180deg,#102a4610 30%,#102a46)}.rl-card-visual>img{width:100%;height:100%;object-fit:cover}.rl-learn .rl-card-visual>img{object-position:center 48%}.rl-practice .rl-card-visual>img{object-position:50% 42%}.rl-card-copy{padding:0 26px 24px;display:flex;flex-direction:column;flex:1;position:relative}.rl-icon{width:56px;height:56px;display:grid;place-items:center;background:#0d2744;border:1px solid #e0c785;border-radius:50%;color:#fff;box-shadow:0 5px 16px #10233c30}.rl-icon svg{width:28px;height:28px}.rl-card .rl-icon{margin-top:-32px;margin-bottom:18px;position:relative;z-index:1}.rl-number{font-size:.55rem!important;letter-spacing:.16em;color:#64788d;margin:0 0 10px!important;font-weight:700}.rl-learn .rl-number,.rl-test .rl-number{color:#d8c48c}.rl-card h2{color:inherit;font-size:clamp(1.4rem,2.05vw,2rem);letter-spacing:-.035em;margin:0 0 12px;line-height:1.1}.rl-card-copy>p:not(.rl-number){font-size:.87rem;line-height:1.65;margin:0 0 24px;opacity:.9}.rl-action{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:46px;font-size:.7rem;font-weight:800;letter-spacing:.08em;margin-top:auto;border:1px solid #bd9650;border-radius:9px;padding:12px 16px;color:inherit;text-decoration:none;background:#e6bd5710}.rl-action>span{font-size:1.25rem;line-height:1}.rl-learn .rl-action,.rl-test .rl-action{background:#e8c66f;color:#10253e;border-color:#e8c66f}.rl-journey{display:flex;justify-content:space-between;align-items:center;margin-top:34px;padding:24px 0 0;border-top:1px solid #ffffff36;gap:20px}.rl-journey p{font-size:.78rem;margin:0;color:#c5cfdb}.rl-journey .rl-kicker{margin-bottom:8px}.rl-journey ol{display:flex;list-style:none;gap:30px;padding:0;margin:0}.rl-journey li{display:flex;gap:10px;align-items:center;font-size:.8rem;white-space:nowrap}.rl-journey li>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d3b77480;border-radius:50%;font-size:.7rem;color:#efd08a}
.rl-test .rl-card-visual{background:radial-gradient(ellipse at 70% 20%,#527187,#081e34 75%)}.rl-watch{position:absolute;left:50%;top:24px;transform:translateX(-50%) rotate(-13deg);width:154px;height:154px;border-radius:50%;border:9px solid #536878;box-shadow:inset 0 0 0 3px #071a2b,0 10px 20px #0006;background:#0b2135;color:#d7edfa}.rl-watch i{position:absolute;width:32px;height:15px;left:51px;top:-23px;background:#879dac;border-radius:4px}.rl-watch>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.rl-watch svg{width:24px;height:24px;color:#e9c66c}.rl-watch strong{font-size:1.45rem;font-weight:500;letter-spacing:.02em}.rl-watch span{font-size:.4rem;letter-spacing:.13em}.rl-calendar{width:180px;background:#f8f7f2;position:absolute;left:50%;top:22px;transform:translateX(-50%) rotate(8deg);padding:15px 20px;box-shadow:0 5px 20px #132b4840;border-top:10px solid #15334f;border-radius:5px}.rl-calendar>span{font-size:.43rem;letter-spacing:.12em;color:#927028}.rl-calendar>strong{display:block;font-size:1.5rem;line-height:1.1;margin:8px 0 12px;color:#18334e}.rl-calendar>div{font-size:.58rem;line-height:2;color:#738297}.rl-calendar b{color:#a17926}.rl-placeholder{max-width:700px;margin:0 auto 60px;padding:35px;background:#fffffff2;border:1px solid #fff;border-radius:20px;color:#18334f;box-shadow:0 20px 45px #0003}.rl-placeholder h2{font-size:1.6rem;color:#18334f;margin:22px 0 12px}.rl-placeholder p{line-height:1.8;color:#52677d}.rl-placeholder .rl-action{margin-top:24px}.rl-return{display:block;margin-top:22px;color:#193a5e;font-size:.85rem}
@media(max-width:1100px){.rl-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rl-content{padding:24px 30px 30px}.rl-intro{padding-bottom:32px}.rl-card-visual{height:175px}.rl-card h2{font-size:1.8rem}.rl-journey{align-items:flex-start;flex-direction:column}.rl-journey ol{width:100%;justify-content:space-between;gap:12px}}
@media(max-width:600px){.rl-content{padding:18px}.rl-page{border-radius:16px}.rl-top>span{display:none}.rl-intro{padding:25px 0 30px}.rl-logo{width:150px;height:60px}.rl-intro h1{font-size:3.5rem}.rl-subtitle{font-size:.95rem}.rl-cards{grid-template-columns:1fr;gap:22px}.rl-card-visual{height:185px}.rl-card-copy{padding:0 24px 24px}.rl-card-copy>p:not(.rl-number){font-size:.94rem}.rl-action{min-height:50px}.rl-journey ol{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rl-placeholder{padding:25px}.rl-placeholder h2{font-size:1.4rem}}
@media(prefers-reduced-motion:reduce){.rl-card{transition:none}.rl-card:hover{transform:none}}

[data-prep-course="regulations"].ecs-page:has(.rl-page){padding:0;border-radius:22px}[data-prep-course="regulations"]>.ecs-content:has(>.rl-page){padding:0}

/* Visual refinement: smaller centred journey cards; original type and controls retained. */
.rl-cards{width:90%;margin-inline:auto}
.rl-card-visual{height:162px}
.rl-card-copy{padding-bottom:16px}
.rl-card .rl-icon{margin-bottom:10px}
.rl-card-copy>p:not(.rl-number){margin-bottom:12px}
@media(max-width:1100px){.rl-card-visual{height:157.5px}}
@media(max-width:600px){.rl-card-visual{height:166.5px}.rl-card-copy{padding-bottom:16px}}
.rl-cards{grid-auto-rows:1fr}
@media(max-width:1100px){.rl-background{object-position:25% 44%}}
@media(max-width:600px){.rl-background{object-position:12% 44%}}
