/* ZNJ public design contract — Phase 1.
   Centralized tokens and safe shared primitives. Does not alter operational
   dashboards or force long editorial chapters to one viewport height.
   Legacy page styles can be retired only after browser QA confirms parity. */
:root {
 --znj-color-ink:#101714;
 --znj-color-surface:#171e19;
 --znj-color-surface-raised:#232923;
 --znj-color-gold:#c8a56d;
 --znj-color-gold-border:rgba(210,176,119,.62);
 --znj-color-ivory:#f3ebdd;
 --znj-color-muted:#cbbfaf;
 --znj-color-whatsapp:#155f40;
 --znj-font-editorial:"Playfair Display",Georgia,serif;
 --znj-font-ui:Manrope,Arial,sans-serif;
 --znj-layout-max:1320px;
 --znj-content-gutter:clamp(18px,4vw,65px);
 --znj-radius-card:18px;
 --znj-radius-control:9px;
 --znj-control-height:44px;
 --znj-section-gap:clamp(22px,4svh,54px);
 --znj-transition-quiet:180ms ease;
}
body:not(.znj-portal-view) :is(.zm-wrap,.znj-r-container,.znj-m-panel-content) {
 min-width:0;
}
body:not(.znj-portal-view) :is(.zm-wrap,.znj-r-container) {
 box-sizing:border-box;
}
body:not(.znj-portal-view) :is(.znj-r-cta-row,.znj-m-actions,.zm-actions) {
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:clamp(9px,1.5vw,15px);
 min-width:0;
}
body:not(.znj-portal-view) :is(.znj-r-button,.znj-m-actions a,.zm-actions a) {
 box-sizing:border-box;
 max-width:100%;
 min-height:var(--znj-control-height);
 text-decoration:none;
 text-align:center;
}
body:not(.znj-portal-view) :is(.znj-r-card,.znj-m-product-card,.znj-app-screen-card){
 box-sizing:border-box;
 min-width:0;
}
body:not(.znj-portal-view) :is(.znj-r-card img,.znj-m-product-card img,.znj-app-screen-card img){
 max-width:100%;
}
body:not(.znj-portal-view) :is(.znj-r-rail,.znj-m-carousel,.znj-app-screen-rail) {
 overscroll-behavior-x:contain;
 -webkit-overflow-scrolling:touch;
}
body:not(.znj-portal-view) :is(.znj-r-rail,.znj-m-carousel,.znj-app-screen-rail):focus-visible{
 outline:2px solid var(--znj-color-gold);
 outline-offset:3px;
}
body:not(.znj-portal-view) :is(a,button,summary,input,select,textarea):focus-visible{
 outline:2px solid #e9c88f;
 outline-offset:3px;
}
body:not(.znj-portal-view) :is(.znj-r-screen,.znj-m-panel,.zm-section,.site-footer) {
 scroll-margin-top:var(--znj-header-live-height,88px);
}
body:not(.znj-portal-view) :is(.znj-r-copy,.znj-m-panel-content > p,.znj-r-card p,.znj-m-card-copy p){
 overflow-wrap:break-word;
}
@media(max-width:900px){
 body:not(.znj-portal-view) :is(.znj-r-button,.znj-m-actions a,.zm-actions a){
  min-height:44px;
 }
 /* No fixed-height constraint on content-heavy sections. */
 body:not(.znj-portal-view) :is(.znj-r-screen.znj-inner-tall,.znj-m-panel.znj-inner-tall){
  height:auto;
  max-height:none;
 }
}
@media(prefers-reduced-motion:reduce){
 body:not(.znj-portal-view) :is(.znj-r-rail,.znj-m-carousel,.znj-app-screen-rail) {
  scroll-behavior:auto!important;
 }
}

/* Phase 2: shared editorial composition.  All rules are intentionally scoped
   to public corporate pages, never marketplace login/provider/admin shells.
   Short chapters center their content; long ones grow naturally. */
body.znj-inner-scroll-enabled:not(.znj-marketplace):not(.znj-portal-view)
 .znj-rebuild > .znj-r-screen.znj-inner-short:not(.znj-r-hero):not(.znj-r-cinema){
 justify-content:center!important;
}
body.znj-inner-scroll-enabled:not(.znj-marketplace):not(.znj-portal-view)
 .znj-rebuild > .znj-r-screen.znj-inner-tall{
 height:auto!important;
 max-height:none!important;
 justify-content:flex-start!important;
 overflow:visible!important;
}
/* One compact editorial content rhythm across the services, about, events,
   and portfolio chapter templates. Card/image sizing remains page-specific. */
