/* Shared opening: the photograph begins at the top edge; all reading follows it. */
body.immersive-article{--opening-height:100svh;position:relative}
body.immersive-article::before{content:"";position:absolute;inset:0 0 auto;height:165px;background:linear-gradient(#0007,#0002 60%,transparent);pointer-events:none;z-index:6}
body.immersive-article>.site-header,body.immersive-article>.masthead,body.immersive-article>.mast,body.immersive-article>.page:has(>.mast){position:absolute;top:0;left:0;right:0;z-index:9;max-width:none;width:100%;margin:0;padding:25px 5vw;background:transparent;border:0;color:#fff}
body.immersive-article>.page>.mast{margin:0;padding:0;max-width:none;border:0;background:transparent;color:#fff}
body.immersive-article :is(.site-header,.masthead,.mast) :is(.logo,.brand){color:#fff;text-decoration:none}
body.immersive-article :is(.site-header,.masthead,.mast) .jiyujin-wordmark{filter:brightness(0) invert(1);width:115px;height:auto}
body.immersive-article :is(.site-header,.masthead,.mast) :is(nav,small,.tagline){color:#fff}
body.immersive-article :is(.site-header,.masthead,.mast) a:hover{color:#fff}
body.immersive-article>.masthead .brand-line{display:none}
body.immersive-article>.story-nav{position:absolute;top:26px;right:5vw;left:auto;z-index:10;margin:0;padding:0;background:none;border:0;color:#fff}
body.immersive-article>.story-nav a{color:inherit}
body.immersive-article>:is(.cms-preview,.trial,.draft-banner,.prototype-label){position:absolute;top:calc(var(--opening-height) - 44px);left:22px;right:auto;z-index:8;width:auto;max-width:calc(100% - 44px);margin:0;padding:5px 10px;border:0;border-radius:2px;color:white;background:#0004;font-size:10px;line-height:1.8}
body.immersive-article>:is(.cms-preview,.trial,.draft-banner,.prototype-label) a{color:white}
body.immersive-article>.mountain-edit-guide{position:absolute;top:92px;left:5vw;z-index:8;max-width:90%;margin:0;padding:0;border:0;background:none;color:#fff;font-size:10px;text-shadow:0 1px 4px #0009}
body.immersive-article #article,body.immersive-article>main.page,body.immersive-article>main#main{max-width:none;width:100%;margin-top:0;padding-top:0}
body.immersive-article #article>article,body.immersive-article>main.page,body.immersive-article.menu-course>main,body.immersive-article .story{display:flex;flex-direction:column}
body.immersive-article .story[hidden]{display:none}
body.immersive-article .article-opening{order:-100;position:relative;display:block;width:100vw;max-width:none;height:var(--opening-height);min-height:0;padding:0;margin:0 calc(50% - 50vw);overflow:hidden;aspect-ratio:auto;background:#26332f}
body.immersive-article .article-opening img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover;object-position:var(--hero-mobile-x,50%) 50%;margin:0;padding:0}
body.immersive-article .article-opening :is(figure,a,.stay-edit-block,.menu-edit-block){width:100%;height:100%;max-width:none;margin:0;padding:0;display:block;aspect-ratio:auto}
body.immersive-article .article-opening figcaption{display:none}
body.immersive-article .article-opening.hero-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
body.immersive-article :is(.article-title,.article-head,.short-head,.course-title){order:-80}
body.immersive-article article>.masthead,body.immersive-article .course-header{order:-90}
body.immersive-article .course-introduction{order:-70}
body.immersive-article .mountain-feature .article-head{display:block;width:calc(100% - 48px);max-width:700px;padding:64px 0 44px;margin-left:auto;margin-right:auto;text-align:left}
body.immersive-article .mountain-feature .article-head :is(h1,.dek,.byline,.mountain-route-name,.mountain-title-facts){margin-left:0;margin-right:0}
body.immersive-article .travel-series{max-width:960px;margin:0 auto;padding:58px 24px 0;text-align:center}
body.immersive-article .travel-series h2{font-size:clamp(22px,2.4vw,34px);line-height:1.6}
body.immersive-article .travel-series p{font-size:13px;margin-top:14px}
body.immersive-article .short-head{max-width:900px;width:calc(100% - 48px);margin:0 auto;padding-top:64px}
@media(max-width:767px){body.immersive-article{--opening-height:90svh}body.immersive-article>.site-header,body.immersive-article>.masthead,body.immersive-article>.mast,body.immersive-article>.page:has(>.mast){padding:22px 24px;align-items:flex-start}body.immersive-article :is(.site-header,.masthead,.mast) .jiyujin-wordmark{width:85px}body.immersive-article :is(.site-header,.masthead,.mast) small{font-size:6px}body.immersive-article>.story-nav{top:25px;right:24px}body.immersive-article :is(.site-header,.masthead,.mast) nav{gap:14px;font-size:10px;flex-wrap:wrap;justify-content:flex-end;max-width:64%}body.immersive-article>.page>.mast .tagline{display:none}body.immersive-article>.mountain-edit-guide{top:80px;font-size:9px}body.immersive-article>:is(.cms-preview,.trial,.draft-banner,.prototype-label){left:14px;max-width:calc(100% - 28px);font-size:9px}body.immersive-article .article-opening.hero-pair{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}body.immersive-article .article-opening.hero-pair>figure{scroll-snap-align:start}body.immersive-article .mountain-feature .article-head{padding:38px 0 32px}body.immersive-article .travel-series{padding:34px 24px 0}body.immersive-article .travel-series h2{font-size:24px}body.immersive-article .travel-series p{font-size:11px}}
@media print{body.immersive-article::before{display:none}body.immersive-article>.site-header,body.immersive-article>.masthead{position:static;color:inherit}body.immersive-article .article-opening{height:auto}body.immersive-article .article-opening img{height:auto!important}body.immersive-article>.story-nav,body.immersive-article>:is(.cms-preview,.trial,.draft-banner,.prototype-label,.mountain-edit-guide){display:none}}
/* Journey stories use the photograph itself, without the stay section's green surround. */
body.immersive-article:is(.journey,.journey-layout) .article-opening{background:var(--paper,#f8f7f2)}
body.immersive-article:is(.journey,.journey-layout) .article-opening img{object-fit:cover}
body.immersive-article.journey article>.masthead .series{color:var(--ink,#242c27)}
