/* =============================================================================
   Journey collection pages (template-journey.php), body.ca-journey. An editorial multi-day itinerary:
   name and lead beside the photo, the stages down a vertical timeline, a sticky "Plan this journey"
   card with the one green action, the other collections at the foot. Frame and tokens (--ui-*, Jost
   500/600) come from ui.css. House tokens only. Motion only inside @supports and no-preference.
   ============================================================================= */
body.ca-journey { background: var(--ui-bg); }
/* The theme's overflow-x: hidden on html/body turns body into a scroll container and sticky never engages */
html:has(body.ca-journey), body.ca-journey { overflow-x: clip; }
/* style.css zeroes .site-content padding on these five slugs for the old full-bleed dark hero; the light
   page sits below the fixed header again (the theme's own inline offset, mirrored by journey.js) */
body.ca-journey #content.site-content { padding-top: var(--jd-head, 81px) !important; }
body.ca-journey .jd { --jd-gut: clamp(1.25rem, 5vw, 3rem); --jd-top: 84px;
    display: block; color: var(--ui-ink); background: var(--ui-bg); font-family: 'Jost', sans-serif; font-weight: 400; font-size: 17px; line-height: 1.65; }
body.ca-journey .jd *, body.ca-journey .jd *::before, body.ca-journey .jd *::after { box-sizing: border-box; }
body.ca-journey .jd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--jd-gut); }
body.ca-journey .jd h1, body.ca-journey .jd h2, body.ca-journey .jd h3 { font-family: 'Jost', sans-serif; font-style: normal; text-transform: none; letter-spacing: -.005em; color: var(--ui-ink); text-align: left; }
body.ca-journey .jd a, body.ca-journey .jd p, body.ca-journey .jd li, body.ca-journey .jd span { font-family: 'Jost', sans-serif; letter-spacing: normal; text-transform: none; }

/* Small labels: the content's own uppercase eyebrows, read as quiet gold labels */
body.ca-journey .jd .jd-label { margin: 0 0 .5rem; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ui-accent); line-height: 1.4; }

/* Hero: words on paper at left, the photograph at right, never words on the photograph */
body.ca-journey .jd-hero { padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
body.ca-journey .jd-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
body.ca-journey .jd-crumb { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; margin-bottom: 1rem; font-size: 15px; font-weight: 500; color: var(--ui-ink-2); text-decoration: none; }
body.ca-journey .jd-crumb::before { content: "\2190"; transition: transform var(--ca-transition); }
body.ca-journey .jd-crumb:hover { color: var(--ui-accent); }
body.ca-journey .jd-crumb:hover::before { transform: translateX(-3px); }
body.ca-journey .jd .jd-h1 { font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem) !important; line-height: 1.1 !important; margin: 0 0 1rem; }
body.ca-journey .jd-lead { margin: 0 0 1.5rem; font-size: clamp(17px, 1rem + .35vw, 20px); line-height: 1.55; color: var(--ui-ink-2); max-width: 30em; }
body.ca-journey .jd-jump { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--ui-ink); text-decoration: none; border-bottom: 1px solid var(--ui-line); }
body.ca-journey .jd-jump::after { content: "\2193"; transition: transform var(--ca-transition); }
body.ca-journey .jd-jump:hover::after { transform: translateY(3px); }
body.ca-journey .jd-hero-media { margin: 0; aspect-ratio: 5 / 4; border-radius: var(--ui-radius); overflow: hidden; background: linear-gradient(150deg, var(--beige), color-mix(in srgb, var(--beige) 60%, var(--gold-pale))); box-shadow: var(--ui-shadow); }
body.ca-journey .jd-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body: reading column and the sticky card. Areas let the card sit right after the intro on phones */
body.ca-journey .jd-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "intro side" "main side"; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
body.ca-journey .jd-intro { grid-area: intro; padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; border-top: 1px solid var(--ui-line); }
body.ca-journey .jd-main { grid-area: main; min-width: 0; }
body.ca-journey .jd-side { grid-area: side; align-self: stretch; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
body.ca-journey .jd-quote { margin: 0 0 1.25rem; font-size: clamp(20px, 1.1rem + .6vw, 26px); font-weight: 500; line-height: 1.4; color: var(--ui-ink); max-width: 30em; }
body.ca-journey .jd-p { margin: 0 0 1rem; font-size: 17px; line-height: 1.65; color: var(--ui-ink-2); max-width: 38em; }
body.ca-journey .jd-p a, body.ca-journey .jd-content a { color: var(--ui-ink); text-decoration: underline; text-decoration-color: var(--ui-accent); text-underline-offset: 3px; }
body.ca-journey .jd-p a:hover, body.ca-journey .jd-content a:hover { color: var(--ui-accent); }

/* The card: sticky beside the reading column on wide screens */
body.ca-journey .jd-card { position: sticky; top: calc(var(--jd-top) + 24px); padding: 1.5rem; background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
body.ca-journey .jd .jd-card-k { margin: 0 0 .25rem; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ui-accent); }
body.ca-journey .jd-card-t { margin: 0 0 1rem; font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--ui-ink); }
body.ca-journey .jd-card-h { margin: 0 0 .4rem; padding-top: 1rem; border-top: 1px solid var(--ui-line); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ui-ink); }
body.ca-journey .jd-card-b { margin: 0 0 1.25rem; font-size: 16px; line-height: 1.6; color: var(--ui-ink-2); }
body.ca-journey .jd-btn { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 52px; padding: 0 1.2rem; border-radius: var(--ui-radius-sm);
    font: 600 16px/1.2 'Jost', sans-serif; text-decoration: none; text-transform: none; letter-spacing: .01em; transition: background var(--ca-transition), border-color var(--ca-transition), color var(--ca-transition); }
