/* Phone & tablet refinements. Desktop layout (>1040px) is untouched,
   except for the media-scaling safety rules, which have no visible effect there. */

/* Images and embeds always scale to fit their container */
img,picture,video,canvas,svg{max-width:100%}
img:not([width]):not([height]),video{height:auto}
iframe,embed,object{max-width:100%}
iframe[src*="youtube"],iframe[src*="youtu.be"],iframe[src*="vimeo"],iframe[src*="loom"]{width:100%;height:auto;aspect-ratio:16 / 9}
table{max-width:100%}
pre{max-width:100%;overflow-x:auto}

@media (max-width:1040px){
  /* No sideways scrolling */
  html,body{max-width:100% !important;overflow-x:clip !important}
  h1,h2,h3,p,li,a,span{overflow-wrap:break-word !important}
  .hero-note .kicker{white-space:normal !important}

  /* Body text at least 16px */
  .small,.muted.small,.fs-note,
  .facts li,.strengths li,.offer-x,.topic-x,.recent,
  .covers li,.formats li,.chips li,.ticks li,
  .prod-d,.prod-cta,.offer-cta,.link,
  .col,.base,.fs-status,
  .fs-grid .f-hint,.fs-grid .f-err,.fs-grid .f-opt span,
  .btn,.btn--sm{font-size:1rem !important}

  /* Tap targets at least 44x44px */
  .btn,.btn--sm{min-height:48px !important}
  .burger{min-width:44px !important;min-height:44px !important}
  .mark{min-height:44px !important;align-items:center !important}
  .link{min-height:44px !important}
  .col a,.mail a{display:inline-flex !important;align-items:center !important;min-height:44px !important}
  .col{gap:2px !important}
  .skip{min-height:44px !important;display:inline-flex !important;align-items:center !important}
  .menu nav a{min-height:44px !important}
  .fs-grid input:not([type=radio]),.fs-grid select{min-height:48px !important}
  .soc a{display:inline-flex !important;align-items:center !important;min-height:44px !important;min-width:44px !important}
}

@media (max-width:520px){
  /* Buttons stack full-width so long labels never push past the edge */
  .hero-cta,.foot .links{width:100% !important}
  .hero-cta .btn,.foot .links .btn{flex:1 1 100% !important}
  .hero-note{max-width:calc(100% - 16px) !important}
  .prod-body{padding:22px 20px 24px !important}
  .prod-f{flex-wrap:wrap !important;gap:8px 16px !important}
  .cols{grid-template-columns:1fr !important}
}
