@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --toolbar-height: 4.25rem;
  --canvas: oklch(98% 0.008 95);
  --surface: oklch(99.4% 0.004 95);
  --surface-strong: oklch(95.5% 0.01 95);
  --ink: oklch(17% 0.015 255);
  --muted-ink: oklch(39% 0.018 255);
  --quiet-ink: oklch(52% 0.016 255);
  --border: oklch(86.5% 0.012 95);
  --border-strong: oklch(69% 0.018 95);
  --focus: oklch(59% 0.17 255);
  --cobalt: oklch(55% 0.16 255);
  --cobalt-soft: oklch(92% 0.035 255);
  --amber-soft: oklch(91% 0.06 80);
  --shadow: 0 1.25rem 4rem oklch(22% 0.018 255 / 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: oklch(14.5% 0.012 255);
  --surface: oklch(18.5% 0.014 255);
  --surface-strong: oklch(23% 0.016 255);
  --ink: oklch(94% 0.008 95);
  --muted-ink: oklch(76% 0.014 95);
  --quiet-ink: oklch(66% 0.014 95);
  --border: oklch(30% 0.018 255);
  --border-strong: oklch(47% 0.024 255);
  --focus: oklch(72% 0.13 250);
  --cobalt: oklch(72% 0.13 250);
  --cobalt-soft: oklch(26% 0.045 250);
  --amber-soft: oklch(30% 0.045 80);
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  padding-top: calc(var(--toolbar-height) + env(safe-area-inset-top));
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in oklch, var(--cobalt-soft) 55%, transparent) 0, transparent 22rem),
    var(--canvas);
}

button,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
a:focus-visible,
.why-slide:focus-visible {
  outline: 0.15rem solid var(--focus);
  outline-offset: 0.18rem;
}

.skip-link {
  position: fixed;
  z-index: 600;
  top: 0.5rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.7rem 0.9rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--canvas);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.why-toolbar {
  position: fixed;
  z-index: 200;
  inset: env(safe-area-inset-top) 0 auto;
  display: grid;
  grid-template-columns: auto minmax(16rem, 1fr) 7.5rem auto auto;
  align-items: center;
  gap: 1rem;
  height: var(--toolbar-height);
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--canvas) 94%, transparent);
  box-shadow: 0 0.75rem 2.5rem color-mix(in oklch, var(--ink) 6%, transparent);
  backdrop-filter: blur(1rem) saturate(1.05);
}

.why-wordmark {
  min-width: 3.5rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.chapter-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--quiet-ink);
  font-size: 0.875rem;
  font-weight: 630;
}

.chapter-picker select {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 2.2rem 0 0.8rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-overflow: ellipsis;
}

.deck-progress {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted-ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.progress-track {
  display: block;
  width: 100%;
  height: 0.15rem;
  overflow: hidden;
  background: var(--border);
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}

.deck-controls,
.view-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.control-button {
  min-width: 4.2rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 120ms var(--ease-out),
    border-color 120ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.control-button:hover:not(:disabled) {
  border-color: var(--border);
  background: var(--surface-strong);
}

.control-button:active:not(:disabled) {
  transform: translateY(0.08rem);
}

.control-button:disabled {
  color: var(--quiet-ink);
  cursor: not-allowed;
  opacity: 0.52;
}

.control-button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

.control-button-primary:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
}

.why-deck {
  width: 100%;
}

.why-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  width: min(100%, 100rem);
  min-height: calc(100svh - var(--toolbar-height) - env(safe-area-inset-top));
  margin: 0 auto;
  padding: clamp(1.75rem, 3.5vh, 3rem) clamp(2rem, 4.5vw, 4.5rem) clamp(2.75rem, 5vh, 4rem);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.why-slide::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--canvas);
  content: "";
  opacity: 0.76;
}

.why-slide[data-active]::before {
  opacity: 0.42;
}

.slide-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
  min-width: 0;
  padding-top: 1.1rem;
  border-top: 0.18rem solid var(--ink);
}

