/*@pf start style id=ipad-css */

/* iPad (touch, >=700px wide): same layout, wider column that follows orientation.
   Portrait (810px on iPad 9th gen) -> 640px column, landscape (1080px) -> 720px. Phones and desktop are untouched. */
@media (pointer: coarse) and (min-width: 700px) {
  :root { --ip-col: 640px; }
  html body .m1 { max-width: var(--ip-col) !important; }
  html body:not(#lgfa):not(#lgfb) #phTrade { left: max(14px, calc((100vw - var(--ip-col)) / 2 + 14px)) !important; right: max(14px, calc((100vw - var(--ip-col)) / 2 + 14px)) !important; }
  .st-wrap, #panel-digests .dp-wrap, .cr-wrap, html body #panel-cortex .cx-wrap, #pfAppearancePage .ap-wrap, html body #panel-funding .fd-wrap, html body #panel-dividends .dv-wrap { max-width: var(--ip-col) !important; }
  .rpn-sh { max-width: var(--ip-col); }
  /* centre the Cortex composer with margins instead of translateX so it doesn't slide in from the side on a wide screen */
  html body #panel-cortex .cx-bar { left: 0 !important; right: 0 !important; margin: 0 auto !important; transform: none !important; }
}
@media (pointer: coarse) and (min-width: 700px) and (orientation: landscape) { :root { --ip-col: 720px; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* no font inflation when the iPad rotates */
@media (pointer: coarse) { html body button, html body a, html body [role=button], html body select, html body input { touch-action: manipulation; } }
/* Safari zooms the page when a field under 16px gets focus; keep the same look but stop the zoom on touch screens */
@media (pointer: coarse) {
  html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]), html body select, html body textarea { font-size: max(16px, 1em) !important; }
}

/*@pf end */
