/* M28 Investigates · v0.5 · story pages (brief §3.2). The opening is the shared cinematic hero (core.css) with the
   story's own parts; then the tool strip, key findings, the large map, the reading grid (contents · text · margin) and
   the end matter. Parts used by project pages too (film player, listen box, lists of sources) are here as well. */

/* ---------------------------------------------------------------- reading progress */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 4px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------------- the project frame: a story inside its project or case file */
.pframe { background: var(--charcoal-d2); border-bottom: 1px solid var(--charcoal-t12); }
.pframe__in { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 3.25rem; }
.pframe__name { display: inline-flex; align-items: center; gap: .7em; font: 600 1.125rem/1.1 var(--f-serif); color: var(--white); }
.pframe__name::before { content: ""; width: 1.75rem; height: var(--bar); background: var(--red-t25); }
.pframe__name:hover { text-decoration: underline; text-decoration-color: var(--red-t25); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.pframe__pos { font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey-s22); }
.pframe__nav { margin-left: auto; display: flex; gap: .4rem; }
.pframe__nav a, .pframe__nav span { display: inline-flex; align-items: center; gap: .45em; min-height: 2.25rem; padding: 0 .75rem; border: 1px solid var(--charcoal-t40); font: 600 .8125rem/1 var(--f-ui); color: var(--white); }
.pframe__nav a:hover { border-color: var(--white); background: var(--charcoal-t10); }
.pframe__nav span { color: var(--charcoal-t50); border-color: var(--charcoal-t12); }
.pframe__nav .icon { width: .95rem; height: .95rem; }
@media (max-width: 47.99em) { .pframe__pos, .pframe__nav b { display: none; } .pframe__nav a, .pframe__nav span { padding: 0 .6rem; } }

/* ---------------------------------------------------------------- the opening: the lead photograph, full-bleed (100vh with the header on a
   desktop, 70vh on a phone), the case number, a 64 to 80 px headline under its redaction bar, standfirst, byline */
