/* Phone layout uses the approved fonts and exact existing artwork.
   Keep all narrow-screen geometry together after the typography stylesheet. */
@media(max-width:760px){
 html{scroll-padding-top:100px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body{--ray-dock-space:calc(76px + env(safe-area-inset-bottom,0px));padding-bottom:var(--ray-dock-space)}
 .wrap{width:calc(100% - 32px)!important;min-width:0;max-width:1200px}
 main,main section,main form,main fieldset{min-width:0;max-width:100%}
 main :is(h1,h2,h3,h4,p,li,label,legend,small,a){overflow-wrap:anywhere}
 main :is(h1,h2,h3,h4){hyphens:none!important}
 main :is(input,select,textarea){max-width:100%;min-width:0;scroll-margin-block:110px}
 main :is(input,select,textarea):focus{scroll-margin-bottom:140px}

 /* The slogan keeps its exact text and fonts in two compact rows. The
    intro and final header share this geometry, preserving the flight. */
 .industrialPromise__inner{width:calc(100% - 32px)!important;padding:12px 0!important}
 .industrialPromise__message{display:grid!important;grid-template-columns:max-content minmax(0,1fr)!important;gap:5px 12px!important;align-items:center!important;width:fit-content!important;max-width:100%!important;margin:auto!important;text-align:left!important}
 .industrialPromise__line{min-width:0;max-width:100%;white-space:normal}
 .industrialPromise__line--top,.industrialPromise__line--bridge{font-size:20px!important;line-height:1.25!important;letter-spacing:.04em!important;text-align:right;align-self:center;margin:0!important}
 .industrialPromise__line--script{font-size:clamp(26px,8vw,42px)!important;line-height:1.12!important;letter-spacing:-.04em!important;-webkit-text-stroke:0;text-shadow:1px 2px 0 #101113,2px 3px 0 #a61928}
 .industrialPromise__line--bay{font-size:clamp(22px,6.4vw,34px)!important;line-height:1.15!important;letter-spacing:-.045em!important;-webkit-text-stroke:0;text-shadow:1px 2px 0 #111,2px 3px 0 #a61928}
 .industrialPromise__line--top::before,.industrialPromise__line--top::after,.industrialPromise__line--bay::after{display:none!important}
 .top .wrap{min-height:0!important;padding:9px 0!important;display:block!important;text-align:center}
 .top .wrap>span{display:block!important;font-size:20px!important;line-height:1.35!important;letter-spacing:0!important}
 .top .wrap>span::before{display:none!important}
 .top .wrap>a{display:none!important} /* Call and Text stay in the fixed bar. */

 /* A flexible logo column leaves room for a real, readable Menu button at
    320px. This scales the existing approved logo crop; no asset is edited. */
 body>.nav{position:sticky;top:0;z-index:80}
 .nav .navin{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;align-items:center!important;gap:12px!important;min-height:86px!important;padding:9px 0!important;position:relative}
 .nav .brand{--ray-logo-width:clamp(152px,52vw,216px);--ray-logo-art:calc(var(--ray-logo-width) - 16px);width:var(--ray-logo-width)!important;min-width:0!important;max-width:100%!important;height:calc(var(--ray-logo-art)*.38 + 16px)!important;min-height:0!important;border:4px solid #fff!important;padding:4px!important;box-shadow:none!important;border-radius:5px!important}
 .nav .brand .brandMark{width:var(--ray-logo-art)!important;height:calc(var(--ray-logo-art)*.38)!important;max-width:100%!important;min-height:0!important;background-size:calc(var(--ray-logo-art)*1.543) calc(var(--ray-logo-art)*1.029)!important;background-position:calc(var(--ray-logo-art)*-.2893) calc(var(--ray-logo-art)*-.2929)!important}
 .nav .links{display:none!important}
 .nav .mobileMenu{display:block!important;position:static;min-width:0;max-width:100%}
 .nav .mobileMenu summary{display:flex;align-items:center;justify-content:center;min-height:52px!important;min-width:82px;padding:10px 12px!important;font-size:20px!important;line-height:1.3!important}
 .nav .mobileMenuPanel{top:calc(100% + 1px);left:0;right:0;width:100%!important;max-height:calc(var(--ray-visual-height,100dvh) - 110px - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;padding:12px;border-radius:0 0 10px 10px;z-index:85}
 .nav .mobileMenuPanel a{min-height:52px;display:flex;align-items:center;white-space:normal;overflow-wrap:anywhere;font-size:20px!important;line-height:1.4!important}

 /* Make the next action available before decorative photography or the
    long introduction. Body copy remains 22px; support copy remains 20px. */
 .xpHero{padding:24px 0 28px!important}
 .xpHeroGrid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;min-height:0!important;align-items:start!important}
 .xpHeroCopy{display:contents!important}
 .xpHeroCopy>.xpKicker{order:1!important;margin:0 0 8px!important;font-size:20px!important;line-height:1.35!important;letter-spacing:.04em!important}
 .xpHeroCopy>.xpHeroStatement{order:2!important;font-size:clamp(30px,8.6vw,44px)!important;line-height:1.15!important;max-width:100%!important;margin:0 0 20px!important;text-wrap:balance}
 html[lang="es"] .xpHeroCopy>.xpHeroStatement{font-size:clamp(28px,7.8vw,40px)!important}
 .xpHeroCopy>.xpHeroActions{order:3!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%;margin:0 0 22px!important}
 .xpHeroActions .xpBtn{width:100%;min-width:0!important;min-height:56px!important;padding:14px 16px!important;white-space:normal;line-height:1.35!important}
 .xpHeroCopy>p:not(.xpHeroFinePrint){order:4!important;margin:0 0 16px!important;font-size:22px!important;line-height:1.55!important}
 .xpHeroCopy>.xpHeroFinePrint{order:5!important;margin:0 0 18px!important;font-size:20px!important;line-height:1.5!important}
 .xpHeroCopy>.xpHeroProof{order:6!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;margin:0 0 22px!important;padding-top:16px}
 .xpHeroProof>div{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:start;gap:12px;min-width:0}
 .xpHeroProof div :is(b,span){font-size:20px!important;line-height:1.4!important;min-width:0}
 .xpHeroGrid>.xpHeroVisual{order:7!important;grid-column:1!important;width:100%;height:clamp(230px,65vw,320px)!important;min-height:0!important;max-height:none!important;margin:0 0 20px!important}
 .xpHeroVisual figcaption{left:16px!important;right:16px!important;bottom:16px!important;padding-left:12px!important}
 .xpHeroVisual figcaption :is(span,strong){font-size:20px!important;line-height:1.4!important;letter-spacing:.02em!important}
 .xpHeroGrid>.rayMascotHeroSlot{order:8!important;grid-column:1!important}
 .xpStartZone .xpConsoleContact a{min-width:0!important;flex:1 1 100%;min-height:52px}
 .xpServiceTile,.xpRetentionCard{min-height:0!important}
 .xpServiceTile{padding:22px 20px 72px!important}
 .xpServiceTile--photo{min-height:340px!important}
 .xpRetentionCard{padding:24px 20px 82px!important}
 .xpRoadsideActions,.xpFinalActions{min-width:0;display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 .xpRoadsideActions>a,.xpFinalActions>a{min-width:0;white-space:normal;min-height:56px}

 /* Shared inner pages and active forms use the whole phone width. */
 .innerHero,.pageHero,.fleetHero2,.roadHero,.utilityHero2,.advisorHero{padding:28px 0!important}
 .innerHeroGrid,.innerGrid,.utilityGrid,.utilityHero2Grid,.fleetHero2Grid,.roadHeroGrid,.advisorGrid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 .innerGrid>*,.innerHeroGrid>*,.utilityGrid>*,.roadHeroGrid>*,.fleetHero2Grid>*{min-width:0;max-width:100%}
 .innerHero h1,.pageHero h1,.fleetHero2 h1,.roadHero h1,.utilityHero2 h1,.advisorHero h1{font-size:clamp(30px,8.5vw,42px)!important;line-height:1.18!important}
 .innerBody,.utilityBody,.fleetBody,.roadBody{padding:28px 0 36px!important}
 .qrPage .innerGrid,.estimatorPage .innerGrid{display:flex!important;flex-direction:column;align-items:stretch;gap:24px!important}
 .qrPage .innerContent,.estimatorPage .innerContent,.qrPage .wizardShell,.estimatorPage .wizardShell{order:1;width:100%}
 .qrPage .innerRail,.estimatorPage .innerRail{order:2;width:100%;position:static!important}
 .qrPage .qrStage,.estimatorPage .wizardPane,.utilityForm,.innerPanel{padding:20px 16px!important;min-width:0;max-width:100%}
 .qrPage .qrStage .fields,.estimatorPage .fields{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 .qrPage .qrStage .field,.estimatorPage .field{min-width:0;grid-column:1!important}
 .qrPage .qrChoice label{padding:14px!important}
 .qrReview>*,.qrReviewRow,.innerRow,.garagePreviewRow,.fleetDashRow{min-width:0;overflow-wrap:anywhere}
 .innerRow>em,.fleetDashRow>em{white-space:normal}
 .qrNav .btn,.wizardNav .btn,.actions .btn{min-height:56px!important;min-width:0!important;max-width:100%;white-space:normal}
 .homeExperience,footer{padding-bottom:32px!important}

 /* Three clearly named actions fit without splitting words at 320px.
    Emergency and quote pages retain their focused two-action bars. */
 body .mobileActionDock{z-index:90;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px;min-height:0;padding:7px max(8px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))!important}
 body .mobileActionDock--roadside,body .mobileActionDock--quote{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .mobileActionDock a{min-height:56px!important;min-width:0!important;padding:9px 4px!important;font-size:18px!important;line-height:1.2!important;letter-spacing:0!important;overflow-wrap:normal!important;white-space:normal!important;display:flex;align-items:center;justify-content:center}
 body .mobileActionDock a:last-child{border-right:0}
 body .vrLaunch{right:max(12px,env(safe-area-inset-right,0px))!important;bottom:calc(var(--ray-dock-space) + 12px)!important;width:54px!important;height:54px!important;min-height:54px!important;padding:4px!important;border-radius:50%;z-index:95}
 body .vrLaunch img{width:42px!important;height:42px!important}
 body .vrLaunch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body .vrPanel:not([hidden]){position:fixed!important;top:calc(var(--ray-visual-top,0px) + 8px + env(safe-area-inset-top,0px))!important;right:max(8px,env(safe-area-inset-right,0px))!important;bottom:auto!important;left:auto!important;width:calc(100% - 16px - env(safe-area-inset-right,0px) - env(safe-area-inset-left,0px))!important;height:calc(var(--ray-visual-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;max-height:none!important;border-radius:12px;z-index:10001}
 body .vrHead{flex:0 0 auto!important;gap:10px!important;padding:12px!important}
 body .vrHead>div{min-width:0;flex:1}
 body .vrHead strong{font-size:20px!important;overflow-wrap:anywhere}
 body .vrHead small{font-size:20px!important;line-height:1.35!important}
 body .vrHead button{min-width:48px!important;min-height:48px!important;flex:none}
 body .vrThread{min-height:0!important;padding:14px!important;overscroll-behavior:contain}
 body .vrFooter{flex:0 0 auto;max-height:55%;overflow-y:auto;padding:12px!important}
 body .vrBubble{max-width:100%;overflow-wrap:anywhere}
 body:has(.vrPanel:not([hidden])){overflow:hidden}
 body:has(.vrPanel:not([hidden])) :is(.vrLaunch,.mobileActionDock),
 body:has(#main-content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select):focus) :is(.vrLaunch,.mobileActionDock){visibility:hidden;pointer-events:none}
 html.rayCompactViewport .vrHead small{display:none!important}
 html.rayCompactViewport .vrFooter{font-size:0}
 html.rayCompactViewport .vrFooter>a,html.rayCompactViewport .vrFooter>p{display:none}

 /* Corner controls cannot overlap, including the longer Spanish label. */
 .rayIntro__skip{left:12px!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;width:calc(50% - 20px);max-width:210px;min-height:52px;white-space:normal;font-size:20px!important;line-height:1.3;padding:10px!important;letter-spacing:0}
 .rayIntro__logo{right:12px!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;width:clamp(112px,38vw,160px)!important;padding:6px}
 .rayIntro__logo img{max-height:80px}
}
@media(max-width:359px){
 .wrap,.industrialPromise__inner{width:calc(100% - 24px)!important}
 .industrialPromise__message{column-gap:8px!important}
 .nav .navin{gap:8px!important}
 .nav .mobileMenu summary{min-width:76px;padding-inline:9px!important}
 .xpHeroProof>div{grid-template-columns:76px minmax(0,1fr);gap:8px}
}
