/* Phone and tablet layouts (2026-11-19). Desktop (over 1024px) is unchanged. */
@media (max-width:1024px){
  *,*::before,*::after{box-sizing:border-box}
  html,body{overflow-x:clip}
  [style*="grid-template-columns: 380px minmax(0, 1fr)"]{grid-template-columns:minmax(0,1fr)!important}
  [style*="margin: 56px -120px 0"]{margin-left:0!important;margin-right:0!important}
  [data-rsp-t="g2"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  [data-rsp-t="g3"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  [data-rsp-t="g1"]{grid-template-columns:minmax(0,1fr)!important}
  [data-rsp-t="f3"]{flex-wrap:wrap!important;row-gap:28px!important}
  [data-rsp-t="f3"]>*{flex:1 1 calc(33.333% - 24px)!important;min-width:0}
}
@media (max-width:760px){
  [data-rsp="g1"]{grid-template-columns:minmax(0,1fr)!important;column-gap:0!important}
  [data-rsp="g2"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  [data-rsp="g1"]>*,[data-rsp="g2"]>*{grid-column:auto!important;min-width:0}
  [data-rsp="f1"]{flex-direction:column!important;align-items:stretch!important;gap:16px!important}
  [data-rsp="f1"]>*{flex:none!important;width:auto!important;max-width:none!important}
  [data-rsp="f2"]{flex-wrap:wrap!important;row-gap:20px!important}
  [data-rsp="f2"]>*{flex:1 1 calc(50% - 16px)!important;min-width:0}

  [data-rsp="fs"]{flex-direction:column!important;align-items:center!important;gap:12px!important}
  [data-rsp="fs"]>*{flex:none!important;width:100%;max-width:440px}
  [data-rsp="fs"]>[style*="flex: none"]{width:auto;transform:rotate(90deg);height:auto!important;padding:0!important}
  [style*="width: 460px"],[style*="width: 420px"],[style*="width: 480px"],[style*="width: 520px"],[style*="width: 560px"],[style*="width: 600px"]{width:100%!important;max-width:100%!important}
  [style*="grid-template-columns: auto 200px auto minmax(0,1fr)"]{grid-template-columns:auto minmax(0,1fr)!important}
  [style*="grid-template-columns: 300px minmax(0, 1fr)"],[style*="grid-template-columns: 380px"]{grid-template-columns:minmax(0,1fr)!important;gap:32px!important}
  [style*="margin-top: 28px; padding-top: 24px; border-top: 1px solid #e8e8ed; display: flex; justify-content: space-between"]{flex-wrap:wrap;row-gap:12px}
  [style*="columns: 2"],[style*="columns: 3"]{columns:1!important}
  /* forms: one field per row; plan summary stacks; sticky side column becomes normal flow */
  form [data-rsp="g2"],form [data-rsp="g1"]{grid-template-columns:minmax(0,1fr)!important}
  aside[aria-labelledby="plan-sum"]{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;padding:24px 22px!important}
  aside[aria-labelledby="plan-sum"]>div{text-align:left!important}
  aside[aria-labelledby="plan-sum"]>button{justify-self:start}
  main [style*="position: sticky; top: 96px"]{position:static!important}
  /* bigger tap targets on touch screens */
  li>a[style="color: #1d1d1f; text-decoration: none"],li>button[style="color: #1d1d1f; text-decoration: none"]{display:inline-block;padding:6px 0;text-align:left}
  form a[style*="display: inline-flex"],form button[style*="display: inline-flex"]{min-height:44px}
  /* calmer vertical rhythm on small screens */
  [style*="padding: 112px 24px"]{padding-top:64px!important;padding-bottom:64px!important}
  [style*="padding: 96px 0"],[style*="padding: 88px 0"],[style*="padding: 80px 0 96px"],[style*="padding: 56px 0 96px"],[style*="padding: 120px 0 136px"],[style*="padding: 104px 0 120px"],[style*="padding: 128px 0 144px"],[style*="padding: 72px 0 88px"],[style*="padding: 64px 0 104px"]{padding-top:56px!important;padding-bottom:56px!important}
  [style*="padding: 40px;"],[style*="padding: 40px\""]{padding:28px 22px!important}
  [style*="padding: 0 27px 0 44px"]{padding:10px 16px!important;font-size:16px!important;line-height:1.35}
  [style*="padding: 0 44px"]{padding-left:20px!important;padding-right:20px!important}
  [style*="padding: 28px 40px"],[style*="padding: 24px 40px"],[style*="padding: 36px 40px 40px"]{padding-left:22px!important;padding-right:22px!important}
  /* nothing wider than the screen */
  img,video,iframe,svg,canvas{max-width:100%}
  table{display:block;max-width:100%;overflow-x:auto}
  pre,code{white-space:pre-wrap;word-break:break-word}
  h1,h2,h3{overflow-wrap:break-word;hyphens:manual}
  [style*="white-space: nowrap"]:not(a):not(button):not(span){white-space:normal!important}
}
