/* ============================================================
   Law Academia — Gamified Dashboards
   All selectors namespaced .la- so nothing leaks into Elementor.
   Colours map to the site's existing global tokens.
   ============================================================ */

.la-wrap {
	/* Primary. Borders, bars, links, eyebrows, the first ring. */
	--la-accent: #1FA8B6;
	/* Secondary. Pills, the second ring, tints. */
	--la-accent-2: var(--e-global-color-c742306, #58D8E3);

	--la-ink: var(--e-global-color-primary, #0A0A0B);
	--la-text: var(--e-global-color-text, #52525B);
	--la-line: var(--e-global-color-1bbe604, #E5E3DC);
	--la-surface: var(--e-global-color-448ab7b, #FFFFFF);
	--la-tint: var(--e-global-color-22a6442, #F2F1EC);
	--la-mute: #9BA1A6;

	--la-display: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	--la-body: var(--e-global-typography-text-font-family, "Montserrat"), sans-serif;

	/* Box system.
	   The signature shape is a large radius on the TL/BR diagonal and a sharp
	   4px corner on TR/BL. It scales down for smaller boxes but never becomes
	   symmetric — that asymmetry is the brand.
	     --la-radius     sections, quest, pathway cards
	     --la-radius-sm  stat tiles, empty notes
	     --la-radius-xs  rows and tiles inside a card
	*/
	--la-radius: 32px 4px 32px 4px;
	--la-radius-sm: 16px 4px 16px 4px;
	--la-radius-xs: 12px 4px 12px 4px;

	/* Surfaces */
	--la-grey-97: #FAFAF7;
	--la-grey-94: #F2F1EC;
	--la-gap: 20px;
	--la-pad-block: 64px;
	--la-pad-inline: 20px;

	font-family: var(--la-body);
	color: var(--la-text);
	display: grid;
	gap: var(--la-gap);
	max-width: 1120px;
	margin: 0 auto;
	padding: var(--la-pad-block) var(--la-pad-inline);
}

@media (max-width: 780px) {
	.la-wrap { --la-pad-block: 36px; --la-pad-inline: 16px; }
}

/* Full-page course template wrapper. */
.la-page { display: block; }

.la-wrap *,
.la-wrap *::before,
.la-wrap *::after { box-sizing: border-box; }

/* ------------------------------------------------------ Typography */

.la-h1 {
	font-family: var(--la-display);
	font-weight: 700;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--la-ink);
	margin: 0;
}
.la-h1 em { font-style: normal; color: var(--la-accent); }

.la-h2 { font-family: var(--la-display); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 4px 0 6px; }
.la-h3 { font-family: var(--la-display); font-weight: 600; font-size: 20px; color: var(--la-ink); margin: 0; }
.la-h4 { font-family: var(--la-display); font-weight: 600; font-size: 18px; color: var(--la-ink); margin: 4px 0; }

.la-sub { font-size: 14px; color: var(--la-mute); margin: 8px 0 0; }
.la-muted { font-size: 13px; line-height: 1.6; color: var(--la-mute); }
.la-muted--sm { font-size: 12px; }

.la-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--la-ink);
}
.la-eyebrow--accent { color: var(--la-accent); }
.la-eyebrow--muted { color: var(--la-mute); }

.la-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--la-accent);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	align-self: start;
}
.la-back {
	font-size: 13px;
	color: var(--la-accent);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	justify-self: start;
}

/* ------------------------------------------------------ Structure */

.la-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.la-card {
	background: var(--la-surface);
	border: 1px solid var(--la-line);
	border-radius: var(--la-radius);
	padding: 32px;
	display: grid;
	gap: 20px;
	align-content: start;
}
.la-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.la-card__foot { display: flex; justify-content: space-between; border-top: 1px solid var(--la-line); padding-top: 12px; }

.la-grid { display: grid; gap: var(--la-gap); }
.la-grid--quest { grid-template-columns: 1.35fr 1fr; }
.la-grid--split { grid-template-columns: 1fr 1.35fr; }

@media (max-width: 900px) {
	.la-grid--quest,
	.la-grid--split { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------ Rank pill */

.la-rankpill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--la-ink);
	color: #fff;
	border-radius: 999px;
	padding: 8px 18px 8px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}
.la-rankpill__level {
	width: 26px; height: 26px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--la-accent);
	color: var(--la-ink);
	font-size: 12px;
}
.la-rankpill--muted { background: var(--la-ink); opacity: 0.9; }

/* ------------------------------------------------------ Stat row */

.la-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 780px) { .la-stats { grid-template-columns: repeat(2, 1fr); } }