.hero--story { min-height: min(calc(100vh - var(--hdr-h)), 66rem); }
.pframe + .hero--story { min-height: min(calc(100vh - var(--hdr-h) - 3.25rem), 66rem); }
.hero--story .hero__in { padding-top: clamp(5.5rem, 14vh, 9rem); }
.hero--story h1 { max-width: 20ch; font-size: var(--t-h1); line-height: 1; letter-spacing: -.026em; }
.hero--s2 h1 { max-width: 24ch; }
.hero--s3 h1 { max-width: 30ch; font-size: clamp(2.125rem, 1.25rem + 3.2vw, 4rem); line-height: 1.02; }
.hero--story .hero__deck { max-width: 44rem; }
.hero .crumbs-nav { position: absolute; left: var(--gutter); right: var(--gutter); top: 1.25rem; z-index: 2; }
.hero .crumbs { color: var(--grey); }
.hero .crumbs a { color: var(--white); }
.hero .crumbs li:last-child { display: none; }
.hero__by { max-width: 44rem; margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid rgb(255 255 255 / .38); font: 500 1rem/1.4 var(--f-ui); color: var(--grey); }
.hero__by b { font-weight: 700; color: var(--white); }
/* v0.6.4: a French or Dutch story says in one small line that it is a machine translation, with the way to the original */
.hero__tr { max-width: 44rem; margin-top: .55rem; font: 400 .8125rem/1.45 var(--f-text); letter-spacing: .01em; color: var(--grey-s22); }
.hero__tr a { color: var(--grey); text-decoration: underline; text-decoration-color: var(--red-t45); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.hero__tr a:hover { color: var(--white); }
.hero__with { display: block; margin-top: .3rem; font: 400 .9375rem/1.45 var(--f-text); color: var(--grey); }
.hero--story .meta { margin-top: .8rem; }
.hero--story .btnrow { margin-top: 1.5rem; }
/* no photograph: a typographic cover sheet, made on purpose: the case bar, the case number, the facts of the file */
.hero--type { min-height: min(72vh, 46rem); background: var(--charcoal); }
.hero--type .hero__in { padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.hero--type .kicker { position: relative; padding-top: 1.6rem; }
.hero--type .kicker::after { content: ""; position: absolute; left: 0; top: 0; width: 7.5rem; height: var(--bar); background: var(--red-t25); }
.hero__sheet { align-self: end; margin: 0; padding: .35rem 1.25rem .5rem; background: var(--charcoal-t04); border-top: var(--bar) solid var(--red-t25); }
.hero__sheet div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--charcoal-t25); }
.hero__sheet div:first-child { border-top: 0; }
.hero__sheet dt { font: 500 .75rem/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-s22); }
.hero__sheet dd { margin: 0; font: 500 .875rem/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.hero__sheet div:first-child dd { font-size: 1.0625rem; color: var(--red-t45); }
@media (min-width: 62em) { .hero--type .hero__in { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
@media (max-width: 61.99em) {
  .hero--story .hero__media { height: min(70vh, 40rem); }
  .hero--story .hero__in { padding-top: min(40vh, 21rem); }
  .hero .crumbs-nav { top: 2.1rem; }
  .hero--type { min-height: 0; }
  .hero--type .hero__in { padding-top: 5.25rem; }
  .hero--type .crumbs-nav { top: .9rem; }
}

/* ---------------------------------------------------------------- tool strip: languages, share, print, downloads */
.stools { border-bottom: 1px solid var(--line-2); background: var(--bg); }
.stools__in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; min-height: 3.75rem; padding-block: .6rem; font: 500 .875rem/1.2 var(--f-ui); }
.stools__grp { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; }
.stools__grp > span { margin-right: .35rem; font: 500 var(--t-label)/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.stools a, .stools button { display: inline-flex; align-items: center; gap: .45em; min-height: 2.375rem; padding: 0 .8rem; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); font: 600 .8125rem/1 var(--f-ui); }
.stools a:hover, .stools button:hover { border-color: var(--head); color: var(--head); }
.stools a[aria-current] { background: var(--red); border-color: var(--red); color: var(--white); }
.stools .icon { width: 1rem; height: 1rem; }
.stools__end { margin-left: auto; }
@media (max-width: 47.99em) { .stools__end { margin-left: 0; } }
.trnote { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin-bottom: 1.75rem; padding: .9rem 1rem; border-top: var(--bar) solid var(--head); background: var(--bg-3); font: 500 .9375rem/1.45 var(--f-ui); color: var(--ink); }
.trnote a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* ---------------------------------------------------------------- the reading grid: contents · text · margin */
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem) var(--sec); }
.story__text { min-width: 0; max-width: var(--measure); width: 100%; margin-inline: auto; }
.toc--side, .story__pad { display: none; }
.story--intro { padding-bottom: 0; }
.story--intro + .story { padding-top: 0; }
.story--intro + .scene { margin-top: clamp(2rem, 1.5rem + 2.5vw, 4rem); }
.scene + .story { padding-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
/* phones and tablets: the panel is a bar that stays under the header for the whole story. It shows where the reader is
   and opens over the text as a sheet, so the text never jumps. */
.ctxwrap { max-width: var(--measure); width: 100%; margin-inline: auto; border: 1px solid var(--line-2); }
.ctxwrap > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.25rem; padding: 0 1rem; font: 600 .9375rem/1.25 var(--f-ui); color: var(--head); list-style: none; }
.ctxwrap > summary::-webkit-details-marker { display: none; }
.ctxwrap > summary::after { content: "+"; font: 400 1.4rem/1 var(--f-mono); color: var(--accent-ink); }
.ctxwrap[open] > summary::after { content: "−"; }
.ctxwrap[open] > summary { border-bottom: 1px solid var(--line-2); }
.ctxwrap .ctx { padding: 1.25rem 1rem; }
.ctxwrap .mp { max-width: 22rem; }
.ctx__now { display: none; }
@media (max-width: 63.99em) {
  .story[data-progress] { display: block; }
  .story[data-progress] > * + * { margin-top: 2rem; }
  .ctxwrap { position: sticky; top: var(--stick); z-index: 25; max-width: none; width: auto; margin-inline: calc(-1 * var(--gutter)); border-width: 0 0 1px; border-top: var(--bar) solid var(--accent); background: var(--bg); transition: top .28s var(--ease); }
  .ctxwrap > summary { gap: .6rem; min-height: 2.875rem; padding-inline: var(--gutter); cursor: pointer; }
  .ctx__sum { flex: none; }
  .js .ctx__now { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--ink-2); }
  .ctx__now:not(:empty)::before { content: "· "; color: var(--ink-3); }
  .ctxwrap .ctx { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--stick) - 8rem); max-height: calc(100dvh - var(--stick) - 8rem); overflow-y: auto; overscroll-behavior: contain;
    padding: 1.25rem var(--gutter) 1.75rem; background: var(--bg); border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 48px rgb(0 0 0 / .28); }
  .ctxwrap .mp { max-width: 20rem; margin-inline: auto; }
  .story__text [id] { scroll-margin-top: calc(var(--stick) + 4rem); }      /* a jump lands below the header and this bar */
}
@media (min-width: 64em) {
  .story { grid-template-columns: minmax(0, var(--measure)) 20rem; gap: clamp(2.5rem, 5vw, 5rem); justify-content: center; }
  .story--plain { grid-template-columns: minmax(0, var(--measure)); }
  .story__text { grid-column: 1; grid-row: 1; margin-inline: 0; }
  .ctxwrap { grid-column: 2; grid-row: 1; border: 0; max-width: none; margin: 0; position: sticky; top: calc(var(--stick) + 1.5rem); align-self: start; max-height: calc(100vh - var(--stick) - 3rem); overflow-y: auto; scrollbar-width: none; }
  .ctxwrap::-webkit-scrollbar { display: none; }
  .ctxwrap > summary { display: none; }
  .ctxwrap .ctx { padding: 0; }
  .ctxwrap .mp { max-width: none; }
  .story__pad { display: block; grid-column: 2; grid-row: 1; }
}
@media (min-width: 82em) {
  .story--toc { grid-template-columns: 13rem minmax(0, var(--measure)) 20rem; justify-content: space-between; gap: 3rem; }
  .story--toc .toc--side { display: block; grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--stick) + 1.5rem); align-self: start; max-height: calc(100vh - var(--stick) - 3rem); overflow-y: auto; scrollbar-width: none; }
  .story--toc .story__text { grid-column: 2; }
  .story--toc .ctxwrap { grid-column: 3; }
  .story--toc .ctx__toc { display: none; }
  .story--toc .story__pad { grid-column: 3; }
}
/* the heads of the rails: a label under the case bar */
.toc h2, .ctx h2 { padding-top: .9rem; border-top: var(--bar) solid var(--accent); font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--head); }
.toc ol { counter-reset: t; margin-top: .6rem; }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line-2); }
.toc a { display: grid; grid-template-columns: 1.7rem 1fr; gap: .2rem; padding: .65rem 0; font: 500 .9375rem/1.3 var(--f-ui); color: var(--ink); }
.toc a::before { content: counter(t, decimal-leading-zero); font: 400 .75rem/1.7 var(--f-mono); color: var(--ink-3); }
.toc a:hover, .toc a.is-on { color: var(--head); }
.toc a.is-on { font-weight: 700; box-shadow: inset 4px 0 0 var(--accent); padding-left: .7rem; }
.toc a.is-on::before { color: var(--accent-ink); }

