/* ==========================================================================
   LEARN WITH — COURSES PAGE (/courses/)
   Built from the approved "Courses" design.
   Dark green #011f01 · lime #C8F135 · Bricolage Grotesque + Inter.
   Scoped to .lw-courses so no other page is affected.
   ========================================================================== */

body.lw-theme .lw-courses {
	--c-bg: #011f01;
	--c-lime: #C8F135;
	--c-lime-hover: #D9FF5A;
	--c-text: #F2F1EC;
	--c-soft: #D3E2D8;
	--c-muted: #9DB3A6;
	--c-line: #1F3A2D;
	--c-card-line: #7e9688;
	--c-btn-line: #2E5440;
	--c-tag: #153A24;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: 'Inter', system-ui, sans-serif;
	line-height: 1.55;
}

/* ---- Hero ---------------------------------------------------------------- */
body.lw-theme .lw-courses .lw-page-hero {
	background: var(--c-bg);
	border: 0;
	padding: 64px 0 24px;
	text-align: left;
}
body.lw-theme .lw-courses .lw-page-hero::before,
body.lw-theme .lw-courses .lw-page-hero::after { display: none; }
body.lw-theme .lw-courses .lw-container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
body.lw-theme .lw-courses .lw-page-hero__inner { max-width: none; margin: 0; padding: 0; }

body.lw-theme .lw-courses .lw-eyebrow {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-lime);
}
body.lw-theme .lw-courses .lw-page-hero h1 {
	margin: 0;
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-size: clamp(2.5rem, 7vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-align: center;
	color: var(--c-text);
}
body.lw-theme .lw-courses .lw-page-hero h1 .lw-accent-text { color: inherit; }
body.lw-theme .lw-courses .lw-page-hero .lw-lead {
	max-width: 560px;
	margin: 20px auto 28px;
	font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
	text-align: center;
	color: var(--c-muted);
}

/* ---- Filter chips -------------------------------------------------------- */
body.lw-theme .lw-courses .lw-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}
body.lw-theme .lw-courses .lw-filter {
	appearance: none;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: transparent;
	color: var(--c-soft);
	font: 400 14px/1.2 'Inter', sans-serif;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
body.lw-theme .lw-courses .lw-filter:hover { border-color: var(--c-lime); color: var(--c-text); }
body.lw-theme .lw-courses .lw-filter[aria-pressed="true"] {
	background: var(--c-lime);
	border-color: var(--c-lime);
	color: #0A0A0A;
	font-weight: 600;
}
body.lw-theme .lw-courses .lw-filter:focus-visible { outline: 3px solid var(--c-lime); outline-offset: 3px; }

/* ---- Grid ---------------------------------------------------------------- */
body.lw-theme .lw-courses .lw-courses__list { background: var(--c-bg); padding: 16px 0 72px; }
body.lw-theme .lw-courses .lw-course-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

/* ---- Card ---------------------------------------------------------------- */
body.lw-theme .lw-ccard {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 28px;
	background: #011f01;
	border: 1px solid #7e9688;
	border-radius: 20px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
body.lw-theme .lw-ccard:hover { border-color: #C8F135; transform: translateY(-2px); }
body.lw-theme .lw-ccard[hidden] { display: none; }
body.lw-theme .lw-ccard.is-upcoming { border-style: dashed; }

body.lw-theme .lw-ctag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #153A24;
	color: #C8F135;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}
body.lw-theme .lw-ccard.is-upcoming .lw-ctag {
	background: transparent;
	border: 1px solid #1F3A2D;
	color: #D3E2D8;
}
body.lw-theme .lw-ctitle {
	margin: 18px 0 8px;
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
body.lw-theme .lw-ctitle a { color: #F2F1EC; text-decoration: none; }
body.lw-theme .lw-ctitle a:hover { color: #C8F135; }
body.lw-theme .lw-cdesc { margin: 0 0 16px; color: #9DB3A6; }
body.lw-theme .lw-cformat { margin: 0 0 24px; font-size: 14px; color: #F2F1EC; }
body.lw-theme .lw-cformat span { color: #9DB3A6; margin-right: 6px; }
body.lw-theme .lw-cformat strong { font-weight: 700; }

body.lw-theme .lw-cactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
body.lw-theme .lw-cbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	font: 600 15px/1 'Inter', sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
body.lw-theme .lw-cbtn--ghost { border: 1px solid #2E5440; background: transparent; color: #F2F1EC; }
body.lw-theme .lw-cbtn--ghost:hover { border-color: #C8F135; color: #F2F1EC; }
body.lw-theme .lw-cbtn--lime { border: 0; background: #C8F135; color: #0A0A0A; }
body.lw-theme .lw-cbtn--lime:hover { background: #D9FF5A; color: #0A0A0A; }
body.lw-theme .lw-cbtn--off { border: 0; background: #17301F; color: #9DB3A6; cursor: default; }
body.lw-theme .lw-cbtn:focus-visible { outline: 3px solid #C8F135; outline-offset: 3px; }

body.lw-theme .lw-courses .lw-empty { margin: 24px 0 0; text-align: center; color: var(--c-muted); }

/* ---- Small screens ------------------------------------------------------- */
@media (max-width: 640px) {
	body.lw-theme .lw-courses .lw-page-hero { padding: 40px 0 16px; }
	body.lw-theme .lw-courses .lw-container { padding-inline: 20px; }
	body.lw-theme .lw-courses .lw-page-hero .lw-lead { margin: 16px auto 24px; }
	body.lw-theme .lw-courses .lw-filter { min-height: 44px; }
	body.lw-theme .lw-courses .lw-courses__list { padding: 8px 0 56px; }
	body.lw-theme .lw-courses .lw-course-grid { grid-template-columns: minmax(0, 1fr); }
	body.lw-theme .lw-ccard { padding: 22px; }
	body.lw-theme .lw-ctitle { font-size: 24px; }
	body.lw-theme .lw-cbtn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	body.lw-theme .lw-ccard,
	body.lw-theme .lw-filter,
	body.lw-theme .lw-cbtn { transition: none; }
	body.lw-theme .lw-ccard:hover { transform: none; }
}
