

@media (max-width:780px),(max-height:500px) and (max-width:980px){
  a[href]:not(p a):not(li a):not(td a):not(span a){min-height:44px;display:inline-flex;align-items:center}
  header a[href],nav a[href],footer a[href],aside a[href]{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
  label[for]{min-height:44px;display:inline-flex;align-items:center}
  
  p:has(>a:only-child)>a,li:has(>a:only-child)>a,
  p[style*="display:flex"]>a[href],p[style*="display: flex"]>a[href],
  li[style*="display:flex"]>a[href],li[style*="display: flex"]>a[href]{min-height:44px;display:inline-flex;align-items:center}
  input[type=checkbox],input[type=radio]{min-width:24px;min-height:24px}
  button,[role="button"],[role="tab"],summary,select{min-height:44px;min-width:44px}
  input:not([type=checkbox]):not([type=radio]),textarea{min-height:44px}
  input,select,textarea{font-size:16px}
  a,button,[role="button"],summary,label,input,select,textarea{touch-action:manipulation}
}


@media (min-width:781px) and (min-height:501px),(min-width:981px){
  header a[href],nav a[href],footer a[href],aside a[href],a[role="button"]{min-height:24px;min-width:24px;display:inline-flex;align-items:center}
  a[href]:not(p a):not(li a):not(td a):not(span a),label[for]{min-height:24px;display:inline-flex;align-items:center}
  p:has(>a:only-child)>a,li:has(>a:only-child)>a,
  p[style*="display:flex"]>a[href],p[style*="display: flex"]>a[href]{min-height:24px;display:inline-flex;align-items:center}
  button,[role="button"],[role="tab"],summary,select,input:not([type=hidden]){min-height:24px;min-width:24px}
}


@media (max-width:780px),(max-height:500px) and (max-width:980px){
  [style*="grid-template-columns"]>*:not(button):not(a):not(input):not(select):not(summary){min-width:0}
}
@media (max-width:429px){
  [style*="repeat(3,1fr)"],[style*="repeat(3, 1fr)"],
  [style*="repeat(4,1fr)"],[style*="repeat(4, 1fr)"]{grid-template-columns:1fr 1fr!important}
}
