/*
 * Operation 3 design systems — scoped skins loaded only on Op-3 pages.
 * 3A "Spark" (maths-tricks) · 3B "Compass" (career-guides) · 3C "Gurukul" (ncert-summaries)
 * Tokens per operation-3.md §1–§3. Motion rules per §0.
 */

/* =============== Tokens =============== */

.op3--maths {
	--o-bg: #fafaff;
	--o-surface: #ffffff;
	--o-ink: #16161d;
	--o-body: #3f3f4e;
	--o-primary: #5b2eff;
	--o-primary-2: #7c5cff;
	--o-accent: #ffb021;
	--o-ok: #10d0a0;
	--o-line: #eceaf6;
	--o-grad: linear-gradient(120deg, #5b2eff, #7c5cff 55%, #9d7bff);
}

.op3--career {
	--o-bg: #f7f8fa;
	--o-surface: #ffffff;
	--o-ink: #0b1f3a;
	--o-body: #38465c;
	--o-primary: #123c7a;
	--o-primary-2: #1d5cb0;
	--o-accent: #c9a24b;
	--o-ok: #0f8b8d;
	--o-line: #e4e8f0;
	--o-grad: linear-gradient(120deg, #0b1f3a, #123c7a 60%, #1d5cb0);
}

.op3--ncert {
	--o-bg: #fbf7ef;
	--o-surface: #ffffff;
	--o-ink: #1e2a23;
	--o-body: #44503f;
	--o-primary: #14532d;
	--o-primary-2: #1f7a47;
	--o-accent: #e87817;
	--o-gold: #c9a24b;
	--o-ok: #1f7a47;
	--o-line: #e8e0ce;
	--o-grad: linear-gradient(130deg, #0f3f22, #14532d 55%, #1f7a47);
}

/* Night-study mode (Gurukul feature; toggled on <body>) */
body.op3-night .op3--ncert {
	--o-bg: #101613;
	--o-surface: #18211c;
	--o-ink: #f1eee4;
	--o-body: #c9c4b4;
	--o-accent: #f59a4b;
	--o-line: #27332c;
	--o-grad: linear-gradient(130deg, #0b1a10, #10331d 55%, #14532d);
}

.op3 {
	background: var(--o-bg);
	color: var(--o-body);
}
.op3 h1, .op3 h2, .op3 h3 { color: var(--o-ink); }
.op3 a { color: var(--o-primary-2); }
body.op3-night .op3 a { color: var(--o-accent); }

/* =============== Motion foundation (§0) =============== */

.op3 .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
}
.op3 .reveal.is-in { opacity: 1; transform: none; }

.op3-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--o-accent, #e87817);
	z-index: 200;
}

@media (prefers-reduced-motion: reduce) {
	.op3 .reveal { transform: none; transition: opacity .3s; }
	.op3 * { animation: none !important; }
}

/* =============== Gurukul: archive =============== */

.gk-hero {
	background: var(--o-grad);
	color: #f6f2e6;
	padding: 52px 0 46px;
	position: relative;
	overflow: hidden;
}
.gk-hero:before {
	/* faint concentric "mandala" line pattern */
	content: "";
	position: absolute;
	inset: -40% -10% auto auto;
	width: 620px; height: 620px;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, rgba(255, 255, 255, .16) 0 1px, transparent 1px 34px);
	opacity: .28;
	pointer-events: none;
}
.gk-hero h1 {
	color: #fdfaf2;
	font-size: clamp(30px, 4.5vw, 46px);
	margin: 0 0 6px;
	letter-spacing: .3px;
}
.gk-hero h1 em {
	font-style: normal;
	border-bottom: 4px solid var(--o-accent);
	padding-bottom: 2px;
}
.gk-hero p { margin: 0 0 22px; color: #d8e6d2; font-size: 16px; max-width: 640px; }

.gk-classnav { display: flex; flex-wrap: wrap; gap: 10px; }
.gk-classnav a {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fdfaf2;
	font-weight: 700;
	font-size: 14px;
	transition: background .25s, transform .25s, border-color .25s;
}
.gk-classnav a:hover { transform: translateY(-2px); border-color: #fff; text-decoration: none; }
.gk-classnav a.is-active {
	background: var(--o-accent);
	border-color: var(--o-accent);
	color: #fff;
	box-shadow: 0 4px 18px rgba(232, 120, 23, .45);
}

.gk-section { padding: 30px 0 6px; }
.gk-section .section-head h2 { color: var(--o-primary); }
body.op3-night .gk-section .section-head h2 { color: var(--o-ink); }
.gk-section .section-head:after { background: linear-gradient(90deg, var(--o-accent) 60px, var(--o-line) 60px); }

/* subject cards */
.gk-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.gk-subject {
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 12px;
	padding: 18px 16px 15px;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
	position: relative;
}
.gk-subject:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30, 42, 35, .14); text-decoration: none; }
.gk-subject .gk-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 7px; background: var(--o-primary-2); }
.gk-subject[data-subject*="math"] .gk-dot { background: #5b2eff; }
.gk-subject[data-subject*="social"] .gk-dot, .gk-subject[data-subject*="sst"] .gk-dot, .gk-subject[data-subject*="history"] .gk-dot { background: #b85c79; }
.gk-subject[data-subject*="english"] .gk-dot { background: #2a6f97; }
.gk-subject[data-subject*="hindi"] .gk-dot { background: #e87817; }
.gk-subject strong { color: var(--o-ink); font-size: 16.5px; }
.gk-subject .postmeta { margin-top: 6px; }

/* chapter list rows */
.gk-chapters { background: var(--o-surface); border: 1px solid var(--o-line); border-radius: 12px; overflow: hidden; }
.gk-chapter {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 15px 18px;
	border-bottom: 1px solid var(--o-line);
	transition: background .2s;
}
.gk-chapter:last-child { border-bottom: 0; }
.gk-chapter:hover { background: rgba(31, 122, 71, .05); text-decoration: none; }
body.op3-night .gk-chapter:hover { background: rgba(245, 154, 75, .07); }
.gk-chapter .gk-num {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	background: var(--o-primary);
	color: #f6f2e6;
	border-radius: 9px;
	font: 700 15px/1 'Consolas', 'JetBrains Mono', monospace;
}
.gk-chapter .gk-title { color: var(--o-ink); font-weight: 700; font-size: 16px; }
.gk-chapter .postmeta { margin-top: 3px; }
.gk-chapter .gk-arrow { color: var(--o-accent); font-size: 20px; transition: transform .25s; }
.gk-chapter:hover .gk-arrow { transform: translateX(6px); }

/* continue card */
.gk-continue {
	display: block;
	background: var(--o-surface);
	border: 1px solid var(--o-accent);
	border-left-width: 5px;
	border-radius: 12px;
	padding: 14px 18px;
	margin: 22px 0 4px;
}
.gk-continue:hover { text-decoration: none; box-shadow: 0 10px 26px rgba(232, 120, 23, .16); }
.gk-continue .kicker { color: var(--o-accent); }
.gk-continue strong { color: var(--o-ink); }

/* exam-season strip (conditional) */
.gk-exam-strip {
	background: linear-gradient(90deg, #e87817, #f59a4b);
	color: #fff;
	border-radius: 12px;
	padding: 14px 20px;
	margin: 24px 0 0;
	font-weight: 700;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.gk-exam-strip a { color: #fff; text-decoration: underline; }

/* =============== Gurukul: single =============== */

.gk-single .single-head h1 { font-size: clamp(28px, 4vw, 38px); }
.gk-badge-syllabus {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1.5px solid var(--o-primary-2);
	color: var(--o-primary);
	border-radius: 16px;
	padding: 4px 13px;
	font-size: 12.5px;
	font-weight: 800;
}
body.op3-night .gk-badge-syllabus { color: var(--o-ink); }
.gk-badge-syllabus:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--o-accent); }

/* two-rail layout: dot rail + content */
.gk-layout { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 26px; }
@media (max-width: 900px) { .gk-layout { grid-template-columns: 1fr; } .gk-rail { display: none; } }

.gk-rail { position: relative; }
.gk-rail-inner { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 8px 0; }
.gk-rail-inner:before { content: ""; position: absolute; top: 14px; bottom: 46px; width: 2px; background: var(--o-line); z-index: 0; }
.gk-rail a {
	position: relative; z-index: 1;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--o-surface);
	border: 2px solid var(--o-line);
	margin: 7px 0;
	transition: background .3s, border-color .3s, transform .3s;
}
.gk-rail a:hover { transform: scale(1.35); }
.gk-rail a.is-read { background: var(--o-accent); border-color: var(--o-accent); }
.gk-rail .gk-night-toggle {
	margin-top: 18px;
	width: 30px; height: 30px;
	border-radius: 50%;
	border: 1px solid var(--o-line);
	background: var(--o-surface);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	z-index: 1;
}
.gk-night-toggle:hover { border-color: var(--o-accent); }

/* entry skin */
.gk-single .entry h2 { color: var(--o-primary); border-bottom-color: var(--o-line); }
body.op3-night .gk-single .entry h2 { color: var(--o-ink); }
.gk-single .entry h2:before { color: var(--o-accent); }
.gk-single .entry blockquote {
	margin: 1.4em 0;
	padding: 14px 20px;
	background: rgba(31, 122, 71, .07);
	border-left: 4px solid var(--o-primary-2);
	border-radius: 0 10px 10px 0;
}
body.op3-night .gk-single .entry blockquote { background: rgba(245, 154, 75, .08); }

/* "must remember" — dark-green share-friendly card (pipeline emits .gk-remember) */
.gk-single .entry .gk-remember,
.gk-remember {
	background: var(--o-grad);
	color: #f4efe2;
	border-radius: 14px;
	padding: 26px 28px;
	margin: 1.8em 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 14px 34px rgba(15, 63, 34, .28);
}
.gk-remember h2, .gk-remember h3 { color: #fdfaf2 !important; border: 0 !important; margin-top: 0; }
.gk-remember ul { list-style: none; padding-left: 4px; }
.gk-remember li { padding: 5px 0 5px 26px; position: relative; }
.gk-remember li:before { content: "★"; position: absolute; left: 0; color: var(--o-gold, #c9a24b); }

/* formula / revision box (pipeline emits .gk-formula) */
.gk-formula {
	background: #fff8ec;
	border: 1px solid #f0dcb8;
	border-radius: 10px;
	padding: 14px 18px;
	font-family: 'Consolas', 'JetBrains Mono', monospace;
	font-size: 15px;
	margin: 1.2em 0;
	overflow-x: auto;
}
body.op3-night .gk-formula { background: #1f2a23; border-color: #35443a; color: #f1eee4; }

/* embedded chapter quiz shell */
.gk-quiz {
	border: 1.5px solid var(--o-primary-2);
	border-radius: 14px;
	overflow: hidden;
	margin: 34px 0;
	background: var(--o-surface);
}
.gk-quiz-head {
	background: var(--o-grad);
	color: #fdfaf2;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.gk-quiz-head h2 { color: #fdfaf2; margin: 0; font-size: 20px; border: 0; }
.gk-quiz-head .postmeta { color: #cfe3c9; }
.gk-quiz-body { padding: 10px 16px 16px; }

/* prev / next chapter cards */
.gk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 10px; }
@media (max-width: 620px) { .gk-pager { grid-template-columns: 1fr; } }
.gk-pager a {
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 12px;
	padding: 16px 18px;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.gk-pager a:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(30, 42, 35, .13); text-decoration: none; }
.gk-pager a.gk-next { text-align: right; }
.gk-pager .kicker { color: var(--o-accent); }
.gk-pager strong { color: var(--o-ink); display: block; margin-top: 3px; }

/* share row (shared by all three singles) */
.gk-share { display: flex; gap: 8px; align-items: center; margin: 10px 0 2px; flex-wrap: wrap; }
.gk-share a, .gk-share button {
	border: 1px solid var(--o-line);
	background: var(--o-surface);
	color: var(--o-body);
	border-radius: 16px;
	padding: 5px 14px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
}
.gk-share a:hover, .gk-share button:hover { background: var(--o-primary); border-color: var(--o-primary); color: #fff; text-decoration: none; }

/* =============== Spark: archive =============== */

.mt-hero {
	background: var(--o-grad);
	color: #f4f1ff;
	padding: 54px 0 46px;
	position: relative;
	overflow: hidden;
}
.mt-hero .mt-glyphs { position: absolute; inset: 0; pointer-events: none; }
.mt-hero .mt-glyphs span {
	position: absolute;
	font: 700 64px/1 Georgia, serif;
	color: #fff;
	opacity: .08;
	animation: mt-drift 11s ease-in-out infinite alternate;
}
.mt-hero .mt-glyphs span:nth-child(2) { animation-duration: 9s; animation-delay: -3s; }
.mt-hero .mt-glyphs span:nth-child(3) { animation-duration: 13s; animation-delay: -6s; }
.mt-hero .mt-glyphs span:nth-child(4) { animation-duration: 10s; animation-delay: -1.5s; }
@keyframes mt-drift {
	from { transform: translateY(0) rotate(-4deg); }
	to   { transform: translateY(-26px) rotate(5deg); }
}
.mt-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 6px; }
.mt-hero p { color: #d9d2ff; margin: 0 0 18px; max-width: 620px; }
.mt-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-stats .pill { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); color: #fff; }
.mt-stats .pill b { color: var(--o-accent); }

/* featured trio: 1 big + 2 stacked */
.mt-featured { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; padding: 28px 0 4px; }
@media (max-width: 820px) { .mt-featured { grid-template-columns: 1fr; } }
.mt-feat {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	display: block;
	min-height: 200px;
	background: var(--o-ink);
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.mt-feat:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22, 22, 29, .25); text-decoration: none; }
.mt-feat img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s; opacity: .85; }
.mt-feat:hover img { transform: scale(1.06); }
.mt-feat .mt-feat-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: 200px;
	padding: 20px;
	background: linear-gradient(180deg, transparent 30%, rgba(12, 8, 34, .88));
}
.mt-feat--big .mt-feat-body { min-height: 380px; }
.mt-feat .kicker { color: var(--o-accent); }
.mt-feat h3 { color: #fff; margin: 4px 0 0; font-size: 20px; }
.mt-feat--big h3 { font-size: 28px; }
.mt-feat-stack { display: grid; gap: 18px; }

/* filter chips */
.mt-chips { display: flex; gap: 9px; flex-wrap: wrap; padding: 20px 0 4px; }
.mt-chips a {
	border: 1px solid var(--o-line);
	background: var(--o-surface);
	color: var(--o-ink);
	border-radius: 18px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 700;
	transition: transform .2s, background .25s, color .25s, border-color .25s;
}
.mt-chips a:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--o-primary); color: var(--o-primary); }
.mt-chips a.is-active { background: var(--o-primary); border-color: var(--o-primary); color: #fff; }

/* card grid */
.mt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 18px 0; }
@media (max-width: 980px) { .mt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mt-grid { grid-template-columns: 1fr; } }
.mt-card {
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 14px;
	overflow: hidden;
	display: block;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.mt-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(91, 46, 255, .14); text-decoration: none; }
.mt-card .mt-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--o-grad); }
.mt-card .mt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mt-card:hover .mt-thumb img { transform: scale(1.06); }
.mt-card .mt-body { padding: 15px 16px 16px; }
.mt-card h3 { margin: 6px 0 6px; font-size: 18px; color: var(--o-ink); transition: color .2s; }
.mt-card:hover h3 { color: var(--o-primary); }
.mt-card .kicker { color: var(--o-accent); }
.mt-card .excerpt { font-size: 13.5px; color: var(--o-body); margin: 0 0 8px; }

/* trick of the day band */
.mt-totd {
	background: #16161d;
	color: #f4f1ff;
	border-radius: 16px;
	padding: 26px 28px;
	margin: 22px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	box-shadow: 0 16px 44px rgba(22, 22, 29, .35);
}
.mt-totd .kicker { color: var(--o-accent); }
.mt-totd h3 { color: #fff; margin: 4px 0 2px; font-size: 24px; }
.mt-totd .mt-expr { font: 700 30px/1.2 'Consolas', 'JetBrains Mono', monospace; color: var(--o-ok); }
.mt-totd a.pill { background: var(--o-grad); color: #fff; border: 0; padding: 9px 20px; font-size: 14px; }
.mt-totd a.pill:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(91, 46, 255, .5); }

/* =============== Spark: single =============== */

.mt-single .entry h2 { color: var(--o-primary); }
.mt-single .entry h2:before { color: var(--o-accent); }
.mt-single .entry blockquote,
.mt-why {
	background: rgba(91, 46, 255, .06);
	border-left: 4px solid;
	border-image: linear-gradient(180deg, #5b2eff, #9d7bff) 1;
	padding: 14px 20px;
	margin: 1.4em 0;
	border-radius: 0 10px 10px 0;
}
/* step cards (pipeline emits .mt-step, ol.mt-steps) */
.mt-steps { list-style: none; padding: 0; counter-reset: mtstep; position: relative; margin: 1.6em 0; }
.mt-steps:before { content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 3px; background: linear-gradient(180deg, #5b2eff, #9d7bff); border-radius: 2px; }
.mt-steps li, .mt-step {
	counter-increment: mtstep;
	position: relative;
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 12px;
	padding: 15px 18px 15px 62px;
	margin: 0 0 14px 0;
}
.mt-steps li:before, .mt-step:before {
	content: counter(mtstep);
	position: absolute;
	left: 8px; top: 12px;
	width: 30px; height: 30px;
	display: grid; place-items: center;
	background: var(--o-accent);
	color: #16161d;
	font-weight: 800;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(255, 176, 33, .45);
}
/* trick meta chips row */
.mt-single .single-ribbon .pill--type { background: var(--o-grad); border: 0; }
/* practice CTA band */
.mt-cta {
	background: var(--o-grad);
	border-radius: 16px;
	color: #fff;
	padding: 24px 28px;
	margin: 32px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.mt-cta h2 { color: #fff; margin: 0; border: 0; font-size: 22px; }
.mt-cta h2:before { content: "⚡"; color: var(--o-accent); }
.mt-cta .postmeta { color: #ddd4ff; }
.mt-cta a.pill { background: #fff; color: var(--o-primary); border: 0; font-size: 14px; padding: 9px 20px; }
.mt-cta a.pill:hover { text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }

/* =============== Compass: archive =============== */

.cg-hero { background: var(--o-surface); border-bottom: 1px solid var(--o-line); padding: 50px 0 40px; }
.cg-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 4px; color: var(--o-ink); }
.cg-hero .cg-rule { width: 0; height: 4px; background: var(--o-accent); margin: 10px 0 14px; animation: cg-rule .9s cubic-bezier(.16, 1, .3, 1) .2s forwards; }
@keyframes cg-rule { to { width: 120px; } }
.cg-hero p { max-width: 640px; margin: 0 0 22px; }

.cg-streams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .cg-streams { grid-template-columns: 1fr; } }
.cg-stream {
	border: 1px solid var(--o-line);
	border-top: 4px solid var(--o-primary);
	border-radius: 12px;
	background: var(--o-bg);
	padding: 18px;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.cg-stream:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(11, 31, 58, .12); text-decoration: none; }
.cg-stream--science { border-top-color: #0f8b8d; }
.cg-stream--commerce { border-top-color: #5b6b8c; }
.cg-stream--arts { border-top-color: #b85c79; }
.cg-stream strong { color: var(--o-ink); font-size: 17px; }
.cg-stream .postmeta { margin-top: 5px; }

.cg-section { padding: 26px 0 8px; }
.cg-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.cg-label h2 { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--o-primary); margin: 0; font-family: inherit; }
.cg-label:before { content: "✓"; color: var(--o-accent); font-weight: 800; }
.cg-label:after { content: ""; flex: 1; height: 1px; background: var(--o-line); }

.cg-block { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
@media (max-width: 860px) { .cg-block { grid-template-columns: 1fr; } }
.cg-lead {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.cg-lead:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(11, 31, 58, .13); text-decoration: none; }
@media (max-width: 560px) { .cg-lead { grid-template-columns: 1fr; } }
.cg-lead .cg-thumb { min-height: 190px; overflow: hidden; background: var(--o-grad); }
.cg-lead .cg-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cg-lead:hover .cg-thumb img { transform: scale(1.06); }
.cg-lead .cg-body { padding: 18px; align-self: center; }
.cg-lead h3 { margin: 5px 0 8px; font-size: 20px; color: var(--o-ink); }
.cg-lead .kicker { color: var(--o-accent); }
.cg-lead .excerpt { font-size: 13.5px; margin: 0; color: var(--o-body); }
.cg-minis { display: grid; gap: 0; align-content: start; }
.cg-mini {
	display: grid;
	grid-template-columns: 78px 1fr;
	gap: 13px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--o-line);
	align-items: center;
}
.cg-mini:last-child { border-bottom: 0; }
.cg-mini img { width: 78px; height: 56px; object-fit: cover; border-radius: 8px; }
.cg-mini strong { color: var(--o-ink); font-size: 14.5px; line-height: 1.35; display: block; }
.cg-mini:hover strong { color: var(--o-primary); }
.cg-mini .postmeta { margin-top: 2px; }
.cg-salary { color: var(--o-accent); font-weight: 800; }

/* ghost-numbered flagship cards */
.cg-flagships { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0 2px; }
@media (max-width: 980px) { .cg-flagships { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cg-flagships { grid-template-columns: 1fr; } }
.cg-flag {
	position: relative;
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-radius: 12px;
	padding: 22px 18px 16px;
	overflow: hidden;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.cg-flag:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(11, 31, 58, .12); text-decoration: none; }
.cg-flag .cg-ghost {
	position: absolute;
	right: 6px; top: -14px;
	font: 800 84px/1 Georgia, serif;
	color: var(--o-accent);
	opacity: .12;
}
.cg-flag strong { color: var(--o-ink); font-size: 16px; position: relative; }
.cg-flag .postmeta { margin-top: 5px; position: relative; }

/* =============== Compass: single =============== */

.cg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
@media (max-width: 900px) { .cg-layout { grid-template-columns: 1fr; } }
.cg-aside { align-self: start; position: sticky; top: 84px; display: grid; gap: 18px; }
@media (max-width: 900px) { .cg-aside { position: static; } }

.cg-facts {
	background: var(--o-surface);
	border: 1px solid var(--o-line);
	border-top: 4px solid var(--o-accent);
	border-radius: 12px;
	padding: 18px;
}
.cg-facts h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--o-primary); font-family: inherit; }
.cg-facts dl { margin: 0; display: grid; gap: 10px; }
.cg-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: #7a8699; }
.cg-facts dd { margin: 1px 0 0; font-weight: 700; color: var(--o-ink); }
.cg-facts dd.cg-salary { font-size: 19px; font-family: 'Consolas', 'JetBrains Mono', monospace; }
.cg-demand { display: flex; gap: 4px; margin-top: 3px; }
.cg-demand i { flex: 1; height: 8px; border-radius: 3px; background: var(--o-line); }
.cg-demand i.on { background: var(--o-accent); }

.cg-single .entry h2 { color: var(--o-primary); }
.cg-single .entry h2:before { color: var(--o-accent); }
.cg-single .entry blockquote {
	background: #f2f4f9;
	border-left: 3px solid var(--o-accent);
	padding: 14px 20px;
	margin: 1.4em 0;
	border-radius: 0 10px 10px 0;
	font-style: italic;
}
.cg-single .entry table th { background: var(--o-primary); color: #fff; }
.cg-single .entry table tr:nth-child(even) { background: #f2f4f9; }

/* roadmap timeline (pipeline emits ol.cg-roadmap) */
.cg-roadmap { list-style: none; padding: 0; margin: 1.6em 0; position: relative; counter-reset: cgstage; }
.cg-roadmap:before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 3px; background: var(--o-primary); border-radius: 2px; }
.cg-roadmap li {
	counter-increment: cgstage;
	position: relative;
	padding: 0 0 22px 54px;
}
.cg-roadmap li:before {
	content: counter(cgstage);
	position: absolute;
	left: 3px; top: 0;
	width: 32px; height: 32px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--o-accent);
	color: #fff;
	font-weight: 800;
	box-shadow: 0 0 0 4px var(--o-bg);
}
.cg-roadmap li strong { color: var(--o-ink); display: block; margin-bottom: 3px; }

/* pros/cons split (pipeline emits .cg-proscons with two lists) */
.cg-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0; }
@media (max-width: 620px) { .cg-proscons { grid-template-columns: 1fr; } }
.cg-proscons > div { background: var(--o-surface); border: 1px solid var(--o-line); border-radius: 12px; padding: 16px 18px; }
.cg-proscons ul { list-style: none; padding: 0; margin: 8px 0 0; }
.cg-proscons li { padding: 5px 0 5px 24px; position: relative; font-size: 14.5px; }
.cg-proscons > div:first-child li:before { content: "✓"; position: absolute; left: 0; color: #0f8b8d; font-weight: 800; }
.cg-proscons > div:last-child li:before { content: "✗"; position: absolute; left: 0; color: #b85c79; font-weight: 800; }

/* gold CTA band */
.cg-cta {
	background: linear-gradient(120deg, #0b1f3a, #123c7a);
	border-radius: 14px;
	color: #fff;
	padding: 22px 26px;
	margin: 30px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.cg-cta h2 { color: #fff; margin: 0; border: 0; font-size: 21px; }
.cg-cta a.pill { background: var(--o-accent); color: #0b1f3a; border: 0; font-size: 14px; font-weight: 800; padding: 9px 20px; }
.cg-cta a.pill:hover { text-decoration: none; box-shadow: 0 8px 22px rgba(201, 162, 75, .5); }

/* ---------- Quiz mesh: inline practice + full-quiz links (pipeline emits
   .gk-inline-quiz / .gk-quiz-links via Op 3 Calls 21-22) ---------- */
.gk-inline-quiz {
	background: #f4faf4;
	border: 1px solid #cfe4cf;
	border-left: 5px solid #14532d;
	border-radius: 12px;
	padding: 18px 22px;
	margin: 1.6em 0;
	box-shadow: 0 6px 18px rgba(20, 83, 45, .08);
}
.gk-iq-label {
	display: inline-block;
	background: #14532d;
	color: #fdfaf2;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 3px 12px;
	border-radius: 20px;
	margin-bottom: 8px;
}
.gk-iq-q { font-weight: 700; margin: 6px 0 10px; }
.gk-iq-options { margin: 0 0 10px; padding-left: 26px; }
.gk-iq-options li { padding: 3px 0; }
.gk-inline-quiz details summary {
	cursor: pointer;
	font-weight: 700;
	color: #e87817;
}
.gk-inline-quiz details[open] summary { color: #14532d; }
.gk-inline-quiz details p { margin: 8px 0 0; }
body.op3-night .gk-inline-quiz { background: #1c261f; border-color: #33453a; }
body.op3-night .gk-iq-label { background: #e87817; color: #14200f; }

.gk-quiz-links {
	background: linear-gradient(135deg, #14532d, #1d7a42);
	color: #f4efe2;
	border-radius: 14px;
	padding: 22px 26px;
	margin: 1.8em 0;
	box-shadow: 0 14px 34px rgba(15, 63, 34, .28);
}
.gk-quiz-links h3 { color: #fdfaf2 !important; border: 0 !important; margin: 0 0 10px; }
.gk-quiz-links ul { list-style: none; margin: 0; padding: 0; }
.gk-quiz-links li { padding: 6px 0 6px 28px; position: relative; }
.gk-quiz-links li:before { content: "🏹"; position: absolute; left: 0; }
.gk-quiz-links a { color: #ffd98a; font-weight: 700; }
.gk-quiz-links a:hover { color: #fff; }

/* =====================================================================
   GURUKUL AND SPARK COLOR PASS: the trio entries stop being grey prose.
   Headings carry their section color, bold reads like a marker pen, lists
   get real ticks, tables get their uniform.
   ===================================================================== */
.op3--ncert .entry h2, .op3--maths .entry h2 { position: relative; padding-left: 16px; color: #1c2740; }
.op3--ncert .entry h2::before, .op3--maths .entry h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 3px; background: linear-gradient(180deg, #f59e0b, #b45309); }
.op3--maths .entry h2::before { background: linear-gradient(180deg, #8b5cf6, #6d28d9); }
.op3--ncert .entry h3, .op3--maths .entry h3 { color: #7c2d12; }
.op3--maths .entry h3 { color: #5b21b6; }
.op3--ncert .entry strong, .op3--maths .entry strong { background: linear-gradient(120deg, rgba(255, 209, 102, .55), rgba(255, 176, 32, .3)); border-radius: 4px; padding: 0 4px; }
.op3--ncert .entry > ul li, .op3--maths .entry > ul li { list-style: none; position: relative; padding-left: 6px; }
.op3--ncert .entry > ul li::before, .op3--maths .entry > ul li::before { content: "✔"; position: absolute; left: -18px; color: #15803d; font-size: .85em; }
.op3--ncert .entry table, .op3--maths .entry table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eadfce; margin: 1.4em 0; font-size: .93em; }
.op3--ncert .entry table th, .op3--maths .entry table th { background: #1c2740; color: #fff; padding: 9px 13px; text-align: left; font-size: .82em; letter-spacing: .8px; text-transform: uppercase; }
.op3--ncert .entry table td, .op3--maths .entry table td { padding: 9px 13px; border-bottom: 1px solid #f3ecdd; }
.op3--ncert .entry table tbody tr:nth-child(even) td, .op3--maths .entry table tbody tr:nth-child(even) td { background: #fbf7ee; }
.op3--ncert .entry blockquote, .op3--maths .entry blockquote { margin: 1.6em 0; border: 0; border-left: 5px solid #f59e0b; background: linear-gradient(120deg, #fff8ea, #fff); border-radius: 0 12px 12px 0; padding: 14px 18px; font-style: normal; box-shadow: 0 4px 14px rgba(180, 83, 9, .08); }
