/* Narration bar, round 4: one slim line fixed at the foot (48 px, 56 on phones plus the safe-area inset), a playhead, one caption line, and a transcript sheet on demand. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #0f3a74; color: #fff; border-top: 3px solid #c9a227; font-size: 14px; }
.nbar-all { height: 4px; background: #5a7fb0; } .nbar-all[hidden] { display: none; } .nbar-all i { display: block; height: 100%; width: 0; background: #c9a227; }
.nbar-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.nb { font: 700 14px/1 var(--font-body); min-height: 44px; min-width: 44px; padding: 0 14px; background: #fff; color: #0c1322; border: 2px solid #fff; cursor: pointer; border-radius: 0; flex: none; }
.nb:hover { background: #dbe9fb; border-color: #dbe9fb; } .nb:focus-visible, .nbar-head:focus-visible, .nbar-sp select:focus-visible, .nbar-tab:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }
.nb-x { background: transparent; color: #fff; } .nb-x:hover { background: #17509a; border-color: #fff; }
.nbar-t { font: 600 13px var(--font-mono); flex: none; min-width: 3.2ch; }
.nbar-head { flex: 1 1 180px; min-width: 80px; height: 44px; margin: 0; accent-color: #c9a227; background: transparent; cursor: pointer; }
.nbar-cap { flex: 2 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nbar-sp select { font: 600 13px var(--font-body); min-height: 44px; background: #fff; color: #0c1322; border: 2px solid #fff; padding: 0 6px; border-radius: 0; }

.nb-skip { background: #c9a227; border-color: #c9a227; color: #0c1322; } .nb-skip[hidden] { display: none; }
.nbar.film .nbar-cap { font-style: italic; }
.nb-cont { background: #c9a227; border-color: #c9a227; color: #0c1322; animation: nbpulse 1.2s ease-in-out infinite; } .nb-cont[hidden] { display: none; }
@keyframes nbpulse { 50% { box-shadow: 0 0 0 6px rgba(201,162,39,.45); } }
@media (prefers-reduced-motion: reduce) { .nb-cont { animation: none; box-shadow: 0 0 0 4px rgba(201,162,39,.6); } }
.nbar-tab { display: none; }
.nbar.idle { background: transparent; border: 0; pointer-events: none; }
.nbar.idle .nbar-all, .nbar.idle .nbar-row > :not(.nbar-tab), .nbar.idle .nbar-sheet { display: none; }
.nbar.idle .nbar-row { justify-content: flex-end; min-height: 0; padding-bottom: 10px; }
.nbar.idle .nbar-tab { display: block; pointer-events: auto; font: 700 14px var(--font-body); min-height: 44px; padding: 0 18px; background: #0f3a74; color: #fff; border: 2px solid #c9a227; cursor: pointer; border-radius: 0; box-shadow: var(--sh2); }
.nbar-sheet { position: absolute; left: 0; right: 0; bottom: 100%; max-height: 60vh; overflow-y: auto; background: var(--surface); color: var(--text); border-top: 3px solid #c9a227; box-shadow: 0 -8px 24px rgba(0,0,0,.25); padding: 10px var(--gutter) 14px; }
.nbar-sheet[hidden] { display: none; }
.nbar-sheet-h { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 8px; position: sticky; top: -10px; background: var(--surface); padding: 6px 0; }
.nbar-sheet .nb { background: var(--surface-2); border-color: var(--border-2); color: var(--text); } .nbar-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.nbar-status { color: var(--text-dim); font-size: 13px; margin: 0 0 6px; max-width: none; } .nbar-txlink { font-size: 13px; max-width: none; }
.nbar-sheet ol { margin: 8px 0 0; padding: 0; list-style: none; }
.nbar-sheet li button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 8px; min-height: 44px; font: inherit; color: var(--text-dim); cursor: pointer; }
.nbar-sheet li.on button { border-left-color: #c9a227; color: var(--text); background: var(--surface-2); }
.nbar-on { outline: 3px solid #c9a227; outline-offset: 4px; scroll-margin: 90px 0 110px; }
body { padding-bottom: 64px; } body.has-nbar { padding-bottom: 76px; }
@media (max-width: 700px) { .nbar-row { min-height: 56px; padding-bottom: env(safe-area-inset-bottom); gap: 6px; } .nbar-cap, .nbar-sp, .nbar-now { display: none; } .nbar-head { flex-basis: 60px; } .nb { padding: 0 10px; } .nbar.blocked .nbar-cap { display: block; } body.has-nbar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media print { .nbar { display: none; } }

/* narration, made unmistakable: a filled hero control under the page heading, a persistent header pill, a first-visit line, a high-contrast bar while playing */
.nhero { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.nbtn { font: 700 15px/1.2 var(--font-body); min-height: 44px; padding: 8px 16px; border: 2px solid var(--info); background: var(--surface); color: var(--info); cursor: pointer; border-radius: 0; box-shadow: var(--sh1); }
.nbtn b { font-family: var(--font-mono); font-weight: 700; margin-left: 8px; padding-left: 10px; border-left: 2px solid currentColor; }
.nbtn-main { background: var(--info); color: var(--on-info); }
.nbtn:hover { box-shadow: var(--sh3); } .nbtn:focus-visible, .npill:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }
.nbtn-sm { min-height: 36px; padding: 5px 12px; font-size: 14px; }
.npill { font: 700 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--info); color: var(--on-info); border: 0; padding: 7px 12px; cursor: pointer; border-radius: 0; }
.nintro { background: var(--info-fill); border-bottom: 2px solid var(--info); font-size: 14px; padding: 8px 0; } .nintro[hidden] { display: none; } .nintro p { margin: 0; max-width: none; }
@media (max-width: 600px) { .nhero { flex-direction: column; } .nhero .nbtn { width: 100%; } 