body.ca-journey .jd-btn + .jd-btn { margin-top: .6rem; }
body.ca-journey .jd-btn-wa { background: var(--wa-green); color: var(--ivory); border: 1px solid var(--wa-green); }
body.ca-journey .jd-btn-wa:hover { background: var(--wa-green-lt); border-color: var(--wa-green-lt); color: var(--ivory); }
body.ca-journey .jd-btn-ghost { background: transparent; color: var(--ui-ink); border: 1px solid color-mix(in srgb, var(--obsidian) 35%, transparent); }
body.ca-journey .jd-btn-ghost:hover { border-color: var(--ui-ink); color: var(--ui-ink); }
body.ca-journey .jd a:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; border-radius: 6px; }

/* Section headings */
body.ca-journey .jd .jd-h2 { font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); line-height: 1.15; margin: 0 0 1.5rem; }
body.ca-journey .jd .jd-h3 { font-weight: 600; font-size: 19px !important; line-height: 1.3; margin: 0 0 .5rem; }

/* The route: a vertical timeline, numbered stops on a rule, photo beside each stop */
body.ca-journey .jd-route { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
body.ca-journey .jd-line { list-style: none; margin: 0; padding: 0; position: relative; }
body.ca-journey .jd-line::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: var(--ui-line); }
body.ca-journey .jd-stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 240px); gap: 0 clamp(1rem, 3vw, 1.75rem); align-items: start; margin: 0; padding: 0 0 clamp(2rem, 5vw, 3rem); }
body.ca-journey .jd-stop:last-child { padding-bottom: 0; }
body.ca-journey .jd-stop::before, body.ca-journey .jd-stop::marker { content: none; }
body.ca-journey .jd .jd-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ui-paper); border: 1px solid var(--ui-accent);
    font-size: 14px; font-weight: 600; color: var(--ui-accent); font-variant-numeric: tabular-nums; letter-spacing: .02em; transition: background var(--ca-transition), color var(--ca-transition); }
