/* ==========================================================================
   Lecture mode for EEG Fundamentals (components/fundamentals-lecture.js)

   The course as a slide deck. A dim, violet-black surround like a reading
   room at night; the slide is the lit page. The slide uses the site's own
   surfaces and type, scaled with the stage through the root size, so it
   reads the same in light and dark themes. The presenter controls around it
   are fixed in px so they stay put when the slide text grows. The one
   signature element is the timeline scrubber, drawn like an EEG page's
   time base: a tick for each slide and a tall gridline where each course
   section starts.
   ========================================================================== */

/* ------------------------------------------------------------- entries -- */

.fl-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  box-sizing: border-box;
  border: 1px solid rgba(163, 43, 120, 0.4);
  border: 1px solid color-mix(in srgb, var(--accent-color) 40%, transparent);
  border-radius: 12px;
  background: transparent;
  color: var(--accent-color);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background 180ms ease;
}
.fl-entry:hover { background: color-mix(in srgb, var(--accent-color) 9%, transparent); }
.fl-entry:active { transform: scale(0.98); }
.fl-entry:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.fl-entry i { font-size: 0.95em; }

.fl-entry-side { display: flex; width: 100%; margin: 0 0 0.4rem; justify-content: flex-start; }
.fv-entry-side + .fl-entry-side { margin-top: -0.1rem; }

.fl-entry-top { display: none; }
@media (min-width: 769px) and (max-width: 1199px) {
  body.has-fl.has-fv #lead-simulator-container > .fr-index-toggle {
    width: calc(100% - 15.75rem - 36px);
  }
  .fl-entry-top {
    display: inline-flex;
    width: 7rem;
    min-height: 44px;
    margin: 0 12px 0.5rem 0;
    vertical-align: top;
  }
  /* a course without lesson videos (Seizure Management): Contents and Slides share the row */
  body.has-fl:not(.has-fv) #sm-course > .fr-index-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: calc(100% - 7rem - 20px);
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.88rem;
    vertical-align: top;
    box-sizing: border-box;
  }
  body.has-fl:not(.has-fv) #sm-course > .fl-entry-top { margin: 0 0 0.5rem 12px; }
}

.fr-course-actions .fl-entry-welcome {
  min-height: 44px;
  border-radius: 8px;
  font-size: inherit;
  padding: 0.55rem 0.9rem;
}

/* --------------------------------------------------------------- stage -- */

html.lec-open,
html.lec-open body { overflow: hidden !important; }
html.lec-open { scroll-behavior: auto; }

body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host {
  --lec-backdrop: #1e1629;
  --lec-panel: #271d35;
  --lec-ink: #f4eef9;
  --lec-muted: #ab9cbc;
  --lec-line: rgba(244, 238, 249, 0.14);
  --lec-raise: rgba(244, 238, 249, 0.08);
  --lec-accent: #f29ac9;
  --lec-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  position: fixed !important;
  inset: 0;
  z-index: 1900;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--lec-backdrop) !important;
  overflow: hidden !important;
}

/* Only the slide and the presenter controls; the course's own pager,
   Contents button and status lines wait behind lecture mode. */
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > :not(.tab-content):not(.lec-ui) {
  display: none !important;
}
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .tab-content:not(.active),
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host.lec-on-gen > .tab-content {
  display: none !important;
}

