/* The Terms sheet's block: the lantern's show (2026-10-20; docs/process/briefs/lantern-show.md; js/lantern.js and
   js/terms-sheet.js). The sheet keeps the map's paper; on it, the lantern's stage (the rig's pictures at their own
   2048 x 1152, scaled to the width), the show's controls, the slip being read with its word marked, and below (or, on a
   wide window, beside) the two parts of slips, each from A to Z. Its own file, so that other seats' blocks in site.css
   are never touched.
   The type pass (2026-11-12, docs/design/TYPE.md): every size here is from site.css's scale; the labels and the
   controls are the record's voice; the buttons are site.css's two kinds at their one height. */

/* the sheet is wider than the map's, so the show and the lists can stand side by side on a laptop */
.sheet-inner.terms-inner { max-width: 1280px; }
.terms-layout { display: block; }
.show-col { margin: 6px 0 18px; }
@media (min-width: 1100px) and (min-height: 620px) {
  html.wide .terms-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, 1fr); gap: 34px; align-items: start; }
  /* the show stays in view while the lists scroll beside it */
  html.wide .show-col { position: sticky; top: calc(var(--bar-h) + 8px); margin: 0; max-height: calc(100vh - var(--bar-h) - 16px); overflow: auto; overscroll-behavior: contain; }
  html.wide .parts-col { min-width: 0; }
}

/* the stage: the picture at its own size, scaled by --s (its width over 2048) */
.lantern-stage { position: relative; width: 100%; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #2a2018; box-shadow: 0 1px 0 var(--paper-edge), 0 12px 30px rgba(0, 0, 0, 0.42); --s: 0.4; }
@supports not (aspect-ratio: 16 / 9) { .lantern-stage { height: 0; padding-bottom: 56.25%; } }
/* a single column on a laptop: the stage, its controls and the slip fit the window together */
html.wide .lantern-stage { max-width: max(320px, calc((100vh - 380px) * 16 / 9)); }
@media (min-width: 1100px) and (min-height: 620px) { html.wide .lantern-stage { max-width: none; } }
.terms-show.no-stage .lantern-stage { display: none; }
.lantern-pic { position: absolute; left: 0; top: 0; width: 2048px; height: 1152px; transform-origin: 0 0; transform: scale(var(--s)); pointer-events: none; }
.lantern-pic > img, .lantern-pic .grp > img { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lantern-pic .grp { position: absolute; left: 0; top: 0; width: 2048px; height: 1152px; will-change: transform; }
.lantern-pic .bg { left: 0; top: 0; width: 2048px; height: 1152px; }
.lantern-pic .glow { position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.95) 0%, rgba(255, 170, 70, 0.55) 28%, rgba(255, 140, 40, 0.18) 55%, rgba(255, 120, 30, 0) 72%); }
.lantern-pic .eye-l-off, .lantern-pic .eye-r-off { opacity: 0; }
/* the screen's cold light on the paper round it while the clip plays (DIRECTION L-05), under the screen */
.lantern-pic .spill { position: absolute; opacity: 0; mix-blend-mode: screen; border-radius: 6%;
  background: radial-gradient(ellipse 58% 60% at 50% 50%, rgba(205, 225, 255, 0.34) 40%, rgba(190, 210, 255, 0.12) 62%, rgba(180, 200, 255, 0) 78%); }
