/* Reading presentation v1. Keep content editions immutable.
 * Source Serif 4 5.3.0, SIL OFL; bundled with the public reader.
 * Only prose/headings use the serif. Math and code retain their own fonts.
 */
@font-face {
  font-family: "Source Serif 4";
  src: url("../../assets/fonts/source-serif-4/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../../assets/fonts/source-serif-4/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../../assets/fonts/source-serif-4/source-serif-4-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../../assets/fonts/source-serif-4/source-serif-4-latin-700-italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
article.lecture {
  --lb-font-body: "Source Serif 4", serif;
  --lb-font-display: "Source Serif 4", serif;
  --lb-line-height: 1.6;
  font-family: var(--lb-font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: var(--lb-line-height);
  letter-spacing: normal;
  word-spacing: normal;
  font-feature-settings: normal;
  font-kerning: auto;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 44rem;
  min-width: 0;
  overflow-wrap: break-word;
}
article.lecture p { margin-block: 0 1.2em; }
/* Let grid children shrink when text is enlarged. Wide tables/equations
 * already have their own scroll containers; don't clip the whole article. */
.lecture-shell { min-width: 0; }
article.lecture .watch-these .wt-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
article.lecture .wt-card { min-width: 0; }
article.lecture .calc-card-inner { max-width: 100%; overflow-x: auto; }
/* Anchor KaTeX's visually hidden, absolutely positioned MathML to its
 * formula. Otherwise it can enlarge the document's scroll area at zoom.
 * This does not replace the math font or hide its accessible MathML. */
article.lecture .katex { position: relative; }
@media (min-width: 960px) {
  .lecture-shell { grid-template-columns: 16rem minmax(0, 1fr); }
}
body,
header.site,
footer.site,
.lecture-breadcrumb,
.lecture-wrapper-footer,
.lecture-global-header,
.theme-toggle,
.lecture-toc,
.lecture-toc .toc-heading {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lecture-toc a { font-size: 1rem; font-weight: 500; }
.lecture-toc .toc-h3 a { font-size: 0.9375rem; font-weight: 400; }
.lecture-toc li { line-height: 1.5; }
.lecture-global-nav a { font-weight: 500; }
.lecture-toc a:focus-visible,
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 680px) {
  .lecture-global-header { position: static; flex-wrap: wrap; }
  .lecture-global-nav { justify-content: flex-start; }
  .lecture-topbar { flex-wrap: wrap; }
}
