/* More compact Obsidian presentations */

.reveal {
  font-size: 26px !important;
}

/* Reduce unused space */
.reveal .slides section {
  box-sizing: border-box;
  padding: 12px 24px !important;
}

/* More compact headings */
.reveal h1 {
  font-size: 1.75em !important;
  line-height: 1.08;
  margin: 0 0 0.35em;
}

.reveal h2 {
  font-size: 1.25em !important;
  line-height: 1.12;
  margin: 0.25em 0 0.4em;
}

.reveal h3 {
  font-size: 1em !important;
  margin: 0.25em 0;
}

/* Compact paragraphs and lists */
.reveal p,
.reveal li {
  line-height: 1.22;
}

.reveal ul,
.reveal ol {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

.reveal li + li {
  margin-top: 0.16em;
}

/* Code blocks require substantially less space */
.reveal pre {
  font-size: 0.58em !important;
  line-height: 1.15;
  margin: 0.4em auto;
  max-height: 55vh;
  overflow: auto;
}

.reveal pre code {
  font-size: 1em !important;
}

/* Tables */
.reveal table {
  font-size: 0.72em !important;
}

/* Images and Mermaid diagrams */
.reveal img {
  max-height: 56vh;
  object-fit: contain;
}

.reveal .mermaid svg {
  max-height: 56vh;
  width: 100% !important;
}