/* ZNJ Inner Home-Experience v2 — authoritative visual layout.
 * Full-height sheets between header and bottom dock, as on the homepage.
 * Use native document flow for long sections, never clip content or CTA.
 */
body.znj-inner-scroll-enabled{
 --znj-inner-head:88px;--znj-inner-dock:0px;
 --znj-inner-room:max(280px,calc(100svh - var(--znj-inner-head) - var(--znj-inner-dock)));
}
body.znj-inner-scroll-enabled #main,
body.znj-inner-scroll-enabled #main>.zm,
body.znj-inner-scroll-enabled .portal-main,
body.znj-inner-scroll-enabled .znj-market-discovery,
body.znj-inner-scroll-enabled .znj-directory{overflow:visible!important;isolation:isolate}
body.znj-inner-scroll-enabled .znj-inner-chapter{
 box-sizing:border-box!important;position:relative;
 top:auto!important;
 z-index:var(--znj-inner-layer,1);
 width:100%;max-width:none!important;
 height:auto!important;min-height:var(--znj-inner-room)!important;
 max-height:none!important;
 margin:0!important;padding-block:clamp(24px,5svh,64px)!important;
 overflow:visible!important;
 display:flex;flex-direction:column;justify-content:center;
 background-color:#151917;color:#f8ecdd;
 border:0!important;border-top:1px solid rgba(217,176,111,.28)!important;
 border-radius:0!important;
 box-shadow:0 -10px 38px #0004;
 scroll-margin-top:var(--znj-inner-head);
}
body.znj-inner-scroll-enabled .znj-inner-chapter:nth-of-type(3n+2){background-color:#1e211c}
body.znj-inner-scroll-enabled .znj-inner-chapter:nth-of-type(3n){background-color:#1b1b18}
/* Scroll overlap applies ONLY to sheets that completely fit the viewport. */
@supports(position:sticky){
 body.znj-inner-scroll-enabled .znj-inner-chapter.znj-inner-short{
  position:sticky!important;top:var(--znj-inner-head)!important;
 }
 body.znj-inner-scroll-enabled .znj-inner-chapter.znj-inner-tall{
  position:relative!important;top:auto!important;justify-content:flex-start;
 }
}
body.znj-inner-scroll-enabled .znj-inner-chapter.zm-hero{
 padding-top:clamp(35px,6svh,65px)!important;
 padding-bottom:clamp(30px,6svh,65px)!important;
 min-height:var(--znj-inner-room)!important;
 overflow:hidden!important;justify-content:center;
}
body.znj-inner-scroll-enabled .znj-inner-chapter.zm-hero>.zm-wrap{
 padding-block:clamp(16px,3svh,40px)!important;
 position:relative;z-index:2;
}
body.znj-inner-scroll-enabled .znj-inner-chapter.zm-hero>img{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
body.znj-inner-scroll-enabled .znj-inner-chapter:focus-within{
 outline-offset:-4px;
}
/* Every actual card collection uses the same horizontal movement as home. */
body.znj-inner-scroll-enabled .znj-inner-rail{
 display:flex!important;flex-flow:row nowrap!important;align-items:stretch;
 width:100%;max-width:100%;min-width:0;
 gap:clamp(12px,2vw,22px)!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
 scroll-padding-inline:clamp(14px,3vw,35px);
 padding:10px clamp(14px,3vw,35px) 20px!important;
 scrollbar-width:none;-webkit-overflow-scrolling:touch;
 touch-action:pan-x pan-y;
}
body.znj-inner-scroll-enabled .znj-inner-rail::-webkit-scrollbar{display:none}
body.znj-inner-scroll-enabled .znj-inner-rail>:not(.znj-swipe-gap){
 flex:0 0 clamp(240px,30vw,410px)!important;
 width:clamp(240px,30vw,410px)!important;
 max-width:calc(100vw - 38px)!important;min-width:0!important;
 scroll-snap-align:start;margin:0;
}
body.znj-inner-scroll-enabled .znj-inner-rail>.znj-swipe-gap{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 18px!important;width:18px!important;min-width:18px!important;
 height:auto!important;margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 pointer-events:none;
}
body.znj-inner-scroll-enabled .znj-inner-rail>.znj-swipe-gap>.znj-swipe-beacon{
 pointer-events:auto!important;
}
body.znj-inner-scroll-enabled .znj-market-chapter{
 padding-inline:clamp(17px,4vw,65px)!important;gap:clamp(18px,3svh,34px);
}
body.znj-inner-scroll-enabled .znj-market-chapter>.znj-market-section-heading{
 margin:0!important;
}
/* Fixed bottom navigation and compact stepper. */
body.znj-inner-scroll-enabled .znj-inner-sheet-steps{display:none}
@media(max-width:900px){
 body.znj-inner-scroll-enabled .znj-inner-chapter{
  min-height:var(--znj-inner-room)!important;
  padding:clamp(16px,3svh,28px) 0 clamp(24px,4svh,45px)!important;
 }
 body.znj-inner-scroll-enabled .znj-inner-chapter.zm-hero{
  min-height:var(--znj-inner-room)!important;
  padding:clamp(16px,3svh,32px) 0!important;
 }
 body.znj-inner-scroll-enabled .znj-inner-chapter.zm-hero>.zm-wrap{
  padding:clamp(14px,3svh,25px) clamp(19px,5vw,32px)!important;
  max-width:100%;
 }
 body.znj-inner-scroll-enabled .znj-inner-chapter.zm-hero h1{
  font-size:clamp(38px,10vw,61px)!important;line-height:1.04!important;
  overflow-wrap:break-word;
 }
 body.znj-inner-scroll-enabled .znj-inner-rail{
  gap:10px!important;padding-inline:clamp(16px,4vw,24px)!important;
 }
 body.znj-inner-scroll-enabled .znj-inner-rail>:not(.znj-swipe-gap){
  flex:0 0 min(82vw,355px)!important;
  width:min(82vw,355px)!important;max-width:min(82vw,355px)!important;
 }
 body.znj-inner-scroll-enabled .znj-inner-rail>.znj-swipe-gap{
  flex-basis:15px!important;width:15px!important;min-width:15px!important;
 }
 body.znj-inner-scroll-enabled .znj-inner-sheet-steps{
  display:flex!important;align-items:center;gap:3px;position:fixed;
  right:9px;bottom:calc(var(--znj-inner-dock) + 8px + env(safe-area-inset-bottom,0px));
  z-index:999;max-width:95px;
  padding:3px;background:rgba(18,20,18,.96);color:#e8d5b6;
  border:1px solid #d4ad6f9c;border-radius:50px;
  box-shadow:0 7px 23px #0008;
 }
 body.znj-inner-scroll-enabled .znj-inner-sheet-steps button{
  display:grid;place-items:center;width:35px;height:35px;
  border:1px solid #cda86c66;border-radius:50%;
  background:#29261e;color:#f5dfbf;font-size:21px;line-height:1;
  touch-action:manipulation;
 }
 body.znj-inner-scroll-enabled .znj-inner-sheet-steps button:disabled{opacity:.28}
 /* The dock always has five same-page tabs on corporate inner pages. */
 body.znj-inner-scroll-enabled .znj-context-dock{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  z-index:998!important;
 }
 body.znj-inner-scroll-enabled .znj-context-dock a{
  min-width:0!important;text-align:center;justify-content:center;
  font-size:clamp(9px,2.4vw,11px)!important;
  text-decoration:none;
 }
 body.znj-inner-scroll-enabled .znj-context-dock a[aria-current="location"]{
  color:#f6d3a0!important;background:rgba(213,169,96,.2)!important;
  border-radius:10px;
 }
 body.znj-inner-scroll-enabled .znj-market-chapter{
  padding:clamp(18px,3svh,28px) clamp(14px,4vw,27px)!important;
 }
 /* Compact and tall sheets must both support vertical pan and native inertia.
    Sticky sections still create the layered effect without cancelling touch. */
 body.znj-inner-scroll-enabled .znj-inner-chapter.znj-inner-short{
  touch-action:auto;
 }
 body.znj-inner-scroll-enabled .znj-inner-chapter.znj-inner-tall{
  touch-action:auto;
 }
}
@media(prefers-reduced-motion:reduce){
 body.znj-inner-scroll-enabled .znj-inner-chapter,
 body.znj-inner-scroll-enabled .znj-inner-rail{scroll-behavior:auto!important}
}

/* The shared footer is the final chapter, not a detached afterthought. */
body.znj-inner-scroll-enabled .site-footer.znj-inner-chapter,
body.znj-inner-scroll-enabled .portal-footer.znj-inner-chapter{
 min-height:var(--znj-inner-room)!important;
 padding:clamp(28px,6svh,70px) 0!important;
 display:flex!important;flex-direction:column;justify-content:center;
 z-index:var(--znj-inner-layer,50)!important;
 background:#101310!important;color:#f3eadb!important;
 border-top:1px solid rgba(211,171,105,.35)!important;
}
@media(max-width:900px){
 body.znj-inner-scroll-enabled .znj-context-dock{
  grid-template-columns:repeat(var(--znj-inner-dock-items,5),minmax(0,1fr))!important;
 }
 body.znj-inner-scroll-enabled .znj-network-mobile-dock{
  grid-template-columns:repeat(var(--znj-inner-dock-items,5),minmax(0,1fr))!important;
 }
 body.znj-inner-scroll-enabled .site-footer.znj-inner-chapter,
 body.znj-inner-scroll-enabled .portal-footer.znj-inner-chapter{
  padding:clamp(18px,4svh,34px) 14px calc(var(--znj-inner-dock) + 24px)!important;
 }
}
