/* DGVX LLC — responsive + device overrides for the inline-styled pages.
   Loaded on every page. Uses attribute selectors + !important because the page markup carries inline styles. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:84px;color-scheme:light}
body{-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(224,166,58,.25)}
img,svg,video{max-width:100%}
h1,h2,h3,p,a,li,summary{overflow-wrap:break-word}
a,button,summary,select{touch-action:manipulation}
input,select,textarea{max-width:100%;box-sizing:border-box;-webkit-appearance:none;appearance:none;border-radius:10px}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E3A31' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-inline-end:38px!important}
[dir=rtl] select{background-position:left 14px center}
:focus-visible{outline:3px solid #E0A63A;outline-offset:2px}

/* iPhone notch / Dynamic Island / home-indicator + Android gesture bar */
[style*="margin:0 auto"][style*="max-width"]{padding-left:max(var(--px,40px),env(safe-area-inset-left))!important;padding-right:max(var(--px,40px),env(safe-area-inset-right))!important}
footer{padding-bottom:env(safe-area-inset-bottom)}

@media (max-width:900px){
  [style*="font-size:64px"],[style*="font-size:58px"]{font-size:46px!important}
}
@media (max-width:640px){
  :root{--px:20px}
  /* section padding */
  [style*="padding:104px 40px"],[style*="padding:96px 40px"]{padding-top:56px!important;padding-bottom:64px!important}
  [style*="padding:72px 40px"]{padding-top:48px!important}
  [style*="padding:64px 40px"],[style*="padding:56px 40px"]{padding-top:40px!important;padding-bottom:40px!important}
  [style*="padding:28px"],[style*="padding:30px"]{padding:20px!important}
  /* type scale */
  h1,[style*="font-size:64px"],[style*="font-size:58px"],[style*="font-size:46px"],[style*="font-size:44px"],[style*="font-size:42px"]{font-size:clamp(30px,8.6vw,38px)!important;line-height:1.14!important;letter-spacing:-.01em!important}
  h2,[style*="font-size:40px"],[style*="font-size:38px"]{font-size:clamp(26px,7.4vw,31px)!important;line-height:1.2!important}
  [style*="font-size:30px"]{font-size:24px!important}
  [style*="font-size:28px"]{font-size:21px!important}
  [style*="font-size:24px"]{font-size:21px!important}
  [style*="gap:56px 64px"],[style*="gap:48px 40px"]{gap:28px!important}
  /* header: logo + language/CTA on one row, nav scrolls on its own row */
  header>div{min-height:0!important;padding-top:12px!important;padding-bottom:12px!important;gap:10px 12px!important}
  header>div>a:first-child{order:1}
  header>div>div{order:2;margin-inline-start:auto;gap:8px!important;flex-wrap:nowrap!important}
  header>div>div>a{padding:10px 14px!important;font-size:13px!important;white-space:nowrap}
  header>div>div>div a{padding:7px 12px!important}
  header>div>nav{order:3;width:100%;flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:2px!important;margin:0 -4px}
  header>div>nav::-webkit-scrollbar{display:none}
  header>div>nav a{white-space:nowrap;padding:11px 14px!important;font-size:14px!important}
  /* tap targets + forms */
  footer a{display:inline-block;padding:7px 0}
  input,select,textarea{font-size:16px!important;min-height:48px}
  textarea{min-height:140px}
  button[type=submit],form button{width:100%;min-height:52px}
  summary{min-height:44px}
  a[style*="display:inline-block"]{padding-top:10px!important;padding-bottom:10px!important}
  [style*="flex:1 1 540px"],[style*="flex:1 1 440px"],[style*="flex:1 1 420px"],[style*="flex:1 1 360px"],[style*="flex:1 1 320px"]{flex-basis:100%!important}
}
@media (max-width:380px){
  header>div>div>a{display:none}  /* tiny phones: the CTA lives in the hero; keep logo + language switch on one row */
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*{animation:none!important;transition:none!important}}
@media print{header nav,header>div>div{display:none}}
#ck{font-family:inherit;bottom:max(16px,env(safe-area-inset-bottom))!important}
#ck span{line-height:1.5}
