/* Codewell School core styles for Tutor LMS screens (loaded after Tutor's own stylesheets). */

/* Tutor 4 brand scale, fonts and buttons in the Codewell palette: one blue, "Space Grotesk", 12px radius */
:root{
	--tutor-brand-50:#F7FBEE;--tutor-brand-100:#F2F9E1;--tutor-brand-200:#C9C9D6;--tutor-brand-300:#D9F2A6;--tutor-brand-400:#4D7C0F;
	--tutor-brand-450:#17172B;--tutor-brand-500:#17172B;--tutor-brand-600:#17172B;--tutor-brand-700:#2E2E52;--tutor-brand-800:#2E2E52;
	--tutor-brand-900:#2E2E52;--tutor-brand-950:#17172B;
	--tutor-color-primary:#17172B;--tutor-color-primary-hover:#2E2E52;--tutor-color-primary-rgb:36,70,216;
	--tutor-color-hints:#5B5B70;--tutor-color-muted:#5B5B70;--tutor-color-subdued:#4A4A5E;
	--tutor-font-family-body:"Inter",Verdana,sans-serif;--tutor-font-family-heading:"Space Grotesk","Segoe UI",sans-serif;
	--tutor-button-radius:12px
}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{clip:auto!important;clip-path:none;height:auto;width:auto;background:#fff;color:#17172B;padding:12px 16px;z-index:100000;left:8px;top:8px;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.25)}
#content:focus{outline:none}
.tutor-btn{font-family:"Space Grotesk","Segoe UI",sans-serif;font-weight:600;border-radius:999px}
.tutor-btn-primary,.tutor-btn.tutor-btn-primary{background:#17172B;border-color:#17172B;color:#fff}
.tutor-btn-primary:hover,.tutor-btn-primary:focus{background:#2E2E52;border-color:#2E2E52;color:#fff}
.tutor-btn-outline-primary{color:#17172B;border-color:#17172B}
.tutor-btn-outline-primary:hover,.tutor-btn-outline-primary:focus{background:#17172B;color:#fff}
.tutor-btn-md,.tutor-btn-lg,.tutor-course-details-page .tutor-btn-block{min-height:48px}
.tutor-dashboard,.tutor-dashboard .tutor-btn,.tutor-learning-area,.tutor-dashboard-sidebar,.tutor-see-all-courses{font-family:"Inter",Verdana,sans-serif}
.tutor-dashboard h1,.tutor-dashboard h2,.tutor-dashboard h3,.tutor-dashboard h4,.tutor-dashboard .tutor-btn,.tutor-see-all-courses,.tutor-learning-header-title{font-family:"Space Grotesk","Segoe UI",sans-serif}

/* Contrast: Tutor's light grey meta text is darkened to pass WCAG AA */
.tutor-meta,.tutor-meta-key,.tutor-meta-value,.tutor-course-details-page .tutor-meta,.tutor-card-footer .tutor-meta,.tutor-color-secondary,
.tutor-course-details-page .tutor-color-muted,.tutor-course-card .tutor-meta > div,.tutor-course-card .tutor-meta span,.tutor-lesson-duration,
.tutor-course-content-list-item-duration,.tutor-course-details-widget-list span,.tutor-avatar-text{color:#4A4A5E}
.tutor-avatar{background:#17172B;color:#fff}
.tutor-dashboard-sidebar a.active,.tutor-dashboard-sidebar .active a{color:#2E2E52}
.elementor-widget-text-editor p a,.tutor-label a,.codewell-consent a,.elementor-field-type-acceptance a,.codewell-auth-card a,.tutor-course-details-content a{text-decoration:underline;text-underline-offset:2px}

/* Hidden spam trap */
.codewell-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* Registration consent */
.codewell-consent{display:flex;gap:10px;align-items:flex-start;margin:8px 0 16px}
.codewell-consent input{flex:none;margin-top:3px}
.codewell-consent label{font-size:15px;line-height:1.5}

/* Reset password card */
.codewell-auth-card{max-width:520px;margin:40px auto 64px;background:#fff;border:1px solid #E6E5DF;border-radius:16px;padding:32px}
.codewell-auth-title{font-family:"Space Grotesk",sans-serif;font-size:28px;line-height:1.2;margin:0 0 12px;color:#17172B}
.codewell-auth-lead{font-size:16px;line-height:1.55;color:#4A4A5E;margin:0 0 20px}
.codewell-auth-card label{font-weight:700;color:#17172B}
.codewell-input,.codewell-auth-card .tutor-form-control{border:1.5px solid #85849A!important;border-radius:10px;min-height:48px;padding:10px 14px;width:100%;font-size:16px}
.codewell-input:focus{border-color:#17172B!important;outline:3px solid rgba(36,70,216,.25)}
.codewell-auth-back{margin:18px 0 0;text-align:center}

/* Dashboard course cards: state badge, honest bar, clear actions */
.codewell-progress-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:6px 0 10px}
.codewell-state{font-family:"Space Grotesk",sans-serif;font-size:13px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap}
.codewell-state-neutral{background:#FBFBF8;color:#2E2E44}
.codewell-state-info{background:#F2F9E1;color:#2E2E52}
.codewell-state-warning{background:#FFF1C2;color:#6B4E00}
.codewell-state-success{background:#DDF5E4;color:#14612F}
.codewell-progress .tutor-progress-card-details{font-size:14px;color:#4A4A5E}
.codewell-bar{height:8px;border-radius:99px;background:#F2F9E1;overflow:hidden;max-width:420px}
.codewell-bar span{display:block;height:100%;border-radius:99px;background:#17172B}
.is-certificate .codewell-bar span,.is-completed .codewell-bar span{background:#14612F}
.is-quiz .codewell-bar span{background:#C98A00}
.codewell-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.codewell-card-actions .tutor-btn{min-height:40px;padding:8px 14px}
.tutor-stat-card-time-spent{display:none!important}
.tutor-student-dashboard-stats .tutor-grid-cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:575px){.tutor-student-dashboard-stats .tutor-grid-cols-4{grid-template-columns:repeat(1,minmax(0,1fr))}}
.codewell-dash-h1{margin:0;font-weight:500}

/* Lesson header: course name small, lesson title as the H1 */
.codewell-learning-title{font-size:18px;line-height:1.3;margin:0;display:flex;flex-direction:column}
.codewell-learning-course{font-size:13px;font-weight:400;color:#4A4A5E}
.codewell-learning-item{font-weight:600}

/* Quiz: once passed, no "new attempt" button */
.codewell-quiz-passed [\@click*="tutor-quiz-retry-modal"],.codewell-quiz-passed [x-on\:click*="tutor-quiz-retry-modal"]{display:none!important}

/* Instructor profile: no star ratings (reviews are off), full-width content */
.tutor-user-public-profile .tutor-rating-container,.tutor-user-public-profile .ratings{display:none!important}
.tutor-user-public-profile.tutor-user-public-profile-no-cp .profile-name,.tutor-user-public-profile .content-for-desktop{margin-left:0}
.codewell-profile-name{font-family:"Space Grotesk",sans-serif;font-size:clamp(32px,4vw,44px);margin:0}
.codewell-profile-h2{font-family:"Space Grotesk",sans-serif;font-size:24px}

/* Catalogue: result count, empty state, long search words */
.codewell-archive-intro h1{overflow-wrap:anywhere}
.codewell-result-count{font-size:15px;color:#4A4A5E;margin:0 0 12px;min-height:1em}
.codewell-empty{grid-column:1/-1;text-align:center;padding:48px 16px;border:1px dashed #C9C9D6;border-radius:16px;background:#fff}
.codewell-empty h3{font-family:"Space Grotesk",sans-serif;font-size:22px;margin:0 0 8px;overflow-wrap:anywhere}
.codewell-empty p{color:#4A4A5E;margin:0 0 18px}
.codewell-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border-radius:999px;background:#17172B;color:#fff!important;font-family:"Space Grotesk",sans-serif;font-weight:600;text-decoration:none!important;border:0;cursor:pointer}
.codewell-btn:hover,.codewell-btn:focus{background:#2E2E52}

/* Category pages on phones: no sideways scroll */
.tutor-wrap.tutor-wrap-parent{margin-left:0!important;margin-right:0!important;max-width:100%}
.tax-course-category .tutor-container,.post-type-archive-courses .tutor-container{overflow-x:clip}

/* Course page: on phones the enrol / continue box comes before the description */
@media (max-width:991px){
	.tutor-course-details-page .tutor-row,.single-courses .tutor-course-details-page > .tutor-container > .tutor-row{display:flex;flex-direction:column}
	.tutor-course-details-page .tutor-col-xl-4{order:-1;margin-bottom:24px}
}
/* Tablets (992px and up): content and sidebar side by side */
@media (min-width:992px) and (max-width:1199px){
	.tutor-course-details-page .tutor-col-xl-8{flex:0 0 62%;max-width:62%}
	.tutor-course-details-page .tutor-col-xl-4{flex:0 0 38%;max-width:38%}
	.tutor-course-details-page > .tutor-container > .tutor-row,.tutor-course-details-page .tutor-row.tutor-gx-xl-5{flex-wrap:nowrap}
}

/* Tap targets on phones: at least 44px */
@media (max-width:767px){
	.elementor-location-footer .elementor-icon-list-item a,.tutor-course-card .tutor-meta a,.tutor-course-content-list-item a,
	.tutor-dashboard .tutor-btn-link,.elementor-widget-button .elementor-button-link[href*="/courses/"]{min-height:44px;display:inline-flex;align-items:center}
	.elementor-menu-toggle{min-width:44px;min-height:44px;justify-content:center}
	.tutor-dashboard-header-user-avatar{min-width:44px;min-height:44px}
	.tutor-course-filter .tutor-form-check{min-height:44px;display:flex;align-items:center}
	.tutor-course-filter .tutor-form-check label{flex:1;padding:10px 0}
}

/* Contact form: messages under each field, visible consent box */
.codewell-field-error{display:block;width:100%;margin-top:6px;color:#B42318;font-size:15px;font-weight:700}
.elementor-form [aria-invalid="true"]{border-color:#B42318!important;box-shadow:0 0 0 1px #B42318}
.elementor-field-type-acceptance input[type="checkbox"],.elementor-field-subgroup input[type="checkbox"]{width:20px;height:20px;margin:2px 0 0;accent-color:#17172B;flex:none}
.elementor-field-type-acceptance .elementor-field-subgroup .elementor-field-option{display:flex;gap:10px;align-items:flex-start}

/* Certificate verification page */
.codewell-verify-in{max-width:760px;margin:0 auto;padding:40px 16px 72px}
.codewell-verify-form label{display:block;font-weight:700;margin-bottom:8px}
.codewell-verify-row{display:flex;gap:12px;flex-wrap:wrap}
.codewell-verify-row input{flex:1 1 280px;min-height:48px;border:1.5px solid #85849A;border-radius:12px;padding:10px 14px;font-size:17px;font-family:"Space Grotesk",monospace}
.codewell-verify-help{color:#4A4A5E;font-size:15px;margin:8px 0 0}
.codewell-verify-result{margin-top:28px;padding:24px;border-radius:16px;border:1px solid #E6E5DF;background:#fff}
.codewell-verify-result.is-ok{border-left:6px solid #14612F}
.codewell-verify-result.is-bad{border-left:6px solid #B42318}
.codewell-verify-result h2{font-family:"Space Grotesk",sans-serif;font-size:24px;margin:0 0 14px}
.codewell-verify-result dl{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px;margin:0 0 18px}
.codewell-verify-result dt{color:#4A4A5E}
.codewell-verify-result dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.tutor-progress-card .codewell-card-actions{opacity:1;visibility:visible;position:static;padding:12px 0 0;justify-content:flex-start;inset:auto}
.tutor-progress-card .codewell-card-actions .tutor-btn{width:auto}
/* Wishlist is switched off on this site */
.codewell-no-wishlist a[href*="courses/wishlist"],.codewell-no-wishlist .tutor-course-wishlist,.codewell-no-wishlist .tutor-course-wishlist-btn,.codewell-no-wishlist [class*="wishlist"]{display:none!important}
/* D04: catalogue cards in the Home card style */
.tutor-course-card .codewell-cc-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.tutor-course-card .codewell-cc-badge{background:#B8F04A;color:#17172B;font:700 12px/1 "Space Grotesk",sans-serif;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:8px}
.tutor-course-card .codewell-cc-cat{color:#17172B;font:600 13px/1.3 "Space Grotesk",sans-serif}
.tutor-course-card .tutor-course-name a{text-decoration:none;color:#17172B}
.tutor-course-card .tutor-course-name a:hover{color:#17172B;text-decoration:underline}
.tutor-course-card .codewell-cc-summary{color:#4A4A5E;font-size:15px;line-height:1.55;margin:10px 0 0}
.tutor-course-card .codewell-cc-meta{display:flex;flex-wrap:wrap;gap:6px 16px;color:#4A4A5E;font-size:14px;margin:12px 0 0}
.tutor-course-card .codewell-cc-meta span{display:inline-flex;align-items:center;gap:6px}
.tutor-course-card .codewell-cc-meta i{color:#17172B}
.tutor-course-card .tutor-card-body > .tutor-meta{display:none}
.tutor-course-card .tutor-ratings{display:none}
.tutor-course-card .tutor-card-footer .tutor-btn{background:#17172B;border-color:#17172B;color:#fff;width:100%;justify-content:center;min-height:44px}
.tutor-course-card .tutor-card-footer .tutor-btn:hover{background:#2E2E52;border-color:#2E2E52;color:#fff}
.tutor-course-card .tutor-card-footer .list-item-price{display:none}
/* D07: course page title at heading size */
.tutor-course-details-header h1,.tutor-course-details-title{font-family:"Space Grotesk","Segoe UI",sans-serif;font-size:clamp(28px,3.4vw,40px);line-height:1.15;font-weight:700;color:#17172B}
/* D06: footer and contact links on phones */
@media (max-width:767px){.al-footer .elementor-icon-list-item a{min-height:44px;display:flex;align-items:center}}
.tutor-course-share-btn,.tutor-course-share-btn span{color:#4A4A5E!important}
