/* SJ Learn Network — front-end styles */

/* ── Verification overlay ── */
.sjl-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.sjl-verify-box {
	background: #fff;
	border-radius: 10px;
	padding: 2.5rem 3rem;
	max-width: 480px;
	width: 90%;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.sjl-verify-box h2 {
	margin-top: 0;
	font-size: 1.5rem;
	color: #1a1a2e;
}

.sjl-verify-box p {
	color: #444;
	line-height: 1.6;
}

.sjl-verify-actions {
	margin-top: 1.25rem;
}

.sjl-btn-secondary {
	background: #f3f4f6;
	color: #1f2937 !important;
}

.sjl-btn-secondary:hover {
	background: #e5e7eb;
}

/* ── Buttons ── */
.sjl-btn,
a.sjl-btn,
.sjl-notice-success .sjl-btn,
.sjl-teacher-application .sjl-btn {
	display: inline-block;
	padding: .65rem 1.4rem;
	background: #2563eb;
	color: #ffffff !important;
	border: none;
	border-radius: 6px;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}

.sjl-btn:hover,
a.sjl-btn:hover,
.sjl-notice-success .sjl-btn:hover,
.sjl-teacher-application .sjl-btn:hover {
	background: #1d4ed8;
	color: #ffffff !important;
}

.sjl-btn-link {
	background: none;
	border: none;
	color: #2563eb;
	cursor: pointer;
	padding: 0;
	font-size: inherit;
	text-decoration: underline;
}

/* ── Notices ── */
.sjl-notice {
	padding: .9rem 1.2rem;
	border-radius: 6px;
	margin-bottom: 1rem;
}

.sjl-notice-info    { background: #eff6ff; border-left: 4px solid #2563eb; color: #1e40af; }
.sjl-notice-success { background: #f0fdf4; border-left: 4px solid #16a34a; color: #15803d; }
.sjl-notice-warning { background: #fffbeb; border-left: 4px solid #d97706; color: #92400e; }
.sjl-notice-error   { background: #fef2f2; border-left: 4px solid #dc2626; color: #991b1b; }

/* ── Learning / Teaching space switcher (dual-space users) ── */
.sjl-space-mode-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-bottom: 1px solid transparent;
	position: sticky;
	top: var(--sj-header-offset, 80px);
	/* Below .site-header (999) so header child menus stay clickable. */
	z-index: 50;
}

.sjl-space-mode-banner--learning {
	background: #eff6ff;
	color: #1e40af;
	border-bottom-color: #bfdbfe;
}

.sjl-space-mode-banner--teaching {
	background: #f0fdfa;
	color: #0f766e;
	border-bottom-color: #99f6e4;
}

/* Lesson overlay already covers the site chrome; keep this banner from occupying leftover page flow. */
body.course-item-popup .sjl-space-mode-banner {
	display: none;
}

/* Sub-site pages use full-width content (header stays full width too). */
body.sjl-space-teacher .site-main > .container,
body.sjl-space-student .site-main > .container,
body.sjl-space-teacher .site-footer .container,
body.sjl-space-student .site-footer .container {
	max-width: none;
	width: 100%;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

body.sjl-space-teacher .site-main,
body.sjl-space-student .site-main,
body.sjl-space-teacher #page.site,
body.sjl-space-student #page.site,
body.sjl-space-teacher .sjl-dashboard-shell,
body.sjl-space-student .sjl-dashboard-shell,
body.sjl-space-teacher .sjl-dashboard-shell .entry-content,
body.sjl-space-student .sjl-dashboard-shell .entry-content {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

body.sjl-space-teacher,
body.sjl-space-student {
	--lp-container-max-width: 100%;
}

body.sjl-space-teacher #learn-press-profile,
body.sjl-space-student #learn-press-profile,
body.sjl-space-teacher #learn-press-profile .lp-content-area,
body.sjl-space-student #learn-press-profile .lp-content-area,
body.sjl-space-teacher #learn-press-profile .lp-profile-content-area,
body.sjl-space-student #learn-press-profile .lp-profile-content-area,
body.sjl-space-teacher .learnpress .lp-content-area,
body.sjl-space-student .learnpress .lp-content-area {
	max-width: none !important;
	width: 100% !important;
	box-sizing: border-box;
}

body.sjl-space-teacher #learn-press-profile .lp-content-area,
body.sjl-space-student #learn-press-profile .lp-content-area {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

body.sjl-space-teacher #learn-press-profile #profile-sidebar,
body.sjl-space-student #learn-press-profile #profile-sidebar {
	float: none !important;
	width: 100% !important;
	max-width: 320px;
	flex: 0 0 280px;
	margin: 0;
}

body.sjl-space-teacher #learn-press-profile .lp-profile-content,
body.sjl-space-student #learn-press-profile .lp-profile-content {
	float: none !important;
	flex: 1 1 480px;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

.sjl-space-switcher {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	padding: .65rem 1.25rem;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: .9rem;
}

.sjl-space-switcher__label {
	color: #64748b;
	font-weight: 600;
}

.sjl-space-switcher__tab {
	display: inline-block;
	padding: .35rem .9rem;
	border-radius: 999px;
	text-decoration: none !important;
	color: #334155 !important;
	background: #fff;
	border: 1px solid #cbd5e1;
	font-weight: 600;
}

.sjl-space-switcher__tab:hover {
	border-color: #2563eb;
	color: #2563eb !important;
}

.sjl-space-switcher__tab.is-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff !important;
}

.sjl-space-teacher .sjl-space-switcher__tab.is-active {
	background: #0d9488;
	border-color: #0d9488;
}

body.sjl-space-student .sjl-space-switcher__tab.is-active {
	background: #2563eb;
	border-color: #2563eb;
}

.sjl-space-switcher__tab--learn.is-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff !important;
}

.sjl-space-switcher__tab--teach.is-active {
	background: #0d9488;
	border-color: #0d9488;
	color: #ffffff !important;
}

/* ── Floating Learn / Teach switch ── */
.sjl-floating-space-switch {
	position: fixed;
	z-index: 99988;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 4px 6px 4px 10px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.sjl-floating-space-switch__hint {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	padding-right: 0.15rem;
	white-space: nowrap;
}

.sjl-floating-space-switch--bottom-right {
	right: 20px;
	bottom: 20px;
}

.sjl-floating-space-switch--bottom-left {
	left: 20px;
	bottom: 20px;
}

.sjl-floating-space-switch--bottom-center {
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
}

.sjl-floating-space-switch .sjl-space-switcher__tab {
	border: none;
	background: transparent;
	padding: 0.55rem 1.1rem;
	font-size: 0.875rem;
}

.sjl-floating-space-switch .sjl-space-switcher__tab:not(.is-active):hover {
	background: #f1f5f9;
	color: #0f172a !important;
}

/* Active tab must beat the transparent base above (same 0,2,0 specificity). */
.sjl-floating-space-switch .sjl-space-switcher__tab--learn.is-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff !important;
}

.sjl-floating-space-switch .sjl-space-switcher__tab--teach.is-active {
	background: #0d9488;
	border-color: #0d9488;
	color: #ffffff !important;
}

@media (max-width: 640px) {
	.sjl-floating-space-switch--bottom-right,
	.sjl-floating-space-switch--bottom-left {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}
}

/* Learning | Teaching inside lesson gadgets drawer (dual-role). */
.sjl-gadget-space-switch {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 14px 12px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.sjl-gadget-space-switch__eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.65px;
	text-transform: uppercase;
	color: #b91c1c;
}

.sjl-gadget-space-switch__tabs {
	display: flex;
	width: 100%;
	gap: 6px;
}

.sjl-gadget-space-switch__tab {
	flex: 1 1 0;
	text-align: center;
	padding: 10px 8px;
	border-radius: 8px;
	border: 1px solid #fecaca;
	background: #fff;
	color: #7f1d1d;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.sjl-gadget-space-switch__tab:hover {
	background: #fff1f2;
	border-color: #f87171;
	color: #991b1b;
}

.sjl-gadget-space-switch__tab--learn.is-active {
	background: #0d9488;
	border-color: #0d9488;
	color: #fff;
}

.sjl-gadget-space-switch__tab--teach.is-active {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
}

.sjl-gadget-space-switch__desc {
	font-size: 12px;
	line-height: 1.35;
	color: #991b1b;
}

.sjl-teacher-unlock-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .75rem 1.25rem;
	padding: .85rem 1.25rem;
	background: #ecfdf5;
	border-bottom: 1px solid #99f6e4;
	color: #0f766e;
	font-size: .95rem;
}

.sjl-teacher-unlock-notice__text {
	margin: 0;
	font-weight: 600;
}

.sjl-teacher-unlock-notice__btn {
	background: #0d9488 !important;
	padding: .45rem 1rem !important;
	font-size: .875rem !important;
}

.sjl-teacher-unlock-notice__btn:hover {
	background: #0f766e !important;
}

/* ── Teacher application ── */
.sjl-teacher-application {
	max-width: 600px;
}

.sjl-teacher-application h3 {
	margin-top: 0;
}

.sjl-message {
	margin-top: .75rem;
	font-size: .9rem;
}

/* ── Registration form field ── */
.sjl-form-field {
	margin-bottom: 1rem;
}

.sjl-form-field label {
	display: block;
	margin-bottom: .3rem;
	font-weight: 600;
}

.sjl-form-field input {
	width: 100%;
	padding: .55rem .8rem;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	font-size: 1rem;
	box-sizing: border-box;
}

/* ── Admin bar ── */
#wp-admin-bar-sjl-switcher .ab-item::before {
	content: "🎓 ";
}

/* ── Teacher shortcodes reference (front-end) ── */
.sjl-teacher-shortcodes__intro {
	margin-bottom: 1.5rem;
}

.sjl-teacher-shortcodes__pages {
	margin: 0 0 2rem 1.25rem;
	line-height: 1.8;
}

.sjl-teacher-shortcodes__lead {
	color: #475569;
	margin-bottom: 1.25rem;
}

.sjl-shortcode-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #0d9488;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
	max-width: 820px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sjl-shortcode-card h3 {
	margin: 0 0 .5rem;
	font-size: 1.1rem;
	color: #0f172a;
}

.sjl-shortcode-card p {
	color: #475569;
	line-height: 1.6;
	margin: 0 0 .75rem;
}

.sjl-shortcode-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: .65rem;
}

