/* Shared responsive and colour corrections for every production invitation. */
body.journey-mode #journeyApp{min-width:0}
.journey-mode #journeyApp :is(h1,h2,h3,p,a,button,strong){overflow-wrap:anywhere}
.journey-mode #journeyApp :is(figure,img){min-width:0;max-width:100%}
/* Keep readable, matched surfaces when any palette is applied. */
body[data-flow=abroad] .flow-hero-copy,body[data-flow=abroad] .flow-flight-card,body[data-flow=abroad] .flow-chapter-copy{background:var(--flow-paper);color:var(--flow-ink);border-color:var(--flow-gold)}
body[data-flow=editorial] .flow-chapter .flow-kicker{color:var(--flow-gold)}
body[data-flow=coastal] .flow-chapter-photo,body[data-flow=coastal] .flow-gallery figure{background:var(--flow-paper);border-color:var(--flow-paper)}
body[data-flow=coastal] .flow-chapter-photo figcaption{color:var(--flow-ink);background:var(--flow-paper);text-shadow:none}
body[data-flow=coastal] .flow-hero-copy{background:var(--flow-paper);color:var(--flow-ink);padding:32px;border:1px solid var(--flow-gold);border-radius:4px}
body.scroll-journey-mode .sj-header,body.scroll-journey-mode .sj-header a{color:var(--sj-ink)}
body.scroll-journey-mode .sj-node,body.scroll-journey-mode .sj-stage.is-current .sj-node,body.scroll-journey-mode .sj-stage.is-complete .sj-node{background:var(--sj-paper);color:var(--sj-ink)}
body.scroll-journey-mode .sj-stage.is-current .sj-node{background:var(--sj-ink);color:var(--sj-paper)}
body.scroll-journey-mode .sj-stage .sj-eyebrow{color:var(--sj-gold)}
body.scroll-journey-mode .sj-stage-content{background:var(--sj-paper);color:var(--sj-ink)}
body.modern-invitation-mode.full-journey-concept[data-concept=abroad] .concept-journey .concept-chapter{--c-paper:var(--modern-paper);--c-ink:var(--modern-ink);--c-accent:var(--modern-accent)}
body.modern-invitation-mode.full-journey-concept[data-concept=abroad] .chapter-content{--c-paper:var(--modern-ink);--c-ink:var(--modern-paper);--c-accent:var(--modern-paper)}
body.modern-invitation-mode .timeline-section-label .concept-kicker>span{opacity:1}
/* Text over photographs has its own stable contrast surface. */
.scroll-story-mode .flow-photo figcaption{left:12px;right:12px;bottom:12px;width:fit-content;max-width:calc(100% - 24px);padding:5px 8px;background:#122620e8;color:#fffaf0;text-shadow:none;border-radius:3px;font-size:10px;line-height:1.5}
body[data-flow=coastal] .flow-chapter-photo figcaption{left:0;right:0;bottom:-34px;max-width:100%;font-size:10px;padding:4px}
.scroll-story-mode .flow-hero-photo .flow-photo figcaption{display:none}
.scroll-story-mode .flow-hero-photo .flow-photo:after{background:linear-gradient(0deg,#0b2224d9,#0b2224a6)}
body.scroll-journey-mode .sj-hero:after{background:linear-gradient(0deg,#0b2224d9,#0b2224a6)}
body.scroll-journey-mode .sj-scene-label,body.scroll-journey-mode .sj-photo-caption{background:#122620e8;color:#fffaf0;padding:8px 12px;border-radius:3px}
body.modern-invitation-mode[data-concept] .hero-shade{background:linear-gradient(0deg,#0b2224e8,#0b2224a6)}
/* Typographic scale stays bounded on ultrawide screens as well as phones. */
body.scroll-story-mode .flow-hero h1,body.scroll-journey-mode .sj-hero h1{font-size:clamp(48px,6vw,88px);line-height:1.05;max-width:900px}
body.scroll-story-mode .flow-chapter h2,body.scroll-journey-mode .sj-stage h2{font-size:clamp(32px,3.7vw,52px);line-height:1.15}
body.scroll-story-mode .flow-chapter h3,body.scroll-journey-mode .sj-stage h3{font-size:clamp(22px,2.3vw,30px);line-height:1.3}
body.scroll-story-mode .flow-lead{font-size:21px;line-height:1.7}
body.scroll-story-mode .flow-chapter p:not(.flow-lead):not(.flow-kicker),body.scroll-journey-mode .sj-stage p:not(.sj-lead):not(.sj-eyebrow){font-size:14px;line-height:1.85}
body.scroll-story-mode .flow-hero-message{font-size:22px;line-height:1.6;max-width:640px}
body.scroll-story-mode .flow-chapter{min-height:500px;padding-block:70px}
body[data-flow=inland] .flow-journey{overflow:clip}
body.scroll-story-mode .flow-chapter .flow-chapter-photo{height:clamp(300px,34vw,480px)}
body.scroll-story-mode .flow-gallery img{height:310px}
body.scroll-story-mode .flow-header>span{max-width:calc(100% - 150px)}
body.scroll-journey-mode .sj-header>a{max-width:calc(100% - 300px);overflow-wrap:anywhere}
/* An auto-height hero prevents client copy from being clipped by the header. */
body.modern-invitation-mode .concept-hero{display:grid;align-items:end;min-height:clamp(540px,82svh,820px);height:auto;padding:130px max(6vw,28px) 70px}
body.modern-invitation-mode .hero-type{position:relative;left:auto;right:auto;bottom:auto;max-width:1000px;width:100%;min-width:0}
body.modern-invitation-mode[data-concept] .hero-type h1,body.modern-invitation-mode[data-concept=church] .hero-type h1{font-size:clamp(44px,5.4vw,80px);line-height:1.08;letter-spacing:-.05em;margin:20px 0;overflow-wrap:anywhere}
body.modern-invitation-mode .modern-hero-message{font:500 clamp(18px,1.6vw,24px)/1.65 var(--c-sans);max-width:650px;margin:22px 0}
body.modern-invitation-mode .hero-meta{top:30px;left:6vw;right:6vw;flex-wrap:wrap;gap:12px}
body.modern-invitation-mode[data-concept=abroad] .hero-type{bottom:auto}
body.modern-invitation-mode[data-concept=church] .concept-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:55px;align-items:center}
body.modern-invitation-mode[data-concept=church] .hero-type{grid-column:1;grid-row:1;position:relative;left:auto;right:auto;bottom:auto;width:100%;max-width:100%}
body.modern-invitation-mode[data-concept=church] .concept-hero-photo{position:relative;grid-column:2;grid-row:1;inset:auto;width:100%;height:clamp(320px,46svh,470px);max-height:none;z-index:0}
body.modern-invitation-mode[data-concept=church] .hero-type .concept-kicker{max-width:100%}
body.modern-invitation-mode.full-journey-concept .concept-journey :is(.timeline-section,.chapter-copy) h2{font-size:clamp(32px,3.6vw,52px);line-height:1.18;letter-spacing:-.045em}
body.modern-invitation-mode.full-journey-concept :is([data-concept]) .chapter-photograph{max-height:480px}
body.modern-invitation-mode.full-journey-concept .concept-journey .chapter-photograph{height:clamp(300px,34vw,480px);max-height:480px}
body.modern-invitation-mode.full-journey-concept .concept-journey .concept-photo-grid img{height:310px}
body.modern-invitation-mode.full-journey-concept .concept-journey .timeline-section{padding-block:70px;min-height:0}
body.modern-invitation-mode .dancing-card{padding:45px}
.journey-mode .music-dock{max-width:calc(100vw - 28px)}
.journey-mode :is(.player-panel,dialog:not(.ec-opening)){max-width:calc(100vw - 28px)}
.journey-mode :is(.flow-primary,.concept-solid-button,.sj-button){white-space:normal;line-height:1.6;max-width:100%}
@media(min-width:761px) and (max-width:1100px){
 body.scroll-story-mode .flow-chapter:has(.flow-chapter-photo){display:block}
 body.scroll-story-mode .flow-chapter .flow-chapter-photo{max-width:620px;width:100%;margin:30px 0}
 body.modern-invitation-mode .chapter-content{gap:30px}
 body.modern-invitation-mode .dancing-card{padding:30px}
 body.modern-invitation-mode[data-concept=church] .concept-hero{gap:30px}
}
@media(max-width:760px){
 body.journey-mode dialog:not(.ec-opening) h2{font-size:clamp(26px,7vw,34px);line-height:1.2}
 body.scroll-story-mode .flow-hero h1,body.scroll-journey-mode .sj-hero h1{font-size:clamp(34px,10.5vw,46px);line-height:1.12}
 body.scroll-story-mode .flow-hero-message{font-size:19px;line-height:1.6}
 body.scroll-story-mode .flow-hero{min-height:0;padding-block:65px}
 body.scroll-story-mode .flow-chapter h2,body.scroll-journey-mode .sj-stage h2{font-size:clamp(27px,7.4vw,34px)}
 body.scroll-story-mode .flow-chapter h3,body.scroll-journey-mode .sj-stage h3{font-size:23px}
 body.scroll-story-mode .flow-lead{font-size:19px;line-height:1.7}
 body.scroll-story-mode .flow-chapter{padding-block:55px;min-height:0}
 body.scroll-story-mode .flow-chapter .flow-chapter-photo{height:clamp(240px,78vw,320px);max-height:320px;max-width:100%}
 body.scroll-story-mode .flow-gallery img{height:280px}
 body[data-flow=classic] .flow-hero-photo{height:300px}
 body[data-flow=coastal] .flow-chapter .flow-chapter-photo{max-width:calc(100% - 16px)}
 body[data-flow=abroad] .flow-flight-card{height:auto;min-height:105px;grid-template-rows:65px auto}
 body[data-flow=abroad] .flow-flight-map{height:65px}
 body[data-flow=abroad] .flow-flight-caption{align-items:start}
 body[data-flow=abroad] .flow-flight-caption strong{white-space:normal;overflow:visible;text-overflow:clip;font-size:16px;line-height:1.35}
 body.scroll-story-mode .flow-header>span{font-size:20px;max-width:calc(100% - 115px)}
 body.scroll-journey-mode .sj-header>a{max-width:calc(100% - 130px);font-size:20px}
 body.scroll-journey-mode .sj-stage{min-height:0;padding-block:55px}
 body.scroll-journey-mode .sj-active-label{font-size:25px}
 body.scroll-journey-mode .sj-scene-label{bottom:40px;padding:5px 8px}
 body.scroll-journey-mode .sj-photo-caption{font-size:9px;bottom:8px;padding:4px 8px}
 body.modern-invitation-mode .concept-hero{min-height:620px;min-height:min(780px,88svh);padding:105px 27px 55px}
 body.modern-invitation-mode[data-concept] .hero-type h1,body.modern-invitation-mode[data-concept=church] .hero-type h1{font-size:clamp(32px,10vw,46px);line-height:1.12}
 body.modern-invitation-mode .modern-hero-message{font-size:18px;line-height:1.65;margin-block:18px}
 body.modern-invitation-mode .hero-meta{left:27px;right:27px;top:25px;font-size:10px}
 body.modern-invitation-mode[data-concept=church] .concept-hero{display:flex;flex-direction:column;gap:30px;padding:85px 27px 45px;min-height:0}
 body.modern-invitation-mode[data-concept=church] .concept-hero-photo{width:86%;height:300px;flex-shrink:0}
 body.modern-invitation-mode[data-concept=church] .hero-type{width:100%;left:auto;bottom:auto}
 body.modern-invitation-mode.full-journey-concept .concept-journey :is(.timeline-section,.chapter-copy) h2{font-size:clamp(27px,7.4vw,34px);line-height:1.2}
 body.modern-invitation-mode.full-journey-concept .concept-journey .timeline-section{padding-block:52px}
 body.modern-invitation-mode.full-journey-concept .concept-journey .chapter-photograph{height:clamp(240px,78vw,320px);max-height:320px}
 body.modern-invitation-mode.full-journey-concept .concept-journey .concept-photo-grid img{height:280px}
 body.modern-invitation-mode .dancing-card{padding:28px 22px}
 body.modern-invitation-mode .gift-card{padding:30px 22px}
 body.modern-invitation-mode .concept-signature{font-size:34px}
 .journey-mode :is(.flow-primary,.concept-solid-button,.sj-button){min-height:46px;padding:13px 18px}
}
@media(max-width:360px){
 body.modern-invitation-mode .concept-hero{padding-inline:22px}
 body.modern-invitation-mode .hero-meta{left:22px;right:22px}
 body.scroll-story-mode .flow-journey{padding-right:16px}
 body.modern-invitation-mode .concept-journey{padding-right:18px}
}

/* Paint the rail below the opaque stops, and the moving icon above them. */
body.modern-invitation-mode .full-timeline{z-index:auto}
body.modern-invitation-mode .full-timeline-base,body.modern-invitation-mode .full-timeline-fill{z-index:1}
body.modern-invitation-mode .timeline-stop{z-index:4}
body.modern-invitation-mode .full-timeline-traveller{z-index:6}

/* Keep the persistent music dock on the same readable palette surface. */
body.journey-mode .music-dock{--white:var(--paper);--muted:var(--ink);--line:color-mix(in srgb,var(--ink) 25%,transparent)}
body.journey-mode .music-dock .music-toggle,body.journey-mode .music-dock .player-panel{background:var(--paper);color:var(--ink);border-color:var(--gold)}
body.journey-mode .music-dock .music-toggle:hover{background:var(--paper)}

body.journey-mode .music-dock .player-panel p,body.journey-mode .music-dock .player-panel a{font-size:12px;line-height:1.6;color:var(--ink)}
body.journey-mode .music-dock .player-panel .eyebrow{font-size:10px;color:var(--olive)}
body.journey-mode .music-dock .player-panel label,body.journey-mode .music-dock .music-times{font-size:12px;color:var(--ink)}
body.journey-mode .music-dock .player-play{width:44px;height:44px}
body.journey-mode .music-dock .music-label{font-size:12px}
