/* Work pages (pages.py): the video on the night ground, the reading on paper, in tabs (About, Story, Lyrics or
   Narration, Sources); the film's follow-along view. Colours and type from site.css. The cream paper is the banner's
   palette (design check, 2026-11-08). */
body.workpage { background: var(--paper); color: var(--ink); }
.workpage .paper { background: var(--paper); color: var(--ink); }
.workpage .paper a { color: #7a5309; }
.workpage .paper a:hover { color: var(--ink); }
.workpage footer { background: var(--paper); color: var(--ink-dim); text-align: center; padding: 2rem 1rem 3rem; font: 0.8rem var(--sans); }
.night { background: var(--night); color: var(--cream); }

.trial-bar { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; justify-content: space-between; padding: 0.45rem clamp(1rem, 3vw, 2rem); background: var(--gold); color: var(--ink); font: 500 0.78rem/1.3 var(--sans); }
.trial-bar a { color: var(--ink); }

.site-head { padding: 0.9rem clamp(1.25rem, 3vw, 2rem); font: 500 0.82rem/1.3 var(--sans); color: var(--cream-dim); }
.site-head a { color: var(--cream); text-decoration: none; }
.site-head a:hover { color: var(--gold); }
/* the site bar above the breadcrumb (2026-11-09): logo and name go home; the sections are the home page's, styled
   like its .lines bar. When there is no room on one line, the sections drop to a line of their own. */
.site-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-bottom: 0.75rem; margin-bottom: 0.7rem; border-bottom: 1px solid rgba(242, 198, 109, 0.3); }
.site-bar .home { display: flex; align-items: center; gap: 0.55rem; font: 600 1.02rem/1.2 var(--serif); }
.site-bar .home img { width: 28px; height: 28px; border-radius: 6px; }
.site-bar .sections { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  font: 600 0.74rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.site-bar .sections a { padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-bar .sections a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }

/* the top: video beside the essentials */
.top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.25rem, 3vw, 2.5rem); max-width: 76rem; margin: 0 auto; padding: 0.4rem clamp(1.25rem, 3vw, 2rem) 2.2rem; align-items: start; }
.top.no-media { grid-template-columns: 1fr; max-width: 52rem; }
.top-intro h1 { margin: 0.3rem 0 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; }
.kicker { margin: 0; }
.dek { font-size: 1.15rem; color: var(--cream-dim); margin: 0.5rem 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 1.3rem 0 0; font: 0.88rem/1.45 var(--sans); }
.facts dt { color: var(--gold); font-weight: 600; }
.facts dd { margin: 0; color: var(--cream); }
@media (max-width: 820px) { .top { grid-template-columns: 1fr; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #0d1222; border-radius: 6px; overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.watch { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; font: 0.88rem/1.4 var(--sans); margin: 0.8rem 0 0; }
.watch a { color: var(--gold); }
.follow-open { font: 600 0.85rem var(--sans); padding: 0.5rem 0.95rem; border-radius: 99px; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; }
.follow-open:hover { background: var(--gold); color: var(--night); }
.follow-open.text { border: 0; padding: 0; border-radius: 0; color: #7a5309; text-decoration: underline; font: inherit; }
.follow-open.text:hover { background: none; color: var(--ink); }

/* the tabs */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: 0.2rem; flex-wrap: wrap; padding: 0 1rem; background: var(--night-2); border-bottom: 2px solid var(--gold); font: 600 0.8rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.tabs a { color: var(--cream); text-decoration: none; padding: 0.95rem 1.1rem 0.85rem; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--gold); }
.tabs a[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.paper { max-width: 64rem; margin: 0 auto; padding: 0.5rem clamp(1.25rem, 3vw, 2rem) 2rem; }
.tab-panel { scroll-margin-top: 4rem; padding-top: 1.2rem; }
.js-tabs .tab-panel[hidden] { display: none; }
.tab-panel h2 { font-size: 1.6rem; margin: 2rem 0 0.8rem; }
.hint { font: 0.85rem/1.5 var(--sans); color: var(--ink-dim); max-width: 60ch; }

/* About */
.summary { max-width: 42rem; }
.summary p { font-size: 1.12rem; }
.part-of, .follow-hint { max-width: 42rem; font-size: 1rem; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; }
.workpage .paper a.guide { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fffaf0; border: 1px solid rgba(31, 40, 67, 0.12); border-top: 3px solid var(--teal); border-radius: 6px; padding: 0.9rem 1rem 1rem; }
.workpage .paper a.guide:hover { border-color: rgba(31, 40, 67, 0.3); border-top-color: var(--gold-deep); }
.guide h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.guide p, .guide ul { margin: 0 0 0.5rem; font: 0.88rem/1.5 var(--sans); color: var(--ink-dim); }
.guide ul { padding-left: 1.1rem; }
.guide .go { margin-top: auto; font: 600 0.85rem var(--sans); color: #7a5309; }
.credits dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; font: 0.88rem/1.5 var(--sans); max-width: 52rem; }
.credits dt { font-weight: 600; }
.credits dd { margin: 0; }
.standing { font: italic 0.92rem/1.5 var(--serif); color: var(--ink-dim); max-width: 48ch; }
.tag { display: inline-block; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.5rem; border-radius: 3px; background: rgba(184, 76, 57, 0.12); color: var(--coral); }
.series-songs { list-style: none; padding: 0; }
.series-songs li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: start; padding: 0.9rem 0; border-top: 1px solid rgba(31, 40, 67, 0.12); }
.series-songs .play img { width: 100%; height: 100%; }
.series-songs .play, .series-songs > li > img, .series-songs .no-thumb { width: 10rem; aspect-ratio: 16 / 9; border-radius: 4px; object-fit: cover; background: var(--cream-dim); display: block; }
.series-songs h3 { margin: 0; font-size: 1.1rem; }
.series-songs p { margin: 0.2rem 0 0.4rem; font: 0.88rem/1.5 var(--sans); color: var(--ink-dim); max-width: 60ch; }
/* on a phone the picture is as wide as the column, like the song cards on the home page (2026-11-09) */
@media (max-width: 560px) {
  .series-songs li { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.1rem 0; }
  .series-songs .play, .series-songs > li > img, .series-songs .no-thumb { width: 100%; }
}

/* Story */
.story-part { max-width: 42rem; }
.story-part h2 { font-size: 1.45rem; }
blockquote { margin: 1.2rem 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--gold); color: #2b3454; }
blockquote p { margin: 0.3rem 0; }
.pill { display: inline-block; min-width: 1.35em; padding: 0 0.3em; margin-left: 0.15em; border-radius: 99px; background: rgba(47, 106, 100, 0.13); color: var(--teal) !important; font: 600 0.7rem/1.5 var(--sans); text-align: center; text-decoration: none; vertical-align: 0.15em; }
.pill:hover { background: var(--teal); color: var(--paper) !important; }

/* Lyrics / Narration: the words beside what they draw on */
.label { margin: 0 0 0.2rem; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.label .t { font-weight: 500; color: var(--ink-dim); letter-spacing: 0.02em; margin: 0 0.5rem; }
.sung { font-style: italic; margin: 0; }
.said { margin: 0; }
h3.part { font-size: 1.25rem; margin: 2.2rem 0 0.4rem; padding-top: 0.8rem; border-top: 1px solid rgba(31, 40, 67, 0.15); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.2rem; padding: 0.9rem 0; border-top: 1px solid rgba(31, 40, 67, 0.1); }
.row aside { font: 0.88rem/1.55 var(--sans); color: var(--ink-dim); border-left: 2px solid rgba(242, 198, 109, 0.8); padding-left: 1rem; }
.row aside:empty { border: 0; }
.row aside p { margin: 0 0 0.4rem; max-width: 60ch; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; } .row aside { margin-top: 0.5rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0 0; }
.chip { display: inline-block; font: 500 0.74rem/1.3 var(--sans); padding: 0.18rem 0.55rem; border-radius: 99px; border: 1px solid rgba(47, 106, 100, 0.45); color: var(--teal) !important; background: transparent; text-decoration: none; cursor: pointer; }
.chip:hover, .chip.on { background: var(--teal); color: var(--paper) !important; }

/* Sources: named, described, the passages in quotation marks, a link */
.src-list { list-style: none; padding: 0; margin: 0; max-width: 44rem; }
.src-list li { display: grid; grid-template-columns: 2.2rem 1fr; padding: 0.9rem 0; border-top: 1px solid rgba(31, 40, 67, 0.12); scroll-margin-top: 4rem; }
.src-list li.flash { background: rgba(242, 198, 109, 0.25); transition: background 1.5s; }
.src-list .num { font: 600 0.9rem var(--sans); color: #7a5309; }
.src-list .cite { margin: 0; font-weight: 600; }
.src-list .about, .pop .about, .open-src .about { margin: 0.2rem 0 0.4rem; font: 0.9rem/1.5 var(--sans); color: var(--ink-dim); max-width: 60ch; }
h3.group { font: 600 0.78rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin: 2rem 0 0.4rem; }
.excerpt { font-size: 0.95rem; }
.excerpt cite { display: block; font: normal 0.78rem/1.4 var(--sans); color: var(--ink-dim); margin-top: 0.2rem; }
.src-link { font: 500 0.85rem var(--sans); }
.src-link span { color: var(--ink-dim); font-weight: 400; }

/* a source opened in place */
.pop { position: absolute; z-index: 50; max-width: min(28rem, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; background: #fffaf0; color: var(--ink); border: 1px solid rgba(31, 40, 67, 0.2); border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 26, 46, 0.25); padding: 0.9rem 1rem; font-size: 0.95rem; }
.pop .cite { margin: 0 1.5rem 0.3rem 0; font-weight: 600; }
.pop .close { position: absolute; top: 0.4rem; right: 0.5rem; border: 0; background: none; font: 1.2rem var(--sans); cursor: pointer; color: var(--ink-dim); }
.pop a { color: #7a5309; }
.pop .all { display: block; margin-top: 0.5rem; font: 500 0.82rem var(--sans); }

/* the film's follow-along view */
.follow { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--paper); }
.follow[hidden] { display: none; }
body.following { overflow: hidden; }
.follow-bar { display: flex; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; padding: 0.6rem clamp(1rem, 2.4vw, 1.6rem); background: var(--night); color: var(--cream); font: 500 0.85rem var(--sans); }
.follow-bar span { margin-right: auto; font-weight: 600; }
.follow-bar label { color: var(--cream-dim); }
.follow-exit { font: 600 0.85rem var(--sans); padding: 0.4rem 1rem; border-radius: 99px; border: 1.5px solid var(--gold); background: var(--gold); color: var(--night); cursor: pointer; }
.follow-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.follow-left { background: var(--night); padding: 1rem clamp(1rem, 2.4vw, 1.6rem); }
.follow-left .hint { color: var(--cream-dim); }
.follow-right { overflow: auto; padding: 0.5rem clamp(1rem, 2.4vw, 1.6rem) 40vh; }
.follow-right a { color: #7a5309; }
.cue { position: relative; padding: 0.7rem 0.8rem 0.7rem 1rem; margin: 0 -0.8rem 0 -1rem; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; cursor: pointer; transition: background 0.2s; }
.cue:hover { background: rgba(242, 198, 109, 0.12); }
.cue.now { background: rgba(242, 198, 109, 0.26); border-left-color: var(--gold-deep); }
.cue .label .t { margin: 0 0.6rem 0 0; }
.cue .note { font: 0.85rem/1.5 var(--sans); color: var(--ink-dim); margin-top: 0.35rem; max-width: 60ch; }
.cue .note p { margin: 0; }
.open-src:empty { display: none; }
.open-src { margin-top: 0.5rem; padding: 0.7rem 0.9rem; background: #fffaf0; border: 1px solid rgba(31, 40, 67, 0.14); border-radius: 6px; cursor: auto; }
.open-src .cite { margin: 0 0 0.2rem; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 900px) {
  .follow-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .follow-left { padding: 0.6rem; }
  .follow-left .hint { display: none; }
}

/* the list of work pages */
.review-main { max-width: 56rem; margin: 0 auto; padding: 2rem clamp(1.25rem, 3vw, 2rem) 4rem; }
.review-main h1 { font-size: 2.2rem; margin: 0.5rem 0; }
.review-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font: 0.92rem/1.5 var(--sans); }
.review-table th, .review-table td { text-align: left; padding: 0.6rem 0.5rem; border-top: 1px solid rgba(31, 40, 67, 0.15); vertical-align: top; }
.review-table thead th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 520px) {
  .tabs { padding: 0 0.3rem; gap: 0; letter-spacing: 0.03em; font-size: 0.74rem; }
  .tabs a { padding: 0.85rem 0.55rem 0.75rem; }
}

/* picture sources, addresses, things only the studio sees (2026-11-08) */
.src-thumb { float: right; margin: 0.2rem 0 0.6rem 1rem; }
.src-thumb img { width: 11rem; border-radius: 4px; border: 1px solid rgba(31, 40, 67, 0.15); }
@media (max-width: 560px) { .src-thumb { float: none; display: block; margin: 0.4rem 0; } }
.src-list li > div::after { content: ""; display: table; clear: both; }
p.src-link { margin: 0.4rem 0 0; color: var(--ink-dim); }
p.src-link a { word-break: break-all; font-weight: 400; }
.pop img.thumb { width: 9rem; float: right; margin: 0 0 0.4rem 0.8rem; border-radius: 4px; }
.crumbs span[aria-current] { color: var(--cream-dim); }
.studio-only { margin: 1.2rem 0; padding: 0.8rem 1rem; border: 1px dashed var(--coral); border-radius: 6px; background: rgba(184, 76, 57, 0.05); }
.studio-label { margin: 0 0 0.4rem; font: 600 0.8rem/1.4 var(--sans); color: var(--coral); }
.studio-only .series-songs { opacity: 0.8; }
.vet-box ul { margin: 0; padding-left: 1.1rem; font: 0.88rem/1.5 var(--sans); }
.vet-box li { margin: 0.3rem 0; }
mark.vet { background: rgba(242, 198, 109, 0.55); color: inherit; padding: 0 0.1em; border-bottom: 2px solid var(--gold-deep); cursor: help; }
.sung .tr, .said .tr { display: inline-block; font-style: normal; font-size: 0.92em; color: var(--ink-dim); margin-bottom: 0.25rem; }
@media (max-width: 400px) {
  .site-bar { column-gap: 0.9rem; }
  .site-bar .home { font-size: 0.95rem; gap: 0.45rem; }
  .site-bar .sections { column-gap: 1rem; letter-spacing: 0.1em; }
}