.sjl-shortcode-card__badge {
	background: #ecfdf5;
	color: #0f766e;
	font-size: .75rem;
	font-weight: 600;
	padding: .15rem .55rem;
	border-radius: 999px;
}

.sjl-shortcode-card__where {
	color: #64748b;
	font-size: .8rem;
}

.sjl-copy-row {
	display: flex;
	align-items: center;
	gap: .65rem;
	flex-wrap: wrap;
	margin-top: .5rem;
}

.sjl-code-tag {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .95rem;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: .55rem .85rem;
	color: #0f766e;
	flex: 1;
	min-width: 200px;
}

.sjl-copy-btn.copied {
	background: #16a34a !important;
	border-color: #16a34a !important;
	color: #fff !important;
}

.sjl-shortcode-card__note {
	font-size: .85rem;
	color: #64748b;
	margin-top: .5rem !important;
}

/* ── Teacher create student (My Students) ── */
.sjl-teacher-create-student {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 2rem;
	max-width: 640px;
}

.sjl-teacher-create-student h2 {
	margin-top: 0;
	font-size: 1.35rem;
	color: #1a1a2e;
}

.sjl-teacher-create-student .description {
	color: #64748b;
	font-size: .92rem;
}

.sjl-teacher-create-student-form label {
	font-weight: 600;
	color: #334155;
}