/* the easel's paper screen: the clip as if thrown on the paper (its grain over it, a soft hotspot) */
.lantern-pic .screen { position: absolute; overflow: hidden; }
/* the clip's two players (each pass cross-fades into the next), faded together as one */
.lantern-pic .screen .clipbox { position: absolute; inset: 0; opacity: 0; }
.lantern-pic .screen video, .lantern-pic .screen .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; filter: sepia(0.08) saturate(1.04) contrast(1.02); }
.lantern-pic .screen .paper-grain { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0.32; }
.lantern-pic .screen .hotspot { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 75% at 50% 48%, rgba(255, 244, 222, 0.1) 0%, rgba(0, 0, 0, 0) 55%, rgba(16, 10, 6, 0.42) 100%); }
/* the word in type, as a lantern slide: warm and dim, never black (its change to a clip stays gentle) */
.lantern-pic .screen .title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px 34px; text-align: center;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, #3a2d22 0%, #241b14 100%); }
/* (the slide's sizes are in the picture's own 2048 px, scaled with it: outside the scale) */
.lantern-pic .screen .title span { font-family: var(--story); font-size: 96px; line-height: 1.04; font-weight: 580; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0; letter-spacing: -0.012em; color: #f6e7c8; text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(255, 200, 120, 0.5), 0 0 2px rgba(255, 230, 190, 0.85); }
.lantern-pic .screen .title[data-len="mid"] span { font-size: 76px; }
.lantern-pic .screen .title[data-len="long"] span { font-size: 58px; }

/* the controls: Back, Play (or Pause), Next, and where we are */
.show-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 10px; }
.show-controls .btn { padding: 8px 18px; }
/* Play is the next step (the paper button: ink on the sheet); once it plays it is Pause, and quiet */
.show-controls .show-play { min-width: 112px; }
.show-controls .show-play.on { background: transparent; border-color: var(--ink); color: var(--ink); box-shadow: none; font-family: var(--record); font-size: var(--fs-small); font-weight: 700; font-variation-settings: normal; }
.show-controls .show-play.on:hover { background: rgba(35, 28, 22, 0.08); }
.show-controls [aria-disabled="true"] { opacity: 0.42; cursor: default; }
.show-status { margin: 0 0 0 6px; font-family: var(--record); font-size: var(--fs-small); color: var(--ink-soft); }