.la-stat {
	background: var(--la-surface);
	border: 1px solid var(--la-line);
	border-radius: var(--la-radius-sm);
	padding: 20px;
	display: grid;
	gap: 8px;
	align-content: start;
}
.la-stat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.la-stat__icon {
	width: 15px; height: 15px; flex: none;
	fill: none; stroke: var(--la-mute); stroke-width: 1.6;
	stroke-linecap: round; stroke-linejoin: round;
}
.la-stat--dark .la-stat__icon { stroke: var(--la-accent-2); fill: var(--la-accent-2); }
.la-stat--dark { background: var(--la-ink); border-color: var(--la-ink); }
.la-stat--dark .la-stat__label,
.la-stat--dark .la-stat__foot { color: rgba(255,255,255,0.55); }
.la-stat--dark .la-stat__value { color: var(--la-accent); }

.la-stat__label {
	font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--la-mute);
}
.la-stat__value {
	font-family: var(--la-display);
	font-size: 34px; font-weight: 600; line-height: 1;
	color: var(--la-ink);
	letter-spacing: -0.02em;
}
.la-stat__value--word { font-size: 30px; }
.la-stat__value small { font-size: 15px; font-weight: 500; color: var(--la-mute); margin-left: 2px; }
.la-stat--dark .la-stat__value small { color: rgba(255,255,255,0.5); }
.la-stat__foot { font-size: 11px; color: var(--la-mute); }

/* ------------------------------------------------------ Progress bars */

.la-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--la-line);
	overflow: hidden;
}
.la-bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--la-accent);
	transition: width .6s cubic-bezier(.2,.7,.2,1);
}
.la-bar--sm { height: 4px; }
.la-bar--quest { background: rgba(255,255,255,0.14); }

.la-rankbar { gap: 10px; }
.la-rankbar__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.la-rankbar__foot { font-size: 11px; color: var(--la-mute); }

/* ------------------------------------------------------ Quest card */

.la-quest {
	position: relative;
	overflow: hidden;
	background: radial-gradient(120% 140% at 100% 0%, #10343a 0%, var(--la-ink) 55%);
	color: #fff;
	border-radius: var(--la-radius);
	padding: 32px;
	display: grid;
	gap: 14px;
	align-content: start;
}
.la-quest .la-h2 { color: #fff; }
.la-quest__intro { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }
.la-quest__foot { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.55); }

.la-tasks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.la-task {
	display: flex; align-items: center; gap: 12px;
	background: rgba(255,255,255,0.06);
	border-radius: var(--la-radius-xs);
	padding: 12px 14px;
}
.la-task__tick {
	width: 18px; height: 18px; flex: none;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,0.3);
}
.la-task.is-done .la-task__tick {
	background: var(--la-accent);
	border-color: var(--la-accent);
	border-width: 5px;
}
.la-task__label { flex: 1; font-size: 13px; color: #fff; text-decoration: none; }
.la-task.is-done .la-task__label { color: rgba(255,255,255,0.45); text-decoration: line-through; }
.la-task__xp { font-size: 11px; font-weight: 700; color: var(--la-accent); }

/* Empty states */
.la-quest--empty { background: var(--la-ink); }
.la-empty-note {
	font-size: 13px; color: var(--la-mute);
	background: var(--la-grey-97);
	border: 1px solid var(--la-line);
	border-radius: var(--la-radius-sm);
	padding: 22px; text-align: center; margin: 0;
}

/* ------------------------------------------------------ Rings */

.la-rings__wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.la-rings { position: relative; width: 160px; height: 160px; flex: none; }
.la-rings__svg { width: 100%; height: 100%; }

.la-rings__track { fill: none; stroke: var(--la-tint); stroke-width: 11; }
.la-rings__value {
	fill: none;
	stroke-width: 11;
	stroke-linecap: round;
	transition: stroke-dasharray .8s cubic-bezier(.2,.7,.2,1);
}
.la-rings__value--0 { stroke: var(--la-accent); }
.la-rings__value--1 { stroke: var(--la-accent-2); }
.la-rings__value--2 { stroke: var(--la-ink); }

.la-rings__center {
	position: absolute; inset: 0;
	display: grid; place-content: center; text-align: center;
	pointer-events: none;
}
.la-rings__num { font-family: var(--la-display); font-size: 28px; font-weight: 600; color: var(--la-ink); }
.la-rings__num small { font-size: 14px; }
.la-rings__label {
	display: block; font-size: 8px; font-weight: 700;
	letter-spacing: 0.2em; text-transform: uppercase; color: var(--la-mute);
}

.la-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: grid; gap: 14px; }
.la-legend li { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--la-line); padding-bottom: 12px; }
.la-legend li:last-child { border-bottom: 0; padding-bottom: 0; }
.la-legend__label { flex: 1; font-size: 13px; color: var(--la-ink); }
.la-legend__val { font-size: 13px; font-weight: 600; color: var(--la-ink); }