/* The slide */
body.is-lecture.has-fundamentals-reader :is(#lead-simulator-container, #sm-course).lec-host > .tab-content.active,
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen {
  position: absolute;
  left: var(--lec-x);
  top: var(--lec-y);
  width: var(--lec-w);
  height: var(--lec-h);
  box-sizing: border-box;
  margin: 0 !important;
  padding: 1.5rem 2.8rem 2.6rem !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 28px 70px rgba(0, 0, 0, 0.42);
  scrollbar-width: thin;
  animation: none;
}
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host:not(.lec-on-gen) > .lec-gen { display: none; }
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .tab-content.active:is(:focus, :focus-visible),
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen:is(:focus, :focus-visible) { outline: none !important; }

body.is-lecture :is(#lead-simulator-container, #sm-course).lec-compact > .tab-content.active,
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-compact > .lec-gen {
  padding: 1.1rem 1rem 3.2rem !important;
  border-radius: 10px;
}

body.is-lecture .lec-off { display: none !important; }
/* a picture whose prose column moved to the notes takes the full width */
body.is-lecture .lec-host .fundamentals-layout:not(.lec-off):has(> .fundamentals-text.lec-off) {
  display: block !important;
}
body.is-lecture .lec-host .fundamentals-layout:has(> .fundamentals-text.lec-off) > :not(.lec-off) {
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}
/* Videos become animated sketch slides in a lecture, including the ones
   tucked inside an explorer's tabs. */
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host .lv[data-lesson-video] { display: none !important; }

/* A slide is wider than the course column, so let the reading measure grow
   with it; figures and labs keep their own widths. */
body.is-lecture.has-fundamentals-reader :is(.page-eeg_lead_simulator, .page-seizure_management) { --lesson-measure: 100%; }
body.is-lecture.has-fundamentals-reader .lec-host .fundamentals-content {
  padding: 0 !important;
  max-width: none;
}
body.is-lecture.has-fundamentals-reader .lec-host .fundamentals-section > :first-child:not(.lec-off) { margin-top: 0; }

/* Slide title: the section above it, the part on the right. */
body.is-lecture.has-fundamentals-reader :is(.page-eeg_lead_simulator, .page-seizure_management) .lec-host .fundamentals-content > h2.section-header {
  max-width: none;
  margin: 0 0 1.1rem;
  padding: 1.45rem 0 0;
  color: var(--text-color) !important;
  font-size: 1.9rem;
  line-height: 1.12;
  letter-spacing: -0.026em;
  font-weight: 700;
  text-transform: none;
}
body.is-lecture.has-fundamentals-reader :is(.page-eeg_lead_simulator, .page-seizure_management) .lec-host .fundamentals-content > h2.section-header::before,
body.is-lecture.has-fundamentals-reader :is(.page-eeg_lead_simulator, .page-seizure_management) .lec-host .fundamentals-content > h2.section-header:focus-visible::before {
  content: attr(data-lec-kicker);
  position: absolute;
  top: 0;
  left: 0;
  right: 7rem;
  bottom: auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.is-lecture.has-fundamentals-reader :is(.page-eeg_lead_simulator, .page-seizure_management) .lec-host .fundamentals-content > h2.section-header[data-lec-part]::after {
  content: attr(data-lec-part);
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

@keyframes lec-in { from { opacity: 0; } to { opacity: 1; } }
body.is-lecture .lec-enter { animation: lec-in 200ms ease-out both !important; }

/* ---------------------------------------------------------- the chrome -- */

body.is-lecture .lec-ui { font-family: var(--lec-font); }
body.is-lecture .lec-ui[hidden],
body.is-lecture .lec-host :is(.lec-row, .lec-outline-section, .lec-outline-empty, .lec-scrub-tip,
  .lec-jump, .lec-count, .lec-tool)[hidden] { display: none !important; }

.lec-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 18px;
  box-sizing: border-box;
  color: var(--lec-ink);
  z-index: 20;
}
.lec-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.2;
}
.lec-brand img { width: 26px; height: 26px; flex: none; }
.lec-brand-name { font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.lec-brand-mode {
  padding-left: 10px;
  border-left: 1px solid var(--lec-line);
  color: var(--lec-muted);
  font-weight: 500;
}

.lec-tools { display: flex; align-items: center; gap: 4px; }
.lec-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--lec-ink);
  font: 600 13.5px/1 var(--lec-font);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.lec-tool i { font-size: 14px; opacity: 0.9; }
.lec-tool:hover { background: var(--lec-raise); }
.lec-tool:disabled { opacity: 0.35; cursor: default; background: transparent; }
.lec-tool[aria-expanded="true"],
.lec-tool[aria-pressed="true"] { background: rgba(242, 154, 201, 0.16); color: #ffd6eb; }
.lec-ui :is(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid var(--lec-accent);
  outline-offset: 2px;
}
.lec-exit { border-color: var(--lec-line); margin-left: 6px; }
/* Animation is on unless switched off; off, the film icon is struck through */
.lec-anim-btn { background: transparent; color: var(--lec-ink); }
.lec-anim-btn i { position: relative; }
.lec-anim-btn.is-off i { opacity: 0.55; }
.lec-anim-btn.is-off i::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-35deg);
}
.lec-help-btn span { font-size: 15px; font-weight: 700; }

.lec-size {
  display: inline-flex;
  margin: 0 4px;
  border: 1px solid var(--lec-line);
  border-radius: 9px;
}
.lec-size .lec-tool { height: 36px; min-width: 36px; padding: 0 8px; border-radius: 8px; }
.lec-size-btn span { font-size: 12px; font-weight: 700; }
.lec-size-up span { font-size: 17px; }

/* bottom bar */
.lec-bottom {
  position: absolute;
  left: var(--lec-side, 0px);
  right: 0;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  box-sizing: border-box;
  color: var(--lec-ink);
  z-index: 20;
}
.lec-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 0;
  border-radius: 22px;
  background: var(--lec-raise);
  color: var(--lec-ink);
  font: 700 14px/1 var(--lec-font);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}
