/* THE STORY OF THE CHURCH (hub/river.js): the eras drawn in a stage at the top, one giving way to the next as the page
   scrolls; a thin thread of the church across the centuries under it; and each era's card below. It sits a step below Bible Maps
   and Bible in 3D (2147483100), so what it opens (a place's map, a model) comes up over it, and closing that comes back to it */
.rv { position: fixed; inset: 0; z-index: 2147483080; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); opacity: 0; transform: translateY(14px); transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.open { opacity: 1; transform: none; }
.rv[hidden] { display: none; }
.rv-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--rule); background: var(--bg-raised); }
.rv-title { display: flex; flex-direction: column; min-width: 0; font: italic 400 20px/1.15 var(--serif); }
.rv-title small { font: 700 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.rv-x { flex: none; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 13px var(--sans); cursor: pointer; }
.rv-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* the stage: the scenes, the era's name over them, the thread under them, and a hot spot's card */
.rv-stage { position: sticky; top: 0; z-index: 2; height: clamp(240px, 72vw, min(46vh, 420px)); overflow: hidden; background: #2A2320; box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.6); }
@media (orientation: landscape) and (max-height: 560px) { .rv-stage { height: 70vh; } }
/* (phones: the stage is kept nearly as wide as the whole picture, and the picture is cut at its sky, never its ground) */
.rv-scenes { position: absolute; inset: 0 0 28px; }
.rv-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.rv-scene svg { width: 100%; height: 100%; display: block; }
.rv-hot { cursor: pointer; }
.rv-hot:hover, .rv-hot.is-on { filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.9)); }
.rv-cap { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 3; display: flex; flex-direction: column; pointer-events: none; }
.rv-hint { position: absolute; right: 10px; bottom: 36px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: rgba(34, 30, 25, 0.55); color: #FFF8E6; font: 700 10.5px var(--sans); letter-spacing: 0.06em; pointer-events: none; transition: opacity 0.4s; }
.rv.rv-tapped .rv-hint { opacity: 0; }
.rv-cap b { font: italic 400 20px/1.15 var(--serif); color: #FFF8E6; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.5); }
.rv-cap span { margin-top: 3px; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: rgba(34, 30, 25, 0.7); color: #FFE6A8; font: 800 10.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.rv-thread { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 28px; background: rgba(14, 12, 9, 0.55); touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* (held: the line grows, the churches of the era under one's finger stand up on it, and the era's tag rides over the picture) */
.rv-thread { transition: height 0.18s ease, background 0.18s ease; }
.rv-thread .rv-lane { transition: opacity 0.15s ease, stroke-width 0.15s ease; }
.rv-stage.is-scrub .rv-thread { height: 56px; background: rgba(14, 12, 9, 0.88); box-shadow: 0 -10px 24px -8px rgba(224, 185, 107, 0.55); }
.rv-stage.is-scrub .rv-lane { opacity: 0.14; }
.rv-stage.is-scrub .rv-lane.is-up { opacity: 1; stroke-width: 7; filter: drop-shadow(0 0 3px rgba(255, 240, 200, 0.9)); }
.rv-stage.is-scrub .rv-now { opacity: 0; }
.rv-yr { position: absolute; bottom: 64px; z-index: 5; padding: 5px 11px; border-radius: 999px; background: #E0B96B; color: #2E2B27; font: 800 14px var(--sans); letter-spacing: 0.04em; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6); }
.rv-yr::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #E0B96B; transform: translateX(-50%) rotate(45deg); }
.rv-yr.is-pulse { animation: rv-yr-pulse 0.2s ease-out; }
@keyframes rv-yr-pulse { from { transform: translateY(-4px) scale(1.12); } to { transform: none; } }
.rv-stage.is-scrub .rv-cap, .rv-stage.is-scrub .rv-hint { opacity: 0; }
.rv-scrub { position: absolute; bottom: 102px; z-index: 5; padding: 10px 12px; border: 1.5px solid #E0B96B; border-radius: 14px; background: var(--bg-raised); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); pointer-events: none; font-family: var(--sans); transition: left 0.12s ease; }
.rv-scrub small { display: block; font: 800 10.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.rv-scrub b { display: block; margin: 2px 0 4px; font: italic 400 17px/1.2 var(--serif); }
.rv-scrub p { margin: 0; font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-scrub-k { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 11px; font-weight: 700; color: var(--gold); }
.rv-scrub-dots { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.rv-scrub-dots i { width: 9px; height: 9px; border-radius: 50%; }
.rv-thread .rv-lane { cursor: pointer; pointer-events: stroke; }
.rv-pop { position: absolute; left: 10px; right: 10px; bottom: 36px; z-index: 4; max-height: calc(100% - 60px); overflow-y: auto; padding: 12px 36px 12px 14px; border: 1px solid var(--rule); border-radius: 14px; background: color-mix(in srgb, var(--bg-raised) 96%, transparent); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }
.rv-pop[hidden] { display: none; }
.rv-pop b { font: 700 15px var(--serif); }
.rv-pop p { margin: 4px 0 8px; font: 13.5px/1.5 var(--sans); }
.rv-pop-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 13px; cursor: pointer; }
@media (min-width: 720px) { .rv-pop { left: auto; right: 16px; width: 360px; } }
/* the eras' cards */
.rv-scroll { max-width: 760px; margin: 0 auto; padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
.rv-lede { padding: 14px 16px 2px; }
.rv-lede p { margin: 0; font: 15px/1.5 var(--serif); color: var(--ink); }
.rv-era { padding: 18px 12px 8px; }
.rv-era-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 4px 10px; }
.rv-era-h .rv-yrs { padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 800 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.rv-era-h h2 { margin: 0; font: italic 400 24px/1.15 var(--serif); color: var(--ink); }
.rv-era-h .vote-btn { margin-left: auto; align-self: center; } /* (an Amen for the age, at the end of its line) */
.rv-era.is-now .rv-era-h .rv-yrs { background: var(--gold); color: #fff; }
.rv-card { padding: 14px 15px 16px; border: 1px solid var(--rule); border-radius: 18px; background: var(--bg-raised); box-shadow: 0 14px 30px -22px rgba(34, 30, 25, 0.5); }
.rv-card p { margin: 0 0 10px; font: 14.5px/1.55 var(--sans); }
.rv-card .rv-lede-p { font: italic 16px/1.5 var(--serif); color: var(--ink); }
.rv-k { margin: 14px 0 6px; font: 800 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.rv-faces { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.rv-face { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 0; border: none; background: none; color: var(--ink); font: 700 10.5px/1.2 var(--sans); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-face img, .rv-face i { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--gold), 0 4px 10px -4px rgba(0, 0, 0, 0.5); }
.rv-face i { display: grid; place-items: center; background: var(--gold); color: #fff; font: 800 15px var(--sans); font-style: normal; }
.rv-face span { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 12.5px var(--sans); text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-chip i { width: 10px; height: 10px; border-radius: 50%; }
.rv-chip.is-link { color: var(--gold); }
.rv-chip.is-note { color: var(--muted); cursor: default; }
.rv-chip.is-book b { font: italic 400 13.5px var(--serif); }
.rv-chip.is-hear { flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 14px; }
.rv-chip.is-hear small { font: 600 11px var(--sans); color: var(--muted); }
.rv-bibles { display: grid; gap: 8px; }
.rv-bible { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); }
.rv-bible b { font: 700 13.5px var(--sans); }
.rv-bible span { font: 13px/1.45 var(--sans); color: var(--muted); }
.rv-bible .rv-chip { justify-self: start; margin-top: 4px; padding: 4px 10px; font-size: 12px; }
.rv-end { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; }
/* the banner at the top of the timeline */
.rv-banner { background: linear-gradient(135deg, #2E3B4E 0%, #4A6F8C 100%); color: #F7F3EA; box-shadow: 0 10px 28px rgba(34, 30, 25, 0.25); }
.rv-banner::before { background: radial-gradient(circle, rgba(224, 185, 107, 0.35) 0%, rgba(224, 185, 107, 0) 70%); }
.rv-banner .wit-banner-eyebrow { color: #E0B96B; opacity: 1; }
.rv-banner .wit-banner-cta { background: #E0B96B; color: #2E2B27; }
.rv-banner .rv-mini { display: inline-flex; gap: 3px; align-items: flex-end; height: 22px; }
.rv-mini i { display: block; width: 7px; border-radius: 3px 3px 0 0; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .rv { transition: none; } .rv-scene { transition: none; } .rv-scrub { transition: none; } .rv-yr.is-pulse { animation: none; } }

/* (an age in the window over the apps (nav/sheet.js): opened from a truth in From Text to Truth, the words it confessed marked) */
.rv-nv { padding: 2px 2px 22px; }
.rv-nv-k { font: 800 10.5px var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--door-people); }
.rv-nv-t { margin: 6px 0 10px; font: italic 600 26px/1.15 var(--serif); color: var(--ink); }
.rv-nv-lede { margin: 0 0 12px; font: 600 16px/1.5 var(--sans); color: var(--ink); }
.rv-nv p:not(.rv-nv-lede) { margin: 0 0 12px; font: 15px/1.65 var(--sans); color: var(--ink); }
.rv-nv .rv-q { padding: 1px 2px; border-radius: 3px; background: color-mix(in srgb, var(--gold) 26%, transparent); color: inherit; }
