:root {
  --runway: #78D64B;
  --ink: #13180F;
  --paper: #F4F3EC;
  --leaf: #B7ED93;
  --forest: #1E7A43;
  --white: #FFFFFF;
  --graphite: #3A4034;
  --grey: #8A8F84;
  --rule: rgba(19, 24, 15, .18);
  --rule-strong: rgba(19, 24, 15, .44);
  --font-cjk: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei UI", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --header-height: 76px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-cjk);
  line-height: 1.5;
  letter-spacing: -.005em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--runway);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 12px;
  transform: translateY(-120%);
  padding: 10px 16px;
  background: var(--runway);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.viewer-header {
  position: relative;
  z-index: 30;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 10px clamp(20px, 3.2vw, 48px);
  background: var(--white);
  border-bottom: 1px solid var(--rule-strong);
}

.viewer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}

.viewer-brand img {
  display: block;
  width: 98px;
  height: auto;
}

.viewer-brand span {
  padding-left: 16px;
  border-left: 1px solid var(--rule-strong);
  line-height: 1.1;
}

.viewer-brand strong,
.viewer-brand small {
  display: block;
}

.viewer-brand strong {
  font-size: 12px;
  letter-spacing: .1em;
}

.viewer-brand small {
  margin-top: 5px;
  color: var(--graphite);
  font-size: 10px;
  letter-spacing: .06em;
}

.course-heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.course-heading-code {
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
}

.course-heading-title {
  min-width: 0;
  overflow: hidden;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions,
.control-group {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 8px;
}

.text-button,
.control-button,
.icon-button {
  border: 1px solid var(--rule-strong);
  background: var(--white);
  cursor: pointer;
}

.button-icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.text-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.text-button:hover,
.control-button:hover,
.icon-button:hover {
  background: var(--leaf);
  border-color: var(--forest);
}

.exit-link {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.exit-link:hover {
  background: var(--runway);
  color: var(--ink);
  border-color: var(--runway);
}

.viewer-shell {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  transition: grid-template-columns 180ms ease;
}

.viewer-shell.notes-open {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
}

.stage-region {
  min-width: 0;
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(18px, 2.5vw, 38px);
  background: var(--paper);
}

.slide-frame {
  width: min(100%, calc((100dvh - 238px) * 16 / 9));
  max-width: 1380px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 24px 72px color-mix(in srgb, var(--ink) 13%, transparent);
  touch-action: pan-y;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  background: var(--paper);
  color: var(--ink);
}

.slide::before,
.slide::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 42cqw;
  height: .42cqw;
  right: -14cqw;
  background: var(--runway);
  transform: rotate(-54deg);
  transform-origin: center;
  pointer-events: none;
}

.slide::before {
  top: 16cqh;
}

.slide::after {
  right: -23cqw;
  bottom: 8cqh;
  opacity: .3;
}

.slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3.8cqw 4.8cqw 2.85cqw;
}

.slide-brand-row {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  margin-bottom: 2.35cqw;
}

.slide-logo {
  width: 7.9cqw;
  height: auto;
}

.slide-course-label {
  color: var(--forest);
  font-size: .9cqw;
  font-weight: 800;
  letter-spacing: .14em;
}

