/* V3.1.8 / Unified content & image width. Loaded LAST on all public pages.
   Geometry only: keeps uploaded original images and database content unchanged. */
:root{
  --site-content-width:1232px;
  --site-side-gutter:26px;
}
@media(min-width:1400px){:root{--site-side-gutter:40px}}
@media(max-width:600px){:root{--site-side-gutter:16px}}
@media(max-width:350px){:root{--site-side-gutter:12px}}

/* One consistent left/right edge for the navigation, content, artwork and footer. */
.container{
  width:min(var(--site-content-width),calc(100% - (2 * var(--site-side-gutter)))) !important;
  max-width:100%;
  margin-left:auto !important;
  margin-right:auto !important;
}
html,body{max-width:100%}
body,main{min-width:0}
main>section,main>div{min-width:0;max-width:100%}
main .container>*{min-width:0}
main :is(.hero-heading,.hero-grid,.hero-capsule,.np-service-head,.np-pickup-head,.np-pickup-bottom,.ps-prep-grid,.pm-pricing-grid,.pm-contact-grid,.bd-header,.bd-grid,.seo-layout,.cms-content-grid,.cms-hero-grid)>*{min-width:0}

/* Localize the previously edge-to-edge pickup poster within the site content grid. */
#store .np-wide-figure{
  display:block;
  width:min(var(--site-content-width),calc(100% - (2 * var(--site-side-gutter)))) !important;
  max-width:100% !important;
  margin:0 auto !important;
  overflow:hidden;
  border-radius:22px;
  background:#142032;
}
#store .np-wide-figure .media-shell{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  border-radius:22px 22px 0 0 !important;
  overflow:hidden;
}
#store .np-wide-figure .media-shell img{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:2/1 !important;
  object-fit:contain !important;
  object-position:center !important;
}
#store .np-wide-caption{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding:15px 22px !important;
}

/* All images scale with their own content column. No cropped banners. */
main :is(img,video,iframe,picture,svg){max-width:100%}
main :is(figure,.media-shell,.cms-cover,.cms-bottom-poster,.seo-poster,.ps-prep-figure,.np-wide-figure){max-width:100%;min-width:0}
main :is(.media-shell,.cms-cover,.cms-bottom-poster,.seo-poster) img{
  display:block;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
main :is(.cms-article,.article-prose,.seo-content) img{
  max-width:100%;height:auto;object-fit:contain;
}

/* Long model names, English keywords and code must never widen the page. */
main :is(h1,h2,h3,h4,p,li,a,button,strong,figcaption,blockquote,summary){overflow-wrap:break-word}
main :is(.cms-article,.article-prose,.seo-content,.cms-content-grid,.seo-layout){min-width:0;max-width:100%}
main :is(.cms-article,.article-prose,.seo-content) :is(pre,code){max-width:100%}
main :is(.cms-article,.article-prose,.seo-content) pre{
  overflow-x:auto;white-space:pre;overscroll-behavior-inline:contain;
}
main :is(.cms-article,.article-prose,.seo-content){overflow-wrap:anywhere}
main :is(.cms-article,.article-prose,.seo-content) :is(.table-scroll,.table-wrap){
  max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
}
/* User-uploaded HTML may contain tables without a scroll wrapper. */
main :is(.cms-article,.article-prose) table:not(.price-table):not(.seo-table){
  display:block;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
}
main :is(.cms-article,.article-prose) table :is(th,td){overflow-wrap:normal;word-break:normal}

/* Large art is never allowed to push its parent wider than the shared container. */
main :is(.pm-pricing,.pm-contact,.ps-prep,.ps-knowledge,.brand-directory,.semantic-premium,.premium-showcase-section,.premium-conclusion,.premium-faq-section,.np-services,.np-pickup,.cms-hero,.cms-related,.cms-bottom-cta) :is(.media-shell,.media-frame,figure,.poster-frame){
  min-width:0;max-width:100%;
}

@media(max-width:880px){
  main :is(.cms-hero-grid,.seo-head-grid){grid-template-columns:minmax(0,1fr)}
  main :is(.cms-content-grid,.seo-layout){grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
  #store .np-wide-figure{border-radius:14px}
  #store .np-wide-figure .media-shell{border-radius:14px 14px 0 0!important}
  #store .np-wide-caption{padding:12px 14px !important}
  main :is(.table-scroll,.table-wrap,.cms-article,.article-prose){max-width:100%}
  main :is(.btn,.np-btn,.ps-action-red,.ps-action-outline,.pm-action){
    min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
  }
  main :is(.np-pickup-checks,.bd-grid,.brand-grid,.data-strip,.seo-related){min-width:0}
  main :is(.cms-hero,.cms-related,.cms-bottom-cta) .container{min-width:0}
}
