/* Slideo player. One accent, one filled block per screen, no gradients, shadows or rounded cards.
   The presenter video is keyed onto --sl-paper before upload, so the page must stay that colour:
   the player is light only. A site sets the tokens on .sl to match its own video and slides.
   The only gradients here are masks: they fade the bottom of his frame into the paper, and are never seen as colour. */
.sl {
  --sl-paper: #fbf8f1;
  --sl-ink: #1f1a24;
  --sl-soft: #615b66;
  --sl-rule: #d9d3cb;
  --sl-accent: #b88917;
  --sl-on-accent: #1f1606;
  --sl-claim-font: Georgia, "Times New Roman", serif;
  --sl-body-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --sl-deva-font: "Noto Serif Devanagari", "Noto Sans Devanagari", serif;
  --sl-sanskrit-font: "Noto Serif", Georgia, serif;
  --sl-sketch-font: var(--sl-claim-font);
  --sl-tap: #c8321e; /* the sketch's "this opens" dot: the one red on the page */ /* the sketch surface's lettering; a host may set a hand-lettered face */
  color-scheme: light;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--sl-paper);
  color: var(--sl-ink);
  font-family: var(--sl-body-font);
  overflow: hidden;
}
.sl *, .sl *::before, .sl *::after { box-sizing: border-box; }
.sl [hidden] { display: none !important; }
.sl button { font: inherit; color: inherit; cursor: pointer; }
.sl button:focus-visible, .sl a:focus-visible { outline: 3px solid var(--sl-ink); outline-offset: 2px; }
.sl-error { padding: 16px; font-family: var(--sl-body-font); }

/* buttons: the filled one is the screen's one block; the rest are plain text on a hairline */
.sl-btn { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; margin: 0; padding: 10px 16px; border: 0; border-radius: 0;
  background: transparent; font-size: 17px; font-weight: 600; text-align: left; }