.slide-title {
  flex: none;
  max-width: 84%;
  margin: 0;
  color: var(--ink);
  font-size: 3.75cqw;
  font-weight: 760;
  letter-spacing: -.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.slide-content {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 2.4cqw;
  overflow: hidden;
  color: var(--graphite);
  font-size: 1.44cqw;
  line-height: 1.52;
}

.slide-content > :first-child {
  margin-top: 0;
}

.slide-content > :last-child {
  margin-bottom: 0;
}

.slide-content p {
  max-width: 80%;
  margin: .55em 0;
}

.slide-content strong {
  color: var(--ink);
  font-weight: 800;
}

.slide-content code {
  display: inline-block;
  padding: .08em .28em;
  background: var(--leaf);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
  font-variant-numeric: tabular-nums;
}

.slide-content ul,
.slide-content ol {
  width: min(100%, 86%);
  margin: .2em 0;
  padding: 0;
  list-style: none;
}

.slide-content li {
  position: relative;
  padding: .42em 0 .42em 1.25em;
  border-top: 1px solid var(--rule-strong);
}

.slide-content li:last-child {
  border-bottom: 1px solid var(--rule-strong);
}

.slide-content ul li::before {
  content: "/";
  position: absolute;
  left: .15em;
  color: var(--forest);
  font-weight: 900;
  transform: skewX(-18deg);
}

.slide-content ol {
  counter-reset: slide-list;
}

.slide-content ol li {
  counter-increment: slide-list;
  padding-left: 2.35em;
}

.slide-content ol li::before {
  content: counter(slide-list, decimal-leading-zero);
  position: absolute;
  left: .1em;
  color: var(--forest);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .82em;
  font-weight: 800;
}

.slide-content blockquote {
  width: min(100%, 82%);
  margin: .2em 0;
  padding: .75em 0 .75em 1em;
  border-left: .32em solid var(--runway);
  color: var(--ink);
  font-size: 1.32em;
  font-weight: 680;
  line-height: 1.42;
}

.slide-content pre {
  max-width: 92%;
  margin: .2em 0;
  padding: .85em 1em;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88em;
  line-height: 1.5;
  white-space: pre-wrap;
}

.slide-table-wrap {
  width: 100%;
  overflow: hidden;
  border-top: .2cqw solid var(--ink);
}

.slide-content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.slide-content th,
.slide-content td {
  padding: .46em .55em;
  border-bottom: 1px solid var(--rule-strong);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.slide-content th {
  color: var(--forest);
  font-size: .8em;
  letter-spacing: .06em;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75em;
  width: min(100%, 86%);
  margin: .35em 0;
  color: var(--ink);
  font-size: 1.18em;
  font-weight: 750;
}

.keyword-row span {
  padding-bottom: .2em;
  border-bottom: .18em solid var(--runway);
}

.slide-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  margin-top: 1.2cqw;
  padding-top: 1cqw;
  border-top: 1px solid var(--rule-strong);
  color: var(--grey);
  font-size: .86cqw;
}

.slide-foot strong {
  color: var(--forest);
}

.layout-title {
  background: var(--ink);
  color: var(--white);
}

.layout-title::after {
  opacity: .22;
}

.layout-title .slide-inner {
  justify-content: flex-end;
  padding-bottom: 4.6cqw;
}

.layout-title .slide-brand-row {
  position: absolute;
  top: 4.2cqw;
  right: 5cqw;
  left: 5cqw;
}

.layout-title .slide-course-label {
  color: var(--leaf);
}

.layout-title .slide-title {
  max-width: 74%;
  color: var(--white);
  font-size: 5.6cqw;
  line-height: .95;
}

.layout-title .slide-content {
  flex: none;
  max-width: 58%;
  min-height: 0;
  margin-top: 2.2cqw;
  overflow: visible;
  color: var(--white);
  font-size: 1.38cqw;
  opacity: .82;
}

.layout-title .slide-content ul {
  width: 100%;
}

.layout-title .slide-content li {
  padding: .2em 0;
  border: 0;
}

.layout-title .slide-content li::before {
  display: none;
}

.layout-title .slide-content strong,
.layout-title .slide-foot strong {
  color: var(--runway);
}

.layout-title .slide-foot {
  color: var(--white);
  border-color: var(--grey);
  opacity: .68;
}

.layout-question .slide-title {
  max-width: 78%;
  font-size: 4.35cqw;
}

.layout-question .slide-content {
  max-width: 72%;
}

.layout-question::marker {
  content: "";
}

.layout-table .slide-content {
  justify-content: flex-start;
  font-size: 1.26cqw;
}

.layout-process .slide-content ol,
.layout-process .slide-content ul {
  width: 100%;
}

.layout-process .slide-content ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.2cqw;
}

.layout-quote .slide-content {
  justify-content: center;
}

.density-medium .slide-title {
  font-size: 3.05cqw;
}

.density-medium .slide-content {
  margin-top: 1.85cqw;
  font-size: 1.25cqw;
}

.density-high .slide-inner,
.slide--compact .slide-inner {
  padding-top: 3.3cqw;
  padding-bottom: 2.5cqw;
}

.density-high .slide-brand-row,
.slide--compact .slide-brand-row {
  margin-bottom: 1.35cqw;
}

