/* AVIX Water v75 — final boundary + desktop rhythm polish. Loaded last. */

/* Global invariant: meaningful page content/media must remain inside its own content rail. */
*,*::before,*::after{box-sizing:border-box}
:is(.av5-container,.container,.avix-footer-shell,.avix-section-nav__inner)>*{min-width:0;max-width:100%}
img,svg,video,canvas,iframe{max-width:100%}

/* Avoid accidental horizontal escape while preserving intentional decorative backgrounds. */
main,section,.av5-container,.container{min-width:0}

@media (min-width:1121px){
  /* Keep the universal T-Booster-style 32px desktop rail authoritative. */
  :root{--avix-desktop-gutter:32px}
  :is(.av5-container,.container,.avix-footer-shell),
  .avix-section-nav__inner{
    width:calc(100% - 64px)!important;
    max-width:none!important;
    margin-inline:auto!important;
  }

  /* HOME PLATFORM — the complete four-bottle artwork must stay inside the right column. */
  .avix-home-page #product-platform .av5-products-grid{
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
    gap:clamp(38px,4vw,68px)!important;
  }
  .avix-home-page #product-platform .av5-products-bottles{
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding-inline:12px!important;
  }
  .avix-home-page #product-platform .av5-products-bottles img{
    position:static!important;
    width:min(100%,690px)!important;
    max-width:100%!important;
    height:auto!important;
    max-height:650px!important;
    object-fit:contain!important;
    transform:none!important;
    margin:0 auto!important;
  }

  /* Products hero: same no-crop/no-escape discipline. */
  .products-v3 .p3-hero-products{
    min-width:0!important;overflow:hidden!important;padding-inline:10px!important;
  }
  .products-v3 .p3-hero-products img{
    width:min(100%,690px)!important;max-width:100%!important;height:auto!important;transform:none!important;
  }

  /* Commercial Opportunity — five capital-build columns: compact, content-led height. */
  .co18-page #plant-opportunity .co18-build-grid article{
    min-height:0!important;
    height:auto!important;
    padding:24px 22px 25px!important;
  }
  .co18-page #plant-opportunity .co18-build-grid b{
    width:46px!important;height:46px!important;margin-bottom:24px!important;
  }
  .co18-page #plant-opportunity .co18-build-grid h3{
    margin-bottom:11px!important;font-size:20px!important;line-height:1.12!important;
  }
  .co18-page #plant-opportunity .co18-build-grid p{
    font-size:14px!important;line-height:1.45!important;
  }

  /* Investment milestones: exactly three authored lines, equal rhythm, no dead lower half. */
  .co18-page #investment-milestones .co18-milestones article{
    min-height:0!important;
    height:auto!important;
    padding:24px 19px 25px!important;
  }
  .co18-page #investment-milestones .co18-milestones b{
    margin-bottom:14px!important;padding-bottom:12px!important;font-size:40px!important;
  }
  .co18-page #investment-milestones .co18-milestones strong{
    min-height:45px!important;margin-bottom:9px!important;font-size:17px!important;line-height:1.25!important;
  }
  .co18-page #investment-milestones .co18-milestones p{
    font-size:14px!important;line-height:1.45!important;
  }
  .co18-page #investment-milestones .co18-milestones p span{display:block!important;white-space:nowrap!important}

  /* Post-investment team build: four one-line bullet facts, then stop the card. */
  .team9-build .team9-build-grid{align-items:stretch!important}
  .team9-build .team9-build-card{
    min-height:0!important;height:auto!important;
    padding:24px 28px 24px!important;
    display:flex!important;flex-direction:column!important;
  }
  .team9-build .team9-build-card>span{margin-bottom:28px!important}
  .team9-build .team9-build-card h3{
    margin:0 0 18px!important;
    white-space:nowrap!important;
    font-size:clamp(19px,1.6vw,26px)!important;
  }
  .team9-build-points{
    list-style:none!important;margin:0!important;padding:0!important;
    display:grid!important;gap:7px!important;
  }
  .team9-build-points li{
    position:relative!important;padding-left:16px!important;
    color:#628390!important;font-size:15px!important;line-height:1.4!important;
    white-space:nowrap!important;
  }
  .team9-build-points li::before{
    content:"";position:absolute;left:0;top:.58em;width:5px;height:5px;border-radius:50%;background:#32b7d2;
  }
}

/* The authored milestone line breaks are desktop-only; compact layouts reflow naturally. */
@media (max-width:1120px){
  .co18-page #investment-milestones .co18-milestones p span{display:inline!important;white-space:normal!important}
  .co18-page #investment-milestones .co18-milestones p span+span::before{content:" ";}
  .team9-build-points{list-style:none;margin:0;padding:0;display:grid;gap:6px}
  .team9-build-points li{position:relative;padding-left:15px;color:#628390;line-height:1.4}
  .team9-build-points li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;border-radius:50%;background:#32b7d2}
}

/* Extra safety for all compact widths: important media never exceeds its local column. */
@media (max-width:1120px){
  .av5-products-bottles,.p3-hero-products,.av5-hero-bottle,.avix-utility-visual,.team9-person-image{min-width:0;max-width:100%;overflow:hidden}
  .av5-products-bottles img,.p3-hero-products img,.av5-hero-bottle img,.avix-utility-visual img,.team9-person-image img{max-width:100%!important;height:auto!important}
}
