@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
  --vi-ink: #18243a;
  --vi-muted: #58657a;
  --vi-paper: #f5f1e8;
  --vi-paper-strong: #fffaf2;
  --vi-accent: #cf5c36;
  --vi-accent-soft: #f3c9aa;
  --vi-teal: #2f7f7a;
  --vi-line: rgba(24, 36, 58, 0.12);
  --vi-shadow: 0 20px 60px rgba(24, 36, 58, 0.12);
}

[data-md-color-primary="custom"] {
  --md-primary-fg-color: #18243a;
  --md-primary-fg-color--light: #33425d;
  --md-primary-fg-color--dark: #10182a;
}

[data-md-color-accent="custom"] {
  --md-accent-fg-color: #cf5c36;
}

body {
  background:
    radial-gradient(circle at top left, rgba(207, 92, 54, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(47, 127, 122, 0.12), transparent 28%),
    linear-gradient(180deg, #f6f2ea 0%, #fbf8f4 42%, #fffdf8 100%);
}

.md-typeset,
.md-nav,
.md-header__title,
.md-tabs__link {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.md-typeset {
  color: var(--vi-ink);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.02em;
}

.md-typeset h1 {
  margin-bottom: 1rem;
  font-size: 2.3rem;
  line-height: 1.08;
}

.md-typeset h2 {
  margin-top: 2.4rem;
  border-top: 1px solid var(--vi-line);
  padding-top: 1.2rem;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--vi-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--vi-shadow);
  background: rgba(255, 255, 255, 0.72);
}

.md-typeset table:not([class]) th {
  background: rgba(24, 36, 58, 0.08);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  margin: 0 0 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(24, 36, 58, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(255, 255, 255, 0.78)),
    linear-gradient(90deg, rgba(207, 92, 54, 0.12), rgba(47, 127, 122, 0.08));
  box-shadow: var(--vi-shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--vi-teal);
  font-weight: 700;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--vi-muted);
}

.callout-grid {
  display: grid;
  gap: 1rem;
}

.callout-card {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  background: rgba(24, 36, 58, 0.92);
  color: #fff7ee;
}

.callout-card span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--vi-accent-soft);
  font-size: 1.7rem;
  font-weight: 700;
}

.demo-frame {
  margin: 1.5rem 0;
  border: 1px solid rgba(24, 36, 58, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--vi-shadow);
  background: #ffffff;
}

.demo-frame iframe {
  display: block;
  width: 100%;
  min-height: 780px;
  border: 0;
}

.principle-figure {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(24, 36, 58, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--vi-shadow);
}

.principle-figure img {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.principle-figure figcaption {
  margin-top: 0.8rem;
  text-align: center;
  color: var(--vi-muted);
  font-size: 0.9rem;
}

.slide-stack {
  display: grid;
  gap: 1rem;
}

.slide-card {
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(24, 36, 58, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--vi-shadow);
}

.md-typeset blockquote {
  border-left-color: var(--vi-accent);
  background: rgba(207, 92, 54, 0.08);
  border-radius: 0 16px 16px 0;
  padding: 0.8rem 1rem;
}

.presentation-hero {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 1.2rem;
  margin: 0 0 2rem;
  padding: 1.6rem;
  border-radius: 30px;
  border: 1px solid rgba(24, 36, 58, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 242, 0.92)),
    linear-gradient(110deg, rgba(47, 127, 122, 0.12), rgba(207, 92, 54, 0.12));
  box-shadow: var(--vi-shadow);
}

