/* Layout repair. This layer is declared first in each document because important
   layer order is reversed. Existing engines and outer width rails remain owners. */
@layer nbc-layout-hardening-7143 {
 body.page-template-article .as-hero-deck{display:block!important;min-width:0!important;max-width:none!important;}
 body.page-template-article .ep-hero-grid>*{min-width:0!important;}
 body.page-template-article .ep-hero-grid>.hero-explanation{margin:0!important;width:100%!important;}
 body.page-template-article .f2-reading-folio{--ev-ink:#102118;--ev-copy:#445149;--ev-green:#28613f;--ev-line:#344c3938;}
 body.page-template-article .f2-reading-folio :is(.article-reading-next,.ep-conclusion-next){color:#102118!important;}
 body.page-template-article .f2-reading-folio :is(.article-reading-next h2,.article-reading-next strong,.ep-conclusion-next h3){color:#102118!important;-webkit-text-fill-color:currentColor!important;}
 body.page-template-article .f2-reading-folio :is(.article-reading-next p,.ep-conclusion-next p){color:#445149!important;-webkit-text-fill-color:currentColor!important;}
 body.page-template-article .f2-reading-folio :is(.article-reading-next__links>a>span,.article-reading-next__eyebrow,.ep-conclusion-next>.mono){color:#28613f!important;-webkit-text-fill-color:currentColor!important;}
 body.page-template-article .f2-reading-folio .ep-conclusion-next .btn-solid{background:#153b26!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
 /* Above-the-fold content must never depend on the reveal observer. */
 body.page main :is(.ep-hero,.service-hero,.local-hero,.nbc-about-hero,.p2-evidence-hero,.dg3-hero) :is(.rv,.p2-evidence-hero__intro,.p2-evidence-proof,.p2-evidence-journey){opacity:1!important;visibility:visible!important;transform:none!important;animation:none!important;}
 .hg-document-page{background:#142019!important;aspect-ratio:920/1302!important;overflow:hidden!important;}
 .hg-document-page img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:920/1302!important;object-fit:cover!important;background:#142019!important;}
 .nbc-about-portrait .ac-portrait-frame{background:#18221b!important;}
 body.page-about .nbc-about-portrait figcaption{position:static!important;width:100%!important;margin:18px 0 0!important;padding:0!important;background:transparent!important;}
 body.page-about .nbc-about-portrait figcaption blockquote{margin:0 0 12px!important;font-size:clamp(18px,1.5vw,23px)!important;line-height:1.45!important;}
 @media(min-width:1101px){
  body.page-service .service-hero{min-height:0!important;height:auto!important;padding-block:130px 64px!important;}
  body.page-service .nbc-service-hero-grid{min-height:0!important;padding-block:0!important;align-items:center!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;gap:clamp(36px,4vw,64px)!important;}
  body.page-service .service-hero-copy h1{font-size:clamp(44px,4.1vw,68px)!important;line-height:1.09!important;}
  body.page-service .service-hero-copy .nbc-unified-hero-lead{font-size:18px!important;line-height:1.6!important;margin-top:22px!important;}
  body.page-service .service-hero-proofline{margin-block:24px!important;}
  body.page-service .ss-scene{padding-block:0!important;}
  body.page-service .ss-scene figcaption{margin-bottom:16px!important;}
  body.page-service .ss-art{max-height:250px!important;width:100%!important;object-fit:contain!important;}
  body.page-service .erp-route-field .ss-art{width:76%!important;}
  body.page-service .ss-time-map{margin-top:18px!important;}
  body.page-service :is(.ss-origin,.ss-time-key,.ss-time-ratio,.ss-release){margin-top:16px!important;}
  body.page-service :is(.ss-answer,.ss-foot){margin-top:16px!important;padding-top:14px!important;min-height:0!important;}
  body.page-service .ss-status{min-height:48px!important;}
  body.page-about .nbc-about-hero,body.page-regional-gateway .local-hero{min-height:0!important;height:auto!important;padding-block:130px 64px!important;}
  body.page-regional-gateway .local-hero-grid{align-items:center!important;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important;gap:clamp(40px,5vw,80px)!important;}
  body.page-regional-gateway .local-founder-card{align-self:center!important;max-width:410px!important;}
  body.page-regional-gateway .local-founder-card picture{display:block!important;height:auto!important;aspect-ratio:4/4.5!important;overflow:hidden!important;}
  body.page-regional-gateway .local-founder-card picture img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 28%!important;}
  body.page-regional-gateway .local-founder-copy{padding:20px 0 0!important;}
  body.page-regional-gateway .local-hero h1{font-size:clamp(44px,4.1vw,68px)!important;}
  body.page-about .nbc-about-portrait .ac-portrait-frame{height:auto!important;min-height:0!important;aspect-ratio:4/4.7!important;}
  body.page-about .nbc-about-portrait img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 22%!important;}
  body.industry-services .ps-hero{min-height:0!important;padding-block:130px 64px!important;}
  body.page-template-case-index .p2-evidence-hero{min-height:0!important;}
  body.page-template-case-index .p2-evidence-hero__frame{min-height:0!important;padding-top:130px!important;}
  body.page-template-case-index .p2-evidence-hero__intro{padding-bottom:32px!important;}
  body.page-template-case-index .p2-evidence-proof{margin-top:0!important;}
  body.page-template-case-index .p2-evidence-hero .case2-title{font-size:clamp(48px,4.5vw,76px)!important;max-width:19ch!important;line-height:1.08!important;}
  .hg-document{grid-template-columns:minmax(0,1fr) 154px!important;gap:22px!important;}
 }
 /* Intro owns its padding once; align the headline with the outcome. */
 body.page-digital-check #digital-check[data-dc5-mode="intro"]{min-height:0!important;padding-top:0!important;}
 body.page-digital-check .dc7-entry{min-height:0!important;padding-top:128px!important;padding-bottom:56px!important;}
 body.page-digital-check .dc7-entry__layout{align-items:start!important;}
 body.page-digital-check .dc7-entry__head{align-self:start!important;padding:0!important;margin:0!important;}
 body.page-digital-check .dc7-entry__head h1{font-size:clamp(38px,4.4vw,68px)!important;line-height:1.1!important;max-width:19ch!important;}
 body.page-digital-check .dc7-choice-grid{margin-top:28px!important;}
 @media(min-width:1101px){
  body.page-digital-check .dc7-entry__layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;gap:56px!important;}
  body.page-digital-check .hero-preview{margin-block:20px 0!important;padding-block:16px 0!important;}
  body.page-digital-check .hero-preview li{padding-block:10px!important;}
 }
 @media(max-width:1100px){
  body.page-service .service-hero{min-height:0!important;}
  .hg-document{grid-template-columns:minmax(0,1fr) 150px!important;}
 }
 @media(max-width:760px){
  body.page main :is(h1,h2,h3,.editorial-title,.nbc-unified-hero-title){height:auto!important;max-height:none!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:manual!important;-webkit-hyphens:manual!important;overflow:visible!important;text-wrap:pretty!important;}
  body.page main h1{max-width:100%!important;font-size:clamp(31px,8.5vw,42px)!important;line-height:1.12!important;letter-spacing:-.025em!important;}
  body.page main :is(h1,h2,h3)>span{white-space:normal!important;}
  body.page main :is(.hero-actions,.local-hero-actions,.ac-actions) :is(a,button){max-width:100%!important;white-space:normal!important;height:auto!important;line-height:1.4!important;}
  body.page-digital-check .dc7-entry{padding-top:calc(96px + env(safe-area-inset-top))!important;}
  body.page-digital-check .dc7-entry__head h1{font-size:clamp(31px,8.5vw,42px)!important;max-width:100%!important;}
  body.page-digital-check .dc7-entry-facts{display:flex!important;flex-wrap:wrap!important;}
  body.page-digital-check .dc7-entry-facts span{font-size:11px!important;line-height:1.5!important;}
  .hg-document{grid-template-columns:minmax(0,1fr)!important;}
  .hg-document-page{width:150px!important;}
  .hg-document-caption{grid-column:1!important;}
 }
}
