/* AVIX Water v101 — final light-surface system + T-Booster footer geometry sync.
   Loaded last on every page. */
:root{
  --avix-brand:#4BC8EF;
  --avix-brand-text:#147C9D;
  --avix-navy:#071C22;
  --avix-ink:#12272E;
  --avix-body:#26383E;
  --avix-white:#FFFFFF;
  --avix-warm:#F7F6F2;
  --avix-line:#E2E8E9;
}

/* --------------------------------------------------------------------------
   LIGHT SURFACES — every normal light section is pure white.
   Dark authored sections remain dark. Pre-footers are the one warm-light break.
   -------------------------------------------------------------------------- */
html body:not(.page-diagram) main :is(
  .sr-home-scientific-need,
  .sr-standard,
  .sr-market,
  .sr-science-profile,
  .s12-manufacturing,
  .sr-avix-science,
  .s12-sources,
  .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-404-parent
){
  background-color:#FFFFFF!important;
}

/* Pre-footer = deliberate warm-white transition into the dark footer. */
html body:not(.page-diagram) main :is(
  .av5-cta,
  .tc-prefooter,
  .fp-cta,
  .co18-prefooter,
  .avix-utility-prefooter
){
  background:#F7F6F2!important;
  background-image:none!important;
  color:#12272E!important;
}
html body:not(.page-diagram) main :is(
  .av5-cta,
  .tc-prefooter,
  .fp-cta,
  .co18-prefooter,
  .avix-utility-prefooter
) :is(h2,h2 span,h3){
  color:#12272E!important;
  -webkit-text-fill-color:#12272E!important;
}
html body:not(.page-diagram) main :is(
  .av5-cta,
  .tc-prefooter,
  .fp-cta,
  .co18-prefooter,
  .avix-utility-prefooter
) :is(p,li,address){
  color:#40545A!important;
}
html body:not(.page-diagram) main :is(
  .av5-cta,
  .tc-prefooter,
  .fp-cta,
  .co18-prefooter,
  .avix-utility-prefooter
) :is(.av5-eyebrow,.eyebrow,.avix-utility-prelabel){
  color:#147C9D!important;
  -webkit-text-fill-color:#147C9D!important;
}
html body:not(.page-diagram) main :is(
  .av5-cta,
  .tc-prefooter,
  .fp-cta,
  .co18-prefooter
) .av5-button--aqua{
  background:#4BC8EF!important;
  border-color:#4BC8EF!important;
  color:#071C22!important;
}

/* --------------------------------------------------------------------------
   FOOTER — desktop geometry follows the T-Booster footer rhythm.
   Explore/Opportunity keep a normal compact list rhythm. Contact is NOT
   bottom-forced: Email and Web are grouped naturally, while LinkedIn lands
   on the Partnership enquiry row through deliberate, small internal spacing.
   -------------------------------------------------------------------------- */