.presentation-sidecar {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.deck-step {
  margin: 0 0 0.45rem;
  color: var(--vi-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.presentation-kicker,
.bridge-line {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(24, 36, 58, 0.92);
  color: #fff7ee;
}

.presentation-kicker strong,
.bridge-line strong {
  color: var(--vi-accent-soft);
}

.presentation-toc,
.attention-grid,
.diagnostic-grid,
.dual-panels,
.focus-ladder,
.choice-actions,
.principle-band,
.closing-links {
  display: grid;
  gap: 1rem;
}

.presentation-toc,
.attention-grid,
.diagnostic-grid,
.dual-panels,
.closing-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toc-card,
.attention-card,
.diagnostic-card,
.contrast-panel,
.focus-step,
.choice-group,
.closing-card {
  padding: 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(24, 36, 58, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--vi-shadow);
}

.toc-card h2,
.attention-card h2,
.diagnostic-card h2,
.contrast-panel h2,
.closing-card h2 {
  margin-top: 0;
}

.toc-card p,
.attention-card p,
.diagnostic-card p,
.contrast-panel p,
.focus-step p,
.closing-card p {
  margin-bottom: 0;
}

.toc-card a,
.narrative-nav a,
.closing-card a {
  font-weight: 700;
}

.principle-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-pill {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(24, 36, 58, 0.05);
  border: 1px solid rgba(24, 36, 58, 0.07);
}

.principle-pill strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--vi-teal);
}

.focus-ladder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-step {
  position: relative;
  padding-top: 3.1rem;
}

.focus-step::before {
  content: attr(data-step);
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--vi-ink);
  color: #fff7ee;
  font-weight: 700;
}