body:not(.znj-portal-view) .znj-rebuild :is(.znj-r-top,.znj-r-card-body){
 min-width:0;
}
body:not(.znj-portal-view) .znj-rebuild .znj-r-top{
 gap:clamp(12px,2vw,26px);
}
body:not(.znj-portal-view) .znj-rebuild .znj-r-top > div{
 min-width:0;
}
body:not(.znj-portal-view) .znj-rebuild .znj-r-copy{
 line-height:1.72;
 text-wrap:pretty;
}
body:not(.znj-portal-view) .znj-rebuild :is(.znj-r-card,.znj-r-card-body){
 overflow-wrap:break-word;
}
body:not(.znj-portal-view) .znj-rebuild .znj-r-card-body{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 gap:clamp(7px,1svh,12px);
}
body:not(.znj-portal-view) .znj-rebuild .znj-r-card-body :is(h3,p){
 max-width:100%;
 margin-block:0;
}
body:not(.znj-portal-view) .znj-rebuild .znj-r-card-body .znj-r-card-action{
 margin-top:auto;
}
/* Keep all horizontal discovery rails independently navigable and avoid
   unintentionally hiding the last card behind the viewport edge. */
body:not(.znj-portal-view) .znj-rebuild .znj-r-rail{
 max-width:100%;
 min-width:0;
 overscroll-behavior-x:contain;
 scroll-padding-inline:12px;
}
body:not(.znj-portal-view) .znj-rebuild .znj-r-rail > :is(.znj-r-card,.znj-app-screen-card){
 scroll-snap-align:start;
}
/* Buttons are equal-height peers, with stable content and no overlaid labels.
   Header CTA and dedicated WhatsApp button retain their branded variants. */
body:not(.znj-portal-view) #main :is(.znj-r-button,.zm-btn,.znj-m-actions a){
 line-height:1.45;
 overflow-wrap:break-word;
 white-space:normal;
}
body:not(.znj-portal-view) #main :is(.znj-r-button,.zm-btn,.znj-m-actions a):focus-visible{
 outline:2px solid var(--znj-color-gold);
 outline-offset:3px;
}
@media(max-width:900px){
 body:not(.znj-portal-view) .znj-rebuild .znj-r-top{
  flex-wrap:wrap;
  align-items:flex-start;
 }
 body:not(.znj-portal-view) .znj-rebuild .znj-r-top > div{
  width:100%;
 }
 body:not(.znj-portal-view) .znj-rebuild .znj-r-rail{
  -webkit-overflow-scrolling:touch;
 }
 body:not(.znj-portal-view) #main :is(.znj-r-cta-row,.znj-m-actions,.zm-actions){
  gap:10px;
 }
}

/* Phase 3: stabilize the ONE shared header/footer across public routes.
   Preserve the official artwork: never crop, recolor or stretch original
   files. Existing page-specific header/footer layouts still control sizing. */
body:not(.znj-portal-view) .site-head :is(.site-identity,.znj-identity-horizontal),
body:not(.znj-portal-view) .site-footer .znj-footer-identity{
 min-width:0;
}
body:not(.znj-portal-view) .site-head .znj-header-logo-complete,
body:not(.znj-portal-view) .site-footer .znj-footer-identity img{
 object-fit:contain;
 object-position:center;
 height:auto;
 max-width:100%;
}
body:not(.znj-portal-view) .site-footer :is(.footer-intro,.footer-cols,.footer-bottom){
 min-width:0;
}
body:not(.znj-portal-view) .site-footer .footer-cols > div{
 box-sizing:border-box;
 min-width:0;
}
body:not(.znj-portal-view) .site-footer .footer-cols a{
 overflow-wrap:anywhere;
 text-decoration-thickness:from-font;
 text-underline-offset:3px;
}
body:not(.znj-portal-view) .site-footer .footer-intro h2{
 overflow-wrap:break-word;
 text-wrap:balance;
}
body:not(.znj-portal-view) .site-footer .footer-brand p{
 max-width:45ch;
}
body:not(.znj-portal-view) .site-footer .footer-cols :is(a,button):focus-visible,
body:not(.znj-portal-view) .site-head :is(a,button):focus-visible{
 outline:2px solid var(--znj-color-gold);
 outline-offset:3px;
}
/* Keep decorative control clusters separate from content and avoid competing
   horizontal room with the floating enquiry launcher on narrow phones. */
