/* AVIX Water v100 — final agreed polish, loaded LAST. */
:root{
  --avix-brand:#4BC8EF;
  --avix-brand-text:#147C9D;
  --avix-navy:#071C22;
  --avix-ink:#12272E;
  --avix-body:#26383E;
  --avix-white:#FFFFFF;
  --avix-warm:#F7F6F2;
  --avix-card:#F8FAFA;
  --avix-line:#E2E8E9;
}

/* --------------------------------------------------------------------------
   GLOBAL LIGHT SURFACES — white page sections, subtle nested cards only
   -------------------------------------------------------------------------- */
html body main :is(
  .sr-home-scientific-need,
  .sr-standard,
  .sr-market,
  .sr-science-profile,
  .s12-manufacturing,
  .sr-avix-science,
  .sr-product-platform,
  .sr-portfolio,
  .co18-section--soft,
  .co18-section--upside,
  .co18-section:not(.co18-section--dark),
  .team9-founder-section,
  .team9-build,
  .fp2-profile,
  .fp2-water,
  .fp-ventures,
  .tc-contact-path,
  .tc-contact-main,
  .avix-utility-body,
  .avix-utility-prefooter,
  .av5-cta,
  .tc-prefooter,
  .fp-cta,
  .co18-prefooter
){
  background-color:#fff!important;
}
html body .sr-standard-grid,
html body .team9-build-card,
html body .co18-proof-card,
html body .co18-backbone,
html body .co18-partner-grid article,
html body .fp2-profile-card,
html body .fp2-water-grid article,
html body .avix-source-entry{
  background-color:var(--avix-card)!important;
}

/* --------------------------------------------------------------------------
   TOP CHROME — warm-white announcement, brand-blue text, deep AVIX navy menu
   -------------------------------------------------------------------------- */
html body:not(.page-diagram) :is(.av5-topline,.top-strip){
  background:var(--avix-warm)!important;
  color:var(--avix-brand)!important;
  border-bottom:1px solid rgba(18,39,46,.08)!important;
  box-shadow:none!important;
}
html body:not(.page-diagram) :is(.av5-topline .av5-topline-centre,.top-strip .container){
  color:var(--avix-brand)!important;
}
html body:not(.page-diagram) :is(.av5-topline span,.top-strip span){
  color:var(--avix-brand)!important;
  -webkit-text-fill-color:var(--avix-brand)!important;
  font-weight:800!important;
}
html body:not(.page-diagram) :is(.av5-topline i,.top-strip i){
  background:rgba(75,200,239,.72)!important;
}
html body:not(.page-diagram) :is(.av5-header,.site-header){
  background:var(--avix-navy)!important;
  color:var(--avix-warm)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.08),0 10px 26px rgba(7,28,34,.12)!important;
  backdrop-filter:none!important;
}
@media(min-width:901px){
  html body:not(.page-diagram) .av5-nav>a:not(.av5-nav-contact),
  html body:not(.page-diagram) .main-nav>a.nav-link:not(.nav-contact-cta){
    color:var(--avix-warm)!important;
  }
  html body:not(.page-diagram) .av5-nav>a:not(.av5-nav-contact)::after{
    background:var(--avix-brand)!important;
  }
  html body:not(.page-diagram) .av5-nav>a:not(.av5-nav-contact):hover,
  html body:not(.page-diagram) .av5-nav>a:not(.av5-nav-contact):focus-visible,
  html body:not(.page-diagram) .main-nav>a.nav-link:not(.nav-contact-cta):hover,
  html body:not(.page-diagram) .main-nav>a.nav-link:not(.nav-contact-cta):focus-visible{
    color:var(--avix-brand)!important;
  }
  html body:not(.page-diagram) :is(.av5-nav>a.av5-nav-contact,.main-nav>a.nav-contact-cta){
    min-height:44px!important;
    padding:0 20px!important;
    border-radius:10px!important;
    background:var(--avix-brand)!important;
    color:var(--avix-navy)!important;
    font-weight:780!important;
  }
  html body:not(.page-diagram) :is(.av5-nav>a.av5-nav-contact,.main-nav>a.nav-contact-cta):hover,
  html body:not(.page-diagram) :is(.av5-nav>a.av5-nav-contact,.main-nav>a.nav-contact-cta):focus-visible{
    background:#67D2F2!important;
    color:var(--avix-navy)!important;
  }
}