.slide-folio {
  color: var(--quiet-ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.slide-heading {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.why-slide-table .slide-heading,
.why-slide-financial .slide-heading,
.why-slide-flow .slide-heading,
.why-slide-citations .slide-heading {
  font-size: clamp(1.7rem, 2vw, 2rem);
}

.slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.slide-count {
  position: absolute;
  right: clamp(2rem, 4.5vw, 4.5rem);
  bottom: 1.25rem;
  color: var(--quiet-ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.source-statement {
  max-width: 17ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.source-statement::after {
  display: block;
  width: clamp(5rem, 14vw, 10rem);
  height: 0.22rem;
  margin-top: 2rem;
  background: var(--cobalt);
  content: "";
}

.source-list {
  display: grid;
  align-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding: 1.15rem 0 1.15rem 2rem;
  border-top: 1px solid var(--border);
}

.source-list-item:last-child {
  border-bottom: 1px solid var(--border);
}

.source-list-item::before {
  position: absolute;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border: 0.15rem solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.source-list-copy {
  max-width: 49ch;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.75vw, 1.55rem);
  font-weight: 540;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-wrap: pretty;
}

.source-list-text {
  min-width: 0;
}

.source-list-numbered .source-list-item {
  min-height: 7rem;
  padding-left: 0;
}

.source-list-numbered .source-list-item::before {
  display: none;
}

.source-list-numbered .source-list-copy {
  max-width: 58ch;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 620;
  line-height: 1.12;
}

.source-list-structure {
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
}

.source-list-structure .source-list-item {
  min-height: 5rem;
  padding: 0.8rem 0 0.8rem 1.35rem;
}

.source-list-structure .source-list-item:nth-child(5) {
  border-top-color: var(--ink);
}

.source-list-structure .source-list-item::before {
  width: 0.5rem;
  height: 0.5rem;
  border-width: 0.12rem;
}

.source-list-structure .source-list-copy {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 610;
  line-height: 1.16;
}

.source-list-supported .source-list-item {
  align-items: flex-start;
  min-height: 6.4rem;
  padding: 0.9rem 0 0.9rem 1.5rem;
}

.source-list-supported .source-list-copy {
  display: block;
  max-width: none;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 680;
  line-height: 1.08;
}

.source-list-support {
  max-width: 76ch;
  margin: 0.38rem 0 0;
  color: var(--muted-ink);
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  font-weight: 470;
  letter-spacing: -0.008em;
  line-height: 1.24;
  text-wrap: pretty;
}

.source-list-support::first-letter {
  text-transform: uppercase;
}

.source-list-questions {
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 0 2rem;
}

.source-list-questions .source-list-item {
  min-height: 5rem;
  padding: 0.8rem 0 0.8rem 1.35rem;
}

.source-list-questions .source-list-item:nth-child(6) {
  border-top-color: var(--ink);
}

.source-list-questions .source-list-item::before {
  width: 0.5rem;
  height: 0.5rem;
  border-width: 0.12rem;
}

.source-list-questions .source-list-copy {
  max-width: 42ch;
  font-size: clamp(1.0625rem, 1.45vw, 1.3rem);
  font-weight: 610;
  line-height: 1.16;
}

.why-slide-financial {
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.financial-composition {
  display: grid;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(27rem, 1.08fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  min-width: 0;
}

.source-list-financial .source-list-item {
  min-height: 0;
  padding: 0.48rem 0 0.48rem 1rem;
}

.source-list-financial .source-list-item::before {
  width: 0.35rem;
  height: 0.35rem;
  border-width: 0.1rem;
}

.source-list-financial .source-list-copy {
  display: block;
  max-width: none;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  font-weight: 540;
  letter-spacing: -0.012em;
  line-height: 1.18;
}

.financial-table-panel {
  min-width: 0;
}

.financial-table-panel .table-deck-label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.financial-table-panel .memo-table th,
.financial-table-panel .memo-table td {
  padding: 0.32rem 0.34rem;
}

.financial-table-panel .memo-table th:first-child,
.financial-table-panel .memo-table td:first-child {
  width: 37%;
}

.table-deck-label {
  margin: 0 0 0.85rem;
  color: var(--muted-ink);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25;
}

.memo-table-frame {
  width: 100%;
  min-width: 0;
  overflow: visible;
  border-top: 0.16rem solid var(--ink);
  border-bottom: 0.16rem solid var(--ink);
  background: color-mix(in oklch, var(--surface) 72%, transparent);
}

.memo-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.24;
}

.memo-table th,
.memo-table td {
  min-width: 0;
  padding: 0.52rem 0.62rem;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: middle;
}

.memo-table tr:last-child th,
.memo-table tr:last-child td {
  border-bottom: 0;
}

.memo-table th {
  color: var(--muted-ink);
  font-weight: 680;
}

.memo-table th:first-child,
.memo-table td:first-child {
  width: 34%;
  padding-left: 0;
  text-align: left;
}

.memo-table tr:first-child th {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  border-bottom-color: var(--border-strong);
  color: var(--ink);
}

.memo-table .is-emphasis th,
.memo-table .is-emphasis td {
  background: var(--cobalt-soft);
  color: var(--ink);
  font-weight: 720;
}

.table-copy {
  display: inline;
}

.memo-table-precedents th:first-child,
.memo-table-precedents td:first-child {
  width: 18%;
}

.memo-table-precedents th,
.memo-table-precedents td {
  padding: 0.62rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.memo-table-assumptions th:first-child,
.memo-table-assumptions td:first-child {
  width: 34%;
}

.memo-table-assumptions th:nth-child(2),
.memo-table-assumptions td:nth-child(2) {
  width: 22%;
  white-space: normal;
}

.memo-table-assumptions th:last-child,
.memo-table-assumptions td:last-child {
  text-align: left;
}

.memo-table-scenarios th:nth-child(1),
.memo-table-scenarios td:nth-child(1) {
  width: 18%;
}

.memo-table-scenarios th:nth-child(2),
.memo-table-scenarios td:nth-child(2) {
  width: 53%;
  text-align: left;
}

.memo-table-sensitivity {
  font-size: 1rem;
}

.memo-table-sensitivity th:first-child,
.memo-table-sensitivity td:first-child {
  width: 48%;
}

.memo-table-sensitivity td:not(:first-child) {
  background: color-mix(in oklch, var(--cobalt-soft) 55%, var(--surface));
  font-size: 1.05rem;
  font-weight: 680;
}

.memo-table-sensitivity .is-emphasis td:not(:first-child) {
  background: var(--cobalt);
  color: var(--canvas);
}

.memo-table-share th:first-child,
.memo-table-share td:first-child {
  width: 43%;
}

.memo-table-share tr:first-child th[colspan] {
  text-align: center;
}

.memo-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.memo-flow::before {
  position: absolute;
  z-index: -1;
  top: 1.9rem;
  right: 3%;
  left: 3%;
  height: 1px;
  background: var(--border-strong);
  content: "";
}

.flow-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.flow-stage-label {
  position: relative;
  margin: 0 0 1rem;
  padding: 0.9rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.2rem;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 760;
  letter-spacing: 0.025em;
  text-align: center;
}

.flow-nodes {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.flow-stage-adoption .flow-nodes {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.8rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.18rem;
  background: var(--surface);
}

.flow-node:not(:last-child)::after {
  position: absolute;
  right: 50%;
  bottom: -0.66rem;
  width: 1px;
  height: 0.65rem;
  background: var(--border-strong);
  content: "";
}

.flow-node-title {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 730;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-align: center;
}

.flow-node-lines {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.flow-node-line {
  color: var(--muted-ink);
  font-size: 0.875rem;
  font-weight: 480;
  line-height: 1.18;
  text-align: center;
}

.flow-economics-value {
  border-color: var(--ink);
  background: var(--ink);
}

.flow-economics-value .flow-node-title,
.flow-economics-value .flow-node-line {
  color: var(--canvas);
}

.citation-list {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(7, minmax(0, auto));
  gap: 0 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.citation-list li {
  min-width: 0;
  padding: 0.35rem 0 0.4rem;
  border-top: 1px solid var(--border);
}

.why-slide-citations {
  grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.citation-link {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 510;
  letter-spacing: -0.008em;
  line-height: 1.14;
  overflow-wrap: anywhere;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 0.08rem;
  text-underline-offset: 0.18rem;
}

.citation-link:hover {
  color: var(--cobalt);
}

.why-status {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.why-status.is-error {
  z-index: 400;
  inset: 50% auto auto 50%;
  width: auto;
  height: auto;
  margin: 0;
  padding: 1rem 1.2rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}

:root[data-present="true"],
:root[data-present="true"] body {
  height: 100%;
  overflow: hidden;
}

:root[data-present="true"] .why-deck {
  height: calc(100svh - var(--toolbar-height) - env(safe-area-inset-top));
  overflow: hidden;
}

:root[data-present="true"] .why-slide {
  display: none;
  height: 100%;
  min-height: 0;
  border-bottom: 0;
}

:root[data-present="true"] .why-slide[data-active] {
  display: grid;
  animation: slide-enter 360ms var(--ease-out) both;
}

@keyframes slide-enter {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 47.5rem) and (min-width: 64rem) {
  .why-slide {
    gap: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2.7rem;
  }

  .slide-heading {
    font-size: 1.8rem;
  }

  .source-list-item {
    min-height: 4.15rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .source-list-copy {
    font-size: 1.2rem;
  }

  .source-list-numbered .source-list-item {
    min-height: 5.2rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .source-list-numbered .source-list-copy {
    font-size: 1.45rem;
  }

  .source-list-structure .source-list-item {
    min-height: 4rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .source-list-supported .source-list-item {
    min-height: 0;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .source-list-supported .source-list-copy {
    font-size: 1.25rem;
  }

  .source-list-support {
    font-size: 1rem;
    line-height: 1.2;
  }

  .source-list-financial .source-list-item {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .source-list-financial .source-list-copy {
    font-size: 1rem;
    line-height: 1.15;
  }

  .financial-table-panel .memo-table th,
  .financial-table-panel .memo-table td {
    padding-top: 0.22rem;
    padding-bottom: 0.22rem;
  }

  .memo-table th,
  .memo-table td {
    padding-top: 0.37rem;
    padding-bottom: 0.37rem;
  }

  .memo-table-precedents th,
  .memo-table-precedents td {
    padding-top: 0.46rem;
    padding-bottom: 0.46rem;
  }

  .flow-stage-label {
    margin-bottom: 0.65rem;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
  }

  .flow-nodes {
    gap: 0.45rem;
  }

  .flow-node {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .citation-list {
    column-gap: 0.8rem;
  }

  .citation-list li {
    padding-top: 0.22rem;
    padding-bottom: 0.24rem;
  }

  .citation-link {
    line-height: 1.08;
  }
}

@media (max-width: 74rem) {
  :root {
    --toolbar-height: 4rem;
  }

  .why-toolbar {
    grid-template-columns: auto minmax(12rem, 1fr) 6.4rem auto auto;
    gap: 0.55rem;
    padding: 0 1rem;
  }

  .chapter-picker > span,
  .progress-track {
    display: none;
  }

  .chapter-picker {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 58rem) {
  :root {
    --toolbar-height: 7.5rem;
  }

  .why-toolbar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "wordmark chapter progress"
      "deck deck view";
    height: var(--toolbar-height);
    padding: 0.65rem 1rem;
  }

  .why-wordmark { grid-area: wordmark; }
  .chapter-picker { grid-area: chapter; }
  .deck-progress { grid-area: progress; }
  .deck-controls { grid-area: deck; }
  .view-controls { grid-area: view; }

  .why-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 3.5rem;
  }

  .slide-rail {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .slide-heading {
    max-width: none;
  }

  .slide-body {
    justify-content: flex-start;
  }

  .memo-table-frame,
  .memo-flow {
    overflow-x: auto;
  }

  .memo-table {
    min-width: 48rem;
  }

  .memo-flow {
    grid-template-columns: repeat(4, minmax(13rem, 1fr));
    min-width: 56rem;
  }

  .source-list-structure {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .source-list-questions {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .financial-composition {
    grid-template-columns: 1fr;
  }

  .financial-table-panel {
    overflow-x: auto;
  }

  .citation-list {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}

@media (pointer: coarse) {
  .control-button,
  .chapter-picker select {
    min-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
