/* Talk-specific styles on top of Quarto's default reveal.js theme. */
.reveal .title-block { text-align: center; }
.reveal .title-block .talk-title { display: block; font-size: 2.4em; font-weight: bold; color: #2a4a8b; margin-bottom: 0.4em; }
.reveal .title-block .subtitle { display: block; font-size: 1.2em; font-style: italic; color: #555; }
.reveal .title-block .byline { display: block; margin-top: 2em; }

.reveal .quote { max-width: 1250px; margin: 0 auto; text-align: center; font-size: 1.15em; line-height: 1.5; }
.reveal .slide blockquote { width: 92%; font-size: 1.0em; line-height: 1.45; border-left: 6px solid #3a5a9b; padding-left: 0.8em; font-style: normal; }
.reveal .attribution { display: block; text-align: right; font-style: italic; color: #555; margin-top: 0.8em; }
.reveal .quote .attribution { text-align: center; }
.reveal .small-note { display: block; color: #666; margin-top: -0.6em; font-size: 0.8em; }
.reveal .source { display: block; font-size: 0.45em; color: #666; margin-top: 2em; }

/* side-by-side figure pair (visual cortex slide) */
.reveal .cortex-pair p { display: flex; justify-content: center; align-items: center; gap: 4%; margin: 0.6em 0 1.2em; }
.reveal .cortex-pair img { width: 44%; max-height: 520px; object-fit: contain; margin: 0; }
.reveal .credit { display: block; text-align: center; font-size: 0.5em; color: #777; margin-top: 0.2em; }

/* image-only slides: ## {.full} */
.reveal .full p, .reveal .full figure { text-align: center; margin: 0; }
.reveal .full img { max-height: 820px; max-width: 100%; margin: 0 auto; display: block; }

.reveal .digits { font-size: 0.55em; line-height: 1.4; color: #444; }
.reveal .theorem { max-width: 1200px; margin: 0 auto; padding: 0.8em 1.2em; border-left: 6px solid #3a5a9b; background: #f2f5fb; }

.reveal .demo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; margin-top: 0.5em; }
.reveal .demo-grid a { display: block; text-align: center; color: inherit; text-decoration: none; font-size: 0.5em; }
.reveal .demo-grid img { width: 190px; height: 190px; margin: 0 auto 0.25em; border-radius: 50%; display: block; }
.reveal .demo-grid a:hover img { outline: 4px solid #3a5a9b; }

/* live app embeds: ## {.demo} */
.reveal .demo iframe { width: 100%; height: 800px; border: none; display: block; }
.reveal .demo-caption { display: block; text-align: right; font-size: 0.55em; color: #555; margin: 0.2em 0 0; }

/* one-line captions under figures (Farey/Schmidt slides) */
.reveal .caption { display: block; text-align: center; margin-top: 0.3em; }
.reveal-viewport { background: #f0f1eb; }
.reveal .demo-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: 0.8em; }
.reveal .demo-grid-3 a { font-size: 0.65em; }
.reveal .demo-grid-3 img { width: 260px; height: 260px; }
.reveal .thanks { display: block; text-align: center; font-size: 1.6em; margin-top: 0.1em; color: #2a4a8b; }
.reveal .thanks-quote { display: block; text-align: center; font-size: 0.8em; font-style: italic; color: #555; margin-top: 0.5em; }
.reveal #thank-you p { text-align: center; margin: 0; }

/* stacked, aligned layers; later layers fade in as fragments */
.reveal .morph-stack { position: relative; width: 1180px; aspect-ratio: 2400 / 1180; margin: 40px auto 0; }
.reveal .morph-stack p { margin: 0; }
.reveal .morph-stack img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
.reveal .morph-stack .fragment.fade-in { transition: opacity 1.6s ease; }

/* title slide: mandala beside the title */
.reveal .title-layout { display: flex; align-items: center; gap: 70px; }
.reveal .title-layout > p { flex: 0 0 600px; margin: 0; }
.reveal .title-layout img.title-mandala { width: 600px; height: 600px; max-width: none; max-height: none; margin: 0; }
.reveal .title-layout .title-block { flex: 1 1 auto; }

/* hidden fragments that step a staged iframe (see fragments.html) */
.reveal .fragment.stage { display: none; }