/* White section submenu: blue numbers, dark labels, minimal border. */
html body:not(.page-diagram) .avix-section-nav,
html body:not(.page-diagram) .avix-section-nav__viewport,
html body:not(.page-diagram) .avix-section-nav__inner{
  background:#fff!important;
}
html body:not(.page-diagram) .avix-section-nav{
  border-top:0!important;
  border-bottom:1px solid var(--avix-line)!important;
  box-shadow:0 4px 14px rgba(18,39,46,.035)!important;
}
html body:not(.page-diagram) .avix-section-nav__num{color:var(--avix-brand)!important}
html body:not(.page-diagram) .avix-section-nav__label{color:#52656B!important}
html body:not(.page-diagram) .avix-section-nav__link:hover .avix-section-nav__label,
html body:not(.page-diagram) .avix-section-nav__link:focus-visible .avix-section-nav__label,
html body:not(.page-diagram) .avix-section-nav__link.is-active .avix-section-nav__label{color:var(--avix-brand-text)!important}

/* Mobile menu keeps the approved single-divider architecture, with the new navy header. */
@media(max-width:900px){
  html body:not(.page-diagram) .av5-nav{
    background:var(--avix-warm)!important;
  }
  html body:not(.page-diagram) .av5-nav>a:not(.av5-nav-contact){
    color:var(--avix-ink)!important;
    border-bottom:1px solid rgba(75,200,239,.24)!important;
  }
  html body:not(.page-diagram) .av5-nav .av5-nav-contact{
    border-radius:10px!important;
    background:var(--avix-brand)!important;
    color:var(--avix-navy)!important;
  }
  html body:not(.page-diagram) .av5-menu span,
  html body:not(.page-diagram) .menu-toggle span{background:var(--avix-warm)!important}
}

/* --------------------------------------------------------------------------
   REFERENCES — normal number only; hover/touch = tiny glow box around number
   -------------------------------------------------------------------------- */
html body .avix-reference-popover{display:none!important;visibility:hidden!important;pointer-events:none!important}
html body main sup,
html body main sup a{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html body main sup a{
  position:relative!important;
  z-index:0!important;
  isolation:isolate!important;
  color:var(--avix-brand-text)!important;
  text-decoration:none!important;
  text-shadow:none!important;
}
html body main sup a::before{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  inset:-3px -5px!important;
  border:1px solid rgba(75,200,239,.72)!important;
  border-radius:4px!important;
  background:rgba(75,200,239,.10)!important;
  box-shadow:0 0 8px rgba(75,200,239,.34)!important;
  opacity:0!important;
  transform:scale(.94)!important;
  transition:opacity .14s ease,transform .14s ease!important;
  pointer-events:none!important;
}
html body main sup a:hover::before,
html body main sup a:focus-visible::before,
html body main sup a:active::before,
html body main sup a.is-ref-touch::before{
  opacity:1!important;
  transform:scale(1)!important;
}
html body main sup a:hover,
html body main sup a:focus-visible,
html body main sup a:active{
  color:var(--avix-brand-text)!important;
  text-shadow:none!important;
}

/* --------------------------------------------------------------------------
   HOME — compact two-format pricing architecture
   -------------------------------------------------------------------------- */
html body.avix-home-page #market-opportunity .v76-format-architecture{
  margin-top:38px!important;
  border-top:1px solid var(--avix-line)!important;
  border-bottom:1px solid var(--avix-line)!important;
}
html body.avix-home-page #market-opportunity .v76-format-heading{
  padding:22px 20px 20px!important;
}
html body.avix-home-page #market-opportunity .v76-format-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0 32px!important;
  align-items:start!important;
  border-top:1px solid var(--avix-line)!important;
}
html body.avix-home-page #market-opportunity .v76-format-standard{
  grid-column:1/-1!important;
  grid-row:1!important;
  min-height:0!important;
  height:auto!important;
  padding:18px 24px 16px!important;
  border:0!important;
  border-bottom:1px solid var(--avix-line)!important;
  border-radius:0!important;
  background:var(--avix-card)!important;
}
html body.avix-home-page #market-opportunity .v76-format-standard::before{
  width:38px!important;
  margin-bottom:10px!important;
}
html body.avix-home-page #market-opportunity .v76-format-standard strong{margin-top:6px!important}
html body.avix-home-page #market-opportunity .v76-format-standard p{margin-top:7px!important}
html body.avix-home-page #market-opportunity .v76-format-offer{
  grid-row:2!important;
  min-height:0!important;
  padding:28px 36px 30px!important;
  text-align:left!important;
  align-items:flex-start!important;
  background:#fff!important;
  border:0!important;
}
html body.avix-home-page #market-opportunity .v76-format-offer--right{
  text-align:left!important;
}
html body.avix-home-page #market-opportunity .v76-format-offer ul{
  width:100%!important;
  padding:0!important;
  text-align:left!important;
}
html body.avix-home-page #market-opportunity .v76-format-offer li,
html body.avix-home-page #market-opportunity .v76-format-offer--right li{
  position:relative!important;
  display:block!important;
  padding-left:15px!important;
  text-align:left!important;
}
html body.avix-home-page #market-opportunity .v76-format-offer li::before,
html body.avix-home-page #market-opportunity .v76-format-offer--right li::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:.58em!important;
  display:block!important;
  width:5px!important;
  height:5px!important;
  border-radius:50%!important;
  background:var(--avix-brand)!important;
  transform:none!important;
}

