:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #242424;
  --primary: #234e70;
  --intervention: #a54f32;
  --muted: #606060;
  --rule: #767676;
  --light-rule: #dededb;
  --wash: #f6f6f3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--intervention); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--intervention); outline-offset: 5px; }
::selection { background: #e6edf1; color: var(--ink); }
figure, p, h1, h2 { margin: 0; }
strong { font-weight: 700; }
sup, sub { line-height: 0; }

.skip-link { position: fixed; left: 1rem; top: -6rem; padding: .55rem .85rem; z-index: 100; background: white; border: 1px solid var(--primary); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 1440px; margin-inline: auto; padding: 1.1rem clamp(1.25rem, 4vw, 4rem); border-bottom: 1px solid var(--light-rule); font: .75rem/1.4 var(--sans); letter-spacing: .025em; }
.course-link { text-decoration: none; color: var(--ink); }
.course-link span { padding-inline: .5rem; color: var(--rule); }
.header-topic { color: var(--muted); }

.title-slide { max-width: 1440px; min-height: min(850px, calc(100svh - 4rem)); margin-inline: auto; padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 4vw, 4rem) 4rem; display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow, .part-label { font: 700 .7rem/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--primary); }
h1 { font-size: clamp(2.9rem, 4.8vw, 4.8rem); line-height: 1.07; letter-spacing: -.045em; font-weight: 400; margin-top: 1.1rem; }
.title-deck { max-width: 34rem; margin-top: 1.65rem; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6; }
.title-scope { margin-top: 1.3rem; color: var(--muted); font: .7rem/1.6 var(--sans); }
.title-scope span { padding-inline: .35rem; }
.scroll-cue { display: inline-flex; gap: .6rem; align-items: center; margin-top: 2.4rem; font: .8rem/1.5 var(--sans); text-decoration: none; border-bottom: 1px solid var(--primary); padding-bottom: .25rem; }
.scroll-cue span { font: 1.1rem/1 var(--serif); }
.title-art { width: 100%; }
.title-art img { display: block; width: 100%; height: auto; max-height: 550px; object-fit: contain; }
.title-art figcaption { padding-top: .9rem; text-align: center; font: .7rem/1.5 var(--sans); color: var(--muted); }