.la-dot { width: 8px; height: 8px; border-radius: 50%; }
.la-dot--0 { background: var(--la-accent); }
.la-dot--1 { background: var(--la-accent-2); }
.la-dot--2 { background: var(--la-ink); }

/* ------------------------------------------------------ Streak week */

.la-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.la-day {
	aspect-ratio: 1;
	display: grid; place-items: center;
	border-radius: var(--la-radius-xs);
	background: var(--la-grey-97);
	border: 1px solid var(--la-line);
	color: var(--la-mute);
	font-size: 11px; font-weight: 700;
}
.la-day.is-done { background: var(--la-ink); border-color: var(--la-ink); color: #fff; }
.la-day.is-today { background: var(--la-accent); border-color: var(--la-accent); color: #fff; }

/* ------------------------------------------------------ Leaderboard */

.la-board { list-style: none; margin: 0; padding: 0; display: grid; }
.la-board__row {
	display: flex; align-items: center; gap: 14px;
	padding: 12px;
	border-bottom: 1px solid var(--la-line);
	border-radius: var(--la-radius-xs);
}
.la-board__row:last-child { border-bottom: 0; }
.la-board__row.is-you {
	background: color-mix(in srgb, var(--la-accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--la-accent) 40%, transparent);
}
.la-board__rank { font-size: 11px; font-weight: 700; color: var(--la-mute); width: 22px; }
.la-board__who { flex: 1; display: grid; gap: 2px; }
.la-board__handle { font-size: 13px; font-weight: 600; color: var(--la-ink); display: flex; align-items: center; gap: 8px; }
.la-board__meta { font-size: 11px; color: var(--la-mute); }
.la-board__xp { font-family: var(--la-display); font-size: 15px; font-weight: 600; color: var(--la-ink); white-space: nowrap; }
.la-board__xp small { font-size: 9px; color: var(--la-mute); margin-left: 2px; }

.la-tag {
	font-style: normal; font-size: 9px; font-weight: 700;
	letter-spacing: 0.1em; text-transform: uppercase;
	background: var(--la-accent); color: var(--la-ink);
	border-radius: 4px; padding: 2px 6px;
}

/* ------------------------------------------------------ Pathway cards */

.la-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .la-path { grid-template-columns: 1fr; } }

.la-path__card {
	position: relative;
	overflow: hidden;
	background: var(--la-grey-97);
	border: 1px solid var(--la-line);
	/* The design's accent is a coloured TOP edge, not a full border. */
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: var(--la-line);
	border-radius: var(--la-radius);
	padding: 28px 28px 32px;
	display: grid;
	gap: 17px;
	align-content: start;
}

/* Stage 02 — active. Full teal border marks the live programme. */
.la-path__card.is-active {
	border-color: var(--la-accent);
	gap: 6px;
}

/* Stage 03 — locked. Dimmed to 55%. */
.la-path__card.is-locked {
	opacity: 0.55;
	gap: 16px;
}

.la-path__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* Whole-card link. Sits under the content; real links float above it. */
.la-path__overlay {
	position: absolute; inset: 0; z-index: 1;
	border-radius: inherit;
}
.la-path__card:hover .la-h4 { color: var(--la-accent); }
.la-path__card .la-h4 { transition: color .2s; }
/* Keep the pricing link and its own tap target above the overlay. */
.la-path__card .la-link { position: relative; z-index: 2; }

/* "COMPLETE" corner ribbon. */
.la-flag {
	position: absolute; top: 14px; right: -38px;
	transform: rotate(45deg);
	background: var(--la-ink); color: #fff;
	font-size: 8px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
	padding: 5px 44px;
}

/* "LIVE" pill on the active card. */
.la-pill {
	background: var(--la-accent-2); color: var(--la-ink);
	border-radius: 999px; padding: 4px 12px;
	font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	white-space: nowrap;
}
.la-lock {
	width: 26px; height: 26px; flex: none;
	display: grid; place-items: center;
	border: 1px solid var(--la-line); border-radius: 50%;
	color: var(--la-mute); font-size: 11px;
}

/* Week 14 of 26 ————— 54% */
.la-path__progress { display: grid; gap: 6px; }
.la-path__progress-row { display: flex; justify-content: space-between; align-items: baseline; }
.la-path__progress-row span:first-child { font-size: 11px; color: var(--la-mute); }
.la-path__progress-row span:last-child { font-size: 11px; font-weight: 700; color: var(--la-accent); }

/* The three-up mini stats inside a pathway card. */
.la-minis {
	display: grid; grid-template-columns: repeat(3, auto);
	gap: 18px; justify-content: start;
	border-top: 1px solid var(--la-line);
	padding-top: 14px;
	margin-top: 4px;
}
.la-mini { display: grid; gap: 3px; }
.la-mini__value {
	font-family: var(--la-display);
	font-size: 19px; font-weight: 600; line-height: 1;
	color: var(--la-ink);
}
.la-mini__label {
	font-size: 8px; font-weight: 700; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--la-mute);
}

