.legend-lms{--legend-primary:#3157d5;--legend-primary-dark:#2444b4;--legend-secondary:#111a34;--legend-accent:#f4b740;--legend-text:#1d2638;--legend-muted:#667085;--legend-line:#e5e9f2;--legend-soft:#f6f8fc;--legend-success:#159466;--legend-danger:#c43b55;--legend-radius:18px;--legend-shadow:0 18px 50px rgba(22,34,63,.09);font-family:var(--legend-font,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif);color:var(--legend-text);box-sizing:border-box;max-width:1240px;margin:36px auto;padding:0 22px;line-height:1.6}.legend-lms *{box-sizing:border-box}.legend-lms h1,.legend-lms h2,.legend-lms h3,.legend-lms p{margin-top:0}.legend-lms h1,.legend-lms h2,.legend-lms h3{color:var(--legend-secondary);line-height:1.18;letter-spacing:-.025em}.legend-lms a{color:var(--legend-primary)}.legend-eyebrow{display:block;margin-bottom:8px;color:var(--legend-primary);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.legend-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 20px;border:0;border-radius:12px;background:var(--legend-primary);box-shadow:0 8px 18px rgba(49,87,213,.18);color:#fff!important;font-size:14px;font-weight:800;line-height:1;text-decoration:none!important;cursor:pointer;transition:.2s ease}.legend-button:hover{transform:translateY(-1px);background:var(--legend-primary-dark);box-shadow:0 12px 25px rgba(49,87,213,.24)}.legend-button--secondary{background:#edf1ff;box-shadow:none;color:var(--legend-primary)!important}.legend-button--light{background:#fff;color:var(--legend-primary)!important}.legend-button--wide{width:100%}.legend-button--large{min-height:56px;font-size:15px}.legend-text-button{border:0;background:transparent;color:var(--legend-primary);font:inherit;font-weight:800;cursor:pointer}.legend-progress{height:8px;overflow:hidden;border-radius:20px;background:#e7ebf4}.legend-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--legend-primary),#6e8cff);transition:width .35s ease}.legend-notice{margin:16px 0;padding:14px 17px;border:1px solid #f3d48f;border-radius:12px;background:#fff9e8;color:#79531a}.legend-notice--error{border-color:#f1b8c3;background:#fff0f3;color:#8d263b}.legend-notice--success{border-color:#a8dfc9;background:#edfbf5;color:#106747}

/* Active-theme compatibility bridge. The theme owns site chrome; Legend owns
   only its assigned screens, without inheriting narrow blog/article wrappers. */
.legend-theme-bridge-page .legend-lms-theme-bridge{display:block;clear:both;width:100%;max-width:none;margin:0;padding:0;overflow:visible}
.legend-theme-bridge-page .legend-lms-theme-bridge>.legend-lms{width:100%}
.legend-theme-bridge-page .legend-lms-theme-bridge>.legend-course{margin-top:0}
.legend-theme-bridge-page .legend-lms-theme-bridge img{max-width:100%;height:auto}
.legend-free-checkout-confirmation{display:flex;align-items:center;gap:13px;padding:17px;border:1px solid #a8dfc9;border-radius:13px;background:#edfbf5;color:#106747}
.legend-free-checkout-confirmation>span{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:50%;background:#159466;color:#fff;font-weight:900}
.legend-free-checkout-confirmation>div{display:grid;gap:2px}.legend-free-checkout-confirmation small{color:#3f6f5d}

/* Catalogue */
.legend-catalog-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:26px;padding:44px 48px;border-radius:26px;background:radial-gradient(circle at 86% 10%,rgba(112,145,255,.42),transparent 34%),linear-gradient(130deg,#101a35 0%,#263f91 64%,#3157d5 100%);box-shadow:0 24px 60px rgba(23,39,87,.18);color:#fff}.legend-catalog-hero h1{margin-bottom:12px;color:#fff;font-size:clamp(36px,5vw,60px)}.legend-catalog-hero p{max-width:650px;margin:0;color:#dbe4ff;font-size:18px}.legend-catalog-hero .legend-eyebrow{color:#aebfff}.legend-catalog-hero__stat{display:grid;min-width:150px;padding:18px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.1);backdrop-filter:blur(10px)}.legend-catalog-hero__stat strong{color:#fff;font-size:34px}.legend-catalog-hero__stat span{color:#dbe4ff;font-size:13px}.legend-catalog-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 210px 190px;gap:12px;margin:22px 0}.legend-catalog-toolbar label{margin:0}.legend-search{position:relative}.legend-search>span:not(.screen-reader-text){position:absolute;z-index:1;top:14px;left:14px;color:#7b8497}.legend-search input{padding-left:43px!important}.legend-lms input,.legend-lms select,.legend-lms textarea{width:100%;min-height:48px;padding:10px 13px;border:1px solid #d8deea;border-radius:11px;outline:0;background:#fff;color:var(--legend-text);font:inherit;transition:.2s}.legend-lms input:focus,.legend-lms select:focus,.legend-lms textarea:focus{border-color:var(--legend-primary);box-shadow:0 0 0 3px rgba(49,87,213,.12)}.legend-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.legend-card{position:relative;display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--legend-line);border-radius:var(--legend-radius);background:#fff;box-shadow:0 8px 28px rgba(24,36,68,.06);transition:.24s ease}.legend-card:hover{transform:translateY(-4px);border-color:#cad4f3;box-shadow:var(--legend-shadow)}.legend-card__image{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#e7ecff,#b8c8ff)}.legend-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.legend-card:hover .legend-card__image img{transform:scale(1.035)}.legend-card__placeholder{display:grid;width:100%;height:100%;place-items:center;color:#fff;font-size:64px;font-weight:900}.legend-card__badge{position:absolute;top:13px;left:13px;padding:6px 9px;border-radius:8px;background:#fff;color:var(--legend-secondary);box-shadow:0 5px 14px rgba(0,0,0,.12);font-size:11px;font-weight:800}.legend-card__body{display:flex;flex:1;flex-direction:column;padding:18px 19px 17px}.legend-card__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;color:var(--legend-primary);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.legend-card__meta strong{color:var(--legend-secondary);font-size:14px;letter-spacing:0;text-transform:none}.legend-card h3{margin:0 0 8px;font-size:20px}.legend-card h3 a{color:var(--legend-secondary);text-decoration:none}.legend-card__body>p{min-height:46px;margin:0 0 15px;color:var(--legend-muted);font-size:14px;line-height:1.55}.legend-card__author{display:flex;align-items:center;gap:9px;margin-top:auto;color:#4b5568;font-size:13px;font-weight:650}.legend-card__author img{width:30px;height:30px;border-radius:50%}.legend-card__facts{display:flex;gap:15px;margin:14px 0 12px;padding-top:12px;border-top:1px solid #edf0f5;color:#7a8394;font-size:12px}.legend-card__progress{margin:1px 0 11px}.legend-card__progress small{display:block;margin-top:5px;color:var(--legend-muted);font-size:11px}.legend-card__link{display:flex;align-items:center;justify-content:space-between;color:var(--legend-primary)!important;font-size:13px;font-weight:800;text-decoration:none!important}.legend-card__link span{font-size:18px}.legend-catalog-empty{margin-top:25px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Shared learner dashboard/account */
.legend-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:22px;padding:38px 42px;border-radius:24px;background:radial-gradient(circle at 82% 10%,rgba(255,255,255,.16),transparent 25%),linear-gradient(130deg,var(--legend-secondary),var(--legend-primary));color:#fff}.legend-dashboard-hero h1{margin:0 0 9px;color:#fff;font-size:36px}.legend-dashboard-hero p{margin:0;color:#dce5ff}.legend-dashboard-hero .legend-eyebrow{color:#aebfff}.legend-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0 30px}.legend-stat-grid>div{display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto;column-gap:13px;padding:19px;border:1px solid var(--legend-line);border-radius:15px;background:#fff;box-shadow:0 6px 20px rgba(20,32,60,.04)}.legend-stat-grid>div>span{display:grid;grid-row:1/3;width:46px;height:46px;place-items:center;border-radius:13px;background:#edf1ff;color:var(--legend-primary);font-weight:900}.legend-stat-grid strong{font-size:24px;line-height:1}.legend-stat-grid small{margin-top:5px;color:var(--legend-muted)}.legend-section{margin:34px 0}.legend-section__heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:17px}.legend-section__heading h2{margin-bottom:4px;font-size:26px}.legend-section__heading p{margin:0;color:var(--legend-muted)}.legend-section__heading>a{font-size:13px;font-weight:800;text-decoration:none}.legend-empty{grid-column:1/-1;padding:48px 26px;border:1px dashed #cbd3e3;border-radius:18px;background:var(--legend-soft);text-align:center}.legend-empty__icon{display:grid;width:54px;height:54px;margin:0 auto 14px;place-items:center;border-radius:16px;background:#e9eeff;color:var(--legend-primary);font-size:25px}.legend-empty h2{margin-bottom:8px}.legend-empty p{max-width:520px;margin:0 auto 20px;color:var(--legend-muted)}
.legend-account-shell{display:grid;grid-template-columns:255px minmax(0,1fr);gap:32px;align-items:start}.legend-account-nav{position:sticky;top:24px;overflow:hidden;border:1px solid var(--legend-line);border-radius:18px;background:#fff;box-shadow:0 10px 35px rgba(24,36,68,.06)}.legend-account-user{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid var(--legend-line)}.legend-account-user img{width:52px;height:52px;border-radius:15px}.legend-account-user div{min-width:0}.legend-account-user strong,.legend-account-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-account-user small{margin-top:3px;color:var(--legend-muted);font-size:11px}.legend-account-nav nav{padding:10px}.legend-account-nav nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:#495468;font-size:14px;font-weight:650;text-decoration:none}.legend-account-nav nav a span{width:23px;color:#7b8497;text-align:center}.legend-account-nav nav a:hover,.legend-account-nav nav a.is-active{background:#edf1ff;color:var(--legend-primary)}.legend-account-nav nav a.is-active span{color:var(--legend-primary)}.legend-account-logout{display:block;padding:16px 21px;border-top:1px solid var(--legend-line);color:var(--legend-danger)!important;font-size:13px;font-weight:750;text-decoration:none}.legend-account-main{min-width:0}.legend-account-heading{margin-bottom:23px;padding-bottom:20px;border-bottom:1px solid var(--legend-line)}.legend-account-heading h1{margin-bottom:7px;font-size:36px}.legend-account-heading p{margin:0;color:var(--legend-muted)}.legend-course-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr))}.legend-table-wrap{overflow:auto;border:1px solid var(--legend-line);border-radius:15px;background:#fff}.legend-lms table{width:100%;border-collapse:collapse}.legend-lms th,.legend-lms td{padding:14px 16px;border-bottom:1px solid var(--legend-line);text-align:left;white-space:nowrap}.legend-lms th{background:#f8f9fc;color:#687287;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.legend-lms tr:last-child td{border:0}.legend-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef1f6;color:#566174;font-size:11px;font-weight:800}.legend-status--completed,.legend-status--paid,.legend-status--active{background:#e5f8f0;color:#11734f}.legend-status--failed,.legend-status--cancelled,.legend-status--refunded{background:#fff0f3;color:#9b2941}.legend-status--pending,.legend-status--on-hold{background:#fff5dd;color:#8a5c12}.legend-note-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.legend-note-grid article{padding:20px;border:1px solid var(--legend-line);border-radius:15px;background:#fff}.legend-note-grid article>div{display:flex;justify-content:space-between;gap:15px;color:var(--legend-primary);font-size:11px;font-weight:800;text-transform:uppercase}.legend-note-grid h3{margin:12px 0 8px}.legend-note-grid h3 a{color:var(--legend-secondary);text-decoration:none}.legend-note-grid p{margin:0;color:var(--legend-muted);font-size:13px}.legend-certificate-grid{display:grid;gap:15px}.legend-certificate-grid article{display:flex;gap:18px;padding:22px;border:1px solid var(--legend-line);border-radius:16px;background:linear-gradient(135deg,#fff,#f8f9ff)}.legend-certificate-grid article>span{display:grid;width:54px;height:54px;flex:0 0 auto;place-items:center;border-radius:15px;background:#edf1ff;color:var(--legend-primary);font-size:25px}.legend-certificate-grid small{color:var(--legend-primary);font-weight:800;text-transform:uppercase}.legend-certificate-grid h3{margin:5px 0}.legend-certificate-grid p{margin-bottom:7px;color:var(--legend-muted)}.legend-certificate-grid a{font-size:13px;font-weight:800;text-decoration:none}.legend-profile-form{padding:24px;border:1px solid var(--legend-line);border-radius:17px;background:#fff}.legend-profile-avatar{display:flex;align-items:center;gap:16px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--legend-line)}.legend-profile-avatar img{border-radius:18px}.legend-profile-avatar p{margin:3px 0 0;color:var(--legend-muted);font-size:13px}.legend-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.legend-fields label,.legend-profile-form label{display:grid;gap:6px;color:#424d62;font-size:13px;font-weight:750}.legend-field--wide{grid-column:1/-1}.legend-lms textarea{min-height:120px;resize:vertical}.legend-profile-form>.legend-button{margin-top:18px}

/* Course sales page */
.legend-course-page .entry-header,.legend-course-page .post-thumbnail,.legend-course-page .entry-title{display:none!important}.legend-course-page .site-main,.legend-course-page .entry-content{max-width:none!important;padding:0!important}.legend-course{max-width:none;margin:-1px 0 50px;padding:0}.legend-course-hero{padding:52px max(24px,calc((100vw - 1180px)/2));background:radial-gradient(circle at 80% 20%,rgba(82,117,235,.27),transparent 33%),linear-gradient(125deg,#10172c,#182a5d 70%,#233d90);color:#fff}.legend-course-hero__content{max-width:760px}.legend-course-breadcrumb{display:flex;gap:9px;margin-bottom:20px;color:#abb9dd;font-size:12px;font-weight:700}.legend-course-breadcrumb a{color:#dce5ff;text-decoration:none}.legend-course-badge{display:inline-flex;margin-bottom:13px;padding:5px 9px;border-radius:7px;background:var(--legend-accent);color:#392800;font-size:11px;font-weight:900;text-transform:uppercase}.legend-course-hero h1{margin-bottom:14px;color:#fff;font-size:clamp(36px,5vw,58px)}.legend-course-tagline{max-width:720px;margin-bottom:17px;color:#dce4f8;font-size:19px}.legend-course-rating{display:flex;align-items:center;gap:8px;margin-bottom:17px;font-size:13px}.legend-course-rating>strong{color:#ffd36c}.legend-course-rating>span{color:#ffc451;letter-spacing:1px}.legend-course-rating>a{color:#dbe4ff}.legend-course-instructor{display:flex;align-items:center;gap:10px;margin-bottom:17px;color:#dce4f8;font-size:13px}.legend-course-instructor img{border:2px solid rgba(255,255,255,.6);border-radius:50%}.legend-course-instructor strong{color:#fff}.legend-course-hero__facts{display:flex;flex-wrap:wrap;gap:17px;color:#cbd5ee;font-size:12px}.legend-course-layout{display:grid;grid-template-columns:minmax(0,760px) 360px;gap:42px;max-width:1180px;margin:0 auto;padding:38px 22px}.legend-course-main>section{margin-bottom:36px}.legend-course-tabs{display:flex;gap:27px;margin-bottom:30px;padding-bottom:14px;border-bottom:1px solid var(--legend-line)}.legend-course-tabs a{color:#505c70;font-size:13px;font-weight:800;text-decoration:none}.legend-course-tabs a:first-child{color:var(--legend-primary)}.legend-learn-box{padding:27px;border:1px solid #dbe2f2;border-radius:17px;background:#fbfcff}.legend-learn-box h2,.legend-course-description h2,.legend-curriculum h2,.legend-course-list h2,.legend-faqs h2{font-size:25px}.legend-learn-box>div{display:grid;grid-template-columns:1fr 1fr;gap:11px 25px}.legend-learn-box p{display:flex;gap:10px;margin:0;color:#3e495d;font-size:14px}.legend-learn-box p span,.legend-course-list li span,.legend-course-includes li span{color:var(--legend-success);font-weight:900}.legend-course-copy{position:relative;max-height:230px;overflow:hidden;color:#3e495d}.legend-course-copy:after{position:absolute;right:0;bottom:0;left:0;height:70px;background:linear-gradient(transparent,#fff);content:""}.legend-course-copy.is-expanded{max-height:none}.legend-course-copy.is-expanded:after{display:none}.legend-course-description>.legend-text-button{margin-top:8px;padding:0}.legend-curriculum .legend-section__heading{align-items:center}.legend-module{overflow:hidden;margin-bottom:10px;border:1px solid var(--legend-line);border-radius:12px;background:#fff}.legend-module summary{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:#f8f9fc;cursor:pointer;list-style:none}.legend-module summary::-webkit-details-marker{display:none}.legend-module summary span{display:grid}.legend-module summary b{font-size:14px}.legend-module summary small{margin-top:3px;color:var(--legend-muted);font-size:11px}.legend-module summary i{font-style:normal}.legend-module[open] summary i{transform:rotate(180deg)}.legend-module ol{margin:0;padding:0;list-style:none}.legend-module li{display:flex;align-items:center;gap:11px;padding:12px 17px;border-top:1px solid #edf0f5;font-size:13px}.legend-lesson-state{display:grid;width:22px;height:22px;flex:0 0 auto;place-items:center;border:1px solid #d8deea;border-radius:50%;color:var(--legend-primary);font-size:11px}.legend-module li>div{display:grid;min-width:0;flex:1}.legend-module li a{color:#344055;font-weight:650;text-decoration:none}.legend-module li small{color:#8991a0;font-size:10px}.legend-preview-link{font-size:11px;font-weight:800}.legend-lesson-duration{color:#8991a0;font-size:11px}.legend-course-list ul,.legend-course-includes ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}.legend-course-list li,.legend-course-includes li{display:flex;gap:11px;color:#465166;font-size:14px}.legend-instructor-card{display:flex;gap:20px;padding:24px;border:1px solid var(--legend-line);border-radius:17px;background:#fff}.legend-instructor-card>img{width:92px;height:92px;border-radius:20px}.legend-instructor-card h2{margin:0 0 8px}.legend-instructor-card p{color:var(--legend-muted)}.legend-instructor-card>div>div{display:flex;gap:17px;color:#5b6679;font-size:12px;font-weight:700}.legend-faqs details{border-bottom:1px solid var(--legend-line)}.legend-faqs summary{display:flex;justify-content:space-between;gap:20px;padding:15px 0;color:var(--legend-secondary);font-size:14px;font-weight:750;cursor:pointer;list-style:none}.legend-faqs summary::-webkit-details-marker{display:none}.legend-faqs details[open] summary span{transform:rotate(45deg)}.legend-faqs details p{padding:0 0 15px;color:var(--legend-muted)}.legend-course-sidebar{position:relative;margin-top:-396px}.legend-course-purchase{position:sticky;top:20px;overflow:hidden;border:1px solid var(--legend-line);border-radius:17px;background:#fff;box-shadow:0 18px 55px rgba(10,23,54,.2)}.legend-course-media{display:grid;aspect-ratio:16/9;overflow:hidden;place-items:center;background:#e9edfa}.legend-course-media img,.legend-course-media iframe,.legend-course-media video{width:100%;height:100%;border:0;object-fit:cover}.legend-course-media__placeholder{display:grid;width:60px;height:60px;place-items:center;border-radius:50%;background:#fff;color:var(--legend-primary);box-shadow:0 10px 30px rgba(0,0,0,.15);font-size:22px}.legend-course-purchase__body{padding:22px}.legend-course-price{display:flex;align-items:baseline;gap:9px;margin-bottom:14px}.legend-course-price strong{color:var(--legend-secondary);font-size:30px}.legend-course-price del{color:#8a93a4}.legend-course-price small{color:var(--legend-muted)}.legend-purchase-progress{margin-bottom:16px}.legend-purchase-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.legend-purchase-progress span{color:var(--legend-muted);font-size:11px}.legend-wishlist{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px;padding:10px;border:1px solid var(--legend-line);border-radius:10px;background:#fff;color:#4d586b;font-weight:750;cursor:pointer}.legend-wishlist span{font-size:20px}.legend-wishlist.is-active{border-color:#efb5c2;background:#fff3f6;color:#b52e4b}.legend-purchase-note{display:block;margin-top:11px;color:#768093;text-align:center}.legend-course-includes{margin-top:20px;padding-top:18px;border-top:1px solid var(--legend-line)}.legend-course-includes h3{font-size:15px}.legend-course-includes li{font-size:12px}.legend-sticky-cta{position:fixed;z-index:90;right:0;bottom:0;left:0;display:none;align-items:center;justify-content:space-between;gap:20px;padding:12px max(20px,calc((100vw - 1120px)/2));border-top:1px solid var(--legend-line);background:rgba(255,255,255,.96);box-shadow:0 -8px 30px rgba(15,25,48,.12);backdrop-filter:blur(12px)}.legend-sticky-cta.is-visible{display:flex}.legend-sticky-cta>div{display:grid}.legend-sticky-cta span{font-size:12px}.legend-sticky-cta strong{font-size:17px}

/* Checkout */
.legend-checkout-page{max-width:1140px}.legend-checkout-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid var(--legend-line)}.legend-checkout-header a{color:#596477;font-size:13px;font-weight:700;text-decoration:none}.legend-checkout-header div{display:flex;align-items:center;gap:7px;color:var(--legend-success);font-size:12px;font-weight:800}.legend-checkout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:25px;align-items:start}.legend-checkout__main{padding:30px;border:1px solid var(--legend-line);border-radius:19px;background:#fff}.legend-checkout__main>h1{margin-bottom:7px;font-size:35px}.legend-checkout__intro{margin-bottom:26px;color:var(--legend-muted)}.legend-checkout-section{margin-top:24px;padding-top:24px;border-top:1px solid var(--legend-line)}.legend-checkout-section__title{display:flex;gap:12px;margin-bottom:17px}.legend-checkout-section__title>span{display:grid;width:31px;height:31px;flex:0 0 auto;place-items:center;border-radius:9px;background:#edf1ff;color:var(--legend-primary);font-weight:900}.legend-checkout-section__title h2{margin:0 0 3px;font-size:19px}.legend-checkout-section__title p{margin:0;color:var(--legend-muted);font-size:12px}.legend-check{display:flex!important;align-items:flex-start;gap:11px;margin-top:15px;padding:13px;border-radius:11px;background:var(--legend-soft)}.legend-check input{width:auto;min-height:0;margin-top:4px}.legend-check span{display:grid}.legend-check small{color:var(--legend-muted);font-weight:400}.legend-gateways{display:grid;gap:9px}.legend-gateways label{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--legend-line);border-radius:11px;cursor:pointer}.legend-gateways label:has(input:checked){border-color:var(--legend-primary);background:#f6f8ff;box-shadow:0 0 0 2px rgba(49,87,213,.08)}.legend-gateways input{width:auto;min-height:0}.legend-gateways label>span:nth-of-type(2){display:grid;flex:1}.legend-gateways small{color:var(--legend-muted);font-weight:400}.legend-gateway-icon{display:grid;width:35px;height:35px;place-items:center;border-radius:9px;background:#edf1ff;color:var(--legend-primary);font-weight:900}.legend-gateways b{color:var(--legend-primary)}.legend-checkout-trust{display:flex;gap:12px;margin:22px 0 5px;padding:14px;border-radius:11px;background:#eef9f4;color:#29634e}.legend-checkout-trust>span{font-size:24px}.legend-checkout-trust p{margin:0;font-size:12px}.legend-order-summary{position:sticky;top:20px;padding:22px;border:1px solid var(--legend-line);border-radius:18px;background:#fff;box-shadow:0 12px 38px rgba(20,33,62,.08)}.legend-order-summary>h2{font-size:20px}.legend-summary-course{display:flex;gap:12px;padding-bottom:17px;border-bottom:1px solid var(--legend-line)}.legend-summary-course img{width:84px;height:62px;border-radius:9px;object-fit:cover}.legend-summary-course small{color:var(--legend-primary);font-size:10px;font-weight:800;text-transform:uppercase}.legend-summary-course h3{margin:3px 0;font-size:14px}.legend-summary-course span{color:var(--legend-muted);font-size:11px}.legend-coupon{padding:16px 0;border-bottom:1px solid var(--legend-line)}.legend-coupon label{display:grid;gap:6px;color:#515c70;font-size:12px;font-weight:750}.legend-coupon label>span{display:flex}.legend-coupon input{min-height:43px;border-radius:9px 0 0 9px}.legend-coupon button{padding:0 13px;border:0;border-radius:0 9px 9px 0;background:#e8edff;color:var(--legend-primary);font-weight:800;cursor:pointer}.legend-order-summary dl{display:grid;grid-template-columns:1fr auto;gap:9px;margin:18px 0}.legend-order-summary dt,.legend-order-summary dd{margin:0;color:#596477;font-size:13px}.legend-order-summary dd{text-align:right}.legend-order-summary .discount{color:var(--legend-success)}.legend-order-summary .total{margin-top:5px;padding-top:13px;border-top:1px solid var(--legend-line);color:var(--legend-secondary);font-size:18px;font-weight:900}.legend-summary-promise{margin:0;padding:10px;border-radius:9px;background:#f0faf5;color:var(--legend-success);font-size:11px;text-align:center}.legend-receipt,.legend-login-prompt{max-width:680px;margin:70px auto;padding:50px;border:1px solid var(--legend-line);border-radius:22px;background:#fff;box-shadow:var(--legend-shadow);text-align:center}.legend-receipt__icon,.legend-login-prompt>span{display:grid;width:72px;height:72px;margin:0 auto 18px;place-items:center;border-radius:50%;background:#e5f8f0;color:var(--legend-success);font-size:32px}.legend-login-prompt>span{background:#edf1ff;color:var(--legend-primary)}.legend-receipt h1,.legend-login-prompt h1{font-size:35px}.legend-receipt>p,.legend-login-prompt>p{max-width:520px;margin:0 auto 22px;color:var(--legend-muted)}.legend-receipt>div{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:22px}.legend-receipt>div strong{font-size:24px}

/* Focus lesson player */
body.legend-focus-mode{background:#f7f8fb}body.legend-focus-mode header.wp-block-template-part,body.legend-focus-mode footer.wp-block-template-part,body.legend-focus-mode .site-header,body.legend-focus-mode .site-footer,body.legend-focus-mode .entry-header,body.legend-focus-mode .post-thumbnail{display:none!important}body.legend-focus-mode main#wp--skip-link--target{max-width:none!important;margin:0!important;padding:0!important}body.legend-focus-mode main#wp--skip-link--target>div:first-child{max-width:none!important;margin:0!important;padding:0!important}body.legend-focus-mode main#wp--skip-link--target>div:first-child>.wp-block-post-title,body.legend-focus-mode main#wp--skip-link--target>div:first-child>.wp-block-group,body.legend-focus-mode main#wp--skip-link--target>div:not(:first-child){display:none!important}body.legend-focus-mode .site-main,body.legend-focus-mode .entry-content,body.legend-focus-mode article{max-width:none!important;margin:0!important;padding:0!important}body.legend-focus-mode #page{max-width:none!important}.legend-lesson-shell{max-width:none;min-height:100vh;margin:0;padding:0;background:#f7f8fb}.legend-lesson-topbar{position:sticky;z-index:80;top:0;display:grid;grid-template-columns:220px 1fr 46px;align-items:center;gap:22px;height:72px;padding:0 20px;border-bottom:1px solid #e0e4ec;background:#fff}.admin-bar .legend-lesson-topbar{top:32px}.legend-lesson-back{color:#536074!important;font-size:13px;font-weight:750;text-decoration:none!important}.legend-lesson-topbar>div{display:grid;grid-template-columns:minmax(180px,1fr) minmax(140px,320px) auto;align-items:center;gap:14px}.legend-lesson-topbar>div strong{overflow:hidden;color:var(--legend-secondary);text-overflow:ellipsis;white-space:nowrap}.legend-lesson-topbar>div small{color:var(--legend-muted);font-size:11px}.legend-lesson-menu{display:none;width:42px;height:42px;border:1px solid var(--legend-line);border-radius:10px;background:#fff}.legend-lesson-layout{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:calc(100vh - 72px)}.legend-lesson-sidebar{position:sticky;top:72px;max-height:calc(100vh - 72px);overflow:auto;border-right:1px solid #e0e4ec;background:#fff}.admin-bar .legend-lesson-sidebar{top:104px;max-height:calc(100vh - 104px)}.legend-lesson-sidebar>div{display:grid;padding:18px;border-bottom:1px solid var(--legend-line)}.legend-lesson-sidebar>div strong{font-size:13px}.legend-lesson-sidebar nav section>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;border:0;border-bottom:1px solid var(--legend-line);background:#f8f9fc;color:var(--legend-secondary);text-align:left;cursor:pointer}.legend-lesson-sidebar nav section>button span{display:grid;font-weight:750}.legend-lesson-sidebar nav section>button small{margin-bottom:2px;color:var(--legend-primary);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.legend-lesson-sidebar nav section>button b{font-size:16px}.legend-lesson-sidebar nav section.is-collapsed>button b{transform:rotate(-90deg)}.legend-lesson-sidebar nav section.is-collapsed ol{display:none}.legend-lesson-sidebar ol{margin:0;padding:0;list-style:none}.legend-lesson-sidebar li a{display:flex;gap:10px;padding:12px 15px;border-bottom:1px solid #f0f2f6;color:#4b566a;text-decoration:none}.legend-lesson-sidebar li>a>span{display:grid;width:21px;height:21px;flex:0 0 auto;place-items:center;border:1px solid #d9deea;border-radius:50%;font-size:10px}.legend-lesson-sidebar li>a>div{display:grid;font-size:12px;font-weight:650}.legend-lesson-sidebar li small{color:#9299a7;font-size:9px;font-weight:500}.legend-lesson-sidebar li.is-current a{border-left:3px solid var(--legend-primary);background:#edf1ff;color:var(--legend-primary)}.legend-lesson-sidebar li.is-complete>a>span{border-color:var(--legend-success);background:#e9f8f2;color:var(--legend-success)}.legend-lesson-main{min-width:0}.legend-lesson-content{max-width:850px;margin:0 auto;padding:43px 40px 50px}.legend-lesson-kicker{display:flex;justify-content:space-between;margin-bottom:9px;color:var(--legend-primary);font-size:11px;font-weight:800;text-transform:uppercase}.legend-lesson-content>h1{margin-bottom:24px;font-size:38px}.legend-lesson-media{margin-bottom:25px}.legend-lesson-media:empty{display:none}.legend-lesson-media iframe,.legend-lesson-media video{width:100%;max-height:530px;border:0;border-radius:14px;background:#111;aspect-ratio:16/9}.legend-lesson-media audio{width:100%}.legend-lesson-copy{color:#39455a;font-size:16px;line-height:1.8}.legend-notes{margin-top:35px;padding:20px;border:1px solid #dce2ef;border-radius:15px;background:#fff}.legend-notes>div{display:flex;gap:11px;margin-bottom:13px}.legend-notes>div>span{display:grid;width:37px;height:37px;place-items:center;border-radius:10px;background:#edf1ff;color:var(--legend-primary)}.legend-notes h2{margin:0 0 3px;font-size:17px}.legend-notes p{margin:0;color:var(--legend-muted);font-size:11px}.legend-notes textarea{margin-bottom:10px;background:#fafbfe}.legend-lesson-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 28px;border-top:1px solid var(--legend-line);background:#fff}.legend-lesson-footer>div{display:flex;align-items:center;gap:10px}.legend-lesson-footer a{display:flex;align-items:center;gap:9px;max-width:260px;color:#4c586c;text-decoration:none}.legend-lesson-footer a span{display:grid;font-size:12px;font-weight:750}.legend-lesson-footer a small{color:#929aaa;font-size:9px;font-weight:500;text-transform:uppercase}.legend-lesson-footer .is-complete{background:var(--legend-success);box-shadow:none}.legend-certificate{max-width:900px;margin:50px auto;padding:70px;border:10px double var(--legend-primary);background:#fff;text-align:center}.legend-certificate__mark{display:block;color:var(--legend-primary);font-size:42px}.legend-certificate h1{font-size:48px}.legend-certificate h2{color:var(--legend-primary)}

@media(max-width:1020px){.legend-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.legend-course-layout{grid-template-columns:minmax(0,1fr) 320px;gap:25px}.legend-course-sidebar{margin-top:-180px}.legend-lesson-layout{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:820px){.legend-catalog-toolbar{grid-template-columns:1fr 1fr}.legend-search{grid-column:1/-1}.legend-account-shell{grid-template-columns:1fr}.legend-account-nav{position:static}.legend-account-nav nav{display:flex;overflow:auto}.legend-account-nav nav a{flex:0 0 auto}.legend-account-logout{display:none}.legend-course-layout{grid-template-columns:1fr}.legend-course-sidebar{grid-row:1;margin-top:-20px}.legend-course-purchase{position:static}.legend-course-tabs{overflow:auto}.legend-checkout{grid-template-columns:1fr}.legend-order-summary{position:static}.legend-lesson-topbar{grid-template-columns:1fr 46px}.legend-lesson-back{display:none}.legend-lesson-topbar>div{grid-template-columns:1fr}.legend-lesson-topbar>div .legend-progress,.legend-lesson-topbar>div small{display:none}.legend-lesson-menu{display:block}.legend-lesson-layout{grid-template-columns:1fr}.legend-lesson-sidebar{position:fixed;z-index:75;top:72px;bottom:0;left:0;width:min(340px,88vw);max-height:none;transform:translateX(-105%);box-shadow:20px 0 40px rgba(10,20,40,.18);transition:.25s}.legend-lesson-shell.is-menu-open .legend-lesson-sidebar{transform:translateX(0)}}
@media(max-width:640px){.legend-lms{margin:18px auto;padding:0 14px}.legend-catalog-hero{align-items:flex-start;flex-direction:column;padding:31px 25px}.legend-catalog-hero h1{font-size:40px}.legend-catalog-toolbar{grid-template-columns:1fr}.legend-search{grid-column:auto}.legend-course-grid,.legend-course-grid--compact,.legend-note-grid{grid-template-columns:1fr}.legend-dashboard-hero{align-items:flex-start;flex-direction:column;padding:28px 24px}.legend-dashboard-hero h1{font-size:30px}.legend-stat-grid{grid-template-columns:1fr}.legend-account-heading h1{font-size:31px}.legend-account-user{display:none}.legend-learn-box>div{grid-template-columns:1fr}.legend-course-hero{padding:38px 20px}.legend-course-hero h1{font-size:38px}.legend-course-layout{padding:22px 14px}.legend-course-tabs{gap:20px}.legend-instructor-card{flex-direction:column}.legend-fields{grid-template-columns:1fr}.legend-field--wide{grid-column:auto}.legend-checkout__main{padding:22px 17px}.legend-checkout__main>h1{font-size:29px}.legend-sticky-cta>div{display:none}.legend-sticky-cta{justify-content:flex-end}.legend-lesson-content{padding:30px 18px}.legend-lesson-content>h1{font-size:31px}.legend-lesson-footer{align-items:stretch;flex-direction:column}.legend-lesson-footer>div{justify-content:space-between}.legend-certificate{padding:35px 20px}.legend-certificate h1{font-size:34px}}

/* Learner billing and subscriptions */
.legend-text-link{font-size:12px;font-weight:800;text-decoration:none}.legend-subscription-list{display:grid;gap:15px}.legend-subscription-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:22px;border:1px solid var(--legend-line);border-radius:16px;background:#fff;box-shadow:0 7px 24px rgba(24,36,68,.05)}.legend-subscription-list h2{margin:9px 0 5px;font-size:20px}.legend-subscription-list p{margin:0;color:var(--legend-muted)}.legend-subscription-list dl{display:grid;grid-template-columns:auto auto;gap:7px 16px;margin:0}.legend-subscription-list dt{color:var(--legend-muted);font-size:12px}.legend-subscription-list dd{margin:0;text-align:right;font-size:12px;font-weight:750}.legend-subscription-list form{grid-column:1/-1;margin:0;padding-top:12px;border-top:1px solid var(--legend-line)}.legend-subscription-list form button{padding:0;color:var(--legend-danger)}.legend-account-receipt{overflow:hidden;border:1px solid var(--legend-line);border-radius:18px;background:#fff;box-shadow:var(--legend-shadow)}.legend-account-receipt>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px 30px;border-bottom:1px solid var(--legend-line);background:linear-gradient(135deg,#fbfcff,#edf1ff)}.legend-account-receipt h1{margin-bottom:5px}.legend-account-receipt header p{margin:0;color:var(--legend-muted)}.legend-receipt-actions{display:flex;gap:8px}.legend-receipt-meta{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:25px 30px}.legend-receipt-meta>div{display:grid}.legend-receipt-meta small{margin-bottom:7px;color:var(--legend-primary);font-weight:800;text-transform:uppercase}.legend-receipt-meta span{color:var(--legend-muted);font-size:13px}.legend-receipt-meta .legend-status{justify-self:start;margin-top:7px}.legend-receipt-items{margin:0 30px;border:1px solid var(--legend-line);border-radius:12px}.legend-receipt-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 120px;gap:15px;padding:13px 15px;border-bottom:1px solid var(--legend-line)}.legend-receipt-row:last-child{border:0}.legend-receipt-row>span{display:grid}.legend-receipt-row>span:nth-child(n+2){text-align:right}.legend-receipt-row small{color:var(--legend-muted);font-size:11px}.legend-receipt-row--head{background:#f8f9fc;color:var(--legend-muted);font-size:11px;font-weight:800;text-transform:uppercase}.legend-receipt-totals{display:grid;grid-template-columns:1fr auto;gap:8px;max-width:380px;margin:20px 30px 25px auto}.legend-receipt-totals dt,.legend-receipt-totals dd{margin:0}.legend-receipt-totals dd{text-align:right}.legend-receipt-totals .total{margin-top:5px;padding-top:12px;border-top:1px solid var(--legend-line);font-size:18px;font-weight:900}.legend-account-receipt>footer{display:flex;justify-content:space-between;padding:16px 30px;background:#f8f9fc;color:var(--legend-muted);font-size:12px}@media(max-width:640px){.legend-subscription-list article{grid-template-columns:1fr}.legend-receipt-meta{grid-template-columns:1fr}.legend-account-receipt>header,.legend-receipt-actions{align-items:stretch;flex-direction:column}.legend-receipt-row{grid-template-columns:minmax(0,1fr) 55px 90px}.legend-account-receipt>footer{gap:5px;flex-direction:column}}
@media print{body *{visibility:hidden}.legend-account-receipt,.legend-account-receipt *{visibility:visible}.legend-account-receipt{position:absolute;top:0;left:0;width:100%;border:0;box-shadow:none}.legend-receipt-actions,.legend-account-nav,.site-header,.site-footer{display:none!important}}
.legend-currency-switch{padding:15px 0 0}.legend-currency-switch label{display:grid;gap:6px;color:#515c70;font-size:12px;font-weight:750}.legend-currency-switch select{min-height:42px}

/* Focused checkout and first-party learner authentication */
.legend-checkout-page{max-width:1120px;margin:0 auto;padding:28px 22px 64px}.legend-checkout-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-bottom:30px;padding-bottom:18px}.legend-checkout-header>a:first-child{justify-self:start}.legend-checkout-header>div{justify-self:end}.legend-checkout-brand{display:flex;align-items:center;gap:9px;color:var(--legend-secondary)!important;text-decoration:none!important}.legend-checkout-brand>span,.legend-checkout-title__mark,.legend-auth-mark{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:linear-gradient(145deg,var(--legend-primary),var(--legend-primary-dark));box-shadow:0 10px 24px rgba(49,87,213,.24);color:#fff;font-size:20px;font-weight:900}.legend-checkout-title{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 auto 24px;text-align:left}.legend-checkout-title h1{margin:0;font-size:34px}.legend-checkout-title p{margin:2px 0 0;color:var(--legend-muted);font-size:14px}.legend-checkout-login-callout{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 auto 18px;padding:13px 18px;border:1px solid #ced9f4;border-radius:12px;background:#eef4ff;color:#4c5b72;font-size:14px}.legend-checkout-login-callout button{padding:0;border:0;background:transparent;color:var(--legend-primary);font:inherit;font-weight:850;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.legend-checkout{grid-template-columns:minmax(0,1.35fr) minmax(300px,.75fr);gap:24px}.legend-checkout__main{padding:0;border:0;background:transparent}.legend-checkout__main>form{display:grid;gap:16px}.legend-checkout-section,.legend-checkout-section--first{margin:0;padding:25px;border:1px solid var(--legend-line);border-radius:17px;background:#fff;box-shadow:0 8px 28px rgba(24,36,68,.05)}.legend-checkout-section--first{border-color:#b9c9ed;box-shadow:0 0 0 2px rgba(49,87,213,.06),0 12px 32px rgba(24,36,68,.07)}.legend-checkout-section__title{margin-bottom:20px}.legend-checkout-section__title>span{border-radius:50%;background:var(--legend-primary);color:#fff}.legend-checkout-section__title h2{font-size:20px}.legend-fields label>span[aria-hidden]{color:var(--legend-danger)}.legend-fields label>small,.legend-auth-form label>small{color:var(--legend-muted);font-size:11px;font-weight:500}.legend-password-field{position:relative;display:block}.legend-password-field input{padding-right:66px}.legend-password-field button{position:absolute;top:50%;right:8px;min-height:34px;padding:0 9px;border:0;border-radius:8px;transform:translateY(-50%);background:#eef2fb;color:var(--legend-primary);font-size:11px;font-weight:850;cursor:pointer}.legend-signed-in-account{display:flex;align-items:center;gap:13px;padding:15px;border-radius:13px;background:var(--legend-soft)}.legend-signed-in-account img{border-radius:13px}.legend-signed-in-account div{display:grid}.legend-signed-in-account small,.legend-signed-in-account span{color:var(--legend-muted);font-size:11px}.legend-gateways label{min-height:70px}.legend-gateways label>b{width:18px;height:18px;border:2px solid #a9b4c8;border-radius:50%}.legend-gateways label:has(input:checked)>b{border:5px solid var(--legend-primary)}.legend-checkout-trust{margin:0}.legend-order-summary{top:24px;border-top:4px solid var(--legend-primary);box-shadow:0 18px 46px rgba(20,33,62,.11)}.legend-order-summary>h2{margin-bottom:18px}.legend-summary-course img{width:72px;height:58px}.legend-coupon{padding:16px 0;border-bottom:1px solid var(--legend-line)}.legend-coupon summary{color:#4d5a70;font-size:13px;font-weight:800;cursor:pointer}.legend-coupon form{margin-top:12px}.legend-coupon label>span{display:flex}.legend-order-summary .total{font-size:20px}.legend-summary-promise{font-weight:750}.legend-auth-dialog{width:min(480px,calc(100% - 28px));max-height:calc(100vh - 40px);padding:34px;border:0;border-radius:20px;box-shadow:0 28px 90px rgba(9,20,48,.32);color:var(--legend-text)}.legend-auth-dialog::backdrop{background:rgba(9,18,40,.62);backdrop-filter:blur(4px)}.legend-auth-dialog__close{position:absolute;top:14px;right:16px;width:34px;height:34px;border:0;border-radius:50%;background:#eef1f7;color:#475269;font-size:22px;cursor:pointer}.legend-auth-dialog>.legend-auth-mark{margin-bottom:18px}.legend-auth-dialog h2{margin-bottom:7px;font-size:26px}.legend-auth-dialog>p{margin-bottom:22px;color:var(--legend-muted)}.legend-auth-dialog .legend-auth-help{display:block;margin-top:15px;text-align:center}.legend-auth-page{max-width:1180px;margin:0 auto;padding:0 22px 70px}.legend-auth-hero{display:flex;align-items:center;justify-content:space-between;gap:34px;margin-bottom:28px;padding:36px 44px;border-radius:22px;background:radial-gradient(circle at 82% 10%,rgba(114,145,255,.35),transparent 33%),linear-gradient(125deg,#111a34,#2444b4);box-shadow:0 22px 55px rgba(18,34,82,.18);color:#fff}.legend-auth-hero>div{display:flex;align-items:center;gap:16px}.legend-auth-hero .legend-auth-mark{background:#fff;color:var(--legend-primary)}.legend-auth-hero .legend-eyebrow{margin:0;color:#b8c7ff}.legend-auth-hero h1{margin:2px 0 0;color:#fff;font-size:38px}.legend-auth-hero>p{max-width:430px;margin:0;color:#dce5ff}.legend-auth-card{width:min(480px,100%);margin:0 auto;padding:34px 36px;border:1px solid var(--legend-line);border-radius:19px;background:#fff;box-shadow:0 20px 55px rgba(24,36,68,.09)}.legend-auth-card>h2{margin-bottom:8px;font-size:29px}.legend-auth-card>p{margin-bottom:25px;color:var(--legend-muted)}.legend-auth-form{display:grid;gap:16px}.legend-auth-form>label:not(.legend-auth-remember){display:grid;gap:6px;color:#404b60;font-size:13px;font-weight:750}.legend-auth-remember{display:flex;align-items:center;gap:9px;color:#4f5a6e;font-size:13px;cursor:pointer}.legend-auth-remember input{width:17px;min-height:17px;margin:0}.legend-auth-help{display:block;margin-top:17px;font-size:13px;font-weight:750;text-align:center;text-decoration:none}.legend-auth-switch{margin:24px -36px -34px!important;padding:18px 20px;border-top:1px solid var(--legend-line);border-radius:0 0 19px 19px;background:#f8f9fc;text-align:center}.legend-auth-switch a{font-weight:850}.legend-login-prompt>span{background:linear-gradient(145deg,var(--legend-primary),var(--legend-primary-dark));color:#fff;font-weight:900}
@media(max-width:820px){.legend-checkout-header{grid-template-columns:1fr 1fr}.legend-checkout-brand{display:none}.legend-checkout{grid-template-columns:1fr}.legend-order-summary{position:static;grid-row:1}.legend-auth-hero{align-items:flex-start;flex-direction:column}.legend-auth-hero>p{max-width:none}}
@media(max-width:640px){.legend-checkout-page{padding:18px 12px 42px}.legend-checkout-header{margin-bottom:22px}.legend-checkout-header>div{font-size:0}.legend-checkout-header>div span{font-size:14px}.legend-checkout-title{justify-content:flex-start}.legend-checkout-title h1{font-size:29px}.legend-checkout-title__mark{width:38px;height:38px}.legend-checkout-login-callout{justify-content:space-between}.legend-checkout-section,.legend-checkout-section--first{padding:21px 17px}.legend-auth-dialog{padding:28px 20px}.legend-auth-page{padding:0 12px 45px}.legend-auth-hero{margin-bottom:20px;padding:28px 22px}.legend-auth-hero h1{font-size:31px}.legend-auth-hero>div{align-items:flex-start}.legend-auth-card{padding:27px 20px}.legend-auth-switch{margin:23px -20px -27px!important}.legend-order-summary{padding:20px}}
/* Keep the course action card inside the hero without letting it rise beneath the full header stack. */
@media(min-width:1021px){.legend-course-sidebar{margin-top:-328px}}
@media(min-width:821px){.legend-course-purchase{top:104px}.admin-bar .legend-course-purchase{top:136px}}
@media(prefers-reduced-motion:reduce){.legend-auth-dialog::backdrop{backdrop-filter:none}}
.legend-checkout-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:38px;padding:28px 4px 0;border-top:1px solid var(--legend-line);color:var(--legend-muted);font-size:12px}.legend-checkout-footer nav{display:flex;align-items:center;gap:18px}.legend-checkout-footer nav a{color:var(--legend-muted);font-weight:750;text-decoration:none}.legend-checkout-footer nav a:hover,.legend-checkout-footer nav a:focus{color:var(--legend-primary);text-decoration:underline;text-underline-offset:3px}.legend-checkout-footer>span:last-child{color:var(--legend-success);font-weight:800}
@media(max-width:820px){.legend-checkout-header{grid-template-columns:1fr 1fr;row-gap:16px}.legend-checkout-brand{display:flex;grid-column:1/-1;grid-row:1;justify-self:center}.legend-checkout-header>a:first-child{grid-column:1;grid-row:2}.legend-checkout-header>div{grid-column:2;grid-row:2}}
@media(max-width:640px){.legend-checkout-brand>span{width:36px;height:36px;border-radius:10px;font-size:17px}.legend-checkout-brand strong{font-size:13px}.legend-checkout-footer{align-items:flex-start;flex-direction:column;gap:10px;margin-top:30px;padding:24px 4px 0}}
.legend-checkout-page{max-width:1060px}

/* Course-page state fixes. */
.legend-course-copy.is-short:after{display:none}
.legend-course-media__placeholder{cursor:default}
.legend-course-main [id]{scroll-margin-top:150px}
.legend-course-tabs a:focus-visible,.legend-course-description .legend-text-button:focus-visible,.legend-curriculum .legend-text-button:focus-visible{outline:3px solid rgba(49,87,213,.3);outline-offset:4px;border-radius:4px}
.legend-checkout-header>.legend-checkout-brand{grid-column:2;justify-self:center}.legend-checkout-header>div{grid-column:3}
@media(max-width:820px){.legend-checkout-header{grid-template-columns:1fr auto;row-gap:0}.legend-checkout-header>.legend-checkout-brand{grid-column:1;grid-row:1;justify-self:start}.legend-checkout-header>div{grid-column:2;grid-row:1}}
.legend-checkout-header{display:flex;justify-content:center}.legend-checkout-header>.legend-checkout-brand{grid-column:auto;justify-self:auto}.legend-checkout-title__security{display:flex;align-items:center;gap:6px;margin-top:8px;color:var(--legend-success);font-size:11px;font-weight:800}
@media(max-width:820px){.legend-checkout-header{display:flex;justify-content:center}.legend-checkout-header>.legend-checkout-brand{grid-column:auto;grid-row:auto;justify-self:auto}}
.legend-checkout-title{justify-content:center;text-align:center}.legend-checkout-title__security{justify-content:center}
@media(max-width:640px){.legend-checkout-title{justify-content:center;text-align:center}}
.legend-checkout-footer{margin-top:114px}.legend-checkout-footer nav{gap:9px}.legend-checkout-footer nav>span{color:var(--legend-muted)}
@media(max-width:640px){.legend-checkout-footer{margin-top:90px}}

/* Phase 2 learner experience */
.legend-note-toolbar{display:flex;gap:6px;margin-top:14px}.legend-note-toolbar button{border:1px solid #d7dce8;background:#fff;border-radius:7px;padding:5px 10px;cursor:pointer}.legend-note-editor{min-height:150px;margin:0 0 14px;padding:14px;border:1px solid #d7dce8;border-radius:10px;background:#fff;line-height:1.6}.legend-note-editor:focus{outline:2px solid var(--legend-primary,#3157d5);outline-offset:1px}.legend-notes [data-legend-bookmark]{margin-left:8px}.legend-notes [data-legend-bookmark].is-active{color:#9a6200;border-color:#f1c75b;background:#fff9e8}

/* Keep curriculum section chevrons optically centered. */
.legend-lesson-sidebar nav section>button b{display:grid!important;width:32px;height:32px;flex:0 0 32px;place-items:center;margin-left:12px;line-height:1;transform-origin:center}
.legend-reviews{max-width:1180px;margin:44px auto;padding:32px;border:1px solid #e2e6ef;border-radius:18px;background:#fff}.legend-reviews>header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.legend-reviews>header h2{margin:4px 0 0}.legend-reviews>header>strong{font-size:1.5rem}.legend-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.legend-review-grid article{padding:20px;border:1px solid #e5e8f0;border-radius:14px}.legend-review-grid article>div{display:flex;justify-content:space-between;gap:12px;color:#d58b00}.legend-review-grid h3{margin:12px 0 6px}.legend-review-grid aside{margin-top:14px;padding:12px;background:#f5f7fb;border-radius:8px}.legend-reviews form{display:grid;gap:14px;margin-top:26px;padding-top:24px;border-top:1px solid #e5e8f0}.legend-reviews form label{display:grid;gap:6px}.legend-reviews form input,.legend-reviews form select,.legend-reviews form textarea{width:100%;padding:10px;border:1px solid #cfd5e2;border-radius:8px}.legend-points-card{display:inline-flex;flex-direction:column;padding:24px;border-radius:16px;background:#17213c;color:#fff}.legend-points-card strong{font-size:2.25rem}.legend-leaderboard{list-style:none;padding:0}.legend-leaderboard li{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #e5e8f0}.legend-leaderboard li span{display:flex;flex:1;flex-direction:column}.legend-leaderboard img{border-radius:50%}
@media(max-width:680px){.legend-reviews{margin:28px 12px;padding:22px}.legend-reviews>header{align-items:start;flex-direction:column}}

/* Keep secondary receipt actions legible when the shared primary hover style applies. */
.legend-receipt-actions .legend-button--secondary:hover{background:#e7f6ef;background:color-mix(in srgb,var(--legend-primary) 12%,#fff);box-shadow:0 8px 18px color-mix(in srgb,var(--legend-primary) 14%,transparent);color:var(--legend-primary-dark)!important}
.legend-receipt-actions .legend-button--secondary:focus-visible{outline:3px solid color-mix(in srgb,var(--legend-primary) 32%,transparent);outline-offset:3px;background:#e7f6ef;background:color-mix(in srgb,var(--legend-primary) 12%,#fff);color:var(--legend-primary-dark)!important}

/* Dynamic front-end visibility must override component layout declarations. */
.legend-lms [hidden]{display:none!important}

/* Keep every public Legend LMS action optically centred across links and buttons. */
.legend-lms .legend-button {
	box-sizing: border-box;
	vertical-align: middle;
	white-space: nowrap;
	appearance: none;
}

.legend-lms .legend-button > .dashicons,
.legend-lms .legend-button > svg {
	flex: 0 0 auto;
	margin: 0;
}

.legend-lms .legend-text-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	line-height: 1.4;
	vertical-align: middle;
	appearance: none;
}

/* Keep theme link rules from changing action contrast on hover and keyboard focus. */
.legend-lms a.legend-button:hover,
.legend-lms a.legend-button:focus-visible,
.legend-lms button.legend-button:hover,
.legend-lms button.legend-button:focus-visible {
	background: var(--legend-primary-dark) !important;
	background: color-mix(in srgb, var(--legend-primary) 82%, #000) !important;
	box-shadow: 0 12px 25px rgba(49, 87, 213, .24);
	box-shadow: 0 12px 25px color-mix(in srgb, var(--legend-primary) 24%, transparent);
	color: #fff !important;
	text-decoration: none !important;
}

.legend-lms a.legend-button:focus-visible,
.legend-lms button.legend-button:focus-visible {
	outline: 3px solid rgba(49, 87, 213, .3);
	outline-color: color-mix(in srgb, var(--legend-primary) 32%, transparent);
	outline-offset: 3px;
}

.legend-lms .legend-button--secondary:hover,
.legend-lms .legend-button--secondary:focus-visible,
.legend-lms .legend-button--light:hover,
.legend-lms .legend-button--light:focus-visible {
	background: #dfe6ff !important;
	background: color-mix(in srgb, var(--legend-primary) 12%, #fff) !important;
	box-shadow: 0 8px 18px rgba(49, 87, 213, .16);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--legend-primary) 16%, transparent);
	color: var(--legend-primary-dark) !important;
	color: color-mix(in srgb, var(--legend-primary) 78%, #000) !important;
}

/* Keep instructor portraits square even when the site's global responsive-image rule wins. */
.legend-instructor-card > img.avatar {
	width: 92px;
	height: 92px;
	flex: 0 0 92px;
	align-self: flex-start;
	object-fit: cover;
	object-position: center;
}

.legend-lms .legend-receipt-actions .legend-button--secondary:hover,
.legend-lms .legend-receipt-actions .legend-button--secondary:focus-visible {
	background: #e7f6ef !important;
	background: color-mix(in srgb, var(--legend-primary) 12%, #fff) !important;
	color: var(--legend-primary-dark) !important;
	color: color-mix(in srgb, var(--legend-primary) 78%, #000) !important;
}

.legend-review-photo {
	margin: 14px 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	background: #f1f4f8;
}

.legend-review-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.legend-reviews form .legend-review-photo-field {
	padding: 14px 16px;
	border: 1px dashed #b9c4d6;
	border-radius: 12px;
	background: #f8faff;
}

.legend-review-photo-field > span {
	font-weight: 750;
}

.legend-reviews form .legend-review-photo-field input[type="file"] {
	padding: 6px;
	background: #fff;
}

.legend-review-photo-field input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 9px 14px;
	border: 0;
	border-radius: 7px;
	background: var(--legend-primary);
	color: #fff;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.legend-review-photo-field small {
	color: var(--legend-muted);
	font-size: 12px;
}

body.legend-video-modal-open {
	overflow: hidden;
}

.legend-course-media__trigger {
	position: relative;
	display: grid;
	width: 100%;
	height: 100%;
	overflow: hidden;
	place-items: center;
	padding: 0;
	border: 0;
	background: #0b1220;
	color: #fff;
	cursor: pointer;
}

.legend-course-media__trigger:focus-visible {
	outline: 4px solid var(--legend-primary);
	outline-offset: -4px;
}

.legend-course-media__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.legend-course-media__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 10, 20, .08), rgba(5, 10, 20, .62));
}

.legend-course-media__play {
	position: relative;
	display: grid;
	width: 62px;
	height: 62px;
	place-items: center;
	padding-left: 4px;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 14px 35px rgba(0, 0, 0, .32);
	color: var(--legend-primary);
	font-size: 23px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.legend-course-media__trigger:hover .legend-course-media__play {
	transform: scale(1.08);
	box-shadow: 0 18px 42px rgba(0, 0, 0, .4);
}

.legend-course-media__caption {
	position: absolute;
	right: 0;
	bottom: 18px;
	left: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.legend-video-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	width: min(1600px, calc(100vw - 48px));
	max-width: none;
	max-height: calc(100vh - 40px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.legend-video-modal::backdrop {
	background: rgba(6, 13, 25, .78);
	backdrop-filter: blur(7px);
}

.legend-video-modal__dialog {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 20px;
	background: #0b1220;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.legend-video-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 17px 20px;
	background: #fff;
}

.legend-video-modal__header span {
	display: block;
	margin-bottom: 2px;
	color: var(--legend-primary);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.legend-video-modal__header h2 {
	margin: 0;
	color: var(--legend-secondary);
	font-size: clamp(18px, 2vw, 24px);
	line-height: 1.2;
}

.legend-video-modal__header button {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	place-items: center;
	padding: 0;
	border: 1px solid var(--legend-line);
	border-radius: 12px;
	background: #f7f9fc;
	color: var(--legend-secondary);
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.legend-video-modal__header button:hover,
.legend-video-modal__header button:focus-visible {
	border-color: var(--legend-primary);
	background: #eef2ff;
	color: var(--legend-primary);
}

.legend-video-modal__player {
	display: grid;
	height: min(72vh, 56.25vw, 850px);
	place-items: center;
	background: #000;
}

.legend-video-modal__player iframe,
.legend-video-modal__player video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

@media (max-width: 680px) {
	.legend-video-modal {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
	}

	.legend-video-modal__dialog {
		border-radius: 15px;
	}

	.legend-video-modal__header {
		padding: 13px 14px;
	}

	.legend-course-media__play {
		width: 54px;
		height: 54px;
	}
}

/* Keep oEmbed players responsive when WordPress supplies fixed iframe dimensions. */
.legend-lesson-media iframe,
.legend-lesson-media video {
	display: block;
	height: auto;
}

/* Keep administrator-authored lesson embeds visible and responsive. */
.legend-lesson-copy iframe {
	max-width: 100%;
	border: 0;
}

.legend-lesson-copy > iframe,
.legend-lesson-copy > p > iframe {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	background: #111;
	aspect-ratio: 16 / 9;
}

/* Modern lesson-section disclosure control. */
.legend-lesson-sidebar nav section > button {
	gap: 14px;
	transition: background-color 180ms ease, color 180ms ease;
}

.legend-lesson-sidebar nav section > button:hover {
	background: #f1f7f4;
}

.legend-lesson-sidebar nav section > button:focus-visible {
	position: relative;
	z-index: 1;
	outline: 3px solid rgba(31, 157, 104, 0.2);
	outline-offset: -3px;
}

.legend-lesson-sidebar nav section > button > span {
	min-width: 0;
}

.legend-lesson-sidebar nav section > button > b {
	display: grid;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	place-items: center;
	align-self: center;
	padding: 0;
	border: 1px solid #dbe6e1;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(16, 38, 31, 0.07);
	color: transparent;
	font-size: 0;
	line-height: 1;
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.legend-lesson-sidebar nav section > button > b::before {
	display: block;
	width: 16px;
	height: 16px;
	background: center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10.5l4-4' fill='none' stroke='%231f9d68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	content: "";
}

.legend-lesson-sidebar nav section > button:hover > b {
	border-color: #b9d9ca;
	background: #e8f5ef;
	box-shadow: 0 6px 16px rgba(16, 38, 31, 0.1);
}

.legend-lesson-sidebar nav section.is-collapsed > button > b {
	transform: rotate(-90deg);
}

/* My Account: progressive AJAX navigation and resilient achievement cards. */
.legend-account-main {
	position: relative;
	transition: opacity 0.18s ease;
}

.legend-account-shell.is-loading .legend-account-main {
	min-height: 320px;
	opacity: 0.48;
	pointer-events: none;
}

.legend-account-shell.is-loading .legend-account-main::after {
	position: absolute;
	top: 34px;
	left: 50%;
	width: 30px;
	height: 30px;
	margin-left: -15px;
	border: 3px solid #dfe5f5;
	border-top-color: var(--legend-primary);
	border-radius: 50%;
	content: "";
	animation: legend-account-spin 0.7s linear infinite;
}

.legend-account-main:focus {
	outline: 0;
}

@keyframes legend-account-spin {
	to { transform: rotate(360deg); }
}

.legend-certificate-card {
	align-items: flex-start;
	box-shadow: 0 12px 34px rgba(24, 36, 68, 0.05);
}

.legend-certificate-card__body {
	min-width: 0;
	flex: 1;
}

.legend-certificate-card__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.legend-certificate-card__label b {
	padding: 5px 9px;
	border-radius: 999px;
	background: #e5f8f0;
	color: #11734f;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.legend-certificate-card__body p {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 15px;
}

.legend-certificate-card__body p span {
	color: #7b8497;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.legend-certificate-card__body .legend-button {
	display: inline-flex;
	font-size: 12px;
	text-decoration: none;
}

@media (max-width: 640px) {
	.legend-certificate-card {
		padding: 18px;
	}

	.legend-certificate-card__label {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.legend-certificate-card__body p {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
}

/* Compact account course library. */
.legend-course-grid--compact {
	gap: 16px;
}

.legend-course-grid--compact .legend-card__image {
	aspect-ratio: 16 / 7;
}

.legend-course-grid--compact .legend-card__placeholder {
	font-size: 42px;
}

.legend-course-grid--compact .legend-card__body {
	padding: 14px 15px 13px;
}

.legend-course-grid--compact .legend-card__meta {
	margin-bottom: 6px;
	font-size: 9px;
}

.legend-course-grid--compact .legend-card__meta strong {
	font-size: 12px;
}

.legend-course-grid--compact .legend-card h3 {
	display: -webkit-box;
	margin-bottom: 6px;
	overflow: hidden;
	font-size: 16px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.legend-course-grid--compact .legend-card__body > p {
	display: -webkit-box;
	min-height: 36px;
	margin-bottom: 10px;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.legend-course-grid--compact .legend-card__author {
	font-size: 11px;
}

.legend-course-grid--compact .legend-card__author img {
	width: 25px;
	height: 25px;
}

.legend-course-grid--compact .legend-card__facts {
	gap: 10px;
	margin: 9px 0 8px;
	padding-top: 8px;
	font-size: 10px;
}

.legend-course-grid--compact .legend-card__progress {
	margin-bottom: 7px;
}

.legend-course-grid--compact .legend-progress {
	height: 5px;
}

.legend-course-grid--compact .legend-card__link {
	font-size: 11px;
}

/* Notes open as focused lesson previews without losing account context. */
.legend-note-card {
	position: relative;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.legend-note-card:hover,
.legend-note-card:focus-visible {
	border-color: #b9c7ee;
	box-shadow: 0 12px 30px rgba(24, 36, 68, 0.09);
	transform: translateY(-2px);
	outline: 0;
}

.legend-note-card__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: var(--legend-primary);
	font-size: 11px;
	font-weight: 800;
}

.legend-note-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	width: min(1240px, calc(100vw - 28px));
	max-width: none;
	max-height: calc(100vh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(10, 20, 44, 0.35);
}

.legend-note-modal::backdrop {
	background: rgba(8, 17, 36, 0.7);
	backdrop-filter: blur(5px);
}

.legend-note-modal__dialog {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: min(900px, calc(100vh - 24px));
}

.legend-note-modal__dialog > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--legend-line);
	background: linear-gradient(135deg, #fbfcff, #eef2ff);
}

.legend-note-modal__dialog > header span {
	display: block;
	margin-bottom: 3px;
	color: var(--legend-primary);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.legend-note-modal__dialog > header h2 {
	margin: 0;
	font-size: 22px;
}

.legend-note-modal__dialog > header button {
	display: grid;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	place-items: center;
	padding: 0;
	border: 1px solid var(--legend-line);
	border-radius: 10px;
	background: #fff;
	color: var(--legend-secondary);
	font-size: 22px;
	cursor: pointer;
}

.legend-note-modal__body {
	min-height: 0;
	overflow: hidden;
	padding: 0;
	background: #f4f7fb;
}

.legend-note-modal__body iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #f4f7fb;
}

.legend-note-preview__saved {
	margin-bottom: 22px;
	padding: 16px 18px;
	border: 1px solid #d9e1f5;
	border-radius: 13px;
	background: #f7f9ff;
}

.legend-note-preview__saved > span {
	color: var(--legend-primary);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.legend-note-preview__saved p:last-child {
	margin-bottom: 0;
}

.legend-note-preview__lesson {
	color: #39455a;
	font-size: 15px;
	line-height: 1.75;
}

.legend-note-preview__lesson img,
.legend-note-preview__lesson iframe,
.legend-note-preview__lesson video {
	max-width: 100%;
	height: auto;
}

.legend-note-modal__dialog > footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid var(--legend-line);
	background: #fff;
}

.legend-note-modal__dialog > footer > span {
	color: var(--legend-muted);
	font-size: 12px;
}

.legend-note-modal__dialog > footer > div {
	display: flex;
	gap: 10px;
}

/* Learner profile and security settings. */
.legend-settings-card__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.legend-profile-avatar > div {
	flex: 1;
}

.legend-photo-upload {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: max-content;
	margin-top: 10px;
	padding: 9px 13px;
	border: 1px solid #c8d3ed;
	border-radius: 10px;
	background: #f6f8ff;
	color: var(--legend-primary) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	cursor: pointer;
}

.legend-photo-upload:hover,
.legend-photo-upload:focus-within {
	border-color: var(--legend-primary);
	background: #edf1ff;
}

.legend-photo-upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

[data-legend-profile-photo-name] {
	display: inline-block;
	margin: 9px 0 0 10px;
	color: var(--legend-muted);
	font-size: 11px;
}

body.legend-lesson-embed {
	min-height: 100vh;
	background: #f4f7fb;
}

body.legend-lesson-embed .legend-lesson-shell {
	min-height: 100vh;
}

.legend-settings-card__heading h2 {
	margin: 0 0 4px;
	font-size: 20px;
}

.legend-settings-card__heading p,
.legend-password-reset p {
	margin: 0;
	color: var(--legend-muted);
	font-size: 12px;
}

.legend-security-card {
	margin-top: 18px;
	padding: 24px;
	border: 1px solid var(--legend-line);
	border-radius: 17px;
	background: #fff;
}

.legend-settings-card__icon {
	float: left;
	display: grid;
	width: 38px;
	height: 38px;
	margin-right: 12px;
	place-items: center;
	border-radius: 11px;
	background: #edf1ff;
	color: var(--legend-primary);
	font-size: 20px;
}

.legend-password-form > .legend-button {
	margin-top: 18px;
}

.legend-password-field button[data-legend-password-toggle] {
	display: grid;
	width: 38px;
	min-height: 34px;
	place-items: center;
	padding: 0;
}

.legend-password-field button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.legend-eye-icon__slash {
	display: none;
}

.legend-password-field button.is-visible .legend-eye-icon__slash {
	display: block;
}

.legend-password-reset {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--legend-line);
}

.legend-password-reset form {
	margin: 0;
}

/* Course preview sized to the video instead of the viewport. */
.legend-video-modal {
	width: min(920px, calc(100vw - 32px));
	max-height: calc(100vh - 28px);
}

.legend-video-modal__dialog {
	display: flex;
	max-height: calc(100vh - 28px);
	flex-direction: column;
	border-radius: 16px;
}

.legend-video-modal__header {
	min-height: 54px;
	padding: 9px 12px 9px 15px;
}

.legend-video-modal__header span {
	margin-bottom: 1px;
	font-size: 8px;
}

.legend-video-modal__header h2 {
	font-size: 18px;
}

.legend-video-modal__header button {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	font-size: 21px;
}

.legend-video-modal__player {
	width: 100%;
	height: auto;
	max-height: calc(100vh - 82px);
	aspect-ratio: 16 / 9;
}

/* Keep the lesson actions clear of the fixed learner coach. */
.legend-lesson-footer {
	margin-bottom: 110px;
}

@media (max-width: 1100px) {
	.legend-course-grid--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.legend-course-grid--compact {
		grid-template-columns: 1fr;
	}

	.legend-password-reset,
	.legend-note-modal__dialog > footer {
		align-items: stretch;
		flex-direction: column;
	}

	.legend-note-modal__dialog > footer .legend-button,
	.legend-password-reset .legend-button {
		width: 100%;
	}

	.legend-note-modal__dialog > footer > div {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.legend-note-modal__body {
		padding: 0;
	}

	.legend-video-modal {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
	}
}

/* Collapsible lesson notes and resilient action contrast. */
.legend-notes > .legend-notes__header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	margin: 0;
}

.legend-notes > .legend-notes__header > span {
	display: grid;
	width: 37px;
	height: 37px;
	place-items: center;
	border-radius: 10px;
	background: #edf1ff;
	color: var(--legend-primary);
}

.legend-notes__toggle {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid #cfd8eb !important;
	border-radius: 10px;
	background: #fff !important;
	color: var(--legend-secondary, #111a34) !important;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.legend-notes__toggle:hover {
	border-color: var(--legend-primary, #3157d5) !important;
	background: #f6f8ff !important;
	color: var(--legend-primary-dark, #2444b4) !important;
}

.legend-notes__toggle:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--legend-primary, #3157d5) 28%, transparent);
	outline-offset: 2px;
}

.legend-notes__toggle > span:last-child {
	font-size: 18px;
	transition: transform .2s ease;
}

.legend-notes__toggle[aria-expanded="true"] > span:last-child {
	transform: rotate(180deg);
}

.legend-notes > .legend-notes__panel {
	display: block;
	gap: 0;
	margin: 0;
	padding-top: 14px;
}

.legend-notes__panel[hidden] {
	display: none !important;
}

.legend-notes__actions {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 !important;
}

.legend-lesson-shell .legend-notes__actions .legend-button {
	margin: 0 !important;
	border: 1px solid #c7d2e8 !important;
	background: #eef2ff !important;
	color: var(--legend-secondary, #111a34) !important;
	opacity: 1 !important;
	box-shadow: none;
}

.legend-lesson-shell .legend-notes__actions .legend-button:hover {
	border-color: var(--legend-primary, #3157d5) !important;
	background: #e2e8ff !important;
	color: var(--legend-primary-dark, #2444b4) !important;
}

.legend-lesson-shell .legend-notes__actions [data-legend-bookmark].is-active {
	border-color: #e1b844 !important;
	background: #fff5cf !important;
	color: #6d4800 !important;
}

.legend-lesson-shell .legend-notes__actions .legend-button:disabled {
	border-color: #d7deec !important;
	background: #edf0f6 !important;
	color: #566176 !important;
	cursor: wait;
	transform: none;
}

/* Expand legacy Gutenberg video embeds to the responsive lesson column. */
.legend-lesson-copy .wp-block-embed.is-type-video {
	width: 100%;
	max-width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.legend-lesson-copy .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.legend-lesson-copy .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	border: 0;
}

.legend-account-browse-more {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.legend-card h3 + .legend-card__author {
	padding-top: 6px;
}

/* Keep compact learner-library cards readable without sacrificing density. */
.legend-course-grid--compact .legend-card__meta {
	font-size: 11px;
}

.legend-course-grid--compact .legend-card__meta strong {
	font-size: 13px;
}

.legend-course-grid--compact .legend-card h3 {
	font-size: 18px;
}

.legend-course-grid--compact .legend-card__author {
	font-size: 13px;
}

.legend-course-grid--compact .legend-card__author img {
	width: 28px;
	height: 28px;
}

.legend-course-grid--compact .legend-card__facts {
	font-size: 12px;
}

.legend-course-grid--compact .legend-card__progress small {
	font-size: 12px;
}

.legend-course-grid--compact .legend-card__link {
	font-size: 13px;
}

@media (max-width: 520px) {
	.legend-notes > .legend-notes__header {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.legend-notes__toggle {
		grid-column: 1 / -1;
		width: 100%;
	}

	.legend-notes__actions .legend-button {
		width: 100%;
	}

	.legend-account-browse-more .legend-button {
		width: 100%;
	}
}
