/* Phone/tablet changes only. Preserve the existing desktop appearance. */
@media (max-width:1024px){
/* Only opted-in public pages receive this sheet. FAQ/bot assets are independent. */
html[data-hrs-responsive] :is(main,.about-redesign,.hrs-story-stage,.rewards-page){min-width:0}
html[data-hrs-responsive] body :is(p,address,dd){overflow-wrap:break-word}
html[data-hrs-responsive] :is(.services-feature,.services-placement,.affiliate-copy-columns,.affiliate-details-columns,.corporate-benefit-grid,.individual-benefit-grid,.legal-columns,.embassy-guidance-layout,.contact-layout,.about-welcome-columns,.about-company-columns,.mm-intro-layout,.programme-course-layout)>*{min-width:0}
html[data-hrs-responsive] .shop-intro .hero-inner>*{min-width:0}
html[data-hrs-responsive] :is(main,.about-redesign) :is(h1,h2,h3,h4,h5){overflow-wrap:break-word}
html[data-hrs-responsive] body :is(iframe,video){max-width:100%}
html[data-hrs-responsive] .auth-reset-guide video{display:block;width:100%;height:auto}
html[data-hrs-responsive] :is(dialog,.modal-dialog){max-width:calc(100vw - 32px)}
html[data-hrs-responsive] dialog{max-height:90dvh;overflow-y:auto}
@media(max-width:1024px),(pointer:coarse){
 html[data-hrs-responsive] :is(main,.about-redesign,.application-guide-page) :is(button,.btn,[role=button]){min-width:44px;min-height:44px;max-width:100%;white-space:normal}
 html[data-hrs-responsive] :is(.pagination,.blogs-pagination,.events-pagination,.achievements-pagination,.programme-pagination){flex-wrap:wrap}
}

/* Content is allowed to grow on tablets and small laptops; never shrink copy
   just to preserve a desktop screen boundary. Separate cinematic heroes remain. */
@media(max-width:1200px){
 html[data-hrs-responsive] body .hrs-viewport-screen{min-height:0!important;height:auto}
 html[data-hrs-responsive] :is(.affiliate-first-screen,.affiliate-second-screen,.about-first-screen,.about-screen,.services-first-screen,.services-screen,.languages-first-screen,.languages-screen,.visa-first-screen,.visa-screen,.reskill-first-screen,.reskill-screen,.quality-first-screen,.quality-second-screen,.public-info-content,.legal-embassy-section,.mm-classic-intro,.mm-continuation,.mm-classic-audiences,.mm-connection-screen){min-height:0!important;height:auto}
 html[data-hrs-responsive] :is(.affiliate-introduction,.about-welcome,.services-introduction,.languages-introduction,.public-info-content){padding-block:28px!important}
 html[data-hrs-responsive] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea,[contenteditable=true]){font-size:16px!important;max-width:100%}
 html[data-hrs-responsive] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:44px}
 html[data-hrs-responsive] :is(.affiliate-heading-row,.embassy-contact-actions,.affiliate-actions,.shop-header-inner){flex-wrap:wrap}
 html[data-hrs-responsive] :is(.affiliate-heading-links a,.embassy-contact-actions a,.affiliate-actions a,.card-action,.programme-view){min-height:44px;display:inline-flex;align-items:center}
 html[data-hrs-responsive] :is(.services-feature-grid,.services-placement-grid,.individual-benefit-grid,.ls-focus-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
 html[data-hrs-responsive] :is(.affiliate-copy-columns,.affiliate-details-columns,.legal-columns,.embassy-guidance-layout,.contact-layout,.about-welcome-columns,.about-company-columns){column-gap:28px}
 html[data-hrs-responsive] .login-preview-layout{gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 html[data-hrs-responsive] .login-preview-form{min-width:0;padding:24px}
 html[data-hrs-responsive] .services-feature>div{min-width:0;flex:1}
}
@media(max-width:1000px){
 html[data-hrs-responsive] :is(.affiliate-copy-columns,.affiliate-details-columns,.legal-columns,.embassy-guidance-layout,.contact-layout,.about-welcome-columns,.about-company-columns,.mm-intro-layout,.mm-continuation-grid,.individual-continuation){grid-template-columns:minmax(0,1fr);gap:24px}
 html[data-hrs-responsive] .affiliate-heading-row{align-items:flex-start}
 html[data-hrs-responsive] .affiliate-heading-row>div{min-width:0}
 html[data-hrs-responsive] .contact-map{height:360px;min-width:0}
}
@media(max-width:767px){
 html[data-hrs-responsive] .login-preview-layout{grid-template-columns:minmax(0,1fr)}
 html[data-hrs-responsive] .login-preview-form{width:100%;max-width:none}
 html[data-hrs-responsive] .affiliate-heading-row .affiliate-heading-links{width:auto;flex-direction:row;flex-wrap:wrap;align-items:center}
 html[data-hrs-responsive] :is(.services-page,.about-redesign,.affiliate-public-page,.public-info-page) :is(.container,.public-info-container){padding-inline:20px!important}
 html[data-hrs-responsive] :is(.services-banner,.affiliate-banner,.about-banner,.public-info-banner) h1{font-size:clamp(28px,6vw,36px)!important;line-height:1.2!important}
 html[data-hrs-responsive] :is(.services-section-heading h2,.affiliate-body-title,.public-info-page h2,.about-redesign h2,.about-redesign h3){font-size:clamp(22px,4.5vw,28px)!important;line-height:1.35!important}
}
@media(max-width:600px){
 html[data-hrs-responsive] :is(.services-feature-grid,.services-placement-grid,.individual-benefit-grid,.corporate-benefit-grid,.ls-focus-grid,.quality-recruitment-body,.quality-assurance,.reward-grid){grid-template-columns:minmax(0,1fr);gap:24px}
 html[data-hrs-responsive] .services-feature{gap:14px}
 html[data-hrs-responsive] .services-illustration{width:40px;height:40px;flex-basis:40px}
 html[data-hrs-responsive] .embassy-reference{padding:20px}
 html[data-hrs-responsive] .embassy-contact-actions{align-items:flex-start;gap:12px}
 html[data-hrs-responsive] .embassy-primary-link{white-space:normal}
 html[data-hrs-responsive] .affiliate-heading-links a{font-size:16px}
 html[data-hrs-responsive] .login-preview-layout{padding-inline:20px}
 html[data-hrs-responsive] .shop-intro .eyebrow{white-space:normal;max-width:100%;overflow-wrap:break-word}
 /* Fixed help text stays inside the viewport even for labels near an edge. */
 html[data-hrs-responsive] .tooltip-icon .tooltiptext{position:fixed!important;left:20px!important;right:20px!important;bottom:24px!important;top:auto!important;width:auto!important;max-width:calc(100vw - 40px);margin-left:0!important;box-sizing:border-box;z-index:1100}
 html[data-hrs-responsive] .tooltip-icon .tooltiptext::after{display:none}
}

/* Story cards grow with their text instead of overlapping absolute positions.
   Retain the road between the two desktop columns, with a linear mobile story. */
html[data-hrs-responsive] .hrs-story-stage{height:auto!important;min-width:0}
html[data-hrs-responsive] .hrs-story-stage .hrs-story-road .hrs-road-screen{height:auto!important;min-width:0}
html[data-hrs-responsive] .hrs-story-stage .hrs-road-map{overflow:clip;min-height:0}
html[data-hrs-responsive] .hrs-story-stage .hrs-story-road{height:auto}
html[data-hrs-responsive] .hrs-story-stage .hrs-road-card{min-width:0}
html[data-hrs-responsive] .hrs-story-stage .hrs-highway{z-index:0;pointer-events:none}
html[data-hrs-responsive] .hrs-story-stage .hrs-road-stories{position:relative;z-index:1}
html[data-hrs-responsive] .hrs-story-stage .hrs-road-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20%;height:auto;align-items:start}
html[data-hrs-responsive] .hrs-story-stage .hrs-road-milestone{position:relative;width:auto;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important}
@media(max-width:1200px){
 html[data-hrs-responsive] .hrs-story-stage{grid-template-columns:minmax(0,1fr)!important;gap:28px;padding-block:28px}
 html[data-hrs-responsive] .hrs-story-stage .hrs-story-original-banner{width:100%;height:auto;min-height:180px}
 html[data-hrs-responsive] .hrs-story-stage .hrs-story-original-banner>div{padding:24px;justify-content:center}
 html[data-hrs-responsive] .hrs-story-stage .hrs-road-stories{gap:24px}
 html[data-hrs-responsive] .hrs-story-stage :is(.hrs-highway,.hrs-road-connectors,.hrs-road-map>.hrs-road-point){display:none!important}
 html[data-hrs-responsive] .hrs-story-stage .hrs-road-card{padding:20px}
}
@media(max-width:600px){html[data-hrs-responsive] .hrs-story-stage .hrs-road-stories{grid-template-columns:minmax(0,1fr)}}

}