/* Readiness card 03: authored two-line paragraph on desktop. */
@media(min-width:901px){
  html body.avix-home-page .sr-readiness-track .v100-two-line span{
    display:block!important;
    white-space:nowrap!important;
  }
}

/* --------------------------------------------------------------------------
   FOOTER — compact top row, exact row alignment, single bullet dot
   -------------------------------------------------------------------------- */
html body .avix-global-footer{
  padding-top:42px!important;
}
html body .avix-global-footer .avix-footer-top{
  align-items:start!important;
  padding-bottom:22px!important;
}
html body .avix-global-footer :is(.avix-footer-brand,.avix-footer-column,.avix-footer-contact){
  min-height:0!important;
}
html body .avix-global-footer .avix-footer-logo-link{margin-bottom:18px!important}
html body .avix-global-footer .avix-footer-tagline{margin:0 0 16px!important;line-height:1.48!important}
html body .avix-global-footer .avix-footer-proof{
  list-style:none!important;
  padding:0!important;
}
html body .avix-global-footer .avix-footer-proof li{
  list-style:none!important;
  list-style-type:none!important;
  padding-left:15px!important;
}
html body .avix-global-footer .avix-footer-proof li::marker{
  content:""!important;
  color:transparent!important;
  font-size:0!important;
}
html body .avix-global-footer .avix-footer-proof li::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:50%!important;
  width:5px!important;
  height:5px!important;
  border-radius:50%!important;
  background:var(--avix-brand)!important;
  transform:translateY(-50%)!important;
  box-shadow:none!important;
}
html body .avix-global-footer .avix-footer-offices{
  margin-top:0!important;
}

/* Desktop: Explore, Opportunity and Contact share the same five content rows.
   EMAIL = Home / Commercial opportunity. LinkedIn = Partnership enquiry. */
