/* Shared layout vocabulary. Course colours are bounded metadata, not executable CSS. */
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3.ttf"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.ttf"); font-weight: 200 900; font-display: swap; }
body {
  background: var(--course-paper, #fff);
  color: var(--course-ink, #222);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
}
h1, h2, h3, h4, nav, .sidebar, .reveal {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
main { max-width: 52rem; }
a, strong { color: var(--course-accent, #14666a); }
blockquote {
  border-left: 4px solid var(--course-contrast, #8b4937);
  padding: .2em 1em;
  font-family: "Source Serif 4", Georgia, serif;
}
.definition, .example, .exercise {
  border-left: 4px solid var(--course-accent, #14666a);
  padding: .6em 1em;
  margin: 1em 0;
}
.reveal {
  color: var(--course-ink, #222);
  font-size: 34px;
  line-height: 1.4;
}
body.reveal-viewport { background: var(--course-paper, #fff); }
.reveal .quarto-title-block { text-align: center; }
.reveal .quarto-title-block .title { text-wrap: balance; }
.reveal .quarto-title-author-name { margin-top: 1.5em; }
.reveal a { color: var(--course-accent, #14666a); }
.reveal a:hover { text-decoration: underline; }
.reveal em { font-style: italic; }
.reveal table { border-collapse: collapse; }
.reveal table th, .reveal table td { border-bottom: 1px solid #cbd3d5; }
.reveal figure { margin: .4em 0; }
.reveal figcaption { display: none; }
.reveal code { font-family: ui-monospace, monospace; font-size: .84em; }
.reveal .slides { text-align: left; }
.reveal .slides section { padding: 0; }
.reveal .slides section:not(.stack):not(#title-slide) { height: 100%; box-sizing: border-box; padding-bottom: 110px; }
.reveal h1, .reveal h2, .reveal h3 {
  color: var(--course-ink, #222);
  font-weight: 650;
  line-height: 1.15;
  text-transform: none;
  margin-bottom: .7em;
}
.reveal h1 { font-size: 1.8em; }
.reveal h2 { font-size: 1.45em; border-top: 5px solid var(--course-accent, #14666a); padding-top: .3em; }
.reveal p { margin: .55em 0; }
.reveal ul, .reveal ol { margin: .4em 0 .4em 1.1em; }
.reveal li { margin: .35em 0; }
.reveal table { font-size: .84em; margin: .8em 0; width: 100%; }
.reveal table th { color: var(--course-accent, #14666a); }
.reveal table td, .reveal table th { padding: .35em .6em; }
.reveal blockquote { width: auto; font-style: normal; box-shadow: none; margin: .7em 0; }
.reveal img { max-height: 370px; margin: .4em 0; }
.reveal .tall-figure img { max-height: 500px; }
.reveal .corner-portrait { position: absolute; top: .65em; right: 0; }
.reveal .corner-portrait p, .reveal .corner-portrait figure { margin: 0; }
.reveal .corner-portrait img { height: 118px; width: auto; margin: 0; }
.reveal .portrait-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; align-items: start; }
.reveal .portrait-layout img { width: 250px; height: auto; }
.reveal .portrait-layout .slide-panel > p:first-child { margin-top: 0; }
.reveal .portrait-layout .quarto-figure, .reveal .portrait-layout figure,
.reveal .portrait-layout figure p, .reveal .portrait-layout img { margin: 0; }
.reveal .procedure-figure p, .reveal .procedure-figure figure,
.reveal .procedure-figure .quarto-figure { margin: 0; }
.reveal .procedure-figure img { display: block; margin: 0; }
.reveal #law-of-errors .slide-panel:nth-child(2) .procedure-figure img { margin-inline: auto; }
.reveal .calculation-columns th:nth-last-child(2),
.reveal .calculation-columns td:nth-last-child(2) { border-left: 2px solid #81999a; }
.reveal pre { width: 100%; box-shadow: none; font-size: .72em; }
.reveal .code-copy-button { display: none; }
.reveal .slide-number {
  font-size: 20px; background: transparent; color: var(--course-ink, #222);
  left: 24px; right: auto; bottom: 12px;
}
.reveal .slide-number a { text-decoration: none; }
.reveal .controls, .reveal .progress { color: var(--course-accent, #14666a); }
.reveal .notes { display: none; }
.reveal .slide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; align-items: start; }
.reveal .slide-panel { min-width: 0; }
.reveal .slide-panel img { max-width: 100%; }
.reveal .slide-footnote { position: absolute; bottom: 0; left: 0; width: 100%; box-sizing: border-box; font-size: 18px; line-height: 1.35; margin-top: 0; border-top: 1px solid #cbd3d5; padding-top: .4em; }
.reveal .slide-footnote p { margin: .2em 0; }
/* Reveal's print pages include margins; keep the slide canvas inside them. */
.print-pdf .reveal .slides section:not(.stack):not(#title-slide) { height: 720px !important; top: 21px !important; }
.print-pdf .reveal .pdf-page .slide-number { bottom: 0; padding: 0; font-size: 14px; line-height: 1; }
.reveal .etymology td:nth-child(3) { font-family: "Source Serif 4", Georgia, serif; }
@media (max-width: 700px) {
  main { padding: 0 1rem; }
  body:not(.reveal-viewport) { font-size: 17px; }
  table { display: block; overflow-x: auto; }
}
