/* learn-tofly.com phone typography + layout (added 2026-11-12). Phones only: desktop and tablet untouched. */
@media (max-width:600px){
  html{font-size:16px!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{font-size:1rem;line-height:1.55;overflow-x:hidden}
  p,li,dd,td{line-height:1.55!important}
  p,li,dd,td,a,h1,h2,h3,figcaption,code{overflow-wrap:break-word;word-break:normal}
  /* headings: scale with screen width (≈28-30px h1 at 360-412) */
  h1{font-size:clamp(1.7rem,7.2vw,1.9rem)!important;line-height:1.15!important;margin:8px 0 12px!important}
  h2{font-size:clamp(1.3rem,5.6vw,1.45rem)!important;line-height:1.2!important;margin:6px 0 10px}
  h3{font-size:1.05rem!important;line-height:1.3}
  .lede,.sub,.tag{font-size:1.05rem!important;line-height:1.45!important}
  /* page widths and spacing */
  main{padding-left:16px!important;padding-right:16px!important;padding-top:32px!important;padding-bottom:32px!important}
  footer{padding-left:16px;padding-right:16px}
  .w footer,.w main{padding-left:0!important;padding-right:0!important}
  section:not([class~="ind"]):not([style*="padding"]){padding:36px 0!important}
  section.ind{padding:14px!important}
  .hero{padding:24px 0!important;gap:22px!important}
  .card:not([style*="padding"]){padding:16px!important}
  .card .code{font-size:1.1rem!important}
  .card p{font-size:.95rem}
  .g2,.g3,.g4{gap:12px!important}
  /* nav: smaller, tighter */
  nav{padding:12px 0!important;gap:6px!important}
  nav .logo{font-size:.95rem!important}
  nav .links a{font-size:.7rem!important;letter-spacing:.06em!important;margin:0 10px 6px 0!important}
  /* buttons */
  .btn{font-size:.78rem!important;padding:11px 15px!important;margin:6px 8px 0 0!important}
  .ind-bar button,.flt button{font-size:.66rem!important;padding:7px 9px!important;min-height:34px}
  /* forms: 16px so phones don't zoom */
  input,select,textarea{font-size:16px!important}
  .wl input{max-width:100%!important}
  /* media never wider than the screen; floated figures stack */
  img,video,iframe,svg,canvas,table,pre{max-width:100%}
  iframe{width:100%}
  pre,table{overflow-x:auto;display:block}
  figure[style*="float"]{float:none!important;width:100%!important;max-width:340px!important;margin:14px auto!important}
}