@media(min-width:768px){
  html body .avix-global-footer .avix-footer-column,
  html body .avix-global-footer .avix-footer-contact{
    display:grid!important;
    grid-template-rows:20px repeat(5,20px)!important;
    grid-auto-flow:row!important;
    row-gap:14px!important;
    align-items:center!important;
    align-content:start!important;
  }
  html body .avix-global-footer .avix-footer-column h2,
  html body .avix-global-footer .avix-footer-contact h2{
    margin:0!important;
    align-self:center!important;
  }
  html body .avix-global-footer .avix-footer-column a{
    margin:0!important;
    align-self:center!important;
  }
  html body .avix-global-footer .avix-footer-contact-block{
    display:contents!important;
    margin:0!important;
  }
  html body .avix-global-footer .avix-footer-contact-block span,
  html body .avix-global-footer .avix-footer-contact-block a,
  html body .avix-global-footer .avix-footer-linkedin{
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    align-self:center!important;
  }
  html body .avix-global-footer .avix-footer-contact-block span{
    line-height:20px!important;
  }
  html body .avix-global-footer .avix-footer-contact-block a{
    line-height:20px!important;
  }
  html body .avix-global-footer .avix-footer-linkedin{
    color:var(--avix-footer-white,#F7F6F2)!important;
    font-size:15px!important;
    font-weight:420!important;
    line-height:20px!important;
    border:0!important;
    border-radius:4px!important;
    background:transparent!important;
  }
  html body .avix-global-footer .avix-footer-linkedin:hover,
  html body .avix-global-footer .avix-footer-linkedin:focus-visible{
    color:var(--avix-brand)!important;
  }
}

@media(max-width:767px){
  html body.avix-home-page #market-opportunity .v76-format-architecture{margin-top:26px!important}
  html body.avix-home-page #market-opportunity .v76-format-heading{padding:18px 0 16px!important}
  html body.avix-home-page #market-opportunity .v76-format-grid{
    gap:10px!important;
  }
  html body.avix-home-page #market-opportunity .v76-format-standard{
    padding:14px 14px 13px!important;
    border:1px solid var(--avix-line)!important;
    border-radius:12px!important;
  }
  html body.avix-home-page #market-opportunity .v76-format-standard p{display:block!important;font-size:11.5px!important;line-height:1.38!important}
  html body.avix-home-page #market-opportunity .v76-format-offer{
    padding:16px!important;
    border:1px solid var(--avix-line)!important;
    border-radius:14px!important;
  }
  html body .avix-global-footer{padding-top:34px!important}
  html body .avix-global-footer .avix-footer-top{padding-bottom:20px!important}
  html body .avix-global-footer .avix-footer-logo-link{margin-bottom:14px!important}
  html body .avix-global-footer .avix-footer-tagline{margin-bottom:12px!important}
}
@media(max-width:380px){
  html body.avix-home-page #market-opportunity .v76-format-grid{grid-template-columns:1fr!important}
  html body.avix-home-page #market-opportunity .v76-format-standard{grid-column:1!important}
  html body.avix-home-page #market-opportunity .v76-format-offer{grid-row:auto!important}
}

/* Mobile footer specificity hardening: retain the agreed 2-column/3-column compact layout. */
@media(max-width:767px){
  html body:not(.page-diagram) .avix-global-footer .avix-footer-top{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:22px 16px!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-brand{
    grid-column:1/-1!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-column{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    width:auto!important;
    min-width:0!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-column a{
    margin-bottom:10px!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-contact{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
    gap:10px 12px!important;
    width:100%!important;
    align-items:end!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-contact h2{
    grid-column:1/-1!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-contact-block{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
    padding:0!important;
    margin:0!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-linkedin{
    margin:0!important;
    padding:0 0 1px!important;
    min-height:0!important;
    align-self:end!important;
    color:var(--avix-brand)!important;
    white-space:nowrap!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-offices{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    margin-top:0!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-office{
    min-width:0!important;
    padding:18px 12px 18px 0!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-office + .avix-footer-office{
    padding-left:12px!important;
    padding-right:0!important;
    border-left:1px solid rgba(255,255,255,.14)!important;
    border-top:0!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-office p{
    overflow-wrap:anywhere!important;
  }
}
@media(max-width:350px){
  html body:not(.page-diagram) .avix-global-footer .avix-footer-offices{
    grid-template-columns:1fr!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-office + .avix-footer-office{
    padding-left:0!important;
    border-left:0!important;
    border-top:1px solid rgba(255,255,255,.14)!important;
  }
}

@media(max-width:767px){
  html body:not(.page-diagram) .avix-global-footer .avix-footer-contact{
    grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) auto!important;
    gap:8px!important;
  }
  html body:not(.page-diagram) .avix-global-footer .avix-footer-contact-block a{
    font-size:11.5px!important;
    letter-spacing:-.01em!important;
  }
}
