/* DEC-116: balance repeated cards; preserve content order and genuine single-result states. */
@media(min-width:701px){
body #main :is(.cards,.mm-grid,.completion-grid,.completion-team,.about-certificate-grid,.about-advantages-grid,.about-locations,.buyer-guide-grid,.r104-result-grid,.r104-related-grid,.results-grid,.product-certifications):not(.industry-track):not(.stack){display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}
body #main :is(.cards,.mm-grid,.completion-grid,.completion-team,.about-certificate-grid,.about-advantages-grid,.about-locations,.buyer-guide-grid,.r104-result-grid,.r104-related-grid,.results-grid,.product-certifications):not(.industry-track):not(.stack) > :not([hidden]){grid-column:span 4;min-width:0}
body #main :is(.cards,.mm-grid,.completion-grid,.completion-team,.about-certificate-grid,.about-advantages-grid,.about-locations,.buyer-guide-grid,.r104-result-grid,.r104-related-grid,.results-grid,.product-certifications):not(.industry-track):not(.stack):where(:has(> :where(:nth-child(3n+1 of :not([hidden]))):where(:nth-last-child(1 of :not([hidden]))))):where(:has(> :where(:nth-child(4 of :not([hidden]))))) > :not([hidden]):where(:nth-last-child(-n+4 of :not([hidden]))){grid-column:span 6}
body #main :is(.cards,.mm-grid,.completion-grid,.completion-team,.about-certificate-grid,.about-advantages-grid,.about-locations,.buyer-guide-grid,.r104-result-grid,.r104-related-grid,.results-grid,.product-certifications):not(.industry-track):not(.stack):where(:has(> :where(:nth-child(3n+2 of :not([hidden]))):where(:nth-last-child(1 of :not([hidden]))))) > :not([hidden]):where(:nth-last-child(-n+2 of :not([hidden]))){grid-column:span 6}
body #main :is(.cards,.mm-grid,.completion-grid,.completion-team,.about-certificate-grid,.about-advantages-grid,.about-locations,.buyer-guide-grid,.r104-result-grid,.r104-related-grid,.results-grid,.product-certifications):not(.industry-track):not(.stack):where(:has(> :where(:nth-child(1 of :not([hidden]))):where(:nth-last-child(1 of :not([hidden]))))) > :not([hidden]){grid-column:1/-1}
}
@media(min-width:1101px){
body #main :is(.product-series-cards,.performance,.completion-four,.completion-gallery,.completion-products,.about-advantages-grid,.completion-team-4):not(.industry-track):not(.stack):where(:has(> :where(:nth-child(4n of :not([hidden]))):where(:nth-last-child(1 of :not([hidden]))))) > :not([hidden]):where(:nth-child(n)){grid-column:span 3}
body #main :is(#quality-lifecycle,#production-quality,#production-controls) .mm-grid:where(:has(> :where(:nth-child(4 of :not([hidden]))):where(:nth-last-child(1 of :not([hidden]))))) > :not([hidden]){grid-column:span 3}
}
@media(min-width:701px) and (max-width:1100px){
body #main :is(.cards,.mm-grid,.completion-grid,.completion-team,.about-certificate-grid,.about-advantages-grid,.about-locations,.buyer-guide-grid,.r104-result-grid,.r104-related-grid,.results-grid,.product-certifications):not(.industry-track):not(.stack) > :not([hidden]){grid-column:span 6}
body #main :is(.cards,.mm-grid,.completion-grid,.completion-team,.about-certificate-grid,.about-advantages-grid,.about-locations,.buyer-guide-grid,.r104-result-grid,.r104-related-grid,.results-grid,.product-certifications):not(.industry-track):not(.stack):where(:has(> :where(:nth-child(2n+1 of :not([hidden]))):where(:nth-last-child(1 of :not([hidden]))))):where(:has(> :where(:nth-child(3 of :not([hidden]))))) > :not([hidden]):where(:nth-last-child(-n+3 of :not([hidden]))){grid-column:span 4}
body.home #main .facts-strip.facts-metrics{grid-template-columns:repeat(12,minmax(0,1fr))}
body.home #main .facts-strip.facts-metrics>*{grid-column:span 6}
body.home #main .facts-strip.facts-metrics:where(:has(> :where(:nth-child(2n+1 of :not([hidden]))):where(:nth-last-child(1 of :not([hidden]))))) > :not([hidden]):where(:nth-last-child(-n+3 of :not([hidden]))){grid-column:span 4}
}
@media(min-width:701px) and (max-width:900px){body #main :is(.results-grid,.r104-result-grid):not(.industry-track):not(.stack)>:not([hidden]){grid-column:1/-1}}
@media(max-width:700px){body.home #main .facts-strip.facts-metrics,body #main .completion-team:where(:has(>:where(:nth-child(2n+1)):last-child)){grid-template-columns:1fr}}
