/* x2: phone + iPad (touch) layer for the Despani site, loaded after despani-site.css.
   Coarse pointers get >=40-44px targets and 16px form text (no iOS focus zoom); phones never scroll sideways. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (max-width:760px){html,body{overflow-x:clip}}
@media (pointer:coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
  [data-ui=view-controls] button{min-height:40px;min-width:40px}
  .cbp-login input{height:44px!important}.cbp-lrow button{height:44px!important;min-width:96px}
  .cbp-lrow a,.cbp-out,.gm-h2 a,.gm-more,.gm-playbar>a,.gm-players a,.gm-feed a{display:inline-flex;align-items:center;min-height:40px}
  a,button,summary,[role=button]{-webkit-tap-highlight-color:rgba(210,31,37,.18);touch-action:manipulation}
}
@media (max-width:640px){
  .cbp-login .cbp-lf{grid-template-columns:minmax(0,1fr)!important}
  .cbp-login label,.cbp-login input{min-width:0;width:100%}
  .cbp-lrow{gap:4px 14px}
}
/* wide legacy tables (phpBB forum, profile, PM lists) scroll inside themselves on phones instead of being clipped */
@media (max-width:760px){
  table.tablebg,.desp-content table:not(.gm table){display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  table.tablebg>tbody,table.tablebg>thead,.desp-content table:not(.gm table)>tbody{display:table;width:100%}
  pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
  img,video{max-width:100%;height:auto}
}