body.ca-journey .jd-stop.is-on .jd-dot { background: var(--ui-accent); color: var(--ivory); }
body.ca-journey .jd-stop-body { padding-top: .55rem; }
body.ca-journey .jd-stop-body .jd-p { margin: 0; }
body.ca-journey .jd-stop-media { margin: .55rem 0 0; aspect-ratio: 4 / 3; border-radius: var(--ui-radius-sm); overflow: hidden; background: var(--ui-tint); }
body.ca-journey .jd-stop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* What this covers: the content's own cards, as a ruled list of facts */
body.ca-journey .jd-covers { margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--ui-tint); border-radius: var(--ui-radius); }
body.ca-journey .jd-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1.25rem 1.75rem; }
body.ca-journey .jd-facts li { margin: 0; padding: 1rem 0 0; border-top: 1px solid color-mix(in srgb, var(--obsidian) 18%, transparent); }
body.ca-journey .jd-facts li::before, body.ca-journey .jd-facts li::marker { content: none; }
body.ca-journey .jd .jd-fact-t { margin: 0 0 .4rem; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ui-ink); }
body.ca-journey .jd-fact-b { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ui-ink-2); }

/* the_content remainder (the FAQ and anything added later): every old dark or display style neutralised */
body.ca-journey .jd-content { margin-top: clamp(2.5rem, 6vw, 4rem); color: var(--ui-ink-2); }
body.ca-journey .jd-content section, body.ca-journey .jd-content div, body.ca-journey .jd-content .has-background,
body.ca-journey .jd-content [style*="background"] { background: transparent !important; background-image: none !important; color: inherit !important; padding-left: 0 !important; padding-right: 0 !important; min-height: 0 !important; box-shadow: none !important; }
body.ca-journey .jd-content [style*="color"], body.ca-journey .jd-content .has-text-color { color: inherit !important; }
body.ca-journey .jd-content .ca-faq { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.ca-journey .jd-content .ca-eyebrow { display: block; margin: 0 0 .5rem; font: 600 13px/1.4 'Jost', sans-serif !important; letter-spacing: .1em !important; color: var(--ui-accent) !important; }
body.ca-journey .jd-content h2, body.ca-journey .jd-content h3, body.ca-journey .jd-content h4 { font-family: 'Jost', sans-serif !important; font-style: normal !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: -.005em !important; color: var(--ui-ink) !important; }
body.ca-journey .jd-content h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem) !important; line-height: 1.15 !important; margin: 0 0 1.25rem !important; }
body.ca-journey .jd-content h3 { font-size: 19px !important; line-height: 1.35 !important; margin: 0 !important; padding: 1.25rem 0 .5rem !important; border-top: 1px solid var(--ui-line); }
body.ca-journey .jd-content p { font-family: 'Jost', sans-serif !important; font-size: 16px !important; line-height: 1.7 !important; font-style: normal !important; color: var(--ui-ink-2) !important; margin: 0 0 1rem !important; max-width: 40em; text-align: left !important; }
body.ca-journey .jd-content .ca-eyebrow + h3 { border-top: 0; padding-top: .25rem !important; }
body.ca-journey .jd-content img { max-width: 100%; height: auto; border-radius: var(--ui-radius-sm); }

/* The other collections */
body.ca-journey .jd-more { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--ui-tint); }
body.ca-journey .jd-more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
body.ca-journey .jd-more-head .jd-h2 { margin: 0; }
body.ca-journey .jd-all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--ui-ink); text-decoration: none; }
body.ca-journey .jd-all::after { content: " \2192"; white-space: pre; transition: transform var(--ca-transition); }
body.ca-journey .jd-all:hover::after { transform: translateX(4px); }
body.ca-journey .jd-others { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); }
body.ca-journey .jd-others li { margin: 0; padding: 0; }
body.ca-journey .jd-others li::before, body.ca-journey .jd-others li::marker { content: none; }
body.ca-journey .jd-other { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ui-ink); background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); overflow: hidden; transition: box-shadow var(--ca-transition), transform var(--ca-transition); }
body.ca-journey .jd-other:hover { box-shadow: var(--ui-shadow); transform: translateY(-2px); color: var(--ui-ink); }
body.ca-journey .jd-other-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(150deg, var(--beige), color-mix(in srgb, var(--beige) 60%, var(--gold-pale))); }
body.ca-journey .jd-other-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms ease; }
body.ca-journey .jd-other:hover .jd-other-media img { transform: scale(1.03); }
body.ca-journey .jd-other-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
body.ca-journey .jd .jd-other-t { font-weight: 600; font-size: 18px; line-height: 1.3; }
body.ca-journey .jd-other-l { font-size: 16px; line-height: 1.5; color: var(--ui-ink-2); }