/* the margin: where and when (curated), then the first sources */
.ctx > section + section { margin-top: 2rem; }
.ctx .mp { margin-top: .9rem; background: var(--charcoal); --mp-0: #313538; --mp-2: #8E262B; --mp-3: #A72D32; --mp-edge: #15191D; --mp-water: #15191D; }
.ctx .mp .cx__dot circle { fill: var(--white); stroke: var(--charcoal); }
.cx__label { min-height: 2.6rem; margin-top: .7rem; font: 600 1rem/1.3 var(--f-ui); color: var(--head); }
.cx__label small { display: block; margin-top: .15rem; font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.cx__places { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.cx__places a, .cx__places span { padding: .3rem .55rem; border: 1px solid var(--line-2); font: 600 .75rem/1.2 var(--f-ui); color: var(--ink); }
.cx__places a:hover { border-color: var(--head); }
.cx__places .is-on { background: var(--red); border-color: var(--red); color: var(--white); }
.cx__dates { position: relative; margin-top: 1.1rem; margin-left: .3rem; }
.cx__dates li { position: relative; border-left: 2px solid var(--line-2); }
.cx__dates a, .cx__dates li > span { display: block; padding: 0 0 1rem 1.1rem; }
.cx__dates li:last-child a, .cx__dates li:last-child > span { padding-bottom: .2rem; }
.cx__dates a::before, .cx__dates li > span::before { content: ""; position: absolute; left: -.4375rem; top: .2rem; width: .75rem; height: .75rem; background: var(--bg); border: 2px solid var(--ink-3); }
.cx__dates time { display: block; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.cx__dates b { display: block; margin-top: .15rem; font: 600 .9375rem/1.3 var(--f-ui); color: var(--head); }
.cx__dates a:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.cx__dates a.is-on::before { background: var(--accent); border-color: var(--accent); }
.cx__note { margin-top: .9rem; font: 400 .8125rem/1.45 var(--f-text); color: var(--ink-2); }
.cx__note + p { margin-top: .6rem; }
.cx__srcs { margin-top: .6rem; }
.cx__srcs li { border-bottom: 1px solid var(--line-2); }
.cx__srcs a { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: .2rem; padding: .6rem 0; }
.cx__srcs span { font: 500 .75rem/1.7 var(--f-mono); color: var(--accent-ink); }
.cx__srcs b { font: 500 .875rem/1.35 var(--f-ui); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cx__srcs a:hover b { color: var(--head); text-decoration: underline; text-underline-offset: .2em; }
.ctx__src .more { margin-top: 1rem; }
.stdlist li { padding: .55rem 0; border-top: 1px solid var(--line-2); }
.stdlist li:first-child { border-top: 0; }

/* ---------------------------------------------------------------- the large map of a story: the places where its events happened.
   Live, the map is pinned and moves from place to place while the events pass beside it. Without JavaScript, or when
   the reader asks for less motion, it is one map with numbered places, then the list. */
.scene { border-top: var(--bar) solid var(--red-t25); }
.scene__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 6rem); padding-block: var(--sec); }
.scene__stage { align-self: start; }
.scene__intro h2 { margin-top: .9rem; }
.scene__intro p:not([class]) { margin-top: 1rem; max-width: 30rem; color: var(--ink); }
.scene__intro p:last-child { margin-top: 1.1rem; }
.step { margin-top: 2rem; padding: .1rem 0 .2rem 1.25rem; border-left: var(--bar) solid var(--charcoal-t25); }
.step__k { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font: 500 var(--t-mono)/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-s22); }
.step__k b { font-weight: 500; color: var(--red-t45); }
.step h3 { margin-top: .5rem; font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); color: var(--white); }
.step__x { margin-top: .6rem; max-width: 30rem; font: 400 1.0625rem/1.5 var(--f-text); color: var(--grey); }
.step a { display: inline-flex; align-items: center; gap: .4em; margin-top: .8rem; font: 600 .875rem/1.2 var(--f-ui); color: var(--white); text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--red-t25); text-decoration-thickness: 2px; }
.step a:hover { color: var(--red-t45); }
.step a .icon { width: .9rem; height: .9rem; }
.scene.is-live .scene__in { padding-block: 0; }
.scene.is-live .scene__stage { position: sticky; top: var(--stick); height: calc(100vh - var(--stick)); display: grid; align-content: center; }
.scene.is-live .mp--scene { max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; }
.scene.is-live .scene__steps { padding-block: 20vh 30vh; }
.scene.is-live .scene__intro { min-height: 44vh; }
.scene.is-live .step { min-height: 56vh; margin-top: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.scene.is-live .step.is-on { border-left-color: var(--red-t25); }
.scene.is-live .cx__num { display: none; }
@media (max-width: 61.99em) {
  .scene__in { grid-template-columns: minmax(0, 1fr); }
  .mp--scene { max-height: 46vh; width: auto; max-width: 100%; margin-inline: auto; }
  .scene.is-live .scene__stage { top: var(--stick); transition: top .28s var(--ease); height: 44vh; z-index: 1; background: var(--charcoal); border-bottom: 1px solid var(--charcoal-t25); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .scene.is-live .mp--scene { max-height: 40vh; }
  .scene.is-live .scene__steps { padding-block: 2rem 30vh; }
  .scene.is-live .scene__intro { min-height: 30vh; }
  .scene.is-live .step { min-height: 52vh; justify-content: flex-start; padding-top: 1rem; }
}

/* ---------------------------------------------------------------- running text: 20 px, charcoal, a drop cap, numbered sections under the bar */
.story .prose { max-width: none; counter-reset: h; }
.story .prose a { overflow-wrap: anywhere; }        /* some stories print a whole web address as the link */
.story .prose > p:first-of-type::first-letter { float: left; margin: .04em .12em 0 0; font: 700 4.7em/.76 var(--f-serif); color: var(--accent-ink); }
.story .prose p { position: relative; }
.story .prose p:target, .story .prose p.is-hit { background: var(--red-t88); box-shadow: -.75rem 0 0 var(--red-t88), .75rem 0 0 var(--red-t88); }
:root[data-theme="night"] .story .prose p:target { background: var(--charcoal-t10); box-shadow: -.75rem 0 0 var(--charcoal-t10), .75rem 0 0 var(--charcoal-t10); }
.story .prose h2 { counter-increment: h; margin-top: 2.4em; padding-top: 0; }
.story .prose h2::before { content: counter(h, decimal-leading-zero); position: static; display: block; width: 4.5rem; height: auto; margin-bottom: .6rem; padding-top: .7rem; background: none; border-top: var(--bar) solid var(--accent);
  font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: .08em; color: var(--accent-ink); }
.story .prose .lede2 { font: 500 1.375rem/1.45 var(--f-text); color: var(--head); }
.fig { margin-block: 2.5em; }
.fig .ph { display: block; aspect-ratio: auto; background: var(--bg-3); }
.fig .ph img { width: 100%; height: auto; object-fit: contain; }
.fig figcaption { display: block; padding-left: .9rem; border-left: var(--bar) solid var(--accent); margin-top: .9rem; color: var(--ink); }
.srcmark { margin-left: .1em; padding: .25rem .25rem; font: 500 max(.6875em, .75rem)/1 var(--f-mono); vertical-align: super; color: var(--accent-ink); text-decoration: none !important; }
.srcmark:hover { background: var(--red); color: var(--white); }
.prose h2 .srcmark, .prose h3 .srcmark { font-size: .875rem; }
.story .prose blockquote.pull { margin-block: 2.25em; }
.story .prose .pquote { padding-left: 1.25rem; border-left: var(--bar) solid var(--line-2); color: var(--ink); }
.story .prose .pquote p { font-size: 1.125rem; }

/* ---------------------------------------------------------------- key findings inside a story */
.story .kf { margin-bottom: 2.5rem; }
.kf__jump { display: inline-flex; align-items: center; gap: .35em; margin-top: .45rem; font: 600 .875rem/1.2 var(--f-ui); color: var(--head); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.kf__jump:hover { color: var(--accent-ink); }
.kf__jump .icon { width: .9rem; height: .9rem; }

/* ---------------------------------------------------------------- listen (audio version) */
.listen { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1rem; align-items: center; margin-bottom: 2rem; padding: 1rem 1.1rem; background: var(--charcoal); border-top: var(--bar) solid var(--red-t25); color: var(--grey); }
.listen__btn { grid-row: 1 / span 2; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--red); color: var(--white); }
.listen__btn:hover { background: var(--red-s15); }
.listen__btn .icon { width: 1.3rem; height: 1.3rem; }
.listen__btn[aria-pressed="true"] .i-play, .listen__btn[aria-pressed="false"] .i-pause { display: none; }
.listen__t { font: 600 1rem/1.3 var(--f-ui); color: var(--white); }
.listen__t svg { display: none; }
.listen:not(:has(.listen__btn:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }       /* without the script: a title and the file */
.listen:not(:has(.listen__btn:not([hidden]))) .listen__t svg { display: inline-block; width: 1.1rem; height: 1.1rem; margin-right: .5rem; vertical-align: -.2em; }
.listen__time { font-feature-settings: "zero", "tnum"; white-space: nowrap; }
.listen__file { grid-column: 2; }
.listen:not(:has(.listen__btn:not([hidden]))) .listen__file { grid-column: 1; }
.listen__file a { border: 0 !important; padding: 0 !important; gap: .45rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--charcoal-t40); }
.listen__file svg { width: .9rem; height: .9rem; }
.listen__note { grid-column: 1 / -1; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--charcoal-t25); font: 400 .875rem/1.5 var(--f-text); color: var(--grey); }
.listen__t small { display: block; margin-top: .15rem; font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-s22); }
.listen__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font: 400 .75rem/1 var(--f-mono); color: var(--grey); }
.listen__row input[type="range"] { flex: 1 1 8rem; min-width: 6rem; height: 1.5rem; accent-color: var(--red-t25); }
.listen__row button, .listen__row a { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .55rem; border: 1px solid var(--charcoal-t40); color: var(--white); font: 500 .75rem/1 var(--f-mono); }
.listen__row button:hover, .listen__row a:hover { border-color: var(--white); }
.listen__ch { grid-column: 1 / -1; margin-top: .6rem; border-top: 1px solid var(--charcoal-t25); }
.listen__ch summary { display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; padding: .7rem 0 .3rem; list-style: none; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.listen__ch summary::-webkit-details-marker { display: none; }
.listen__ch summary::after { content: "+"; margin-left: auto; font: 400 1.125rem/1 var(--f-mono); letter-spacing: 0; }
.listen__ch[open] summary::after { content: "−"; }
.listen__ch .ref { color: var(--grey-s22); }
.listen__ch li button { display: grid; grid-template-columns: 3.4rem 1fr; gap: .5rem; width: 100%; min-height: 2.5rem; padding: .45rem 0; text-align: left; border-top: 1px solid var(--charcoal-t25); font: 500 .9375rem/1.3 var(--f-ui); color: var(--grey); }
.listen__ch li button span:first-child { font: 400 .75rem/1.6 var(--f-mono); color: var(--grey-s22); }
.listen__ch li button:hover, .listen__ch li button.is-on { color: var(--white); }
.listen__ch li button.is-on span:first-child { color: var(--red-t45); }

/* ---------------------------------------------------------------- film: nothing loads before the click */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--charcoal-d2); overflow: hidden; border-top: var(--bar) solid var(--accent); }
.player .ph, .player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player img { object-fit: cover; }
.player__btn { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(0deg, rgb(0 0 0 / .72), rgb(0 0 0 / .15)); color: var(--white); }
.player__btn span.pm { display: grid; place-items: center; width: clamp(3.75rem, 8vw, 5.75rem); height: clamp(3.75rem, 8vw, 5.75rem); border-radius: 50%; background: var(--red); color: var(--white); transition: background .2s, transform .2s; }
.player__btn:hover span.pm, .player__btn:focus-visible span.pm { background: var(--red-s15); transform: scale(1.06); }
.player__btn .icon { width: 38%; height: 38%; transform: translateX(6%); }
.player__note { margin-top: .6rem; font: 400 var(--t-meta)/1.45 var(--f-text); color: var(--ink-2); }
.player__note a { text-decoration: underline; text-underline-offset: .2em; }
.inline-video { margin-block: 2.5em; }
.inline-video h3 { margin-bottom: .7rem; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------------------------------------------------------------- end matter: how we did this, right of reply, documents cited, sources,
   downloads, republish and print, credits, share. Every part opens with the case bar. */
.endm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.25rem, 1.75rem + 2vw, 3.75rem) clamp(2rem, 5vw, 6rem); }
.endm section { position: relative; min-width: 0; padding-top: 1.5rem; }
.endm section::before { content: ""; position: absolute; left: 0; top: 0; width: 7.5rem; height: var(--bar); background: var(--accent); }
.endm section.endm--wide { grid-column: 1 / -1; }
.endm h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem); }
.endm h2 small { margin-left: .4rem; font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: .06em; color: var(--accent-ink); vertical-align: .5em; }
.endm h2 + * { margin-top: 1rem; }
.endm p, .endm li { font-size: 1.0625rem; line-height: 1.55; }
.endm p + p { margin-top: .8rem; }
.endm .note { font-size: 1rem; color: var(--ink); max-width: 46rem; }
.endm .proto { margin-top: 1rem; }
.endm .btnrow { margin-top: 1.25rem; }
.namelist { display: grid; gap: .9rem; margin-top: 1.1rem; }
.namelist > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .5rem 1.5rem; align-items: start; }
.namelist dt { padding-top: .6rem; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.namelist dd { margin: 0; }
.namelist .chip { background: var(--white); }
@media (max-width: 40em) { .namelist > div { grid-template-columns: minmax(0, 1fr); } .namelist dt { padding-top: 0; } }
@media (max-width: 54em) { .endm__grid { grid-template-columns: minmax(0, 1fr); } }
.quotes > li { padding-block: 1rem; border-top: 1px solid var(--line-2); }
.quotes > li:first-child { border-top: 0; padding-top: 0; }
.quotes blockquote { font: italic 500 1.25rem/1.4 var(--f-serif); color: var(--head); }
.quotes small { display: inline-block; margin-top: .45rem; }
.quotes small a, .srcs a.back { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .25em; }
.srcs { counter-reset: s; columns: 2 22rem; column-gap: clamp(2rem, 5vw, 6rem); }
.srcs li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .25rem; padding: .75rem 0; border-top: 1px solid var(--line-2); break-inside: avoid; }
.srcs li::before { content: counter(s, decimal-leading-zero); font: 500 var(--t-mono)/1.8 var(--f-mono); color: var(--accent-ink); }
.srcs li:target { background: var(--white); box-shadow: -.5rem 0 0 var(--white), .5rem 0 0 var(--white); }
.srcs b { display: block; font: 600 1rem/1.3 var(--f-ui); color: var(--head); overflow-wrap: anywhere; }
.srcs span { display: block; font: 400 .75rem/1.6 var(--f-mono); letter-spacing: .03em; color: var(--ink-2); overflow-wrap: anywhere; }
.srcs a.ext:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.dls li { border-top: 1px solid var(--line-2); }
.dls li:first-child { border-top: 0; }
.dls a, .dls button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; width: 100%; padding: .85rem 0; text-align: left; }
.dls b { display: block; font: 600 1.0625rem/1.3 var(--f-ui); color: var(--head); }
.dls span { display: block; font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.dls .icon { width: 1.35rem; height: 1.35rem; color: var(--accent-ink); }
.dls a:hover b, .dls button:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.credits { display: grid; grid-template-columns: minmax(6rem, max-content) 1fr; gap: 0 1.5rem; max-width: 56rem; font-size: 1.0625rem; }
.credits dt { padding-block: .65rem; border-top: 1px solid var(--line-2); font: 500 var(--t-label)/1.8 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.credits dd { margin: 0; padding-block: .65rem; border-top: 1px solid var(--line-2); }
.credits dt:first-of-type, .credits dd:first-of-type { border-top: 0; }
.share { display: flex; flex-wrap: wrap; gap: .4rem; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .9rem; border: 1px solid var(--line-2); background: var(--white); font: 600 .875rem/1 var(--f-ui); color: var(--ink); }
.share a:hover, .share button:hover { border-color: var(--head); }
.erlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 var(--gap); margin-block: 1rem 1.25rem; }
.erlist li { border-top: 1px solid var(--line-2); }
.erlist a { display: grid; gap: .3rem; padding: .9rem 0; }
.erlist b { font: 600 1.1875rem/1.2 var(--f-serif); color: var(--head); }
.erlist a:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }

