/* AstroHealX — Spiritual Life (cosmic journey module) */
.jr { --jr-ink: #f3efe6; --jr-dim: rgba(243,239,230,.72); --jr-gold: #e2b85a; --jr-accent: #9fb4ff; position: relative; color: var(--jr-ink); border-radius: 18px; overflow: hidden; background: #060819; box-shadow: 0 30px 80px rgba(0,0,0,.35); isolation: isolate; }
.jr * { box-sizing: border-box; }
.jr a { color: var(--jr-gold); }
.jr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.jr-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.jr-art svg, .jr-scene-canvas { width: 100%; height: 100%; display: block; }
.jr-art .jr-scene-canvas { opacity: 1; }
.jr-veil { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(6,8,25,.05) 0%, rgba(6,8,25,.25) 55%, rgba(6,8,25,.92) 100%), linear-gradient(90deg, rgba(6,8,25,.55) 0%, rgba(6,8,25,.25) 45%, rgba(6,8,25,0) 70%); pointer-events: none; }
.jr-intro { min-height: min(86vh, 760px); display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.jr-intro .jr-copy { position: relative; z-index: 3; max-width: 760px; animation: jr-rise 1.4s ease-out both; }
.jr-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--jr-gold); margin-bottom: 14px; }
.jr-h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.08; margin: 0 0 14px; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.jr-sub { font-size: 1.05rem; color: var(--jr-dim); max-width: 600px; margin: 0 auto 26px; line-height: 1.6; }
.jr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(226,184,90,.6); background: linear-gradient(135deg, rgba(226,184,90,.95), rgba(255,214,128,.95)); color: #1a1405; font-weight: 600; letter-spacing: .04em; cursor: pointer; font: inherit; font-weight: 700; box-shadow: 0 10px 40px rgba(226,184,90,.3); transition: transform .2s, box-shadow .2s; }
.jr-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 50px rgba(226,184,90,.45); }
.jr-btn.ghost { background: rgba(255,255,255,.06); color: var(--jr-ink); border-color: rgba(255,255,255,.18); box-shadow: none; font-weight: 500; }
.jr-btn.sm { padding: 7px 12px; font-size: .85rem; }
.jr-btn[disabled] { opacity: .45; cursor: default; transform: none; }
.jr-stage { display: grid; grid-template-rows: auto auto 1fr auto; min-height: min(78vh, 820px); }
.jr-timeline { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 18px 22px 6px; }
.jr-timeline .jr-ms { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--jr-dim); cursor: pointer; font: inherit; font-size: .68rem; letter-spacing: .04em; padding: 0; }
.jr-timeline .jr-ms::before { content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 1px; background: rgba(255,255,255,.18); z-index: -1; }
.jr-timeline .jr-ms:first-child::before { display: none; }
.jr-timeline .jr-ms i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.18); box-shadow: 0 0 0 3px rgba(255,255,255,.05); transition: all .3s; }
.jr-timeline .jr-ms.done i { background: var(--jr-gold); box-shadow: 0 0 10px rgba(226,184,90,.6); }
.jr-timeline .jr-ms.cur i { background: #fff; box-shadow: 0 0 0 4px rgba(226,184,90,.35), 0 0 22px rgba(226,184,90,.9); transform: scale(1.25); }
.jr-timeline .jr-ms.cur { color: var(--jr-ink); }
.jr-timeline .jr-ms span { white-space: nowrap; }
.jr-progress { position: relative; z-index: 3; text-align: center; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--jr-gold); padding: 4px 0 0; }
.jr-scene { position: relative; z-index: 3; display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; padding: 26px 26px 10px; align-items: start; }
.jr-narr { position: relative; }
.jr-narr h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 6px 0 12px; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.jr-narr p.jr-text { font-size: 1.05rem; line-height: 1.7; color: var(--jr-dim); max-width: 56ch; }
.jr-concepts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.jr-concepts span, .jr-chip-c { font: inherit; font-size: .76rem; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--jr-ink); }
.jr-chip-c { cursor: pointer; transition: background .15s, border-color .15s; }
.jr-chip-c:hover { background: rgba(226,184,90,.18); border-color: rgba(226,184,90,.6); }
.jr-chip-c.on { background: rgba(226,184,90,.28); border-color: var(--jr-gold); color: #ffe6a8; }
.jr-panel { background: rgba(10,13,38,.62); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-height: 62vh; overflow: auto; }
.jr-panel h3 { margin: 0 0 8px; font-size: 1rem; color: var(--jr-gold); letter-spacing: .02em; }
.jr-panel h4 { margin: 14px 0 6px; font-size: .9rem; color: var(--jr-ink); }
.jr-panel p, .jr-panel li { font-size: .9rem; line-height: 1.55; color: var(--jr-dim); }
.jr-panel ul { margin: 6px 0; padding-left: 18px; }
.jr-panel .jr-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; }
.jr-panel .jr-kv dt { color: var(--jr-gold); white-space: nowrap; }
.jr-panel .jr-kv dd { margin: 0; color: var(--jr-dim); }
.jr-panel .jr-note { font-size: .76rem; color: rgba(243,239,230,.5); margin-top: 10px; }
.jr-panel .jr-big { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; color: var(--jr-ink); line-height: 1.1; }
.jr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jr-tile { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.jr-tile .jr-eyebrow { margin-bottom: 4px; font-size: .64rem; }
.jr-controls { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(6,8,25,.6); }
.jr-controls .spacer { flex: 1; }
.jr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.jr-chip { font: inherit; font-size: .82rem; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--jr-ink); cursor: pointer; }
.jr-chip.on { background: rgba(226,184,90,.22); border-color: var(--jr-gold); color: #ffe6a8; }
.jr textarea, .jr input[type=text] { width: 100%; font: inherit; font-size: .9rem; padding: 9px 11px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--jr-ink); }
.jr-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin: 6px 0 10px; }
.jr-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--jr-gold), #ffe6a8); transition: width .3s; }
.jr-goal { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: .88rem; color: var(--jr-dim); }
.jr-goal input { margin-top: 3px; }
.jr-goal.done label { text-decoration: line-through; opacity: .6; }
.jr-goal label { flex: 1; cursor: pointer; }
.jr-goal .x { background: none; border: 0; color: rgba(243,239,230,.4); cursor: pointer; font-size: .9rem; }
.jr-report { position: relative; z-index: 3; padding: 26px; }
.jr-report .jr-sec { background: rgba(10,13,38,.62); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.jr-report .jr-sec h3 { margin: 0 0 6px; color: var(--jr-gold); font-size: 1rem; }
.jr-report .jr-sec p, .jr-report .jr-sec li { font-size: .92rem; line-height: 1.6; color: var(--jr-dim); }
.jr-saved-list li { font-size: .86rem; color: var(--jr-dim); margin: 4px 0; }
.jr-toast { position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 5; background: rgba(226,184,90,.95); color: #1a1405; padding: 8px 14px; border-radius: 999px; font-size: .85rem; animation: jr-rise .3s ease-out both; }
.jr-fade { animation: jr-fade .7s ease-out both; }
@keyframes jr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes jr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jr-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.jr-art .float { animation: jr-float 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .jr-art .float, .jr-intro .jr-copy, .jr-fade { animation: none; } }
@media (max-width: 860px) {
  .jr-scene { grid-template-columns: 1fr; padding: 18px 16px 8px; }
  .jr-panel { max-height: none; background: rgba(10,13,38,.86); }
  .jr-timeline { padding: 14px 10px 4px; }
  .jr-timeline .jr-ms span { display: none; }
  .jr-timeline .jr-ms.cur span { display: block; position: absolute; top: 20px; font-size: .62rem; }
  .jr-timeline { padding-bottom: 18px; }
  .jr-controls { padding: 12px 14px 16px; }
  .jr-grid2 { grid-template-columns: 1fr; }
  .jr-intro { min-height: 70vh; }
}
@media print { .jr { background: #fff; color: #000; box-shadow: none; } .jr-canvas, .jr-art, .jr-veil, .jr-controls, .jr-timeline { display: none !important; } .jr-report .jr-sec { background: none; border-color: #ccc; } .jr-report .jr-sec p, .jr-report .jr-sec li, .jr-report .jr-sec h3 { color: #000; } }
