.slide-sasrec .slide-content {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 30.72px 51.2px;
}

.slide-sasrec .eyebrow {
  margin-bottom: 0.35rem;
  font-size: 10.88px;
}

.slide-sasrec h2 {
  max-width: none;
  font-size: 48px;
  line-height: 0.98;
}

.slide-sasrec .subtitle {
  margin: 0.55rem 0 0;
  color: var(--accent-dark);
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.3;
}

.slide-sasrec .statement-body {
  max-width: 92ch;
  margin: 0.45rem 0 0;
  font-size: 12.48px;
  line-height: 1.35;
}

.slide-sasrec .slide-footer {
  margin: 0.35rem 0 0;
  font-size: 9.28px;
  font-weight: 680;
  line-height: 1.25;
}

.sasrec-canvas {
  min-width: 0;
  min-height: 0;
  flex: 1;
  position: relative;
  margin-top: 12.8px;
}

.sasrec-svg-host {
  width: 100%;
  height: 100%;
  min-height: 15rem;
}

.sasrec-canvas:has(.sasrec-equation) .sasrec-svg-host {
  height: calc(100% - 2.15rem);
}

.sasrec-svg-host svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  font-family: inherit;
}

.sasrec-stage {
  opacity: 0.13;
  transition: opacity 280ms ease, filter 280ms ease;
}

.sasrec-stage.is-revealed { opacity: 0.46; }
.sasrec-stage.is-current { opacity: 1; }

.sasrec-svg-host .sasrec-stage.is-current {
  filter: drop-shadow(0 8px 13px rgb(23 32 31 / 7%));
}

.sasrec-equation {
  min-height: 1.9rem;
  position: absolute;
  right: 50%;
  bottom: 0;
  max-width: calc(100% - 2rem);
  transform: translateX(50%);
  border: 1px solid rgb(8 127 115 / 20%);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  background: rgb(255 253 249 / 92%);
  box-shadow: 0 8px 20px rgb(23 32 31 / 6%);
  color: var(--ink);
  font-size: 14.08px;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.sasrec-equation .katex { font-size: 1em; }
.motivation-probability { color: var(--text-accent); font-size: 21px; line-height: 1.5; }
.motivation-probability .katex { font-size: 1em; }
@media screen {
  .sasrec-detail .sasrec-detail-reveal:not(.is-revealed) {
    opacity: 0;
    visibility: hidden;
  }
  .sequence-input-output .blackbox-neighbor:not(.is-revealed) {
    opacity: 0;
    visibility: hidden;
  }
}
.sasrec-equation-wide { padding-inline: 1.2rem; }

.sasrec-diagram-fallback {
  flex: 1;
  display: grid;
  place-items: center;
  margin-top: 1rem;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .sasrec-stage { transition: none; }
}

@media print {
  .katex .katex-mathml {
    width: auto;
    height: auto;
    position: static;
    overflow: visible;
    -webkit-clip-path: none;
    clip-path: none;
  }

  .katex .katex-html { display: none; }

  .sasrec-stage,
  .sasrec-stage.is-revealed,
  .sasrec-stage.is-current {
    opacity: 1 !important;
    filter: none !important;
  }

  .slide-sasrec .slide-content {
    height: 100vh;
    padding: 1.4rem 2rem;
  }
}
