:root {
	--dark: #21201c;
	--panel: #2e2c27;
	--paper: #faf7f0;
	--ink: #1d1c19;
	--muted: #6b6557;
	--faint: #9c9485;
	--accent: #305670;
	--accent-soft: #e0ebf2;
	--accent-line: #bfd3df;
	--gold: #c58a2f;
	--gold-soft: #fff1cf;
	--red: #b44b40;
	--red-soft: #f8e5e2;
	--green: #2f8f56;
	--green-soft: #e6f3eb;
	--line: #e6e0d4;
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.theme-editorial-orange {
	--dark: #271b16;
	--panel: #38261e;
	--paper: #fff8ef;
	--ink: #2d211b;
	--muted: #766156;
	--faint: #aa9181;
	--accent: #c65324;
	--accent-soft: #f8e1d1;
	--accent-line: #e8b99f;
	--gold: #d78b2f;
	--gold-soft: #fff0cf;
	--line: #ead7c8;
}

* {
	box-sizing: border-box;
}

[x-cloak] {
	display: none !important;
}

body {
	margin: 0;
	font-family: var(--sans);
	color: var(--ink);
	background: var(--paper);
}

a {
	color: inherit;
}

.home {
	min-height: 100vh;
	background:
		radial-gradient(circle at 88% 0%, rgba(141, 182, 208, 0.12), transparent 36rem),
		var(--dark);
	color: white;
}

.home-shell {
	width: min(1180px, calc(100% - 48px));
	min-height: 100vh;
	margin: 0 auto;
	padding: clamp(36px, 5vw, 72px) 0 80px;
}

.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	align-items: end;
	margin-bottom: clamp(40px, 5vw, 64px);
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.kicker {
	margin: 0 0 10px;
	font-family: var(--mono);
	font-size: clamp(12px, 1.2vw, 15px);
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--accent);
}

.home-eyebrow {
	margin: 0 0 12px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9ec5de;
}

.home-hero h1,
.title-slide h1 {
	margin: 0;
	font-size: clamp(52px, 9vw, 108px);
	line-height: 0.95;
	letter-spacing: 0;
}

.home-hero h1 {
	max-width: 760px;
	font-size: clamp(46px, 7vw, 78px);
	letter-spacing: -0.035em;
}

.home-tagline,
.subtitle {
	max-width: 760px;
	margin: 18px 0 0;
	font-family: var(--mono);
	font-size: clamp(17px, 2vw, 24px);
	color: #d2ddd7;
}

.home-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(116px, 1fr));
	overflow: hidden;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 14px;
}

.home-stat {
	padding: 16px 20px;
}

.home-stat + .home-stat {
	border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.home-stat strong,
.home-stat span {
	display: block;
}

.home-stat strong {
	font-family: var(--mono);
	font-size: 25px;
	color: #9ec5de;
}

.home-stat span {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #c5d0ca;
}

.course-library {
	display: grid;
	gap: clamp(40px, 5vw, 64px);
}

.course-section {
	display: grid;
	gap: 20px;
}

.course-heading {
	display: flex;
	gap: 24px;
	align-items: end;
	justify-content: space-between;
}

.course-heading p {
	margin: 0 0 6px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8db6d0;
}

.course-heading h2 {
	margin: 0;
	font-size: clamp(20px, 2vw, 27px);
	line-height: 1.15;
}

.course-heading > span {
	flex: 0 0 auto;
	padding-bottom: 2px;
	font-family: var(--mono);
	font-size: 12px;
	color: #aebbb5;
}

.deck-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.deck-card {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 22px;
	min-height: 218px;
	padding: 24px;
	background: color-mix(in srgb, var(--panel) 94%, white);
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 14px;
	color: white;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	transition:
		transform 160ms ease,
		border-color 160ms ease,
		background 160ms ease,
		box-shadow 160ms ease;
}

.deck-card:hover {
	transform: translateY(-2px);
	background: color-mix(in srgb, var(--panel) 90%, white);
	border-color: rgba(158, 197, 222, 0.52);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.deck-card:focus-visible {
	outline: 3px solid #9ec5de;
	outline-offset: 4px;
}

.deck-card-top {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
}

.deck-id {
	padding: 5px 8px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ec5de;
	background: rgba(158, 197, 222, 0.09);
	border: 1px solid rgba(158, 197, 222, 0.2);
	border-radius: 6px;
}

.deck-meta {
	font-family: var(--mono);
	font-size: 12px;
	color: #aebbb5;
}

.deck-copy {
	display: grid;
	align-content: start;
	gap: 9px;
}

.deck-copy strong {
	font-size: clamp(22px, 2.2vw, 29px);
	line-height: 1.08;
}

.deck-copy > span {
	max-width: 48ch;
	font-size: 15px;
	line-height: 1.5;
	color: #c8d2cd;
}

.deck-action {
	display: flex;
	gap: 10px;
	align-items: center;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	color: #9ec5de;
}

.deck-action span {
	font-size: 17px;
	transition: transform 160ms ease;
}

.deck-card:hover .deck-action span {
	transform: translateX(4px);
}

@media (max-width: 760px) {
	.home-shell {
		width: min(100% - 28px, 620px);
		padding-top: 28px;
	}

	.home-hero {
		grid-template-columns: 1fr;
		gap: 28px;
		align-items: start;
		padding-bottom: 30px;
	}

	.home-summary {
		width: 100%;
	}

	.course-heading {
		align-items: start;
	}

	.deck-grid {
		grid-template-columns: 1fr;
	}

	.deck-card {
		min-height: 0;
		padding: 21px;
	}
}

.stage {
	min-height: 100vh;
	background: var(--paper);
}

.title-slide {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 7vw, 96px);
	background: var(--dark);
	color: white;
}


.title-copy {
	display: contents;
}

.title-rule,
.title-motif,
.title-footer,
.slide-heading-icon {
	display: none;
}

.slide-heading {
	display: flex;
	align-items: center;
	gap: 14px;
}
.slide-frame {
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr;
}

.slide-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px clamp(24px, 4vw, 56px);
	background: var(--dark);
	color: white;
	border-bottom: 5px solid var(--accent);
}

.slide-header h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.05;
}

.count,
.deck-nav {
	font-family: var(--mono);
}

.count {
	color: var(--faint);
}

.slide-body {
	--body-max: 1180px;
	--body-gap: 18px;
	--body-pad-top: clamp(28px, 5vw, 72px);
	--body-pad-inline: clamp(28px, 5vw, 72px);
	--body-pad-bottom: max(clamp(28px, 5vw, 72px), 104px);
	display: grid;
	align-content: center;
	justify-items: center;
	gap: var(--body-gap);
	width: min(var(--body-max), 100%);
	margin: 0 auto;
	padding: var(--body-pad-top) var(--body-pad-inline) var(--body-pad-bottom);
}

.slide-body > * {
	width: 100%;
}

.body-bubbles {
	--body-max: 1360px;
	--body-gap: clamp(14px, 1.7vw, 24px);
	--body-pad-top: clamp(20px, 3vw, 48px);
	--body-pad-inline: clamp(22px, 3.2vw, 52px);
}

.body-question-grid,
.body-marked-passage,
.body-content-split,
.body-content-cards,
.body-content-grid,
.body-content-blueprint,
.body-content-flow,
.body-choice,
.body-classification,
.body-cloze,
.body-ordering,
.body-video,
.body-reveal {
	--body-max: 1320px;
	--body-gap: 22px;
	--body-pad-top: clamp(22px, 3.2vw, 52px);
	--body-pad-inline: clamp(22px, 3.2vw, 52px);
}

.body-marked-passage {
	--body-gap: clamp(14px, 1.7vw, 22px);
}

.body-classification {
	--body-max: 1220px;
	--body-gap: 14px;
}

.body-ordering {
	--body-max: 1240px;
	--body-gap: 14px;
}

.body-cloze {
	--body-max: 1120px;
	--body-gap: 10px;
	--body-pad-top: clamp(14px, 2vw, 28px);
	--body-pad-inline: clamp(20px, 3vw, 40px);
}

.body-reveal {
	--body-max: 1260px;
	--body-gap: 18px;
}

.body-reveal.reveal-text {
	--body-max: 1160px;
}

.body-video {
	--body-max: 1240px;
}

.lead {
	margin: 0;
	width: min(1120px, 100%);
	justify-self: center;
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.25;
}

.body-content-grid .lead,
.body-content-blueprint .lead,
.body-question-grid .lead,
.body-reveal .lead,
.body-choice .lead,
.body-classification .lead {
	text-align: center;
}

.para,
.bullets {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.4;
}

