:root {
	--lemma-dm-navy: #1e2b48;
	--lemma-dm-gold: #e0b876;
	--lemma-dm-light: #f8fafc;
	--lemma-dm-border: rgba(30, 43, 72, 0.12);
}

.lemma-dm-shell,
.lemma-dm-single-shell {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.lemma-dm-page,
.lemma-dm-single-shell {
	background: #fff;
	color: var(--lemma-dm-navy);
}

.lemma-dm-hero {
	padding: 80px 0 48px;
	background:
		radial-gradient(circle at top left, rgba(224, 184, 118, 0.22), transparent 36%),
		linear-gradient(180deg, #fff 0%, #fbfaf3 100%);
}

.lemma-dm-accent {
	color: var(--lemma-dm-gold);
}


.lemma-dm-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--lemma-dm-gold);
}

.lemma-dm-mini-title {
	margin: 18px 0 10px;
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--lemma-dm-navy);
}

.lemma-dm-hero h1 {
	margin: 0;
	font-size: clamp(3.4rem, 8vw, 6rem);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 0.94;
}

.lemma-dm-kicker,
.lemma-dm-mini-title,
.lemma-dm-hero h1 {
	display: block;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.lemma-dm-message-box {
	max-width: 980px;
	margin: 40px auto 0;
	text-align: center;
}


.lemma-dm-message-box {
	max-width: 980px;
	margin-top: 40px;
	padding: 42px 48px;
	background: #ffffff;
	border: 1px solid rgba(30, 43, 72, 0.08);
	box-shadow: 18px 18px 0 rgba(30, 43, 72, 0.06);
}

.lemma-dm-message-title {
	margin: 0 0 32px;
	font-size: clamp(2rem, 1.5vw, 3rem);
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: -0.04em;
	color: var(--lemma-dm-navy);
	text-align: center;
	position: relative;
}

.lemma-dm-message-title::before,
.lemma-dm-message-title::after {
	color: rgba(224, 184, 118, 0.4);
	font-size: 2.4rem;
	font-weight: 700;
	position: relative;
	top: -2px;
}

.lemma-dm-message-title::before {
	content: "“";
	margin-right: 14px;
}

.lemma-dm-message-title::after {
	content: "”";
	margin-left: 14px;
}

.lemma-dm-message-lead,
.lemma-dm-message-body {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.9;
	color: #334155;
	word-break: keep-all;
}

.lemma-dm-message-lead strong {
	color: var(--lemma-dm-navy);
	font-weight: 800;
}

.lemma-dm-message-divider {
	margin: 28px 0;
	border: 0;
	border-top: 1px solid rgba(30, 43, 72, 0.1);
}

.lemma-dm-highlight {
	color: var(--lemma-dm-navy);
	font-weight: 900;
	border-bottom: 3px solid rgba(224, 184, 118, 0.9);
	padding-bottom: 2px;
}

@media (max-width: 767px) {
	.lemma-dm-message-box {
		margin-top: 28px;
		padding: 28px 24px;
		box-shadow: 10px 10px 0 rgba(30, 43, 72, 0.06);
	}

	.lemma-dm-message-title {
		max-width: 300px;
		margin: 0 auto 24px;
		font-size: 1.35rem;
		line-height: 1.55;
		text-align: center;
		word-break: auto-phrase;
	}

	.lemma-dm-message-title::before,
	.lemma-dm-message-title::after {
		font-size: 1.8rem;
	}

	.lemma-dm-message-lead,
	.lemma-dm-message-body {
		font-size: 1.02rem;
		line-height: 1.8;
	}
}

.lemma-dm-title-chunk {
	display: inline-block;
}



.lemma-dm-description {
	margin: 18px 0 28px;
	font-size: 1.1rem;
	color: #475569;
}

.lemma-dm-hero blockquote {
	margin: 0 0 24px;
	padding-left: 18px;
	border-left: 4px solid var(--lemma-dm-gold);
	font-size: clamp(1.3rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.5;
}

.lemma-dm-copy {
	max-width: 860px;
	color: #475569;
	line-height: 1.9;
}

.lemma-dm-hero img {
	width: 100%;
	max-width: 360px;
	margin-top: 36px;
	border-radius: 24px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.lemma-dm-archive {
	padding: 32px 0 100px;
}

.lemma-dm-archive-subtitle {
	max-width: 760px;
	margin: 0 auto;
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--lemma-dm-navy);
	text-align: center;
}

.lemma-dm-section-head {
	margin-bottom: 42px;
}

.lemma-dm-section-head h2 {
	margin: 10px 0 12px;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	letter-spacing: -0.05em;
}

.lemma-dm-section-head p {
	max-width: 760px;
	margin: 0 auto;
	color: #64748b;
	line-height: 1.9;
	text-align: center;
}

.lemma-dm-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-content: center;
	gap: 28px;
}

.lemma-dm-card {
	background: #fff;
	border: 1px solid var(--lemma-dm-border);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 20px 35px rgba(15, 23, 42, 0.06);
}

.lemma-dm-card-inner {
	padding: 28px;
}

.lemma-dm-card-date {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--lemma-dm-gold);
}

