/* Welcome page reuses the 18th Edition landing composition in regulations-landing.css. */
body:has(#portalWelcomeView:not(.hidden)){background:#0c2038}
body:has(#portalWelcomeView:not(.hidden)) .app-shell{width:100%;max-width:none;padding:0}
#portalWelcomeView{margin:0;min-height:100vh}
.rl-portal-welcome{min-height:100vh;border-radius:0}
.rl-portal-welcome .rl-content{max-width:1760px;padding:30px clamp(18px,3vw,48px) 42px}
.rl-portal-welcome .rl-intro{padding:18px 0 34px;max-width:1050px}
.rl-portal-welcome .rl-intro h1{font-size:clamp(2.7rem,5vw,5rem);letter-spacing:-.04em}
.rl-portal-welcome .rl-subtitle{font-size:clamp(1rem,1.4vw,1.2rem)}
.rl-welcome-greeting{margin:15px 0 0;color:#e2e9f2;font-size:.88rem}
.rl-portal-welcome .rl-cards{width:100%;gap:clamp(12px,1.5vw,22px);grid-auto-rows:1fr}
.rl-portal-card{background:#fffffff2;color:#102b4c}
.rl-portal-card .rl-card-visual{height:clamp(145px,14vw,205px)}
.rl-portal-card .rl-card-visual:after{background:linear-gradient(180deg,#07162900 35%,#07162977)}
.rl-portal-card .rl-card-copy{padding:0 clamp(15px,1.8vw,26px) 20px}
.rl-portal-card .rl-icon{display:grid;place-items:center;font-size:1.05rem;font-weight:800;color:#fff}
.rl-portal-card h2{font-size:clamp(1.12rem,1.48vw,1.7rem);min-height:2.2em}
.rl-portal-card .rl-card-price{font-size:1.16rem;color:#173b61}
.rl-portal-card .rl-action{width:100%;font:inherit;font-size:.7rem;font-weight:800;letter-spacing:.08em;cursor:pointer}
.rl-portal-card.is-active .rl-action{background:#e8c66f;color:#10253e;border-color:#d2ad51}
.rl-portal-card.is-coming-soon{opacity:.94}
.rl-portal-card.is-coming-soon .rl-action{justify-content:center;border-color:#c5ccd5;background:#eff2f6;color:#536477;cursor:not-allowed}
.rl-portal-card.is-coming-soon .rl-action:disabled{opacity:1}
.rl-portal-card .rl-card-visual-ev>img{object-position:center 52%}
@media(max-width:1100px){.rl-portal-welcome .rl-cards{width:100%}.rl-portal-card .rl-card-visual{height:clamp(150px,23vw,190px)}}
@media(max-width:600px){.rl-portal-welcome .rl-content{padding:18px 16px 28px}.rl-portal-welcome .rl-intro{padding:16px 0 26px}.rl-portal-welcome .rl-intro h1{font-size:clamp(2.3rem,11vw,3.2rem)}.rl-portal-welcome .rl-cards{grid-template-columns:1fr;gap:16px}.rl-portal-card .rl-card-visual{height:175px}.rl-portal-card h2{min-height:0}}

/* Homepage course cards follow the supplied EV course card reference. */
.rl-portal-welcome .rl-cards{align-items:stretch}
.rl-portal-card{border:1px solid #d9e2ec;border-radius:24px;background:#fff;color:#102b50;box-shadow:0 8px 24px #102b5010;backdrop-filter:none;transform:none;transition:none}
.rl-portal-card:hover,.rl-portal-card:focus-within{border-color:#d9e2ec;box-shadow:0 8px 24px #102b5010;transform:none}
.rl-portal-card .rl-card-visual{height:auto;aspect-ratio:1.78;flex:none;border-top:6px solid #c69d38;background:#e8edf2}
.rl-portal-card .rl-card-visual:after{display:none}
.rl-portal-card .rl-card-visual>img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1);transform-origin:center;transition:transform 650ms cubic-bezier(.22,1,.36,1)}
.rl-portal-card .rl-card-visual-ev>img{object-position:center 52%}
.rl-portal-card .rl-card-copy{padding:22px clamp(18px,2vw,28px) 22px;gap:0;flex:1;background:#fff}
.rl-portal-card .rl-course-kicker{margin:0 0 16px;color:#a77a20;font-size:clamp(.66rem,.82vw,.8rem);font-weight:800;line-height:1.35;letter-spacing:.17em}
.rl-portal-card .rl-course-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;margin:0 0 16px}
.rl-portal-card h2{flex:1;min-width:0;min-height:0;margin:0;color:#102b50;font-size:clamp(1.25rem,1.8vw,2rem);font-weight:750;letter-spacing:-.045em;line-height:1.1}
.rl-portal-card .rl-course-logo{display:block;flex:0 0 auto;width:clamp(58px,6vw,84px);height:58px;object-fit:contain}
.rl-portal-card .rl-course-description{margin:0 0 20px;color:#5a718e;font-size:clamp(.92rem,1.05vw,1.08rem);line-height:1.62}
.rl-portal-card .rl-action{min-height:42px;margin-top:auto;border:1px solid #d8e2ed;border-radius:999px;padding:10px 16px;background:#f5f8fb;color:#29496d;font-size:.68rem;letter-spacing:.09em;text-decoration:none}
.rl-portal-card.is-active .rl-action{border-color:#d8e2ed;background:#f5f8fb;color:#29496d}
.rl-portal-card .rl-action:hover{border-color:#c69d38;background:#fffaf0}
.rl-portal-card.is-coming-soon{opacity:1}
.rl-portal-card.is-coming-soon .rl-action,.rl-portal-card.is-coming-soon .rl-action:disabled{border-color:#d8e2ed;background:#f5f8fb;color:#52677f;cursor:not-allowed;opacity:1}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.rl-portal-card:hover .rl-card-visual>img,.rl-portal-card:focus-within .rl-card-visual>img{transform:scale(1.04)}}
@media(max-width:1100px){.rl-portal-card .rl-card-visual{height:auto;aspect-ratio:1.78}.rl-portal-card .rl-course-kicker{font-size:.7rem}.rl-portal-card h2{font-size:clamp(1.4rem,3vw,1.85rem)}}
@media(max-width:600px){.rl-portal-card .rl-card-visual{height:auto;aspect-ratio:1.78}.rl-portal-card .rl-card-copy{padding:20px 22px 22px}.rl-portal-card .rl-course-title-row{min-height:62px}.rl-portal-card h2{font-size:clamp(1.7rem,8vw,2.25rem)}.rl-portal-card .rl-course-logo{width:74px;height:56px}.rl-portal-card .rl-course-description{font-size:1.05rem}}
@media(prefers-reduced-motion:reduce){.rl-portal-card .rl-card-visual>img{transition:none;transform:none}}

/* Job 3: scoped official-cover presentation; existing four cards are unchanged. */
.rl-portal-card .rl-card-visual-amendment4{position:relative;background:#edf1f5}
.rl-portal-card .rl-card-visual-amendment4>img{object-fit:contain;padding:34px 10px 10px;box-sizing:border-box}
.rl-amendment4-banner{position:absolute;top:10px;left:10px;z-index:1;padding:7px 10px;border-radius:4px;background:#a8332b;color:#fff;font-size:.62rem;font-weight:800;letter-spacing:.06em;line-height:1.3}
.rl-amendment4-access-note{display:block;margin-top:14px;color:#e2e9f2;font-size:.75rem;line-height:1.4}
/* Let the new fifth mobile row fit its copy without resizing the original four. */
@media(max-width:600px){.rl-portal-welcome .rl-cards{grid-template-rows:repeat(4,1fr) auto}}

/* Keep all five welcome cards on one fluid desktop row; smaller screens retain the existing tablet/mobile grids. */
@media(min-width:1024px){
  .rl-portal-welcome .rl-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(10px,1.4vw,22px)}
  .rl-portal-card .rl-card-copy{padding:clamp(14px,1.53vw,22px) clamp(14px,1.95vw,28px)}
  .rl-portal-card .rl-course-kicker{font-size:clamp(.66rem,.82vw,.8rem);margin-bottom:clamp(8px,1.1vw,16px)}
  .rl-portal-card .rl-course-title-row{gap:clamp(6px,.8vw,12px);min-height:clamp(48px,4.58vw,66px);margin-bottom:clamp(8px,1.1vw,16px)}
  .rl-portal-card h2{font-size:clamp(.92rem,1.55vw,1.7rem)}
  .rl-portal-card .rl-course-logo{width:clamp(42px,4.2vw,72px);height:clamp(42px,4.03vw,58px)}
  .rl-portal-card .rl-course-description{font-size:clamp(.72rem,.94vw,1.08rem);line-height:1.5;margin-bottom:clamp(12px,1.4vw,20px)}
  .rl-portal-card .rl-action{min-height:clamp(34px,2.9vw,46px);padding:clamp(7px,.7vw,10px) clamp(8px,1.1vw,16px);font-size:clamp(.58rem,.7vw,.7rem);letter-spacing:clamp(.04em,.07vw,.09em)}
}

/* Keep the existing service positions; Driving sits immediately beneath ECS. */
@media(min-width:1101px){
 .rl-portal-welcome [aria-labelledby="portal-driving-title"]{grid-column:2;grid-row:2}
 .rl-portal-welcome [aria-labelledby="portal-ev-title"]{grid-column:3;grid-row:1}
 .rl-portal-welcome [aria-labelledby="portal-jobs-title"]{grid-column:4;grid-row:1}
 .rl-portal-welcome [aria-labelledby="portal-amendment4-cpd-title"]{grid-column:5;grid-row:1}
}
@media(min-width:601px) and (max-width:1100px){
 .rl-portal-welcome [aria-labelledby="portal-driving-title"]{grid-column:2;grid-row:2}
 .rl-portal-welcome [aria-labelledby="portal-ev-title"]{grid-column:1;grid-row:2}
}

/* LinkedIn occupies only the empty desktop slot; other card rules are unchanged. */
.rl-portal-card-linkedin .rl-card-visual-linkedin{background:#fff}
.rl-portal-card-linkedin .rl-card-visual-linkedin>img{object-fit:contain;padding:clamp(18px,1.5vw,28px);box-sizing:border-box}
.rl-portal-card-linkedin .rl-linkedin-title-row{flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
.rl-portal-card-linkedin .rl-linkedin-title-row h2{flex:none}
.rl-portal-card-linkedin .rl-linkedin-subtitle{margin:0;color:#5a718e;font-size:.8rem;line-height:1.4;letter-spacing:0}
@media(min-width:1101px){.rl-portal-welcome .rl-portal-card-linkedin{grid-column:1;grid-row:2;contain:size}}
/* The extra card must not increase the existing equal-height rows. */
.rl-portal-card-linkedin .rl-card-copy>.rl-course-description{margin-bottom:0}
@media(min-width:1024px) and (max-width:1100px){
 .rl-portal-welcome .rl-cards:has(.rl-portal-card-linkedin){grid-template-rows:repeat(2,1fr) auto}
 .rl-portal-welcome .rl-portal-card-linkedin{grid-column:1;grid-row:3}
}
@media(min-width:601px) and (max-width:1023px){
 .rl-portal-welcome .rl-cards:has(.rl-portal-card-linkedin){grid-template-rows:repeat(3,1fr) auto}
 .rl-portal-welcome .rl-portal-card-linkedin{grid-column:1;grid-row:4}
}
@media(max-width:600px){
 .rl-portal-welcome .rl-cards:has(.rl-portal-card-linkedin){grid-template-rows:repeat(4,1fr) auto 1fr auto}
}
@media(min-width:1101px){.rl-portal-card-linkedin .rl-linkedin-title-row{margin-bottom:0}}
@media(min-width:1101px){
 .rl-portal-card-linkedin .rl-linkedin-title-row{gap:0}
 .rl-portal-card-linkedin .rl-linkedin-subtitle{line-height:1.3}
}

.rl-cv-document-icon{display:grid;place-items:center;width:100%;height:100%;font-size:90px;color:#173b61;background:#edf2f8}.rl-card-visual img[hidden]{display:none}
/* CV subtitle follows its heading without changing the existing service cards. */
.rl-portal-welcome [aria-labelledby="portal-cv-builder-title"] .rl-course-title-row{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.rl-portal-welcome [aria-labelledby="portal-cv-builder-title"] h2{flex:none}
.rl-portal-welcome [aria-labelledby="portal-cv-builder-title"] .rl-linkedin-subtitle{margin:0;color:#5a718e;font-size:.8rem;line-height:1.4;letter-spacing:0}
