.sk-home {
	--sk-bg: #f7f8f8;
	--sk-surface: #ffffff;
	--sk-border: #dde3e1;
	--sk-text: #1d2624;
	--sk-muted: #5f6f6a;
	--sk-brand: #0b6b4a;
	--sk-brand-contrast: #ffffff;
	--sk-radius: 14px;
	color: var(--sk-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 0.35rem;
}

.sk-home * {
	box-sizing: border-box;
}

.sk-home__section {
	background: var(--sk-surface);
	border: 1px solid var(--sk-border);
	border-radius: var(--sk-radius);
	padding: 1.15rem;
	margin: 0 0 1.05rem;
}

.sk-home__hero {
	background: linear-gradient(140deg, #0f4837 0%, #195d4a 45%, #26765f 100%);
	color: #eef8f3;
	border-color: transparent;
}

.sk-home__hero h1 {
	font-size: 1.7rem;
	line-height: 1.25;
	margin: 0.25rem 0 0.8rem;
}

.sk-home__section h2 {
	margin: 0;
	font-size: 1.28rem;
	line-height: 1.3;
}

.sk-home__section p {
	margin: 0.6rem 0 0;
}

.sk-home__lead {
	margin: 0;
	color: #d9efe6;
}

.sk-home__eyebrow {
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: #bfe2d4;
}

.sk-home__cta-row {
	display: flex;
	gap: 0.7rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.sk-home__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.68rem 1rem;
	text-decoration: none;
	font-weight: 600;
	border-radius: 999px;
	border: 1px solid transparent;
}

.sk-home__btn--primary {
	background: #f3fff9;
	color: #0d503a;
}

.sk-home__btn--solid {
	background: var(--sk-brand);
	color: var(--sk-brand-contrast);
	border-color: var(--sk-brand);
}

.sk-home__btn--ghost {
	background: transparent;
	color: #f7fffb;
	border-color: rgba(255, 255, 255, 0.45);
}

.sk-home__btn--secondary {
	background: #f6fbf9;
	color: #1a3f33;
	border-color: #cddfd8;
}

.sk-home__steps,
.sk-home__list {
	padding-left: 1rem;
	margin: 0.4rem 0 0;
}

.sk-home__steps li,
.sk-home__list li {
	margin: 0 0 0.45rem;
}

.sk-home__section-head p,
.sk-home__empty {
	color: var(--sk-muted);
	margin-top: 0.2rem;
}

.sk-home__cards,
.sk-home__resource-grid,
.sk-home__leaderboards,
.sk-home__testimonials {
	display: grid;
	gap: 0.85rem;
}

.sk-home__card,
.sk-home__resource-col,
.sk-home__leaderboard-card {
	background: #fdfefe;
	border: 1px solid var(--sk-border);
	border-radius: 12px;
	padding: 0.9rem;
}

.sk-home__card h3,
.sk-home__resource-col h3,
.sk-home__leaderboard-card h3 {
	margin: 0;
	font-size: 1.02rem;
}

.sk-home__price {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0.5rem 0;
	color: #104f3b;
}

.sk-home__text-link {
	display: inline-block;
	margin-top: 0.25rem;
	text-decoration: none;
	font-weight: 600;
	color: var(--sk-brand);
}

.sk-home__activity-title {
	margin: 0.72rem 0 0;
	font-size: 1rem;
	line-height: 1.3;
}

.sk-home__activity-table th,
.sk-home__activity-table td {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 2.2rem;
}

.sk-home__activity-table td[colspan] {
	white-space: normal;
	height: auto;
}

.sk-home__activity-table th:nth-child(1),
.sk-home__activity-table td:nth-child(1) {
	width: 55%;
}

.sk-home__activity-table th:nth-child(2),
.sk-home__activity-table td:nth-child(2) {
	width: 15%;
}

.sk-home__activity-table th:nth-child(3),
.sk-home__activity-table td:nth-child(3) {
	width: 30%;
}

.sk-home__student-identity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.sk-home__student-avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #d8e1df;
	background: #f6f9f8;
}

.sk-home__student-name {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sk-home__resource-col ul {
	list-style: none;
	padding: 0;
	margin: 0.55rem 0 0;
}

.sk-home__resource-col li {
	padding: 0.43rem 0;
	border-bottom: 1px solid #edf1ef;
}

.sk-home__resource-col li strong,
.sk-home__resource-col li span {
	display: block;
}

.sk-home__resource-col li span {
	color: var(--sk-muted);
	font-size: 0.9rem;
}

.sk-home__cta {
	text-align: center;
	background: #f4faf7;
}

.sk-home__faq details {
	border: 1px solid var(--sk-border);
	border-radius: 10px;
	padding: 0.72rem 0.8rem;
	background: #fcfefe;
	margin-bottom: 0.58rem;
}

.sk-home__faq summary {
	cursor: pointer;
	font-weight: 600;
}

.sk-home__faq p {
	margin: 0.6rem 0 0;
	color: var(--sk-muted);
}

.sk-home__cta-cluster {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px dashed var(--sk-border);
}

.sk-home__cta-row--compact {
	margin-top: 0.75rem;
}

.sk-home__cta-support {
	color: var(--sk-muted);
	margin: 0;
}

.sk-home__testimonial-card {
	background: #fcfffd;
	border: 1px solid #dfe8e4;
	border-radius: 12px;
	padding: 0.92rem;
}

.sk-home__testimonial-quote {
	margin: 0;
	font-weight: 500;
}

.sk-home__testimonial-name {
	margin: 0.75rem 0 0;
	font-weight: 700;
}

.sk-home__testimonial-role {
	margin: 0.12rem 0 0;
	color: var(--sk-muted);
	font-size: 0.92rem;
}

@media (min-width: 760px) {
	.sk-home__section {
		padding: 1.55rem;
	}

	.sk-home__hero h1 {
		font-size: 2.25rem;
		max-width: 12.5em;
	}

	.sk-home__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sk-home__resource-grid,
	.sk-home__leaderboards,
	.sk-home__testimonials {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.sk-home__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.sk-home {
		padding: 0;
	}

	.sk-home__section {
		padding: 1rem;
	}

	.sk-home__cta-row {
		flex-direction: column;
	}

	.sk-home__btn {
		width: 100%;
	}
}

/* === Home Leaderboard (rc23) === */
.sk-lb {
	--lb-primary: var(--sk-unified-primary, #0f6d67);
	--lb-border: var(--sk-unified-border, #d8e0ea);
	--lb-muted: var(--sk-unified-muted, #516074);
	--lb-heading: var(--sk-unified-heading, #102132);
	--lb-font: var(--sk-unified-font-heading, inherit);
	--lb-soft: #f3f6f9;
	--lb-gold: #E9B949;
	--lb-gold-ink: #7A5A06;
	--lb-silver: #A7B4C2;
	--lb-bronze: #C98A55;
	min-width: 0;
}

.sk-lb .sk-lb__head,
.sk-lb .sk-lb__card-head,
.sk-lb .sk-lb__nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sk-lb .sk-lb__head {
	flex-wrap: wrap;
}

.sk-lb .sk-lb__head-icon,
.sk-lb .sk-lb__mono,
.sk-lb .sk-lb__rank,
.sk-lb .sk-lb__rank-num,
.sk-lb .sk-lb__nav-btn {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.sk-lb .sk-lb__head-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(140deg, var(--lb-primary), var(--sk-unified-primary-strong, #0b5752));
	color: var(--lb-gold);
	box-shadow: 0 6px 14px rgba(16, 33, 50, 0.16);
}

.sk-lb .sk-lb__head-copy {
	flex: 1 1 180px;
	min-width: 0;
}

.sk-lb .sk-lb__head h2,
.sk-lb .sk-lb__card-head h3 {
	margin: 0;
	font-family: var(--lb-font);
	line-height: 1.25;
	color: var(--lb-heading);
}

.sk-lb .sk-lb__head h2 {
	font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.45rem);
}

.sk-lb .sk-lb__sub,
.sk-lb .sk-lb__cols,
.sk-lb .sk-lb__meta,
.sk-lb .sk-lb__empty-copy,
.sk-lb .sk-lb__nav-count,
.sk-lb .is-pending .sk-home__student-name {
	color: var(--lb-muted);
}

.sk-lb .sk-lb__sub {
	margin: 2px 0 0;
	font-size: 0.86rem;
}

.sk-lb .sk-lb__live,
.sk-lb .sk-lb__count,
.sk-lb .sk-lb__pending-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--lb-soft);
	color: var(--lb-muted);
	font-size: 0.7rem;
	font-weight: 700;
	white-space: nowrap;
}

.sk-lb .sk-lb__live {
	background: var(--sk-unified-success-soft-bg, #edf9f2);
	color: #14532d;
	font-size: 0.74rem;
}

.sk-lb .sk-lb__pending-chip {
	border: 1px solid var(--lb-border);
}

.sk-lb .sk-lb__live-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sk-unified-success, #1f8a4c);
}

.sk-lb .sk-lb__live-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	animation: sk-lb-pulse 1.8s ease-out infinite;
}

.sk-lb .sk-lb__track {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.sk-lb .sk-lb__card {
	--lb-tone-bg: #e6f4f3;
	--lb-tone-ink: #0f5e59;
	position: relative;
	min-width: 0;
	padding: 16px 14px 8px;
	background: #fff;
	border: 1px solid var(--lb-border);
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(16, 33, 50, 0.07);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sk-lb .sk-lb__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--lb-tone-ink);
}

.sk-lb .sk-lb__card[data-lb-tone="1"] { --lb-tone-bg: #e8eef7; --lb-tone-ink: #1b3a66; }
.sk-lb .sk-lb__card[data-lb-tone="2"] { --lb-tone-bg: #eceefe; --lb-tone-ink: #3a3f9e; }
.sk-lb .sk-lb__card[data-lb-tone="3"] { --lb-tone-bg: #fdf3e1; --lb-tone-ink: #8a5300; }
.sk-lb .sk-lb__card[data-lb-tone="4"] { --lb-tone-bg: #fdecef; --lb-tone-ink: #9f1d3f; }
.sk-lb .sk-lb__card[data-lb-tone="5"] { --lb-tone-bg: #e6f6ee; --lb-tone-ink: #14643f; }

.sk-lb .sk-lb__card-head {
	gap: 10px;
}

.sk-lb .sk-lb__mono {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--lb-tone-bg);
	color: var(--lb-tone-ink);
	font: 800 0.8rem/1 var(--lb-font);
}

.sk-lb .sk-lb__card-head h3 {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1rem;
	font-weight: 700;
}

.sk-lb .sk-lb__card-head h3,
.sk-lb .sk-lb__meta {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sk-lb .sk-lb__cols {
	display: flex;
	justify-content: space-between;
	margin: 12px 6px 2px;
	font-size: 0.7rem;
	font-weight: 700;
}

.sk-lb .sk-lb__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sk-lb .sk-lb__row {
	--lb-ring: var(--lb-border);
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	margin: 0;
	padding: 8px 6px;
	border-bottom: 1px dashed var(--lb-border);
}

.sk-lb .sk-lb__row:not(.is-empty):last-child {
	border-bottom-color: transparent;
}

.sk-lb .sk-lb__row.is-rank-1 {
	--lb-ring: var(--lb-gold);
	--lb-bar: var(--lb-gold);
	--lb-score-ink: var(--lb-gold-ink);
	border-radius: 10px;
	background: linear-gradient(90deg, rgba(233, 185, 73, 0.18), rgba(233, 185, 73, 0) 80%);
}

.sk-lb .sk-lb__row.is-rank-2 { --lb-ring: var(--lb-silver); }
.sk-lb .sk-lb__row.is-rank-3 { --lb-ring: var(--lb-bronze); }
.sk-lb .sk-lb__row.is-pending { --lb-ring: var(--lb-border); background: none; }

.sk-lb .sk-lb__rank {
	position: relative;
	height: 40px;
}

.sk-lb .sk-lb__rank-num {
	width: 28px;
	height: 28px;
	border: 1px solid var(--lb-border);
	border-radius: 50%;
	background: var(--lb-soft);
	color: var(--lb-muted);
	font-size: 0.8rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.sk-lb .sk-lb__medal {
	color: var(--lb-ring);
}

.sk-lb .sk-lb__medal svg {
	display: block;
	width: 36px;
	height: 36px;
}

.sk-lb .sk-lb__medal + .sk-lb__rank-num {
	position: absolute;
	inset: 16px 0 auto;
	width: auto;
	height: 16px;
	border: 0;
	background: none;
	color: var(--lb-heading);
	font-size: 0.72rem;
}

.sk-lb .sk-lb__who {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: center;
	column-gap: 10px;
	min-width: 0;
}

.sk-lb .sk-home__student-identity {
	display: contents;
}

.sk-lb .sk-home__student-avatar {
	grid-row: 1 / span 2;
	width: 40px;
	height: 40px;
	border: 2px solid var(--lb-ring);
}

.sk-lb .sk-home__student-name {
	align-self: end;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lb-heading);
}

.sk-lb .sk-lb__meta {
	display: block;
	grid-column: 2;
	align-self: start;
	font-size: 0.72rem;
}

.sk-lb .sk-lb__meta svg {
	width: 12px;
	height: 12px;
	margin-right: 3px;
	vertical-align: -2px;
}

.sk-lb .sk-lb__score {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.sk-lb .sk-lb__score strong {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
	color: var(--lb-score-ink, var(--lb-heading));
	font-variant-numeric: tabular-nums;
}

.sk-lb .sk-lb__bar {
	position: relative;
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: #e6ebf1;
	overflow: hidden;
}

.sk-lb .sk-lb__bar::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(var(--lb-pct, 0) * 1%);
	background: var(--lb-bar, var(--lb-primary));
	transform-origin: left center;
}

.sk-lb .sk-lb__dots {
	display: inline-flex;
	gap: 2px;
	margin-left: 3px;
}

.sk-lb .sk-lb__dots span {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	animation: sk-lb-dot 1.2s ease-in-out infinite;
}

.sk-lb .sk-lb__dots span + span { animation-delay: 0.15s; }
.sk-lb .sk-lb__dots span + span + span { animation-delay: 0.3s; }

.sk-lb .sk-lb__row.is-empty {
	grid-template-columns: 40px minmax(0, 1fr);
	min-height: 48px;
	margin: 6px 0;
	border: 1px dashed var(--lb-border);
	border-radius: 10px;
}

.sk-lb .sk-lb__empty-copy {
	font-size: 0.8rem;
	font-style: italic;
}

.sk-lb .sk-lb__nav {
	justify-content: center;
	margin-top: 12px;
}

.sk-lb .sk-lb__nav[hidden] {
	display: none;
}

.sk-lb .sk-lb__nav-btn {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--lb-border);
	border-radius: 50%;
	background: #fff;
	color: var(--lb-heading);
	cursor: pointer;
}

.sk-lb .sk-lb__nav-btn:focus-visible {
	outline: 3px solid var(--lb-primary);
	outline-offset: 2px;
}

.sk-lb .sk-lb__nav-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.sk-lb [data-sk-lb-prev] svg {
	transform: scaleX(-1);
}

.sk-lb .sk-lb__nav-count {
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 639px) {
	.sk-lb .sk-lb__track {
		grid-auto-flow: column;
		grid-auto-columns: 88%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.sk-lb .sk-lb__card {
		scroll-snap-align: start;
	}
}

@media (max-width: 399px) {
	.sk-lb .sk-lb__card {
		padding-inline: 10px;
	}

	.sk-lb .sk-lb__row {
		grid-template-columns: 32px minmax(0, 1fr) auto;
		gap: 8px;
		padding-inline: 4px;
	}

	.sk-lb .sk-lb__bar {
		width: 44px;
	}
}

@media (min-width: 640px) {
	.sk-lb .sk-lb__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.sk-lb .sk-lb__track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (hover: hover) and (min-width: 1024px) {
	.sk-lb .sk-lb__card:hover {
		transform: translateY(-2px);
		box-shadow: 0 14px 30px rgba(16, 33, 50, 0.12);
	}
}

.sk-lb.is-enhanced:not(.is-inview) .sk-lb__row {
	opacity: 0;
}

.sk-lb.is-enhanced:not(.is-inview) .sk-lb__bar::after {
	transform: scaleX(0);
}

.sk-lb.is-inview .sk-lb__row {
	animation: sk-lb-up 0.45s ease-out both;
	animation-delay: calc(var(--i, 0) * 60ms);
}

.sk-lb.is-inview .sk-lb__bar::after {
	animation: sk-lb-grow 0.6s ease-out both;
	animation-delay: calc(var(--i, 0) * 60ms + 150ms);
}

.sk-lb.is-inview .is-rank-1 .sk-lb__medal {
	animation: sk-lb-shine 0.6s ease-in-out 0.5s;
}

@keyframes sk-lb-up {
	from { opacity: 0; transform: translateY(8px); }
}

@keyframes sk-lb-grow {
	from { transform: scaleX(0); }
}

@keyframes sk-lb-shine {
	50% { transform: scale(1.12) rotate(-6deg); }
}

@keyframes sk-lb-pulse {
	to { transform: scale(2.6); opacity: 0; }
}

@keyframes sk-lb-dot {
	40% { opacity: 1; }
	0%, 80%, 100% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
	.sk-lb *,
	.sk-lb *::after {
		animation: none !important;
		transition: none !important;
	}

	.sk-lb.is-enhanced:not(.is-inview) .sk-lb__row {
		opacity: 1;
	}

	.sk-lb.is-enhanced:not(.is-inview) .sk-lb__bar::after {
		transform: none;
	}
}