.density-high .slide-title,
.slide--compact .slide-title {
  font-size: 2.68cqw;
}

.density-high .slide-content,
.slide--compact .slide-content {
  margin-top: 1.2cqw;
  font-size: 1.06cqw;
  line-height: 1.38;
}

.density-high .slide-content li,
.slide--compact .slide-content li {
  padding-top: .27em;
  padding-bottom: .27em;
}

.slide--micro .slide-inner {
  padding: 2.8cqw 4.1cqw 2.1cqw;
}

.slide--micro .slide-brand-row {
  margin-bottom: 1cqw;
}

.slide--micro .slide-title {
  max-width: 94%;
  font-size: 2.25cqw;
}

.slide--micro .slide-content {
  margin-top: .8cqw;
  font-size: .94cqw;
  line-height: 1.31;
}

.slide--micro .slide-foot {
  margin-top: .6cqw;
  padding-top: .5cqw;
}

.slide--scroll .slide-content {
  overflow: auto;
  scrollbar-color: var(--forest) var(--paper);
}

.progress-track {
  width: min(100%, calc((100dvh - 238px) * 16 / 9), 1380px);
  height: 3px;
  overflow: hidden;
  background: var(--rule-strong);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--forest);
  transition: width 180ms ease;
}

.viewer-controls {
  width: min(100%, calc((100dvh - 238px) * 16 / 9), 1380px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.control-group {
  gap: 7px;
}

.control-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.control-button[aria-pressed="true"] {
  background: var(--leaf);
  border-color: var(--forest);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.control-icon {
  font-size: 19px;
  line-height: 1;
}

.page-status {
  min-width: 80px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: var(--grey);
  font-size: 12px;
}

.page-status strong {
  color: var(--ink);
  font-size: 20px;
}

.keyboard-help {
  margin: 0;
  color: var(--grey);
  font-size: 10px;
}

.notes-panel {
  min-width: 0;
  max-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  background: var(--white);
  border-left: 1px solid var(--rule-strong);
}

.notes-heading,
.directory-header,
.slide-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notes-heading {
  padding: 24px;
  border-bottom: 1px solid var(--rule-strong);
}

.notes-kicker,
.directory-kicker {
  color: var(--forest);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.notes-heading h2,
.directory-header h2 {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.15;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.notes-content {
  height: calc(100% - 85px);
  overflow: auto;
  padding: 24px;
  color: var(--graphite);
  font-size: 14px;
}

.notes-content h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.notes-content h4 {
  margin: 24px 0 8px;
  color: var(--forest);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.notes-content p,
.notes-content ul,
.notes-content ol,
.notes-content table {
  margin: 0 0 13px;
}

.notes-content ul,
.notes-content ol {
  padding-left: 20px;
}

.notes-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.notes-content th,
.notes-content td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--rule-strong);
  text-align: left;
  vertical-align: top;
}

.note-meta {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-strong);
}

.note-meta dt {
  color: var(--grey);
}

.note-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.directory-dialog {
  width: min(1120px, calc(100% - 34px));
  height: min(780px, calc(100dvh - 34px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 30px 100px color-mix(in srgb, var(--ink) 45%, transparent);
}

.directory-dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
}

.directory-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.directory-header {
  flex: none;
  padding: 22px 26px;
  background: var(--ink);
  color: var(--white);
  border-bottom: 6px solid var(--runway);
}

.directory-header .icon-button {
  background: var(--ink);
  color: var(--white);
  border-color: var(--grey);
}

.directory-header .icon-button:hover {
  background: var(--runway);
  color: var(--ink);
  border-color: var(--runway);
}

.directory-body {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
}

.course-directory,
.slide-directory {
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.course-directory {
  border-right: 1px solid var(--rule-strong);
  background: var(--white);
}

.course-directory h3,
.slide-directory h3 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-list {
  display: grid;
}

.course-option {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-top: 1px solid var(--rule-strong);
  text-align: left;
  cursor: pointer;
}

.course-option:last-child {
  border-bottom: 1px solid var(--rule-strong);
}

.course-option:hover,
.course-option[aria-current="true"] {
  background: var(--leaf);
}

.course-option[aria-current="true"] {
  box-shadow: inset 6px 0 0 var(--forest);
}

.course-option-code {
  color: var(--forest);
  font-size: 12px;
  font-weight: 850;
}

.course-option-copy strong,
.course-option-copy small {
  display: block;
}

.course-option-copy strong {
  font-size: 13px;
  line-height: 1.35;
}

.course-option-copy small {
  margin-top: 5px;
  color: var(--graphite);
  font-size: 11px;
  line-height: 1.45;
}

.course-option-meta {
  color: var(--grey);
  font-size: 10px;
  white-space: nowrap;
}

.slide-directory-heading {
  margin-bottom: 14px;
}

.slide-directory-heading h3 {
  margin: 0;
}

.slide-directory-heading span {
  color: var(--grey);
  font-size: 11px;
}

.slide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.slide-option {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.slide-option:hover,
.slide-option[aria-current="true"] {
  background: var(--leaf);
}

.slide-option[aria-current="true"] {
  box-shadow: inset 5px 0 0 var(--forest);
}

.slide-option-number {
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
}

.slide-option-title {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.slide-option-time {
  color: var(--grey);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(440px, calc(100% - 32px));
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-left: 5px solid var(--runway);
  font-size: 12px;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--ink) 35%, transparent);
}

.print-deck {
  display: none;
}

.layout-audit-sandbox {
  position: fixed;
  z-index: -1;
  top: 0;
  left: -10000px;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.layout-audit-sandbox > .slide {
  width: 1280px;
  height: 720px;
}

.viewer-shell:fullscreen,
body.is-pseudo-fullscreen .viewer-shell {
  min-height: 100dvh;
  background: var(--ink);
}

.viewer-shell:fullscreen .stage-region,
body.is-pseudo-fullscreen .stage-region {
  min-height: 100dvh;
  background: var(--ink);
}

.viewer-shell:fullscreen .slide-frame,
body.is-pseudo-fullscreen .slide-frame {
  width: min(96vw, calc((100dvh - 118px) * 16 / 9));
  max-width: none;
  border-color: var(--graphite);
}

.viewer-shell:fullscreen .progress-track,
.viewer-shell:fullscreen .viewer-controls,
body.is-pseudo-fullscreen .progress-track,
body.is-pseudo-fullscreen .viewer-controls {
  width: min(96vw, calc((100dvh - 118px) * 16 / 9));
  max-width: none;
}

.viewer-shell:fullscreen .keyboard-help,
body.is-pseudo-fullscreen .keyboard-help {
  color: var(--grey);
}

body.is-pseudo-fullscreen {
  overflow: hidden;
}

body.is-pseudo-fullscreen .viewer-header {
  display: none;
}

body.is-pseudo-fullscreen .viewer-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
}

@media (max-width: 980px) {
  .viewer-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
  }

  .viewer-brand span,
  .exit-link,
  .course-heading-code {
    display: none;
  }

  .viewer-shell.notes-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-panel {
    max-height: 38dvh;
    border-top: 1px solid var(--grey);
    border-left: 0;
  }

  .notes-content {
    height: calc(38dvh - 75px);
  }

  .directory-body {
    grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 58px;
  }

  .viewer-header {
    min-height: var(--header-height);
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 12px;
  }

  .viewer-brand img {
    width: 72px;
  }

  .course-heading {
    justify-content: flex-start;
  }

  .course-heading-title {
    font-size: 11px;
  }

  .text-button {
    width: 38px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
  }

  .text-button span:last-child {
    display: none;
  }

  .stage-region {
    min-height: auto;
    justify-content: flex-start;
    padding: 18px 10px 14px;
  }

  .slide-frame,
  .progress-track,
  .viewer-controls {
    width: 100%;
  }

  .slide-frame {
    box-shadow: 0 10px 34px color-mix(in srgb, var(--ink) 16%, transparent);
  }

  .slide-content {
    font-size: max(8px, 1.46cqw);
  }

  .density-medium .slide-content {
    font-size: max(7px, 1.27cqw);
  }

  .density-high .slide-content,
  .slide--compact .slide-content {
    font-size: max(6px, 1.08cqw);
  }

  .slide--micro .slide-content {
    font-size: max(5px, .94cqw);
  }

  .viewer-controls {
    gap: 8px;
  }

  .control-group {
    gap: 4px;
  }

  .control-button {
    min-width: 38px;
    min-height: 38px;
    padding: 6px 8px;
  }

  .control-secondary .control-label,
  .control-primary .control-label {
    display: none;
  }

  .page-status {
    min-width: 58px;
  }

  .page-status strong {
    font-size: 17px;
  }

  .keyboard-help {
    display: none;
  }

  .directory-dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
  }

  .directory-body {
    display: block;
    overflow: auto;
  }

  .course-directory,
  .slide-directory {
    overflow: visible;
    padding: 20px;
  }

  .course-directory {
    border-right: 0;
    border-bottom: 1px solid var(--grey);
  }

  .directory-header {
    padding: 16px 18px;
  }

  .directory-header h2 {
    font-size: 18px;
  }

  .notes-heading {
    padding: 14px 18px;
  }

  .notes-content {
    padding: 18px;
  }
}

@media (max-width: 680px) and (orientation: portrait) {
  .slide-frame {
    height: min(64dvh, 540px);
    min-height: 420px;
    aspect-ratio: auto;
  }

  .slide {
    overflow-y: auto;
  }

  .slide::before,
  .slide::after {
    width: 240px;
    height: 4px;
    right: -108px;
  }

  .slide::before {
    top: 112px;
  }

  .slide::after {
    display: none;
  }

  .slide-inner,
  .density-high .slide-inner,
  .slide--compact .slide-inner,
  .slide--micro .slide-inner {
    min-height: 100%;
    padding: 28px 26px 22px;
  }

  .slide-brand-row,
  .density-high .slide-brand-row,
  .slide--compact .slide-brand-row,
  .slide--micro .slide-brand-row {
    margin-bottom: 24px;
  }

  .slide-logo {
    width: 72px;
  }

  .slide-course-label {
    max-width: 52%;
    font-size: 9px;
    text-align: right;
  }

  .slide-title,
  .density-medium .slide-title,
  .density-high .slide-title,
  .slide--compact .slide-title,
  .slide--micro .slide-title {
    max-width: 92%;
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .slide-content,
  .density-medium .slide-content,
  .density-high .slide-content,
  .slide--compact .slide-content,
  .slide--micro .slide-content {
    flex: 0 0 auto;
    justify-content: flex-start;
    margin-top: 24px;
    overflow: visible;
    font-size: 15px;
    line-height: 1.58;
  }

  .slide-content p,
  .slide-content ul,
  .slide-content ol,
  .slide-content blockquote,
  .keyword-row {
    width: 100%;
    max-width: 100%;
  }

  .slide-content pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .slide-content li,
  .density-high .slide-content li,
  .slide--compact .slide-content li {
    padding-top: .48em;
    padding-bottom: .48em;
  }

  .slide-foot,
  .slide--micro .slide-foot {
    margin-top: auto;
    padding-top: 18px;
    font-size: 9px;
  }

  .layout-title .slide-inner {
    justify-content: flex-start;
    padding: 30px 26px 28px;
  }

  .layout-title .slide-brand-row {
    position: absolute;
    top: 28px;
    right: 26px;
    left: 26px;
  }

  .layout-title .slide-title {
    max-width: 95%;
    margin-top: auto;
    font-size: 40px;
    line-height: .98;
  }

  .layout-title .slide-content {
    max-width: 100%;
    margin-top: 22px;
    font-size: 15px;
  }

  .layout-title .slide-foot {
    margin-top: 32px;
  }

  .layout-question .slide-title {
    max-width: 92%;
    font-size: 32px;
  }

  .layout-question .slide-content {
    max-width: 100%;
  }

  .layout-table .slide-content {
    font-size: 12px;
  }

  .layout-process .slide-content ol {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

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

@page {
  size: 16in 9in;
  margin: 0;
}

@media print {
  html,
  body {
    background: var(--white);
  }

  .viewer-header,
  .viewer-shell,
  .directory-dialog,
  .toast,
  .skip-link,
  noscript {
    display: none !important;
  }

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

  .print-slide-page {
    width: 16in;
    height: 9in;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
  }

  .print-slide-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .print-slide-page .slide {
    width: 100%;
    height: 100%;
    border: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
