:root {
  --ink: #202b35;
  --muted: #65717b;
  --annotation-color: #485560;
  --slide-inline-padding: 28px;
  --paper: #fffefa;
  --green: #126b60;
  --blue: #2358c4;
  --line: #d9ded9;
  --pale: #eef4ef;
  --demo-bg: #fffefa;
  --demo-line: #bac6c7;
  --demo-muted: #687680;
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[data-drag]:focus-visible {
  outline: 3px solid #e29539;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 12px;
}
button:hover {
  background: var(--pale);
  border-color: #93b7a9;
}
button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
[hidden] {
  display: none !important;
}
.math-accessible {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.typeset-math {
  display: inline-block;
  font-size: 1.02em;
  line-height: 1.1;
  vertical-align: baseline;
  max-width: 100%;
}
.typeset-math > svg {
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.typeset-math.is-display {
  display: block;
  margin: 0.55em 0;
  text-align: center;
  line-height: 1.25;
}
.typeset-math.is-display > svg {
  vertical-align: middle !important;
}
.skip-link {
  position: fixed;
  left: 14px;
  top: -100px;
  z-index: 3000;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 5px;
}
.lecture-toolbar {
  height: 57px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  z-index: 40;
  background: rgba(255, 254, 250, 0.97);
  font-size: 14px;
}
.course-brand {
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.course-brand span {
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
}
.lecture-toolbar nav {
  display: flex;
  gap: 8px;
}
.lecture-toolbar button {
  background: transparent;
  border-color: transparent;
  padding: 7px 9px;
}
.lecture-toolbar button:hover {
  background: var(--pale);
}
kbd {
  font-family: inherit;
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
  color: var(--muted);
}
.lecture-navigation {
  position: fixed;
  height: 47px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0 28px;
  z-index: 40;
  font-size: 13px;
}
.lecture-navigation button {
  padding: 4px 10px;
  border-color: transparent;
}
.lecture-navigation #page-position {
  font-variant-numeric: tabular-nums;
  min-width: 86px;
}
.lecture-navigation #section-position {
  margin-left: 14px;
  color: var(--muted);
}
.key-help {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.reveal {
  position: fixed;
  inset: 57px 0 47px;
  height: auto;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.45;
  overflow: hidden;
}
.reveal .slides {
  text-align: left;
}
.reveal .slides > section.lecture-slide {
  height: 100%;
  padding: 11px var(--slide-inline-padding) 40px;
  top: 0 !important;
  box-sizing: border-box;
  line-height: 1.43;
}
.slide-heading {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.slide-heading > p {
  font-size: 16px;
  color: var(--green);
  font-weight: 650;
  margin: 0 0 7px;
  letter-spacing: 0.05em;
}
.slide-heading h2 {
  font-size: 37px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 720;
}
.slide-heading h2 .typeset-math {
  font-size: 0.95em;
}
.interactive-label {
  color: var(--muted);
  font-size: 13px;
  margin-left: 15px;
  font-weight: 450;
  letter-spacing: 0;
}
.slide-body {
  font-size: calc(25px * var(--content-scale, 1));
  line-height: 1.43;
}
.slide-body > p:first-child {
  margin-top: 0;
}
.slide-body p {
  margin: 0 0 0.65em;
}
.slide-body ul,
.slide-body ol {
  margin: 0.4em 0 0.5em;
  padding-left: 1.2em;
}
.slide-body li {
  padding-left: 0.15em;
  margin-bottom: 0.45em;
}
.slide-body li p {
  margin: 0;
}
.slide-body .columns {
  display: flex;
  gap: 34px;
  align-items: flex-start;
}
.slide-body .column {
  flex: 1;
  min-width: 0;
}
.slide-body .block {
  margin: 0 0 0.8em;
  border-left: 3px solid #b7cebd;
  padding-left: 18px;
}
.slide-body h3 {
  font-size: 1em;
  line-height: 1.3;
  margin: 0 0 0.55em;
  color: var(--green);
  font-weight: 700;
}
.slide-body strong {
  font-weight: 700;
}
.slide-body .center {
  text-align: center;
}
.slide-body .source-figure {
  margin: 8px 0 12px;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.dense-slide .slide-body {
  font-size: calc(22px * var(--content-scale, 1));
}
.slide-footer {
  position: absolute;
  left: var(--slide-inline-padding);
  right: var(--slide-inline-padding);
  bottom: 11px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--annotation-color);
  font-size: 16px;
  line-height: 1.35;
}
.slide-footer > span:first-child {
  max-width: 90%;
}
.slide-footer > span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cover .slide-body {
  height: 100%;
}
.cover-copy {
  position: relative;
  z-index: 2;
  padding: 64px 0 0;
  max-width: 840px;
}
.cover-kicker {
  font-size: 20px !important;
  color: var(--green);
  letter-spacing: 0.13em;
}
.cover h1 {
  font-size: 80px;
  line-height: 1.1;
  margin: 20px 0 22px;
  letter-spacing: -0.05em;
  font-weight: 760;
}
.cover-subtitle {
  font-size: 32px;
  color: var(--muted);
  margin-bottom: 46px !important;
}
.cover-equation {
  color: var(--muted);
  font-size: 29px;
  max-width: 790px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  margin-bottom: 26px;
}
.cover-guide {
  font-size: 22px;
  color: var(--muted);
  line-height: 1.65;
}
.cover-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.cover-actions button {
  font-size: 17px;
  background: var(--green);
  border-color: var(--green);
  color: white;
  padding: 12px 18px;
}
.cover-actions .quiet {
  color: var(--green);
  background: var(--paper);
  border-color: var(--line);
}
.cover-credit {
  font-size: 14px;
  line-height: 1.7;
  position: absolute;
  bottom: 55px;
  left: var(--slide-inline-padding);
  color: var(--muted);
}
.cover-art {
  position: absolute;
  width: 510px;
  right: -70px;
  top: 30px;
  height: 610px;
  opacity: 0.48;
  pointer-events: none;
}
.cover-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cover-art path {
  fill: none;
  stroke: #a9c5b4;
  stroke-width: 1;
}
.cover-art .cover-path {
  stroke: #17695f;
  stroke-width: 3;
}
.cover-art circle {
  fill: #17695f;
  stroke: white;
  stroke-width: 2;
}
.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper), transparent 55%);
}
.original-details {
  display: none;
}
.source-note {
  font-size: 16px;
  color: var(--annotation-color);
  line-height: 1.5;
}
.interactive-slide .slide-heading {
  margin-bottom: 9px;
  padding-bottom: 13px;
}
.interactive-slide .slide-body {
  font-size: 20px;
}
.lab-equation {
  font-size: 23px;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
}
.lab-equation .is-display {
  margin: 0.2em 0;
}
.lab-prompt {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
  min-height: 46px;
  margin: 5px 0 12px !important;
}
.lecture-lab {
  font-size: 16px;
  line-height: 1.35;
  --demo-bg: #fffefa;
  --demo-grid: #e6ebe7;
}
.lab-grid {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.lab-controls {
  padding: 14px 18px 12px 0;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.lab-control {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.lab-control > span {
  display: block;
  font-weight: 550;
  margin-bottom: 4px;
}
.lab-control .input-pair {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lab-control input[type="range"] {
  width: 100%;
  min-width: 25px;
  accent-color: var(--green);
  cursor: pointer;
  margin: 3px 0;
  height: 19px;
}
.lab-control input[type="number"] {
  width: 62px;
  min-width: 62px;
  background: #fff;
  padding: 4px 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.lab-control select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--ink);
}
.point-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.point-controls input[type="number"] {
  width: 100%;
  min-width: 0;
}
.play-controls,
.lab-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.play-controls button,
.lab-tools button {
  font-size: 13px;
  padding: 6px 9px;
}
.play-controls button:first-child {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.lab-tools {
  padding-top: 3px;
}
.lab-main {
  min-width: 0;
  padding-top: 6px;
}
.lab-chart {
  width: 100%;
  min-width: 0;
  min-height: 235px;
}
.lab-chart > svg {
  max-width: 100%;
  width: 100%;
  max-height: 340px;
  display: block;
}
.lab-chart svg {
  overflow: visible;
  color: var(--ink);
  font-family: inherit;
}
.lab-chart svg text {
  font-family: inherit;
  font-size: 16px;
}
.lab-chart :is(.demo-axes text, text[fill^="var(--demo-muted"], text[fill="#7c8794"], text[fill="#687680"], text[fill="#65717b"]) {
  --plot-label-size: 21;
  --plot-label-color: var(--annotation-color);
  fill: var(--annotation-color);
  font-size: 21px;
}
.demo-grid {
  stroke: var(--line);
  stroke-width: 0.7;
  fill: none;
}
.lab-chart [data-drag] {
  cursor: grab;
  touch-action: none;
}
.lab-chart .nonquad-charts,
.lab-chart .demo-plots,
.lab-chart .demo-dual,
.lab-chart .demo-split,
.lab-chart .nonquadratic-plots,
.lab-chart .lab-plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lab-chart figure {
  margin: 0;
  min-width: 0;
}
.lab-chart figure svg {
  width: 100%;
  height: auto;
}
.lab-chart figcaption {
  font-size: 16px;
  color: var(--annotation-color);
  text-align: center;
  margin: 3px 0 5px;
}
.lab-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.lab-metric {
  font-size: 15px;
  color: var(--annotation-color);
  line-height: 1.35;
  min-width: 0;
}
.lab-metric strong {
  font-size: 19px;
  line-height: 1.4;
  display: block;
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.lab-notice {
  font-size: 16px;
  line-height: 1.45;
  color: var(--annotation-color);
  margin-top: 12px !important;
}
.lab-legend {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.4;
  margin: 8px 0;
}
.lab-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lab-legend i {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--legend-color);
}
.lab-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 9px;
  font-size: 13px;
}
.lab-methods label {
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  gap: 4px;
  align-items: center;
}
.lab-methods input {
  accent-color: var(--method-color, var(--green));
}
.shared-note {
  font-size: 11px;
  color: var(--green);
  line-height: 1.4;
  margin: 0 !important;
}
.lab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.lab-table th,
.lab-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.lab-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.lab-table .accepted {
  background: #e8f3e8;
  color: #175c38;
}
.lab-table .rejected {
  color: #a83f46;
}
.lab-chart .cost-bars {
  padding: 20px 15px;
  display: grid;
  gap: 24px;
}
.cost-row {
  display: grid;
  grid-template-columns: 135px 1fr 130px;
  gap: 16px;
  align-items: center;
  font-size: 16px;
}
.cost-bar {
  height: 24px;
  background: var(--green);
  min-width: 2px;
}
.cost-row:first-child .cost-bar {
  background: var(--blue);
}
.lab-question {
  font-size: 18px;
  color: var(--green);
  border-left: 3px solid #bed1c0;
  padding-left: 14px;
  margin: 20px 0;
}
.lab-loading {
  color: var(--muted);
  font-size: 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 80px #10281c29;
  background: var(--paper);
  color: var(--ink);
  width: min(850px, calc(100vw - 40px));
  max-height: calc(100dvh - 60px);
  padding: 24px;
  font-size: 16px;
}
dialog::backdrop {
  background: #162a24a6;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.dialog-header h2 {
  margin: 0;
  font-size: 24px;
}
.dialog-header button {
  padding: 2px 10px;
  font-size: 24px;
  border-color: transparent;
}
.search-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.search-label input {
  display: block;
  margin-top: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 16px;
  color: var(--ink);
}
#toc-list {
  padding: 10px 0;
  max-height: 60dvh;
  overflow: auto;
}
#toc-list h3 {
  font-size: 13px;
  color: var(--green);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 12px 0 6px;
}
#toc-list a {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 15px;
  border-radius: 5px;
}
#toc-list a:hover,
#toc-list a[aria-current="page"] {
  background: var(--pale);
}
#toc-list a > span:first-child {
  font-size: 12px;
  color: var(--muted);
  width: 26px;
}
#toc-list b {
  font-size: 10px;
  color: var(--green);
  margin-left: auto;
  font-weight: 500;
}
.dialog-help {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
#lab-dialog-content {
  line-height: 1.6;
}
#lab-dialog-content .lab-control {
  margin-bottom: 15px;
  max-width: 350px;
}
#lab-dialog-content .lab-control input[type="number"] {
  width: 90px;
  min-width: 90px;
}
#lab-dialog-content table {
  font-size: 13px;
  border-collapse: collapse;
  width: 100%;
  overflow: auto;
}
#lab-dialog-content td,
#lab-dialog-content th {
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
#lab-dialog-content .demo-details-table-wrap {
  overflow: auto;
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: #183c32;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  max-width: 85vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
}
.noscript-message {
  position: fixed;
  bottom: 0;
  z-index: 100;
  background: #fff2d6;
  width: 100%;
  margin: 0;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}