.la-path__note {
	border-top: 1px solid var(--la-line);
	padding-top: 14px;
	font-size: 11px; line-height: 1.6; color: var(--la-mute);
}
.la-path__card.is-locked .la-path__note { border-top: 0; padding-top: 0; }

/* ------------------------------------------------------ Badges */

.la-badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 12px; }
@media (max-width: 900px) { .la-badges { grid-template-columns: repeat(3, 1fr); } }

.la-badge { display: grid; justify-items: center; text-align: center; gap: 6px; }
.la-badge__disc {
	width: 62px; height: 62px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: var(--la-ink);
	overflow: hidden;
}
.la-badge__disc img { width: 100%; height: 100%; object-fit: cover; }
.la-badge__initial { color: var(--la-accent); font-family: var(--la-display); font-size: 22px; }
.la-badge.is-locked .la-badge__disc { background: var(--la-line); }
.la-badge.is-locked .la-badge__disc img { opacity: 0.45; filter: grayscale(1); }
.la-badge.is-locked .la-badge__initial { color: var(--la-mute); }
.la-badge.is-locked .la-badge__title,
.la-badge.is-locked .la-badge__desc { color: var(--la-mute); }

.la-badge__title { font-size: 11px; font-weight: 700; color: var(--la-ink); }
.la-badge__desc { font-size: 10px; line-height: 1.4; color: var(--la-mute); }

/* ------------------------------------------------------ Module list */

.la-modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.la-module {
	display: flex; align-items: center; gap: 18px;
	min-height: 100px;
	background: var(--la-grey-94);
	border-radius: 20px 4px 20px 4px;
	padding: 20px 28px;
}
.la-module__num {
	width: 30px; height: 30px; flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--la-accent); color: #fff;
	font-size: 11px; font-weight: 700;
}
.la-module__body { flex: 1; display: grid; gap: 2px; }
.la-module__state { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--la-accent); }
.la-module__title { font-size: 14px; font-weight: 600; color: var(--la-ink); }
.la-module__title a { color: inherit; text-decoration: none; }
.la-module__meta { font-size: 11px; color: var(--la-mute); }
.la-module__xp {
	font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
	background: color-mix(in srgb, var(--la-accent) 22%, transparent);
	color: var(--la-ink);
	border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}

/* Completed — same surface, full opacity, teal number stays filled. */
.la-module.is-complete .la-module__num { background: var(--la-accent); color: #fff; }

/* In-progress — the black row. */
.la-module.is-progress { background: var(--la-ink); }
.la-module.is-progress .la-module__title { color: #fff; }
.la-module.is-progress .la-module__meta { color: rgba(255,255,255,0.5); }
.la-module.is-progress .la-module__xp { background: var(--la-accent); color: #fff; }

.la-module__lock {
	display: inline-block; width: 8px; height: 6px;
	border: 1px solid currentColor; border-radius: 1px;
	position: relative; vertical-align: -1px; margin-right: 2px;
}
.la-module__lock::before {
	content: ""; position: absolute; left: 1px; right: 1px; bottom: 5px; height: 3px;
	border: 1px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0;
}

/* Locked — same grey surface, dimmed to 45%. */
.la-module.is-locked { background: var(--la-grey-94); opacity: 0.45; }
.la-module.is-locked .la-module__num { background: var(--la-line); color: var(--la-mute); }
.la-module.is-locked .la-module__state { color: var(--la-mute); }
.la-module.is-locked .la-module__xp { background: var(--la-grey-97); color: var(--la-mute); }

/* ------------------------------------------------------ Feed */

.la-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.la-feed__row {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--la-line);
}
.la-feed__row:last-child { border-bottom: 0; }
.la-feed__what { display: grid; gap: 2px; }
.la-feed__title { font-size: 13px; font-weight: 600; color: var(--la-ink); }
.la-feed__when { font-size: 11px; color: var(--la-mute); }
.la-feed__xp { font-size: 12px; font-weight: 700; color: var(--la-accent); white-space: nowrap; }

/* ------------------------------------------------------ Misc */

.la-empty { text-align: center; padding: 60px 20px; }
.la-btn {
	display: inline-block; border-radius: 999px; padding: 12px 24px;
	font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	text-decoration: none;
}
.la-btn--dark { background: var(--la-ink); color: #fff; }

.la-wrap a:focus-visible,
.la-wrap button:focus-visible { outline: 2px solid var(--la-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.la-wrap * { transition: none !important; }
}