@media (min-width:1201px){
  html body .avix-global-footer{
    padding:40px 0 24px!important;
  }
  html body .avix-global-footer .avix-footer-shell{
    width:calc(100% - 64px)!important;
    max-width:1880px!important;
    margin:0 auto!important;
    padding:0!important;
  }
  html body .avix-global-footer .avix-footer-top{
    display:grid!important;
    grid-template-columns:minmax(300px,1.38fr) minmax(145px,.70fr) minmax(220px,.94fr) minmax(185px,.72fr)!important;
    gap:40px!important;
    align-items:start!important;
    margin:0!important;
    padding:0 0 24px!important;
    border-bottom:1px solid var(--avix-footer-line,rgba(255,255,255,.14))!important;
  }
  html body .avix-global-footer :is(.avix-footer-brand,.avix-footer-column,.avix-footer-contact){
    min-height:0!important;
    height:auto!important;
  }

  /* Brand block stays compact and never dictates extra footer height. */
  html body .avix-global-footer .avix-footer-logo-link{
    margin:0 0 16px!important;
  }
  html body .avix-global-footer .avix-footer-logo{
    width:255px!important;
  }
  html body .avix-global-footer .avix-footer-tagline{
    margin:0 0 12px!important;
    max-width:430px!important;
    font-size:14.5px!important;
    line-height:1.48!important;
  }
  html body .avix-global-footer .avix-footer-proof{
    column-gap:28px!important;
    row-gap:5px!important;
    margin:0!important;
  }
  html body .avix-global-footer .avix-footer-proof li{
    padding-left:14px!important;
    font-size:13.5px!important;
    line-height:1.35!important;
  }
  html body .avix-global-footer .avix-footer-proof li::marker{
    content:""!important;
    font-size:0!important;
  }
  html body .avix-global-footer .avix-footer-proof li::before{
    content:""!important;
    left:0!important;
    top:50%!important;
    width:4px!important;
    height:4px!important;
    border-radius:50%!important;
    background:#4BC8EF!important;
    transform:translateY(-50%)!important;
  }

  /* Explore + Opportunity: same authored item sizes, tighter T-Booster rhythm. */
  html body .avix-global-footer .avix-footer-column{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:0!important;
  }
  html body .avix-global-footer .avix-footer-column h2,
  html body .avix-global-footer .avix-footer-contact h2{
    height:auto!important;
    margin:0 0 18px!important;
    padding:0!important;
    font-size:12px!important;
    line-height:1.2!important;
    letter-spacing:.11em!important;
  }
  html body .avix-global-footer .avix-footer-column a{
    display:block!important;
    min-height:0!important;
    margin:0 0 11px!important;
    padding:0!important;
    font-size:14px!important;
    line-height:19px!important;
  }
  html body .avix-global-footer .avix-footer-column a:last-child{
    margin-bottom:0!important;
  }

  /* Contact: natural grouped spacing, not a forced equal-row grid. */
  html body .avix-global-footer .avix-footer-contact{
    display:block!important;
    align-self:start!important;
  }
  html body .avix-global-footer .avix-footer-contact-block{
    display:block!important;
    margin:0!important;
    padding:0!important;
  }
  html body .avix-global-footer .avix-footer-contact-block:first-of-type{
    margin-bottom:15px!important;
  }
  html body .avix-global-footer .avix-footer-contact-block span{
    display:block!important;
    min-height:0!important;
    margin:0 0 5px!important;
    padding:0!important;
    font-size:10px!important;
    line-height:12px!important;
    letter-spacing:.1em!important;
  }
  html body .avix-global-footer .avix-footer-contact-block a{
    display:block!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font-size:14px!important;
    line-height:19px!important;
  }
  html body .avix-global-footer .avix-footer-linkedin{
    display:inline-block!important;
    min-height:0!important;
    margin:32px 0 0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--avix-footer-white,#F7F6F2)!important;
    font-size:14px!important;
    font-weight:430!important;
    line-height:19px!important;
    text-decoration:none!important;
    white-space:nowrap!important;
  }
  html body .avix-global-footer .avix-footer-linkedin:hover,
  html body .avix-global-footer .avix-footer-linkedin:focus-visible{
    color:#4BC8EF!important;
  }

  /* Office strip uses the same compact height/rhythm as the reference footer. */
  html body .avix-global-footer .avix-footer-offices{
    margin:0!important;
  }
  html body .avix-global-footer .avix-footer-office,
  html body .avix-global-footer .avix-footer-office + .avix-footer-office{
    padding-top:13px!important;
    padding-bottom:14px!important;
  }
  html body .avix-global-footer .avix-footer-office{
    padding-right:32px!important;
  }
  html body .avix-global-footer .avix-footer-office + .avix-footer-office{
    padding-left:32px!important;
    padding-right:0!important;
  }
  html body .avix-global-footer .avix-footer-office h2{
    margin:0 0 7px!important;
    font-size:11.5px!important;
    line-height:1.2!important;
  }
  html body .avix-global-footer .avix-footer-office p{
    margin:0 0 9px!important;
    font-size:13px!important;
    line-height:1.42!important;
  }
  html body .avix-global-footer .avix-footer-phones{
    gap:8px 24px!important;
  }
  html body .avix-global-footer .avix-footer-phones b{
    font-size:9.5px!important;
  }
  html body .avix-global-footer .avix-footer-phones a{
    font-size:12.5px!important;
    line-height:1.3!important;
  }

  html body .avix-global-footer .avix-footer-disclaimer{
    padding:14px 0 10px!important;
    font-size:10.5px!important;
    line-height:1.42!important;
  }
  html body .avix-global-footer .avix-footer-bottom{
    gap:20px!important;
    font-size:10.5px!important;
    line-height:1.35!important;
  }
  html body .avix-global-footer .avix-footer-bottom>p,
  html body .avix-global-footer .avix-footer-bottom a{
    font-size:10.5px!important;
    line-height:1.35!important;
  }
  html body .avix-global-footer .avix-footer-bottom nav{
    gap:10px 18px!important;
  }
}

/* Tablet: retain v100 responsive structure but use slightly tighter footer sides. */
@media (min-width:768px) and (max-width:1200px){
  html body .avix-global-footer .avix-footer-shell{
    width:calc(100% - 48px)!important;
  }
}

/* Mobile: keep the approved compact 2-column footer architecture. */
@media (max-width:767px){
  html body:not(.page-diagram) .avix-global-footer .avix-footer-linkedin{
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
}