.sjl-teacher-create-student-form input[type="text"],
.sjl-teacher-create-student-form input[type="email"] {
	width: 100%;
	max-width: 360px;
	padding: .5rem .65rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	margin-top: .25rem;
}

.sjl-teacher-create-student-form fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin: 1.25rem 0;
}

.sjl-teacher-create-student-form fieldset legend {
	font-weight: 600;
	padding: 0 .35rem;
}

.sjl-teacher-create-student-form fieldset label {
	font-weight: 400;
	display: inline-block;
	margin: .35rem 0;
	line-height: 1.5;
}

.sjl-teacher-create-student-form .required {
	color: #dc2626;
}

.sjl-teacher-finish-student {
	background: #f8fbff;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 2rem;
	max-width: 640px;
}

.sjl-teacher-finish-student h2 {
	margin-top: 0;
	font-size: 1.35rem;
	color: #1a1a2e;
}

.sjl-teacher-finish-student .description {
	color: #64748b;
	font-size: .92rem;
}

.sjl-teacher-finish-student-form label {
	font-weight: 600;
	color: #334155;
}

.sjl-teacher-finish-student-form input[type="email"] {
	width: 100%;
	max-width: 360px;
	padding: .5rem .65rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	margin-top: .25rem;
}

.sjl-teacher-finish-student-form fieldset {
	border: 1px solid #dbeafe;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin: 1.25rem 0;
	background: #fff;
}