/* ---------------------------------------------------------------- next and previous inside a project or case file */
.np { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-block: 1px solid var(--line-2); }
.np a, .np > span { display: grid; gap: .5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) var(--gutter); background: var(--bg); }
.np a:last-child { text-align: right; justify-items: end; }
.np small { font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.np b { max-width: 24ch; font: 600 clamp(1.3125rem, 1.1rem + .9vw, 1.875rem)/1.1 var(--f-serif); letter-spacing: -.014em; color: var(--head); }
.np a:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .16em; }
@media (max-width: 40em) { .np { grid-template-columns: minmax(0, 1fr); } .np a:last-child { text-align: left; justify-items: start; } }

/* ---------------------------------------------------------------- follow this case file */
.follow { padding-block: var(--sec); border-top: var(--bar) solid var(--red); }
.follow__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 6rem); align-items: end; }
.follow--all .follow__in { grid-template-columns: minmax(0, 1fr); }
.follow h2 { margin-top: 1rem; }
.follow .deck { margin-top: 1rem; max-width: 40rem; }
.follow .btnrow { margin-top: 1.75rem; }
@media (max-width: 54em) { .follow__in { grid-template-columns: minmax(0, 1fr); } }

@media print {
  .hero { min-height: 0; display: block; background: #fff; color: #000; }
  .hero__media, .hero__tag, .hero__credit, .stools, .toc, .ctxwrap, .pframe, .np, .listen, .progress, .scene, .follow { display: none !important; }
  .hero__in { padding: 0 !important; }
  .hero h1, .hero__deck, .hero__by, .hero__by b, .hero__tr, .hero__tr a, .hero .meta, .hero .kicker > * { color: #000 !important; }
  .redact::after { content: none !important; }
  .story { display: block; padding: 0; }
  .srcmark { color: #000; }
}

/* ---------------------------------------------------------------- listen box and translation notice on touch screens */
@media (max-width: 61.99em), (pointer: coarse) {
  .listen__row button { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; }
  .listen__row input[type="range"] { height: 2.75rem; }
  .listen__ch summary, .listen__ch li button { min-height: 2.75rem; }
  .listen__file a { min-height: 2.75rem; }
  .trnote a, .hero__tr a { position: relative; }
  .trnote a::after, .hero__tr a::after { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; bottom: -.7rem; }
  .cx__places a, .cx__places span { padding: .7rem .8rem; }
  .stools a, .stools button, .share a, .share button, .pframe__nav a, .pframe__nav span { min-height: 2.75rem; }
}
