/* Bivensa cross-device hardening — 2026-07-16 */
html{overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0;overflow-wrap:anywhere}
main,header,footer,section,article,aside,nav,form,.container{min-width:0}
img,svg,video,canvas,audio,picture{max-width:100%;height:auto}
img{vertical-align:middle}
iframe,embed,object{display:block;max-width:100%;border:0}
iframe[src*="youtube"],iframe[src*="youtu.be"],iframe[src*="vimeo"]{width:100%;aspect-ratio:16/9;height:auto}
pre,code,kbd,samp{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
pre{overflow:auto;-webkit-overflow-scrolling:touch}
table{max-width:100%}
.site-body table,.admin-body table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
input,select,textarea,button{max-width:100%;font:inherit}
textarea{resize:vertical}
.site-body :where(.grid,[class*="-grid"],[class*="__grid"]){min-width:0}
.site-body :where(.grid,[class*="-grid"],[class*="__grid"])>*{min-width:0}
.site-body :where(h1,h2,h3,h4,p,li,a,span,strong){overflow-wrap:anywhere}
.site-body [style*="width:"]{max-width:100%}
.site-body .container,.site-body .narrow{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right))}
:target{scroll-margin-top:110px}
@media(max-width:760px){
  .container,.narrow{width:min(100% - 28px,1180px)}
  body{font-size:16px}
  input,select,textarea{font-size:16px!important}
  button,a,input,select,textarea,summary{touch-action:manipulation}
  .site-body :where(a,button,input[type="button"],input[type="submit"],summary){min-height:44px}
  .site-body :where(h1){font-size:clamp(2.25rem,11vw,4rem)!important;line-height:1.02!important}
  .site-body :where(h2){font-size:clamp(1.9rem,8.5vw,3rem)!important;line-height:1.08!important}
  .site-body :where(h3){line-height:1.15}
  .site-body :where([class*="actions"],[class*="buttons"],[class*="cta-group"]){flex-wrap:wrap}
  .site-body :where([class*="actions"],[class*="buttons"],[class*="cta-group"])>a,
  .site-body :where([class*="actions"],[class*="buttons"],[class*="cta-group"])>button{max-width:100%}
  .site-body table{font-size:.875rem}
  .site-body th,.site-body td{min-width:9rem}
  .consent-banner,.consent-modal-card{max-width:calc(100vw - 20px)!important}
  .whatsapp{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  .container,.narrow{width:min(100% - 22px,1180px)}
  .header-pro-shell{gap:8px}
  .bivensa-brand-copy small{display:none}
}
@media(max-height:520px) and (orientation:landscape){
  .header-pro-mobile{overflow-y:auto}
  .header-pro-mobile-nav a{padding-block:10px}
  .consent-modal-card{max-height:calc(100dvh - 16px);overflow:auto}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{scroll-duration:0.01ms!important;animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important}
}
@media(forced-colors:active){
  a,button,input,select,textarea,summary{forced-color-adjust:auto}
}