.sjl-teacher-finish-student-form fieldset legend {
	font-weight: 600;
	padding: 0 .35rem;
}

.sjl-teacher-finish-student-form fieldset label {
	font-weight: 400;
	display: inline-block;
	margin: .35rem 0;
	line-height: 1.5;
}

.sjl-set-password-page .sjl-verify-box {
	text-align: left;
	max-width: 420px;
}

.sjl-set-password-page .sjl-verify-box input[type="password"] {
	width: 100%;
	padding: .55rem .65rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	margin-top: .25rem;
	box-sizing: border-box;
}

/* ── Mobile: subsite profile layout ── */
@media (max-width: 768px) {
	body.sjl-space-teacher #learn-press-profile .lp-content-area,
	body.sjl-space-student #learn-press-profile .lp-content-area {
		flex-direction: column;
		gap: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	body.sjl-space-teacher #learn-press-profile #profile-sidebar,
	body.sjl-space-student #learn-press-profile #profile-sidebar {
		flex: 1 1 auto;
		max-width: none;
		width: 100% !important;
	}

	body.sjl-space-teacher #learn-press-profile .lp-profile-content,
	body.sjl-space-student #learn-press-profile .lp-profile-content {
		flex: 1 1 auto;
		width: 100% !important;
		min-width: 0;
	}
}

/* ── Mobile: network My Courses table → cards ── */
@media (max-width: 768px) {
	.sjl-network-my-courses .lp_profile_course_progress {
		border: 0;
	}

	.sjl-network-my-courses .lp_profile_course_progress thead {
		display: none;
	}

	.sjl-network-my-courses .lp_profile_course_progress tbody tr {
		display: block;
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		margin-bottom: 1rem;
		padding: 1rem;
		background: #fff;
		box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
	}

	.sjl-network-my-courses .lp_profile_course_progress tbody td {
		display: block;
		width: 100% !important;
		text-align: left !important;
		padding: 0.35rem 0;
		border: 0;
	}

	.sjl-network-my-courses .lp_profile_course_progress tbody td:first-child {
		display: block;
		padding-bottom: 0.75rem;
	}

	.sjl-network-my-courses .lp_profile_course_progress tbody td:first-child img {
		width: 100%;
		max-width: 280px;
		border-radius: 10px;
	}

	.sjl-network-my-courses .lp_profile_course_progress tbody td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		color: #64748b;
		margin-bottom: 0.15rem;
	}

	.sjl-network-my-courses .lp_profile_course_progress tbody td[data-label=""]::before {
		display: none;
	}

	.sjl-network-my-courses .lp_profile_course_progress .lp-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 0.55rem 1rem;
		margin-top: 0.35rem;
	}
}