.sl-fill { background: var(--sl-accent); color: var(--sl-on-accent); }
.sl-plain { border-top: 1px solid var(--sl-rule); }
.sl-len, .sl-left { font-variant-numeric: tabular-nums; }
.sl-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sl-ink);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.sl-count { color: var(--sl-on-accent); }
.sl-countfill { position: absolute; inset: 0; background: var(--sl-accent); transform-origin: 0 50%; pointer-events: none; }
.sl-choice { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sl-sub { font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* cover: his still, the title, Play, all centred as one block */
.sl-cover { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow-y: auto; padding: 16px 0; }
.sl-poster { flex: 0 1 auto; min-height: 0; padding: 0; border: 0; background: var(--sl-paper); }
.sl-poster img { display: block; width: min(86vw, 52vh, 480px); height: auto; aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.sl-cover-text { width: 100%; max-width: 480px; padding: 0 16px; }
.sl-cover h1 { font-family: var(--sl-claim-font); font-size: clamp(34px, 6vw, 52px); line-height: 1.05; margin: 4px 0 4px; }
.sl-by { margin: 0 0 18px; color: var(--sl-soft); font-size: 17px; }
/* An audio-only talk's cover: the programme's name small over the title, the speakers' portraits side by side above.
   The plates land on the page as in the player: lifted a little, then darkened onto the paper. */
.sl-show { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-soft); }
.sl-show::before { content: ""; display: block; width: 40px; height: 3px; background: var(--sl-accent); margin-bottom: 10px; }
/* The row fits any width: each plate is a whole square, an equal share of the row, so nothing is cropped. A full
   scene (a figure at a desk) and a bust sit side by side at the same size. Four on a phone make two rows of two. */
.sl-cover-faces { --sl-n: 3; display: flex; flex-wrap: wrap; justify-content: center; flex: 0 0 auto; width: 100%; margin-bottom: 8px; }
.sl-cover-faces[data-n="1"] { --sl-n: 1; }
.sl-cover-faces[data-n="2"] { --sl-n: 2; }
.sl-cover-faces[data-n="4"] { --sl-n: 4; }
.sl-cover-faces img { display: block; flex: 0 0 auto; width: min(calc(100% / var(--sl-n)), 34vh, 340px); aspect-ratio: 1; object-fit: contain;
  mix-blend-mode: darken; filter: brightness(1.02);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 98%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 519px) {
  .sl-cover-faces[data-n="4"] { --sl-n: 2; }
  .sl-cover-faces[data-n="4"] img { width: min(50%, 24vh); }
}

/* the stage */
.sl-play { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sl-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
/* His layer fades out at the stage's sides, so a frame wider than a phone shows no hard cut at the screen edge. */
.sl-faces { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; mix-blend-mode: darken; /* his paper lands on the page's exactly */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.sl-face { position: absolute; z-index: 0; left: 0; top: 0; transform-origin: 0 0; transition: transform 380ms ease; will-change: transform; }
/* His frame fades into the paper at the bottom and at both sides: no straight cut anywhere. */
.sl-face video, .sl-still { width: 100%; height: 100%; display: block; object-fit: contain; background: var(--sl-paper);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.sl-still { position: absolute; inset: 0; opacity: 0; transition: opacity 250ms linear; }
.sl-face.still .sl-still { opacity: 1; }
.sl-instant .sl-face, .sl-instant .sl-cap, .sl-instant .sl-slide, .sl-instant .sl-panel, .sl-instant .sl-panel *,
.sl-instant .sl-line, .sl-instant .sl-card, .sl-instant .sl-shot, .sl-instant .sl-namecard { transition: none !important; }

/* Audio only (no media.face): the speaker stands in his place. A portrait plate (its paper already moved to the
   page's by tools/oldnews_to_talk.py) on two layers that crossfade over the 380 ms he moves; a speaker with no
   portrait gets their name, set large in the claim face under the accent rule. Over the caption, the name small. */
.sl-shot, .sl-namecard { display: none; }
.sl-audio .sl-face video, .sl-audio .sl-still { display: none; }
.sl-audio .sl-shot { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 380ms ease; filter: brightness(1.02); /* plate paper a little above the page's; .sl-faces darkens it onto the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.sl-audio .sl-shot.on { opacity: 1; }
.sl-audio .sl-namecard { display: block; position: absolute; left: 20%; right: 20%; top: 28%; opacity: 0; transition: opacity 380ms ease;
  font-family: var(--sl-claim-font); font-weight: 700; line-height: 1.05; overflow-wrap: break-word; }
.sl-audio .sl-namecard::before { content: ""; display: block; width: 1.4em; height: .1em; background: var(--sl-accent); margin-bottom: .35em; }
.sl-audio .sl-namecard.on { opacity: 1; }
.sl-who { display: none; }
.sl-audio .sl-who { display: block; height: 30px; margin-bottom: 10px; font-family: var(--sl-body-font); font-size: 13px; font-weight: 600;
  line-height: 17px; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-audio .sl-who::before { content: ""; display: block; width: 40px; height: 3px; background: var(--sl-accent); margin-bottom: 10px; }
/* An imagined speaker: the name and, under it, the show's line, in the same 40 px (KICKER) as a name alone. */
.sl-audio .sl-who.sl-who-imagined { height: 37px; margin-bottom: 3px; line-height: 15px; }
.sl-audio .sl-who.sl-who-imagined::before { margin-bottom: 6px; }
.sl-who-tag { display: block; font-size: 11px; font-weight: 400; line-height: 13px; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; }
.sl-audio.sl-nameonly .sl-who { visibility: hidden; } /* the name is already on screen, large */
.sl-audio .sl-src { display: none !important; }       /* the speaker's name stands where a take title would */
/* A change of layout, on one clock (view.js): the words go in 150 ms (sl-out), he moves in 380 ms with nothing
   showing (sl-rising puts the new words 8 px low), then the words rise in over 150 ms. */
.sl-out .sl-sketch, .sl-out .sl-cap, .sl-out .sl-panel, .sl-out .sl-slide, .sl-out .sl-card { opacity: 0 !important; transition: opacity 150ms linear !important; }
.sl-rising .sl-cap, .sl-rising .sl-panel, .sl-rising .sl-slide, .sl-rising .sl-card { transform: translateY(8px); transition: none !important; }

/* the text zone: a slide or his sentence, never both */
.sl-slide { position: absolute; z-index: 1; opacity: 0; filter: brightness(1.02); mix-blend-mode: darken; /* slide paper #faf7f0 lifted past the page, then darken lands it on the page exactly */ transition: opacity 150ms linear, transform 150ms ease-out; pointer-events: none; }
.sl-stage[data-state="slide"] .sl-slide.live { opacity: 1; }
.sl-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sl-line { position: absolute; left: 0; right: 0; background-repeat: no-repeat; transition: opacity 150ms ease-out, transform 150ms ease-out; }
.sl-line.hidden { opacity: 0; transform: translateY(8px); }
.sl-line.dim { opacity: .38; }
.sl-line.on { opacity: 1; }
.sl:not(.sl-wide) .sl-line.small { display: none; }
.sl-cap { position: absolute; z-index: 1; overflow: hidden; opacity: 0; transition: opacity 150ms linear, transform 150ms ease-out; pointer-events: none;
  font-family: var(--sl-claim-font); font-weight: 600; font-size: 26px; line-height: 1.3; }
.sl-wide .sl-cap { font-size: 34px; }
.sl-wide.sl-low .sl-cap { font-size: 24px; } /* phone landscape: a long sentence must fit above the road */
.sl-low .sl-card { padding-top: 8px; padding-bottom: 0; }
.sl-low .sl-card .sl-btn { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.sl-low .sl-q { font-size: 20px; }
.sl-cap p { margin: 0; }
.sl-cap .sl-src { display: none; margin-top: 14px; font-family: var(--sl-body-font); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-soft); }
.sl-stage[data-layout="Quote"] .sl-src { display: block; }
.sl-stage[data-state="presenter"] .sl-cap { opacity: 1; }

/* the panel: the one text block of Count, Word, Verse and TakeHome, at the reading spot. Sizes are in em:
   panel.js sets the panel's font size so the whole of it fits. */
.sl-panel { position: absolute; z-index: 1; opacity: 0; transition: opacity 150ms linear, transform 150ms ease-out; pointer-events: none;
  font-size: 26px; line-height: 1.25; }
.sl-stage[data-state="panel"] .sl-panel { opacity: 1; }
.sl-panel p { margin: 0; }
.sl-cite, .sl-kicker { font-family: var(--sl-body-font); font-size: max(13px, .5em); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sl-soft); margin-bottom: .7em !important; }
.sl-cite::before, .sl-kicker::before { content: ""; display: block; width: 40px; height: 3px; background: var(--sl-accent); margin-bottom: 10px; }
.sl-pclaim { font-family: var(--sl-claim-font); font-weight: 600; margin-bottom: .45em !important; }
.sl-items { list-style: none; margin: 0; padding: 0; }
.sl-item { display: grid; grid-template-columns: 1.3em 1fr; gap: .25em; padding: .3em 0; border-top: 1px solid var(--sl-rule);
  font-family: var(--sl-claim-font); font-size: .92em; line-height: 1.25; transition: opacity 150ms ease-out, transform 150ms ease-out; }
.sl-item.hidden { opacity: 0; transform: translateY(8px); }
.sl-item.dim { opacity: .45; }
.sl-num { color: var(--sl-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.sl-word { font-family: var(--sl-claim-font); font-weight: 700; font-size: 1.9em; line-height: 1.05; margin-bottom: .3em !important; }
.sl-split { display: grid; grid-template-columns: 1fr 1fr; }
.sl-col { min-width: 0; padding: .1em 0 .1em .6em; }
.sl-col:first-child { padding: .1em .6em .1em 0; border-right: 2px solid var(--sl-accent); }
.sl-col .sl-word { font-size: 1.5em; }
.sl-reading { font-size: .82em; line-height: 1.3; }
.sl-deva p { font-family: var(--sl-deva-font); font-size: 1.05em; line-height: 1.55; }
.sl-iast { margin-top: .45em; }
.sl-iast p { font-family: var(--sl-sanskrit-font); font-style: italic; font-size: .62em; line-height: 1.4; color: var(--sl-soft); }
.sl-eng { font-family: var(--sl-claim-font); font-weight: 600; font-size: .8em; line-height: 1.3; margin-top: .75em !important; }
.sl-punch { font-family: var(--sl-claim-font); font-weight: 700; line-height: 1.02; letter-spacing: .01em; }
.sl-pw { display: inline-block; opacity: 0; transform: scale(1.14); transform-origin: 0 70%; }
.sl-pw.on { opacity: 1; transform: none; transition: opacity 120ms ease-out, transform 120ms ease-out; }
.sl-home-line { font-family: var(--sl-claim-font); font-weight: 700; font-size: 1.25em; line-height: 1.2; }

/* pause: the page dims and the play mark sits in the text zone, clear of his face */
.sl-dim { position: absolute; inset: 0; z-index: 2; background: rgba(31, 26, 36, .3); pointer-events: none; }
.sl-glyph { position: absolute; z-index: 3; width: 72px; height: 72px; transform: translate(-50%, -50%);
  background: var(--sl-ink); display: grid; place-items: center; pointer-events: none; }
.sl-glyph svg { width: 34px; height: 34px; fill: var(--sl-paper); margin-left: 4px; }
.sl-badge { position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%); padding: 4px 12px;
  background: var(--sl-ink); color: var(--sl-paper); font-weight: 600; pointer-events: none; }
.sl-hint { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 12px; margin: 0; padding: 10px 12px;
  background: var(--sl-paper); border-top: 1px solid var(--sl-rule); font-size: 15px; pointer-events: none; }
.sl-part { position: absolute; left: 0; top: 50%; transform: translateY(-50%); max-width: 100%; padding: 2px 6px 2px 0; background: var(--sl-paper); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* the card, at the reading spot: the time question and every door */
.sl-card { position: absolute; z-index: 4; max-width: 560px; padding: 16px 16px 8px; background: var(--sl-paper);
  transition: transform 150ms ease-out, opacity 150ms ease-out; }
.sl-q { font-family: var(--sl-claim-font); font-size: 23px; line-height: 1.25; font-weight: 600; margin: 0 0 6px; }
.sl-how { margin: 0 0 14px; font-size: 14px; color: var(--sl-soft); }
.sl-puzzle { cursor: pointer; }
.sl-puzzle .sl-q { font-size: 30px; line-height: 1.2; margin-bottom: 14px; }
.sl-wide .sl-puzzle .sl-q { font-size: 40px; }
.sl-wide.sl-low .sl-puzzle .sl-q { font-size: 24px; }
.sl-think { overflow: hidden; color: var(--sl-soft); font-weight: 400; }
.sl-think .sl-countfill { opacity: .22; }
.sl-think span:last-child { position: relative; }

/* the words: one deeper layer, opened on request */
.sl-words { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 64%; display: flex; flex-direction: column;
  background: var(--sl-paper); border-top: 2px solid var(--sl-ink); }
.sl-words-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; }
.sl-words-head h2 { font-family: var(--sl-claim-font); font-size: 20px; margin: 0; }
.sl-words-close { border: 0; background: transparent; padding: 10px 0; font-weight: 600; }
.sl-words-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; font-size: 18px; line-height: 1.55; }
.sl-words-list h3 { position: sticky; top: 0; z-index: 1; background: var(--sl-paper); font-family: var(--sl-claim-font);
  font-size: 19px; margin: 0; padding: 10px 0 6px; border-bottom: 1px solid var(--sl-rule); }
.sl-words-list p { margin: 6px 0 12px; }
.sl-s { display: inline; padding: 0; border: 0; background: transparent; text-align: left; line-height: inherit; }
.sl-s:hover { text-decoration: underline; }
.sl-s.now { text-decoration: underline; text-decoration-color: var(--sl-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sl-links { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 10px 16px; border-top: 1px solid var(--sl-rule); }
.sl-links a { color: var(--sl-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }

/* the bar: the road (tap it to go to a part), the time left, the words */
.sl-bar { display: flex; align-items: center; gap: 12px; padding: 4px 16px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--sl-rule); }
.sl-roadbox { flex: 1; min-width: 0; position: relative; }
.sl-road { display: block; width: 100%; height: 30px; overflow: visible; }
.sl-play .sl-road { cursor: pointer; }
.sl-left { font-size: 14px; white-space: nowrap; color: var(--sl-soft); }
/* pause/play and back a sentence: thumb-sized, drawn in ink */
.sl-ctl { flex: none; width: 44px; height: 44px; margin: -3px -6px; padding: 0; border: 0; background: transparent; color: var(--sl-ink); display: grid; place-items: center; cursor: pointer; }
.sl-ctl svg { width: 22px; height: 22px; fill: currentColor; }
.sl-back svg path { stroke: currentColor; stroke-width: 2.4; }
.sl-ctl:disabled { color: var(--sl-rule); cursor: default; }
/* a phone: the road takes a row to itself, so it stays wide enough to tap; the controls sit under it */
@media (max-width: 519px) {
  .sl-bar { flex-wrap: wrap; row-gap: 0; padding-top: 2px; }
  .sl-roadbox { flex: 1 0 100%; }
  .sl-left { margin-right: auto; }
}
.sl-pp .sl-i-play, .sl-pp.sl-paused .sl-i-pause { display: none; }
.sl-pp.sl-paused .sl-i-play { display: block; }
/* the tally: a Count's numbers while its section runs; the one the talk is on underlined in the accent */
.sl-tally { display: flex; gap: 8px; font-size: 18px; font-weight: 600; color: var(--sl-soft); font-variant-numeric: tabular-nums; }
.sl-tally .now { color: var(--sl-ink); box-shadow: inset 0 -3px var(--sl-accent); }
.sl-card-up .sl-tally { display: none; } /* a card is the one block on screen; the tally waits */
.sl-wbtn { border: 0; background: transparent; padding: 10px 0; font-weight: 600; }
.sl-pic { border: 0; background: transparent; padding: 10px 0; font-size: 14px; color: var(--sl-soft); }
.sl-pic[aria-pressed="false"] { color: var(--sl-ink); font-weight: 600; }
.sl-keys { margin: 0; padding: 0 16px 6px; font-size: 13px; color: var(--sl-soft); text-align: center; transition: opacity 600ms; }
.sl-keys.gone { opacity: 0; }

/* end: his still, then the doors not taken as the main thing */
.sl-end { flex: 1; min-height: 0; overflow-y: auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px;
  display: grid; grid-template-columns: 1fr; align-content: center; gap: 8px 40px; }
.sl-end-still img { display: block; width: min(60vw, 30vh); aspect-ratio: 1; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.sl-end h2 { font-family: var(--sl-claim-font); font-size: 34px; margin: 0 0 10px; }
.sl-end .sl-road { width: 100%; display: block; margin-bottom: 18px; }
.sl-home-head, .sl-doors-head { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-soft); margin: 0 0 4px; font-weight: 600; }
.sl-home { list-style: none; margin: 0 0 18px; padding: 0; }
.sl-facts-head, .sl-refs-head { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-soft); margin: 0 0 4px; font-weight: 600; }
.sl-facts { list-style: none; margin: 0 0 18px; padding: 0; }
.sl-facts li { padding: 8px 0; border-top: 1px solid var(--sl-rule); font-size: 17px; line-height: 1.35; }
.sl-home li { padding: 10px 0; border-top: 1px solid var(--sl-rule); font-family: var(--sl-claim-font); font-size: 19px; line-height: 1.3; }
.sl-door { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; padding: 16px 0; border: 0;
  border-top: 1px solid var(--sl-rule); background: transparent; text-align: left; font-size: 22px; line-height: 1.3; font-family: var(--sl-claim-font); font-weight: 600; }
.sl-door .sl-len { font-family: var(--sl-body-font); font-size: 16px; font-weight: 400; color: var(--sl-soft); }
.sl-end-actions { display: flex; gap: 12px; margin-top: 18px; }
.sl-end-actions .sl-btn { justify-content: center; }
.sl-end .sl-links { padding: 14px 0; margin-top: 10px; }

/* wide screens */
@media (min-aspect-ratio: 11/10) and (min-width: 760px) {
  .sl-words { left: auto; top: 0; height: auto; width: min(420px, 40%); border-top: 0; border-left: 2px solid var(--sl-ink); }
  .sl-end { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; }
  .sl-end-still img { width: 100%; max-width: 440px; }
  .sl-end-main { align-self: center; }
}
/* render mode (render.js): a frame for a recorder. No bar, no hints, no CSS motion: render.js sets every in-between
   state from the output clock. The closing card: the take-homes, then the episode address as its main line. */
.sl-render .sl-bar, .sl-render .sl-keys, .sl-render .sl-hint, .sl-render .sl-badge, .sl-render .sl-dim, .sl-render .sl-glyph { display: none !important; }
.sl-render *, .sl-render *::before, .sl-render *::after { transition: none !important; animation: none !important; }
.sl-close-homes { list-style: none; margin: 0 0 14px; padding: 0; }
.sl-close-homes li { padding: 10px 0; border-top: 1px solid var(--sl-rule); font-family: var(--sl-claim-font); font-size: 24px; line-height: 1.25; font-weight: 600; }
.sl-wide .sl-close-homes li { font-size: 30px; }
/* the closing frame has the screen to itself: speaker and plates go, the card fills the frame, the address is its main line */
.sl-render.sl-closing .sl-namecard, .sl-render.sl-closing .sl-shot, .sl-render.sl-closing .sl-face { visibility: hidden !important; }
.sl-render .sl-card.sl-close { inset: 0 !important; width: auto !important; height: auto !important; max-width: none; padding: 6vmin;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.sl-render .sl-close .sl-close-homes { max-width: 900px; width: 100%; text-align: left; margin-bottom: 7vmin; }
.sl-render .sl-close .sl-close-homes li, .sl-render.sl-wide .sl-close .sl-close-homes li { font-size: min(3.2vh, 4.4vw); padding: .4em 0; }
.sl-close-address { margin: 0; font-family: var(--sl-claim-font); font-weight: 700; line-height: 1.1; font-size: min(7.2vw, 9vh);
  color: var(--sl-ink); overflow-wrap: anywhere; }
.sl-close-address::before { content: ""; display: block; width: 1.4em; height: .1em; background: var(--sl-accent); margin: 0 auto .45em; }
/* chips (chips.js): pills under the caption; a tap opens a sheet where the caption is and the talk plays on. The
   sheet never covers the speaker's picture: on a phone it hangs from the top and the picture stands whole under it;
   on a wide screen it covers the text column beside the picture. chips.js sets its size (placeSheet). */
.sl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-height: var(--sl-chip-h, 32px); overflow: hidden; pointer-events: auto; }
.sl .sl-chip { font-family: var(--sl-body-font); font-size: 14px; font-weight: 600; line-height: 1; padding: 8px 12px; min-height: 32px;
  border: 1px solid var(--sl-rule); border-radius: 16px; background: var(--sl-paper); color: var(--sl-ink); cursor: pointer;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-chip::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; }
.sl-chip-context::before { border: 1.5px solid var(--sl-soft); }
.sl-chip-fact::before { background: var(--sl-accent); }
.sl-chip-source::before { background: var(--sl-ink); border-radius: 1px; }
.sl-render .sl-chips { display: none; }
.sl-sheet-back { position: absolute; inset: 0; z-index: 8; } /* takes the tap outside; the picture is not dimmed */
.sl-sheet { position: absolute; z-index: 9; font-family: var(--sl-body-font); left: 0; right: 0; top: 0; max-height: 58%; overflow-y: auto; padding: 18px 16px 16px;
  background: var(--sl-paper); border-bottom: 2px solid var(--sl-ink); }
.sl-wide .sl-sheet { right: auto; bottom: 0; width: 40%; max-height: none; padding-right: 20px; border-bottom: 0; border-right: 2px solid var(--sl-ink); }
.sl-wide:not(.sl-low) .sl-sheet h3 { font-size: 28px; }
.sl-wide:not(.sl-low) .sl-sheet-body { font-size: 18px; }
.sl-sheet-up .sl-cap, .sl-sheet-up .sl-panel { opacity: 0 !important; }
.sl-sheet-up .sl-chips { pointer-events: none; }
.sl-sheet h3 { font-family: var(--sl-claim-font); font-size: 22px; line-height: 1.25; margin: 4px 0 10px; }
.sl-sheet-kind { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-soft); }
.sl-sheet-fact .sl-sheet-kind { color: var(--sl-accent); }
.sl-sheet-body { margin: 0 0 10px; font-size: 16px; line-height: 1.5; white-space: pre-line; } /* a note and its verse stay separate paragraphs */
.sl-sheet-cite { margin: 0 0 14px; font-size: 14px; color: var(--sl-soft); }
.sl .sl-sheet-close { float: right; font-family: var(--sl-body-font); font-size: 15px; border: 0; background: transparent; padding: 4px 0 8px 12px; font-weight: 600; cursor: pointer; color: var(--sl-ink); }
.sl-sheet-open { display: inline-flex; text-decoration: none; color: var(--sl-ink); font-weight: 600; }
.sl-refs { list-style: none; margin: 0 0 18px; padding: 0; }
.sl-refs li { padding: 8px 0; border-top: 1px solid var(--sl-rule); }
.sl-refs a { color: var(--sl-ink); }
.sl-ref-cite { display: block; font-size: 14px; color: var(--sl-soft); }
@media (prefers-reduced-motion: reduce) {
  .sl-face { transition: none; }
  .sl-line { transition: opacity 200ms linear; }
  .sl-line.hidden, .sl-item.hidden, .sl-pw, .sl-rising .sl-cap, .sl-rising .sl-panel, .sl-rising .sl-slide, .sl-rising .sl-card { transform: none; }
  .sl-card { transition: opacity 150ms linear; }
}

/* The sketch surface (sketch.js): one page per turn, lettered as the speaker talks. Each element appears in its
   final place; its arrow draws first, then the word inks in, both set by the script from the clock. */
.sl-sketch { position: absolute; z-index: 1; transform-origin: 0 0; transition: opacity 150ms linear; }
.sl-sk-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sl-sk-line { fill: none; stroke: var(--sl-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sl-sk-rel { font-family: var(--sl-sketch-font); font-style: italic; font-size: 12px; fill: var(--sl-soft); paint-order: stroke; stroke: var(--sl-paper); stroke-width: 4px; stroke-linejoin: round; }
.sl .sl-sk { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 4px 6px; border: 0; background: transparent; text-align: center; color: var(--sl-ink); }
.sl-sk-ic { width: 34px; height: 34px; flex: 0 0 auto; background: var(--sl-ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.sl-sk-w { font-family: var(--sl-sketch-font); font-style: italic; font-weight: 600; font-size: 17px; line-height: 1.1; overflow-wrap: anywhere; }
.sl-sk-main .sl-sk-w { font-size: 21px; }
.sl-sk-new .sl-sk-w { font-weight: 700; }
.sl-sk-fact .sl-sk-w { font-style: normal; border: 1.5px solid var(--sl-ink); padding: 4px 8px; }
.sl-sk-mark { display: inline-block; width: .85em; height: .85em; margin-right: .3em; vertical-align: -.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.sl-sk-story { justify-content: flex-start; align-items: flex-start; text-align: left; }
.sl-sk-story .sl-sk-w { font-family: var(--sl-body-font); font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-top: 3px solid var(--sl-accent); padding-top: 6px; }
.sl-sketch[data-form="wide"] .sl-sk-w { font-size: 20px; }
.sl-sketch[data-form="wide"] .sl-sk-main .sl-sk-w { font-size: 25px; }
.sl-sketch[data-form="wide"] .sl-sk-ic { width: 40px; height: 40px; }
.sl-sketch[data-form="low"] .sl-sk-w { font-size: 15px; }
.sl-sketch[data-form="low"] .sl-sk-main .sl-sk-w { font-size: 18px; }
.sl-sheet-fig { margin: 0 0 10px; }
.sl-sheet-fig img { display: block; max-width: 100%; max-height: 200px; }
.sl-sheet-fig figcaption { font-size: 12px; color: var(--sl-soft); margin-top: 4px; }
.sl-sheet-dates { margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: var(--sl-soft); }
.sl-sheet-dates li { padding: 2px 0; }
.sl-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-bottom: 18px; }
.sl-endpage { margin: 0; }
.sl-endpage figcaption { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-soft); margin-bottom: 6px; }
.sl-endpage-frame { position: relative; width: 100%; overflow: hidden; border-top: 1px solid var(--sl-rule); }
.sl-endpage-plate { position: absolute; mix-blend-mode: darken; }
.sl-sketch-still { position: absolute; }
.sl-sk-w { position: relative; }
.sl-sk-dot { position: absolute; right: 0; top: .1em; width: 7px; height: 7px; border-radius: 50%; background: var(--sl-tap); opacity: var(--sl-dot, 1); }
.sl-sk-w.sl-sk-dotted { padding-right: 11px; }
.sl .sl-sk.sl-sk-plain { cursor: default; } /* a word whose card would only repeat the speaker opens nothing */
.sl-sk-fact .sl-sk-w.sl-sk-dotted { padding-right: 16px; }
.sl-sk-fact .sl-sk-dot { right: 4px; top: 5px; }
.sl-sk:hover .sl-sk-dot, .sl-sk:focus-visible .sl-sk-dot, .sl-sk-untapped .sl-sk-new .sl-sk-dot { opacity: 1; } /* pointed at, or the one still pulsing */
.sl-sk-untapped .sl-sk-new .sl-sk-dot { animation: sl-sk-pulse 1.6s ease-out infinite; }
@keyframes sl-sk-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 50, 30, .55); } 70% { box-shadow: 0 0 0 8px rgba(200, 50, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 50, 30, 0); } }
.sl-sk-hint { position: absolute; z-index: 3; margin: 0; padding: 7px 12px; background: var(--sl-ink); color: var(--sl-paper); font-family: var(--sl-body-font);
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sl-sk-untapped .sl-sk-new .sl-sk-dot { animation: none; } }
.sl-imagined, .sl-home-by { font-family: var(--sl-body-font); font-style: normal; font-weight: 400; font-size: max(13px, .5em); color: var(--sl-soft); margin-top: .6em !important; }
.sl-home-by { display: block; font-size: 13px; margin-top: 4px !important; }