@media(max-width:900px){
 body:not(.znj-portal-view) .site-footer .footer-intro{
  min-width:0;
  gap:clamp(12px,3vw,28px);
 }
 body:not(.znj-portal-view) .site-footer .footer-cols > div{
  max-width:100%;
 }
 body:not(.znj-portal-view) .site-footer .footer-bottom{
  flex-wrap:wrap;
  gap:8px 22px;
 }
}

/* Native mobile stacked-sheet completion: later performance CSS must honor
 * each chapter's measured sticky top. Long chapters use a negative offset
 * while short chapters pin below the fixed masthead. This retains the sheet
 * effect without hiding the final paragraph or CTA under the bottom dock. */
@media (max-width:900px) {
 html body.znj-home .znj-mobile-home > section.znj-m-panel {
  top:var(--znj-m-stick-top,var(--znj-safe-head,88px))!important;
  max-height:none!important;
  box-sizing:border-box;
 }
 html body.znj-home .znj-mobile-home > section.znj-m-panel
 :is(a,button,[role="button"]):focus-visible {
  outline:2px solid #edcb90;
  outline-offset:3px;
 }
}

/* ZNJ Company FAQ: one real, responsive accordion in the About experience. */
body.znj-inner-about .znj-rebuild > .znj-r-screen.znj-company-faq {
 height:auto!important;
 max-height:none!important;
 min-height:var(--znj-inner-room,auto)!important;
 overflow:visible!important;
 padding-block:clamp(45px,6vw,100px)!important;
}
body.znj-inner-about .znj-company-faq .znj-r-container{
 gap:clamp(20px,3vw,40px);
}
body.znj-inner-about .znj-company-faq-list{
 width:100%;
 max-width:1050px;
 border-top:1px solid rgba(221,181,112,.38);
}
body.znj-inner-about .znj-company-faq-item{
 border-bottom:1px solid rgba(221,181,112,.28);
 color:#f5ead8;
 background:transparent;
}
body.znj-inner-about .znj-company-faq-item summary{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:clamp(15px,3vw,50px);
 min-height:64px;
 padding:clamp(15px,2.2vw,25px) 4px;
 font:600 clamp(15px,1.6vw,22px)/1.4 Manrope,Arial,sans-serif;
 color:#f8eeda;
 cursor:pointer;
 list-style:none;
}
body.znj-inner-about .znj-company-faq-item summary::-webkit-details-marker{display:none}
body.znj-inner-about .znj-company-faq-icon{
 flex:none;
 display:grid;
 place-items:center;
 width:32px;
 height:32px;
 border:1px solid rgba(228,184,111,.6);
 border-radius:50%;
 color:#edc686;
 font:400 23px/1 Manrope,Arial,sans-serif;
 transition:transform .18s ease;
}
body.znj-inner-about .znj-company-faq-item[open] .znj-company-faq-icon{transform:rotate(45deg)}
body.znj-inner-about .znj-company-faq-answer{
 padding:0 40px clamp(21px,3vw,33px) 4px;
}
body.znj-inner-about .znj-company-faq-answer p{
 max-width:78ch;
 margin:0;
 color:#d9cdbc;
 line-height:1.8;
 font-size:clamp(13px,1.3vw,16px);
 white-space:pre-line;
 overflow-wrap:break-word;
}
body.znj-inner-about .znj-company-faq-item summary:focus-visible{
 outline:2px solid #e8c58b;
 outline-offset:3px;
 border-radius:5px;
}
@media(max-width:900px){
 body.znj-inner-about .znj-rebuild > .znj-r-screen.znj-company-faq{
  padding:clamp(45px,9vw,70px) clamp(17px,5vw,30px)!important;
 }
 body.znj-inner-about .znj-company-faq-answer{
  padding-right:10px;
 }
}
@media(prefers-reduced-motion:reduce){
 body.znj-inner-about .znj-company-faq-icon{transition:none}
}

/* Native mobile chapter controls remain usable beside the fixed dock.
   Hit targets meet the 44px touch guideline without enlarging in-card arrows. */
@media(max-width:900px){
 html body.znj-home .znj-mobile-sheet-steps button{
  min-width:44px!important;
  width:44px!important;
  min-height:44px!important;
  height:44px!important;
 }
 html body.znj-home .znj-mobile-sheet-steps{
  bottom:calc(var(--znj-mobile-dock-height,82px) + 10px + env(safe-area-inset-bottom,0px))!important;
 }
}
