/* R139: responsive layout corrections. Desktop design remains unchanged. */
@media (max-width:1040px){
  html body #main.saa-success-page .stories-layout{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}
  html body #main.saa-success-page :is(.story-main,.story-side,.story-list,.widget,.r139-search-tools,.r139-filter-body){min-width:0;max-width:100%;}
  html body #main.saa-success-page .r139-search-tools{display:grid;gap:10px;}
  html body #main.saa-success-page .r139-search-tools .widget{margin:0;padding:15px;}
  html body #main.saa-success-page .r139-filter-panel{border:1px solid #dce8ef;border-radius:14px;background:#fff;}
  html body #main.saa-success-page .r139-filter-panel summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:12px 15px;cursor:pointer;color:#17415a;font-size:14px;font-weight:700;list-style:none;}
  .r139-filter-panel summary::-webkit-details-marker{display:none;}
  .r139-filter-panel summary i{color:#087cad;}
  .r139-filter-panel[open] summary i{transform:rotate(180deg);}
  html body #main.saa-success-page .r139-filter-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:0 10px 10px;}
  html body #main.saa-success-page .r139-filter-body .widget{box-shadow:none;padding:10px;}
  html body #main.saa-success-page .r139-filter-body .w-item{min-height:44px;overflow-wrap:anywhere;}
  html body #main.saa-success-page .w-item-label{min-width:0;align-items:center;gap:6px;overflow-wrap:anywhere;}
  html body #main.saa-success-page .w-search input{font-size:16px!important;min-width:0;width:0;}
  html body #main.saa-success-page .w-search button{min-height:44px;flex-basis:44px;}
  html body #main.saa-success-page .story-side{grid-template-columns:repeat(2,minmax(0,1fr));}
  html body #main.saa-success-page .story-body{min-width:0;overflow-wrap:anywhere;}
  html body #main.saa-success-page .st-meta>*{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;}
  html body #main.saa-success-page .w-tags .w-tag{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px;}
  html body #main.saa-success-page .story-list .story a.r131-story-link{min-height:44px;display:inline-flex;align-items:center;gap:9px;padding:10px 15px;background:#087cae;color:#fff;border-radius:9px;}
  html body #main.saa-success-page .story-list .story a.r131-story-link i{color:inherit;}
  html body #main.saa-success-page .pager{max-width:100%;gap:5px;}
  html body #main.saa-success-page .pg-btn{min-width:44px;min-height:44px;padding:0 8px;}
  html body #main.saa-success-page .pg-nums{max-width:100%;}
}
@media (max-width:760px){
  html body #main.saa-success-page .story-side{grid-template-columns:minmax(0,1fr)!important;}
  html body #main.saa-success-page .stories{padding-block:32px 48px!important;}
  html body #main.saa-success-page .ss-head--intro{margin-bottom:22px!important;}
  html body #main.saa-success-page .story-list{gap:16px!important;}
  html body #main.saa-success-page .story{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;padding:14px!important;min-width:0;}
  html body #main.saa-success-page .story-media{min-height:0!important;aspect-ratio:auto!important;}
  html body #main.saa-success-page .story-media>img{position:static!important;display:block;width:100%!important;height:auto!important;max-height:330px;aspect-ratio:auto!important;object-fit:contain!important;border-radius:12px!important;}
  html body #main.saa-success-page .story-body h3{line-height:1.4!important;}
  html body #main.saa-experts-page .gtab-wrap{overflow:visible!important;}
  html body #main.saa-experts-page .gtab-strip{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;overflow:visible!important;scroll-snap-type:none!important;max-width:100%!important;}
  html body #main.saa-experts-page .gtab-strip .gtab{flex:0 1 auto!important;min-height:44px;max-width:100%;white-space:normal!important;}
  html body #main.saa-experts-page .gtab img{width:22px!important;height:15px!important;object-fit:cover;flex:none;}
  html body #main.r137-story-page .r137-shell{width:calc(100% - 24px)!important;}
  html body #main.r137-story-page .r137-article{padding:clamp(12px,4vw,18px)!important;}
  html body #main.r137-story-page .r137-facts dl>div{grid-template-columns:minmax(72px,.8fr) minmax(0,1.2fr);}
  html body #main.r137-story-page .r137-narrative{line-height:1.85;overflow-wrap:anywhere;}
  html body #main.r137-story-page .r137-story-nav a{min-width:0;overflow-wrap:anywhere;}
}
@media (max-width:680px){
  html body #main:is(.saa-page-services,.saa-experts-page,.saa-success-page) section.saa-inner-hero.contact-hero{--saa-inner-hero-height:auto;height:auto!important;block-size:auto!important;min-height:0!important;max-height:none!important;min-block-size:0!important;max-block-size:none!important;}
  html body #main:is(.saa-page-services,.saa-experts-page,.saa-success-page) section.saa-inner-hero.contact-hero>.saa-inner-hero__inner{height:auto!important;block-size:auto!important;min-height:0!important;max-height:none!important;min-block-size:0!important;max-block-size:none!important;padding-top:calc(100vw / 3 + 22px)!important;padding-bottom:24px!important;}
  html body #main:is(.saa-page-services,.saa-experts-page,.saa-success-page) section.saa-inner-hero .saa-inner-hero__copy{min-width:0;}
}
@media (max-width:360px){html body #main.saa-success-page .r139-filter-body{grid-template-columns:minmax(0,1fr);}}
/* Keep entry effects fail-open on touch devices, including cached R79 classes. */
@media (max-width:1024px), (hover:none) and (pointer:coarse), (prefers-reduced-motion:reduce){
  html body #main :is(.saa-entry-foreground,.saa-entry-reveal,.reveal,[data-aos]){opacity:1!important;visibility:visible!important;transform:none!important;animation:none!important;transition:none!important;will-change:auto!important;}
}
@media (max-width:760px){
  html body #main.saa-success-page .story-media>img.is-broken{display:none!important;}
  html body #main.saa-success-page .story-media:has(>img.is-broken){min-height:210px!important;}
}
