/* ============================================================
   Journey view — "Walk the whole Bible"
   ============================================================ */

.journey-toggle {
  display: inline-flex; padding: 4px; border-radius: var(--radius-pill);
  background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 44px;
}
.journey-toggle button {
  padding: 10px 22px; border-radius: var(--radius-pill); border: none; background: none;
  color: var(--text-dim); font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s var(--ease-out);
}
.journey-toggle button.is-active { background: var(--accent); color: var(--accent-ink); }

.journey-track { position: relative; padding-left: clamp(50px, 8vw, 76px); }
.journey-line {
  position: absolute; left: clamp(18px, 3.2vw, 28px); top: 6px; bottom: 6px; width: 3px;
  transform-origin: top;
}
.journey-line svg { width: 100%; height: 100%; overflow: visible; }
.journey-line path { fill: none; stroke: var(--border-strong); stroke-width: 3; }
.journey-line path.fill-path { stroke: var(--accent); }

.era-block { position: relative; margin-bottom: clamp(48px, 7vw, 76px); }
.era-marker {
  position: absolute; left: clamp(-76px, -8vw, -50px); top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; color: var(--text-faint);
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}
.era-block.is-visited .era-marker { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }

.era-heading { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.era-heading h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-family: var(--font-serif); font-style: italic; }
.era-range { font-size: 0.8rem; color: var(--text-faint); }
.era-blurb { color: var(--text-dim); margin-bottom: 24px; max-width: 520px; }

.story-node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.story-node {
  position: relative; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; cursor: pointer; transition: transform 0.25s var(--ease-out), border-color 0.25s;
  overflow-wrap: break-word;
}
.story-node:hover { transform: translateY(-3px); border-color: var(--accent); }
.story-node .n { font-family: var(--font-ui); font-size: 0.7rem; color: var(--text-faint); }
.story-node h4 { margin-top: 6px; font-size: 1rem; font-family: var(--font-serif); font-weight: 600; line-height: 1.25; }
.story-node .read-dot {
  position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: 0; transition: opacity 0.2s;
}
.story-node.is-read .read-dot { opacity: 1; }

@media (max-width: 620px) {
  .story-node-grid { grid-template-columns: 1fr 1fr; }
}
