/* Phone refinements shared by every page: comfortable touch targets, no zoom on focus, readable small print.
   Loaded last so it wins over each page's own styles. Nothing here applies above 760px. */
@media (max-width:760px){
  /* iOS zooms the page when a field under 16px is focused */
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
  /* fields and switches: at least 44px tall */
  #r-name,#r-email,#r-phone,#r-city,#r-dob-d,#r-dob-m,#r-dob-y,.reg-form input,.reg-form select{min-height:44px}
  .lb-tab{min-height:40px;font-size:11px!important;padding-left:12px;padding-right:12px}
  #ffIn,#ffCm,.unit-toggle button,.ff-units button,.seg button{min-height:40px;min-width:48px}
  /* small text links: a taller hit area without moving anything */
  .anav-back,.nav-back,.w-nav-back,.back,.pin-logo,.scan-logo,.ff-link,.keep,#adminOpen,.moon-nav a,.nav a.brand{padding-top:13px!important;padding-bottom:13px!important;margin-top:-13px!important;margin-bottom:-13px!important}
  .nav-logo::after{content:"";position:absolute;inset:-9px -8px}
  .textlink{position:relative}
  .textlink::after{content:"";position:absolute;inset:-11px -4px}
  .segmented button[data-unit]{min-height:42px!important}
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]),select{min-height:44px}
  .pg-footer a,.poll-footer a,header.nav>a:first-child{display:inline-block;padding-top:10px!important;padding-bottom:10px!important}
  .w-nav-back{white-space:nowrap}
  .w-nav{gap:10px}
  .w-nav-logo{font-size:0!important}
  .w-nav-logo .nc{display:none}
  .pass>*{min-width:0}
  /* legacy top bars: the logo artwork is enough, drop the repeated name beside it */
  .nav-logo .nc,.w-nav-logo .nc{display:none}
  a.nav-logo:has(img){font-size:0!important}
  /* small print floor */
  .effort-dot-label,.cv-tag,.cv-bpm,.gear-status-badge,.event-badge,.sec-label,.event-badge .nc{font-size:10px!important}
}
@media (max-width:400px){
  /* slim top bars on the narrowest phones so nothing runs off the edge */
  .nav-back,.w-nav-back{letter-spacing:.06em!important;font-size:10px!important}
  .w-nav-pill{letter-spacing:.08em!important;padding-left:10px!important;padding-right:10px!important}
  .nav-logo{letter-spacing:.08em}
  .ms-title{font-size:8.4vw!important}
}
