/* Final responsive contract: content-driven sizing, shared breakpoints.
   Desktop art direction remains in responsive.css; this layer owns adaptation. */
.cw-site{--layout-gap:clamp(20px,2.5vw,32px);--card-pad:clamp(20px,2.5vw,32px)}
.cw-site,.cw-site *,.cw-site *::before,.cw-site *::after{box-sizing:border-box}
.cw-site main :is(h1,h2,h3,h4,p,figcaption,li){word-break:keep-all;overflow-wrap:anywhere}
.cw-site :is(.btn,.tlink){max-width:100%;white-space:normal;overflow-wrap:anywhere}
.cw-site .btn{height:auto;min-height:50px;padding-block:12px;text-align:center;flex-shrink:0}
.cw-site :is(.btn,.tlink) .arr{flex:none}
.cw-site :is(.form,.form>*,.site-contact-inner>*,.plist>*,.cw27-character-grid>*,.v18-partner-tiles>*){min-width:0}
.cw-site :is(input:not([type=checkbox]),select,textarea){max-width:100%;min-width:0;width:100%;font:inherit}
.cw-site textarea{resize:vertical}
.cw-site .mnav{height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain}
.cw-site .mnav a{white-space:normal;overflow-wrap:anywhere}
.cw-site :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--brand);outline-offset:4px}
/* Shared rows size to the longer OEM title: no artificial two-line title height. */
[data-page="oem-odm"] .cw21-oem-grid{row-gap:0!important}
[data-page="oem-odm"] .cw21-oem-service{display:grid;grid-template-rows:subgrid;grid-row:span 5;align-items:start;row-gap:0}
[data-page="oem-odm"] .cw21-oem-service h3{min-height:0;margin:0 0 5px!important}
[data-page="oem-odm"] .cw21-oem-service>p{margin-top:0;max-width:none}
[data-page="oem-odm"] .cw21-oem-service>.tlink{justify-self:start;align-self:end}
/* References can expand in English without forcing horizontal overflow. */
.cw-site[data-page="ingredient"] #overview .cw28-research-links{flex-wrap:wrap;gap:12px 32px}
.cw-site[data-page="ingredient"] #overview .cw28-research-links a{white-space:normal;overflow-wrap:anywhere}
.cw-site[data-page="ingredient"] #overview .cw28-related-research{min-width:0}
@media(max-width:1279px){
 .cw-site .hdr .nav{display:none!important}.cw-site .hdr .burger{display:block!important;min-width:44px;min-height:44px}
 .cw-site .hdr .logo{min-width:0;flex-shrink:0}
 .cw-site[data-page="ingredient"] #overview .cw28-related-research{flex-wrap:wrap;gap:16px}
 .cw-site[data-page="ingredient"] #overview .cw28-research-links{margin-left:0}
}
@media(max-width:1100px){
 .cw-site main :is(.lead,.body,h1,h2,h3,h4){white-space:normal!important}
 [data-page="home"] .home-devcase{height:auto;min-height:0;padding:24px 28px!important}
 [data-page="home"] .home-devcase-kicker{position:static!important;display:block;margin:0 0 20px}
 [data-page="home"] .home-devcase-row{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 28px}
 [data-page="home"] .home-devcase-row :is(h3,p){position:static!important;transform:none;top:auto}
 [data-page="home"] .home-devcase-row p{grid-column:1;grid-row:2}
 [data-page="home"] .home-devcase-link{position:static;transform:none;grid-column:2;grid-row:1 / span 2;align-self:center}
 [data-page="home"] .link-item>*{left:0;top:0}
 [data-page="home"] .mk-shelf .product-name{white-space:normal!important}
 [data-page="about"] .abt-direction-summary{display:flex;flex-wrap:wrap;gap:24px}
 [data-page="about"] .abt-direction-summary>p{flex:1 1 420px}
 [data-page="about"] .abt-direction-link{margin:0 0 0 auto}
 .cw-site .plist{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cw-site .site-contact-inner{grid-template-columns:minmax(0,1fr);gap:24px}
 .cw-site .site-contact-inner .btn{justify-self:start}
 [data-page="ingredient"] .cw27-process-steps{width:100%!important;grid-template-columns:1fr!important}
 [data-page="ingredient"] .cw27-process-step{grid-column:1!important;grid-row:auto;grid-template-rows:auto auto auto;padding:16px;gap:9px}
 [data-page="ingredient"] .lc-between-arrow{grid-column:1;grid-row:auto;justify-self:center;margin:4px 0}
 [data-page="ingredient"] .lc-between-arrow::before{content:'↓'}
}
@media(max-width:800px){
 .cw-site{--type-h1:clamp(28px,4vw,32px);--type-h2:clamp(25px,3.5vw,28px);--type-h3:clamp(20px,2.75vw,22px)}
 .cw-site .wrap{padding-inline:clamp(20px,3vw,24px)}
 .cw-site main :is(h1,.phero h1){font-size:var(--type-h1)!important;line-height:1.35!important}
 .cw-site main :is(h2.h2,h2:not(.label),.intro-title){font-size:var(--type-h2)!important;line-height:1.4!important}
 .cw-site main :is(h3,h4){font-size:var(--type-h3)!important;line-height:1.4!important}
 .cw-site main :is(.lead,.body,.intro-description p,.product-feature,.v18-material-grid article>p,.rd-yield-copy>p,.v18-application-grid article>p,.cw21-oem-service>p){font-size:16px!important;line-height:1.8!important}
 .cw-site main :is(.desktop-break,.home-about-break,.rd-microbial-break,.application-copy-break){display:none!important}
 .cw-site .cw21-oem-grid{grid-template-columns:minmax(0,1fr)!important;row-gap:24px!important}
 .cw-site .cw21-oem-service{grid-row:auto;grid-template-rows:auto auto auto auto auto;padding:24px}
 .cw-site .cw21-oem-service h3{margin-bottom:5px!important}
 .cw-site :is(.pdev,.devs){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 [data-page="home"] .home-devcase-row{grid-template-columns:minmax(0,1fr)}
 [data-page="home"] .home-devcase-row>*{grid-column:1!important;grid-row:auto!important}
 [data-page="home"] .home-devcase-link{justify-self:start}
 [data-page="about"] #origin .abt-origin-layout{grid-template-columns:minmax(0,1fr)!important;gap:32px!important}
 [data-page="about"] #origin .abt-origin-story{width:100%!important;max-width:none!important;position:static}
 [data-page="about"] #origin .abt-origin-story>p{padding-left:0!important;text-align:left!important;contain:none!important}
 [data-page="research"] .micro-fig{height:auto!important;align-self:start}
 [data-page="research"] .micro-fig img{height:auto!important;aspect-ratio:1.6;object-fit:cover}
 [data-page="research"] .v18-material-grid .rd-yield-wide{grid-template-columns:minmax(0,1fr);gap:24px}
 [data-page="research"] .cw28-product-case{height:auto;min-height:0;flex-wrap:wrap;gap:24px;padding:28px!important}
 [data-page="ingredient"] #beyond-salmon .cw27-character-grid{grid-template-columns:minmax(0,1fr)!important}
 [data-page="ingredient"] #beyond-salmon .cw27-figure-card{height:auto!important;min-height:0!important;grid-template-rows:auto!important;padding:24px}
 [data-page="ingredient"] #beyond-salmon .cw27-figure-card>div:first-child{height:auto!important;min-height:0!important}
 [data-page="ingredient"] #beyond-salmon .lc-media{grid-template-rows:auto auto!important}
 [data-page="ingredient"] #beyond-salmon .lc-media img{height:auto!important;max-height:none!important;object-fit:contain}
 [data-page="ingredient"] #application .head2>div:last-child{display:block;width:100%!important;text-align:left!important}
 [data-page="ingredient"] #application .application-product-link{margin-top:24px!important}
 .cw-site .form{grid-template-columns:minmax(0,1fr)!important}
 .cw-site .form>*{grid-column:1!important}
 .cw-site .form :is(input,select,textarea){font-size:16px}
 .cw-site .ftr .ftr-grid.ftr-grid-v8{gap:28px!important}
}
@media(max-width:480px){
 .cw-site :is(.plist,.pdev,.devs,.acts,.v18-partner-tiles){grid-template-columns:minmax(0,1fr)!important}
 [data-page="home"] .mk-shelf{grid-template-columns:minmax(0,1fr);gap:32px}
 [data-page="home"] .mk-shelf li{padding:0 20px}
 [data-page="home"] .mk-shelf .ph{height:240px}
 .cw-site .btn{width:100%;padding-inline:18px}
 .cw-site .home-about-action,.cw-site .application-product-link{width:100%!important}
 .cw-site .ftr .ftr-bot{flex-wrap:nowrap!important;justify-content:space-between!important;gap:8px!important}
 .cw-site .ftr .ftr-bot :is(a,.ftr-c){font-size:10px!important}
 .cw-site .filter button{min-height:44px}
 .cw-site .cw21-oem-service{padding:20px}
 .cw-site .site-closing-content{padding-bottom:clamp(100px,32vw,154px)!important}
}
@media(prefers-reduced-motion:reduce){.cw-site .reveal{opacity:1!important;transform:none!important}.cw-site :is(.btn,.tlink){transition:none!important}}
/* Long labels and translated calls to action are allowed to wrap. */
.cw-site .site-contact-inner .btn{white-space:normal}
.cw-site main :is(.mono,.label,.cw27-test-kicker,.cw21-oem-number){overflow-wrap:anywhere;white-space:normal}
@media(max-width:800px){
 .cw-site .site-contact-inner h2{font-size:var(--type-h2)!important}
 .cw-site[data-page="contact"] label.consent{max-width:100%;align-items:flex-start!important}
 .cw-site[data-page="contact"] label.consent input[type="checkbox"]{margin-top:3px!important;align-self:flex-start}
}

/* Screenshot follow-up: shared product rows, quiet process list, separate whale area. */
@media(max-width:1100px){
 [data-page="ingredient"] .lc-between-arrow{display:none!important}
 [data-page="ingredient"] .cw27-process-step{padding:20px 14px;gap:8px}
 [data-page="home"] .home-devcase-link{justify-self:end!important;margin-left:auto;width:fit-content;max-width:100%}
}
@media(min-width:481px) and (max-width:1100px){
 [data-page="products"] .plist{row-gap:0;column-gap:24px;align-items:stretch}
 [data-page="products"] .pcard{display:grid;grid-template-rows:subgrid;grid-row:span 7;row-gap:0;padding-bottom:40px}
 [data-page="products"] .pcard>.ph{grid-row:1}
 [data-page="products"] .pcard>.cat{grid-row:2}
 [data-page="products"] .pcard>h3{display:grid;grid-template-rows:subgrid;grid-row:3 / span 2;align-items:start;row-gap:0}
 [data-page="products"] .pcard>h3 .en{align-self:start;margin-top:4px}
 [data-page="products"] .pcard>.product-details{display:grid;grid-template-rows:subgrid;grid-row:5 / span 2;row-gap:0;margin:20px 0 0}
 [data-page="products"] .product-feature{margin:0 0 14px}
 [data-page="products"] .product-function{align-self:start;margin:0 0 24px}
 [data-page="products"] .product-actions{grid-row:7;align-self:end}
}
@media(max-width:480px){
 [data-page="home"] .home-devcase-link{width:fit-content!important;justify-self:end!important;margin-left:auto}
}
@media(max-width:680px){
 [data-page="about"] .abt-v18-hero{display:flex;flex-direction:column;min-height:0;height:auto}
 [data-page="about"] .abt-v18-hero-content{order:1;transform:none!important;padding-bottom:24px!important}
 [data-page="about"] .abt-v18-whale{order:2;position:relative!important;inset:auto!important;align-self:flex-end;width:100%;max-width:540px;margin:8px -8% 0 0;opacity:.86;flex:none}
 [data-page="about"] .abt-v18-whale img{width:100%;height:auto}
}
