/* slides.css — reveal.js theme that mirrors the typography of the Quarto
   book site (Bootstrap "Cosmo" theme in docs/site_libs/bootstrap).
   Drop-in replacement for reveal.js dist/theme/simple.css. */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap");

:root {
  --r-background-color: #fff;
  --r-main-font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-main-font-size: 32px;
  --r-main-color: #343a40;
  --r-block-margin: 20px;
  --r-heading-font: var(--r-main-font);
  --r-heading-color: #343a40;
  --r-heading-line-height: 1.2;
  --r-heading-font-weight: 400;
  --r-code-font: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --r-link-color: #2761e3;
  --r-link-color-hover: #1f4db6;
  --r-selection-background-color: #2780e3;
  --r-selection-color: #fff;
}

.reveal-viewport {
  background: var(--r-background-color);
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  color: var(--r-main-color);
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
}

/* Top-align slides: override reveal.js's inline `top` (it vertically
   centers slides when `center: true`) and offset content from the top. */
.reveal .slides section,
.reveal .slides section > section {
  top: 0 !important;
  line-height: 1.3;
  padding-top: 40px;
  text-align: left;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-block-margin) 0;
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height);
  text-align: left;
}

.reveal h1 { font-size: 2.0em; }
.reveal h2 { font-size: 1.75em; font-weight: 600; }
.reveal h3 { font-size: 1.5em; font-weight: 600; }
.reveal h4 { font-size: 1em; }

/* Keep the title slide centered. */
#title-slide {
  text-align: center;
}

/* Title heading: centered, weight matching the h2 titles on other slides. */
#title-slide h1 {
  text-align: center;
  font-weight: 600;
}

.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.3;
}

.reveal strong,
.reveal b { font-weight: 700; }

.reveal em,
.reveal i { font-style: italic; }

.reveal ol,
.reveal dl,
.reveal ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
}

.reveal ol { list-style-type: decimal; }
.reveal ul { list-style-type: disc; }
.reveal ul ul { list-style-type: square; }
.reveal ul ul ul { list-style-type: circle; }

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
  display: block;
  margin-left: 40px;
}

.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
}

.reveal code {
  font-family: var(--r-code-font);
}

.reveal pre {
  display: block;
  width: 90%;
  margin: var(--r-block-margin) auto;
  text-align: left;
  font-size: 0.55em;
  font-family: var(--r-code-font);
  line-height: 1.2em;
}

.reveal pre code {
  display: block;
  padding: 5px;
  overflow: auto;
  max-height: 400px;
}

.reveal blockquote {
  display: block;
  position: relative;
  width: 90%;
  margin: var(--r-block-margin) auto;
  font-style: italic;
}

.reveal table {
  margin: auto;
  border-collapse: collapse;
}

.reveal table th { font-weight: 700; }

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.2em 0.5em;
  border-bottom: 1px solid;
}

.reveal img {
  max-width: 95%;
  max-height: 95%;
}

h2.exercise { font-style: italic; }
li.yes::marker { content: "✔ "; }
li.no::marker { content: "✖ "; }