/* Scroll-driven: each stop and its photo rise into place as they enter. Progressive only. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        body.ca-journey .jd-stop-body, body.ca-journey .jd-stop-media { animation: jd-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
        body.ca-journey .jd-stop-media img { animation: jd-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    }
}
@keyframes jd-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes jd-settle { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    body.ca-journey .jd *, body.ca-journey .jd *::before, body.ca-journey .jd *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 1080px) {
    body.ca-journey .jd-stop { grid-template-columns: 44px minmax(0, 1fr); }
    body.ca-journey .jd-stop-media { grid-column: 2; margin-top: 1rem; max-width: 520px; }
    body.ca-journey .jd-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    body.ca-journey .jd-hero-grid { grid-template-columns: minmax(0, 1fr); }
    body.ca-journey .jd-hero-media { order: -1; aspect-ratio: 3 / 2; }
    body.ca-journey .jd-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "side" "main"; }
    body.ca-journey .jd-card { position: static; }
}
@media (max-width: 640px) {
    body.ca-journey .jd-line::before { left: 17px; top: 18px; bottom: 18px; }
    body.ca-journey .jd-stop { grid-template-columns: 36px minmax(0, 1fr); column-gap: .9rem; }
    body.ca-journey .jd .jd-dot { width: 36px; height: 36px; font-size: 13px; }
    body.ca-journey .jd .jd-h3 { font-size: 18px !important; }
    body.ca-journey .jd-stop-body { padding-top: .3rem; }
    body.ca-journey .jd-covers { margin-left: calc(var(--jd-gut) * -1); margin-right: calc(var(--jd-gut) * -1); border-radius: 0; padding-left: var(--jd-gut); padding-right: var(--jd-gut); }
}
body.ca-journey #ca-chat-bubble { display: none !important; }

/* =============================================================================
   m-details 2026-10-08 (S2-2 / S2-3)
   Phones: the other collections are the ux.css swipe rail (momentum, snap, dots); the phone action bar is
   the shared .ui-mbar. Reading: 17px, the measure held near 66 characters a line (33em).
   Desktop 1280+: the day-by-day route gets room: a larger photograph beside each stop, the stop's title
   at display size, the number dot on the rule; the card column a touch wider.
   ============================================================================= */
body.ca-journey .jd-others.ux-snap + .ux-snap-ui { display: none; }
@media (max-width: 640px) {
    body.ca-journey .jd .jd-others.ux-snap { --ux-snap-item: 80%; --ux-snap-gap: 12px; --ux-snap-pad: var(--jd-gut);
        display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--ux-snap-item); gap: var(--ux-snap-gap); overflow-x: auto;
        margin: 0 calc(var(--jd-gut) * -1); padding-top: 0; padding-bottom: .5rem; }
    body.ca-journey .jd-others.ux-snap + .ux-snap-ui { display: flex; margin-top: .25rem; }
    body.ca-journey .jd-other:hover { transform: none; }
}
@media (min-width: 641px) {
    body.ca-journey .jd .jd-others.ux-snap { overflow: visible; padding: 0; scroll-snap-type: none; grid-auto-flow: row; grid-auto-columns: auto; gap: clamp(.9rem, 2vw, 1.5rem); }
}
body.ca-journey .jd-p, body.ca-journey .jd-stop-body .jd-p { max-width: 33em; }
body.ca-journey .jd-content p { font-size: 17px !important; max-width: 33em; }
@media (min-width: 1280px) {
    body.ca-journey .jd-stop { padding-bottom: 3.25rem; }
    /* Stop titles stay Jost 600 like every H3 (UI checklist; the display face is H1/H2 only, qa S2 MED 6). */
    body.ca-journey .jd-stop-media { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
}