.story { position: relative; display: block; max-width: 1600px; margin-inline: auto; padding: 0 clamp(1.25rem, 3.5vw, 3.5rem); border-top: 1px solid var(--rule); }
.stage-shell { position: sticky; top: 1rem; align-self: start; height: calc(100svh - 2rem); max-height: 880px; min-height: 530px; display: flex; flex-direction: column; justify-content: flex-start; padding: 1.2rem 0 1rem; background: var(--paper); z-index: 10; }
.stage-progress { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--light-rule); }
.progress { width: 0; height: 100%; background: var(--primary); transform-origin: left center; }
.stage-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.stage-eyebrow { color: var(--muted); font: .63rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.stage-heading h2 { font-size: clamp(1.25rem, 1.8vw, 1.8rem); font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
.stage-count { flex-shrink: 0; padding-bottom: .1rem; font: .67rem/1.4 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-equation { display: flex; align-items: center; flex-shrink: 0; min-height: 3.4rem; padding-block: .5rem; color: var(--primary); font-size: clamp(.9rem, 1.25vw, 1.15rem); line-height: 1.45; }
.stage-equation .katex { font-size: 1.2em; }
.stage-equation .katex-display { margin: 0; max-width: 100%; text-align: left; }
.stage-equation .katex-display > .katex { text-align: left; }
.figure-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .8rem; align-items: stretch; flex: 1; min-height: 0; max-height: 510px; }
.figure-grid[hidden] { display: none; }
.figure-grid figure { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.figure-grid figcaption { padding: .35rem 0 .55rem; border-top: 1px solid var(--light-rule); color: var(--muted); font: .66rem/1.3 var(--sans); }
.network-figure figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; }
.active-neurons { color: var(--muted); font: 11px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.figure-grid svg { display: block; flex: 1; width: 100%; height: 0; min-height: 0; overflow: visible; }
.figure-grid svg text { font-family: var(--sans); }
.input-inspector { flex-shrink: 0; margin-top: .35rem; }
.input-control-row { display: flex; align-items: center; gap: .75rem; min-height: 44px; font: .75rem/1.4 var(--sans); }
.input-control-row label { flex-shrink: 0; color: var(--ink); }
.input-control-row label i, .input-hint i { font-family: var(--serif); }
.input-control-row input[type="range"] { display: block; flex: 1; min-width: 0; width: 100%; height: 44px; margin: 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
.input-control-row output { width: 3.7rem; flex-shrink: 0; color: var(--primary); text-align: right; font-variant-numeric: tabular-nums; }
.input-hint { margin-top: -.1rem; color: var(--muted); font: .68rem/1.4 var(--sans); }
.stage-caption { margin-top: .75rem; min-height: 3.1rem; max-width: 48rem; color: var(--muted); font: .74rem/1.5 var(--sans); }
.stage-source { align-self: flex-start; margin-block: .2rem .45rem; font: .68rem/1.4 var(--sans); }
.stage-source[hidden], .input-inspector[hidden] { display: none; }
.stage-shell.is-extension .stage-equation { min-height: 4rem; }
.narrative [data-latex] .katex-display { text-align: left; margin: .2em 0; }
.narrative span[data-latex] .katex { font-size: 1.08em; }
.narrative p[data-latex] { overflow-x: auto; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .55rem; margin-top: auto; border-top: 1px solid var(--light-rule); font: .65rem/1.4 var(--sans); color: var(--muted); }
.scene-navigation { display: flex; gap: .4rem; }
.scene-navigation button { border: 1px solid var(--light-rule); background: white; color: var(--primary); width: 44px; height: 44px; padding: 0; cursor: pointer; font: .95rem/1 var(--sans); }
.scene-navigation button:hover { border-color: var(--primary); background: var(--wash); }
.scene-navigation button:disabled { opacity: .4; cursor: default; }

.narrative { min-width: 0; padding-block: 13svh 12svh; }
.step { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6rem; scroll-margin-top: 8svh; }
.step:first-child { padding-top: 3rem; }
.step:last-child { min-height: 92svh; }
.step[data-scene="sine-wide"] { min-height: 260svh; }
.step .part-label { margin-bottom: 1rem; }
.step h2 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.18; }
.step p:not(.part-label) { margin-top: 1.2rem; font-size: clamp(.95rem, 1.12vw, 1.05rem); line-height: 1.65; }
.step .narrative-equation { color: var(--primary); border-left: 2px solid var(--primary); padding: .55rem 0 .55rem .8rem; font-size: .95rem; overflow-wrap: anywhere; }
.equation-multiline span { display: block; }
.equation-multiline span + span { padding-left: 1rem; }
.return-link { display: inline-block; align-self: start; margin-top: 2rem; font: .75rem/1.5 var(--sans); }
.return-link span { margin-left: .5rem; }
.width-table { border-collapse: collapse; width: 100%; margin-top: 1.4rem; font: .7rem/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.width-table caption { text-align: left; color: var(--muted); margin-bottom: .4rem; }
.width-table th, .width-table td { border-bottom: 1px solid var(--light-rule); padding: .45rem .4rem; text-align: right; font-weight: 400; }
.width-table thead th { color: var(--muted); border-top: 1px solid var(--rule); border-bottom-color: var(--rule); }
.width-table th:first-child { text-align: left; padding-left: 0; }
.site-footer { max-width: 1440px; margin-inline: auto; padding: 1.6rem clamp(1.25rem, 4vw, 4rem) 2.2rem; border-top: 1px solid var(--rule); font: .7rem/1.6 var(--sans); display: flex; justify-content: space-between; gap: 1rem 2rem; color: var(--muted); }
.site-footer a { text-decoration: none; }
.noscript-note { max-width: 48rem; margin: 2rem auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1600px) {
  .stage-shell { max-height: 960px; }
  .figure-grid { max-height: 600px; }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .story { padding-inline: 1.5rem; }
  .stage-caption { font-size: .68rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 65svh; }
  body { font-size: 17px; }
  .site-header { padding: .9rem 1.1rem; font-size: .66rem; }
  .header-topic { display: none; }
  .title-slide { min-height: 0; grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 1.25rem 2.5rem; }
  .title-copy { max-width: 34rem; }
  h1 { font-size: clamp(2.7rem, 9.3vw, 4.5rem); }
  .title-deck { margin-top: 1.2rem; font-size: 1rem; }
  .title-scope { margin-top: .9rem; font-size: .64rem; }
  .scroll-cue { margin-top: 1.3rem; }
  .title-art { max-width: 34rem; margin-inline: auto; }
  .title-art img { max-height: 330px; }
  .title-art figcaption { padding-top: .3rem; font-size: .64rem; }
  .story { display: block; padding-inline: 1rem; }
  .stage-shell { top: 0; height: 62svh; min-height: 355px; max-height: 620px; padding: .65rem 0 .45rem; border-bottom: 1px solid var(--rule); box-shadow: 0 5px 0 5px white; }
  .stage-heading { gap: .5rem; }
  .stage-eyebrow { display: none; }
  .stage-heading h2 { font-size: 1.05rem; }
  .stage-count { font-size: .6rem; }
  .stage-equation { min-height: 2.2rem; padding-block: .3rem; font-size: .75rem; }
  .figure-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 350fr) minmax(0, 220fr); gap: .3rem; flex: 1; max-height: none; }
  .figure-grid figure { min-height: 0; }
  .figure-grid figcaption { padding: .22rem 0 .2rem; font-size: .57rem; }
  .input-inspector { margin-top: 0; }
  .input-control-row { gap: .6rem; font-size: .72rem; }
  .input-control-row output { width: 3rem; }
  .input-hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .stage-caption { margin-top: .3rem; min-height: 2.2rem; font-size: .7rem; line-height: 1.35; }
  .stage-footer { display: none; }
  .scene-navigation { display: none; }
  .narrative { padding-block: 0 4rem; max-width: 36rem; margin-inline: auto; position: relative; }
  .step { min-height: 78svh; padding: 3.2rem .3rem 4.5rem; justify-content: center; scroll-margin-top: 65svh; }
  .step:first-child { padding-top: 2.6rem; }
  .step:last-child { min-height: 85svh; padding-bottom: 6rem; }
  .step[data-scene="sine-wide"] { min-height: 260svh; }
  .step .part-label { font-size: .63rem; margin-bottom: .8rem; }
  .step h2 { font-size: 1.8rem; }
  .step p:not(.part-label) { font-size: 1rem; margin-top: 1rem; line-height: 1.65; }
  .step .narrative-equation { font-size: .91rem; }
  .width-table { font-size: .72rem; }
  .site-footer { display: block; padding: 1.5rem 1.25rem 2rem; font-size: .65rem; }
  .site-footer p { margin-top: .5rem; }
}

@media (max-width: 390px) {
  .stage-shell { height: 63svh; min-height: 355px; }
  .stage-heading h2 { font-size: .95rem; }
  .stage-equation { font-size: .69rem; }
  .stage-caption { font-size: .7rem; }
  .step { scroll-margin-top: 66svh; }
}

@media (max-height: 600px) and (min-width: 761px) {
  .stage-shell { min-height: 0; top: .5rem; height: calc(100svh - 1rem); padding-top: .7rem; }
  .stage-eyebrow { display: none; }
  .stage-equation { min-height: 2.5rem; padding-block: .3rem; }
  .stage-caption { min-height: 2.1rem; font-size: .65rem; margin-top: .3rem; }
}

/* One visual stage carries the mathematics and its concise caption.
   The original sections remain a scroll rail and a complete print/no-JS text. */
.story { display: block; }
.story-stage { display: none; }
.story:not(.is-enhanced) > .narrative { max-width: 48rem; margin-inline: auto; padding-block: 2rem 4rem; }
.story:not(.is-enhanced) .step,
.story:not(.is-enhanced) .step:first-child,
.story:not(.is-enhanced) .step:last-child,
.story:not(.is-enhanced) .step[data-scene="sine-wide"] { min-height: 0; padding-block: 1.6rem; }

.story.is-enhanced {
  --story-top: 1rem;
  --story-height: calc(100svh - 2rem);
}
.story.is-enhanced > .story-stage {
  position: sticky;
  top: var(--story-top);
  z-index: 10;
  display: block;
  height: var(--story-height);
  background: var(--paper);
}
.story.is-enhanced .stage-shell {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding-bottom: .7rem;
}
.story.is-enhanced .stage-caption { min-height: 0; }
.story.is-enhanced .stage-footer { display: flex; }
.story.is-enhanced > .narrative {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: none;
  margin-top: calc(-1 * var(--story-height));
  margin-inline: 0;
  padding-top: 0;
  /* Keep the final visual pinned until its own scroll interval is complete. */
  padding-bottom: var(--story-height);
  visibility: hidden;
  overflow: clip;
  pointer-events: none;
  user-select: none;
}
.story.is-enhanced .step,
.story.is-enhanced .step:first-child,
.story.is-enhanced .step:last-child {
  min-height: 100svh;
  padding: 0;
  scroll-margin-top: var(--story-top);
}
.story.is-enhanced .step[data-scene="sine-wide"] { min-height: 260svh; }
.story.is-enhanced .step[data-scene="hinge"] { min-height: 180svh; }
.story.is-enhanced .step[data-scene="sigmoid-one"] { min-height: 420svh; }
.story.is-enhanced .step[data-scene="class-move"] { min-height: 200svh; }
.story.is-enhanced .step[data-scene="generalize-zoom"] { min-height: 150svh; }
.story.is-enhanced .step[data-scene="generalize-noise"] { min-height: 220svh; }
.story.is-enhanced .step[data-scene="generalize-width"] { min-height: 640svh; }
.story.is-enhanced .step[data-scene="generalize-test"] { min-height: 260svh; }
.story.is-enhanced .step[data-scene="generalize-errors"] { min-height: 420svh; }
.story.is-enhanced .step[data-scene="generalize-descent"] { min-height: 280svh; }

/* Expand the existing input-coordinate panel from its actual grid position. */
.is-input-zoom .figure-grid { position: relative; display: block; }
.is-input-zoom .function-figure { position: absolute; left: 0; top: 0; width: calc((100% - .8rem) * 5 / 9); height: 100%; opacity: calc(1 - var(--input-zoom)); }
.is-input-zoom .network-figure { position: absolute; top: 0; height: 100%; left: calc((55.5556% + .4444rem) * (1 - var(--input-zoom))); width: calc(100% - (55.5556% + .4444rem) * (1 - var(--input-zoom))); }
.is-width-experiment .figure-grid { display: block; position: relative; max-height: 560px; }
.is-width-experiment .function-figure { display: none; }
.is-width-experiment .network-figure { width: 100%; height: 100%; }
.is-width-experiment .stage-equation { justify-content: center; }
@media (max-width: 760px) {
  .is-input-zoom .function-figure { width: 100%; height: calc((100% - .3rem) * 350 / 570); }
  .is-input-zoom .network-figure { left: 0; width: 100%; top: calc((61.4035% + .1842rem) * (1 - var(--input-zoom))); height: calc(100% - (61.4035% + .1842rem) * (1 - var(--input-zoom))); }
  .story.is-enhanced .stage-shell.is-width-experiment .figure-grid { max-height: none; }
  .story.is-enhanced .stage-shell.is-width-experiment .stage-equation { min-height: 2.5rem; font-size: .65rem; }
}

@media (max-width: 760px) {
  .story.is-enhanced { --story-top: 0px; --story-height: 100svh; }
  .story.is-enhanced .stage-shell {
    height: 100%;
    min-height: 0;
    padding: .5rem 0 .25rem;
    border-bottom: 0;
    box-shadow: none;
  }
  .story.is-enhanced .figure-grid { max-height: calc(92vw - .15rem); }
  .story.is-enhanced .stage-caption { display: block; }
  .story.is-enhanced .input-control-row { min-height: 44px; }
  .story.is-enhanced .stage-shell.is-extension .figure-grid { max-height: none; }
  .story.is-enhanced .stage-shell.is-extension .stage-equation { min-height: 3.7rem; font-size: .67rem; }
  .stage-source { font-size: .62rem; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .story.is-enhanced .stage-equation { min-height: 1.8rem; padding-block: .15rem; }
}

@media (max-height: 600px) and (min-width: 761px) {
  .story.is-enhanced { --story-top: .5rem; --story-height: calc(100svh - 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The historical application opens with the paper's model as the visual. */
.stage-intro {
  flex-shrink: 0;
  align-self: center;
  max-width: 52rem;
  margin: clamp(1.5rem, 4vh, 3rem) auto 0;
  color: var(--ink);
  font: 400 clamp(1.1rem, 2vw, 1.6rem)/1.5 var(--sans);
  text-align: center;
}
.story.is-enhanced .stage-shell.is-equation-only .stage-equation {
  flex: 1;
  min-height: 0;
  justify-content: center;
  padding: 1rem 0;
  font-size: clamp(1rem, 1.75vw, 1.5rem);
}
.stage-shell.is-equation-only .stage-equation .katex-display,
.stage-shell.is-equation-only .stage-equation .katex-display > .katex { text-align: center; }
.stage-shell.is-equation-only .stage-caption { align-self: center; text-align: center; }
.stage-shell.is-equation-only .stage-source { align-self: center; }
.stage-intro[hidden], .stage-caption[hidden], .stage-equation[hidden], .model-comparison[hidden] { display: none !important; }
.model-comparison {
  --comparison-open: 0;
  --logistic-focus: 1;
  --neural-focus: 1;
  position: relative;
  flex: 1;
  min-height: 0;
}
.comparison-equations {
  position: absolute;
  top: calc(50% * (1 - var(--comparison-open)));
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  transform: translateY(calc(-50% * (1 - var(--comparison-open))));
}
.comparison-model { min-width: 0; text-align: center; }
#logistic-model { --focus: var(--logistic-focus); }
#neural-model { --focus: var(--neural-focus); }
.comparison-model {
  opacity: calc(.16 + .84 * var(--focus));
  transform: scale(calc(.88 + .12 * var(--focus)));
  transform-origin: center top;
}
.model-comparison h3 { margin: 0 0 1.1rem; font: 400 clamp(1rem, 1.6vw, 1.4rem)/1.3 var(--serif); }
.comparison-equation { color: var(--primary); font-size: clamp(.75rem, 1.28vw, 1.1rem); }
.comparison-equation .katex-display { margin: 0; }
.comparison-plots[hidden] { display: none !important; }
.comparison-plots {
  position: absolute;
  inset: clamp(12rem, 28%, 17rem) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  opacity: var(--comparison-open);
  transform: translateY(calc(2rem * (1 - var(--comparison-open))));
}
.comparison-plots figure { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.comparison-plots figcaption { border-top: 1px solid var(--light-rule); padding-top: .45rem; color: var(--muted); font: .75rem/1.4 var(--sans); }
.comparison-plots svg { display: block; width: 100%; flex: 1; min-height: 0; overflow: visible; }
@media (max-width: 760px) {
  .story.is-enhanced .stage-shell.is-equation-only .stage-equation { font-size: clamp(.85rem, 3.9vw, 1.1rem); }
  .comparison-equations { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .comparison-model { grid-area: 1 / 1; opacity: var(--focus); }
  #logistic-model { transform: translateY(calc(-80% * (1 - var(--comparison-open)))); }
  #neural-model { transform: translateY(calc(65% * (1 - var(--comparison-open)))); }
  .model-comparison h3 { margin-bottom: .75rem; font-size: 1.1rem; }
  .comparison-equation { font-size: clamp(.83rem, 3.65vw, 1rem); }
  .comparison-plots { inset: 10.2rem 0 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem; }
  .comparison-plots figcaption { font-size: .68rem; padding-top: .25rem; }
}

@media print {
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; line-height: 1.5; }
  .site-header, .scroll-cue, .stage-shell, .scene-navigation, .return-link, .site-footer { display: none; }
  .title-slide { display: block; min-height: 0; padding: 0 0 1.5rem; border-bottom: 1px solid var(--rule); }
  h1 { font-size: 32pt; }
  .title-deck { max-width: none; font-size: 11pt; }
  .title-art { float: right; max-width: 220px; margin-top: 1rem; }
  .title-art img { max-height: 170px; }
  .title-art figcaption { font-size: 8pt; }
  .story { display: block; padding: 0; border: 0; }
  .narrative { padding: 0; }
  .step, .step:first-child, .step:last-child, .step[data-scene="sine-wide"] { display: block; min-height: 0; padding: 1rem 0 .5rem; break-inside: avoid; }
  .step h2 { font-size: 17pt; }
  .step p:not(.part-label) { font-size: 10.5pt; margin-top: .55rem; }
  .step .narrative-equation { font-size: 10.5pt; }
  .part-label { margin-top: .7rem; font-size: 9pt; }
  .width-table { max-width: 400px; font-size: 9pt; }
}

@media print {
  .story-stage, .story.is-enhanced > .story-stage { display: none !important; }
  .story.is-enhanced > .narrative {
    margin: 0;
    padding: 0;
    max-width: none;
    visibility: visible;
    pointer-events: auto;
    user-select: text;
  }
  .story.is-enhanced .step,
  .story.is-enhanced .step:first-child,
  .story.is-enhanced .step:last-child,
  .story.is-enhanced .step[data-scene="hinge"],
  .story.is-enhanced .step[data-scene="sigmoid-one"],
  .story.is-enhanced .step[data-scene="class-move"],
  .story.is-enhanced .step[data-scene="sine-wide"] {
    display: block;
    min-height: 0;
    padding: 1rem 0 .5rem;
    visibility: visible;
  }
}