.bullets {
	display: grid;
	gap: 12px;
	padding-left: 1.2em;
}

.body-content-grid .bullets {
	width: min(980px, 100%);
	justify-self: center;
	padding-left: 1.35em;
	list-style: disc;
}

.body-content-grid .bullets li {
	font-size: clamp(18px, 1.5vw, 23px);
	line-height: 1.3;
}

.callout {
	margin: 0;
	padding: 18px 22px;
	font-size: clamp(20px, 2.1vw, 28px);
	line-height: 1.35;
	color: white;
	background: var(--dark);
	border-left: 7px solid var(--accent);
	border-radius: 8px;
}

.bubble-layout {
	display: grid;
	width: 100%;
	gap: clamp(16px, 1.8vw, 26px);
}

.layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	align-items: stretch;
	justify-content: center;
}

.layout-grid.grid-one {
	grid-template-columns: minmax(min(720px, 100%), 760px);
	max-width: 760px;
	margin: 0 auto;
}

.layout-grid.grid-two {
	grid-template-columns: repeat(2, minmax(300px, 1fr));
	max-width: 1120px;
	margin: 0 auto;
}

.layout-grid.grid-balanced {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-grid.grid-many {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.layout-focus {
	align-items: stretch;
	min-height: min(640px, calc(100vh - 210px));
}

.layout-focus.focus-few {
	grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
}

.layout-focus.focus-stack {
	grid-template-columns: minmax(340px, 1.25fr) minmax(260px, 0.85fr);
}

.layout-focus.focus-grid {
	grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
}

.layout-compact {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(14px, 1.5vw, 20px);
}

.bubble {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 150px;
	padding: clamp(18px, 2.4vw, 30px);
	background: white;
	border: 1px solid var(--line);
	border-top: 6px solid var(--accent);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(33, 32, 28, 0.08);
}

.layout-focus .bubble.primary {
	min-height: 100%;
	background: var(--accent-soft);
}

.sub-bubbles {
	display: grid;
	gap: inherit;
	min-height: 0;
}

.focus-few .sub-bubbles,
.focus-stack .sub-bubbles {
	grid-template-columns: 1fr;
	grid-auto-rows: 1fr;
}

.focus-grid .sub-bubbles {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
}

.sub-bubbles .bubble {
	min-height: 0;
}

.focus-grid .sub-bubbles .bubble {
	padding: clamp(16px, 1.8vw, 24px);
}

.layout-compact .bubble {
	min-height: 120px;
	padding: 16px;
}

.bubble h2 {
	margin: 0 0 10px;
	font-size: clamp(23px, 2.2vw, 34px);
	line-height: 1.05;
}

.bubble p {
	margin: 0;
	font-size: clamp(18px, 1.65vw, 24px);
	line-height: 1.35;
}

.bubble.primary h2 {
	font-size: clamp(28px, 3vw, 46px);
}

.bubble.primary p {
	font-size: clamp(20px, 2vw, 30px);
}

.grid-one .bubble,
.grid-two .bubble {
	min-height: clamp(260px, 32vh, 410px);
	padding: clamp(28px, 4vw, 54px);
}

.grid-one .bubble h2,
.grid-two .bubble h2 {
	font-size: clamp(28px, 3vw, 44px);
}

.grid-one .bubble p,
.grid-two .bubble p {
	font-size: clamp(20px, 2vw, 29px);
	line-height: 1.32;
}

.slide-body:has(.layout-grid.grid-two) .slide-note,
.slide-body:has(.layout-grid.grid-one) .slide-note {
	width: min(1120px, 100%);
	margin: 0 auto;
	text-align: center;
	background: var(--gold-soft);
	border-left-color: var(--gold);
}

.focus-grid .sub-bubbles .bubble h2 {
	font-size: clamp(19px, 1.75vw, 28px);
}

.focus-grid .sub-bubbles .bubble p {
	font-size: clamp(16px, 1.35vw, 21px);
}

.layout-compact .bubble h2 {
	font-size: clamp(18px, 1.7vw, 24px);
}

.layout-compact .bubble p {
	font-size: clamp(16px, 1.45vw, 20px);
}

.slide-note {
	margin: 0;
	padding: 14px 18px;
	font-size: clamp(18px, 1.8vw, 24px);
	line-height: 1.35;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.64);
	border-left: 5px solid var(--accent);
	border-radius: 8px;
}

.question-lead {
	max-width: 1180px;
}

.question-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(14px, 1.7vw, 22px);
	width: 100%;
}

.question-card {
	min-height: 150px;
	padding: clamp(18px, 2vw, 28px);
	background: white;
	border: 1px solid var(--line);
	border-left: 7px solid var(--accent);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(33, 32, 28, 0.07);
}

.question-card h2 {
	margin: 0 0 12px;
	font-family: var(--mono);
	font-size: clamp(24px, 2.4vw, 38px);
	line-height: 1;
	color: var(--accent);
}

.question-card p {
	margin: 0;
	font-size: clamp(18px, 1.6vw, 24px);
	line-height: 1.35;
}

.content-split {
	display: grid;
	grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.25fr);
	gap: clamp(24px, 4vw, 52px);
	align-items: center;
	width: 100%;
}

.cards-split {
	grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.35fr);
}

.split-panel {
	display: grid;
	gap: 12px;
	align-content: center;
	min-height: 280px;
	padding: clamp(28px, 4vw, 48px);
	background: white;
	border: 1px solid var(--line);
	border-left: 7px solid var(--accent);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(33, 32, 28, 0.08);
}

.split-label {
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--accent);
}

.split-title {
	display: grid;
	gap: 2px;
	font-size: 3.15rem;
	line-height: 1;
}

.split-copy {
	display: grid;
	gap: 18px;
}

.split-copy p,
.mini-card,
.grid-footer,
.flow-lead,
.flow-note {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.38;
}

.emphasis-note,
.grid-footer,
.flow-note {
	padding: 16px 18px;
	background: var(--gold-soft);
	border-left: 6px solid var(--gold);
	border-radius: 8px;
	color: var(--ink);
}

.mini-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.mini-card {
	display: flex;
	align-items: center;
	min-height: 104px;
	padding: 18px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(33, 32, 28, 0.07);
}

.mini-card-grid .grid-footer {
	grid-column: 1 / -1;
	background: var(--accent-soft);
	border-left-color: var(--accent);
}

.info-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	width: 100%;
	justify-self: center;
}

.info-card-grid.cards-one {
	grid-template-columns: minmax(0, 620px);
	max-width: 620px;
}

.info-card-grid.cards-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 980px;
}

.info-card-grid.cards-three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 1120px;
}

.info-card-grid.cards-four {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 1120px;
}

.info-card {
	display: grid;
	align-content: start;
	gap: 10px;
	min-height: 210px;
	padding: 22px;
	background: white;
	border: 1px solid var(--line);
	border-top: 6px solid var(--accent);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(33, 32, 28, 0.07);
}

.info-card h2 {
	margin: 0;
	font-family: var(--mono);
	font-size: 1.15rem;
	line-height: 1.15;
	color: var(--accent);
}

.info-card p {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.35;
}

.info-card-grid .grid-footer {
	grid-column: 1 / -1;
	justify-self: center;
	max-width: 920px;
	text-align: center;
}