/* the slip being read: its words, the word being read marked (its sentence, under reduced motion) */
.show-slip { padding: 16px 20px 12px; border-radius: var(--radius); background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--paper-edge); }
.show-slip h2 { margin: 0 0 8px; font-family: var(--story); font-size: var(--fs-card); font-weight: 600; font-variation-settings: var(--fv-card); line-height: 1.18; text-wrap: balance; }
.show-slip p { margin: 0 0 8px; max-width: var(--measure-record); font-size: var(--fs-body); line-height: 1.5; text-wrap: pretty; }
.show-slip .show-story strong { font-weight: 700; }
.show-slip .show-kind { font-size: var(--fs-small); font-style: italic; color: var(--ink-soft); }
.show-slip .src { font-size: var(--fs-small); }
.show-slip .show-credit { margin-top: 10px; padding-top: 8px; border-top: 1.5px dashed var(--paper-edge); font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); }
.show-slip .w { border-radius: 2px; transition: background-color 0.12s linear, box-shadow 0.12s linear; }
.show-slip .w.now { background: rgba(240, 180, 92, 0.55); box-shadow: 0 0 0 2px rgba(240, 180, 92, 0.55); }
.show-slip .s { border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.show-slip .s.now-s { background: rgba(240, 180, 92, 0.3); box-shadow: 0 0 0 2px rgba(240, 180, 92, 0.3); }
html.reduced .show-slip .w { transition: none; }

/* the two parts: a heading, its letters, its slips; each slip with its Play */
.parts-col .terms-part + .terms-part { margin-top: 26px; padding-top: 12px; border-top: 3px double var(--paper-edge); }
.part-h { margin: 6px 0 10px; font-family: var(--story); font-size: var(--fs-lede); font-weight: 600; font-variation-settings: var(--fv-lede); line-height: 1.15; scroll-margin-top: 72px; }
.part-h .part-n { font-family: var(--record); font-size: var(--fs-small); font-weight: 400; font-variation-settings: normal; color: var(--ink-soft); }
.terms-part .term-letter-h { font-size: var(--fs-card); }
.term-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.term-entry-head > h3, .term-entry-head > h4 { margin: 0 0 4px; }
.terms-sheet .term-entry h4 { font-family: var(--story); font-size: var(--fs-story); font-weight: 650; font-variation-settings: var(--fv-story); line-height: 1.25; scroll-margin-top: 72px; }
/* a slip's own Play: small and quiet (the record's voice) */
.pick { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: -6px; padding: 3px 12px 3px 10px; border: 1px solid var(--paper-edge); border-radius: var(--radius); background: rgba(255, 250, 238, 0.5); color: var(--ink-soft); font-family: var(--record); font-weight: 700; font-size: var(--fs-small); cursor: pointer; }
.pick:hover { background: #fffdf6; border-color: var(--ink-soft); color: var(--ink); }
.pick-glyph { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.term-entry.here .pick { border-color: var(--ink); color: var(--ink); }
html.narrow .pick { min-height: 44px; }

/* a slip's foot with "Hear it" (offered while sound is on): its buttons in reading order, Close at the end of its row */
.slip-foot:has([data-slip="hear"]) { justify-content: flex-start; }
.slip-foot:has([data-slip="hear"]) [data-slip="close"] { margin-left: auto; }

/* a phone, or any narrow window: the stage on top, then its controls and the slip; nothing scrolls sideways */
html.narrow .show-col { margin: 4px 0 16px; }
html.narrow .show-slip { padding: 12px 12px 8px; }
html.narrow .show-controls .btn { padding: 8px 12px; }
html.narrow .show-controls .show-play { min-width: 96px; }
html.narrow .show-status { flex-basis: 100%; margin: 2px 0 0; }
@media (max-width: 360px) { .show-controls .btn { padding: 8px 10px; } .show-controls .show-play { min-width: 84px; } }

/* ---- the map's tour and plain words read aloud (2026-10-21; js/mapshow.js, js/plainshow.js; D-065): one rig, three
   sheets. The map: the lantern's stage, its controls and the stop's lines beside the map on a laptop (above it on a
   phone); the stop being read lit in the map. Plain words: a bar above the text, kept in view, with a small lantern. */
.sheet-inner.map-inner { max-width: 1280px; }
.show-layout { display: block; }
@media (min-width: 1100px) and (min-height: 620px) {
  html.wide .show-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 34px; align-items: start; }
  html.wide .show-layout > .show-col { position: sticky; top: calc(var(--bar-h) + 8px); margin: 0; max-height: calc(100vh - var(--bar-h) - 16px); overflow: auto; overscroll-behavior: contain; }
  html.wide .show-layout > .map-col { min-width: 0; }
}
.map-show .show-slip h2 { font-size: var(--fs-card); }
.map-show .map-cap-choice { margin: 0 0 6px; font-size: var(--fs-body); line-height: 1.45; }
.map .stop.reading { background: rgba(240, 180, 92, 0.22); box-shadow: 0 0 0 4px rgba(240, 180, 92, 0.22); border-radius: 3px; }
.map .pinmark.reading { stroke: #6b3f12; stroke-width: 4; fill: var(--lamp); }
/* (on the map a row is 40 px high: its Play keeps a 40 px press and adds nothing to the row's height) */
.map .stop .pick { min-height: 40px; margin: -8px 0 -8px 2px; padding: 2px 10px 2px 8px; align-self: center; border-color: transparent; background: none; }
.map .stop .pick:hover { border-color: var(--paper-edge); background: rgba(255, 250, 238, 0.6); }
html.narrow .map .stop .pick { min-height: 44px; margin: -4px 0 -4px 2px; border-color: var(--paper-edge); }

/* plain words: the show's bar (kept in view under the site's bar) */
.plain-sheet > .sheet-close { margin-bottom: 8px; }
.plain-show { position: sticky; top: calc(var(--bar-h) + 6px); z-index: 6; display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 8px 10px; border-radius: var(--radius); background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--paper-edge), 0 6px 16px rgba(0, 0, 0, 0.18); }
.plain-show .lantern-stage { flex: none; width: 200px; margin: 0; box-shadow: 0 1px 0 var(--paper-edge), 0 4px 10px rgba(0, 0, 0, 0.3); }
.plain-show .show-controls { flex: 1 1 auto; margin: 0; }
.plain-show .show-play { min-width: 150px; }
.plain-show.no-stage .lantern-stage { display: none; }
/* a phone: the lantern on the left; Read it to me, then Back and Next, then where it is reading (compact, so the text
   keeps most of the screen) */
html.narrow .plain-show { display: grid; grid-template-columns: 112px auto auto 1fr; column-gap: 8px; row-gap: 6px; padding: 6px 8px; }
html.narrow .plain-show .lantern-stage { grid-column: 1; grid-row: 1 / span 3; align-self: center; width: 112px; }
html.narrow .plain-show .show-controls { display: contents; }
html.narrow .plain-show .show-play { grid-column: 2 / span 3; grid-row: 1; min-width: 0; }
html.narrow .plain-show .show-back { grid-column: 2; grid-row: 2; }
html.narrow .plain-show .show-next { grid-column: 3; grid-row: 2; }
html.narrow .plain-show .show-status { grid-column: 2 / span 3; grid-row: 3; margin: 0; }
/* the paragraph being read, and its sentence (a highlight: the text itself is untouched) */
.plain .lantern-para { background: rgba(240, 180, 92, 0.13); box-shadow: 0 0 0 6px rgba(240, 180, 92, 0.13); border-radius: 2px; }
::highlight(lantern-sentence) { background-color: rgba(240, 180, 92, 0.5); color: inherit; }
