/*! NBC v6.681 · conservative release corrections + Welle 3A / P3 · contrast, regional layout, controls */

/* Restore evidence/paper surfaces that the global ambient layer made transparent. */
body.page.design-system-executive[data-ambilight-contract="v6660"] main.nbc-page-shell [data-ambient="evidence"]{
  background-color:#f3f0e8!important;
  color:#111711;
}
body.page.design-system-executive[data-ambilight-contract="v6660"] main.nbc-page-shell [data-ambient="evidence"] :is(h1,h2,h3,h4,strong){color:#111711;}
body.page.design-system-executive[data-ambilight-contract="v6660"] main.nbc-page-shell [data-ambient="evidence"] :is(p,li,dd,small){color:#4f5a53;}

/* Dark-surface contrast corrections verified across shared page families. */
body[data-case-system="v2"] .case2-section[data-ambient="instrument"] :is(.case2-section-title,.case2-intro,.case2-transfer-list,.case2-transfer-conclusion),
body[data-case-system="v2"] .case2-final-section :is(.case2-section-title,.case2-intro,h2,h3,strong),
body.page-barometer .baro-workbench :is(h2,h3,strong),
body.page-contact .ac-intake-panel :is(h2,h3,label>span,.ac-kicker),
body.page-contact .ac-decision-note :is(h2,h3,strong),
body.page-regional-intelligence :is(.authority-hero,.authority-section--visual,.authority-section--next) :is(h1,h2,h3,strong),
body.page-template-guide :is(.dg3-hero,.dg3-section:not(.dg3-section--soft)) :is(h1,h2,h3,strong){
  color:#f7f5f2!important;
  -webkit-text-fill-color:currentColor;
}
body[data-case-system="v2"] .case2-section[data-ambient="instrument"] :is(p,li,small),
body[data-case-system="v2"] .case2-final-section :is(p,li,small),
body.page-contact .ac-intake-panel :is(p,small),
body.page-contact .ac-decision-note p,
body.page-regional-intelligence :is(.authority-hero,.authority-section--visual,.authority-section--next) p,
body.page-template-guide :is(.dg3-hero,.dg3-section:not(.dg3-section--soft)) :is(p,li,small){
  color:rgba(247,245,242,.74)!important;
}

/* Barometer result is a readable interpretation surface, not ambient background. */
body.page-barometer .baro-finding{
  background:#f3f0e8!important;
  color:#111711!important;
}
body.page-barometer .baro-finding :is(h2,h3,h4,strong){color:#111711!important;}
body.page-barometer .baro-finding :is(p,span,small,li){color:#4f5a53!important;}
body.page-barometer .baro-finding :is(.baro-kicker,.r4-result-state){color:#276c40!important;}

/* Contact labels and entered values must remain readable on the dark intake panel. */
body.page-contact .ac-intake-panel input,
body.page-contact .ac-intake-panel textarea{color:#f7f5f2!important;caret-color:#8bcf9a;}
body.page-contact .ac-intake-panel input::placeholder,
body.page-contact .ac-intake-panel textarea::placeholder{color:rgba(247,245,242,.54)!important;}
body.page-contact .ac-intake-panel .lf-status[data-state="error"]{color:#ffb4ab!important;}

/* Legal documents are paper surfaces; the global field remains visible in hero/footer. */
body.page-legal .legal-content{
  background:#f3f0e8!important;
  color:#171d18!important;
}
body.page-legal .legal-content :is(h2,h3,h4,strong){color:#111711!important;}
body.page-legal .legal-content :is(p,li){color:#465149!important;}
body.page-legal .legal-content a{color:#215f37!important;}

/* 404 primary action: dark label on its light button. */
body.page-404 .p7-404-scene .btn-solid,
body.page-404 .p7-404-scene .btn-solid :is(span,strong){
  color:#07100b!important;
  -webkit-text-fill-color:#07100b!important;
}

/* Regional evidence grid: no clipped first card and no unexplained partial cards. */
body.page-regional-intelligence .authority-section>.wrap{min-width:0;}
body.page-regional-intelligence .regional-signal-grid,
body.page-regional-intelligence .regional-radius-grid{
  width:100%!important;
  max-width:100%!important;
  margin-inline:0!important;
  transform:none!important;
}
body.page-regional-intelligence .regional-signal-card{background:#fff!important;color:#17241d!important;}
body.page-regional-intelligence .regional-signal-card :is(h3,b,strong,a){color:#17241d!important;}
body.page-regional-intelligence .regional-signal-card p{color:#4d5952!important;}
@media (min-width:761px) and (max-width:1400px){
  body.page-regional-intelligence .regional-signal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:760px){
  body.page-regional-intelligence .regional-signal-grid,
  body.page-regional-intelligence .regional-radius-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.page-regional-intelligence .regional-signal-card,
  body.page-regional-intelligence .regional-radius-card{
    width:100%!important;
    min-height:0!important;
    padding:24px!important;
    flex:none!important;
  }
}

/* User control for the desktop case film. */
body[data-case-system="v2"] .case2-film-pause{
  position:absolute;
  z-index:8;
  right:clamp(18px,2.5vw,34px);
  top:clamp(64px,6vw,82px);
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border:1px solid var(--case2-line-strong,rgba(247,245,242,.22));
  border-radius:999px;
  background:rgba(8,12,10,.78);
  color:var(--case2-paper,#f7f5f2);
  font:500 10px/1 var(--mono,monospace);
  letter-spacing:.07em;
  text-transform:uppercase;
  cursor:pointer;
}
body[data-case-system="v2"] .case2-film-pause:hover,
body[data-case-system="v2"] .case2-film-pause:focus-visible{border-color:var(--case2-green,#8bcf9a);}
body[data-case-system="v2"] .case2-film-pause[hidden]{display:none!important;}
@media (max-width:760px),(prefers-reduced-motion:reduce){
  body[data-case-system="v2"] .case2-film-pause{display:none!important;}
}

/* Compact header remains opaque enough over dense visual sections. */
body.page .site-header.compact{background:rgba(7,13,10,.96)!important;backdrop-filter:blur(14px);}

@media (prefers-contrast:more){
  body.page .site-header{background:#070d0a!important;}
  body.page-contact .ac-intake-panel :is(p,small){color:#f7f5f2!important;}
}


/* v6.679 · Mobile proof/editorial surfaces: preserve the authored paper plane.
   The global ambient owner may remain visible around these sections, but must not
   remove the paper background while the component typography is dark. */
@media (max-width:760px){
  body[data-phase74-family="knowledge-index"] .h7-topic-entry,
  body[data-phase74-family="knowledge-index"] [data-p74-library="editorial-index"],
  body[data-phase74-family="regional-intelligence"] [data-p74-regional="evidence"],
  body[data-phase74-family="regional-intelligence"] [data-p74-chapter="4"]{
    background:#f2f0e9!important;
    color:#111711!important;
  }
  body[data-phase74-family="knowledge-index"] .h7-topic-entry :is(h2,h3,strong),
  body[data-phase74-family="knowledge-index"] [data-p74-library="editorial-index"] :is(h2,h3,strong),
  body[data-phase74-family="regional-intelligence"] [data-p74-regional="evidence"] :is(h2,h3,strong,dt),
  body[data-phase74-family="regional-intelligence"] [data-p74-chapter="4"] :is(h2,h3,strong,dt){
    color:#111711!important;
  }
  body[data-phase74-family="knowledge-index"] .h7-topic-entry :is(p,small),
  body[data-phase74-family="knowledge-index"] [data-p74-library="editorial-index"] :is(p,span,small),
  body[data-phase74-family="regional-intelligence"] [data-p74-regional="evidence"] :is(p,li,dd,small),
  body[data-phase74-family="regional-intelligence"] [data-p74-chapter="4"] :is(p,li,dd,small){
    color:#596059!important;
  }
  body[data-phase74-family="knowledge-index"] .h7-topic-entry .nbc-eyebrow,
  body[data-phase74-family="regional-intelligence"] [data-p74-regional="evidence"] .nbc-eyebrow,
  body[data-phase74-family="regional-intelligence"] [data-p74-chapter="4"] .nbc-eyebrow{
    color:#3f7950!important;
  }
}


/*! NBC v6.681 · Welle 3A / P3 · Vertrauen, Nachvollziehbarkeit, Accessibility */
/* F-03: sticky navigation remains legible over dense content without changing geometry. */
.page.is-scrolled .site-header,
.site-header.compact,
.site-header[data-scrolled="true"]{
  background:rgba(10,14,12,.94)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
  backdrop-filter:blur(18px) saturate(1.08);
  border-bottom-color:rgba(255,255,255,.12)!important;
}
@media(max-width:760px){
  .page.is-scrolled .site-header,.site-header.compact,.site-header[data-scrolled="true"]{background:rgba(10,14,12,.97)!important}
}
/* Welle-2 service scope: compact evidence, not a new card system. */
.wave2-service-scope{border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14);padding:22px 0;background:transparent}
.wave2-service-scope__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.wave2-service-scope__item{padding:2px 24px 2px 0;margin-right:24px;border-right:1px solid rgba(255,255,255,.12)}
.wave2-service-scope__item:last-child{border-right:0;margin-right:0;padding-right:0}
.wave2-service-scope__item span{display:block;margin-bottom:8px;font:500 8px/1.2 var(--mono);letter-spacing:.09em;text-transform:uppercase;color:var(--green)}
.wave2-service-scope__item strong{display:block;font-size:15px;line-height:1.35;font-weight:600}
.wave2-service-scope__item p{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
@media(max-width:900px){.wave2-service-scope__grid{grid-template-columns:1fr 1fr;row-gap:22px}.wave2-service-scope__item:nth-child(2){border-right:0}.wave2-service-scope__item:nth-child(3),.wave2-service-scope__item:nth-child(4){padding-top:20px;border-top:1px solid rgba(255,255,255,.1)}}
@media(max-width:560px){.wave2-service-scope__grid{grid-template-columns:1fr}.wave2-service-scope__item{border-right:0!important;border-top:1px solid rgba(255,255,255,.1);padding:18px 0!important;margin:0}.wave2-service-scope__item:first-child{border-top:0;padding-top:0!important}}
/* Barometer: model-transparency note sits with the control, not in a detached disclaimer. */
.baro-model-note{margin:10px 0 0;max-width:720px;color:var(--muted);font-size:11px;line-height:1.5}
.baro-model-note strong{color:var(--paper);font-weight:600}
/* Freshness signal on editorial pages. */
.nbc-hero-proof .nbc-review-stand{opacity:.82}

.lf-mail-fallback{display:inline-block;margin-top:10px;color:var(--paper);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(134,200,149,.75)}
.lf-mail-fallback:hover,.lf-mail-fallback:focus-visible{color:var(--green);text-decoration-color:var(--green)}

/* v6.681 · semantic heading parity + mobile guide-meta regression guard */
body.page-service.service-erp .nbc-instrument-intro__copy #instrument-intro-provider{max-width:13ch;margin:14px 0 18px;color:#f5f5f1;font-size:clamp(42px,5.2vw,76px);line-height:.94;letter-spacing:-.05em;font-weight:800}
body.page-service.service-ki .service-instrument-prestart__copy #delegation-intro-title{max-width:13ch;margin:14px 0 18px;color:#f5f5f1;font-size:clamp(42px,5.2vw,76px);line-height:.94;letter-spacing:-.05em;font-weight:800}
@media(max-width:860px){body.page-service.service-erp .nbc-instrument-intro__copy #instrument-intro-provider,body.page-service.service-ki .service-instrument-prestart__copy #delegation-intro-title{font-size:clamp(38px,11vw,54px)}}
@media(max-width:420px){body.page-service.service-erp .nbc-instrument-intro__copy #instrument-intro-provider,body.page-service.service-ki .service-instrument-prestart__copy #delegation-intro-title{font-size:clamp(35px,10.5vw,44px);margin-block:10px 13px}}
@media(max-width:760px){body[data-proof-story="guide-ai"] .dg3-meta li{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}}
/* P3 F-45: 404 template uses the lean five-face font set only. */
body.page-404 main>section::after{font-weight:800}
body.page-404[data-phase7-governance="v6640"] .site-footer[data-p7-footer] .footer-mail{font-weight:700!important}