.reading .reveal,
html:not(.js) .reveal {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  overflow: visible;
  margin: 57px 0 47px;
}
.reading .reveal .slides,
html:not(.js) .reveal .slides {
  position: static;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  max-width: 1180px;
  margin: 0 auto;
  perspective: none;
}
.reading .reveal .slides > section.lecture-slide,
html:not(.js) .reveal .slides > section.lecture-slide {
  position: relative !important;
  display: block !important;
  width: 100%;
  height: auto;
  min-height: 650px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  top: auto !important;
  padding: 44px 48px 65px;
  border-bottom: 1px solid var(--line);
  margin: 0;
  scroll-margin-top: 57px;
  pointer-events: auto;
}
.reading .slide-heading h2 {
  font-size: 31px;
}
.reading .slide-body {
  font-size: 20px;
  line-height: 1.65;
}
.reading .dense-slide .slide-body {
  font-size: 19px;
}
.reading .fragment,
html:not(.js) .fragment {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.reading .original-details {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 25px;
  font-size: 18px;
}
.original-details summary {
  cursor: pointer;
  color: var(--green);
  font-size: 14px;
  margin-bottom: 15px;
}
.reading .cover-copy {
  padding-top: 20px;
}
.reading .cover {
  min-height: 800px !important;
}
.reading .cover h1 {
  font-size: 70px;
}
.reading .cover .slide-body {
  font-size: 24px;
}
.reading .cover-credit {
  position: static;
  margin: 45px 0 0;
}
.reading .cover-art {
  right: -10px;
  top: 40px;
}
.reading .lab-equation {
  font-size: 21px;
}
.reading .lecture-lab {
  font-size: 16px;
}
.reading #expand-toggle {
  display: none;
}
.reading .key-help {
  display: none;
}
.reading .lab-chart > svg {
  max-height: 400px;
}
.reading .slide-footer {
  font-size: 13px;
}
.reading .lab-notice {
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .lecture-toolbar {
    padding: 0 14px;
  }
  .course-brand span {
    display: none;
  }
  .lecture-toolbar nav {
    gap: 1px;
  }
  .lecture-toolbar button {
    font-size: 12px;
    padding: 7px;
  }
  .lecture-toolbar kbd {
    display: none;
  }
  .lecture-navigation {
    padding: 0 12px;
  }
  .reading .reveal .slides > section.lecture-slide {
    padding: 30px 24px 55px;
    min-height: 0;
  }
  .reading .slide-body,
  .reading .dense-slide .slide-body {
    font-size: 18px;
  }
  .reading .slide-heading h2 {
    font-size: 26px;
  }
  .reading .slide-body .columns {
    gap: 22px;
  }
  .reading .lab-grid {
    grid-template-columns: 200px 1fr;
    gap: 18px;
  }
  .reading .lab-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reading .slide-footer {
    left: 24px;
    right: 24px;
  }
  .reading .cover {
    min-height: 720px !important;
  }
  .reading .cover-art {
    opacity: 0.25;
    width: 400px;
  }
  .reading .cover h1 {
    font-size: 55px;
  }
  .reading .cover-subtitle {
    font-size: 27px;
  }
  .reading .cover-equation {
    font-size: 23px;
  }
  .reading .lab-chart .nonquad-charts,
  .reading .lab-chart .demo-plots,
  .reading .lab-chart .demo-dual,
  .reading .lab-chart .lab-plots {
    grid-template-columns: 1fr;
  }
  .reading .lab-chart figure svg {
    max-height: 300px;
  }
  .reading .lab-chart figcaption {
    font-size: 13px;
  }
}
@media (max-width: 620px) {
  #fullscreen,
  #expand-toggle {
    display: none;
  }
  .lecture-toolbar nav button {
    font-size: 11px;
    padding: 6px 5px;
  }
  .lecture-toolbar {
    height: 51px;
  }
  .course-brand {
    font-size: 12px;
  }
  .reading .reveal {
    margin-top: 51px;
  }
  .reading .reveal .slides > section.lecture-slide {
    padding: 26px 18px 55px;
    scroll-margin-top: 51px;
  }
  .reading .slide-heading h2 {
    font-size: 24px;
  }
  .reading .slide-heading > p {
    font-size: 12px;
  }
  .reading .slide-body .columns {
    display: block;
  }
  .reading .slide-body .column {
    margin-bottom: 20px;
  }
  .reading .lab-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .reading .lab-controls {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 15px;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }
  .reading .lab-control {
    font-size: 13px;
  }
  .reading .lab-control input[type="number"] {
    width: 54px;
    min-width: 54px;
  }
  .reading .lab-main {
    width: 100%;
  }
  .reading .shared-note {
    grid-column: 1/-1;
  }
  .reading .lab-methods {
    font-size: 12px;
  }
  .reading .lab-equation {
    font-size: 18px;
  }
  .reading .lab-chart figure svg {
    max-height: none;
  }
  .reading .lab-metric strong {
    font-size: 18px;
  }
  .reading .slide-footer {
    left: 18px;
    right: 18px;
  }
  .reading .cover h1 {
    font-size: 49px;
  }
  .reading .cover-subtitle {
    font-size: 23px;
    margin-bottom: 30px !important;
  }
  .reading .cover-guide {
    font-size: 18px;
  }
  .reading .cover-equation {
    font-size: 21px;
  }
  .reading .cover-kicker {
    font-size: 15px !important;
  }
  .reading .cover-actions {
    flex-wrap: wrap;
  }
  .reading .cover-actions button {
    font-size: 14px;
  }
  .reading .cover-art {
    right: 0;
    width: 300px;
    top: 70px;
  }
  .lab-table {
    font-size: 12px;
  }
  .lab-table th,
  .lab-table td {
    padding: 6px 4px;
  }
  .cost-row {
    grid-template-columns: 100px 1fr 85px;
    font-size: 12px;
    gap: 10px;
  }
  .reading .lab-prompt {
    font-size: 16px;
  }
  .lecture-navigation #section-position {
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .reading .source-figure:has(img:nth-child(2)) {
    flex-direction: column;
  }
  .reading .source-figure:has(img:nth-child(2)) img {
    max-width: 100%;
    max-height: 300px;
  }
}
@media print {
  .lecture-toolbar,
  .lecture-navigation,
  dialog,
  #toast,
  .lab-tools,
  .play-controls,
  .lab-controls,
  .lab-methods,
  .skip-link {
    display: none !important;
  }
  .reveal,
  .reading .reveal {
    position: static !important;
    inset: auto !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .reveal .slides {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
  }
  .reveal .slides > section.lecture-slide {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12mm !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    break-before: page;
    break-inside: avoid;
    page-break-before: always;
  }
  .slide-body {
    font-size: 16px !important;
  }
  .slide-heading h2 {
    font-size: 27px !important;
  }
  .slide-heading > p {
    font-size: 12px;
  }
  .slide-footer {
    position: static;
    margin-top: 20px;
    font-size: 9px;
  }
  .fragment {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .lab-grid {
    display: block;
  }
  .lab-chart > svg {
    max-height: 300px;
  }
  .lab-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .lab-notice {
    font-size: 11px;
  }
  .original-details {
    display: none !important;
  }
  .cover-art {
    display: none;
  }
  .cover h1 {
    font-size: 50px;
  }
  .cover-credit {
    position: static;
    margin-top: 40px;
  }
  .cover-actions {
    display: none;
  }
  .cover-copy {
    padding: 0;
  }
  .lab-loading {
    display: none;
  }
  .typeset-math > svg {
    break-inside: avoid;
  }
  @page {
    size: A4 landscape;
    margin: 8mm;
  }
}

.all-visible .fragment {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.reading .cover {
  overflow: hidden;
}

.formula-wide {
  display: block;
  max-width: 100%;
}
.formula-compact {
  display: none;
  max-width: 100%;
}
@media (max-width: 620px) {
  .reading .formula-wide {
    display: none;
  }
  .reading .formula-compact {
    display: block;
  }
  .reading .slide-body .typeset-math.is-display {
    overflow-x: auto;
    padding: 3px 0;
  }
  .reading .slide-body .typeset-math.is-display > svg {
    max-width: none;
  }
  .reading .lab-equation .typeset-math.is-display > svg,
  .reading .cover-equation .typeset-math.is-display > svg {
    max-width: 100%;
  }
  .reading .point-controls {
    grid-column: 1/-1;
  }
}

.lab-chart .nonquad-charts:has(> figure:only-child) {
  grid-template-columns: 1fr;
}
.lab-chart .nonquad-charts:has(> figure:only-child) svg {
  max-height: 300px;
}
.reading .lab-chart .nonquad-charts:has(> figure:only-child) svg {
  max-height: 400px;
}
.nonquad-table-scroll,
.spine-table-scroll {
  overflow-x: auto;
}

/* Keep the section name once, in the slide's lower-left corner. */
.slide-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.slide-heading h2 {
  min-width: 0;
  flex: 1;
}
.slide-heading > .interactive-label {
  margin-left: 0;
  white-space: nowrap;
}
.slide-footer.has-section-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: last baseline;
  column-gap: 22px;
}
.slide-footer .slide-section {
  font-size: 16px;
  line-height: 1.43;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--green);
}
.slide-footer.has-section-label > .slide-section {
  max-width: none;
  white-space: nowrap;
}
.slide-footer .slide-source {
  min-width: 0;
  overflow-wrap: anywhere;
}
.slide-footer .slide-source a {
  color: inherit;
}
.lecture-navigation #section-position {
  display: none;
}
@media (max-width: 820px) {
  :is(.reading, html:not(.js)) .slide-footer.has-section-label {
    column-gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  :is(.reading, html:not(.js)) .slide-footer.has-section-label > .slide-section {
    white-space: normal;
  }
  :is(.reading, html:not(.js)) .slide-footer.has-section-label .slide-source {
    grid-column: 1/-1;
    grid-row: 2;
  }
  :is(.reading, html:not(.js)) .slide-footer.has-section-label > span:last-child {
    grid-column: 2;
    grid-row: 1;
  }
  .reading .reveal .slides > section.lecture-slide:has(> .has-section-label) {
    padding-bottom: 86px;
  }
}
@media (max-width: 620px) {
  :is(.reading, html:not(.js)) .slide-footer .slide-section {
    font-size: 12px;
  }
}
@media print {
  .slide-footer .slide-section {
    font-size: 12px;
  }
  .slide-footer.has-section-label {
    column-gap: 14px;
  }
}
