/* Shared neutral surfaces apply only to the learner dashboard, including its header. */
body.authenticated:has(.learner-dashboard){--dashboard-page:var(--paper);--dashboard-section:var(--section-surface);--dashboard-card:#fff;--dashboard-border:var(--line);background:var(--dashboard-page)}
body.authenticated:has(.learner-dashboard) .site-header{border-bottom-color:var(--dashboard-border)}
/* Extend the white band behind the connector turns outside the lesson grid. */
.learner-dashboard .lessons-section{position:relative;isolation:isolate;padding-block:clamp(16px,2vw,26px);background:var(--dashboard-card,#fff)}
.learner-dashboard .lessons-section::before{content:"";position:absolute;z-index:-1;inset-block:0;left:50%;width:100cqw;transform:translateX(-50%);background:inherit;border-block-start:1px solid var(--dashboard-border,var(--line));pointer-events:none}
.learner-dashboard .lessons-section:has(.lesson-preview[open]){z-index:1}
.learner-dashboard .lessons-section h2{font-size:clamp(21px,2vw,24px);overflow-wrap:anywhere}
/* Compact programme navigation; the learning CTA remains the primary action. */
.programme-roadmap{margin:16px 0 20px}.programme-roadmap .section-heading{margin-bottom:8px;gap:8px}.programme-roadmap .section-heading h2{font-size:17px;margin:0}.programme-roadmap .section-heading>span{font-size:11px;white-space:nowrap}
.programme-course-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0}.programme-course.profile-card{padding:9px 10px;gap:3px;border-radius:10px;min-height:122px}.programme-course .eyebrow{font-size:9px;margin:0}.programme-course h3{font-size:12px;line-height:1.3;margin:0;min-height:31px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.programme-course .programme-state{font-size:10px;line-height:1.3;font-weight:600}.programme-actions{display:flex;gap:4px;margin-top:auto}.programme-actions form{margin:0;display:flex}.programme-course .button{font-size:10px;line-height:1.2;min-height:25px;padding:4px 7px;border-radius:6px;box-shadow:none;white-space:nowrap}.programme-course .button:focus-visible{outline:3px solid #075bc7;outline-offset:3px}
@media(max-width:1100px){.programme-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.programme-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.programme-roadmap .section-heading{align-items:flex-start;flex-direction:column}.programme-course.profile-card{min-height:120px}}
/* Keep the welcome progress context tied to the selected course and compact at every width. */
.premium-hero .welcome-progress-copy{min-width:0;max-width:100%}
.course-progress-context{margin-top:8px;min-width:0}
.course-progress-context .eyebrow{display:block;margin:0 0 2px;font-size:10px;line-height:1.4;letter-spacing:.08em}
.course-progress-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;max-width:32ch;font-size:12px;line-height:1.35;font-weight:650;color:var(--navy,#163e5e)}
@media(hover:hover){
    .journey-overview:has(.course-progress-card:hover) .next-lesson{box-shadow:0 0 0 2px #77aaf2}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
    .journey-overview:has(.course-progress-card:hover) .next-lesson{animation:next-lesson-nudge .32s ease-out}
    @keyframes next-lesson-nudge{50%{transform:translateY(-3px)}}
}