/* ── Teacher profile: course card action stack ── */
body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .course-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .course-info .course-price {
	margin-bottom: 0.15rem;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .course-readmore,
body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-action {
	width: 100%;
	margin: 0 !important;
	position: relative;
	z-index: 3;
}

/* LP skeleton overlay must not block card action clicks if loading state sticks. */
body.sjl-space-teacher #learn-press-profile .lp-archive-courses.loading ul.learn-press-courses::before,
body.sjl-space-teacher #learn-press-profile .lp-archive-courses.loading ul.learn-press-courses::after {
	pointer-events: none;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn,
body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .course-readmore a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 42px;
	padding: 0.6rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .course-readmore a {
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #1e40af;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .course-readmore a:hover {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1d4ed8;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--edit {
	border: 1px solid #1d4ed8;
	background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff !important;
	box-shadow: 0 1px 2px rgba(29, 78, 216, 0.22);
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--edit:hover {
	background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
	color: #fff !important;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--share {
	border: 1px solid #f59e0b;
	background: #fffbeb;
	color: #b45309;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--share:hover,
body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--share:focus {
	background: #f59e0b;
	border-color: #f59e0b;
	color: #fff;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--schedule {
	border: 1px solid #0d9488;
	background: #f0fdfa;
	color: #0f766e;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--schedule:hover,
body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjl-course-card-btn--schedule:focus {
	background: #0d9488;
	border-color: #0d9488;
	color: #fff;
}

body.sjl-space-teacher #learn-press-profile .learn-press-courses[data-layout="grid"] .course-item .sjbk-first-lesson-copy.is-copied {
	background: #16a34a !important;
	border-color: #16a34a !important;
	color: #fff !important;
}

/* Student login & access card (teacher My Students / Student Profile) */
.sjl-student-login-access {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 16px 0;
	background: #fff;
}

.sjl-student-login-access__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.sjl-student-login-access__head h3 {
	margin: 0;
	font-size: 1.05rem;
}

.sjl-student-login-access__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.sjl-student-login-access__badge.is-roster_only {
	background: #f3f4f6;
	color: #4b5563;
}

.sjl-student-login-access__badge.is-temp_password_pending {
	background: #fef3c7;
	color: #92400e;
}

.sjl-student-login-access__badge.is-invite_pending {
	background: #dbeafe;
	color: #1d4ed8;
}

.sjl-student-login-access__badge.is-invite_expired {
	background: #fee2e2;
	color: #b91c1c;
}

.sjl-student-login-access__badge.is-active {
	background: #dcfce7;
	color: #166534;
}

.sjl-student-login-access__badge.is-provision_error,
.sjl-student-login-access__badge.is-unknown {
	background: #fef2f2;
	color: #991b1b;
}

.sjl-student-login-access__summary {
	margin: 0 0 12px;
	color: #374151;
}

.sjl-student-login-access__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 16px;
	margin: 0 0 12px;
}

.sjl-student-login-access__facts > div {
	margin: 0;
}

.sjl-student-login-access__facts dt {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6b7280;
	margin: 0 0 2px;
}

.sjl-student-login-access__facts dd {
	margin: 0;
	font-weight: 500;
	color: #111827;
}

.sjl-student-login-access__temp {
	margin: 12px 0;
}

.sjl-student-login-access__reset {
	margin: 8px 0 0;
}

.sjl-student-login-access__history {
	margin-top: 12px;
}

.sjl-student-login-access__history summary {
	cursor: pointer;
	font-weight: 600;
	color: #374151;
}

.sjl-student-login-access__log {
	margin: 10px 0 0;
	padding-left: 1.2rem;
}

.sjl-student-login-access__log li {
	margin-bottom: 6px;
}

.sjl-student-login-access__log-time {
	display: block;
	font-size: 12px;
	color: #6b7280;
	font-weight: normal;
}

.sjl-access-badge-inline {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}

.sjl-access-badge-inline.is-roster_only { background: #f3f4f6; color: #4b5563; }
.sjl-access-badge-inline.is-temp_password_pending { background: #fef3c7; color: #92400e; }
.sjl-access-badge-inline.is-invite_pending { background: #dbeafe; color: #1d4ed8; }
.sjl-access-badge-inline.is-invite_expired { background: #fee2e2; color: #b91c1c; }
.sjl-access-badge-inline.is-active { background: #dcfce7; color: #166534; }
.sjl-access-badge-inline.is-provision_error,
.sjl-access-badge-inline.is-unknown { background: #fef2f2; color: #991b1b; }

.sjl-managed-learners-panel {
	margin: 1.75rem 0 0;
	padding: 1.25rem 1.35rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.sjl-managed-learners-panel h2 {
	margin: 0 0 .35rem;
	font-size: 1.2rem;
}

.sjl-managed-learners-panel__intro,
.sjl-managed-learners-panel__notice,
.sjl-managed-learners-panel__error {
	margin: 0 0 .85rem;
	line-height: 1.45;
}

.sjl-managed-learners-panel__notice { color: #166534; }
.sjl-managed-learners-panel__error { color: #b91c1c; }

.sjl-managed-learners-list {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
}

.sjl-managed-learners-list li {
	margin-bottom: .45rem;
}

.sjl-managed-learners-label,
.sjl-managed-learners-status {
	margin-left: .4rem;
	color: #6b7280;
	font-size: .9rem;
}

.sjl-managed-learners-inline {
	display: inline;
	margin-left: .5rem;
}

.sjl-managed-learners-edit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .55rem;
	margin: .4rem 0 0;
}

.sjl-managed-learners-edit label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem;
	margin: 0;
}

.sjl-managed-learners-edit__label {
	font-size: .9rem;
	color: #374151;
}

.sjl-managed-learners-edit input[type="text"] {
	width: min(100%, 12rem);
	min-height: 36px;
	padding: .3rem .5rem;
}

.sjl-managed-learners-form {
	margin: 0 0 1rem;
}

.sjl-managed-learners-form label {
	display: block;
	margin-bottom: .65rem;
}

.sjl-managed-learners-age {
	color: #50575e;
	font-size: 0.9em;
}
.sjl-learner-personal-fields {
	margin: 12px 0;
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
}
.sjl-learner-personal-fields legend {
	font-weight: 600;
	padding: 0 4px;
}
.sjl-learner-personal-fields__hint,
.sjl-learner-personal-fields__staff {
	color: #646970;
	font-size: 0.9em;
}
.sjl-learner-personal-fields__check label {
	display: flex;
	align-items: center;
	gap: 8px;
}
.sjl-learner-address {
	margin: 8px 0 12px;
}
.sjl-learner-address summary {
	cursor: pointer;
	font-weight: 600;
}
.sjl-managed-learners-form textarea,
.sjl-learner-personal-fields input[type="text"],
.sjl-learner-personal-fields input[type="number"],
.sjl-learner-personal-fields input[type="date"],
.sjl-learner-personal-fields textarea {
	width: 100%;
	max-width: 420px;
}
.sjl-managed-learners-form input[type="text"],
.sjl-managed-learners-form select {
	display: block;
	margin-top: .25rem;
	width: min(100%, 22rem);
}

.sjl-account-learners {
	margin: 1.25rem 0;
}
.sjl-account-learners h2 {
	margin: 0 0 .35rem;
	font-size: 1.2rem;
}
.sjl-account-learners__intro,
.sjl-account-learners__help {
	margin: 0 0 .85rem;
	line-height: 1.45;
	color: #4b5563;
}
.sjl-account-learners__list {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
}

/* Teacher profile family card. Scoped to avoid affecting student account screens. */
.sjl-family-card{margin:20px;padding:22px;background:#f7fafc;border:1px solid #d8e5ed;border-radius:14px;color:#243746;font-size:14px;line-height:1.5}
.sjl-family-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.sjl-family-eyebrow{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#41718b}
.sjl-family-card h2{font-size:22px;line-height:1.25;margin:5px 0!important;color:#18364b}
.sjl-family-card h3{font-size:14px;margin:0 0 10px!important}
.sjl-family-heading p,.sjl-family-help{margin:5px 0 0;color:#526777;font-size:13px}
.sjl-family-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px 18px;margin:12px 0 0;padding:0}
.sjl-family-meta div{margin:0}
.sjl-family-meta dt{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#5a7282;margin:0 0 2px}
.sjl-family-meta dd{margin:0;font-size:15px;font-weight:600;color:#18364b}
.sjl-family-help--inline{margin-top:10px!important}
.sjl-family-badge{background:#e3f1ec;color:#22664d;border-radius:30px;padding:7px 12px;font-size:12px;font-weight:600;white-space:nowrap}
.sjl-family-card .sjl-family-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));list-style:none;padding:0;margin:0;gap:10px}
.sjl-family-member{margin:0;border:1px solid #dce5ec;background:white;border-radius:10px;overflow:hidden;min-width:0}
.sjl-family-member.is-current{border:2px solid #087ca7;background:#edf8fc}
.sjl-family-member>a{display:flex;flex-direction:column;padding:14px;text-decoration:none;gap:3px;overflow-wrap:anywhere}
.sjl-family-member strong{color:#18364b;font-size:16px}.sjl-family-member span{color:#536775;font-size:13px}.sjl-family-member small{color:#076f96;font-size:12px;margin-top:8px}
.sjl-family-card summary{cursor:pointer;font-weight:600;padding:10px 0;color:#096f96}.sjl-family-edit{padding:0 14px 10px;font-size:12px}.sjl-family-edit summary{font-size:12px}
.sjl-family-add{border-top:1px solid #dce5ec;margin-top:18px;padding-top:8px}.sjl-family-extra{margin:16px 0}.sjl-family-help{padding-top:14px}
.sjl-family-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.sjl-family-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sjl-family-card input:not([type=hidden]):not([type=checkbox]),.sjl-family-card select,.sjl-family-card textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:42px;background:#fff;border:1px solid #bdcdd8;border-radius:7px;padding:9px 11px;font:inherit;color:#243746}
.sjl-family-card button[type="submit"],
.sjl-family-card a.sjl-family-button,
.sjl-family-card .sjl-family-button{display:inline-block;border:0;border-radius:8px;background:#087ca7;color:#fff!important;-webkit-text-fill-color:#fff;padding:10px 15px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none!important;min-height:42px;line-height:1.35;text-align:center}
.sjl-family-card a.sjl-family-button:hover,
.sjl-family-card a.sjl-family-button:focus,
.sjl-family-card .sjl-family-button:hover,
.sjl-family-card button[type="submit"]:hover{background:#066a8f;color:#fff!important;-webkit-text-fill-color:#fff}
.sjl-family-edit button{margin-top:9px;font-size:12px}.sjl-family-card .sjl-family-archive{background:transparent;color:#9c3741;padding:8px 0;text-decoration:underline}
.sjl-family-card :is(a,button,summary,input,textarea,select):focus-visible{outline:3px solid #e4a62b;outline-offset:3px}
.sjl-family-notice{color:#166534}.sjl-family-error{color:#a12835}.sjl-family-empty{color:#526777}
@media(max-width:600px){.sjl-family-card{margin:12px;padding:16px}.sjl-family-heading{flex-direction:column;align-items:flex-start;gap:10px}.sjl-family-fields{grid-template-columns:1fr}.sjl-family-card .sjl-family-members{grid-template-columns:repeat(2,minmax(0,1fr))}.sjl-family-member>a{padding:11px}.sjl-family-card h2{font-size:20px}}
@media(max-width:360px){.sjl-family-card .sjl-family-members{grid-template-columns:1fr}}