.blueprint-board {
	--blueprint-paper: #174d68;
	--blueprint-line: rgba(184, 224, 239, 0.32);
	--blueprint-ink: #f4fbfd;
	position: relative;
	display: grid;
	gap: 16px;
	padding: clamp(22px, 3vw, 34px);
	overflow: hidden;
	color: var(--blueprint-ink);
	background-color: var(--blueprint-paper);
	background-image:
		linear-gradient(var(--blueprint-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
		linear-gradient(rgba(184, 224, 239, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(184, 224, 239, 0.12) 1px, transparent 1px);
	background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
	border: 2px solid #7fb5c9;
	border-radius: 5px;
	box-shadow: 0 16px 38px rgba(20, 57, 75, 0.2);
}

.blueprint-board::before {
	content: "";
	position: absolute;
	inset: 11px;
	pointer-events: none;
	border: 1px solid rgba(225, 245, 251, 0.55);
}

.blueprint-stamp {
	position: absolute;
	right: 22px;
	bottom: 18px;
	z-index: 2;
	display: grid;
	min-width: 150px;
	padding: 6px 9px;
	font-family: var(--mono);
	text-align: right;
	text-transform: uppercase;
	color: #d8f0f7;
	background: rgba(11, 49, 67, 0.78);
	border: 1px solid rgba(216, 240, 247, 0.65);
}

.blueprint-stamp span {
	font-size: 0.62rem;
	letter-spacing: 0.12em;
}

.blueprint-stamp strong {
	font-size: 0.82rem;
	letter-spacing: 0.06em;
}

.blueprint-rooms {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	counter-reset: blueprint-room;
}

.blueprint-rooms::before,
.blueprint-rooms::after {
	content: "";
	position: absolute;
	z-index: 0;
	background: #a8d4e3;
	opacity: 0.78;
}

.blueprint-rooms::before {
	top: 50%;
	left: 9%;
	right: 9%;
	height: 2px;
}

.blueprint-rooms::after {
	top: 9%;
	bottom: 9%;
	left: 50%;
	width: 2px;
}

.blueprint-room {
	position: relative;
	z-index: 1;
	min-height: 148px;
	padding: 22px 24px 20px;
	background: rgba(12, 59, 80, 0.94);
	border: 2px solid #b7dce8;
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
	counter-increment: blueprint-room;
}

.blueprint-room::after {
	content: "";
	position: absolute;
	top: 9px;
	right: 9px;
	bottom: 9px;
	left: 9px;
	pointer-events: none;
	border-top: 1px dashed rgba(183, 220, 232, 0.48);
	border-left: 1px dashed rgba(183, 220, 232, 0.48);
}

.blueprint-room-number {
	position: absolute;
	top: 12px;
	right: 17px;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	color: #9ac9d9;
}

.blueprint-room-number::before {
	content: "ROOM 0" counter(blueprint-room);
}

.blueprint-room h2 {
	position: relative;
	margin: 0 0 10px;
	font-family: var(--mono);
	font-size: clamp(18px, 1.7vw, 24px);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: white;
}

.blueprint-room p {
	position: relative;
	max-width: 500px;
	margin: 0;
	font-size: clamp(16px, 1.25vw, 19px);
	line-height: 1.35;
	color: #dceef4;
}

.blueprint-footer {
	position: relative;
	z-index: 1;
	max-width: calc(100% - 190px);
	margin: 0;
	padding: 9px 12px;
	font-family: var(--mono);
	font-size: clamp(13px, 1vw, 16px);
	line-height: 1.3;
	color: #eaf7fa;
	background: rgba(11, 49, 67, 0.72);
	border-left: 4px solid #a8d4e3;
}

.why-flow {
	display: grid;
	gap: 24px;
	width: 100%;
}

.flow-lead,
.flow-note {
	max-width: 1040px;
	justify-self: center;
	text-align: center;
}

.flow-line {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	gap: 14px;
	align-items: center;
}

.flow-step {
	display: grid;
	place-items: center;
	min-height: 150px;
	padding: 24px;
	font-family: var(--mono);
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(33, 32, 28, 0.07);
}

.flow-arrow {
	font-family: var(--mono);
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--red);
}

.flow-note {
	background: var(--accent-soft);
	border-left-color: var(--accent);
}

.choice-shell {
	display: grid;
	gap: 14px;
	width: 100%;
}

.body-choice-audio {
	align-content: start;
}

.choice-audio-panel {
	position: sticky;
	z-index: 20;
	top: 12px;
	display: grid;
	grid-template-columns: minmax(210px, 0.55fr) minmax(320px, 1fr);
	gap: 24px;
	align-items: center;
	padding: 14px 18px;
	color: white;
	background: var(--dark);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 5px solid var(--accent);
	border-radius: 6px;
	box-shadow: 0 12px 34px rgba(21, 33, 29, 0.2);
}

.choice-audio-copy {
	display: grid;
	gap: 3px;
}

.choice-audio-copy strong {
	font-family: var(--mono);
	font-size: 0.86rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.choice-audio-copy span {
	font-size: 0.98rem;
	color: #d7e0db;
}

.choice-audio-panel audio {
	width: 100%;
	height: 42px;
	accent-color: var(--accent);
}

.choice-lead {
	max-width: 1120px;
	font-size: 1.45rem;
	line-height: 1.32;
}

.choice-list {
	display: grid;
	gap: 12px;
}

.choice-item {
	display: grid;
	gap: 12px;
}

.choice-prompt {
	margin: 0;
	padding: 22px 26px;
	font-family: var(--mono);
	font-size: 1.25rem;
	line-height: 1.6;
	white-space: pre-wrap;
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(33, 32, 28, 0.07);
}

.choice-multi .choice-item {
	grid-template-columns: minmax(340px, 1.05fr) minmax(360px, 0.95fr);
	align-items: start;
	padding: 14px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(33, 32, 28, 0.06);
}

.choice-multi .choice-prompt {
	align-self: stretch;
	padding: 14px 16px;
	font-size: 1.05rem;
	line-height: 1.45;
	background: #fffdf8;
	box-shadow: none;
}

.choice-options {
	display: grid;
	gap: 12px;
}

.choice-multi .choice-options {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.choice-option {
	min-height: 58px;
	padding: 14px 18px;
	font: inherit;
	font-family: var(--mono);
	font-size: 1.15rem;
	line-height: 1.25;
	text-align: left;
	color: var(--ink);
	background: white;
	border: 1px solid var(--line);
	border-left: 6px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.choice-multi .choice-option {
	min-height: 48px;
	padding: 10px 12px;
	font-size: 1rem;
	text-align: center;
}

.choice-option:hover,
.choice-option:focus-visible {
	background: #fffdf6;
	border-left-color: var(--gold);
	outline: none;
}

.choice-option.good {
	background: var(--green-soft);
	border-color: #b8d9c4;
	border-left-color: var(--green);
	color: #105e36;
}

.choice-option.bad {
	background: var(--red-soft);
	border-color: #e7b9b4;
	border-left-color: var(--red);
	color: #7b2d26;
}

.choice-feedback {
	min-height: 28px;
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.35;
	color: var(--muted);
}

.choice-multi .choice-feedback {
	grid-column: 2;
	min-height: 22px;
	font-size: 0.98rem;
}

.choice-explain {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 14px;
	font-family: var(--mono);
	font-size: 0.98rem;
	line-height: 1.35;
	color: #5a3d05;
	background: #fff1c4;
	border-left: 5px solid var(--gold);
	border-radius: 6px;
}

.choice-status {
	margin: 0;
	font-family: var(--mono);
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--muted);
}

.choice-marker {
	display: inline;
	border-bottom: 0.12em solid transparent;
	border-radius: 0.22em;
	padding: 0 0.14em 0.03em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.choice-marker.marker-fact {
	background: #e6f3eb;
	border-bottom-color: #2f8f56;
	color: #105e36;
}

.choice-marker.marker-opinion {
	background: #f2ce6e;
	border-bottom-color: #cf8a2c;
	color: #5a3d05;
}

.choice-marker.marker-main {
	background: #dcecf7;
	border-bottom-color: #305670;
	color: #1f465d;
}

.choice-marker.marker-topic {
	background: #dfecea;
	border-bottom-color: #3a6b62;
	color: #24564e;
}

.choice-marker.marker-evidence {
	background: #e7eef8;
	border-bottom-color: #4f7d9c;
	color: #305670;
}

.choice-marker.marker-vocab {
	background: #f8e5e2;
	border-bottom-color: #b0453a;
	color: #8f3027;
}

.classification-shell {
	display: grid;
	gap: 12px;
	width: 100%;
	max-width: 1160px;
	justify-self: center;
}

.classification-lead {
	max-width: 1120px;
	font-size: 1.45rem;
	line-height: 1.3;
}

.classification-list {
	display: grid;
	gap: 8px;
	width: 100%;
}

.classification-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 14px;
	align-items: center;
	padding: 12px 14px;
	background: white;
	border: 1px solid var(--line);
	border-left: 5px solid var(--accent);
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(33, 32, 28, 0.06);
}

.classification-text {
	margin: 0;
	font-family: var(--mono);
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.34;
}

.classification-options {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.classification-option {
	min-width: 84px;
	min-height: 42px;
	padding: 8px 12px;
	font: inherit;
	font-family: var(--mono);
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.classification-option:hover,
.classification-option:focus-visible {
	background: #fffdf6;
	border-color: var(--gold);
	color: var(--ink);
	outline: none;
}

.classification-option.good {
	background: var(--green-soft);
	border-color: #9fcfaf;
	color: #105e36;
}

.classification-option.bad {
	background: var(--red-soft);
	border-color: #e0a49d;
	color: #7b2d26;
}

.classification-feedback {
	grid-column: 1 / -1;
	min-height: 0;
	margin: 0;
	font-size: clamp(14px, 1vw, 16px);
	line-height: 1.32;
	color: var(--muted);
}

.classification-feedback:not(:empty) {
	padding-top: 2px;
	color: var(--ink);
}

.classification-status {
	margin: 0;
	font-family: var(--mono);
	font-size: clamp(14px, 1.1vw, 17px);
	font-weight: 800;
	color: var(--muted);
}

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

.cloze-shell,
.ordering-shell {
	display: grid;
	gap: 16px;
	width: 100%;
}

.cloze-shell {
	gap: 11px;
}

.cloze-lead,
.ordering-lead {
	max-width: 1160px;
	font-size: clamp(20px, 2vw, 28px);
	text-align: center;
}

.cloze-lead {
	max-width: 960px;
	font-size: clamp(19px, 1.7vw, 25px);
	line-height: 1.28;
}

.cloze-word-bank {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	border-radius: 8px;
}

.cloze-bank-label {
	margin-right: 4px;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--accent);
}

.cloze-word {
	padding: 6px 10px;
	font-family: var(--mono);
	font-size: 0.92rem;
	font-weight: 700;
	background: white;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.cloze-passage {
	padding: clamp(16px, 2vw, 24px);
	font-size: clamp(20px, 1.8vw, 26px);
	line-height: 1.78;
	white-space: normal;
	background: white;
	border: 1px solid var(--line);
	border-left: 6px solid var(--accent);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(33, 32, 28, 0.07);
}

.cloze-blank {
	display: inline-block;
	margin: 0 0.16em;
	vertical-align: baseline;
}

.cloze-blank select {
	max-width: 176px;
	padding: 6px 30px 6px 8px;
	font: inherit;
	font-family: var(--mono);
	font-size: 0.79em;
	font-weight: 800;
	color: var(--accent);
	background: #fffdf6;
	border: 2px solid var(--gold);
	border-radius: 7px;
	cursor: pointer;
}

.cloze-blank select:focus-visible {
	outline: 3px solid rgba(197, 138, 47, 0.25);
	outline-offset: 2px;
}

.cloze-blank select.good {
	color: #105e36;
	background: var(--green-soft);
	border-color: var(--green);
}

.cloze-blank select.bad {
	color: #7b2d26;
	background: var(--red-soft);
	border-color: var(--red);
}

.ordering-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ordering-row;
}

.ordering-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 62px;
	padding: 9px 12px;
	background: white;
	border: 1px solid var(--line);
	border-left: 5px solid var(--accent);
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(33, 32, 28, 0.05);
	cursor: grab;
	transition: opacity 0.14s, background 0.14s, border-color 0.14s;
	counter-increment: ordering-row;
}

.ordering-row.dragging {
	opacity: 0.45;
	cursor: grabbing;
}

.ordering-row.moving {
	animation: ordering-settle 180ms ease-out;
}

@keyframes ordering-settle {
	from {
		opacity: 0.72;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ordering-row.good {
	background: var(--green-soft);
	border-color: #9fcfaf;
	border-left-color: var(--green);
}

.ordering-row.bad {
	background: var(--red-soft);
	border-color: #e0a49d;
	border-left-color: var(--red);
}

.ordering-number {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	font-family: var(--mono);
	font-weight: 800;
	color: white;
	background: var(--accent);
	border-radius: 50%;
}

.ordering-number::before {
	content: counter(ordering-row);
}

.ordering-row p {
	margin: 0;
	font-size: clamp(15px, 1.25vw, 19px);
	line-height: 1.3;
}

.ordering-controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ordering-controls button {
	width: 38px;
	height: 38px;
	font: inherit;
	font-family: var(--mono);
	font-weight: 900;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	border-radius: 7px;
	cursor: pointer;
}

.ordering-controls button:hover,
.ordering-controls button:focus-visible {
	color: var(--ink);
	background: var(--gold-soft);
	border-color: var(--gold);
	outline: none;
}

.ordering-controls button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.drag-handle {
	padding: 0 3px;
	font-family: var(--mono);
	font-weight: 900;
	color: var(--faint);
}

.activity-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.activity-button {
	min-height: 42px;
	padding: 9px 14px;
	font: inherit;
	font-family: var(--mono);
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	border-radius: 8px;
	cursor: pointer;
}

.activity-button.primary {
	color: white;
	background: var(--accent);
	border-color: var(--accent);
}

.activity-button.subtle {
	color: var(--muted);
	background: white;
	border-color: var(--line);
}

.activity-button:hover,
.activity-button:focus-visible {
	filter: brightness(0.96);
	outline: 3px solid rgba(48, 86, 112, 0.16);
	outline-offset: 2px;
}

.activity-status {
	flex: 1 1 260px;
	margin: 0 0 0 6px;
	font-family: var(--mono);
	font-size: 0.95rem;
	font-weight: 800;
	text-align: right;
	color: var(--muted);
}

.body-cloze .activity-button {
	min-height: 36px;
	padding: 7px 12px;
	font-size: 0.82rem;
}

.body-cloze .activity-status {
	font-size: 0.82rem;
}

.body-cloze .slide-note {
	margin-top: 0;
	font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
	.ordering-row.moving {
		animation: none;
	}
}

.video-shell {
	display: grid;
	gap: 16px;
	align-content: center;
	width: 100%;
}

.video-player {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: calc(100vh - 250px);
	background: #151411;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(33, 32, 28, 0.16);
}

video.video-player {
	object-fit: contain;
}

.video-embed {
	border: 0;
}

.video-caption {
	max-width: 1000px;
	justify-self: center;
	text-align: center;
}

.reveal-shell {
	display: grid;
	gap: 20px;
	width: 100%;
}

.reveal-lead {
	max-width: 1120px;
	font-size: 1.65rem;
}

.reveal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(16px, 2vw, 26px);
	width: 100%;
	justify-self: center;
}

.reveal-grid.reveal-few {
	max-width: 1050px;
}

.reveal-grid.reveal-text.reveal-many {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 1080px;
	gap: 14px;
}

.reveal-card {
	position: relative;
	overflow: hidden;
	min-height: clamp(220px, 24vh, 320px);
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(33, 32, 28, 0.09);
}

.reveal-media .reveal-card,
.reveal-mixed .reveal-card.has-image,
.reveal-mixed .reveal-card.has-emoji {
	min-height: min(500px, calc(100vh - 320px));
}

.reveal-text .reveal-card {
	min-height: clamp(150px, 18vh, 210px);
}

.reveal-cover {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 12px;
	width: 100%;
	padding: 28px;
	font: inherit;
	color: white;
	background: var(--dark);
	border: 0;
	cursor: pointer;
}

.reveal-cover span {
	font-family: var(--mono);
	font-size: 0.95rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #d2ddd7;
}

.reveal-cover strong {
	font-size: clamp(1.9rem, 4vw, 4rem);
	line-height: 1;
}

.reveal-card.revealed {
	border-top: 6px solid var(--accent);
}

.reveal-content {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	min-height: inherit;
}

.reveal-card.text-only .reveal-content {
	grid-template-rows: 1fr;
	min-height: 0;
}

.reveal-content:has(.reveal-emoji):not(:has(img)) {
	grid-template-rows: 1fr;
	place-items: center;
	background: white;
}

.reveal-content img {
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	background: #151411;
}

.reveal-emoji {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: inherit;
	font-size: clamp(7rem, 18vw, 15rem);
	line-height: 1;
	background: var(--gold-soft);
}

.reveal-copy {
	display: grid;
	gap: 8px;
	padding: 18px 20px;
}

.reveal-card.text-only .reveal-copy {
	align-content: start;
	min-height: 160px;
	padding: 18px;
}

.reveal-copy h2,
.reveal-copy p {
	margin: 0;
}

.reveal-copy h2 {
	font-family: var(--mono);
	font-size: 1.15rem;
	line-height: 1.15;
	color: var(--accent);
}

.reveal-copy p {
	font-size: 1.08rem;
	line-height: 1.35;
}

.reveal-card.text-only .reveal-copy p {
	font-size: 1rem;
	line-height: 1.36;
}

.marked-lead {
	max-width: 1180px;
}

.marked-passage-shell {
	display: contents;
}

.marker-panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
	width: 100%;
}

.marker-stat {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.marker-stat.complete {
	background: #f5fbf7;
	border-color: #b8d9c4;
}

.marker-swatch {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	background: var(--accent);
}

.marker-copy {
	display: grid;
	gap: 2px;
}

.marker-copy strong {
	font-size: 16px;
	line-height: 1.1;
}

.marker-copy span {
	font-size: 13px;
	line-height: 1.25;
	color: var(--muted);
}

.marker-count {
	font-family: var(--mono);
	font-size: 18px;
	font-weight: 800;
	color: var(--accent);
}

.marked-passage {
	width: 100%;
	padding: clamp(20px, 2.4vw, 34px);
	font-family: var(--mono);
	font-size: clamp(18px, 1.55vw, 25px);
	line-height: 1.62;
	white-space: pre-wrap;
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(33, 32, 28, 0.08);
}

.marker-token {
	display: inline;
	cursor: pointer;
	font: inherit;
	color: inherit;
	line-height: inherit;
	background: transparent;
	border: 0;
	border-bottom: 0.12em solid transparent;
	border-radius: 0.22em;
	padding: 0 0.14em 0.03em;
	margin: 0;
	text-align: inherit;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.marker-token:hover,
.marker-token:focus-visible {
	background: #f1ece1;
	outline: none;
}

.marker-token.selected.marker-fact {
	background: #e6f3eb;
	border-bottom-color: #2f8f56;
	color: #105e36;
}

.marker-token.selected.marker-opinion {
	background: #f2ce6e;
	border-bottom-color: #cf8a2c;
	color: #5a3d05;
}

.marker-token.selected.marker-main {
	background: #dcecf7;
	border-bottom-color: #305670;
	color: #1f465d;
}

.marker-token.selected.marker-topic {
	background: #dfecea;
	border-bottom-color: #3a6b62;
	color: #24564e;
}

.marker-token.selected.marker-evidence {
	background: #e7eef8;
	border-bottom-color: #4f7d9c;
	color: #305670;
}

.marker-token.selected.marker-vocab {
	background: #f8e5e2;
	border-bottom-color: #b0453a;
	color: #8f3027;
}

.marker-swatch.marker-fact {
	background: #2f8f56;
}

.marker-swatch.marker-opinion {
	background: #cf8a2c;
}

.marker-swatch.marker-main {
	background: #305670;
}

.marker-swatch.marker-topic {
	background: #3a6b62;
}

.marker-swatch.marker-evidence {
	background: #4f7d9c;
}

.marker-swatch.marker-vocab {
	background: #b0453a;
}

.passage-status {
	margin: 0;
	font-family: var(--mono);
	font-size: clamp(15px, 1.3vw, 18px);
	font-weight: 700;
	color: var(--muted);
}

/* Labeled equations for grammar, logic, and other compositional lessons. */
.grammar-formula {
	display: grid;
	gap: 18px;
	width: 100%;
}

.formula-lead {
	margin: 0;
	font-size: clamp(18px, 1.6vw, 24px);
	font-weight: 700;
	text-align: center;
	color: var(--muted);
}

.formula-line {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: clamp(8px, 1.15vw, 18px);
	width: 100%;
}

.formula-part,
.formula-result {
	display: grid;
	align-content: center;
	min-width: 132px;
	min-height: 128px;
	padding: 18px;
	background: white;
	border: 1px solid var(--line);
	border-top: 7px solid var(--accent);
	border-radius: 12px;
	box-shadow: 0 16px 34px rgba(33, 32, 28, 0.09);
}

.formula-part {
	flex: 1 1 150px;
	gap: 10px;
}

.formula-label {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--muted);
}

.formula-part strong,
.formula-result {
	font-family: var(--mono);
	font-size: clamp(1.45rem, 2.2vw, 2.3rem);
	line-height: 1.08;
}

.formula-subject {
	border-top-color: #269b62;
	background: #f0faf5;
}

.formula-subject strong {
	color: #167348;
}

.formula-verb {
	border-top-color: #3478d4;
	background: #f1f6fd;
}

.formula-verb strong {
	color: #245fae;
}

.formula-article {
	border-top-color: #d78a18;
	background: #fff8e9;
}

.formula-article strong {
	color: #a4610d;
}

.formula-noun {
	border-top-color: #8058c7;
	background: #f7f2ff;
}

.formula-noun strong {
	color: #6841ad;
}

.formula-neutral {
	border-top-color: #68766f;
	background: #f5f7f6;
}

.formula-operator {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	font-family: var(--mono);
	font-size: clamp(1.7rem, 2.4vw, 2.8rem);
	font-weight: 900;
	color: var(--accent);
}

.formula-result {
	flex: 0 1 180px;
	place-items: center;
	text-align: center;
	color: white;
	background: var(--dark);
	border-color: var(--dark);
}

.formula-footer {
	justify-self: center;
	max-width: 920px;
	margin: 0;
	padding: 14px 22px;
	font-size: clamp(17px, 1.45vw, 22px);
	line-height: 1.35;
	text-align: center;
	background: var(--accent-soft);
	border-left: 6px solid var(--accent);
	border-radius: 8px;
}

/* Masterminds pine: derived from the Class 5 presentation system. */
.theme-masterminds-pine {
	--dark: #15211d;
	--panel: #1e2c27;
	--paper: #ffffff;
	--ink: #172320;
	--muted: #5f6d67;
	--faint: #9aa8a2;
	--accent: #e8b23a;
	--accent-soft: #fbefcb;
	--accent-line: #ebd69e;
	--gold: #c9952a;
	--gold-soft: #fbefcb;
	--green: #1e9e5a;
	--green-soft: #f4f7f5;
	--line: #e4e0d6;
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.theme-masterminds-pine .stage,
.theme-masterminds-pine .slide-body {
	background: #ffffff;
}

.theme-masterminds-pine .title-slide {
	position: relative;
	align-items: flex-start;
	overflow: hidden;
	padding: clamp(48px, 7vw, 112px);
	background: var(--dark);
}

.theme-masterminds-pine .title-copy {
	position: relative;
	z-index: 1;
	display: block;
	width: min(1050px, 76vw);
}

.theme-masterminds-pine .title-slide .kicker {
	margin-bottom: 28px;
	font-size: clamp(13px, 1.15vw, 18px);
	letter-spacing: 0.34em;
	color: var(--accent);
}

.theme-masterminds-pine .title-slide h1 {
	max-width: 1050px;
	font-size: clamp(54px, 7vw, 98px);
	line-height: 0.94;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.theme-masterminds-pine .title-rule {
	display: block;
	width: clamp(88px, 9vw, 128px);
	height: 8px;
	margin-top: 34px;
	background: var(--accent);
}

.theme-masterminds-pine .title-slide .subtitle {
	max-width: 920px;
	margin-top: 28px;
	font-family: var(--sans);
	font-size: clamp(20px, 2vw, 29px);
	line-height: 1.4;
	color: #d7e0db;
}

.theme-masterminds-pine .title-footer {
	position: absolute;
	z-index: 1;
	left: clamp(48px, 7vw, 112px);
	bottom: clamp(34px, 5vw, 72px);
	display: block;
	max-width: 64vw;
	margin: 0;
	font-family: var(--mono);
	font-size: clamp(11px, 0.95vw, 15px);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #9aa8a2;
}

.theme-masterminds-pine .title-motif {
	position: absolute;
	top: 8%;
	right: 3%;
	display: block;
	width: min(32vw, 460px);
	height: min(72vh, 620px);
	opacity: 0.42;
}

.theme-masterminds-pine .motif-globe,
.theme-masterminds-pine .motif-stem,
.theme-masterminds-pine .motif-base {
	position: absolute;
	display: block;
	background: #222a1e;
}

.theme-masterminds-pine .motif-globe {
	inset: 0 0 auto;
	aspect-ratio: 1;
	border-radius: 50%;
}

.theme-masterminds-pine .motif-stem {
	top: 51%;
	left: 27%;
	width: 46%;
	height: 25%;
	clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

.theme-masterminds-pine .motif-base {
	top: 78%;
	left: 29%;
	width: 42%;
	height: 9%;
	border-radius: 18px;
	box-shadow: 0 58px 0 -8px #222a1e;
}

.theme-masterminds-pine .slide-header {
	min-height: 112px;
	padding: 16px clamp(26px, 4vw, 64px);
	background: var(--dark);
	border-bottom: 5px solid var(--accent);
}

.theme-masterminds-pine .slide-heading {
	gap: 20px;
}

.theme-masterminds-pine .slide-heading-icon {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	margin-bottom: 8px;
	background: var(--accent);
	border-radius: 50%;
}

.theme-masterminds-pine .slide-heading-icon::after {
	content: "";
	position: absolute;
	top: 29px;
	left: 7px;
	width: 14px;
	height: 9px;
	border-top: 4px solid var(--accent);
	border-bottom: 3px solid var(--accent);
}

.theme-masterminds-pine .slide-header .kicker {
	margin-bottom: 5px;
	font-size: clamp(11px, 0.9vw, 14px);
	letter-spacing: 0.24em;
	color: var(--accent);
}

.theme-masterminds-pine .slide-header h1 {
	font-size: clamp(27px, 3vw, 42px);
	letter-spacing: -0.025em;
}

.theme-masterminds-pine .count {
	margin: 0;
	white-space: nowrap;
	font-size: 1rem;
	color: #9aa8a2;
}

.theme-masterminds-pine .slide-body {
	--body-max: 1420px;
	--body-pad-top: clamp(26px, 4vw, 60px);
	--body-pad-inline: clamp(28px, 5vw, 76px);
}

.theme-masterminds-pine .lead {
	font-weight: 520;
	color: #23342e;
}

.theme-masterminds-pine .callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	padding: 20px 28px;
	color: var(--ink);
	background: linear-gradient(100deg, #fbefcb, #f6e3aa);
	border: 1px solid #ebd69e;
	border-left: 8px solid var(--gold);
	border-radius: 7px;
	box-shadow: none;
}

.theme-masterminds-pine .callout::before {
	content: "TIP";
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.17em;
	color: var(--gold);
}

.theme-masterminds-pine .bubble,
.theme-masterminds-pine .question-card,
.theme-masterminds-pine .split-panel,
.theme-masterminds-pine .mini-card,
.theme-masterminds-pine .info-card,
.theme-masterminds-pine .flow-step,
.theme-masterminds-pine .choice-prompt,
.theme-masterminds-pine .choice-multi .choice-item,
.theme-masterminds-pine .choice-option {
	box-shadow: none;
}

.theme-masterminds-pine .bubble,
.theme-masterminds-pine .question-card,
.theme-masterminds-pine .mini-card,
.theme-masterminds-pine .info-card,
.theme-masterminds-pine .flow-step,
.theme-masterminds-pine .choice-prompt,
.theme-masterminds-pine .choice-multi .choice-item,
.theme-masterminds-pine .choice-option {
	border-color: #e4e0d6;
}

.theme-masterminds-pine .bubble {
	border-top-color: #1f4e46;
}

.theme-masterminds-pine .layout-focus .bubble.primary {
	color: white;
	background: #1f4e46;
	border-color: #1f4e46;
}

.theme-masterminds-pine .layout-focus .bubble.primary h2 {
	color: var(--accent);
}

.theme-masterminds-pine .split-panel {
	color: white;
	background: #1f4e46;
	border-color: #1f4e46;
	border-left-color: var(--accent);
}

.theme-masterminds-pine .split-label,
.theme-masterminds-pine .info-card h2 {
	letter-spacing: 0.08em;
	color: var(--gold);
}

.theme-masterminds-pine .mini-card,
.theme-masterminds-pine .info-card {
	border-radius: 5px;
}

.theme-masterminds-pine .info-card {
	min-height: 175px;
	padding: 18px;
	border-top-color: #1f4e46;
}

.theme-masterminds-pine .layout-focus {
	min-height: min(620px, calc(100vh - 230px));
}

.theme-masterminds-pine .emphasis-note,
.theme-masterminds-pine .grid-footer,
.theme-masterminds-pine .flow-note {
	background: linear-gradient(100deg, #fbefcb, #f6e3aa);
	border-color: var(--gold);
}

.theme-masterminds-pine .flow-line {
	grid-template-columns: repeat(5, minmax(0, 1fr) auto) minmax(0, 1fr);
	gap: 10px;
}

.theme-masterminds-pine .flow-step {
	min-height: 116px;
	padding: 14px 10px;
	font-size: clamp(1rem, 1.25vw, 1.3rem);
	border-bottom: 5px solid #1f4e46;
	border-radius: 5px;
}

.theme-masterminds-pine .flow-arrow {
	font-size: 1.4rem;
	color: var(--gold);
}

.theme-masterminds-pine .choice-prompt {
	background: #fbfbf9;
	border-left: 7px solid #1f4e46;
	border-radius: 5px;
}

.theme-masterminds-pine .choice-option {
	border-radius: 5px;
}

.theme-masterminds-pine .choice-option:hover,
.theme-masterminds-pine .choice-option:focus-visible {
	background: #fffaf0;
	border-left-color: var(--accent);
}

.theme-masterminds-pine .choice-marker.marker-vocab {
	background: #fbefcb;
	border-bottom-color: var(--gold);
	color: #6a4a05;
}

.theme-masterminds-pine .choice-option.good {
	color: #14492f;
	background: #e8f5ed;
	border-color: #9fd2b3;
	border-left-color: var(--green);
}

.theme-masterminds-pine .choice-option.bad {
	color: #792d29;
	background: #faece9;
	border-color: #e8bbb5;
	border-left-color: var(--red);
}

.theme-masterminds-pine .choice-explain {
	color: #5d430b;
	background: #fbefcb;
	border-left-color: var(--gold);
}

.theme-masterminds-pine .deck-nav {
	background: rgba(21, 33, 29, 0.94);
	border: 1px solid rgba(232, 178, 58, 0.34);
	border-radius: 6px;
	box-shadow: 0 10px 32px rgba(21, 33, 29, 0.2);
}

.theme-masterminds-pine .deck-nav a {
	background: rgba(232, 178, 58, 0.12);
}

.theme-masterminds-pine .deck-nav strong {
	color: var(--accent);
}

/* Grammar Class 1: section-led variant of the pine presentation system. */
.theme-masterminds-pine[data-deck-id="grammar-1"] {
	--section-dark: #14251f;
	--lesson-wash: rgba(232, 178, 58, 0.12);
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-section="Opening"] {
	--accent: #e8b23a;
	--accent-soft: #fff5d8;
	--gold: #bd8414;
	--gold-soft: #fff5d8;
	--section-dark: #252311;
	--lesson-wash: rgba(232, 178, 58, 0.15);
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-section="The Sentence"] {
	--accent: #35b779;
	--accent-soft: #e9f9f0;
	--gold: #168052;
	--gold-soft: #e9f9f0;
	--section-dark: #10291e;
	--lesson-wash: rgba(53, 183, 121, 0.14);
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-section="To Be"] {
	--accent: #5797f2;
	--accent-soft: #eaf2ff;
	--gold: #2c6fcf;
	--gold-soft: #eaf2ff;
	--section-dark: #132a45;
	--lesson-wash: rgba(87, 151, 242, 0.14);
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-section="Articles"] {
	--accent: #f0a52f;
	--accent-soft: #fff3dc;
	--gold: #c47509;
	--gold-soft: #fff3dc;
	--section-dark: #33220b;
	--lesson-wash: rgba(240, 165, 47, 0.15);
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-section="Put It Together"] {
	--accent: #9a7ae8;
	--accent-soft: #f1edff;
	--gold: #7654c7;
	--gold-soft: #f1edff;
	--section-dark: #241a3d;
	--lesson-wash: rgba(154, 122, 232, 0.14);
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-section="Student-Led Workshop"] {
	--accent: #38bfb0;
	--accent-soft: #e7f9f6;
	--gold: #16887c;
	--gold-soft: #e7f9f6;
	--section-dark: #102c29;
	--lesson-wash: rgba(56, 191, 176, 0.14);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .stage {
	background: #f7faf8;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .title-slide {
	background-color: #10211b;
	background-image:
		radial-gradient(circle at 78% 28%, rgba(53, 183, 121, 0.18), transparent 27%),
		radial-gradient(circle at 86% 72%, rgba(87, 151, 242, 0.15), transparent 23%),
		linear-gradient(rgba(232, 178, 58, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(232, 178, 58, 0.035) 1px, transparent 1px);
	background-size: auto, auto, 40px 40px, 40px 40px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .title-copy {
	width: min(930px, 68vw);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .title-slide h1 {
	max-width: 860px;
	font-size: clamp(58px, 7.4vw, 108px);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .title-slide .subtitle {
	max-width: 900px;
	font-size: clamp(19px, 1.7vw, 25px);
	text-wrap: balance;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .title-motif {
	top: 12%;
	right: 5%;
	width: min(31vw, 440px);
	height: min(70vh, 580px);
	opacity: 1;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-globe,
.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-stem,
.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-base {
	display: grid;
	place-items: center;
	color: white;
	background: rgba(20, 37, 31, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-globe {
	inset: 0 0 auto;
	height: 44%;
	aspect-ratio: auto;
	border-top: 8px solid #35b779;
	border-radius: 18px;
	transform: rotate(3deg);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-globe::before {
	content: "S + V";
	font-family: var(--mono);
	font-size: clamp(3rem, 6vw, 5.8rem);
	font-weight: 900;
	letter-spacing: -0.08em;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-globe::after {
	content: "SENTENCE";
	position: absolute;
	bottom: 24px;
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.28em;
	color: #8edbb3;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-stem {
	top: 51%;
	left: 8%;
	width: 92%;
	height: 15%;
	clip-path: none;
	border-top: 7px solid #5797f2;
	border-radius: 14px;
	transform: rotate(-2deg);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-stem::after {
	content: "am  ·  is  ·  are";
	font-family: var(--mono);
	font-size: clamp(1.1rem, 2vw, 1.65rem);
	font-weight: 800;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-base {
	top: 72%;
	left: 17%;
	width: 83%;
	height: 14%;
	border-top: 7px solid #f0a52f;
	border-radius: 14px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
	transform: rotate(2deg);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .motif-base::after {
	content: "a  ·  an  ·  the";
	font-family: var(--mono);
	font-size: clamp(1.1rem, 2vw, 1.65rem);
	font-weight: 800;
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-slide-no="30"] .motif-globe {
	border-top-color: #9a7ae8;
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-slide-no="30"] .motif-globe::before {
	content: "A+";
}

.theme-masterminds-pine[data-deck-id="grammar-1"][data-slide-no="30"] .motif-globe::after {
	content: "CLASS 1 COMPLETE";
	color: #c8b8f3;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-frame {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 92% 13%, var(--lesson-wash), transparent 26%),
		linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-frame::after {
	content: attr(data-section);
	position: absolute;
	right: -0.04em;
	bottom: -0.12em;
	z-index: 0;
	font-family: var(--mono);
	font-size: clamp(4.5rem, 10vw, 10rem);
	font-weight: 900;
	letter-spacing: -0.08em;
	text-transform: uppercase;
	color: var(--lesson-wash);
	pointer-events: none;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-header {
	position: relative;
	z-index: 2;
	background:
		linear-gradient(105deg, var(--section-dark) 0%, #15211d 72%),
		var(--dark);
	border-bottom-color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-heading-icon {
	background: var(--accent);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-heading-icon::after {
	border-color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-header .kicker {
	color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .count {
	padding: 7px 11px;
	color: white;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-body {
	position: relative;
	z-index: 1;
	--body-gap: clamp(18px, 2.2vw, 30px);
	background: transparent;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .body-content-formula {
	--body-gap: 22px;
	--body-pad-top: 30px;
	--body-pad-bottom: 84px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .body-bubbles {
	--body-gap: 20px;
	--body-pad-top: 24px;
	--body-pad-bottom: 84px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .lead {
	max-width: 1050px;
	font-size: clamp(1.35rem, 2.1vw, 2rem);
	line-height: 1.32;
	text-align: center;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .info-card-grid {
	counter-reset: grammar-card;
	gap: clamp(16px, 2vw, 26px);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .info-card-grid.cards-many:has(> .info-card:nth-child(6):last-of-type) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 1120px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .info-card {
	position: relative;
	counter-increment: grammar-card;
	min-height: 164px;
	padding: 24px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(23, 35, 32, 0.12);
	border-top: 8px solid var(--accent);
	border-radius: 14px;
	box-shadow: 0 18px 42px rgba(21, 33, 29, 0.09);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .info-card::after {
	content: "0" counter(grammar-card);
	position: absolute;
	right: 16px;
	bottom: 8px;
	font-family: var(--mono);
	font-size: 2.7rem;
	font-weight: 900;
	color: var(--lesson-wash);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .info-card h2 {
	position: relative;
	z-index: 1;
	font-size: clamp(1.2rem, 1.7vw, 1.65rem);
	color: var(--gold);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .info-card p {
	position: relative;
	z-index: 1;
	font-family: var(--mono);
	font-size: clamp(1.05rem, 1.4vw, 1.3rem);
	line-height: 1.42;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .grid-footer,
.theme-masterminds-pine[data-deck-id="grammar-1"] .flow-note,
.theme-masterminds-pine[data-deck-id="grammar-1"] .formula-footer {
	background: var(--accent-soft);
	border-left-color: var(--accent);
	box-shadow: 0 10px 26px rgba(21, 33, 29, 0.06);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .flow-line {
	grid-template-columns: repeat(2, minmax(0, 1fr) auto) minmax(0, 1fr);
	max-width: 980px;
	margin-inline: auto;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .flow-step {
	min-height: 126px;
	background: white;
	border: 1px solid rgba(23, 35, 32, 0.12);
	border-bottom: 7px solid var(--accent);
	border-radius: 14px;
	box-shadow: 0 16px 36px rgba(21, 33, 29, 0.08);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .flow-arrow {
	color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .callout {
	background: var(--accent-soft);
	border-color: var(--accent);
	border-left-color: var(--accent);
	border-radius: 12px;
	box-shadow: 0 14px 32px rgba(21, 33, 29, 0.07);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .callout::before {
	content: "BUILD";
	color: var(--gold);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .bubble {
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(23, 35, 32, 0.12);
	border-top: 8px solid var(--accent);
	border-radius: 16px;
	box-shadow: 0 18px 42px rgba(21, 33, 29, 0.09);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .bubble h2 {
	font-family: var(--mono);
	color: var(--gold);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .layout-focus {
	min-height: min(560px, calc(100vh - 360px));
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .layout-focus .bubble.primary {
	background:
		radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.09), transparent 28%),
		var(--section-dark);
	border-color: var(--section-dark);
	border-top-color: var(--accent);
	box-shadow: 0 24px 54px rgba(21, 33, 29, 0.18);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .layout-focus .bubble.primary h2 {
	font-size: clamp(3.4rem, 6vw, 6.5rem);
	letter-spacing: -0.06em;
	color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .layout-focus .bubble.primary p {
	max-width: 520px;
	font-size: clamp(1.3rem, 2vw, 2rem);
	line-height: 1.25;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-prompt,
.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-multi .choice-item {
	border-color: rgba(23, 35, 32, 0.12);
	border-radius: 14px;
	box-shadow: 0 16px 38px rgba(21, 33, 29, 0.08);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-prompt {
	background: rgba(255, 255, 255, 0.96);
	border-left: 8px solid var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-single .choice-options {
	counter-reset: grammar-choice;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-single .choice-option {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	counter-increment: grammar-choice;
	min-height: 66px;
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(21, 33, 29, 0.05);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-single .choice-option::before {
	content: counter(grammar-choice, upper-alpha);
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	font-size: 0.86rem;
	font-weight: 900;
	color: var(--section-dark);
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: 50%;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-option:hover,
.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-option:focus-visible {
	background: var(--accent-soft);
	border-left-color: var(--accent);
	transform: translateY(-1px);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-multi .choice-prompt {
	background: var(--accent-soft);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-multi .choice-options:has(> .choice-option:nth-child(4):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-card {
	border-color: rgba(23, 35, 32, 0.12);
	border-radius: 16px;
	box-shadow: 0 20px 46px rgba(21, 33, 29, 0.11);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-cover {
	background:
		linear-gradient(145deg, var(--section-dark), #15211d);
	border-top: 8px solid var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-cover span {
	color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-card.revealed {
	border-top-color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-grid.reveal-text.reveal-many {
	gap: 12px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-grid.reveal-text.reveal-many .reveal-card,
.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-grid.reveal-text.reveal-many .reveal-card.text-only .reveal-copy {
	min-height: 140px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-grid.reveal-text.reveal-many .reveal-cover {
	padding: 18px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .reveal-grid.reveal-text.reveal-many .reveal-cover strong {
	font-size: clamp(1.8rem, 3.4vw, 3.4rem);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-note {
	justify-self: start;
	width: auto;
	max-width: 100%;
	padding: 12px 18px;
	font-size: clamp(1rem, 1.35vw, 1.25rem);
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(23, 35, 32, 0.1);
	border-left: 6px solid var(--accent);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(21, 33, 29, 0.05);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .grammar-formula {
	padding: clamp(18px, 2.2vw, 30px);
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(23, 35, 32, 0.1);
	border-radius: 18px;
	box-shadow: 0 20px 46px rgba(21, 33, 29, 0.08);
	backdrop-filter: blur(8px);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .formula-part,
.theme-masterminds-pine[data-deck-id="grammar-1"] .formula-result {
	border-radius: 14px;
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .formula-result {
	background: var(--section-dark);
	border-color: var(--section-dark);
	border-top-color: var(--accent);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .deck-nav {
	border-color: var(--accent);
	box-shadow: 0 12px 34px rgba(21, 33, 29, 0.25);
}

.theme-masterminds-pine[data-deck-id="grammar-1"] .deck-nav strong {
	color: var(--accent);
}

@media (max-width: 1100px) {
	.formula-line {
		flex-wrap: wrap;
	}

	.formula-part {
		flex-basis: 180px;
	}
}

@media (min-width: 821px) {
	.slide-frame {
		height: 100vh;
		min-height: 0;
		overflow: hidden;
	}

	.slide-body {
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

@media (max-width: 820px) {
	.theme-masterminds-pine[data-deck-id="grammar-1"] .layout-focus {
		min-height: 0;
	}

	.theme-masterminds-pine[data-deck-id="grammar-1"] .flow-line,
	.theme-masterminds-pine[data-deck-id="grammar-1"] .info-card-grid.cards-many:has(> .info-card:nth-child(6):last-of-type),
	.theme-masterminds-pine[data-deck-id="grammar-1"] .choice-multi .choice-options:has(> .choice-option:nth-child(4):last-child) {
		grid-template-columns: 1fr;
		max-width: 100%;
	}

	.formula-line {
		display: grid;
		grid-template-columns: 1fr;
	}

	.formula-part,
	.formula-result {
		width: 100%;
		min-height: 104px;
	}

	.formula-operator {
		min-height: 28px;
	}

	.theme-masterminds-pine[data-deck-id="grammar-1"] .title-copy {
		width: 100%;
	}

	.theme-masterminds-pine[data-deck-id="grammar-1"] .title-motif {
		right: -34%;
		width: 72vw;
		opacity: 0.22;
	}

	.theme-masterminds-pine[data-deck-id="grammar-1"] .slide-frame::after {
		right: -0.08em;
		font-size: 5rem;
	}

	.theme-masterminds-pine[data-deck-id="grammar-1"] .grammar-formula {
		padding: 16px;
	}

	.layout-focus,
	.theme-masterminds-pine .layout-focus {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.layout-focus .bubble.primary {
		min-height: 220px;
	}

	.focus-grid .sub-bubbles,
	.layout-grid.grid-two,
	.layout-grid.grid-balanced {
		grid-template-columns: 1fr;
	}

	.content-split,
	.cards-split,
	.info-card-grid,
	.info-card-grid.cards-two,
	.info-card-grid.cards-three,
	.info-card-grid.cards-four,
	.flow-line {
		grid-template-columns: 1fr;
	}

	.blueprint-rooms {
		grid-template-columns: 1fr;
	}

	.blueprint-rooms::before,
	.blueprint-rooms::after {
		display: none;
	}

	.blueprint-footer {
		max-width: 100%;
		margin-bottom: 48px;
	}

	.split-panel {
		min-height: 0;
	}

	.split-title {
		font-size: 2.35rem;
	}

	.mini-card-grid {
		grid-template-columns: 1fr;
	}

	.body-content-grid .bullets {
		grid-template-columns: 1fr;
	}

	.flow-arrow {
		justify-self: center;
		transform: rotate(90deg);
	}

	.choice-lead {
		font-size: 1.35rem;
	}

	.choice-prompt,
	.choice-option {
		font-size: 1rem;
	}

	.choice-multi .choice-item {
		grid-template-columns: 1fr;
	}

	.choice-multi .choice-options {
		grid-template-columns: 1fr;
	}

	.choice-multi .choice-feedback {
		grid-column: 1;
	}

	.choice-audio-panel {
		top: 6px;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.classification-row {
		grid-template-columns: 1fr;
	}

	.classification-options {
		justify-content: stretch;
	}

	.classification-option {
		flex: 1 1 110px;
	}

	.reveal-grid.reveal-text.reveal-many {
		grid-template-columns: 1fr;
	}

	.theme-masterminds-pine .title-copy {
		width: 100%;
	}

	.theme-masterminds-pine .title-motif {
		right: -22%;
		width: 64vw;
		opacity: 0.2;
	}

	.theme-masterminds-pine .title-footer {
		max-width: calc(100vw - 96px);
	}

	.theme-masterminds-pine .slide-header {
		min-height: 96px;
	}

	.theme-masterminds-pine .slide-heading-icon {
		display: none;
	}

	.theme-masterminds-pine .callout {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

.slide-tips-dialog {
	inset: 0;
	width: min(620px, calc(100vw - 32px));
	max-width: none;
	max-height: min(76vh, 680px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 7px solid var(--accent);
	border-radius: 18px;
	box-shadow: 0 28px 90px rgba(18, 28, 24, 0.35);
}

.slide-tips-dialog::backdrop {
	background: rgba(13, 24, 20, 0.62);
	backdrop-filter: blur(5px);
}

.tips-window {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	max-height: min(76vh, 680px);
}

.tips-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 26px 20px;
	background: color-mix(in srgb, var(--accent-soft) 72%, white);
	border-bottom: 1px solid var(--line);
}

.tips-header h2,
.tips-header p {
	margin: 0;
}

.tips-header h2 {
	font-size: clamp(2rem, 5vw, 3.1rem);
	line-height: 1;
}

.tips-eyebrow {
	margin-bottom: 8px !important;
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.tips-context {
	margin-top: 8px !important;
	color: var(--muted);
}

.tips-close {
	padding: 8px 12px;
	font: 700 0.9rem/1 var(--mono);
	color: var(--ink);
	background: white;
	border: 1px solid var(--line);
	border-radius: 7px;
	cursor: pointer;
}

.tips-close:hover,
.tips-close:focus-visible {
	border-color: var(--accent);
	outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent);
	outline-offset: 2px;
}

.tips-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 22px 26px 26px;
	overflow: auto;
	list-style: none;
	counter-reset: slide-tip;
}

.tips-list li {
	position: relative;
	min-height: 54px;
	padding: 15px 18px 15px 58px;
	font-size: clamp(1rem, 2.2vw, 1.18rem);
	line-height: 1.42;
	background: white;
	border: 1px solid var(--line);
	border-left: 5px solid var(--accent);
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(21, 33, 29, 0.07);
	counter-increment: slide-tip;
}

.tips-list li::before {
	position: absolute;
	top: 14px;
	left: 16px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	content: counter(slide-tip, decimal-leading-zero);
	font: 800 0.72rem/1 var(--mono);
	color: white;
	background: var(--accent);
	border-radius: 50%;
}

.deck-nav {
	position: fixed;
	z-index: 100;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	background: rgba(33, 32, 28, 0.82);
	color: white;
	border-radius: 8px;
}

.deck-nav a,
.deck-nav button,
.deck-nav span,
.deck-nav strong {
	padding: 6px 10px;
}

.deck-nav a {
	text-decoration: none;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
}

.deck-nav .tips-trigger {
	padding: 6px 10px;
	font: inherit;
	color: white;
	background: var(--accent);
	border: 1px solid color-mix(in srgb, var(--accent) 72%, white);
	border-radius: 6px;
	cursor: pointer;
}

.deck-nav .tips-trigger:hover,
.deck-nav .tips-trigger:focus-visible {
	background: color-mix(in srgb, var(--accent) 82%, black);
	outline: 2px solid white;
	outline-offset: 2px;
}

.deck-nav span {
	color: #817b70;
}

@media (max-width: 480px) {
	.deck-nav {
		gap: 4px;
		bottom: 12px;
		padding: 6px 8px;
	}

	.deck-nav a,
	.deck-nav button,
	.deck-nav span,
	.deck-nav strong {
		padding: 6px 7px;
		white-space: nowrap;
	}

	.slide-tips-dialog {
		width: calc(100vw - 24px);
		max-height: min(82vh, 680px);
		border-radius: 14px;
	}

	.tips-window {
		max-height: min(82vh, 680px);
	}

	.tips-header {
		padding: 20px 18px 16px;
	}

	.tips-list {
		padding: 16px 18px 20px;
	}

	.tips-list li {
		padding: 14px 14px 14px 52px;
	}
}

/* Global shift-click definition popup */

.defcard {
	position: fixed;
	z-index: 200;
	width: 340px;
	max-height: 70vh;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--line);
	border-left: 6px solid var(--gold);
	border-radius: 12px;
	padding: 16px 18px 12px;
	box-shadow: 0 18px 50px rgba(29, 28, 25, 0.32);
	animation: defcard-pop 0.14s ease-out;
}

@keyframes defcard-pop {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.defcard-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.defcard-word {
	font-family: var(--mono);
	font-size: 22px;
	font-weight: 800;
	color: var(--ink);
}

.defcard-phonetic {
	font-family: var(--mono);
	font-size: 14px;
	color: var(--muted);
}

.defcard-pos {
	margin-right: 8px;
	font-family: var(--mono);
	font-size: 13px;
	font-style: italic;
	color: var(--muted);
}

.defcard-def {
	margin-top: 9px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--ink);
}

.defcard-spanish {
	margin-top: 11px;
	font-size: 16px;
	color: var(--accent);
}

.defcard-spanish b {
	font-family: var(--mono);
	font-weight: 700;
}

.defcard-hint {
	margin-top: 12px;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--faint);
}
