/* Schematic narrative sequence, never a geographical route. */
.bible-journey { color: #292524; overflow-wrap: anywhere; }
.dark .bible-journey { color: #e7e5e4; }
.journey-summary { min-height: 44px; cursor: pointer; padding: .5rem 0; }
.journey-stages { list-style: none; padding: 0; margin: .75rem 0; }
.journey-stage { border: 1px solid #a8a29e; border-radius: .5rem; padding: 1rem; margin-bottom: .5rem; }
.journey-stage ul { display: flex; flex-wrap: wrap; column-gap: 1rem; row-gap: .5rem; list-style: none; padding: 0; margin-top: .5rem; }
.journey-stage[data-journey-status="current"], .journey-stage[data-journey-status="current-episode"] { border: 3px solid #92400e; background: #fffbeb; }
.dark .journey-stage { border-color: #78716c; }
.dark .journey-stage[data-journey-status="current"], .dark .journey-stage[data-journey-status="current-episode"] { border-color: #fbbf24; background: #292524; }
.journey-stage[data-journey-status="intended"],
.journey-stage[data-journey-status="recalled"], .journey-stage[data-journey-status="episode"],
.journey-stage[data-journey-status="current-episode"] { border-style: dashed; margin-left: 1rem; }
.journey-connector { display: block; color: #57534e; margin-left: 1rem; }
.dark .journey-connector { color: #d6d3d1; }
.bible-journey .journey-link { text-decoration: underline; text-underline-offset: 3px; }
.bible-journey :is(a, summary, [tabindex]):focus-visible { outline: 2px solid #92400e; outline-offset: 4px; }
.dark .bible-journey :is(a, summary, [tabindex]):focus-visible { outline-color: #fbbf24; }

/* One story progression, independent of Geography and its optional renderer. */
.bible-story-journey .journey-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.bible-story-journey .journey-summary::-webkit-details-marker { display: none; }
.bible-story-journey .journey-caret { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.bible-story-journey details[open] > summary > .journey-caret { transform: rotate(180deg); }
.journey-story-content { margin-top: 1rem; font-size: .875rem; line-height: 1.6; }
.journey-story-content > p { margin-bottom: .75rem; }
.journey-position { border-left: 3px solid #92400e; background: #fef3c7; padding: .75rem 1rem; margin-bottom: .75rem; color: #78350f; border-radius: .25rem; }
.dark .journey-position { border-color: #fbbf24; background: #451a03; color: #fde68a; }
.journey-travelers, .journey-stage-title, .journey-context-heading { font-weight: 600; }
.journey-explanation, .journey-stage-status, .journey-stage-sources { color: #57534e; }
.dark :is(.journey-explanation, .journey-stage-status, .journey-stage-sources) { color: #d6d3d1; }
.bible-story-journey .journey-stages { margin: 1.25rem 0; padding-left: 0; }
.bible-story-journey .journey-stations { --journey-rail-width: 2.75rem; --journey-stop-size: 1.75rem; --journey-stop-top: .7rem; }
.bible-story-journey .journey-stations > li { position: relative; display: grid; grid-template-columns: var(--journey-rail-width) minmax(0, 1fr); padding-bottom: 1rem; }
.bible-story-journey .journey-stations > li:last-child { padding-bottom: 0; }
.bible-story-journey .journey-stations > li > .journey-stage { grid-column: 2; }
.bible-story-journey .journey-stage { position: relative; padding: .75rem 1rem; margin: 0; border-color: #d6d3d1; background: #fafaf9; }
.dark .bible-story-journey .journey-stage { border-color: #57534e; background: #1c1917; }
.bible-story-journey .journey-stage[aria-current="step"] { border: 3px solid #92400e; background: #fffbeb; }
.dark .bible-story-journey .journey-stage[aria-current="step"] { border-color: #fbbf24; background: #292524; }
.bible-story-journey .journey-stage[aria-current="step"] .journey-stage-status { color: #78350f; }
.dark .bible-story-journey .journey-stage[aria-current="step"] .journey-stage-status { color: #fde68a; }
.journey-current-badge { display: inline-flex; align-items: center; margin-bottom: .375rem; padding: .125rem .5rem; border: 1px solid #fcd34d; border-radius: 9999px; background: #fef3c7; color: #78350f; font-size: .75rem; font-weight: 600; line-height: 1.25rem; white-space: nowrap; }
.dark .journey-current-badge { border-color: #92400e; background: #451a03; color: #fde68a; }
.journey-stage-title { font-size: 1rem; }
.journey-stage-description { margin-top: .25rem; }
.journey-stop-number { position: absolute; left: calc(var(--journey-rail-width) / 2); top: var(--journey-stop-top); transform: translateX(-50%); z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--journey-stop-size); height: var(--journey-stop-size); border: 2px solid #92400e; border-radius: 50%; background: #fef3c7; color: #78350f; font-size: .75rem; font-weight: 700; }
.dark .journey-stop-number { border-color: #fbbf24; background: #451a03; color: #fde68a; }
.journey-event-point { position: absolute; left: calc(var(--journey-rail-width) / 2); top: calc(var(--journey-stop-top) + (var(--journey-stop-size) - .75rem) / 2); transform: translateX(-50%); z-index: 1; width: .75rem; height: .75rem; border: 2px solid #92400e; border-radius: 50%; background: #fef3c7; }
.dark .journey-event-point { border-color: #fbbf24; background: #451a03; }
.bible-story-journey .journey-connector { position: absolute; left: calc(var(--journey-rail-width) / 2 - 10px); top: calc(var(--journey-stop-top) + var(--journey-stop-size) / 2); width: 20px; height: 100%; margin: 0; color: #a8a29e; pointer-events: none; }
.dark .bible-story-journey .journey-connector { color: #78716c; }
.bible-story-journey .journey-context { padding-left: 0; }
.bible-story-journey .journey-context .journey-stage { margin: 0; border-style: dashed; }
.bible-story-journey .journey-context .journey-stage[aria-current="step"] { border-style: dashed; }
.journey-stage-sources { font-size: .75rem; }
.journey-sources { margin-top: 1.5rem; border-top: 1px solid #a8a29e; padding-top: .5rem; }
.journey-source-list { padding-left: 1.25rem; list-style: decimal; }
.journey-source-list li { margin: .75rem 0; }
.journey-fragment-alias { position: absolute; top: 0; }
@media (max-width: 480px) {
  .bible-story-journey .journey-stage { padding: .625rem .75rem; }
  .bible-story-journey .journey-stations { --journey-rail-width: 2.25rem; --journey-stop-size: 1.5rem; }
}
