/* SJ Learning – student pages. Uses the Sonal Jindal theme styles; :where() fallbacks keep it usable with other themes. */
:where(.sjl-auth, .sjl-dash, .sjl-course) { --accent: #C8102E; --ink: #0B0B0B; --paper: #F5F1E6; --line: #DDD5C3; --muted: #5a564c; font-family: Inter, system-ui, sans-serif; color: var(--ink); }
:where(.sjl-auth, .sjl-dash, .sjl-course) :where(.w) { max-width: 1200px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
:where(.sjl-auth, .sjl-dash, .sjl-course) :where(.lab) { font: 600 12px Inter, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; margin: 0; }
:where(.sjl-auth, .sjl-dash, .sjl-course) :where(.d) { font-family: Anton, Impact, sans-serif; font-weight: 400; line-height: .98; text-transform: uppercase; margin: 0; }
:where(.sjl-auth, .sjl-dash, .sjl-course) :where(.btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; min-height: 48px; box-sizing: border-box; font: 600 14px Inter, sans-serif; text-transform: uppercase; letter-spacing: .6px; text-decoration: none; border: 1.5px solid currentColor; border-radius: 3px; background: transparent; color: inherit; cursor: pointer; }
:where(.cv) { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; box-sizing: border-box; overflow: hidden; position: relative; }
:where(.cv__l) { font: 600 11px Inter, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; opacity: .85; }
:where(.cv__t) { font: 400 clamp(34px, 3.6vw, 54px)/.95 Anton, Impact, sans-serif; text-transform: uppercase; }
:where(.sjl-auth, .sjl-dash, .sjl-course) :where(.ph) { display: flex; align-items: flex-end; padding: 14px; box-sizing: border-box; background: #2B2A27 repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); color: #CFC8B8; font: 500 12px/1.4 Inter, sans-serif; }

.sjl-btn-accent { background: var(--accent, #C8102E) !important; border-color: var(--accent, #C8102E) !important; color: #fff !important; }
.sjl-btn-dark { background: #141414 !important; border-color: #141414 !important; color: #fff !important; }
.sjl-btn-full { width: 100%; }
.sjl-muted { color: #5a564c; font-size: 14px; margin: 6px 0 0; }
.sjl-help { display: block; color: #5a564c; font-size: 13px; margin-top: 6px; }
.sjl-lead { font-size: 17px; color: #3d3a33; margin: 0 0 24px; max-width: 680px; }
.sjl-h2 { font: 700 20px Inter, sans-serif; margin: 36px 0 14px; }
.sjl-badge { display: inline-block; font: 700 11px Inter, sans-serif; letter-spacing: .5px; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: #F5F1E6; color: #0B0B0B; vertical-align: middle; }
.sjl-badge--reviewing { background: #FFE7A0; color: #4D3B00; }
.sjl-badge--reviewed { background: #0B0B0B; color: #fff; }
.sjl-link-btn { background: none; border: 0; padding: 0; color: #8A1020; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; min-height: 44px; }
.sjl-done { opacity: .8; cursor: default; }

/* Notices */
.sjl-notice { padding: 14px 16px; border-radius: 3px; margin: 0 0 20px; font-size: 15px; border-left: 4px solid; }
.sjl-notice--success { background: #EAF5EC; border-color: #1E7A3A; color: #12451F; }
.sjl-notice--error { background: #FBEAEC; border-color: #C8102E; color: #7A0A1C; }
.sjl-notice a { color: inherit; font-weight: 600; }

/* Forms */
.sjl-form p { margin: 0 0 16px; }
.sjl-form label { display: block; font: 600 12px Inter, sans-serif; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; }
.sjl-form input[type=text], .sjl-form input[type=email], .sjl-form input[type=password], .sjl-form input[type=tel], .sjl-form input[type=url], .sjl-form input[type=file], .sjl-form select, .sjl-form textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; border: 1.5px solid #0B0B0B; border-radius: 3px; background: #fff; font: 16px Inter, sans-serif; color: #0B0B0B; }
.sjl-form input:disabled { background: #F5F1E6; border-color: #B9B09C; color: #5a564c; }
.sjl-form input:focus-visible, .sjl-form select:focus-visible, .sjl-form textarea:focus-visible, .sjl-dash a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent, #C8102E); outline-offset: 2px; }
.sjl-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.sjl-form__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.sjl-form .sjl-check { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font: 400 15px Inter, sans-serif; margin: 0; min-height: 44px; }
.sjl-check input { width: 20px; height: 20px; accent-color: var(--accent, #C8102E); }
.sjl-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Login / register */
.sjl-auth { background: #F5F1E6; padding: 64px 16px 96px; }
.sjl-auth__card { max-width: 520px; margin: 0 auto; background: #fff; padding: 40px; box-sizing: border-box; }
.sjl-auth__title { font-size: clamp(40px, 6vw, 56px); margin: 10px 0 0; }
.sjl-auth__intro { color: #3d3a33; margin: 12px 0 28px; }
.sjl-auth__alt { text-align: center; margin: 20px 0 0; font-size: 15px; }
.sjl-auth__alt a { font-weight: 600; color: #8A1020; }
@media (max-width: 520px) { .sjl-auth__card { padding: 28px 20px; } }

/* Dashboard */
.sjl-dash { max-width: 1200px; margin: 0 auto; padding: 48px 32px 96px; display: grid; grid-template-columns: 240px 1fr; gap: 40px; box-sizing: border-box; }
.sjl-dash__side { align-self: start; position: sticky; top: 140px; }
.sjl-dash__name { font: 700 18px Inter, sans-serif; margin: 8px 0 20px; }
.sjl-dash__nav { display: flex; flex-direction: column; border-top: 2px solid #0B0B0B; }
.sjl-dash__nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-bottom: 1px solid #DDD5C3; text-decoration: none; font-weight: 600; font-size: 15px; color: #0B0B0B; }
.sjl-dash__nav a[aria-current="page"] { background: #0B0B0B; color: #fff; }
.sjl-dash__nav a:hover { opacity: 1; background: #fff; }
.sjl-dash__nav a[aria-current="page"]:hover { background: #0B0B0B; }
.sjl-dash__main { min-width: 0; }
.sjl-dash__title { font-size: clamp(40px, 5vw, 60px); margin: 0 0 24px; }
.sjl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0 0 24px; }
.sjl-stat { background: #fff; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; color: #0B0B0B; }
.sjl-stat .d { font-size: 44px; color: var(--accent, #C8102E); }
.sjl-stat span:last-child { font-size: 14px; color: #3d3a33; }
.sjl-panel { background: #fff; padding: 28px; margin: 0 0 20px; }
.sjl-panel__title { font: 700 22px Inter, sans-serif; margin: 8px 0 0; }
.sjl-panel__title a { text-decoration: none; }
.sjl-panel .btn { margin-top: 16px; }
.sjl-steps { margin: 12px 0 0; padding-left: 20px; line-height: 2.1; }
.sjl-steps a { font-weight: 600; }
.sjl-empty { background: #fff; border: 2px dashed #B9B09C; padding: 32px; text-align: center; }
.sjl-empty p { margin: 0 0 16px; color: #3d3a33; }

.sjl-list { display: flex; flex-direction: column; gap: 14px; }
.sjl-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center; background: #fff; padding: 14px; }
.sjl-row__media { height: 96px; overflow: hidden; }
.sjl-row__media > * { height: 100%; }
.sjl-row h3 { margin: 4px 0 0; font: 700 18px/1.3 Inter, sans-serif; }
@media (max-width: 640px) { .sjl-row { grid-template-columns: 1fr; } .sjl-row__media { height: 160px; } }

.sjl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.sjl-tile { background: #fff; text-decoration: none; display: flex; flex-direction: column; color: #0B0B0B; }
.sjl-tile > :first-child { width: 100%; }
.sjl-tile__meta { font-size: 13px; color: #5a564c; padding: 14px 16px 0; }
.sjl-tile__title { font: 700 17px/1.35 Inter, sans-serif; padding: 4px 16px 18px; }

.sjl-uploads { display: flex; flex-direction: column; gap: 16px; }
.sjl-upload { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; background: #fff; padding: 16px; }
.sjl-upload h3 { margin: 10px 0 0; font: 700 18px Inter, sans-serif; }
.sjl-upload__body p { margin: 8px 0 0; }
.sjl-feedback { background: #F5F1E6; padding: 14px 16px; margin-top: 14px; }
.sjl-feedback p { margin: 6px 0 0; }
@media (max-width: 760px) { .sjl-upload { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
	.sjl-dash { grid-template-columns: 1fr; padding: 28px 16px 72px; gap: 24px; }
	.sjl-dash__side { position: static; }
	.sjl-dash__nav { flex-direction: row; flex-wrap: wrap; border-top: 0; gap: 8px; }
	.sjl-dash__nav a { border: 1.5px solid #0B0B0B; border-radius: 3px; min-height: 44px; }
}

/* Video */
.sjl-video { position: relative; aspect-ratio: 16 / 9; background: #111; width: 100%; overflow: hidden; }
.sjl-video iframe, .sjl-video video, .sjl-video > :where(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sjl-video--empty { display: flex; align-items: center; justify-content: center; color: #CFC8B8; }
.sjl-video--empty p { margin: 0; }
.sjl-video--empty a { color: #fff; }

/* Course page */
.sjl-course { padding: 40px 0 96px; }
.sjl-crumbs { font-size: 14px; margin: 0 0 20px; }
.sjl-crumbs a { font-weight: 600; }
.sjl-course__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.sjl-course__now { font-size: 14px; color: #5a564c; margin: 10px 0 0; }
.sjl-course__side { background: #fff; padding: 28px; position: sticky; top: 140px; }
.sjl-course__title { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; margin: 10px 0 0; }
.sjl-course__excerpt { color: #3d3a33; margin: 14px 0 0; }
.sjl-course__cta { border-top: 1px solid #DDD5C3; margin-top: 22px; padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.sjl-course__cta .sjl-muted { margin: 0; }
.sjl-course__cta .sjl-inline-form { display: flex; }
.sjl-course__price { font-size: 36px; }
.sjl-course__content { margin-top: 32px; font-size: 17px; line-height: 1.6; max-width: 720px; }
.sjl-locked { position: relative; aspect-ratio: 16 / 9; background: #1E1D1B; overflow: hidden; }
.sjl-locked__msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(11, 11, 11, .72); color: #fff; text-align: center; padding: 20px; }
.sjl-locked__msg p { margin: 0; font-weight: 600; font-size: 18px; }
.sjl-lessons { list-style: none; margin: 0; padding: 0; border-top: 2px solid #0B0B0B; }
.sjl-lessons li > a, .sjl-lessons li > span { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px 4px; border-bottom: 1px solid #DDD5C3; text-decoration: none; color: #0B0B0B; }
.sjl-lessons li.is-current > a { background: #fff; font-weight: 700; }
.sjl-lessons .is-locked { color: #5a564c; }
.sjl-lessons__n { font: 400 24px Anton, Impact, sans-serif; color: var(--accent, #C8102E); text-align: center; }
.sjl-lessons__d { font-size: 13px; color: #5a564c; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) {
	.sjl-course__grid { grid-template-columns: 1fr; }
	.sjl-course__side { position: static; order: -1; }
}

/* Match the editorial theme */
.sjl-auth__card, .sjl-panel, .sjl-stat, .sjl-row, .sjl-upload, .sjl-tile, .sjl-course__side { border: 1px solid #E3DBCE; }
.sjl-auth__title, .sjl-dash__title { letter-spacing: -.02em; text-transform: none; }
.sjl-course__title { text-transform: none; font-size: clamp(30px, 2.8vw, 40px); }
.sjl-stat .d { font-style: normal; }
.btn, .sjl-form button.btn { border-radius: 0; }
.sjl-dash .cv__t { font-size: clamp(20px, 1.8vw, 28px); }
.sjl-dash .cv { padding: 12px; }
.sjl-auth .d, .sjl-dash .d, .sjl-course .d { text-transform: uppercase; font-family: Anton, Impact, sans-serif; font-style: normal; }
.sjl-dash .cover em, .sjl-row .cover em { font-size: clamp(20px, 1.8vw, 28px); }
.sjl-dash .cover, .sjl-row .cover { padding: 12px; }

.sjl-dash__email { margin: 2px 0 18px; font-size: 13px; color: #5a564c; word-break: break-all; }
.sjl-dash .sjl-dash__name { margin-bottom: 0; }
.sjl-tile > .cover, .sjl-tile > img, .sjl-tile > .cv { height: auto !important; flex: none; aspect-ratio: 16 / 9; }
