/* Site-rendered PDF preview shared by slides, document tabs and question panes. */
.site-pdf-viewer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #101827;
}
.site-pdf-viewport {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px;
  outline: none;
}
.site-pdf-viewport:focus-visible { box-shadow: inset 0 0 0 2px #818cf8; }
.site-pdf-pagebox { position: relative; display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: .6rem; width: 100%; min-width: 100%; box-sizing: border-box; }
.site-pdf-pagebox .pdf-page-wrap { position: relative; flex-shrink: 0; max-width: none; overflow: hidden; }
.site-pdf-pagebox .pdf-canvas-page { display: block; max-width: none; background: white; box-shadow: 0 8px 28px rgba(0, 0, 0, .36); }
.site-pdf-pagebox .textLayer { position: absolute; inset: 0; overflow: hidden; line-height: 1; z-index: 1; }
.site-pdf-pagebox .textLayer span { position: absolute; color: transparent; white-space: pre; cursor: text; transform-origin: 0 0; user-select: text; }
.site-pdf-pagebox .textLayer br { position: absolute; color: transparent; user-select: none; }
.site-pdf-pagebox .textLayer ::selection { background: rgba(56, 189, 248, .38); color: transparent; }
.site-pdf-status { margin: auto; padding: 1rem; color: #cbd5e1; font-size: .875rem; text-align: center; }
.site-pdf-status:empty { display: none; }
.site-pdf-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .35rem .7rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #dbeafe;
  background: #0b1120;
}
.site-pdf-control { display: inline-grid; width: 2rem; height: 2rem; place-items: center; border: 0; border-radius: .45rem; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 1.35rem; line-height: 1; }
.site-pdf-control:hover:not(:disabled), .site-pdf-control:focus-visible { background: rgba(129,140,248,.2); outline: 1px solid rgba(129,140,248,.55); }
.site-pdf-control:disabled { opacity: .35; cursor: default; }
.site-pdf-fit { font-size: 1.1rem; }
.site-pdf-count, .site-pdf-zoom { min-width: 3.25rem; font-variant-numeric: tabular-nums; text-align: center; font-size: .8rem; }
.site-pdf-spacer { flex: 1 1 auto; }
.site-pdf-inline { display: flex; flex-direction: column; align-items: center; gap: .65rem; min-height: 320px; padding: .6rem; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: .6rem; background: rgba(0,0,0,.25); }
.site-pdf-inline canvas { display: block; max-width: none; background: white; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
@media (max-width: 640px) {
  .site-pdf-viewport { padding: 8px; }
  .site-pdf-toolbar { gap: .15rem; padding: .25rem .4rem; }
  .site-pdf-control { width: 1.9rem; height: 1.9rem; }
}
html[data-theme="light"] .site-pdf-viewer { background: #e8edf3; }
html[data-theme="light"] .site-pdf-toolbar { background: #f7f8fb; color: #24364a; border-top-color: rgba(15,23,42,.14); }
html[data-theme="light"] .site-pdf-status { color: #42556c; }
html[data-theme="light"] .site-pdf-inline { background: #eef2f7; border-color: rgba(15,23,42,.12); }

/* Full-page document previews opened from handouts, source papers and reports. */
#site-main.pdf-view-wide { display: flex; width: 100%; max-width: 104rem; min-height: 0; }
.site-pdf-page { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; height: calc(100dvh - 8rem); min-height: 420px; border: 1px solid rgba(148,163,184,.18); border-radius: 1rem; overflow: hidden; background: #0b1120; }
.site-pdf-page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(148,163,184,.18); }
.site-pdf-page-head h1 { min-width: 0; overflow: hidden; color: #e2e8f0; font-size: 1rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.site-pdf-download { flex: none; padding: .45rem .75rem; border: 1px solid rgba(129,140,248,.4); border-radius: .5rem; color: #c7d2fe; font-size: .8rem; font-weight: 600; text-decoration: none; }
.site-pdf-download:hover, .site-pdf-download:focus-visible { background: rgba(129,140,248,.17); outline: none; }
.site-pdf-page-host { display: flex; flex: 1 1 auto; min-height: 0; }
html[data-theme="light"] .site-pdf-page { background: #f7f8fb; border-color: rgba(15,23,42,.14); }
html[data-theme="light"] .site-pdf-page-head { border-bottom-color: rgba(15,23,42,.14); }
html[data-theme="light"] .site-pdf-page-head h1 { color: #24364a; }
html[data-theme="light"] .site-pdf-download { color: #263c97; }

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] .site-pdf-viewer{background-color:rgb(244 246 249)}
html[data-theme="light"] .site-pdf-viewport:focus-visible{box-shadow:inset 0px 0px 0px 2px rgb(10 26 184/0.55)}
html[data-theme="light"] .site-pdf-status{color:rgb(48 65 85)}
html[data-theme="light"] .site-pdf-toolbar{border-top-color:rgb(15 23 42/0.14);color:rgb(0 57 132);background-color:rgb(247 248 251)}
html[data-theme="light"] .site-pdf-inline{border-color:rgb(15 23 42/0.112);background-color:rgb(255 255 255/0.25)}
html[data-theme="light"] .site-pdf-inline canvas{box-shadow:0px 4px 18px rgb(15 23 42/0.08)}
html[data-theme="light"] .site-pdf-download{color:rgb(0 27 133)}
/* ▲▲ LIGHT THEME END ▲▲ */
