/* Preserve each approved square canvas; optical sizes change CSS only. */
.rivex-brands .brands-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px}
.rivex-brands .brand-link{min-height:132px;gap:8px;padding:12px 8px}
.rivex-brands .brand-logo{width:100%;height:80px;overflow:visible}
.rivex-brands .brand-logo img,.models-brand-logo img{width:80px;height:80px;max-width:none!important;max-height:none!important;flex:none;object-fit:contain;mix-blend-mode:normal}
.rivex-brands .rivex-logo-wide .brand-logo img,.models-brand-logo.rivex-logo-wide img{width:144px;height:144px}
.rivex-brands .brand-name{text-transform:none;font-size:14px}
.rivex-home .brand-wall .brand-image{display:flex;align-items:center;justify-content:center;width:100%;height:80px;overflow:visible}
.rivex-home .brand-wall .brand-strip img{width:80px;height:80px;max-width:none;max-height:none;object-fit:contain;mix-blend-mode:normal;flex:none}
.rivex-home .brand-wall .brand-strip .rivex-logo-wide img{width:144px;height:144px}
/* Keep the original responsive title placement; compact brand mark above it. */
.rivex-product-preview .rivex-v140 .hero-brand-link{display:flex;align-items:center;justify-content:flex-start;align-self:flex-start;position:relative;width:64px;height:24px;min-height:24px;margin:0 0 12px;overflow:visible}
.rivex-product-preview .rivex-v140 .hero-brand-link::after{content:"";position:absolute;inset:-10px 0}
.rivex-product-preview .rivex-v140 .hero-brand-link img{display:block;width:auto;height:auto;max-width:64px;max-height:24px;object-fit:contain;object-position:left center;mix-blend-mode:normal;flex:none}
@media(min-width:1101px){
.rivex-product-preview .rivex-v140 .hero-copy{text-align:start}
.rivex-product-preview .rivex-v140 .hero-identity{gap:10px}
.rivex-product-preview .rivex-v140 .hero h1{text-align:start;overflow-wrap:break-word;font-size:clamp(40px,3.3vw,48px);line-height:1.12}
.rivex-product-preview .rivex-v140 .hero .intro{text-align:start;margin:0}
}
@media(max-width:1100px){.rivex-product-preview .rivex-v140 .hero-brand-link{margin-bottom:10px}}
@media(max-width:1100px){.rivex-brands .brands-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.rivex-brands .brands-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rivex-brands .brand-link{min-height:124px;padding:12px 4px}.models-brand-logo.rivex-logo-wide{width:144px}}
@media(prefers-reduced-motion:reduce){.brand-logo img,.hero-brand-link img{transition:none!important}}

/* Elementor widget spacing must not add to the identity group's rhythm. */
.rivex-product-preview .rivex-v140 .hero-identity{display:flex;flex-direction:column;gap:8px!important;padding:0!important;margin:0!important;align-items:stretch}
.rivex-product-preview .rivex-v140 .hero-identity>.elementor-element,
.rivex-product-preview .rivex-v140 .hero-identity .elementor-widget-container,
.rivex-product-preview .rivex-v140 .hero-identity .elementor-shortcode{margin:0!important;padding:0!important;min-height:0;--kit-widget-spacing:0px;--widgets-spacing:0px}
.rivex-product-preview .rivex-v140 .hero-identity h1,
.rivex-product-preview .rivex-v140 .hero-identity .intro{margin:0!important;padding:0!important}
/* Tablet landscape shares the desktop enquiry alignment. */
@media(min-width:601px) and (max-width:1100px) and (orientation:landscape){
.rivex-product-preview .rivex-v140 .hero-purchase{text-align:end}
.rivex-product-preview .rivex-v140 .hero-purchase .hero-offer,
.rivex-product-preview .rivex-v140 .hero-purchase .hero-support{margin-inline-start:auto}
.rivex-product-preview .rivex-v140 .hero-purchase .hero-actions{margin-inline-start:auto;justify-content:flex-end!important}
.rivex-product-preview .rivex-v140 .hero-purchase .hero-actions .hero-quote,
.rivex-product-preview .rivex-v140 .hero-purchase .hero-actions .hero-wa{flex:0 1 150px;width:auto;min-width:0}
}

/* Brand belongs to floating product navigation, including its mobile portal. */
.rivex-v140 .local .local-identity{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.rivex-v140 .local .local-brand-link{display:flex;align-items:center;justify-content:flex-start;flex:none;width:48px;min-height:44px;padding:0}
.rivex-v140 .local .local-brand-link img{display:block;width:auto;height:auto;max-width:48px;max-height:24px;object-fit:contain}
.rivex-v140 .local .local-identity .local-name{flex:1;min-width:0}
.rivex-v140 .local .local-brand-link:focus-visible{outline:2px solid var(--rivex-action);outline-offset:2px}
@media(max-width:600px){.rivex-v140 .local .local-identity{gap:8px}.rivex-v140 .local .local-brand-link{width:32px}.rivex-v140 .local .local-brand-link img{max-width:32px;max-height:20px}}

/* Match the 1180px content wrapper below without shrinking the hero image. */
@media(min-width:1101px){
.rivex-product-preview .rivex-v140 .hero-identity{--hero-copy-inset:calc((min(100vw,1600px) - min(100vw,1180px))/2 + 32px - clamp(32px,4vw,80px));margin-inline-start:var(--hero-copy-inset)!important;width:calc(100% - var(--hero-copy-inset));max-width:none}
}

/* Divider starts at the aligned model copy and ends at the enquiry edge. */
@media(min-width:1101px){
.rivex-product-preview .rivex-v140 .hero-layout.wrap::before{inline-size:calc(100% - ((min(100vw,1600px) - min(100vw,1180px))/2 + 32px - clamp(32px,4vw,80px)));justify-self:start;margin-inline-start:calc((min(100vw,1600px) - min(100vw,1180px))/2 + 32px - clamp(32px,4vw,80px));max-inline-size:none}
}
