/* NexusDPP Global Contrast Pass 17 October 2026
   Independent stylesheet, additive only. Leaves existing page/layout assets untouched. */
:root {--nx-readable:#0b2c46;--nx-readable-secondary:#395768}
/* Mobile drawer: original navy sidebar, readable buttons and white dropdown with navy text */
@media (max-width:1240px){
  .site-header .main-nav,.site-header .main-nav.is-open{background:#06152f!important;color:#f4faff!important}
  .site-header .main-nav > a:not(.nav-cta),.site-header .main-nav .nav-group-toggle{color:#f5fbff!important;-webkit-text-fill-color:#f5fbff!important;opacity:1!important}
  .site-header .main-nav .nav-group-toggle > span{color:#b4d9e5!important}
  .site-header .main-nav .nav-dropdown,.site-header .main-nav .nav-dropdown-wide{background:#f9fcfe!important;color:#082942!important;border:1px solid #b8d4e0!important;box-shadow:none!important}
  .site-header .main-nav .nav-dropdown a,.site-header .main-nav .nav-dropdown a span,.site-header .main-nav .nav-dropdown a:visited span{color:#0a2942!important;-webkit-text-fill-color:#0a2942!important;opacity:1!important}
  .site-header .main-nav .nav-dropdown a small{color:#36546a!important;-webkit-text-fill-color:#36546a!important}
  .site-header .main-nav .nav-dropdown a:hover,.site-header .main-nav .nav-dropdown a.is-active{background:#dceff6!important}
  .site-header .main-nav .nav-dropdown .nav-new{color:#063550!important;-webkit-text-fill-color:#063550!important;background:#34dbce!important}
  .site-header .main-nav .nav-cta{color:#fff!important;-webkit-text-fill-color:#fff!important}
}
@media (min-width:1241px){
  .site-header .nav-dropdown,.site-header .nav-dropdown-wide{background:#fff!important}
  .site-header .nav-dropdown a span{color:#0b2c46!important}
  .site-header .nav-dropdown a small{color:#38566d!important}
}
/* Light surfaces: no text may inherit the dark-section white/washed-out palette. */
.section-white .section-header h2,.section-white .section-header h3,.section-white .section-header p,
.section-white .section-header .lead,.section-white > .container > h2,
.section-white .article-callout h2,.section-white .article-callout h3,
.section-white .article-callout p,.section-white .article-callout li,
.section-white .card:not(.card-dark) h3,.section-white .card:not(.card-dark) h2,
.section-white .card:not(.card-dark) p,.section-white .card:not(.card-dark) li,
.sector-card h3,.sector-card p,
.packaging-timeline article h3,.packaging-timeline article p,
.packaging-demo-panel h3,.packaging-demo-panel p,
.news-card h3,.news-card p,.guide-card h3,.guide-card p,
.home-sectors .sector-rail-intro h3,.home-sectors .sector-rail-intro p,
.home-sectors .sector-rail>a strong,.home-sectors .sector-rail>a small {
  color:var(--nx-readable)!important;-webkit-text-fill-color:var(--nx-readable)!important;
}
/* Explicit light cards, badges, breadcrumbs on white backgrounds */
.section-white .section-header .lead,.section-white .article-callout p,
.section-white .card:not(.card-dark) p,.sector-card p,
.packaging-timeline article p,.packaging-demo-panel p,.news-card p,.guide-card p,
.home-sectors .sector-rail-intro p,.home-sectors .sector-rail>a small{
  color:var(--nx-readable-secondary)!important;-webkit-text-fill-color:var(--nx-readable-secondary)!important
}
/* Preserve bright text within intentionally dark panels */
.section-dark h1,.section-dark h2,.section-dark h3,
.section-dark p,.section-dark li,.section-dark .lead,
.packaging-data-section h2,.packaging-data-section .lead,
.packaging-data-section .packaging-data-grid span,
.page-hero h1,.page-hero .lead,
.hero.home-hero-passport h1,.hero.home-hero-passport .lead{ -webkit-text-fill-color:initial!important }
.section-dark h1,.section-dark h2,.section-dark h3{color:#f9fdff!important}
.section-dark p,.section-dark li,.section-dark .lead{color:#d4e6f0!important}
/* Accessible hover/focus on nav and links */
.site-header a:focus-visible,.site-header button:focus-visible,
a.button:focus-visible,button.button:focus-visible{outline:3px solid #00baad!important;outline-offset:3px!important}


/* NexusDPP contrast hotfix 2026-10-17 - preserves the intended light/dark section backgrounds. */
/* The broad .section background reset in the old brand stylesheet has been removed separately. */
/* Trade compliance: the dossier section must be dark, including its descriptive paragraph. */
.section.trade-output-section {
  background:linear-gradient(135deg,#06152f 0%,#0a2f4d 100%)!important;
  color:#f8fcff!important;
}
.section.trade-output-section h2,
.section.trade-output-section .trade-output-list span {
  color:#f9fdff!important;
  -webkit-text-fill-color:#f9fdff!important;
}
.section.trade-output-section .trade-output-copy .lead {
  color:#dbeaf1!important;
  -webkit-text-fill-color:#dbeaf1!important;
}
.section.trade-output-section .trade-output-list>div{
  background:rgba(255,255,255,.07)!important;
  border-color:rgba(184,225,234,.27)!important;
}
/* Dark and colored sections should not inherit light-surface typography. */
.section.section-dark {
  color:#f8fcff!important;
  background-color:#071b34!important;
}
.section.section-dark h1,.section.section-dark h2,.section.section-dark h3,
.section.section-dark .section-header h2 {
  color:#f9fdff!important;
  -webkit-text-fill-color:#f9fdff!important;
}
.section.section-dark p,.section.section-dark .lead,.section.section-dark li {
  color:#d9e9f0!important;
  -webkit-text-fill-color:#d9e9f0!important;
}
.section.packaging-data-section h2,.section.packaging-data-section .section-header h2,
.section.packaging-data-section .lead,.section.packaging-data-section .section-header .lead {
  color:#f6fcff!important;
  -webkit-text-fill-color:#f6fcff!important;
}
.section.packaging-data-section .lead,.section.packaging-data-section .section-header .lead {
  color:#dcecf5!important;
  -webkit-text-fill-color:#dcecf5!important;
}
/* Dark text on the light sector list, including mobile. */
@media(max-width:1240px){
  .site-header .main-nav .nav-dropdown a,
  .site-header .main-nav .nav-dropdown a span {
    color:#092b44!important;
    -webkit-text-fill-color:#092b44!important;
  }
}

/* Wine insight panels are dark cards nested inside otherwise light sections. */
.wine-highlight-band .lead,.wine-highlight-band p,
.wine-highlight-band .list-check li,.wine-highlight-band .list-check strong {
 color:#dbeaf1!important;-webkit-text-fill-color:#dbeaf1!important;
}
.wine-highlight-band h2 {color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Bilingual full-site fixes, desktop and mobile. Original navy menu is retained. */
@media(max-width:1240px){
.site-header .main-nav .nav-dropdown,.site-header .main-nav .nav-dropdown-wide{background:#f9fcfe!important;}
.site-header .main-nav .nav-dropdown a span,.site-header .main-nav .nav-dropdown a,
.site-header .main-nav .nav-dropdown a:visited span{color:#082942!important;-webkit-text-fill-color:#082942!important;}
.site-header .main-nav .nav-dropdown a small{color:#36546a!important;-webkit-text-fill-color:#36546a!important;}
.site-header .main-nav>.nav-group>.nav-group-toggle{color:#f5fbff!important;-webkit-text-fill-color:#f5fbff!important;}
}
/* On light article panels headings and body must remain visible. Do not override intentionally dark panels. */
.section.section-white .article-callout:not(.card-dark) h2,
.section.section-white .article-callout:not(.card-dark) p,
.section.section-white .card:not(.card-dark) h3,
.section.section-white .card:not(.card-dark) p,
.section.section-white .section-header .eyebrow,
.section.section-white .section-header h2 {
 color:#12354c!important;-webkit-text-fill-color:#12354c!important;
}
.section.trade-output-section .trade-output-list>div,
.section.trade-output-section .trade-output-copy,
.section.trade-output-section .trade-output-list span{opacity:1!important;}
.section.trade-output-section .trade-output-list span{color:#f6fcff!important;-webkit-text-fill-color:#f6fcff!important;}
.section.trade-output-section .trade-output-copy h2{color:#fff!important;-webkit-text-fill-color:#fff!important;}
.nx-home .nx-hero h1,.nx-home .nx-sec-heading h2,.nx-home .nx-product-copy h2{opacity:1!important;}

/* Targeted light-card and dark-panel contrast fixes validated on IT/EN. */
.section.section-dark .feature-row p,
.section.section-dark .feature-row li,
.section.section-dark .source-list li,
.section.section-dark .quote-block p,
.section.section-dark .quote-block small {
 color:#36566b!important;-webkit-text-fill-color:#36566b!important;
}
.section.section-dark .feature-row>div:first-child{color:#123b56!important;-webkit-text-fill-color:#123b56!important;}
.section.section-dark .source-list a{color:#006c90!important;-webkit-text-fill-color:#006c90!important;}
.section.section-dark .eyebrow{color:#78f0df!important;-webkit-text-fill-color:#78f0df!important;}
.platform-flow-panel .platform-flow-track li,
.platform-flow-panel .platform-flow-track li span,
.platform-flow-panel .platform-activity li {
 color:#365569!important;-webkit-text-fill-color:#365569!important;
}
.platform-flow-panel .platform-activity strong{color:#365569!important;-webkit-text-fill-color:#365569!important;}
.platform-flow-panel .platform-activity small{color:#486577!important;-webkit-text-fill-color:#486577!important;}
.ingestion-summary>div:first-child h3{color:#f9fdff!important;-webkit-text-fill-color:#f9fdff!important;}
.ingestion-summary>div:first-child p{color:#d7e8ef!important;-webkit-text-fill-color:#d7e8ef!important;}
.site-footer p,.site-footer .footer-brand p{color:#b9cfdd!important;-webkit-text-fill-color:#b9cfdd!important;}

/* Contact panel and alternative dark-section variants across both languages. */
.contact-panel p,.contact-panel .lead{color:#d7ecf3!important;-webkit-text-fill-color:#d7ecf3!important;}
.contact-panel .eyebrow{color:#83eee0!important;-webkit-text-fill-color:#83eee0!important;}
.section-dark .eyebrow{color:#78f0df!important;-webkit-text-fill-color:#78f0df!important;}
@media(max-width:1240px){
  .site-header .main-nav.is-open{transform:translateX(0)!important;}
}

/* Fix inherited desktop dropdown centering on small screens. */
@media(max-width:1240px){
  .site-header .main-nav .nav-group.is-open>.nav-dropdown,
  .site-header .main-nav .nav-group:hover>.nav-dropdown {
    position:static!important;left:auto!important;right:auto!important;
    transform:none!important;width:100%!important;max-width:100%!important;
    box-sizing:border-box!important;margin:7px 0 12px!important;
  }
  .site-header .main-nav .nav-group.is-open>.nav-dropdown a{
    display:block!important;width:100%!important;white-space:normal!important;
  }
}
