/* ZNJ V3 — purpose-built compact full-viewport pages.
   The content model is editorial screens, not reflowed legacy landing pages. */
body.znj-inner-scroll-enabled .znj-rebuild{--zr-gold:#d8af72;--zr-ivory:#f5eddf;color:var(--zr-ivory);width:100%;max-width:none}
body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen{
 --zr-pad:clamp(18px,4vw,66px);
 position:relative!important;
 display:flex!important;align-items:center;justify-content:center!important;
 flex-direction:column;isolation:isolate;
 min-height:var(--znj-inner-room)!important;
 padding:clamp(16px,3vh,32px) var(--zr-pad)!important;
 margin:0!important;overflow:hidden!important;
 background:#131916;
}
body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen:nth-of-type(2n){background:#1f211b}
body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen:nth-of-type(3n){background:#191d1a}
body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-inner-tall{
 overflow:visible!important;
 height:auto!important;justify-content:flex-start!important;
}
.znj-r-container{width:min(100%,1320px);margin:auto;min-width:0;display:flex;flex-direction:column;gap:clamp(12px,2.5svh,28px)}
.znj-r-eyebrow{font:800 11px/1.3 Manrope,sans-serif;letter-spacing:.17em;text-transform:uppercase;color:#d8b47a;margin:0}
.znj-r-heading{font:400 clamp(37px,5.5vw,86px)/1.02 "Playfair Display",Georgia,serif;letter-spacing:-.052em;color:#fff2df!important;margin:0;max-width:920px}
.znj-r-heading em{font-weight:400;color:#ddb982}
.znj-r-copy{font:400 clamp(13px,1.25vw,17px)/1.65 Manrope,sans-serif;color:#d8cec0;margin:0;max-width:670px}
.znj-r-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;min-width:0}
.znj-r-top>div{min-width:0;display:grid;gap:10px}
.znj-r-top .znj-r-heading{font-size:clamp(33px,4.6vw,65px)}
.znj-r-cta-row{display:flex;flex-wrap:wrap;gap:11px;align-items:center}
.znj-r-button{display:inline-flex;justify-content:center;align-items:center;text-align:center;gap:8px;min-height:43px;max-width:100%;padding:11px 17px;border:1px solid #d1a86d;border-radius:8px;background:transparent;color:#f7e4c1!important;text-decoration:none;font:750 12px/1.35 Manrope,sans-serif}
.znj-r-button.znj-r-primary{background:#dcb77d!important;color:#18160e!important}
.znj-r-hero{background:#111b17!important;color:#fff!important}
.znj-r-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.znj-r-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#101511ef 0%,#101511b8 48%,#10151168 100%);z-index:0}
.znj-r-hero>.znj-r-container{position:relative;z-index:1;justify-content:center;gap:18px}
.znj-r-hero .znj-r-heading{font-size:clamp(44px,7.3vw,110px)}
.znj-r-rail{display:flex!important;flex-flow:row nowrap!important;gap:14px!important;align-items:stretch;overflow-x:auto!important;overflow-y:hidden!important;width:100%;max-width:100%;min-width:0;padding:8px 4px 16px!important;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.znj-r-rail::-webkit-scrollbar{display:none}
.znj-r-rail>.znj-r-card{flex:0 0 clamp(260px,29vw,390px)!important;max-width:clamp(260px,29vw,390px)!important;width:clamp(260px,29vw,390px)!important;min-width:0;scroll-snap-align:start}
.znj-r-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#25241f;border:1px solid #d3a86c4c;border-radius:17px;color:#fff2de!important;text-decoration:none;box-shadow:0 12px 25px #0003}
.znj-r-card-image{display:block;aspect-ratio:1.6;max-height:clamp(120px,22svh,210px);width:100%;object-fit:cover;background:#101410}
.znj-r-card-body{padding:clamp(13px,2vw,20px);display:flex;flex-direction:column;gap:9px;min-width:0;flex:1}
.znj-r-card-number{color:#e5bf86;font:700 10px/1.3 Manrope,sans-serif;letter-spacing:.15em;text-transform:uppercase}
.znj-r-card h3{color:#fff0d9!important;font:600 clamp(16px,1.65vw,23px)/1.25 Manrope,sans-serif;margin:0;overflow-wrap:anywhere}
.znj-r-card p{font:400 12px/1.5 Manrope,sans-serif;color:#d6cabc;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.znj-r-card-action{margin-top:auto;color:#e0bd88;font:750 11px/1.4 Manrope,sans-serif}
.znj-r-statline{display:flex;gap:12px;flex-wrap:wrap;color:#dac5a6;font:600 11px/1.4 Manrope,sans-serif}
.znj-r-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.znj-r-note{font:400 11px/1.4 Manrope,sans-serif;color:#b7a98e;margin:0}
.znj-r-partner-list{display:flex;flex-flow:row nowrap;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:10px 0 16px}
.znj-r-partner-list>.znj-r-card{flex:0 0 min(310px,80vw)}
.znj-r-pills{display:flex;gap:9px;flex-wrap:wrap}
.znj-r-pills a{border:1px solid #d4b27a6b;color:#e5d2b5;text-decoration:none;border-radius:30px;padding:8px 13px;font:700 11px/1.35 Manrope,sans-serif}
.znj-r-pills a[aria-current="page"]{background:#d6b075;color:#1b1913}
.znj-r-scroll-hint{align-self:flex-end;color:#ddc395;font:700 10px/1.3 Manrope,sans-serif;letter-spacing:.1em;margin:0}
@media(max-width:900px){
 body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen{
  --zr-pad:clamp(16px,4.5vw,28px);
  padding:clamp(11px,2svh,23px) var(--zr-pad)!important;
  min-height:var(--znj-inner-room)!important;
 }
 .znj-r-container{gap:clamp(10px,2svh,19px)}
 .znj-r-heading{font-size:clamp(33px,9vw,59px)}
 .znj-r-top{align-items:flex-start;flex-direction:column;gap:10px}
 .znj-r-top .znj-r-heading{font-size:clamp(32px,8vw,49px)}
 .znj-r-hero .znj-r-heading{font-size:clamp(41px,10.5vw,69px)!important}
 .znj-r-copy{font-size:clamp(12px,3.3vw,14px);line-height:1.55}
 .znj-r-rail>.znj-r-card{flex:0 0 min(78vw,345px)!important;max-width:min(78vw,345px)!important;width:min(78vw,345px)!important}
 .znj-r-card-image{max-height:min(22svh,170px);aspect-ratio:1.7}
 .znj-r-card-body{padding:14px;gap:7px}
 .znj-r-button{min-height:42px;font-size:11px}
 .znj-r-scroll-hint{align-self:flex-start}
}
@media(max-width:900px) and (max-height:680px){
 .znj-r-card-image{max-height:110px}
 .znj-r-heading{font-size:35px}
 .znj-r-card-body{padding:10px}
}
@media(prefers-reduced-motion:reduce){.znj-r-rail{scroll-behavior:auto!important}}

/* Complex enquiry and FAQ content scroll INSIDE their allocated chapter.
   The fixed mobile header and dock never cover the submit action. */
body.znj-inner-scroll-enabled .znj-r-form-screen>.znj-r-container,
body.znj-inner-scroll-enabled .znj-r-faq-screen>.znj-r-container{
 height:min(100%,calc(var(--znj-inner-room) - 20px));
 max-height:calc(var(--znj-inner-room) - 20px);
 min-height:0;
}
body.znj-inner-scroll-enabled .znj-r-form-scroll,
body.znj-inner-scroll-enabled .znj-r-faq-scroll{
 min-height:0;flex:1 1 auto;max-height:calc(var(--znj-inner-room) - 145px);
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior-y:contain;
 touch-action:pan-y;
 scrollbar-width:thin;scrollbar-color:#d2a971 transparent;
 padding:0 4px 15px;
}
body.znj-inner-scroll-enabled .znj-r-form-scroll .zm-panel{
 max-width:100%;margin:0;padding:clamp(12px,2vw,24px);
}
body.znj-inner-scroll-enabled .znj-r-form-scroll .zm-panel>h2{display:none}
body.znj-inner-scroll-enabled .znj-r-form-scroll input,
body.znj-inner-scroll-enabled .znj-r-form-scroll select,
body.znj-inner-scroll-enabled .znj-r-form-scroll textarea{
 max-width:100%;box-sizing:border-box;
}
body.znj-inner-scroll-enabled .znj-r-faq-screen .znj-faq-search{
 flex:0 0 auto;max-width:100%;
}
body.znj-inner-scroll-enabled .znj-r-faq-screen details{margin-bottom:8px}
body.znj-inner-scroll-enabled .znj-r-form-screen .znj-r-container>.znj-r-top,
body.znj-inner-scroll-enabled .znj-r-faq-screen .znj-r-container>.znj-r-top{flex:0 0 auto}
body.znj-inner-scroll-enabled .znj-r-form-screen.znj-inner-tall,
body.znj-inner-scroll-enabled .znj-r-faq-screen.znj-inner-tall{
 height:var(--znj-inner-room)!important;
 min-height:var(--znj-inner-room)!important;
 max-height:var(--znj-inner-room)!important;
 overflow:hidden!important;
}
@media(max-width:900px){
 body.znj-inner-scroll-enabled .znj-r-form-screen>.znj-r-container,
 body.znj-inner-scroll-enabled .znj-r-faq-screen>.znj-r-container{
  height:calc(var(--znj-inner-room) - 12px);
  max-height:calc(var(--znj-inner-room) - 12px);
 }
 body.znj-inner-scroll-enabled .znj-r-form-scroll,
 body.znj-inner-scroll-enabled .znj-r-faq-scroll{
  max-height:calc(var(--znj-inner-room) - 133px);
 }
 body.znj-inner-scroll-enabled .znj-r-form-scroll .zm-panel{
  padding:10px!important;
 }
}

/* Network uses its own document layout; remove outdated portal-main padding
   when native full-screen chapters are present. */
body.znj-marketplace.znj-inner-scroll-enabled .portal-main:has(.znj-rebuild){
 padding:0!important;
 width:100%!important;max-width:none!important;
}
body.znj-marketplace.znj-inner-scroll-enabled .znj-rebuild{
 width:100%!important;max-width:none!important;
}
.znj-r-directory-form{
 display:flex;flex-wrap:wrap;gap:9px;align-items:end;
 min-width:0;max-width:100%;
}
.znj-r-directory-form label{
 display:flex;flex:1 1 130px;flex-direction:column;gap:5px;
 color:#e5d0ad;font:650 11px/1.3 Manrope,sans-serif;
}
.znj-r-directory-form input{
 box-sizing:border-box;max-width:100%;min-width:0;width:100%;
 min-height:39px;border:1px solid #d4b37b60;border-radius:7px;
 padding:8px 11px;background:#121613;color:#fff4e0;
 font:500 12px/1.3 Manrope,sans-serif;
}
.znj-r-directory-form .znj-r-button{height:39px;min-height:39px}
body.znj-marketplace.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen{
 padding:clamp(18px,3svh,34px) clamp(15px,4vw,65px)!important;
}
@media(max-width:900px){
 .znj-r-directory-form{gap:8px}
 .znj-r-directory-form label{flex:1 1 110px}
 .znj-r-directory-form .znj-r-button{min-height:36px;height:36px}
 body.znj-marketplace.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen{
  padding:clamp(13px,2svh,22px) clamp(14px,4vw,23px)!important;
 }
}

/* Long article/service copy is confined to a real readable content viewport.
   Chapters remain screen-sized while users can independently scroll text. */
body.znj-inner-scroll-enabled .znj-r-detail-screen>.znj-r-container{
 max-height:calc(var(--znj-inner-room) - 20px);
 height:min(100%,calc(var(--znj-inner-room) - 20px));
 min-height:0;
}
body.znj-inner-scroll-enabled .znj-r-detail-text{
 flex:1 1 auto;min-height:0;
 max-height:calc(var(--znj-inner-room) - 175px);
 overflow-y:auto!important;overflow-x:hidden;
 overscroll-behavior-y:contain;touch-action:pan-y;
 color:#e1d2bf;font:400 clamp(13px,1.24vw,17px)/1.78 Manrope,sans-serif;
 scrollbar-width:thin;scrollbar-color:#d4ad71 transparent;
 padding:5px 10px 12px 0;
}
body.znj-inner-scroll-enabled .znj-r-detail-text p{white-space:pre-line;margin:0}
body.znj-inner-scroll-enabled .znj-r-detail-screen.znj-inner-tall{
 height:var(--znj-inner-room)!important;
 min-height:var(--znj-inner-room)!important;
 max-height:var(--znj-inner-room)!important;
 overflow:hidden!important;
}
body.znj-inner-scroll-enabled .znj-r-detail-screen .znj-r-top{flex:0 0 auto}
body.znj-inner-scroll-enabled .znj-r-screen .znj-project-viewer{
 min-width:0;width:100%;max-width:100%;
}
body.znj-inner-scroll-enabled .znj-r-screen .znj-gallery-grid{
 display:flex!important;flex-flow:row nowrap!important;
 overflow-x:auto!important;min-width:0;
}
@media(max-width:900px){
 body.znj-inner-scroll-enabled .znj-r-detail-screen>.znj-r-container{
  max-height:calc(var(--znj-inner-room) - 14px);
  height:calc(var(--znj-inner-room) - 14px);
 }
 body.znj-inner-scroll-enabled .znj-r-detail-text{
  max-height:calc(var(--znj-inner-room) - 160px);
 }
}

/* The screen builder must not cancel the shared sheet engine's sticky state. */
@supports(position:sticky){
 body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-inner-short{
  position:sticky!important;top:var(--znj-inner-head)!important;
  z-index:var(--znj-inner-layer,1)!important;
 }
 body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-inner-tall{
  position:relative!important;top:auto!important;
  overflow:visible!important;
 }
 body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-r-form-screen,
 body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-r-faq-screen,
 body.znj-inner-scroll-enabled .znj-rebuild>.znj-r-screen.znj-r-detail-screen{
  overflow:hidden!important;
 }
}
/* Invisible static-flow markers keep sheet navigation independent of CSS
   sticky positioning. They have no visual space and do not intercept touch. */
.znj-inner-flow-anchor{
 display:block!important;position:relative!important;
 width:0!important;height:0!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;
 pointer-events:none!important;visibility:hidden!important;
}

/* Rebuilt expertise pages use the same dynamically measured, per-page dock. */
@media(max-width:900px){
 body.znj-expertise.znj-inner-scroll-enabled .znj-expertise-dock{
  display:grid!important;
  grid-template-columns:repeat(var(--znj-inner-dock-items,5),minmax(0,1fr))!important;
  position:fixed!important;inset:auto 0 0 0!important;
  width:100%!important;z-index:998!important;
 }
 body.znj-expertise.znj-inner-scroll-enabled .znj-expertise-dock a{
  min-width:0!important;font-size:clamp(8px,2.3vw,11px)!important;
  text-align:center;overflow-wrap:anywhere;
 }
 body.znj-expertise.znj-inner-scroll-enabled .znj-expertise-dock a[aria-current="location"]{
  color:#f4d4a1!important;background:rgba(213,169,96,.18)!important;
 }
}
.znj-r-search-form{width:min(100%,970px);color:#f4e6cc}
.znj-r-search-form select{
 min-height:39px;box-sizing:border-box;width:100%;max-width:100%;min-width:0;
 padding:8px 11px;background:#121613;color:#fff4e0;
 border:1px solid #d4b37b60;border-radius:7px;
 font:500 12px/1.3 Manrope,sans-serif;
}
