:root {
  --paper: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #18202B;
  --ink-soft: #354052;
  --muted: #667181;
  --pale-ink: #667181;
  --rule: #D4DCE7;
  --content-navy: #465D87;
  --content-lavender: #7354A2;
  --blue-wash: #E7EEF9;
  --red: #B84430;
  --red-wash: #FAEAE6;
  --green: #2B745D;
  --green-wash: #E3F0EB;
  --title-navy: #202A44;
  --title-lavender: #D6B8FF;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --slide-heading-size: 5cqw;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #111720; color: var(--ink); font-family: var(--sans); }
button, a { font: inherit; }
:focus-visible { outline: 3px solid #7CA5EC; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .65rem 1rem; background: white; color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.deck { container-type: inline-size; width: min(calc(100dvh * 16 / 9), calc(100vw - 2rem)); height: min(100dvh, calc((100vw - 2rem) * 9 / 16)); margin: 0 auto; position: relative; overflow: hidden; background: var(--surface); }
/* Canvas-relative sizes: at 1280 × 720, body 28.8px (21.6pt), tables 28.2px, headings 64px. */
.slide { display: none; position: absolute; inset: 0; padding: 5cqw 6cqw; line-height: 1.3; background: var(--surface); overflow: hidden; }
.slide.is-active { display: flex; flex-direction: column; }
.slide::before { content: ""; position: absolute; z-index: 2; left: 6cqw; right: 6cqw; top: 3cqw; height: 1px; background: var(--rule); pointer-events: none; }
.layout-no-top-rule::before { display: none; }
.slide-brand { position: absolute; top: 3.8cqw; left: 6cqw; width: 4cqw; height: auto; }
.slide-content { width: 100%; min-width: 0; flex-shrink: 0; margin-block: auto; }
.slide-kicker { margin: 0 0 1.4cqw; color: var(--content-lavender); font-size: 1.6cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.slide h1 { max-width: none; margin: 0; color: var(--content-navy); font-family: var(--serif); font-size: var(--slide-heading-size); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: wrap; white-space: normal; }
.slide .katex { font-size: 1em; }
.slide-subtitle { max-width: 46ch; margin: 2cqw 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 3cqw; line-height: 1.28; }
.slide-subtitle .pale { color: var(--pale-ink); }
.type-title { background: var(--title-navy); color: white; }
.type-title::before { background: rgba(255,255,255,.35); }
.type-title .slide-kicker { color: var(--title-lavender); }
.type-title .slide-subtitle { color: white; }
.type-title h1 { color: white; max-width: none; font-size: 6.25cqw; line-height: 1; }
.type-title .slide-content { padding-top: 2cqw; }
.type-divider .slide-content { width: 100%; margin-left: 0; }
.type-divider h1 { max-width: none; color: var(--content-navy); white-space: normal; }
.type-divider .slide-subtitle { max-width: none; }
.type-divider.layout-aggregation-intro { background: var(--blue-wash); }
.type-divider.layout-aggregation-intro .slide-subtitle { display: none; }
.type-divider h1, .type-principle h1, .type-split h1, .type-equations h1, .type-question h1, .type-steps h1 { font-size: var(--slide-heading-size); }
.slide-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5cqw; margin-top: 3cqw; }
.slide-split > div { min-width: 0; padding: 1cqw 0; }
.layout-aligned-outcomes .slide-split > div { display: grid; grid-template-rows: auto 1fr auto; }
.layout-ordinary-giffen .slide-split, .layout-normal-inferior .slide-split, .layout-medication-producers .slide-split { margin-top: 0; }
.layout-ordinary-giffen .slide-split > div, .layout-normal-inferior .slide-split > div, .layout-medication-producers .slide-split > div { display: flex; flex-direction: column; }
.layout-ordinary-giffen .slide-split strong, .layout-normal-inferior .slide-split strong, .layout-medication-producers .slide-split strong { margin-top: auto; padding-top: 1.5cqw; }
.slide-split > div > span { font-size: 1.6cqw; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.slide-split .buyer span, .slide-split .buyer strong { color: var(--content-navy); }
.slide-split .seller span, .slide-split .seller strong { color: var(--red); }
.slide-split p { max-width: none; color: var(--ink-soft); font-family: var(--serif); margin: 1.2cqw 0; font-size: 2.25cqw; line-height: 1.35; white-space: normal; }
.slide-split strong { display: block; margin-top: 1.5cqw; font-family: var(--serif); font-size: 2.7cqw; line-height: 1.2; }
.type-question { background: var(--blue-wash); }
.type-question h1 { color: var(--content-navy); }
.type-question .slide-subtitle { max-width: none; color: var(--content-navy); }
.slide-prompt { margin-top: 2cqw; color: var(--green); font-family: var(--serif); font-size: 2.25cqw; font-weight: 800; }
.type-answer { background: var(--green-wash); }
.type-answer h1, .type-answer .slide-kicker { color: var(--green); }
.type-poll { background: var(--blue-wash); }
.type-poll h1 { color: var(--content-navy); }
.poll-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 5cqw; align-items: center; }
.poll-qr { display: block; width: 100%; max-width: 30cqw; aspect-ratio: 1; justify-self: end; background: white; }
.layout-mentimeter-join .embed-qr { padding: 1.1cqw; }
.type-embed { padding-top: 4.5cqw; padding-bottom: 4.5cqw; background: var(--blue-wash); }
.type-embed .slide-content { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: 3cqw; align-items: stretch; height: 100%; margin-block: 0; }
.type-embed h1 { color: var(--content-navy); font-size: 3.5cqw; line-height: 1.06; }
.embed-heading { min-width: 0; align-self: center; }
.embed-heading > p:not(.slide-kicker) { max-width: 20ch; color: var(--ink-soft); font-family: var(--serif); font-size: 2cqw; line-height: 1.35; }
.embed-qr { display: block; width: 11cqw; aspect-ratio: 1; margin-top: 1.5cqw; padding: .4cqw; border: 1px solid var(--rule); background: white; object-fit: contain; }
.embed-frame { display: flex; min-width: 0; min-height: 0; flex-direction: column; gap: .6cqw; }
.embed-viewport { position: relative; min-width: 0; min-height: 0; flex: 1; }
.menti-logo-cover { position: absolute; z-index: 2; top: 12.5%; right: 1%; width: 11%; height: 5%; background: #1D1F25; pointer-events: none; }
.poll-embed { display: block; width: 100%; height: 100%; min-height: 0; border: 1px solid var(--rule); background: white; }
.poll-embed-fallback { align-self: flex-end; color: var(--content-navy); font-size: 1.6cqw; font-weight: 800; }
.type-explorer { padding: 3.5cqw 2cqw 3cqw; background: var(--surface); }
.type-explorer.layout-maya-choice, .type-explorer.layout-supply-explorer, .type-explorer.layout-aggregate-demand, .type-explorer.layout-market-supply, .type-explorer.layout-medication-market-supply { padding-top: 4cqw; padding-bottom: 1cqw; }
.type-explorer.layout-maya-choice, .type-explorer.layout-supply-explorer { padding-inline: 6cqw; }
.type-explorer.layout-aggregate-demand, .type-explorer.layout-market-supply, .type-explorer.layout-medication-market-supply { padding-inline: 6cqw; }
.type-explorer.layout-aggregate-demand .slide-content { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .5cqw; min-height: 0; }
.type-explorer.layout-aggregate-demand .slide-kicker { margin: 0; }
.type-explorer.layout-aggregate-demand .explorer-embed { min-height: 0; }
.type-explorer.layout-market-supply .slide-content { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .5cqw; min-height: 0; }
.type-explorer.layout-market-supply .slide-kicker { margin: 0; }
.type-explorer.layout-market-supply .explorer-embed { min-height: 0; }
.type-explorer.layout-medication-market-supply .slide-content { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .5cqw; min-height: 0; }
.type-explorer.layout-medication-market-supply .slide-kicker { margin: 0; }
.type-explorer.layout-medication-market-supply .explorer-embed { min-height: 0; }
.type-explorer.layout-price-adjustment .slide-kicker { margin-inline: 4cqw; }
.type-explorer.layout-rule-aligned-kicker { padding-inline: 6cqw; }
.type-explorer.layout-rule-aligned-kicker .slide-kicker { margin-left: 0; }
.type-explorer.layout-rule-aligned-kicker .slide-content { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .5cqw; min-height: 0; }
.type-explorer.layout-rule-aligned-kicker .explorer-embed { min-height: 0; }
.type-explorer.layout-maya-choice .slide-content, .type-explorer.layout-supply-explorer .slide-content { display: flex; align-items: center; justify-content: center; }
.type-explorer.layout-maya-choice .explorer-embed, .type-explorer.layout-supply-explorer .explorer-embed { width: 100%; height: 96%; }
.type-explorer .slide-content { width: 100%; height: 100%; margin: 0; }
.explorer-embed { display: block; width: 100%; height: 100%; border: 0; background: var(--surface); }
.type-principle h1, .type-split h1, .type-equations h1 { color: var(--content-navy); }
.type-principle .slide-subtitle { max-width: 42ch; }
.type-steps h1 { color: var(--content-navy); }
.slide-steps { margin: 2cqw 0 0; padding: 0; list-style: none; counter-reset: step; }
.slide-steps li { counter-increment: step; display: grid; grid-template-columns: 4cqw 1fr; padding: 1cqw 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 2.5cqw; line-height: 1.3; }
.slide-steps li::before { content: counter(step, decimal-leading-zero); color: var(--content-navy); }
.slide-steps .step-heading { color: var(--red); }
.slide-equations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4cqw; margin-top: 2.5cqw; }
.slide-equations div { min-width: 0; }
.type-equations h1 { color: var(--content-navy); }
.type-equations .slide-equations { border: 0; }
.type-equations .slide-equations > div { padding: 0; border: 0; }
.slide-equations > div > span { display: block; color: var(--muted); font-size: 1.6cqw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.slide-equations strong { display: block; margin: 0; color: var(--content-navy); font-family: var(--serif); font-size: 3.2cqw; font-weight: 600; line-height: 1.3; }
.layout-shutdown-threshold .slide-equations { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; gap: 5cqw; margin-top: 1.2cqw; }
.layout-shutdown-threshold .slide-equations > div:first-child strong { font-size: 2.6cqw; line-height: 1.1; }
.layout-shutdown-threshold .slide-equations > div:not(:first-child) { transform: translateY(2em); }
.layout-shutdown-threshold .slide-equations > div:not(:first-child) strong { font-size: 2.6cqw; text-align: right; }
.layout-optimal-quantity .slide-equations { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 5cqw; }
.layout-optimal-quantity .slide-equations > div:last-child strong { text-align: right; }
.layout-producer-threshold .slide-equations { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 4cqw; margin-top: 1.5cqw; }
.layout-producer-threshold .slide-equations strong { font-size: 2.35cqw; }
.layout-producer-threshold .slide-note { margin-top: 1.25cqw; font-size: 1.8cqw; }
.layout-producer-threshold-derivation .slide-equations { margin-top: 1.2cqw; }
.layout-producer-threshold-derivation .slide-equations strong { font-size: 2.35cqw; text-align: center; }
.layout-producer-threshold-derivation .slide-note { margin-top: 1cqw; font-size: 1.8cqw; text-align: center; }
.layout-producer-threshold-supply .slide-equations { margin-top: 2cqw; justify-items: center; }
.layout-producer-threshold-supply .slide-equations strong { font-size: 3cqw; text-align: center; }
.layout-producer-threshold-supply .slide-note { margin-top: 1.4cqw; font-size: 1.9cqw; text-align: center; }
.layout-producer-groups .slide-equations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5cqw; }
.layout-producer-groups .slide-equations > div:last-child strong { text-align: right; }
.layout-producer-groups .slide-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5cqw; }
.layout-producer-groups .slide-definitions p:last-child { text-align: right; }
.layout-auto-eco-supply-formula .slide-equations { width: 100%; justify-items: center; margin-top: 2.5cqw; }
.layout-auto-eco-supply-formula .slide-equations strong { text-align: center; }
.layout-auto-eco-equilibrium .slide-equations { gap: 2.2cqw; }
.layout-auto-eco-equilibrium .slide-equations > div:last-child strong { text-align: center; }
.layout-lac-exercise .slide-equations > div:first-child strong { text-align: center; }
.layout-medication-market-supply-formula h1 { max-width: none; font-size: 4.35cqw; line-height: 1; }
.layout-medication-market-supply-formula .slide-equations { width: 100%; justify-items: center; margin-top: 1.2cqw; }
.layout-medication-market-supply-formula .slide-equations strong { font-size: 2.65cqw; text-align: center; }
.slide-definitions { margin-top: 2cqw; color: var(--ink-soft); font-family: var(--serif); font-size: 2.25cqw; line-height: 1.3; }
.slide-definitions p { margin: .6cqw 0 0; }
.slide aside.notes { display: none; }
.title-accent { color: var(--red); }
.slide-definition-box { margin: 3cqw 0 0; padding: 1.4cqw 2cqw; border-left: .5cqw solid var(--green); background: var(--green-wash); color: var(--ink); font-family: var(--serif); font-size: 2.1cqw; line-height: 1.35; }
.slide-definition-box strong { color: var(--green); }
.layout-question-game { background: var(--blue-wash); }
.slide-body.game-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: center; }
.slide-body.game-inset { position: relative; }
.slide-body.game-inset .matrix-embed + .matrix-embed { position: absolute; top: -12cqw; right: -2cqw; width: 38cqw; height: 17cqw; margin: 0; }
.show-notes .slide aside.notes { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 40%; overflow: auto; padding: 1.4cqw 6cqw; background: rgba(255, 251, 230, .97); border-top: .25cqw solid #e0c45c; color: #3a3320; font-family: var(--sans); font-size: 1.6cqw; line-height: 1.4; }
.show-notes .slide aside.notes::before { content: "Speaker notes"; display: block; margin-bottom: .4cqw; font-size: 1.1cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a7428; }
.show-notes .slide aside.notes p { margin: 0 0 .5cqw; }
@media print { .show-notes .slide aside.notes { display: none; } }
.slide-number { position: absolute; right: 1.4cqw; bottom: 1.1cqw; z-index: 4; color: rgba(70, 93, 135, .16); font-family: var(--sans); font-size: 1.15cqw; font-weight: 700; line-height: 1; user-select: none; }
.slide-note { margin: 2cqw 0 0; color: var(--green); font-family: var(--serif); font-size: 2.1cqw; font-weight: 600; line-height: 1.3; }
.layout-ordinary-giffen .slide-body > .slide-note { width: calc((100% - 5cqw) / 2); margin-left: auto; }
.type-equations .slide-note, .type-question .slide-prompt, .slide-table.exchange-matrix + .slide-note, .slide-table.option-comparison + .slide-note { margin-top: 2cqw; color: var(--green); font-family: var(--serif); font-size: 2.1cqw; font-weight: 600; }
.type-question .slide-prompt { padding-top: 0; border-top: 0; }
.type-case h1, .type-table h1 { font-size: var(--slide-heading-size); }
.type-case h1 { color: var(--content-navy); }
.type-table h1 { max-width: none; white-space: normal; }
.slide-body { margin-top: 2cqw; }
.slide-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4cqw; }
.slide-case-grid > div { min-width: 0; padding: 1cqw 0; }
.slide-case-grid span { display: block; color: var(--content-navy); font-size: 1.6cqw; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.slide-case-grid strong { display: block; margin-top: 1cqw; font-family: var(--serif); font-size: 3.2cqw; }
.slide-case-grid p, .slide-list p { color: var(--ink-soft); font-family: var(--serif); font-size: 2.25cqw; line-height: 1.3; }
.slide-list { border-top: 1px solid var(--rule); }
.slide-list p { margin: 0; padding: 1cqw 0; border-bottom: 1px solid var(--rule); }
.layout-no-top-rule .slide-list { border-top: 0; }
.layout-long-run-equilibrium-definition .slide-list { border-top: 0; }
.layout-long-run-equilibrium-definition .equilibrium-definition { padding: 1cqw 0; border-bottom: 1px solid var(--rule); color: var(--green); font-family: var(--serif); font-size: 2.25cqw; line-height: 1.3; }
.layout-long-run-equilibrium-definition .equilibrium-definition-lead { font-weight: 700; }
.layout-long-run-equilibrium-definition .equilibrium-definition ol { margin: .55cqw 0 0; padding-left: 2.5cqw; }
.layout-long-run-equilibrium-definition .equilibrium-definition li + li { margin-top: .35cqw; }
.layout-auto-eco-market .slide-list { border-top: 0; }
.layout-auto-eco-costs .slide-list { border-top: 0; }
.layout-auto-eco-costs .slide-list p:first-child { text-align: center; }
.layout-auto-eco-supply-overlay .slide-equations:empty { display: none; }
.slide.layout-auto-eco-supply-overlay { padding-top: 4cqw; }
.layout-auto-eco-supply-overlay .slide-content { margin-block: 0; }
.layout-auto-eco-supply-overlay .slide-kicker { margin-bottom: .5cqw; }
.layout-auto-eco-supply-overlay .supply-graph-figure { position: absolute; z-index: 2; top: 12.5cqw; left: 6cqw; width: 88cqw; height: 39cqw; margin: 0; }
.layout-auto-eco-supply-overlay .supply-graph-figure img { display: block; width: 100%; height: auto; }
.layout-auto-eco-supply-overlay .supply-graph-figure iframe { display: block; width: 100%; height: 100%; border: 0; background: white; }
.layout-qvm-cost-curves .slide-content { margin-block: 0; }
.layout-qvm-cost-curves .slide-equations:empty { display: none; }
.layout-qvm-cost-curves .qvm-cost-curves-figure { width: 78cqw; height: 35cqw; margin: 1cqw auto 0; }
.layout-qvm-cost-curves .qvm-cost-curves-figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-body.short-dotted .slide-list { width: 100%; border-top-style: dotted; }
.slide-body.short-dotted .slide-list p { border-bottom-style: dotted; }
.slide-body.dotted .slide-list { border-top-style: dotted; }
.slide-body.dotted .slide-list p { border-bottom-style: dotted; }
.slide-table { width: 100%; margin-top: 2cqw; border-collapse: collapse; table-layout: fixed; font-size: 2.2cqw; line-height: 1.3; }
.slide-table th, .slide-table td { padding: 1cqw; border: 1px solid var(--rule); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.slide-table thead th { color: var(--ink-soft); font-size: 1.6cqw; letter-spacing: .06em; text-transform: uppercase; }
.slide-table tbody th { color: var(--content-navy); }
.layout-market-demand-shifts .slide-table { margin-top: 1cqw; font-size: 1.8cqw; line-height: 1.2; }
.layout-market-demand-shifts .slide-table th, .layout-market-demand-shifts .slide-table td { padding: .65cqw .8cqw; vertical-align: middle; }
.layout-market-demand-shifts .slide-table thead th { font-size: 1.45cqw; }
.layout-market-demand-shifts .slide-table + .slide-note { margin-top: .8cqw; font-size: 1.55cqw; line-height: 1.2; }
.slide-table.medication-supply-table { margin-top: 1.1cqw; font-size: 1.65cqw; line-height: 1.18; }
.slide-table.medication-supply-table th, .slide-table.medication-supply-table td { padding: .62cqw .72cqw; vertical-align: middle; }
.slide-table.medication-supply-table + .slide-note { margin-top: .8cqw; font-size: 1.65cqw; }
.slide-table.exchange-matrix { width: 100%; table-layout: fixed; }
.slide-table.exchange-matrix thead th:first-child { border-top: 0; border-left: 0; }
.slide-table.exchange-matrix thead th:not(:first-child) { color: var(--red); font-size: 1.9cqw; }
.slide-table.option-comparison { table-layout: fixed; border-collapse: separate; border-spacing: 0; margin-top: 1.5cqw; font-size: 2cqw; line-height: 1.2; }
.slide-table.option-comparison th, .slide-table.option-comparison td { border: 0; }
.slide-table.open-rules th, .slide-table.open-rules td { border-left: 0; border-right: 0; }
.slide-table.open-rules thead th { border-top: 0; }
.slide-table.grim-values th:first-child { width: 19%; }
.slide-table.grim-values th:nth-child(2) { width: 32%; }
.slide-table .p1 { color: var(--red); font-weight: 600; }
.slide-table .p2 { color: #2457A6; font-weight: 600; }
.slide-table th:has(.game-hover) { position: relative; }
.game-hover { cursor: help; border-bottom: 1px dotted currentColor; }
.game-pop { position: absolute; z-index: 20; left: 70%; top: 50%; display: none; grid-template-columns: auto auto 9cqw 9cqw; align-items: center; padding: 1.2cqw 1.6cqw; border: 1px solid var(--rule); background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(24,32,43,.16); color: var(--ink); font-size: 1.8cqw; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; transform: translateY(-50%); }
.game-hover:hover .game-pop, .game-hover:focus-visible .game-pop { display: grid; }
.slide-table tr:last-child .game-pop { top: auto; bottom: 0; transform: none; }
.game-pop .mg-p2 { grid-column: 3 / 5; text-align: center; color: #2457A6; font-weight: 700; padding-bottom: .3cqw; }
.game-pop .mg-col { text-align: center; font-style: italic; color: var(--ink-soft); padding-bottom: .4cqw; }
.game-pop .mg-col:nth-of-type(2) { grid-column: 3; }
.game-pop .mg-p1 { grid-column: 1; grid-row: 3 / 5; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--red); font-weight: 700; padding-left: .6cqw; }
.game-pop .mg-row { grid-column: 2; font-style: italic; color: var(--ink-soft); padding-right: .8cqw; text-align: right; }
.game-pop .mg-cell { padding: 1.4cqw .6cqw; border: 1px solid var(--rule); text-align: center; }
.slide-table.option-comparison thead th { padding: 0 0 1cqw; font-size: 1.7cqw; font-weight: 800; letter-spacing: .1em; }
.slide-table.option-comparison thead th:first-child { color: var(--content-navy); }
.slide-table.option-comparison thead th:nth-child(2) { padding-left: 3cqw; color: var(--red); }
.slide-table.option-comparison tbody th, .slide-table.option-comparison tbody td { position: relative; padding: .3cqw 0 .3cqw 1.6cqw; color: var(--ink-soft); font-family: var(--serif); font-weight: 400; }
.slide-table.option-comparison tbody td { padding-left: 4.6cqw; }
.slide-table.option-comparison tbody th:not(:empty)::before, .slide-table.option-comparison tbody td:not(:empty)::before { content: "•"; position: absolute; left: 0; font-family: var(--sans); font-weight: 900; }
.slide-table.option-comparison tbody th:not(:empty)::before { color: var(--content-navy); }
.slide-table.option-comparison tbody td:not(:empty)::before { left: 3cqw; color: var(--red); }
.type-challenge { background: var(--red-wash); }
.type-challenge h1, .type-challenge .slide-kicker { color: var(--red); }
@media screen and (min-width: 701px) {
  body { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
}

/* Phones reflow the active slide instead of shrinking a 16:9 canvas. */
@media screen and (max-width: 700px) {
  .layout-ordinary-giffen .slide-body > .slide-note { width: 100%; }
  .deck { width: calc(100% - 1rem); height: auto; min-height: 100dvh; }
  .slide { position: relative; inset: auto; padding: 3rem 1.25rem; min-height: 100dvh; overflow: visible; }
  .slide::before { left: 1.25rem; right: 1.25rem; top: 1.2rem; }
  .slide-brand { top: 1.5rem; left: 1.25rem; width: 2rem; }
  .slide h1, .type-embed h1 { max-width: none; font-size: 2.2rem; }
  .type-title h1 { font-size: 2.6rem; }
  .type-title .slide-content { padding-top: 2rem; }
  .slide-kicker { margin-bottom: 1rem; font-size: .875rem; }
  .slide-definitions { margin-top: 1.3rem; font-size: 1.125rem; }
  .slide-subtitle { margin-top: 1.3rem; font-size: 1.4rem; }
  .slide-split, .slide-case-grid, .poll-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
  .slide-split > div, .slide-case-grid > div { padding: 0; }
  .slide-split > div > span, .slide-case-grid span { font-size: .9rem; }
  .slide-split p, .slide-case-grid p, .slide-list p, .embed-heading > p:not(.slide-kicker) { margin-block: .75rem; font-size: 1.125rem; }
  .slide-split strong, .slide-case-grid strong { margin-top: .75rem; font-size: 1.4rem; }
  .slide-body, .slide-equations, .slide-table, .slide-steps { margin-top: 1.5rem; }
  .layout-auto-eco-supply-overlay .slide-equations { width: 100%; }
  .layout-auto-eco-supply-overlay .supply-graph-figure { position: static; width: 100%; height: 31rem; margin-top: 1.25rem; }
  .slide-list p { margin: 0; padding: .8rem 0; }
  .slide-equations { gap: 1.25rem; }
  .slide-equations strong { font-size: 1.25rem; }
  .slide-equations > div { overflow-x: auto; padding-block: .3rem; }
  .slide-note, .type-equations .slide-note, .type-question .slide-prompt,
  .slide-table.exchange-matrix + .slide-note, .slide-table.option-comparison + .slide-note { margin-top: 1.25rem; font-size: 1.125rem; }
  .slide-steps li { grid-template-columns: 2.25rem 1fr; padding: .75rem 0; font-size: 1.125rem; }
  .slide-table, .slide-table.option-comparison { margin-top: 1.5rem; font-size: 1rem; line-height: 1.3; }
  .slide-table th, .slide-table td { padding: .5rem .35rem; }
  .slide-table thead th, .slide-table.exchange-matrix thead th:not(:first-child), .slide-table.option-comparison thead th { font-size: .875rem; letter-spacing: 0; }
  .slide-table.option-comparison thead th { padding-bottom: .5rem; }
  .slide-table.option-comparison thead th:nth-child(2) { padding-left: .75rem; }
  .slide-table.option-comparison tbody th, .slide-table.option-comparison tbody td { padding: .4rem .1rem .4rem .7rem; }
  .slide-table.option-comparison tbody td { padding-left: 1.45rem; }
  .slide-table.option-comparison tbody td:not(:empty)::before { left: .75rem; }
  .poll-qr { width: 12rem; max-width: 100%; justify-self: start; }
  .type-embed .slide-content { display: flex; flex-direction: column; height: auto; gap: 1.5rem; }
  .embed-qr { width: 7rem; padding: .25rem; margin-top: 1rem; }
  .embed-viewport { flex: auto; height: 22rem; }
  .poll-embed-fallback { margin-top: .5rem; font-size: 1rem; }
  .type-explorer { padding-inline: .5rem; }
  .type-explorer.layout-rule-aligned-kicker { padding-inline: 1.25rem; }
  .type-explorer.layout-rule-aligned-kicker .slide-kicker { margin-left: 0; }
  .type-explorer .slide-content { height: 38rem; }
}


/* Reserve room for the right-column note without reducing type sizes. */
@media print, (min-width: 701px) {
  .slide.layout-ordinary-giffen { padding-top: 4cqw; }
  .layout-ordinary-giffen .slide-kicker { margin-bottom: 1cqw; }
  .layout-ordinary-giffen .slide-body { margin-top: 1cqw; }
  .layout-ordinary-giffen .slide-split > div { padding-block: .5cqw; }
  .layout-ordinary-giffen .slide-split p { margin-block: .8cqw; line-height: 1.3; }
  .layout-ordinary-giffen .slide-split strong { padding-top: .5cqw; }
  .layout-ordinary-giffen .slide-body > .slide-note { margin-top: .8cqw; }
}

@page { size: 13.333333in 7.5in; margin: 0; }
@media print {
  html, body { background: white; }
  body { display: block; }
  .skip-link { display: none !important; }
  .deck { width: 13.333333in; height: auto; margin: 0; overflow: visible; }
  .slide, .slide.is-active { display: flex !important; position: relative; width: 100%; height: 7.5in; break-after: page; page-break-after: always; overflow: hidden; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .type-embed .slide-content { display: block; }
  .type-embed h1 { max-width: none; }
  .embed-frame { display: block; }
  .poll-embed, .menti-logo-cover { display: none; }
  .poll-embed-fallback { display: block; margin-top: 2cqw; color: var(--content-navy); font-size: 2.25cqw; }
  /* A printed page is a 1280px-wide screen. Lay explorers out as on a 1600px screen, then
     scale them down, so their graphs fit the frame the way they do in class. */
  .type-explorer .slide-content .explorer-embed { flex: none; align-self: flex-start; justify-self: start; width: 125%; height: 125%; transform: scale(.8); transform-origin: 0 0; }
  .type-explorer.layout-maya-choice .slide-content .explorer-embed, .type-explorer.layout-supply-explorer .slide-content .explorer-embed { height: 120%; }
  .type-explorer.layout-maya-choice .slide-content, .type-explorer.layout-supply-explorer .slide-content { justify-content: flex-start; align-items: flex-start; }
}
.layout-ride-on-revenue-change { background: var(--blue-wash); }
.layout-ride-on-revenue-change .slide-equations:empty { display: none; }
.layout-ride-on-revenue-change .revenue-change-figure { width: 44cqw; height: 26cqw; margin: 1cqw auto 0; }
.layout-ride-on-revenue-change .revenue-change-figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.layout-revenue-change-derivation .slide-equations { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 4cqw; }
.layout-revenue-change-derivation .slide-equations strong { font-size: 2.35cqw; }
.layout-elasticity-cases .slide-definitions { display: grid; grid-template-columns: max-content max-content; column-gap: .4em; row-gap: .6cqw; }
.layout-elasticity-cases .slide-definitions p { display: contents; }
.layout-elasticity-cases .slide-definitions p > span:first-child { text-align: right; }

/* Payoff matrices. Each is a small Isocline page framed below the slide title. */
.matrix-embed { display: block; width: 100%; height: 36cqw; margin-top: 1.5cqw; border: 0; background: transparent; }

.slide-bill { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 3cqw; align-items: start; }
.slide-bill .bill-figure { margin: 0; }
.image-zoom-frame { position: relative; }
.image-zoom { position: relative; display: block; cursor: zoom-in; }
.image-zoom img, .image-dialog img { display: block; width: 100%; height: auto; }
.image-zoom-lens { position: absolute; right: .6cqw; bottom: .6cqw; display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: 50%; background: rgba(24, 32, 43, .78); color: #fff; }
.image-mark { position: absolute; z-index: 1; left: 1%; width: 98%; background: rgba(245, 190, 40, .32); outline: 1.5px solid rgba(200, 140, 0, .9); cursor: help; }
.image-mark:hover, .image-mark:focus { z-index: 2; background: rgba(245, 190, 40, .5); }
.image-mark::after { content: ""; position: absolute; inset: -3px 0; }
.image-mark-note { position: absolute; left: 50%; bottom: calc(100% + .45rem); display: none; width: min(19rem, 80vw); padding: .6rem .75rem; border: 1px solid var(--rule); background: var(--surface); color: #18202B; box-shadow: 0 8px 24px rgba(24, 32, 43, .16); font-family: system-ui, sans-serif; font-size: .85rem; font-weight: 400; line-height: 1.4; text-align: left; transform: translateX(-50%); }
.image-mark:hover .image-mark-note, .image-mark:focus .image-mark-note { display: block; }
.image-dialog { width: min(72rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 1px solid var(--rule); padding: .75rem; background: #fff; cursor: zoom-out; }
.image-dialog::backdrop { background: rgba(24, 32, 43, .6); }
.image-dialog .dialog-close { display: block; margin: 0 0 .5rem auto; border: 0; background: transparent; color: #5B6778; cursor: pointer; font-size: .85rem; font-weight: 700; }
.slide-inline-icon { display: inline-block; width: auto; height: 1.05em; vertical-align: -.18em; }
.layout-ic-derivation .slide-equations { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 4cqw; }
.layout-ic-derivation .slide-equations strong { font-size: 2.35cqw; }
.slide-derivation { display: grid; grid-template-columns: max-content max-content max-content; gap: .55em .5em; }
.slide-derivation > span:nth-child(3n + 1) { justify-self: end; }
.layout-center-question .slide-content { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; margin: 0; text-align: center; }
.layout-center-question h1 { max-width: none; white-space: normal; }
.layout-center-question .slide-subtitle { display: none; }
