/* Curriculum map · syllabus as a premium module index */
.ca-curriculum {
	--cur-line: rgba(28, 71, 141, .13);
	--cur-line-soft: rgba(28, 71, 141, .11);
	--cur-tint: rgba(28, 71, 141, .055);
	--cur-num: rgba(28, 71, 141, .24);
	--cur-phase-1: #2f6bb5;
	--cur-phase-2: #227f86;
	--cur-phase-3: #9a7331;
	--cur-phase-4: #5a4b8a;
	position: relative;
	margin: 42px 0 28px;
	padding: clamp(22px, 3.4vw, 36px);
	border: 1px solid var(--cur-line);
	border-radius: 16px;
	background: linear-gradient(145deg, #fbfdff, #f2f7fc);
	overflow: hidden;
}
.ca-curriculum::before {
	content: "CURRICULUM";
	position: absolute;
	right: 20px;
	bottom: -8px;
	color: var(--cur-tint);
	font-family: var(--ca-offer-serif);
	font-size: clamp(80px, 14vw, 190px);
	font-weight: 700;
	letter-spacing: -.04em;
	pointer-events: none;
}
.ca-curriculum__head { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.ca-curriculum__head .ca-offer-eyebrow { margin: 0 0 8px; color: var(--ca-offer-gold); }
.ca-curriculum__head h3 { margin: 0 0 7px; color: var(--ca-offer-navy); font-family: var(--ca-offer-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1; }
.ca-curriculum__head p { max-width: 640px; margin: 0; color: var(--ca-offer-muted); font-size: 12px; line-height: 1.65; }
.ca-curriculum__stats { flex: none; display: flex; gap: 22px; }
.ca-curriculum__stats div { display: grid; gap: 2px; text-align: right; }
.ca-curriculum__stats strong { color: var(--ca-offer-navy); font-family: var(--ca-offer-serif); font-size: 40px; font-weight: 500; line-height: .9; }
.ca-curriculum__stats span { color: var(--ca-offer-muted); font-size: 9px; letter-spacing: .14em; }

.ca-curriculum__phases { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--curriculum-phases, 3), minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; border: 1px solid var(--cur-line-soft); border-radius: 8px; overflow: hidden; background: var(--cur-tint); }
.ca-curriculum__phase { display: flex; align-items: baseline; gap: 8px; padding: 11px 13px; background: #fbfdff; }
.ca-curriculum__phase span { font-family: var(--ca-offer-serif); font-size: 12px; color: var(--ca-offer-gold); }
.ca-curriculum__phase strong { font-size: 11px; color: var(--ca-offer-navy); }
.ca-curriculum__phase small { margin-left: auto; color: var(--ca-offer-muted); font-size: 9px; }
.ca-curriculum__phase--one { box-shadow: inset 0 2px 0 var(--cur-phase-1); }
.ca-curriculum__phase--two { box-shadow: inset 0 2px 0 var(--cur-phase-2); }
.ca-curriculum__phase--three { box-shadow: inset 0 2px 0 var(--cur-phase-3); }
.ca-curriculum__phase--four { box-shadow: inset 0 2px 0 var(--cur-phase-4); }

.ca-curriculum__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.ca-curriculum__module { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 18px; border: 1px solid var(--cur-line); border-radius: 10px; background: rgba(255, 255, 255, .78); box-shadow: 0 8px 22px rgba(20, 54, 102, .04); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.ca-curriculum__module:hover { transform: translateY(-3px); border-color: rgba(47, 107, 181, .42); box-shadow: 0 18px 38px rgba(20, 54, 102, .1); }
.ca-curriculum__module--one { border-top: 2px solid var(--cur-phase-1); }
.ca-curriculum__module--two { border-top: 2px solid var(--cur-phase-2); }
.ca-curriculum__module--three { border-top: 2px solid var(--cur-phase-3); }
.ca-curriculum__module--four { border-top: 2px solid var(--cur-phase-4); }
.ca-curriculum__module:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ca-curriculum__module-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ca-curriculum__num { color: var(--cur-num); font-family: var(--ca-offer-serif); font-size: 34px; line-height: .8; letter-spacing: -.04em; }
.ca-curriculum__phase-label { padding: 4px 8px; border: 1px solid var(--cur-line); border-radius: 99px; color: var(--ca-offer-muted); font-size: 9px; letter-spacing: .06em; }
.ca-curriculum__module h4 { margin: 0 0 5px; color: var(--ca-offer-navy); font-family: var(--ca-offer-serif); font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; line-height: 1.15; }
.ca-curriculum__module p { margin: 0 0 12px; color: var(--ca-offer-muted); font-size: 11.5px; line-height: 1.6; }
.ca-curriculum__lessons { display: flex; flex-wrap: wrap; gap: 5px; margin: auto 0 0; padding: 0; list-style: none; }
.ca-curriculum__lessons li { padding: 4px 7px; border-radius: 4px; background: var(--cur-tint); color: var(--ca-offer-ink-soft); font-size: 9px; line-height: 1.4; }
.ca-curriculum__lessons li::before { content: "·"; margin-right: 4px; color: var(--ca-offer-gold); font-weight: 800; }

@media (max-width: 900px) {
	.ca-curriculum__phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ca-curriculum__head { align-items: flex-start; flex-direction: column; }
	.ca-curriculum__stats { align-self: stretch; justify-content: space-between; }
	.ca-curriculum__stats div { text-align: left; }
	.ca-curriculum__grid { grid-template-columns: 1fr; }
	.ca-curriculum__module:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 620px) {
	.ca-curriculum__phases { grid-template-columns: 1fr; }
	.ca-curriculum { margin: 28px 0; padding: 18px 15px; }
	.ca-curriculum__phases { grid-template-columns: 1fr; }
	.ca-curriculum__phase small { margin-left: auto; }
	.ca-curriculum__module { padding: 16px; }
	.ca-curriculum__num { font-size: 28px; }
}

/* Final module becomes a capstone card instead of leaving empty space. */
@media (min-width: 901px) {
	.ca-curriculum__module:last-child:nth-child(odd) {
		display: grid;
		grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
		column-gap: 32px;
		align-items: center;
	}
	.ca-curriculum__module:last-child:nth-child(odd) .ca-curriculum__module-top { grid-column: 1 / -1; }
	.ca-curriculum__module:last-child:nth-child(odd) h4,
	.ca-curriculum__module:last-child:nth-child(odd) p { grid-column: 1; }
	.ca-curriculum__module:last-child:nth-child(odd) .ca-curriculum__lessons { grid-column: 2; grid-row: 2 / span 2; margin: 0; align-content: center; }
}

/* Editorial pages: inherit warm paper + brass instead of cobalt. */
body.ca-offer-style-editorial .ca-curriculum {
	--cur-line: rgba(138, 106, 47, .16);
	--cur-line-soft: rgba(138, 106, 47, .13);
	--cur-tint: rgba(138, 106, 47, .06);
	--cur-num: rgba(138, 106, 47, .25);
	--cur-phase-1: #8a6a2f;
	--cur-phase-2: #6f8064;
	--cur-phase-3: #a45a43;
	--cur-phase-4: #2c3a2e;
	background: linear-gradient(145deg, #fffdf8, #f4eee2);
}
body.ca-offer-style-editorial .ca-curriculum__phase,
body.ca-offer-style-editorial .ca-curriculum__module { background: rgba(255, 253, 248, .82); }

/* Noir pages: the curriculum becomes an ink panel with champagne accents. */
body.ca-offer-style-noir .ca-curriculum {
	--cur-line: rgba(248, 243, 231, .18);
	--cur-line-soft: rgba(248, 243, 231, .11);
	--cur-tint: rgba(210, 179, 110, .1);
	--cur-num: rgba(210, 179, 110, .28);
	--cur-phase-1: #d2b36e;
	--cur-phase-2: #9fd3ae;
	--cur-phase-3: #e0a46a;
	--cur-phase-4: #c7a1d6;
	background: linear-gradient(145deg, #151b17, #0d120f);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
body.ca-offer-style-noir .ca-curriculum__head h3,
body.ca-offer-style-noir .ca-curriculum__stats strong,
body.ca-offer-style-noir .ca-curriculum__phase strong,
body.ca-offer-style-noir .ca-curriculum__module h4 { color: #f8f3e7; }
body.ca-offer-style-noir .ca-curriculum__head p,
body.ca-offer-style-noir .ca-curriculum__stats span,
body.ca-offer-style-noir .ca-curriculum__phase small,
body.ca-offer-style-noir .ca-curriculum__module p,
body.ca-offer-style-noir .ca-curriculum__phase-label { color: #b9ae97; }
body.ca-offer-style-noir .ca-curriculum__phase { background: #111713; }
body.ca-offer-style-noir .ca-curriculum__module { background: rgba(255, 255, 255, .045); border-color: rgba(248, 243, 231, .15); box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }
body.ca-offer-style-noir .ca-curriculum__module:hover { border-color: rgba(210, 179, 110, .52); box-shadow: 0 18px 38px rgba(0, 0, 0, .26); }
body.ca-offer-style-noir .ca-curriculum__lessons li { background: rgba(248, 243, 231, .07); color: #d8d0c1; }
body.ca-offer-style-noir .ca-curriculum__phase-label { border-color: rgba(248, 243, 231, .2); }
body.ca-offer-style-noir .ca-curriculum__num { color: var(--cur-num); }
body.ca-offer-style-noir .ca-curriculum::before { color: rgba(210, 179, 110, .045); }

/* Terracotta, sage and swiss inherit their page palettes. */
body.ca-offer-style-terracotta .ca-curriculum {
	--cur-line: rgba(138, 79, 50, .16);
	--cur-line-soft: rgba(138, 79, 50, .13);
	--cur-tint: rgba(138, 79, 50, .06);
	--cur-num: rgba(138, 79, 50, .25);
	--cur-phase-1: #8a4f32;
	--cur-phase-2: #6f8064;
	--cur-phase-3: #9a7331;
	--cur-phase-4: #5b4636;
	background: linear-gradient(145deg, #fffaf0, #f6ead8);
}
body.ca-offer-style-sage .ca-curriculum {
	--cur-line: rgba(64, 90, 70, .15);
	--cur-line-soft: rgba(64, 90, 70, .12);
	--cur-tint: rgba(64, 90, 70, .06);
	--cur-num: rgba(64, 90, 70, .24);
	--cur-phase-1: #5f755f;
	--cur-phase-2: #7e9275;
	--cur-phase-3: #9a7331;
	--cur-phase-4: #47615a;
	background: linear-gradient(145deg, #fbfcf8, #edf2e9);
}
body.ca-offer-style-swiss .ca-curriculum {
	--cur-line: rgba(0, 0, 0, .14);
	--cur-line-soft: rgba(0, 0, 0, .1);
	--cur-tint: rgba(0, 0, 0, .045);
	--cur-num: rgba(0, 0, 0, .2);
	--cur-phase-1: #111;
	--cur-phase-2: #b91c12;
	--cur-phase-3: #555;
	--cur-phase-4: #111;
	background: #fff;
}
body.ca-offer-style-terracotta .ca-curriculum__phase,
body.ca-offer-style-sage .ca-curriculum__phase,
body.ca-offer-style-swiss .ca-curriculum__phase { background: rgba(255, 255, 255, .72); }
body.ca-offer-style-terracotta .ca-curriculum__module,
body.ca-offer-style-sage .ca-curriculum__module,
body.ca-offer-style-swiss .ca-curriculum__module { background: rgba(255, 255, 255, .82); }
