/* === monstrance-journey.css ===
   Journey section backdrop, zigzag bookmark spreads, adventure CTAs, ribbon, diagrams.
   Auto-extracted from catholic-monstrance-for-kids.html
*/

/* ===== Faith Journey section (below the monstrance) ===== */
.journey {
  position: relative;
  z-index: 1;
  padding: 80px clamp(16px, 4vw, 60px) 100px;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--halo) 0%, transparent 45%),
    linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 30%, var(--bg) 100%);
  overflow: hidden;
}
body[data-route-surface="subpage"] .journey {
  display: none;
}
.journey::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.10  0 0 0 0 0.06  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.journey-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.journey-head {
  text-align: center;
  margin-bottom: 60px;
}
.journey-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 8px;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.journey-title {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.journey-title .squiggle-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.journey-title .squiggle {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.14em;
  width: 104%;
  height: 0.28em;
  color: var(--accent);
  pointer-events: none;
}
.journey-blurb {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
}

.adventure-cta {
  display: inline-grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 460px;
  margin: 24px auto 0;
  background: linear-gradient(135deg, var(--accent), var(--gold-deep));
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--rad-lg);
  padding: 14px 22px 14px 16px;
  box-shadow: 0 6px 0 var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
  text-align: left;
}
.adventure-cta:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.adventure-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.adventure-cta-sheep { background: linear-gradient(135deg, var(--leaf), var(--gold)); margin-top: 12px; }
.adventure-cta-icon {
  width: 56px; height: 56px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1);
}
.adventure-cta-text { display: flex; flex-direction: column; gap: 2px; }
.adventure-cta-text strong {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
}
.adventure-cta-text em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-size: 18px;
  opacity: 0.95;
}
.adventure-cta-arrow {
  font-size: 28px;
  font-weight: 800;
}
.journey-game-trail {
  width: min(1080px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.journey-game-trail a {
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: rgba(255, 248, 230, 0.9);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  box-shadow: 0 4px 0 rgba(42, 26, 14, 0.55);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.journey-game-trail a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(42, 26, 14, 0.55);
}
.journey-game-trail span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid rgba(42, 26, 14, 0.28);
  font-size: 20px;
}
.journey-game-trail strong {
  font-size: 14px;
  line-height: 1.05;
}

/* === Bookmark "zigzag spread" timeline === */
.path {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  margin: 50px auto 100px;
  max-width: 1280px;
  padding: 32px clamp(16px, 3vw, 32px);
}
/* Story atmosphere: soft tints flow top->bottom, like time of day shifting */
.path::after {
  content: '';
  position: absolute;
  inset: -20px -40px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70% 14% at 50% 5%,  rgba(255, 241, 184, 0.55), transparent 75%),
    radial-gradient(60% 12% at 50% 20%, rgba(255, 219, 158, 0.45), transparent 75%),
    radial-gradient(60% 12% at 50% 36%, rgba(255, 200, 168, 0.40), transparent 75%),
    radial-gradient(70% 14% at 50% 52%, rgba(255, 209, 196, 0.42), transparent 75%),
    radial-gradient(60% 12% at 50% 68%, rgba(232, 200, 220, 0.40), transparent 75%),
    radial-gradient(70% 14% at 50% 84%, rgba(201, 221, 234, 0.45), transparent 75%),
    radial-gradient(60% 14% at 50% 98%, rgba(160, 190, 220, 0.45), transparent 75%);
}
/* Ribbon is hidden in the zigzag layout — the colorful panels are the design */
.path-ribbon { display: none; }
.path-ribbon path {
  will-change: transform;
  animation: ribbonBreathe 11s ease-in-out infinite;
}
.path-ribbon circle {
  animation: sparkle 3.2s ease-in-out infinite;
  transform-origin: center;
}
.path-ribbon circle:nth-of-type(2) { animation-delay: 0.6s; }
.path-ribbon circle:nth-of-type(3) { animation-delay: 1.2s; }
.path-ribbon circle:nth-of-type(4) { animation-delay: 1.8s; }
.path-ribbon circle:nth-of-type(5) { animation-delay: 2.4s; }
@keyframes ribbonBreathe {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(2px); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

.bookmark {
  position: relative;
  z-index: 2;
  display: block;
}
/* Each row is a single full-width zigzag spread; the legacy 3-col grid
   is collapsed and the standalone anchor + spacer cells from the
   original markup are hidden because the step number now lives inside
   the text card. */
.bookmark > .anchor,
.bookmark > .bookmark-spacer { display: none; }

/* Magazine zigzag spread: large image panel + offset paper text card */
.bookmark-card {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  position: relative;
  transition: transform 220ms ease;
  width: 100%;
}
.bookmark-card:hover { transform: translateY(-4px); }
.bookmark-card:hover .bookmark-img img { transform: scale(1.04); }
.bookmark-card.is-locked { cursor: default; }
.bookmark-card.is-locked:hover { transform: none; }
.bookmark-card.is-locked .bookmark-img { opacity: 0.85; }

/* Alternating sides — image left/right, text overlaps the inside edge */
.bookmark:nth-child(odd)  .bookmark-card {
  grid-template-columns: 1.4fr 0.9fr;
  text-align: left;
}
.bookmark:nth-child(even) .bookmark-card {
  grid-template-columns: 0.9fr 1.4fr;
  text-align: right;
}
.bookmark:nth-child(even) .bookmark-img { order: 2; }
.bookmark:nth-child(even) .bookmark-card > *:not(.bookmark-img) { order: 1; }

/* Image: large, feathered into the page (no frame) */
/* Image PANEL — colored gradient block with the cartoon centered inside */
.bookmark-img {
  width: 100%;
  height: 340px;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 140px;
  color: var(--gold-deep);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: 0 8px 0 var(--ink), 0 24px 40px -10px rgba(42, 26, 14, 0.28);
  background: linear-gradient(135deg, var(--halo), var(--gold-light) 55%, var(--paper-deep));
}
.bookmark:nth-child(8n+1) .bookmark-img { background: linear-gradient(135deg, #FFF1B8, #FFE9A8 55%, #F4DFB1); }
.bookmark:nth-child(8n+2) .bookmark-img { background: linear-gradient(135deg, #FFE9A8, #F4C97E 55%, #E8A93C); }
.bookmark:nth-child(8n+3) .bookmark-img { background: linear-gradient(135deg, #FCE0B8, #F2B58A 55%, #D9876C); }
.bookmark:nth-child(8n+4) .bookmark-img { background: linear-gradient(135deg, #FBD5C2, #E89C8E 55%, #C84B31); }
.bookmark:nth-child(8n+5) .bookmark-img { background: linear-gradient(135deg, #F0C8D6, #C99BC3 55%, #9B6BAA); }
.bookmark:nth-child(8n+6) .bookmark-img { background: linear-gradient(135deg, #D5BFD9, #8FA8D6 55%, #6584C0); }
.bookmark:nth-child(8n+7) .bookmark-img { background: linear-gradient(135deg, #BEDCE8, #6FA4C2 55%, #3F7793); }
.bookmark:nth-child(8n)   .bookmark-img { background: linear-gradient(135deg, #DCE6BF, #88B05A 55%, #5C7B3A); }
.bookmark-img img {
  position: absolute;
  inset: 4% 6%;
  width: 88%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(42, 26, 14, 0.30));
  transition: transform 380ms ease;
}
/* Emoji fallback */
.bookmark-img > span[aria-hidden] {
  z-index: 0;
  text-shadow: 0 0 30px var(--halo), 0 0 60px var(--gold-light);
}

/* Text card — paper-bg block that OVERLAPS the image's inside edge */
.bookmark-card > div:not(.bookmark-img) {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  padding: 26px clamp(18px, 2.4vw, 32px);
  box-shadow: var(--shadow-ink);
  max-width: 460px;
}
.bookmark:nth-child(odd)  .bookmark-card > div:not(.bookmark-img) {
  margin-left: -56px;
  justify-self: start;
}
.bookmark:nth-child(even) .bookmark-card > div:not(.bookmark-img) {
  margin-right: -56px;
  justify-self: end;
}

.bookmark-card .num {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--accent-deep);
  line-height: 1;
  letter-spacing: 0.02em;
}
.bookmark-card h3 {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.65);
}
.bookmark-card p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 10px;
  max-width: 32ch;
}
/* Tag is now an inline storybook line — no pill, just typography */
.bookmark-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.bookmark-tag.coming {
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 19px;
}
.bookmark-tag.done { color: var(--accent); }
.bookmark-tag:not(.coming):not(.done)::after {
  content: '→';
  font-size: 18px;
  transition: transform 200ms ease;
}
.bookmark-card:hover .bookmark-tag:not(.coming):not(.done)::after {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .journey-game-trail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { gap: 28px; padding: 24px 12px; max-width: 100%; }
  .bookmark:nth-child(odd)  .bookmark-card,
  .bookmark:nth-child(even) .bookmark-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .bookmark:nth-child(even) .bookmark-img { order: 1; }
  .bookmark:nth-child(even) .bookmark-card > *:not(.bookmark-img) { order: 2; }
  .bookmark-img { height: 240px; }
  .bookmark-card > div:not(.bookmark-img) {
    max-width: 100%;
    margin: -36px 16px 0 16px !important;
    justify-self: stretch !important;
  }
  .bookmark-card h3 { font-size: 22px; }
  .bookmark-card p { font-size: 15px; }
}

/* Concept arrow diagrams */
.diagram-wrap {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  padding: 32px clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow-ink);
  margin: 60px auto;
  max-width: 920px;
  transform: rotate(-0.4deg);
}
.diagram-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--accent-deep);
  line-height: 1;
}
.diagram-title {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  margin: 4px 0 24px;
  letter-spacing: -0.02em;
}
.flow {
  display: grid;
  /* 4 steps + 3 arrows in one row: step-arrow-step-arrow-step-arrow-step */
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.flow-step {
  background: var(--gold-light);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 16px 12px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 0 var(--ink);
  position: relative;
}
.flow-step .icon {
  font-size: 36px;
  display: block;
  margin-bottom: 6px;
}
.flow-step .icon-img,
.trinity-node .icon-img {
  display: block;
  width: clamp(120px, 13vw, 160px);
  height: clamp(120px, 13vw, 160px);
  margin: 0 auto 10px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: radial-gradient(circle at 40% 35%, var(--halo), var(--gold-light) 70%, var(--paper-deep));
  object-fit: cover;
  box-shadow: 0 2px 0 var(--ink);
}
.trinity-node .icon-img {
  border-radius: 50%;
}
.flow-step .label {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 2px;
}
.flow-step .sub {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: var(--accent-deep);
}
.flow-arrow {
  color: var(--ink);
  display: grid;
  place-items: center;
}
.flow-arrow svg { width: 100%; max-width: 56px; min-width: 28px; height: auto; }
.flow-step .label { font-size: clamp(14px, 1.4vw, 17px); }
.flow-step .sub   { font-size: clamp(14px, 1.4vw, 17px); }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow svg { transform: rotate(90deg); max-width: 36px; }
}

/* Trinity diagram */
.trinity-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
}
.trinity-node {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 2px 0 var(--ink);
}
.trinity-node .icon {
  font-size: 44px;
  display: block;
  margin-bottom: 6px;
}
.trinity-node .label {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 19px;
}
.trinity-node .sub {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--accent-deep);
  margin-top: 2px;
}
.trinity-equals {
  text-align: center;
  margin-top: 18px;
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--accent-deep);
}
@media (max-width: 580px) {
  .trinity-diagram { grid-template-columns: 1fr; }
}

.journey-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: var(--ink-soft);
}
.more-discover {
  width: min(1100px, 100%);
  margin: 0 auto 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--ink);
}
.more-discover-kicker {
  font-family: 'Caveat', cursive;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--accent-deep);
}
.more-discover h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.95;
  letter-spacing: 0;
}
.more-discover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.more-discover-card {
  min-height: 238px;
  display: grid;
  grid-template-rows: 136px 1fr;
  color: var(--ink);
  text-decoration: none;
  background: #fff8e9;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(42, 26, 14, 0.55);
  transition: transform 140ms ease, box-shadow 140ms ease;
  text-align: left;
}
.more-discover-card:hover,
.more-discover-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(42, 26, 14, 0.55);
  outline: none;
}
.more-discover-card:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 4px;
}
.more-discover-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.more-card-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 102px;
  padding: 12px;
}
.more-card-copy strong {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.05;
}
.more-card-copy span {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.35;
}
.journey-footer > p a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline dashed;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .more-discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .more-discover-grid {
    grid-template-columns: 1fr;
  }

  .more-discover-card {
    grid-template-rows: 150px 1fr;
  }
}