.lec-nav:hover { background: rgba(244, 238, 249, 0.14); }
.lec-nav:active { transform: scale(0.97); }
.lec-nav:disabled { opacity: 0.32; cursor: default; transform: none; }
.lec-next {
  padding: 0 18px 0 22px;
  background: var(--lec-ink);
  color: #2a1f37;
}
.lec-next:hover { background: #ffffff; }

/* the time base */
.lec-scrub {
  position: relative;
  flex: 1 1 auto;
  min-width: 80px;
  height: 46px;
  cursor: pointer;
  touch-action: none;
  border-radius: 8px;
}
.lec-scrub-track {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 0;
  border-top: 1px solid var(--lec-line);
}
.lec-tick,
.lec-major {
  position: absolute;
  width: 1px;
  pointer-events: none;
}
.lec-tick { top: -4px; height: 8px; background: rgba(244, 238, 249, 0.2); }
.lec-major { top: -12px; height: 24px; background: rgba(244, 238, 249, 0.55); }
.lec-major-num {
  position: absolute;
  top: -2px;
  left: 5px;
  color: var(--lec-muted);
  font: 600 10px/1 var(--lec-font);
  font-variant-numeric: tabular-nums;
}
.lec-scrub-fill {
  position: absolute;
  left: 0;
  top: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--lec-accent);
  pointer-events: none;
}
.lec-scrub-cursor {
  position: absolute;
  top: -16px;
  width: 2px;
  height: 32px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--lec-accent);
  box-shadow: 0 0 0 3px var(--lec-backdrop);
  pointer-events: none;
}
.lec-scrub-tip {
  position: absolute;
  bottom: 24px;
  max-width: min(420px, 70vw);
  padding: 7px 10px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--lec-ink);
  color: #2a1f37;
  font: 600 12.5px/1.25 var(--lec-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.lec-scrub:focus-visible { outline: 2px solid var(--lec-accent); outline-offset: 0; }

.lec-where { flex: none; display: flex; align-items: center; }
.lec-count {
  min-width: 84px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lec-ink);
  font: 600 15px/1 var(--lec-font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.lec-count span { color: var(--lec-muted); font-weight: 500; }
.lec-count:hover { background: var(--lec-raise); }
.lec-jump { display: flex; align-items: center; gap: 8px; color: var(--lec-muted); font: 500 14px/1 var(--lec-font); }
.lec-jump input {
  width: 66px;
  height: 36px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid var(--lec-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lec-ink);
  font: 600 15px/1 var(--lec-font);
  text-align: center;
}

/* "more on this slide" */
.lec-more {
  position: absolute;
  left: calc(var(--lec-x) + var(--lec-w) - 14px);
  top: calc(var(--lec-y) + var(--lec-h) - 48px);
  transform: translateX(-100%);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 17px;
  background: rgba(41, 31, 54, 0.88);
  color: #fbf7fe;
  font: 600 13px/1 var(--lec-font);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lec-more i { font-size: 12px; }

/* ----------------------------------------------------------- slide list -- */

.lec-outline {
  position: absolute;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 320px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-right: 1px solid var(--lec-line);
  background: var(--lec-panel);
  color: var(--lec-ink);
  font-size: 14px;
}
.lec-host:not(.lec-docked) .lec-outline { box-shadow: 16px 0 40px rgba(0, 0, 0, 0.35); }
.lec-outline-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 4px 16px;
}
.lec-outline-title { margin: 0; font-weight: 700; font-size: 14px; color: var(--lec-ink); }
.lec-outline-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lec-muted);
  cursor: pointer;
}
.lec-outline-close:hover { background: var(--lec-raise); color: var(--lec-ink); }
.lec-filter {
  flex: none;
  margin: 4px 12px 8px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--lec-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--lec-ink);
  font: 400 14px/1 var(--lec-font);
}
.lec-filter::placeholder { color: var(--lec-muted); }
.lec-outline-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 238, 249, 0.2) transparent;
}
.lec-outline-section {
  margin: 14px 8px 4px;
  color: var(--lec-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.lec-outline-section:first-child { margin-top: 4px; }
.lec-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lec-ink);
  font: 500 13.5px/1.3 var(--lec-font);
  text-align: left;
  cursor: pointer;
}
.lec-row:hover { background: var(--lec-raise); }
.lec-row.is-current { background: rgba(242, 154, 201, 0.16); }
.lec-row-num {
  flex: none;
  width: 26px;
  color: var(--lec-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lec-row.is-current .lec-row-num { color: var(--lec-accent); font-weight: 700; }
.lec-row-text { min-width: 0; }
.lec-row-title { display: block; font-weight: 600; }
.lec-row-sub {
  display: block;
  margin-top: 2px;
  color: var(--lec-muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lec-outline-empty { margin: 12px 20px; color: var(--lec-muted); font-size: 13.5px; }

/* -------------------------------------------------------- speaker notes -- */

.lec-notes {
  position: absolute;
  top: 52px;
  right: 0;
  bottom: 0;
  width: var(--lec-right, 380px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-left: 1px solid var(--lec-line);
  background: var(--surface-1);
  color: var(--text-color);
  font-family: var(--lec-font);
}
.lec-host:not(.lec-notes-open) .lec-notes,
.lec-notes[hidden] { display: none !important; }
@media (max-width: 1099px) {
  .lec-notes { width: min(420px, 100%); box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35); }
}
.lec-notes-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px 18px;
  border-bottom: 1px solid var(--border-color);
}
.lec-notes-title { margin: 0 auto 0 0; font-size: 14px; font-weight: 700; color: var(--text-color); }
.lec-notes .lec-outline-close { color: var(--text-secondary); }
.lec-notes .lec-outline-close:hover { background: var(--surface-2); color: var(--text-color); }
.lec-notes-present {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-color);
  font: 600 12.5px/1 var(--lec-font);
  cursor: pointer;
}
.lec-notes-present:hover { background: var(--surface-2); }
.lec-notes-present[hidden] { display: none; }
.lec-notes-present:focus-visible,
.lec-notes .lec-outline-close:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.lec-notes-slide {
  flex: none;
  margin: 0;
  padding: 12px 18px 4px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.lec-notes-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 18px 18px;
  scrollbar-width: thin;
}
.lec-notes-body > * { max-width: 46rem; }
.lec-notes-body :is(p, li, dd, dt, td, th, span, strong, em, a, small, summary, figcaption, label, code) {
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.lec-notes-body :is(h3, h4, h5, .fr-divider) {
  margin: 16px 0 6px !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3 !important;
  color: var(--text-color);
}
.lec-notes-body p { margin: 0 0 10px !important; text-align: left !important; }
/* the lesson's own text under a drawing's teaching points: one click away */
.lec-notes-lesson { margin: 4px 0 12px; border-top: 1px solid var(--border-color); padding-top: 8px; }
.lec-notes-lesson > summary {
  cursor: pointer;
  margin: 0 0 8px;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lec-notes-lesson > summary:hover { color: var(--text-color) !important; }
.lec-notes-body :is(ul, ol) { margin: 0 0 10px !important; padding-left: 20px !important; }
.lec-notes-body li { margin: 0 0 4px !important; }
.lec-notes-body * { max-width: 100% !important; box-sizing: border-box; }
.lec-notes-body :is(.analogy-box, .important-note, .teaching-assumption, .lesson-lead, .golden-rule, .fr-course-overview, .fr-course-outcomes, .polarity-rules, .eeg-report-sheet) {
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  background: var(--surface-2) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.lec-notes-body img, .lec-notes-body svg, .lec-notes-body canvas { display: none !important; }
/* a two-column sheet (term beside definition) reads as a stack in the narrow notes */
.lec-notes-body :is(dl, dl > div) { display: block !important; grid-template-columns: none !important; }
.lec-notes-body dt { font-weight: 700; margin-top: 0.7rem; }
.lec-notes-body dd { margin: 0.15rem 0 0; }
.lec-notes-points { margin: 0 0 12px; padding-left: 20px; }
/* one size for everything in the notes: a lesson's lead paragraph is not bigger than the rest */
#seizure-management .lec-notes .lec-notes-body p.sm-lead,
.lec-notes .lec-notes-body .lesson-lead p { font-size: 15px !important; font-weight: 500; }
#seizure-management .lec-presenter .lec-notes .lec-notes-body p.sm-lead,
.lec-presenter .lec-notes .lec-notes-body .lesson-lead p { font-size: 18px !important; }
/* a reference table scrolls inside the notes instead of running past them */
.lec-notes-body table { display: block; overflow-x: auto; max-width: 100% !important; border-collapse: collapse; }
.lec-notes-body :is(td, th) { padding: 4px 8px !important; border-bottom: 1px solid var(--border-color); vertical-align: top; text-align: left; }
.lec-notes-aside { color: var(--text-secondary); }
.lec-notes-empty { color: var(--text-secondary); font-style: italic; }
.lec-notes-from {
  margin: 16px 0 6px;
  color: var(--text-secondary);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lec-notes-practice {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
}
.lec-notes-practice-head { margin: 0 0 4px; color: var(--accent-color); font-weight: 700; }
.lec-notes-practice ul { margin: 0; padding-left: 18px; }
.lec-notes-next {
  flex: none;
  margin: 0;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.lec-notes-btn.has-notes::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--lec-accent);
}
.lec-clock {
  min-width: 52px;
  margin-right: 8px;
  color: var(--lec-ink);
  font: 600 15px/1 var(--lec-font);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lec-clock[hidden] { display: none; }
.lec-bottom { right: var(--lec-right, 0px); }

/* presenter window: the notes are the point, in larger type */
.lec-presenter .lec-notes-body :is(p, li, dd, dt, td, th, span, strong, em, a, small, summary, figcaption, label, code) {
  font-size: 18px !important;
}
.lec-presenter .lec-notes-body :is(h3, h4, h5, .fr-divider) { font-size: 19px !important; }
.lec-presenter .lec-notes-slide { font-size: 15px; }
.lec-presenter .lec-notes-next { font-size: 15px; color: var(--text-color); }

/* --------------------------------------------------------- slide sorter -- */

.lec-grid {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 28px 48px;
  box-sizing: border-box;
  background: var(--lec-backdrop);
  color: var(--lec-ink);
}
.lec-grid-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: var(--lec-backdrop);
}
.lec-grid-title { margin: 0; color: var(--lec-ink); font: 700 20px/1.2 var(--lec-font); letter-spacing: -0.01em; }
.lec-grid-close { border-color: var(--lec-line); }
.lec-grid-section { margin: 0 0 26px; }
.lec-grid-section-title {
  margin: 10px 0 2px;
  color: var(--lec-ink);
  font: 700 15px/1.3 var(--lec-font);
}
.lec-grid-section-time { margin: 0 0 10px; color: var(--lec-muted); font-size: 12.5px; }
.lec-grid-section-title + .lec-grid-list { margin-top: 10px; }
.lec-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 11px 12px 10px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: var(--surface-1);
  color: var(--text-color);
  font: 500 12px/1.3 var(--lec-font);
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.lec-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.lec-card.is-current { outline: 3px solid var(--lec-accent); outline-offset: 2px; }
.lec-card-num {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lec-card-face { display: flex; flex-direction: column; gap: 4px; min-height: 0; height: 100%; }
.lec-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.lec-card-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11.5px;
}
.lec-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-right: 28px; }
.lec-card-part,
/* a drawing slide shows its drawing, with its headline under it */
.lec-card.has-art { padding: 6px 8px 8px; }
.lec-card.has-art .lec-card-face { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lec-card-art { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lec-card-art svg { width: 100%; height: 100%; }
.lec-card.has-art .lec-card-title { display: none; }
.lec-card.has-art .lec-card-label {
  display: block;
  flex: none;
  padding-right: 22px;
  margin: 2px 0 0;
  color: var(--text-color);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lec-card.has-art .lec-card-meta { display: none; }
.lec-card-kind {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
}
.lec-card-part { background: var(--surface-2); color: var(--text-secondary); }
.lec-card-kind { background: color-mix(in srgb, var(--accent-color) 12%, transparent); color: var(--accent-color); }
.lec-card-divider { background: var(--action-bg, #a32b78); color: #fff; }
.lec-card-divider .lec-card-num { color: rgba(255, 255, 255, 0.75); }
.lec-card-big { font-size: 28px; font-weight: 750; line-height: 1; letter-spacing: -0.03em; }
.lec-card-title:only-child { margin-top: auto; margin-bottom: auto; }

/* ---------------------------------------------------------------- help -- */

.lec-help {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 11, 24, 0.62);
}
.lec-help-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px 24px 20px;
  box-sizing: border-box;
  border: 1px solid var(--lec-line);
  border-radius: 14px;
  background: var(--lec-panel);
  color: var(--lec-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lec-help-card h2 { margin: 0 0 14px; color: var(--lec-ink); font: 700 18px/1.2 var(--lec-font); }
.lec-keys {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 9px 18px;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}
.lec-keys dt { color: var(--lec-ink); font-weight: 650; }
.lec-keys dd { margin: 0; color: var(--lec-muted); }
.lec-help-note { margin: 16px 0 14px; color: var(--lec-muted); font-size: 13px; line-height: 1.45; }
.lec-help-close { border-color: var(--lec-line); }

.lec-black {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  cursor: none;
}
.lec-black:focus { outline: none; }

.lec-live {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------- generated slides -- */

.lec-gen { font-family: inherit; }
.lec-gen .lec-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 650;
}
.lec-gen .lec-gen-head {
  margin: 0;
  color: var(--text-color);
  font-size: 2.6rem;
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.lec-gen button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* title */
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen-title {
  display: grid;
  grid-template-rows: auto minmax(1rem, 1fr) auto auto auto auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 2.6rem 4rem 2.2rem !important;
}
.lec-title-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}
.lec-title-mark img { width: 2.1rem; height: 2.1rem; }
.lec-gen-title .lec-title-head,
.lec-gen-title h1.lec-title-head {
  align-self: end;
  margin: 0 0 0.9rem;
  color: var(--text-color);
  font-size: 4.6rem;
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.lec-title-sub {
  margin: 0;
  max-width: 32ch;
  color: var(--text-color);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.lec-title-meta { margin: 0.9rem 0 0; color: var(--text-secondary); font-size: 1.02rem; }
.lec-title-trace {
  display: block;
  width: 100%;
  height: 3.6rem;
  margin: 2.2rem 0 0;
  overflow: visible;
}
.lec-title-trace polyline {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.lec-title-site { margin: 0.6rem 0 0; color: var(--text-secondary); font-size: 0.85rem; }

/* objectives */
.lec-aims {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: aim;
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}
.lec-aims li {
  counter-increment: aim;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: baseline;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}
.lec-aims li::before {
  content: counter(aim);
  color: var(--accent-color);
  font-size: 1.35rem;
  font-weight: 750;
}

/* agenda */
.lec-agenda {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2.4rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.lec-agenda-item,
.lec-divider-item {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 140ms ease;
}
.lec-agenda-item:hover,
.lec-divider-item:hover { background: var(--surface-2); }
.lec-agenda-item:focus-visible,
.lec-divider-item:focus-visible,
.lec-end-action:focus-visible,
.lec-end-link:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.lec-agenda-num {
  flex: none;
  min-width: 1.6rem;
  color: var(--accent-color);
  font-size: 1.35rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lec-agenda-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.lec-agenda-name { font-size: 1.12rem; font-weight: 650; line-height: 1.25; }
.lec-agenda-meta { color: var(--text-secondary); font-size: 0.85rem; }

/* section opener */
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen-divider {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-content: center;
  align-items: center;
  gap: 2rem 3.5rem;
  padding: 2.6rem 4rem !important;
}
.lec-divider-head { display: flex; flex-direction: column; }
.lec-divider-num {
  color: var(--accent-color);
  font-size: 7.5rem;
  font-weight: 760;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.lec-divider-of { margin: 1.4rem 0 0.4rem; color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; }
.lec-divider-meta { margin: 0.8rem 0 0; color: var(--text-secondary); font-size: 1.05rem; }
.lec-divider-list {
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 1px solid var(--border-color);
  list-style: none;
}
.lec-divider-item { flex-direction: column; gap: 0.15rem; }
.lec-divider-item-title { font-size: 1.12rem; font-weight: 650; line-height: 1.25; }
.lec-divider-item-meta { color: var(--text-secondary); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
/* a taught lesson: its title, and its slides on the same line */
.lec-divider-list .lec-divider-item { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.1rem 1rem; padding: 0.45rem 0.7rem; }
.lec-divider-side { min-width: 0; }
/* practice on real tracings stays in the course: named together, not links to slides */
.lec-divider-practice { margin: 1.1rem 0 0; padding-left: 2.1rem; }
.lec-divider-practice-head { margin: 0 0 0.3rem; color: var(--accent-color); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.lec-divider-practice ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.lec-divider-practice li { color: var(--text-secondary); font-size: 0.95rem; }

/* end */
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen-end {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.6rem 4rem !important;
}
.lec-end-text { max-width: 40rem; margin: 1rem 0 0; color: var(--text-secondary); font-size: 1.15rem; line-height: 1.5; }
/* the end slide: the closing words beside the learner's practice report */
.lec-end-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 1fr); gap: 2rem 3rem; align-items: center; }
.lec-end-main { min-width: 0; }
.lec-report {
  min-width: 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--surface-2);
}
.lec-report-head { margin: 0 0 0.5rem; color: var(--accent-color); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.lec-report-count { margin: 0; font-size: 1.05rem; color: var(--text-color); }
.lec-report-count strong { font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; margin-right: 0.15rem; }
.lec-report-bar { height: 8px; margin: 0.6rem 0 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 18%, transparent); overflow: hidden; }
.lec-report-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent-color); }
.lec-report-checks { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }
.lec-report-done { margin: 0.8rem 0 0; font-weight: 650; color: var(--text-color); }
.lec-report-sub { margin: 1rem 0 0.4rem; font-weight: 650; font-size: 0.92rem; color: var(--text-color); }
.lec-report-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.lec-report-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.lec-report-open {
  padding: 0.15rem 0;
  border: 0 !important;
  background: none;
  color: var(--accent-color) !important;
  font-weight: 650;
  font-size: 0.95rem;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lec-report-open:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; border-radius: 4px; }
.lec-report-detail { color: var(--text-secondary); font-size: 0.85rem; }
.lec-report-more { margin: 0.5rem 0 0; color: var(--text-secondary); font-size: 0.85rem; }
@media (max-width: 900px) {
  .lec-end-grid { grid-template-columns: minmax(0, 1fr); }
}
.lec-end-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; }
.lec-end-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
  color: var(--accent-color) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.lec-end-link:hover { background: color-mix(in srgb, var(--accent-color) 20%, transparent); }
.lec-end-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2.2rem 0 0; }
.lec-end-action {
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px;
  background: transparent;
  font-weight: 650;
}
.lec-end-action:hover { background: var(--surface-2); }

/* ------------------------------------------------------------ questions --
   A course's quick check or spot check, asked of the room: the stem, the
   picture when there is one, four lettered answers; after a pick or Next,
   the answer and why. */
body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen-question {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lec-q-top { flex: none; }
.lec-q-top .lec-kicker { margin-bottom: 0.35rem; font-size: 0.8rem; }
.lec-q-top .lec-kicker::before { content: "Question \00b7  "; }
.lec-gen .lec-gen-head.lec-q-stem {
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.lec-q-stem strong { font-weight: 800; }
.lec-q-body {
  /* never shorter than its answers: a long question scrolls (or shrinks its
     type) instead of sliding its answers up under the stem */
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: safe center;
  gap: 1rem 1.6rem;
}
.lec-q-body.has-picture { grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 1fr); align-content: stretch; }
.lec-q-figure { margin: 0; min-width: 0; min-height: 0; display: flex; align-items: center; }
.lec-q-frame { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--border-color); }
.lec-q-img { display: block; width: 100%; height: auto; }
.lec-q-zone {
  position: absolute;
  border: 3px solid #1f9d55;
  border-radius: 6px;
  background: rgba(31, 157, 85, 0.12);
  pointer-events: none;
}
.lec-q-mark {
  position: absolute;
  border: 2.5px dashed var(--accent-color);
  border-radius: 6px;
  pointer-events: none;
}
.lec-q-mark-label {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}
.lec-q-side { min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.lec-q-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lec-q-body:not(.has-picture) .lec-q-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; }
.lec-q-body:not(.has-picture) .lec-q-opt { min-height: 4.2rem; padding: 0.9rem 1rem; font-size: 1.18rem !important; }
.lec-q-body:not(.has-picture) .lec-q-feedback p { font-size: 1.08rem; }
.lec-q-options li { margin: 0; }
.lec-q-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-color) !important;
  font-size: 1.02rem !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}
.lec-q-opt:hover { border-color: var(--accent-color) !important; }
.lec-q-opt:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.lec-q-letter {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 800;
}
.lec-q-label { padding-top: 0.15rem; }
.lec-q-opt.is-picked { border-color: var(--accent-color) !important; }
.lec-q-opt.is-correct { border-color: #1f9d55 !important; background: color-mix(in srgb, #1f9d55 12%, var(--surface-1)); }
.lec-q-opt.is-correct .lec-q-letter { background: #1f9d55; color: #fff; }
.lec-q-opt.is-wrong { border-color: #d0453b !important; background: color-mix(in srgb, #d0453b 10%, var(--surface-1)); }
.lec-q-opt.is-wrong .lec-q-letter { background: #d0453b; color: #fff; }
.lec-q-opt.is-muted { opacity: 0.55; }
.lec-q-feedback {
  scroll-margin-bottom: 3.6rem;
  padding: 0.75rem 0.95rem;
  border-left: 4px solid #1f9d55;
  border-radius: 8px;
  background: var(--surface-2);
}
.lec-q-feedback p { margin: 0 0 0.35rem; font-size: 0.98rem; line-height: 1.4; color: var(--text-color); }
.lec-q-feedback p:last-child { margin-bottom: 0; }
.lec-q-why-wrong { color: var(--text-secondary) !important; font-size: 0.9rem !important; }
.lec-q-hint { margin: 0; color: var(--text-secondary); font-size: 0.85rem; }
body.dark .lec-q-frame { background: #fff; }
.lec-notes-answer { font-weight: 700; color: #1f9d55; }
.lec-notes-options li.is-correct strong { color: #1f9d55; }
.lec-card-ask { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; font-weight: 800; color: var(--lec-accent, #c2185b); }

/* -------------------------------------------------------------- narrow -- */

@media (max-width: 900px) {
  .lec-q-body.has-picture, .lec-q-body:not(.has-picture) .lec-q-options { grid-template-columns: minmax(0, 1fr); }
  .lec-tool span:not([aria-hidden]) { display: none; }
  .lec-tool { padding: 0 10px; }
  .lec-brand-mode { display: none; }
}

@media (max-width: 699px) {
  .lec-top { height: 52px; padding: 0 8px 0 12px; }
  .lec-brand-name { font-size: 14px; }
  .lec-size, .lec-help-btn { display: none !important; }
  .lec-outline { top: 52px; width: min(360px, 100%); }
  .lec-bottom { height: 64px; gap: 10px; padding: 0 10px; }
  .lec-next { padding: 0 14px 0 16px; }
  .lec-count { min-width: 64px; font-size: 14px; }
  .lec-major-num { display: none; }
  .lec-grid { padding: 0 14px 40px; }
  .lec-grid-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen-divider { grid-template-columns: 1fr; padding: 1.6rem 1.2rem 3rem !important; }
  body.is-lecture :is(#lead-simulator-container, #sm-course).lec-host > :is(.lec-gen-title, .lec-gen-end, .lec-gen-agenda) { padding: 1.6rem 1.2rem 3rem !important; }
  .lec-agenda { grid-template-columns: 1fr; }
  .lec-gen .lec-gen-head { font-size: 2rem; }
  .lec-gen-title h1.lec-title-head { font-size: 2.9rem; overflow-wrap: anywhere; }
  .lec-title-sub { font-size: 1.25rem; }
  .lec-divider-num { font-size: 4.5rem; }
}

/* a phone has room for the logo or the name, not both beside five tools */
@media (max-width: 520px) {
  .lec-brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-lecture .lec-enter { animation: none !important; }
  .lec-card, .lec-nav, .lec-tool, .fl-entry { transition: none !important; }
  .lec-card:hover { transform: none; }
}

/* presenter view while the audience screen is black: the preview dims, the notes stay */
body.is-lecture.lec-presenter-black :is(#lead-simulator-container, #sm-course).lec-host > .tab-content.active,
body.is-lecture.lec-presenter-black :is(#lead-simulator-container, #sm-course).lec-host > .lec-gen {
  opacity: 0.22;
  transition: opacity 0.2s ease;
}
