.reveal .slides section {
  --cf-navy: var(--clean-heading);
  --cf-blue: #3f78a8;
  --cf-teal: var(--clean-accent);
  --cf-gold: #d79a2b;
  --cf-rust: var(--clean-accent-2);
  --cf-ink: var(--clean-ink);
  --cf-muted: var(--clean-muted);
  --cf-pale: var(--clean-surface-soft);
  --cf-line: var(--clean-line);
}

.reveal .slides section.slide.level2 > h2 {
  margin: 0 0 0.55em;
  font-size: 1.42em;
}

.reveal h3 {
  margin: 0 0 0.4em;
  font-size: 0.92em;
}

.reveal p,
.reveal li,
.reveal table {
  line-height: 1.28;
}

.reveal li {
  margin-bottom: 0.26em;
}

.reveal blockquote {
  width: auto;
  margin: 0.7em 0 0.9em;
  padding: 0.48em 0.72em;
  border-left: 7px solid var(--cf-teal);
  background: var(--cf-pale);
  box-shadow: none;
  color: var(--cf-navy);
  font-size: 1.06em;
  font-style: normal;
}

.reveal table {
  width: 100%;
  margin: 0.5em 0;
  border-collapse: collapse;
  font-size: 0.72em;
}

.reveal table th {
  color: var(--cf-navy);
  font-weight: 700;
}

.reveal table th,
.reveal table td {
  padding: 0.35em 0.5em;
  border-bottom: 1px solid var(--cf-line);
  vertical-align: top;
}

.reveal .columns {
  gap: 3%;
}

.reveal .column + .column {
  padding-left: 3%;
  border-left: 2px solid var(--cf-line);
}

.reveal .chart-code {
  align-items: center;
  gap: 2%;
}

.reveal .chart-code .column + .column {
  padding-left: 2%;
}

.reveal .chart-code .cell,
.reveal .chart-code .cell-output-display,
.reveal .chart-code figure {
  margin: 0;
}

.reveal .chart-code pre {
  max-height: none;
  margin: 0;
  overflow: visible;
  font-size: 0.28em;
  line-height: 1;
}

.reveal .chart-code pre code {
  max-height: none;
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.reveal .chart-code img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}

.reveal .slides section > img.r-stretch {
  width: auto !important;
  height: 55vh !important;
  max-width: 100%;
  object-fit: contain;
}

.reveal .data-download {
  margin-top: 0.05em;
  color: var(--cf-muted);
  font-size: 0.5em;
  text-align: right;
}

.reveal .data-download p {
  margin: 0;
}

.reveal .small {
  color: var(--cf-muted);
  font-size: 0.6em;
}

.reveal .compact {
  font-size: 0.88em;
}

.reveal .slides section.climate-finance-slide {
  font-size: 0.92em;
}

.reveal .slides section.study-slide p,
.reveal .slides section.readings-slide p {
  margin: 0.15em 0 0.45em;
}

.reveal .lecture-note,
.reveal .question {
  margin-top: 0.7em;
  padding: 0.45em 0.65em;
  border-left: 7px solid var(--cf-gold);
  background: #fff6df;
  color: var(--cf-ink);
  font-size: 0.82em;
  font-weight: 650;
}

.reveal .lecture-note p,
.reveal .question p {
  margin: 0;
}

.reveal .lecture-note.blue {
  border-left-color: var(--cf-blue);
  background: #eaf2f8;
}

.reveal .lecture-note.rust {
  border-left-color: var(--cf-rust);
  background: #faeeea;
}

.reveal .question {
  border-left-color: var(--cf-teal);
  background: var(--cf-pale);
  color: var(--cf-navy);
}

.reveal .big-number {
  margin: 0.1em 0 0.15em;
  color: var(--cf-navy);
  font-size: 2.55em;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.reveal .big-number.teal {
  color: var(--cf-teal);
}

.reveal .grain-equation,
.reveal .allocation-equation {
  margin: 0.9em 0;
  padding: 0.65em 0.8em;
  border-bottom: 4px solid var(--cf-teal);
  background: var(--cf-pale);
  color: var(--cf-navy);
  font-size: 0.9em;
  text-align: center;
}

.reveal .grain-equation p,
.reveal .allocation-equation p {
  margin: 0.1em 0;
}

.reveal .grain-equation strong,
.reveal .allocation-equation strong {
  color: var(--cf-teal);
  font-size: 1.15em;
}

.reveal .allocation-equation {
  border-bottom-color: var(--cf-gold);
  font-size: 1em;
}

.reveal .slide-number {
  color: var(--cf-muted);
  font-size: 0.55em;
}

.reveal .progress span {
  background: var(--cf-teal);
}

html[data-clean-theme="dark"] .reveal .lecture-note,
html[data-clean-theme="dark"] .reveal .question {
  background: rgba(215, 154, 43, 0.16);
  color: var(--clean-ink);
}

html[data-clean-theme="dark"] .reveal .lecture-note.blue {
  background: rgba(63, 120, 168, 0.2);
}

html[data-clean-theme="dark"] .reveal .lecture-note.rust {
  background: rgba(182, 83, 60, 0.2);
}

html[data-clean-theme="dark"] .reveal .question {
  background: var(--clean-surface-soft);
}
