/* Adapted from qgteach/quant-genetics/styles.css for this presentation.
   Keep the white Reveal theme, 1280x720 canvas and readable column layouts. */
.reveal { font-size: 30px; line-height: 1.2; }
.reveal h2 { font-size: 1.45em; font-weight: 600; margin-bottom: 0.75em; }
.reveal h3 { font-size: 1.15em; margin-bottom: 0.35em; }
.reveal .slide p { margin-top: 0; margin-bottom: 0.7em; }
.reveal .slide ul, .reveal .slide ol { margin: 0.2em 0 0.65em; padding-left: 1.2em; }
.reveal li { margin-bottom: 0.3em; }
.reveal table { font-size: 0.85em; margin: 0 0 0.85em; width: 100%; }
.reveal table th, .reveal table td { padding: 0.35em 0.5em; }
.reveal blockquote { width: 94%; margin: 0 0 0.8em; box-shadow: none;
  padding: 0.3em 0.5em; border-left: 4px solid #2878b5; font-style: normal; }
.reveal pre { font-size: 0.7em; width: 100%; box-shadow: none; }
.reveal .columns { gap: 1.5em; }
.reveal .source { font-size: 0.65em; margin-top: 0.8em; color: #555; }
.reveal .small-text { font-size: 0.8em; }
.reveal figcaption { font-size: 0.65em; color: #555; }
.reveal img { margin: 0; }
.reveal #title-slide h1 { font-size: 1.9em; }
.reveal #title-slide .subtitle { font-size: 1.1em; margin-top: 0.8em; }
.reveal .footer { font-size: 0.5em; }

/* Scoped to the repository table; override Pandoc's inline col widths. */
.reveal .repo-table table { table-layout: fixed; }
.reveal .repo-table col:first-child { width: 20% !important; }
.reveal .repo-table col:nth-child(2) { width: 80% !important; }
.reveal .repo-table th:first-child,
.reveal .repo-table td:first-child { width: 20%; }
.reveal .repo-table th:nth-child(2),
.reveal .repo-table td:nth-child(2) { width: 80%; }

/* Keep the computational diagram and equations within the slide canvas. */
.reveal .computational-slide { font-size: 0.9em; }
.reveal .computational-slide .reml-workflow { width: 100%; max-height: 440px; object-fit: contain; }
.reveal .computational-slide figure { margin: 0; }
.reveal .computational-slide figcaption { display: none; }
/* Compact reference slide: smaller equations, normal-size title. */
.reveal .equation-slide { font-size: 0.73em; }
.reveal .equation-slide h2 { font-size: 1.95em; margin-bottom: 0.65em; }
.reveal .equation-slide h3 { font-size: 1.15em; margin-bottom: 0.3em; }
.reveal .equation-slide .columns { margin-bottom: 0.55em; }
.reveal .equation-slide .math.display { font-size: 0.86em; }
.reveal .equation-slide .MathJax_Display { margin: 0.65em 0; }
.reveal .equation-slide .source { font-size: 0.8em; }

/* Strategy deck: a lighter content density, retaining the technical deck theme. */
.reveal .strategy-slide { font-size: 0.95em; }
.reveal .strategy-slide .strategy-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; margin: 1.15em 0; }
.reveal .strategy-slide .strategy-flow > div { border-top: 3px solid #2878b5; padding-top: 0.5em; }
.reveal .strategy-slide .strategy-step-title { color: #24577c; font-size: 1.15em; font-weight: 600; }
.reveal .strategy-slide table th:first-child { width: 34%; }
.reveal .strategy-slide figure { margin: 0; }

/* Leave a clear gap between each slide title and its content. */
.reveal .slides section > h2 { margin-bottom: 1em; }

/* Supplied building-block figures: preserve aspect ratio and leave room for captions. */
.reveal .building-block-figure figure { margin: 0; }
.reveal .building-block-figure .building-block-image { display: block; width: 100%; height: 505px; object-fit: contain; margin: 0 auto; }
.reveal .building-block-figure figcaption { display: none; }
.reveal .building-block-figure .figure-summary { font-size: 0.72em; margin-top: 0.45em; }

/* Two selected scientific panels remain readable on the case-study slide. */
.reveal .summary-case-results figure { margin: 0 0 0.45em; }
.reveal .summary-case-results .summary-case-image {
  display: block; width: 100%; height: 405px; object-fit: contain;
}
.reveal .summary-case-results figcaption { display: none; }
