/* Journal components, explicitly included by selected editorial pages only. */
.journal-kit { --journal-ink:#292637; --journal-paper:#fbf5e7; --journal-violet:#7563b4; --journal-soft:#e9e3f6; margin:40px 0; scroll-margin-top:92px; }
.journal-kit, .journal-kit * { box-sizing:border-box; }
.journal-kit img { display:block; height:auto; }
.journal-kit .journal-header .journal-title { font-size:22px; line-height:1.4; margin:0 0 12px; color:inherit; }
.journal-kit .journal-header p { margin:0; line-height:1.7; }
.journal-kit :focus-visible { outline:3px solid #a196ff; outline-offset:5px; }
.journal-kit [hidden] { display:none !important; }

/* A map of independent entrances, not a numbered mandatory process. */
.journal-path { position:relative; padding:28px; background:var(--journal-paper); color:var(--journal-ink); border:1.5px solid var(--journal-ink); border-radius:7px 24px 10px 21px; box-shadow:5px 6px 0 #7563b42b; }
.journal-path .journal-header { max-width:52ch; }
.journal-path-map { position:relative; margin:38px 0 0; padding-top:34px; }
.journal-path-origin { position:absolute; left:50%; top:0; transform:translateX(-50%); width:16px; height:16px; border-radius:50%; background:linear-gradient(135deg,#a855f7,#6366f1); box-shadow:0 0 0 6px #7563b420; }
.journal-path-road { position:absolute; width:64px; top:14px; bottom:0; left:calc(50% - 32px); height:calc(100% - 14px); overflow:visible; pointer-events:none; }
.journal-road-edge { fill:none; stroke:#e1d6bf; stroke-width:10; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.journal-road-line { fill:none; stroke:#8974bd; stroke-width:2; stroke-dasharray:3 5; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.journal-path-stops { display:grid; grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr); gap:26px 0; list-style:none !important; padding:0 !important; margin:0 !important; }
.journal-path-stops > li { display:flex; margin:0; min-width:0; }
.journal-path-stops > li:nth-child(1) { grid-column:1;grid-row:1; }
.journal-path-stops > li:nth-child(2) { grid-column:3;grid-row:1; }
.journal-path-stops > li:nth-child(3) { grid-column:1;grid-row:2; }
.journal-path-stops > li:nth-child(4) { grid-column:3;grid-row:2; }
.journal-path-stops > li:nth-child(5) { grid-column:1;grid-row:3; }
.journal-kit .journal-stop { display:flex; align-items:center; gap:13px; min-height:102px; width:100%; padding:12px 0; color:var(--journal-ink); text-decoration:none; border-radius:12px; }
.journal-path-stops > li:nth-child(odd) .journal-stop { flex-direction:row-reverse; text-align:right; }
.journal-stop-icon { display:grid; place-items:center; position:relative; flex:0 0 58px; width:58px; height:58px; background:#fffdf7; border:1.5px solid var(--journal-violet); border-radius:48% 52% 45% 55%; }
.journal-stop-icon::after { content:''; position:absolute; width:9px; height:9px; border-radius:50%; background:#7563b4; right:-6px; top:calc(50% - 4px); border:2px solid var(--journal-paper); }
.journal-path-stops > li:nth-child(even) .journal-stop-icon::after { left:-6px; right:auto; }
.journal-stop-icon img { width:42px; height:42px; }
.journal-stop-copy { min-width:0; }
.journal-stop-title { display:block; font-weight:750; font-size:17px; line-height:1.4; }
.journal-stop-caption { display:block; color:#61566f; font-size:14px; line-height:1.6; margin-top:6px; }
.journal-stop:hover .journal-stop-title, .journal-stop.is-current .journal-stop-title { text-decoration:underline; text-underline-offset:4px; }
.journal-stop:hover .journal-stop-icon, .journal-stop.is-current .journal-stop-icon { background:#ded6f2; box-shadow:0 0 0 4px #7563b41c; }
.journal-path .journal-path-note { margin:24px 0 0; font-size:14px; color:#61566f; }

/* Cards remain an ordinary list until their own module is needed. */
.journal-reel { color:var(--journal-ink); padding:28px; border:1.5px solid var(--journal-ink); background:var(--journal-paper); border-radius:20px 7px 18px 9px; }
.journal-reel .journal-reel-track { display:grid; grid-template-columns:1fr 1fr; gap:24px; list-style:none; padding:0; margin:26px 0 0; }
.journal-reel .journal-reel-card { min-width:0; margin:0; padding:22px; background:#fffdf7; color:var(--journal-ink); border:1px solid #b9a8d1; border-radius:7px 16px 8px 14px; }
.journal-reel-card img { width:52px; height:52px; margin-bottom:20px; }
.journal-reel-card .journal-card-title { display:block; font-size:18px; line-height:1.45; font-weight:750; margin-bottom:10px; color:var(--journal-ink); }
.journal-reel-card p { margin:0; line-height:1.75; }
.journal-reel.is-enhanced .journal-reel-track { display:flex; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#9b88bd transparent; padding-bottom:12px; }
.journal-reel.is-enhanced .journal-reel-card { flex:0 0 calc((100% - 24px) / 2); scroll-snap-align:start; }
.journal-reel-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-top:22px; }
.journal-reel-controls button { min-width:48px; min-height:48px; border:1px solid #7563b4; border-radius:50%; background:#e9e3f6; color:#292637; font:inherit; font-size:22px; cursor:pointer; }
.journal-kit.journal-reel .journal-reel-controls button { min-width:48px; min-height:48px; padding:8px; font-size:22px; border-radius:50%; background:#e9e3f6; color:#292637; border-color:#7563b4; }
.journal-reel-controls button:disabled { opacity:.38; cursor:default; }
.journal-reel-counter { font-size:15px; color:#61566f; }
.journal-reel .journal-reel-note { margin:20px 0 0; color:#61566f; font-size:14px; line-height:1.65; }

/* One restrained parallax accent. The reading text never moves. */
.journal-float { position:relative; padding:38px 28px 38px 114px; background:var(--journal-paper); color:var(--journal-ink); border-left:4px solid var(--journal-violet); border-radius:5px 21px 8px 18px; overflow:hidden; }
.journal-float .journal-float-quote { margin:0; padding:0; border:0; background:none; box-shadow:none; color:var(--journal-ink); font-style:normal; }
.journal-float .journal-float-quote p { margin:0; font-size:19px; line-height:1.7; font-weight:650; }
.journal-sticker { position:absolute; pointer-events:none; transform:translateY(var(--journal-drift,0px)) rotate(var(--journal-tilt,0deg)); will-change:auto; }
.journal-sticker img { width:100%; height:100%; }
.journal-sticker:first-child { width:66px; height:66px; top:20px; left:15px; --journal-tilt:-12deg; }
.journal-sticker:nth-child(2) { width:42px; height:42px; left:56px; bottom:12px; --journal-tilt:9deg; }
.journal-sticker:nth-child(3) { width:30px; height:30px; left:18px; bottom:7px; --journal-tilt:-7deg; opacity:.7; }
@media(max-width:600px) {
  .journal-path, .journal-reel { padding:22px 18px; }
  .journal-kit .journal-header .journal-title { font-size:20px; }
  .journal-path-map { margin-top:32px; padding-top:22px; }
  .journal-path-origin { left:17px; }
  .journal-path-road { display:none; }
  .journal-path-map::before { content:''; position:absolute; left:16px; top:16px; bottom:48px; border-left:3px dashed #aa98c5; }
  .journal-path-stops { display:flex; flex-direction:column; gap:18px; padding-left:40px !important; }
  .journal-path-stops > li { position:relative; }
  .journal-path-stops > li::before { content:''; position:absolute; top:50%; left:-24px; width:24px; border-top:2px solid #aa98c5; }
  .journal-kit .journal-stop, .journal-path-stops > li:nth-child(odd) .journal-stop { flex-direction:row; text-align:left; gap:12px; min-height:94px; padding:8px 0; }
  .journal-stop-icon { width:48px; height:48px; flex-basis:48px; }
  .journal-stop-icon img { width:34px; height:34px; }
  .journal-stop-icon::after, .journal-path-stops > li:nth-child(even) .journal-stop-icon::after { left:-6px; right:auto; }
  .journal-stop-title { font-size:16px; }
  .journal-stop-caption { font-size:14px; }
  .journal-reel .journal-reel-track { grid-template-columns:1fr; }
  .journal-reel.is-enhanced .journal-reel-card { flex-basis:100%; }
  .journal-float { padding:24px 22px; }
  .journal-float .journal-float-quote p { font-size:17px; }
  .journal-float > [aria-hidden] { display:flex; gap:18px; align-items:center; margin-bottom:18px; }
  .journal-float .journal-sticker { position:static; width:40px; height:40px; }
  .journal-sticker:nth-child(3) { display:none; }
}
@media(prefers-reduced-motion:reduce) { html:has(.journal-kit) { scroll-behavior:auto; } .journal-sticker { transform:rotate(var(--journal-tilt,0deg)) !important; } .journal-reel-track { scroll-behavior:auto; } }
@media print {
  .journal-reel.is-enhanced .journal-reel-track { display:grid; grid-template-columns:1fr 1fr; overflow:visible; }
  .journal-reel .journal-reel-controls { display:none; }
  .journal-sticker { transform:rotate(var(--journal-tilt,0deg)) !important; }
}