.choice-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.choice-button {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(24, 36, 58, 0.12);
  border-radius: 18px;
  background: #fffdf9;
  color: var(--vi-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice-button:hover,
.choice-button.is-active {
  transform: translateY(-2px);
  border-color: rgba(207, 92, 54, 0.45);
  box-shadow: 0 12px 24px rgba(24, 36, 58, 0.1);
}

.choice-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(47, 127, 122, 0.1);
  border: 1px solid rgba(47, 127, 122, 0.22);
}

.contrast-panel ul,
.diagnostic-card ul,
.toc-card ul,
.attention-card ul,
.closing-card ul {
  margin-bottom: 0;
}

.panel-bad {
  background: linear-gradient(180deg, rgba(204, 64, 64, 0.08), rgba(255, 255, 255, 0.9));
}

.panel-good {
  background: linear-gradient(180deg, rgba(47, 127, 122, 0.08), rgba(255, 255, 255, 0.9));
}

.narrative-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-link {
  flex: 1;
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(24, 36, 58, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--vi-shadow);
  text-decoration: none;
}

.nav-link small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--vi-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.nav-link--next {
  text-align: right;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.presentation-note {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(24, 36, 58, 0.06);
}

.closing-quote {
  margin: 1.5rem 0 0;
  padding: 1.3rem 1.4rem;
  border-left: 6px solid var(--vi-accent);
  border-radius: 0 20px 20px 0;
  background: rgba(207, 92, 54, 0.08);
  font-size: 1.1rem;
  line-height: 1.7;
}

body.gestalt-mode .md-main__inner,
body.gestalt-mode .md-grid {
  max-width: min(1700px, calc(100vw - 2rem));
}

body.gestalt-mode {
  --presentation-toolbar-offset: clamp(4.5rem, 7vh, 5.75rem);
  scroll-behavior: smooth;
}

body.gestalt-mode .md-header,
body.gestalt-mode .md-tabs,
body.gestalt-mode .md-footer,
body.gestalt-mode .md-footer-meta,
body.gestalt-mode .md-top {
  display: none;
}

body.gestalt-mode .md-main__inner {
  margin-inline: auto;
}

body.gestalt-mode .md-sidebar--primary,
body.gestalt-mode .md-sidebar--secondary {
  display: none;
}

body.gestalt-mode .md-content {
  max-width: none;
}

body.gestalt-mode .md-content__inner {
  margin: 0 auto 4rem;
  padding: var(--presentation-toolbar-offset) clamp(1rem, 2.6vw, 2.4rem) 2.5rem;
}

body.gestalt-mode .md-content__inner::before,
body.gestalt-mode .md-content__inner > h1 {
  display: none;
}

body.gestalt-mode .md-typeset h1 {
  font-size: clamp(2.8rem, 4vw + 1rem, 4.8rem);
  line-height: 0.95;
}

body.gestalt-mode .md-typeset h2 {
  font-size: clamp(1.7rem, 1.1vw + 1rem, 2.5rem);
}

body.gestalt-mode .presentation-hero {
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.9fr);
  align-items: end;
  min-height: min(58vh, 720px);
  padding: clamp(1.4rem, 2.2vw, 2.5rem);
}

body.gestalt-mode .lead {
  max-width: 30ch;
  font-size: clamp(1.1rem, 0.8vw + 0.95rem, 1.45rem);
}

body.gestalt-mode .presentation-kicker,
body.gestalt-mode .presentation-note,
body.gestalt-mode .bridge-line {
  padding: 1.1rem 1.2rem;
}

body.gestalt-mode .presentation-toc {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.gestalt-mode .attention-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.gestalt-mode .diagnostic-grid,
body.gestalt-mode .dual-panels,
body.gestalt-mode .closing-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.gestalt-mode .toc-card,
body.gestalt-mode .attention-card,
body.gestalt-mode .diagnostic-card,
body.gestalt-mode .contrast-panel,
body.gestalt-mode .focus-step,
body.gestalt-mode .choice-group,
body.gestalt-mode .closing-card,
body.gestalt-mode .principle-pill {
  padding: clamp(1rem, 1.1vw + 0.8rem, 1.4rem);
}

body.gestalt-mode .demo-frame iframe {
  min-height: clamp(560px, 80vh, 940px);
}

body.gestalt-mode .narrative-nav {
  gap: 1.2rem;
}

body.gestalt-mode .nav-link {
  padding: 1.15rem 1.25rem;
}

body.gestalt-mode main article {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.presentation-toolbar {
  position: fixed;
  top: 0.75rem;
  right: clamp(0.8rem, 2vw, 1.6rem);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.presentation-toolbar__badge,
.presentation-toolbar__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 36, 58, 0.12);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 14px 30px rgba(24, 36, 58, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.presentation-toolbar__badge {
  color: var(--vi-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.presentation-toolbar__button {
  color: var(--vi-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.presentation-toolbar__button:hover,
.presentation-toolbar__button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(24, 36, 58, 0.16);
  border-color: rgba(24, 36, 58, 0.18);
}

.deck-slide {
  position: relative;
  isolation: isolate;
  width: min(100%, calc((100dvh - var(--presentation-toolbar-offset)) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  padding: clamp(1.25rem, 1.8vw, 2rem);
  border-radius: 28px;
  border: 1px solid rgba(24, 36, 58, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 242, 0.96)),
    radial-gradient(circle at top right, rgba(47, 127, 122, 0.08), transparent 35%),
    radial-gradient(circle at bottom left, rgba(207, 92, 54, 0.08), transparent 30%);
  box-shadow: 0 24px 68px rgba(24, 36, 58, 0.14);
  overflow: hidden;
}

.deck-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.deck-slide__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1vw, 1.05rem);
  width: 100%;
  height: 100%;
  min-height: 0;
}

.deck-slide__inner > * {
  margin: 0;
}

.deck-slide__inner > h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.deck-slide--hero .presentation-hero {
  height: 100%;
  min-height: 0;
  margin: 0;
}

.deck-slide--grid .attention-grid,
.deck-slide--grid .diagnostic-grid,
.deck-slide--grid .dual-panels,
.deck-slide--grid .focus-ladder,
.deck-slide--grid .principle-band,
.deck-slide--grid .closing-links,
.deck-slide--grid table {
  flex: 1;
  align-content: stretch;
}

.deck-slide--demo .demo-frame {
  flex: 1;
  min-height: 0;
  margin: 0;
}

.deck-slide--demo .demo-frame iframe {
  height: 100%;
  min-height: 0;
}

.deck-slide--dense {
  font-size: 0.97rem;
}

body.gestalt-mode .deck-slide h1 {
  font-size: clamp(2.45rem, 2.3vw + 1rem, 4.2rem);
}

body.gestalt-mode .deck-slide h2 {
  font-size: clamp(1.35rem, 0.75vw + 0.95rem, 2rem);
}

body.gestalt-mode .deck-slide .lead {
  max-width: 36ch;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.28rem);
}

body.gestalt-mode .deck-slide .presentation-kicker,
body.gestalt-mode .deck-slide .presentation-note,
body.gestalt-mode .deck-slide .bridge-line {
  padding: 1rem 1.1rem;
}

body.gestalt-mode .deck-section-anchor {
  scroll-margin-top: 5.5rem;
}

.slide-step-nav {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 1.65rem;
}

.slide-step-nav::before {
  content: "";
  position: absolute;
  inset-inline: max(7%, 1rem);
  top: 50%;
  border-top: 1px solid rgba(24, 36, 58, 0.1);
  transform: translateY(-50%);
}

body.gestalt-mode .slide-step-nav {
  width: min(100%, calc((100dvh - var(--presentation-toolbar-offset)) * 16 / 9));
  margin: 0.95rem auto 1.9rem;
}

.slide-arrow-button {
  position: relative;
  z-index: 1;
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(24, 36, 58, 0.12);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 10px 28px rgba(24, 36, 58, 0.1);
  color: rgba(24, 36, 58, 0.76);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slide-arrow-button:hover,
.slide-arrow-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(24, 36, 58, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--vi-ink);
  border-color: rgba(24, 36, 58, 0.18);
}

.slide-arrow-button span {
  line-height: 1;
}

.slide-arrow-button[data-arrow-type="page"] {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--vi-accent);
  border-color: rgba(207, 92, 54, 0.22);
}

.slide-arrow-button[data-arrow-type="page"] span {
  transform: translateX(1px);
}

.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;
}

.print-only {
  display: none !important;
}

.choice-print-summary,
.demo-print-summary {
  margin-top: 1rem;
}

.demo-print-summary .presentation-note,
.choice-group .presentation-note.print-only {
  margin-top: 0.85rem;
}

@media (max-width: 1380px) {
  body.gestalt-mode .presentation-toc,
  body.gestalt-mode .attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.gestalt-mode .presentation-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
    min-height: auto;
  }

  .deck-slide {
    padding: clamp(1.1rem, 1.5vw, 1.55rem);
  }
}

@media (max-width: 1100px) {
  body.gestalt-mode .md-main__inner,
  body.gestalt-mode .md-grid {
    max-width: min(100vw, calc(100vw - 1rem));
  }

  body.gestalt-mode .presentation-toc,
  body.gestalt-mode .attention-grid,
  body.gestalt-mode .diagnostic-grid,
  body.gestalt-mode .dual-panels,
  body.gestalt-mode .closing-links,
  body.gestalt-mode .principle-band,
  body.gestalt-mode .focus-ladder,
  body.gestalt-mode .choice-actions {
    grid-template-columns: 1fr;
  }

  body.gestalt-mode .presentation-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .presentation-toolbar {
    left: clamp(0.7rem, 2vw, 1.2rem);
    right: clamp(0.7rem, 2vw, 1.2rem);
    justify-content: space-between;
  }

  .deck-slide {
    width: 100%;
    aspect-ratio: auto;
    min-height: min(82vh, 860px);
  }
}

@media (max-width: 700px) {
  body.gestalt-mode .md-content__inner {
    padding-inline: 0.35rem;
  }

  body.gestalt-mode .md-typeset h1 {
    font-size: clamp(2.15rem, 8vw, 3rem);
  }

  body.gestalt-mode .demo-frame iframe {
    min-height: clamp(520px, 72vh, 760px);
  }

  .slide-arrow-button {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.95rem;
  }

  .slide-arrow-button[data-arrow-type="page"] {
    width: 2.55rem;
    height: 2.55rem;
  }

  .presentation-toolbar {
    top: 0.55rem;
    gap: 0.45rem;
  }

  .presentation-toolbar__badge {
    display: none;
  }

  .presentation-toolbar__button {
    padding: 0.68rem 0.9rem;
    font-size: 0.8rem;
  }

  .deck-slide {
    border-radius: 22px;
    min-height: min(78vh, 760px);
    padding: 1rem;
  }
}

@media (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .presentation-hero,
  .presentation-toc,
  .attention-grid,
  .diagnostic-grid,
  .dual-panels,
  .closing-links,
  .principle-band,
  .focus-ladder,
  .choice-actions {
    grid-template-columns: 1fr;
  }

  .narrative-nav {
    flex-direction: column;
  }

  .demo-frame iframe {
    min-height: 980px;
  }
}

@media print {
  @page {
    size: 297mm 167mm;
    margin: 8mm;
  }

  .print-only {
    display: block !important;
  }

  .screen-only {
    display: none !important;
  }

  body,
  body.gestalt-mode {
    background: #ffffff !important;
  }

  body.gestalt-mode .md-header,
  body.gestalt-mode .md-tabs,
  body.gestalt-mode .md-footer,
  body.gestalt-mode .md-footer-meta,
  body.gestalt-mode .md-top,
  body.gestalt-mode .presentation-toolbar,
  body.gestalt-mode .slide-step-nav,
  body.gestalt-mode .narrative-nav {
    display: none !important;
  }

  body.gestalt-mode .md-main,
  body.gestalt-mode .md-main__inner,
  body.gestalt-mode .md-grid,
  body.gestalt-mode .md-content,
  body.gestalt-mode .md-content__inner {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.gestalt-mode main article {
    display: block;
  }

  body.gestalt-mode .deck-slide {
    width: 100% !important;
    aspect-ratio: auto;
    min-height: 0;
    margin: 0;
    padding: 8mm;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid-page;
    break-after: page;
    page-break-after: always;
    overflow: visible;
  }

  body.gestalt-mode .deck-slide__inner {
    gap: 4mm;
  }

  body.gestalt-mode .deck-slide h1 {
    font-size: 25pt;
    line-height: 1.02;
  }

  body.gestalt-mode .deck-slide h2 {
    font-size: 15pt;
  }

  body.gestalt-mode .deck-slide .lead {
    font-size: 12pt;
    line-height: 1.42;
  }

  body.gestalt-mode .deck-slide p,
  body.gestalt-mode .deck-slide li,
  body.gestalt-mode .deck-slide td,
  body.gestalt-mode .deck-slide th {
    font-size: 10pt;
    line-height: 1.42;
  }

  body.gestalt-mode .presentation-hero,
  body.gestalt-mode .presentation-toc,
  body.gestalt-mode .attention-grid,
  body.gestalt-mode .diagnostic-grid,
  body.gestalt-mode .dual-panels,
  body.gestalt-mode .closing-links,
  body.gestalt-mode .principle-band,
  body.gestalt-mode .focus-ladder,
  body.gestalt-mode .choice-actions {
    gap: 4mm;
  }

  body.gestalt-mode .toc-card,
  body.gestalt-mode .attention-card,
  body.gestalt-mode .diagnostic-card,
  body.gestalt-mode .contrast-panel,
  body.gestalt-mode .focus-step,
  body.gestalt-mode .choice-group,
  body.gestalt-mode .closing-card,
  body.gestalt-mode .principle-pill,
  body.gestalt-mode .presentation-kicker,
  body.gestalt-mode .presentation-note,
  body.gestalt-mode .bridge-line,
  body.gestalt-mode .choice-feedback {
    padding: 4.5mm;
    box-shadow: none;
  }

  body.gestalt-mode .choice-actions,
  body.gestalt-mode [data-choice-result] {
    display: none !important;
  }

  body.gestalt-mode .demo-frame,
  body.gestalt-mode .demo-print-summary,
  body.gestalt-mode .choice-group,
  body.gestalt-mode table,
  body.gestalt-mode .closing-quote {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.gestalt-mode .deck-slide:last-of-type {
    break-after: auto;
    page-break-after: auto;
  }

  body.gestalt-mode .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  body.gestalt-mode .demo-frame,
  body.gestalt-mode .demo-frame iframe {
    min-height: 0 !important;
    height: 108mm !important;
  }

  body.gestalt-mode .closing-quote {
    padding: 4mm 5mm;
    font-size: 11pt;
    line-height: 1.45;
  }
}