.lemma-dm-card h3,
.lemma-dm-related-item h3 {
	margin: 0 0 14px;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1.45;
}

.lemma-dm-card h3 a,
.lemma-dm-related-item h3 a {
	color: var(--lemma-dm-navy);
	text-decoration: none;
}

.lemma-dm-card p,
.lemma-dm-related-item p {
	margin: 0;
	color: #64748b;
	font-size: 0.92rem;
	line-height: 1.7;
}

.lemma-dm-readmore {
	display: inline-flex;
	align-items: center;
	margin-top: 20px;
	font-weight: 800;
	color: var(--lemma-dm-navy);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--lemma-dm-gold);
}

.lemma-dm-empty {
	border: 1px dashed rgba(30, 43, 72, 0.22);
	border-radius: 24px;
	padding: 44px 28px;
	text-align: center;
	background: var(--lemma-dm-light);
}

.lemma-dm-single-shell {
	padding-top: 72px;
	padding-bottom: 96px;
}

.lemma-dm-single,
.lemma-generic-single {
	max-width: 940px;
	margin: 0 auto;
}

.lemma-dm-single-header {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lemma-dm-single-header h1 {
	margin: 12px 0 16px;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.05em;
}

.lemma-dm-single-header p {
	max-width: 740px;
	color: #64748b;
	line-height: 1.8;
}

.lemma-dm-single-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.lemma-dm-lesson {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.lemma-dm-lesson-hero,
.lemma-dm-lesson-card,
.lemma-dm-lesson-cta {
	position: relative;
	overflow: hidden;
	border-radius: 30px;
	padding: 34px;
}

.lemma-dm-lesson-hero {
	background:
		radial-gradient(circle at top right, rgba(224, 184, 118, 0.28), transparent 30%),
		linear-gradient(135deg, #18233b 0%, #22345c 58%, #1e2b48 100%);
	color: #fff;
	box-shadow: 0 26px 50px rgba(17, 24, 39, 0.16);
}

.lemma-dm-hero-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.lemma-dm-eyebrow,
.lemma-dm-hero-chip,
.lemma-dm-section-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lemma-dm-eyebrow {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.95);
}

.lemma-dm-hero-chip {
	background: rgba(224, 184, 118, 0.16);
	color: #ffe8b6;
}

.lemma-dm-eyebrow::before,
.lemma-dm-hero-chip::before,
.lemma-dm-section-chip::before,
.lemma-dm-question-number::before,
.lemma-dm-question-label::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
}

.lemma-dm-lesson-hero h2 {
	margin: 18px 0 14px;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.lemma-dm-eyebrow::before {
	background: var(--lemma-dm-gold);
}

.lemma-dm-hero-chip::before {
	background: #fff;
}

.lemma-dm-hero-copy {
	display: grid;
	gap: 10px;
	max-width: 860px;
}

.lemma-dm-lesson-hero p {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.02rem;
	line-height: 1.9;
}

.lemma-dm-lesson-card {
	background:
		linear-gradient(180deg, rgba(224, 184, 118, 0.12) 0, rgba(224, 184, 118, 0.12) 5px, #fff 5px, #fff 100%);
	border: 1px solid rgba(30, 43, 72, 0.08);
	color: var(--lemma-dm-navy);
	box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.lemma-dm-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.lemma-dm-section-chip {
	background: #fff8e7;
	color: #8a6220;
	border: 1px solid rgba(224, 184, 118, 0.4);
}

.lemma-dm-section-chip::before {
	background: var(--lemma-dm-gold);
}

.lemma-dm-lesson-card h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.lemma-dm-section-body {
	display: grid;
	gap: 14px;
}

.lemma-dm-section-intro {
	margin: 0;
	color: #516178;
	font-size: 0.98rem;
}

.lemma-dm-lesson-card p,
.lemma-dm-lesson-card li {
	color: #334155;
	line-height: 1.9;
}

.lemma-dm-lesson-card ul {
	margin: 0;
	padding-left: 20px;
}

.lemma-dm-concept-block,
.lemma-dm-question-block {
	position: relative;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(30, 43, 72, 0.08);
	border-radius: 22px;
	padding: 22px 22px 20px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.lemma-dm-concept-block + .lemma-dm-concept-block,
.lemma-dm-question-block + .lemma-dm-question-block {
	margin-top: 18px;
}

.lemma-dm-concept-block::before,
.lemma-dm-question-block::before {
	content: "";
	position: absolute;
	left: 0;
	top: 22px;
	bottom: 22px;
	width: 4px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--lemma-dm-gold) 0%, #f4d38f 100%);
}

.lemma-dm-concept-block h3,
.lemma-dm-question-block h3 {
	margin: 0 0 12px;
	font-size: 1.06rem;
	font-weight: 800;
	color: var(--lemma-dm-navy);
	letter-spacing: -0.02em;
}

.lemma-dm-concept-block p:last-child,
.lemma-dm-question-row p:last-child {
	margin-bottom: 0;
}

.lemma-dm-notation-list,
.lemma-dm-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lemma-dm-notation-list li,
.lemma-dm-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid rgba(30, 43, 72, 0.08);
	border-radius: 18px;
}

.lemma-dm-list-copy {
	flex: 1;
	min-width: 0;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.lemma-dm-notation-list li::before,
.lemma-dm-list li::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	margin-top: 10px;
	border-radius: 999px;
	background: var(--lemma-dm-gold);
}

.lemma-dm-notation {
	font-weight: 700;
	color: var(--lemma-dm-navy);
}

.lemma-dm-question-top {
	display: flex;
	margin-bottom: 12px;
}

.lemma-dm-question-number {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #1e2b48;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lemma-dm-question-number::before {
	background: var(--lemma-dm-gold);
}

.lemma-dm-question-row {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.lemma-dm-question-row + .lemma-dm-question-row {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed rgba(30, 43, 72, 0.12);
}

.lemma-dm-question-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	background: #eff4ff;
	color: #1f3b73;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lemma-dm-question-label::before {
	background: #2563eb;
}

.lemma-dm-question-row.is-answer .lemma-dm-question-label {
	background: #fff5db;
	color: #8a6220;
}

.lemma-dm-question-row.is-answer .lemma-dm-question-label::before {
	background: var(--lemma-dm-gold);
}

.lemma-dm-question-row.is-explanation .lemma-dm-question-label {
	background: #eef8f3;
	color: #285b48;
}

.lemma-dm-question-row.is-explanation .lemma-dm-question-label::before {
	background: #3aa37a;
}

.lemma-dm-question-row p {
	margin: 0;
}

.lemma-dm-lesson .katex {
	color: currentColor;
	font-size: 1.04em;
	white-space: nowrap;
}

.lemma-dm-lesson .katex-display {
	margin: 1.1em 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.2em 0;
}

.lemma-dm-lesson-cta {
	background:
		radial-gradient(circle at top left, rgba(224, 184, 118, 0.22), transparent 34%),
		linear-gradient(135deg, #17233d 0%, #21365f 100%);
	color: #fff;
	text-align: left;
	box-shadow: 0 28px 54px rgba(17, 24, 39, 0.16);
}

.lemma-dm-lesson-cta h2 {
	margin: 16px 0 12px;
	font-size: clamp(1.5rem, 3.2vw, 2.2rem);
	font-weight: 900;
	letter-spacing: -0.03em;
}

.lemma-dm-lesson-cta p {
	max-width: 760px;
	margin: 0 0 24px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.88);
	word-break: keep-all;
	overflow-wrap: normal;
}

.lemma-dm-lesson-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 28px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f3c667 0%, #e0b876 100%);
	color: #1e2b48;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 14px 30px rgba(224, 184, 118, 0.22);
}

.lemma-dm-cta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.lemma-dm-lesson-cta a.is-secondary {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lemma-dm-related {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid rgba(30, 43, 72, 0.12);
}

.lemma-dm-related-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.lemma-dm-related h2 {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lemma-dm-related-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 999px;
	background: rgba(30, 43, 72, 0.06);
	color: var(--lemma-dm-navy);
	font-size: 0.92rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 0 0 1px rgba(30, 43, 72, 0.08);
}

.lemma-dm-related-list {
	display: grid;
	gap: 18px;
}

.lemma-dm-related-item {
	padding: 18px 0;
	border-bottom: 1px solid rgba(30, 43, 72, 0.12);
}

@media (max-width: 1024px) {
	.lemma-dm-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.lemma-dm-shell,
	.lemma-dm-single-shell {
		padding-left: 18px;
		padding-right: 18px;
	}

	.lemma-dm-grid {
		grid-template-columns: 1fr;
	}

	.lemma-dm-hero,
	.lemma-dm-single-shell {
		padding-top: 48px;
	}

	.lemma-dm-hero-meta,
	.lemma-dm-section-heading {
		flex-direction: column;
		align-items: flex-start;
	}

	.lemma-dm-related-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.lemma-dm-question-row {
		display: grid;
		gap: 10px;
	}

	.lemma-dm-lesson-hero,
	.lemma-dm-lesson-card,
	.lemma-dm-lesson-cta,
	.lemma-dm-card-inner {
		padding: 24px;
	}
}
