/* The homepage passport and retained demos load these scoped rules. */
.scroll-feature{display:block}
.ebook-section:has(+ .scroll-feature){padding-block:72px}
.scroll-feature .scroll-lab-switch{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 24px;padding:20px var(--gutter);border-block:1px solid #e7e8eb;background:#fafbfc;font:700 13px/1.5 Manrope,Arial,sans-serif}
.scroll-lab-switch>span{width:100%;text-align:center;color:#64656b;font-size:10px;letter-spacing:.14em}
.scroll-lab-switch a{padding:6px 0;border-bottom:2px solid transparent}
.scroll-lab-switch a[aria-current],.scroll-lab-switch a:hover{border-bottom-color:var(--staging-accent);color:#121313}
.scroll-feature .sx-journey{scroll-margin-top:0}
/* Keep the comparison strip and travel block together. No auto margins may
   consume spare viewport height above the country choices. */
.scroll-feature.sx-v3-airline .sx-journey-pin{justify-content:flex-start;padding-block:24px}
.scroll-feature.sx-v3-airline .sx-destination-control{flex:none;align-self:stretch;margin-block:0}
/* End the sticky reading surface at the final chapter's third topic. Keep the
   independent animation distance so unfinished artwork can continue as it leaves. */
.scroll-feature.sx-v3-airline .sx-journey{--sx-reading-distance:1000svh;height:calc(100svh + var(--sx-reading-distance) * var(--sx-release-at,1))}
@media(max-width:760px){.scroll-feature.sx-v3-airline .sx-journey{--sx-reading-distance:1050svh}}
.scroll-feature .scroll-lab-noscript{padding:30px var(--gutter)}
@media(min-width:761px) and (max-width:1100px){
 .scroll-feature .sx-board-row,.scroll-feature .sx-table-head{grid-template-columns:55% 45%}
 .scroll-feature .sx-board-row{padding-block:5px}
 .scroll-feature .sx-board-row .sx-row-label{font-size:12px;padding-right:6px}
 .scroll-feature .sx-board-row .sx-row-context{line-height:1.4}
}
@media(max-width:760px){
 .ebook-section:has(+ .scroll-feature){padding-block:48px}
 .scroll-feature .sx-board-row,.scroll-feature .sx-table-head{grid-template-columns:50% 50%}
 .scroll-feature .sx-board-row{height:62px;min-height:62px;padding:6px 8px}
 .scroll-feature .sx-board-row .sx-row-label{font-size:clamp(12px,3.5vw,14px);padding-right:8px}
 .scroll-feature .sx-board-row .sx-row-context{font-size:9px;line-height:1.5}
 .scroll-feature .scroll-lab-switch{gap:12px 18px;padding-block:16px}
 .scroll-feature.sx-v3-airline .sx-journey-pin{padding-block:16px}
}
@media(max-width:760px) and (max-height:700px){
 .scroll-feature .sx-board-row{height:52px;min-height:52px;padding-block:5px}
 .scroll-feature .sx-board-row .sx-row-label{font-size:12px}
 .scroll-feature .sx-board-row .sx-row-context{font-size:8px}
}
@media(max-width:480px) and (max-height:620px){
 .scroll-feature .sx-board-row{height:44px;min-height:44px;padding-block:3px}
}
@media(max-width:480px) and (max-height:700px){
 .scroll-feature.sx-v5-passport .sx-flight-scene{height:64px}
 .scroll-feature.sx-v5-passport .sx-passport-panel{padding:4px 9px 6px}
 .scroll-feature.sx-v5-passport .sx-passport-caption{min-height:14px;font-size:5px}
 .scroll-feature.sx-v5-passport .sx-passport-page{padding:9px 14px}
 .scroll-feature.sx-v5-passport .sx-page-topline{font-size:6px}
 .scroll-feature.sx-v5-passport .sx-page-stage{font-size:6px;margin:3px 0 4px}
 .scroll-feature.sx-v5-passport .sx-page-title{font-size:17px;line-height:1.08;margin:2px 0 5px}
 .scroll-feature.sx-v5-passport .sx-page-intro{font-size:8px;line-height:1.35;margin-bottom:7px}
 .scroll-feature.sx-v5-passport .sx-passport-stamps{gap:6px}
 .scroll-feature.sx-v5-passport .sx-tax-stamp{padding:5px 9px}
 .scroll-feature.sx-v5-passport .sx-stamp-label{font-size:10px}
 .scroll-feature.sx-v5-passport .sx-stamp-context{font-size:8px;line-height:1.3}
 .scroll-feature.sx-v5-passport .sx-stamp-code{font-size:5px}
 .scroll-feature.sx-v5-passport .sx-page-footline{font-size:6px;padding-top:6px}
 .scroll-feature.sx-v5-passport .sx-cover-country{font-size:18px}
 .scroll-feature.sx-v5-passport .sx-cover-title{font-size:20px}
}
@media(min-width:481px) and (max-width:760px) and (max-height:550px){
 .scroll-feature .sx-board-row{height:36px;min-height:36px;padding:4px 6px}
 .scroll-feature .sx-board-row .sx-row-label{font-size:12px;padding-right:6px}
}
/* Short landscape screens need a compact control row and a bounded reading
   surface, so the board/book cannot cover the destination or stage buttons. */
@media(min-width:481px) and (max-height:550px){
 .scroll-feature.sx-v3-airline .sx-journey-pin{padding:8px 5%}
 /* Keep the comparison strip and travel block together. No auto margins may
   consume spare viewport height above the country choices. */
.scroll-feature.sx-v3-airline .sx-journey-pin{justify-content:flex-start;padding-block:24px}
.scroll-feature.sx-v3-airline .sx-destination-control{flex:none;align-self:stretch;margin-block:0}
 .scroll-feature .sx-destination-control h2{font-size:7px;line-height:1.2}
 .scroll-feature .sx-destination-switch{margin-top:6px;gap:8px}
 .scroll-feature .sx-destination-switch button{min-width:150px;width:auto;font-size:18px;line-height:1.15;padding:6px 16px;gap:12px}
 .scroll-feature .sx-destination-arrow{font-size:22px}
 .scroll-feature .sx-destination-switch img{width:14px;height:14px}
 .scroll-feature.sx-v3-airline .sx-terminal-scene{display:grid;grid-template-columns:minmax(0,36fr) minmax(0,64fr);align-items:stretch;gap:16px;margin-top:8px;max-height:none}
 .scroll-feature.sx-v3-airline .sx-flight-scene{height:100%;width:100%;min-height:0;border:1px solid #c2e0f3;border-radius:3px}
 .scroll-feature .sx-departure-board{--board-pad:16px;align-self:center}
 .scroll-feature .sx-board-header{padding-block:6px}
 .scroll-feature .sx-board-heading{font-size:11px}
 .scroll-feature .sx-board-heading svg{width:16px;height:16px}
 .scroll-feature .sx-board-status{font-size:5px}
 .scroll-feature .sx-board-story{padding:6px 0}
 .scroll-feature .sx-board-stage{font-size:7px;line-height:1.2}
 .scroll-feature .sx-board-story h3{font-size:16px;line-height:1.1;height:auto;min-height:0;margin-top:5px}
 .scroll-feature .sx-board-story>p{font-size:9px;line-height:1.3;height:2.6em;min-height:2.6em;margin-top:4px}
 .scroll-feature .sx-table-head{font-size:5px;padding-bottom:4px;grid-template-columns:55% 45%}
 .scroll-feature .sx-board-row{height:30px;min-height:30px;padding:4px 6px;grid-template-columns:55% 45%}
 .scroll-feature .sx-board-row .sx-row-label{font-size:12px;padding-right:6px}
 .scroll-feature .sx-board-row .sx-row-context{font-size:8px;line-height:1.25;padding-left:4px}
 .scroll-feature .sx-board-action{height:32px;min-height:32px;padding:6px 0}
 .scroll-feature .sx-board-action p,.scroll-feature .sx-board-action a{font-size:8px;line-height:1.3}
 .scroll-feature .sx-action-icon{font-size:18px}
 .scroll-feature.sx-v3-airline .sx-journey-progress{margin-top:8px;gap:8px}
 .scroll-feature.sx-v3-airline .sx-route-tracker .sx-progress-stage{flex-direction:row;min-height:32px;padding:4px 7px 8px;gap:6px}
 .scroll-feature.sx-v3-airline .sx-progress-stage .sx-stage-label{font-size:9px}
 .scroll-feature.sx-v3-airline .sx-progress-stage .sx-stage-number{width:16px;height:16px;font-size:7px}
 .scroll-feature .sx-journey-hint{padding-top:5px;margin-bottom:0;font-size:6px}
 .scroll-feature.sx-v5-passport .sx-passport-panel{padding:4px 8px}
 .scroll-feature.sx-v5-passport .sx-passport-caption{min-height:14px;font-size:5px}
 .scroll-feature.sx-v5-passport .sx-passport-stage{padding:2px 0}
 .scroll-feature.sx-v5-passport .sx-passport-page{padding:8px}
 .scroll-feature.sx-v5-passport .sx-page-topline{font-size:5px}
 .scroll-feature.sx-v5-passport .sx-page-stage{font-size:6px;margin:2px 0 4px}
 .scroll-feature.sx-v5-passport .sx-page-title{font-size:14px;margin:2px 0 4px}
 .scroll-feature.sx-v5-passport .sx-page-intro{font-size:7px;line-height:1.3;margin-bottom:4px}
 .scroll-feature.sx-v5-passport .sx-passport-stamps{gap:4px;margin-block:4px}
 .scroll-feature.sx-v5-passport .sx-tax-stamp{padding:3px 5px}
 .scroll-feature.sx-v5-passport .sx-stamp-label{font-size:8px;line-height:1.15}
 .scroll-feature.sx-v5-passport .sx-stamp-context{font-size:6px;line-height:1.2;margin-top:2px}
 .scroll-feature.sx-v5-passport .sx-stamp-code{font-size:4px}
 .scroll-feature.sx-v5-passport .sx-page-footline{padding-top:4px;font-size:5px}
}

/* Restored handoff typography, with larger explanations and simpler controls. */
.scroll-feature .sx-board-row .sx-row-label{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.025em;line-height:1.55}
.scroll-feature .sx-board-row .sx-row-context{font-family:var(--mono);font-size:14px;line-height:1.45;letter-spacing:0}
.scroll-feature .sx-board-row{height:58px;min-height:58px;padding:8px 10px}
.scroll-feature .sx-board-heading{gap:14px}
.scroll-feature .sx-board-heading .sx-departures-icon{display:block;flex:none;width:44px;height:37px;object-fit:contain;border-radius:2px}
.scroll-feature .sx-board-header{padding-block:12px}
.scroll-feature .sx-board-action{gap:0}
.scroll-feature .sx-destination-heading{display:flex;align-items:center;justify-content:center;gap:12px}
.scroll-feature .sx-destination-heading h2{margin:0}
.scroll-feature .sx-motion-control{display:flex;justify-content:center;margin:0}
.scroll-feature .sx-motion-control button{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 0;border:0;border-radius:0;background:transparent;color:#73767b;font:500 9px/1.4 var(--body);text-decoration:underline;text-underline-offset:2px}
.scroll-feature .sx-motion-control button[aria-pressed="true"]{color:#4f5359;text-decoration-thickness:2px}
.scroll-feature.sx-v5-passport .sx-stamp-context{font-size:12px;line-height:1.4}
.scroll-feature.sx-v5-passport .sx-page-footline:empty{display:none}
.scroll-feature .sx-journey-progress{margin-bottom:8px}
@media(min-width:761px) and (max-height:700px){
 .scroll-feature.sx-v3-airline .sx-journey-pin{padding-block:12px}
 .scroll-feature .sx-board-row{height:46px;min-height:46px;padding:6px 8px}
 .scroll-feature .sx-board-row .sx-row-context{font-size:12px;line-height:1.35}
 .scroll-feature .sx-board-row .sx-row-label{font-size:11px}
 .scroll-feature .sx-board-heading .sx-departures-icon{width:32px;height:27px}
 .scroll-feature .sx-board-header{padding-block:8px}
 .scroll-feature .sx-board-story{padding-block:10px}
 .scroll-feature .sx-board-story>p{min-height:0;height:auto}
}
@media(max-width:760px){
 .scroll-feature .sx-board-row .sx-row-label{font-size:11px}
 .scroll-feature .sx-board-row .sx-row-context{font-size:12px;line-height:1.4}
 .scroll-feature .sx-board-heading .sx-departures-icon{width:36px;height:30px}
 .scroll-feature.sx-v5-passport .sx-flight-scene{height:80px}
 .scroll-feature.sx-v5-passport .sx-tax-stamp{padding-block:6px}
 .scroll-feature.sx-v5-passport .sx-stamp-context{font-size:12px;line-height:1.35}
}
@media(max-width:480px){
 .scroll-feature .sx-board-row{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;align-content:center;height:66px;min-height:66px;padding:5px 10px}
 .scroll-feature .sx-board-row .sx-row-label,.scroll-feature .sx-board-row .sx-row-context{padding:0}
 .scroll-feature .sx-table-head{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .scroll-feature .sx-board-story h3{font-size:20px;line-height:1.12;min-height:2.24em;height:auto;margin-top:6px}
 .scroll-feature .sx-board-story{padding-block:12px}
 .scroll-feature .sx-board-story>p{font-size:10px;line-height:1.5;min-height:3em;height:auto;margin-top:6px}
 .scroll-feature .sx-board-action p,.scroll-feature .sx-board-action a{font-size:12px;line-height:1.4}
 .scroll-feature .sx-board-action{height:auto;min-height:44px;padding-block:8px}
 .scroll-feature .sx-progress-stage .sx-stage-label{font-size:9px}
}
@media(max-width:480px) and (max-height:700px){
 .scroll-feature.sx-v3-airline .sx-journey-pin{padding:12px 6%}
 .scroll-feature .sx-board-row{height:62px;min-height:62px;padding-block:3px}
 .scroll-feature .sx-board-header{padding-block:4px}
 .scroll-feature .sx-board-heading .sx-departures-icon{width:28px;height:24px}
 .scroll-feature .sx-board-story{padding-block:7px}
 .scroll-feature .sx-board-story h3{font-size:18px}
 .scroll-feature.sx-v3-airline .sx-flight-scene{min-height:48px}
 .scroll-feature.sx-v5-passport .sx-flight-scene{height:48px;min-height:48px}
 .scroll-feature .sx-destination-control h2{font-size:8px;line-height:1.3}
 .scroll-feature .sx-destination-switch{margin-top:8px}
 .scroll-feature .sx-destination-switch button{font-size:20px;line-height:1.15;padding:8px 12px}
 .scroll-feature .sx-destination-arrow{font-size:24px}
 .scroll-feature .sx-route-tracker .sx-progress-stage{min-height:46px;padding:5px 4px 9px;gap:3px}
 .scroll-feature.sx-v5-passport .sx-stamp-label{font-size:10px}
 .scroll-feature.sx-v5-passport .sx-stamp-context{font-size:12px;line-height:1.3}
 .scroll-feature.sx-v5-passport .sx-passport-stamps{gap:5px}
 .scroll-feature.sx-v5-passport .sx-tax-stamp{padding:4px 8px}
}
@media(min-width:481px) and (max-height:550px){
 .scroll-feature.sx-v3-airline .sx-terminal-scene{grid-template-columns:minmax(0,32fr) minmax(0,68fr)}
 .scroll-feature .sx-board-header{padding-block:3px}
 .scroll-feature .sx-board-heading .sx-departures-icon{width:28px;height:23px}
 .scroll-feature .sx-board-row,.scroll-feature .sx-table-head{grid-template-columns:36% 64%}
 .scroll-feature .sx-board-row{height:32px;min-height:32px;padding:4px 6px}
 .scroll-feature .sx-board-row .sx-row-label{font-size:10px;line-height:1.4;padding-right:6px}
 .scroll-feature .sx-board-row .sx-row-context{font-size:12px;line-height:1.3;padding-left:4px}
 .scroll-feature .sx-board-story>p{height:auto;min-height:0}
 .scroll-feature .sx-board-story{padding-block:4px}
 .scroll-feature .sx-board-action p,.scroll-feature .sx-board-action a{font-size:10px}
 .scroll-feature.sx-v5-passport .sx-stamp-context{font-size:10px;line-height:1.3}
 .scroll-feature.sx-v5-passport .sx-tax-stamp{padding:1px 5px}
 .scroll-feature.sx-v5-passport .sx-passport-page{padding:6px}
 .scroll-feature.sx-v5-passport .sx-passport-stamps{gap:3px;margin-block:3px}
 .scroll-feature.sx-v5-passport .sx-page-topline{padding-bottom:4px}
 .scroll-feature.sx-v5-passport .sx-inside-cover{padding:8px;gap:8px}
 .scroll-feature.sx-v5-passport .sx-leaf-back[data-left-page]{padding:8px;gap:6px}
 .scroll-feature.sx-v5-passport .sx-travel-seal{width:68px;height:68px;padding:10px;font-size:7px}
 .scroll-feature.sx-v5-passport .sx-left-page-title{font-size:14px}
 .scroll-feature.sx-v5-passport .sx-left-page-note{font-size:8px;line-height:1.35}
}

/* One country-choice design for desktop and mobile, with explicit destinations. */
.scroll-feature.sx-v3-airline .sx-destination-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,500px);gap:12px;margin:12px auto 0}
.scroll-feature .sx-destination-option{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0}
.scroll-feature .sx-destination-label{color:var(--muted);font:700 10px/1.3 var(--body);letter-spacing:.12em;text-align:center}
.scroll-feature.sx-v3-airline .sx-destination-switch button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;max-width:none;min-height:60px;gap:14px;padding:10px 18px;font-size:29px;line-height:1.2}
.scroll-feature.sx-v3-airline .sx-destination-arrow{display:block;flex:none;font-size:34px;line-height:1}
.scroll-feature.sx-v3-airline .sx-destination-switch img{display:block;flex:none;width:22px;height:22px;aspect-ratio:1;object-fit:contain;border-radius:50%}
@media(max-width:760px){
 .scroll-feature.sx-v3-airline .sx-destination-switch{width:min(100%,460px);gap:8px;margin-top:9px}
 .scroll-feature .sx-destination-label{display:block;font-size:11px;letter-spacing:.1em}
 .scroll-feature.sx-v3-airline .sx-destination-switch button{min-height:56px;gap:8px;padding:8px;font-size:clamp(18px,5.5vw,23px)}
 .scroll-feature.sx-v3-airline .sx-destination-arrow{font-size:30px}
 .scroll-feature.sx-v3-airline .sx-destination-switch img{width:24px;height:24px}
}
@media(max-width:360px){
 .scroll-feature.sx-v3-airline .sx-destination-switch button{gap:5px;padding-inline:5px;font-size:18px}
 .scroll-feature.sx-v3-airline .sx-destination-arrow{font-size:26px}
 .scroll-feature.sx-v3-airline .sx-destination-switch img{width:20px;height:20px}
}
@media(max-height:700px){
 .scroll-feature .sx-destination-option{gap:3px}
 .scroll-feature .sx-destination-label{font-size:10px}
 .scroll-feature.sx-v3-airline .sx-destination-switch{margin-top:6px}
 .scroll-feature.sx-v3-airline .sx-destination-switch button{min-height:44px;padding-block:5px}
}

@media(min-width:481px) and (max-height:550px){
 .scroll-feature.sx-v3-airline .sx-destination-switch button{font-size:18px;min-height:36px;gap:10px;padding:4px 12px}
 .scroll-feature.sx-v3-airline .sx-destination-arrow{font-size:24px}
 .scroll-feature.sx-v3-airline .sx-destination-switch img{width:22px;height:22px}
}

/* A paper bookmark makes the cover's destination explicit. It turns with
   the cover, so it cannot obscure the planning pages underneath. */
.scroll-feature.sx-v5-passport .sx-cover-bookmark{position:absolute;z-index:2;top:0;right:14px;display:flex;flex-direction:column;align-items:center;gap:3px;width:104px;padding:10px 7px 18px;color:#302a1c;background:linear-gradient(100deg,#ddc78e,#f2e3b7 45%,#e8d49e);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 8px),0 100%);font:700 9px/1.25 var(--body);letter-spacing:.07em;text-align:center;text-shadow:none}
.scroll-feature.sx-v5-passport .sx-cover-destination{font:800 12px/1.2 var(--body);letter-spacing:.07em;white-space:nowrap}
@media(min-width:481px) and (max-height:550px){
 .scroll-feature.sx-v5-passport .sx-cover-bookmark{right:8px;width:88px;gap:2px;padding:6px 5px 13px;font-size:8px}
 .scroll-feature.sx-v5-passport .sx-cover-destination{font-size:10px}
}

/* Simplified passport interiors: one left-page thought, a quiet corner seal,
   and only the stage, headline and planning cards on each right page. */
.scroll-feature.sx-v5-passport .sx-leaf-face[data-left-page]{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:24px 22px}
.scroll-feature.sx-v5-passport [data-left-page] .sx-left-page-title{max-width:220px;margin:40px 0 0;text-align:center}
.scroll-feature.sx-v5-passport [data-left-page] .sx-left-page-note{max-width:220px;margin:0;text-align:center;line-height:1.6}
.scroll-feature.sx-v5-passport [data-left-page] .sx-travel-seal{position:absolute;left:22px;bottom:24px;opacity:.4}
.scroll-feature.sx-v5-passport .sx-page-stage{margin:0 0 8px}
.scroll-feature.sx-v5-passport .sx-page-title{margin:0 0 8px}
.scroll-feature.sx-v5-passport .sx-stamp-label{padding-right:0}
@media(min-width:481px) and (max-height:550px){
 .scroll-feature.sx-v5-passport .sx-leaf-face[data-left-page]{padding:12px;gap:8px}
 .scroll-feature.sx-v5-passport [data-left-page] .sx-left-page-title{margin-top:8px}
 .scroll-feature.sx-v5-passport [data-left-page] .sx-travel-seal{left:12px;bottom:12px}
 .scroll-feature.sx-v5-passport .sx-page-stage{margin-bottom:4px}
 .scroll-feature.sx-v5-passport .sx-page-title{margin-bottom:4px}
}

/* Checked cards keep their dry-ink marks until the reader scrolls back. */
.scroll-feature.sx-v5-passport .sx-passport-stamps{grid-template-columns:minmax(0,1fr);gap:16px}
.scroll-feature.sx-v5-passport .sx-tax-stamp{width:96%;justify-self:start;padding-right:calc(24% + 14px)}
.scroll-feature.sx-v5-passport .sx-tax-stamp[data-topic-index="1"]{width:93%;margin-left:3%}
.scroll-feature.sx-v5-passport .sx-tax-stamp[data-topic-index="2"]{width:94%;margin-left:1%}
.scroll-feature.sx-v5-passport .sx-tax-stamp[data-topic-index="3"]{width:96%;margin-left:2%}
.scroll-feature.sx-v5-passport .sx-tax-stamp::before{content:"";position:absolute;z-index:2;right:8px;top:50%;width:24%;min-width:26px;max-width:72px;height:72%;min-height:24px;max-height:72px;background:url('/assets/scroll-lab/art/green-check-stamp.svg') center/contain no-repeat;transform:translateY(-50%) rotate(-7deg);visibility:hidden;pointer-events:none;animation:none;transition:none}
.scroll-feature.sx-v5-passport .sx-tax-stamp[data-checked="true"]::before{visibility:visible}
@media(max-width:760px){.scroll-feature.sx-v5-passport .sx-tax-stamp{--sx-check-size:34px;padding-right:calc(var(--sx-check-size) + 18px)}}
@media(min-width:481px) and (max-height:550px){.scroll-feature.sx-v5-passport .sx-tax-stamp{--sx-check-size:26px;padding-right:calc(var(--sx-check-size) + 16px)}}
@media(min-width:1350px){.scroll-feature.sx-v5-passport .sx-tax-stamp{min-height:0;padding-block:7px}}

/* Keep a complete spread on phones: topics 1–2 on the left, 3–4 on the
   right. The controller moves the actual cards, preserving their indices. */
.scroll-feature.sx-v5-passport .sx-spread-heading{flex:none}
.scroll-feature.sx-v5-passport [data-left-page]>.sx-spread-heading{display:flex;flex-direction:column;align-items:center;gap:12px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-journey-pin{height:100svh;padding:12px 4%}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-terminal-scene{display:flex;flex-direction:column;gap:0;flex:1;min-height:0;max-height:none;margin-top:8px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-flight-scene{flex:none;width:100%;height:clamp(48px,10svh,88px);min-height:0;max-height:none}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-panel{width:100%;height:auto;flex:1;min-height:0;padding:6px 6px 9px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-caption{min-height:20px;font-size:7px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-stage{position:relative;display:block;flex:1;min-height:0;padding:5px 0 0}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-book{position:absolute;left:0;top:5px;width:100%;height:calc(100% - 5px);max-height:none;transform:translateX(var(--book-shift))}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-page,
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-leaf-face[data-left-page]{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:14px 9px 10px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-inside-cover::after{display:none}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-spread-heading{height:106px;justify-content:flex-start;gap:8px}
.scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page] .sx-left-page-title{font-size:19px;line-height:1.12;margin:0;max-width:none;text-align:left}
.scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page] .sx-left-page-note{font-size:11px;line-height:1.4;max-width:none;text-align:left}
.scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page] .sx-travel-seal{display:none}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-page-stage{font-size:8px;line-height:1.3;letter-spacing:.02em;margin:0 0 7px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-page-title{font-size:19px;line-height:1.1;margin:0;overflow-wrap:normal}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-stamps{width:100%;flex:1;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(min-content,.9fr) minmax(min-content,1.1fr);gap:24px;margin:10px 0 0}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-page:not([data-left-page])>.sx-passport-stamps{grid-template-rows:minmax(min-content,1.1fr) minmax(min-content,.9fr);margin-top:20px}
.scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page]:not([data-left-page="0"])>.sx-passport-stamps{margin-top:clamp(16px,8svh,72px)}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-tax-stamp{min-height:0;padding:9px 8px;justify-content:flex-start}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-stamp-label{font-size:11px;line-height:1.25;letter-spacing:0;padding:0}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-stamp-context{font-size:12px;line-height:1.3;margin-top:5px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-tax-stamp::before{position:static;order:3;align-self:flex-end;flex:none;width:clamp(26px,24%,72px);height:auto;min-height:0;max-height:none;aspect-ratio:1;margin-top:auto;transform:rotate(-7deg)}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-page-footline{padding-top:6px;margin-top:6px;font-size:8px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-cover-country{font-size:13px;letter-spacing:.1em}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-cover-title{font-size:18px;letter-spacing:.08em}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-cover-subtitle{font-size:7px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-cover{padding:70px 8px 16px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-cover-emblem{margin:22px 0 18px;transform:scale(.7)}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-cover-bookmark{right:8px;width:86px;font-size:8px;padding:8px 5px 14px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-cover-destination{font-size:10px}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-journey-progress{flex:none;margin:10px auto 0}
@media(max-height:700px){
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-flight-scene{height:48px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-spread-heading{height:100px}
}
@media(min-width:481px) and (max-height:550px){
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-journey-pin{padding:8px 3%}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-terminal-scene{display:grid;grid-template-columns:minmax(0,26fr) minmax(0,74fr);gap:12px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-flight-scene{height:100%;min-height:0}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-panel{height:100%;padding:4px 6px 8px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-page,
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-leaf-face[data-left-page]{padding:8px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-spread-heading{height:58px;gap:4px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page] .sx-left-page-title,
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-page-title{font-size:17px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page] .sx-left-page-note{font-size:10px;line-height:1.3}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-stamps{gap:18px;margin-top:5px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-page:not([data-left-page])>.sx-passport-stamps{margin-top:10px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-tax-stamp{padding:6px calc(24% + 10px) 6px 8px;justify-content:center}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-tax-stamp::before{position:absolute;top:50%;right:6px;bottom:auto;width:24%;height:72%;min-height:22px;max-height:54px;margin:0;transform:translateY(-50%) rotate(-7deg)}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-stamp-context{font-size:11px;line-height:1.25;margin-top:3px}
}
@media(max-width:480px) and (max-height:620px){
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-journey-pin{padding:8px 3%}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-flight-scene{height:32px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-panel{padding-block:4px 7px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-caption{min-height:14px;font-size:6px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-page,
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-leaf-face[data-left-page]{padding:9px 8px 8px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-spread-heading{height:90px;gap:6px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page] .sx-left-page-title,
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-page-title{font-size:17px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread [data-left-page] .sx-left-page-note{font-size:10px;line-height:1.3}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-stamps{gap:12px;margin-top:6px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-page:not([data-left-page])>.sx-passport-stamps{margin-top:14px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-tax-stamp{padding:7px 6px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-stamp-label{font-size:10px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-stamp-context{font-size:11px;line-height:1.25;margin-top:3px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-journey-progress{margin-top:6px}
 .scroll-feature.sx-v5-passport.sx-mobile-spread .sx-progress-stage{min-height:44px;padding-bottom:7px}
}

/* Phones and tablets give the entire reading surface to the passport.
   Keep the flight composition alongside it only at desktop widths. */
@media(max-width:1200px){
 .scroll-feature.sx-v5-passport .sx-terminal-scene>.sx-flight-scene{display:none}
 .scroll-feature.sx-v5-passport .sx-journey-pin .sx-terminal-scene{display:flex;flex-direction:column;gap:0;max-height:none}
 .scroll-feature.sx-v5-passport .sx-terminal-scene>.sx-passport-panel{width:100%;height:auto;flex:1;min-height:0}
 .scroll-feature.sx-v5-passport:not(.sx-mobile-spread) .sx-passport-book{width:min(100%,960px);max-height:680px}
}

/* Share unused viewport space above and below the journey. A matching blank
   caption row below the book keeps the spread centred inside its panel too. */
.scroll-feature.sx-v5-passport .sx-journey-pin{justify-content:center}
.scroll-feature.sx-v5-passport .sx-journey-progress{margin-bottom:0}
.scroll-feature.sx-v5-passport:not(.sx-mobile-spread) .sx-passport-panel{display:grid;grid-template-rows:20px minmax(0,1fr) 20px;padding-block:12px}
.scroll-feature.sx-v5-passport:not(.sx-mobile-spread) .sx-passport-stage{padding-block:8px}

/* A tall, narrow viewport must not stretch the paper or its planning cards.
   The flex layout can still shrink below these caps on shorter screens. */
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-journey-pin .sx-terminal-scene{max-height:clamp(440px,135vw,560px)}
.scroll-feature.sx-v5-passport.sx-mobile-spread .sx-passport-book{max-height:520px}
