/* Phone pass. Everything here is inside max-width:760px (or hover:none on
   touch screens), so desktop is untouched. Loaded after fit.css. */
@media (max-width:760px){
 /* Background map without the BLANC wordmark, so no ghost text sits behind titles. */
 body::before{background-image:url('world-clean.webp')}

 /* Header: brand on its own line, one tidy row of links under it. */
 html body header,html body.is-home header{display:block;padding:16px 20px 0;min-height:0}
 html body header .brand,html body.is-home header .brand{font-size:10px;letter-spacing:2.6px}
 html body header .brand:after,html body.is-home header .brand:after{margin-top:7px;width:30px;height:2px}
 html body header nav,html body.is-home header nav{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;margin:14px 0 0;font-size:11.5px;white-space:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
 html body header nav::-webkit-scrollbar{display:none}
 html body header nav a{padding:4px 0}

 /* Footer: part of the page instead of a bar covering the bottom of the screen. */
 body:not(.is-home) #site-footer{position:static;display:block;margin:28px 0 0;padding:20px 20px calc(22px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
 body:not(.is-home) #site-footer .brand{font-size:10px;letter-spacing:2.6px}
 body:not(.is-home) #site-footer .legal-links{margin-top:12px;gap:8px 16px;font-size:11px}
 body:not(.is-home) .footer-space{display:none}
 html:has(body:not(.is-home)){scroll-padding-bottom:0}
 /* Short pages (e.g. "Confirming your payment") still keep the footer near the bottom. */
 body:not(.is-home) main.inner:not([hidden]){min-height:calc(100svh - 300px)}

 /* Headings focused by the page script (for screen readers) get no visible box. */
 [tabindex="-1"]:focus,h1:focus,h2:focus{outline:none}

 /* Page title area */
 body:not(.is-home) main.inner{margin-top:28px}

 /* Step 2 (build): state choice right under the map, then the order total. */
 .us-setup-layout>.us-side{display:contents}
 .us-setup-layout>.us-question{order:1}
 .us-setup-layout .us-map{order:2}
 .us-setup-layout .us-map-caption{order:3}
 .us-setup-layout>.us-state-controls{order:4;margin-top:0}
 .us-setup-layout .us-price{order:5}
 .us-setup-layout .us-side>.us-wa{order:6}
 .us-setup-layout>.us-actions{order:7}
 .us-setup-layout>.us-actions{position:relative;z-index:1;margin-top:6px}
 html body .us-config .us-setup-layout{row-gap:16px}
 .us-setup-layout .us-map-caption{margin:0}
 .us-setup-layout>.us-state-controls .us-state-label{margin-top:0}
 .us-setup-layout .us-side>.us-wa{margin-top:0}

 /* Services page and step 3 (SSN / ITIN): slim rectangles instead of tall cards,
    so every option is on screen at once. Same pieces as the desktop cards:
    icon, title, short text, number or timing. */
 html body .service-selection .cards,html body .us-config .us-status-step .us-status-cards{grid-template-columns:1fr;gap:10px;margin-top:4px}
 html body .service-selection .choice,html body .us-config .us-status-step .choice{display:grid;grid-template-columns:30px minmax(0,1fr) auto;column-gap:14px;row-gap:4px;align-items:center;min-height:0;padding:14px 16px;border-radius:10px}
 html body .service-selection .choice .icon,html body .us-config .us-status-step .choice .icon{grid-column:1;grid-row:1/span 2;align-self:center;width:30px;height:30px;margin:0}
 html body .service-selection .choice .rule,html body .us-config .us-status-step .choice .rule{display:none}
 html body .service-selection .choice h2,html body .us-config .us-status-step .choice h2{grid-column:2;grid-row:1;font-size:13px;letter-spacing:1.4px;line-height:1.35;margin:0}
 html body .service-selection .choice p,html body .us-config .us-status-step .choice p{grid-column:2/-1;grid-row:2;font-size:11.5px;line-height:1.5;margin:0}
 html body .service-selection .choice .n{grid-column:3;grid-row:1;font-size:12px;letter-spacing:2px}
 html body .us-config .us-status-step .choice .n{display:none}
 html body .us-config .us-status-step .us-status-time{grid-column:3;grid-row:1;margin:0;max-width:84px;text-align:right;font-size:10px;letter-spacing:1px;line-height:1.35}
 html body .service-selection .section-title{margin-bottom:18px}
 html body .service-selection .route-head{margin-bottom:22px}

 /* Step 2 (build): slimmer add-on rows. */
 html body .us-config .us-setup-layout .us-service-options{gap:8px}
 html body .us-config .us-setup-layout .us-service-options .us-option{min-height:0;padding:12px 14px;gap:4px 10px}
 html body .us-config .us-setup-layout .us-service-options .option-sub{font-size:11.5px;line-height:1.5}

 /* Order page: slim timeline rows so "What we need from you" is on screen on arrival. */
 html body .trk .us-tl2-cards{gap:8px}
 html body .trk .us-tl2-card{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:3px;padding:11px 12px 11px 50px;min-height:0}
 html body .trk .us-tl2-card strong{order:-1;font-size:14px;line-height:1.3}
 html body .trk .us-tl2-card .us-tl2-pill{font-size:10.5px;padding:2px 9px;line-height:1.5}
 html body .trk .us-tl2-card small{flex-basis:100%;font-size:11.5px;line-height:1.45}
 html body .trk .us-tl2-num{left:12px;top:10px;width:26px;height:26px}
 html body .trk-head{gap:8px}
 html body .trk-head h2{font-size:19px;line-height:1.35}
 html body .trk-page .us-top{margin-bottom:10px}

 /* Guided company setup: the question comes first; the live company card
    shrinks to its name so the form is on screen straight away. */
 .us-wiz .wiz-card{order:-1;padding:14px 16px;border-radius:12px}
 .us-wiz .wiz-card-kicker{margin-bottom:6px;font-size:9.5px}
 .us-wiz .wiz-card-name{font-size:18px}
 .us-wiz .wiz-card-sub{margin:4px 0 0;font-size:9.5px}
 .us-wiz .wiz-card dl,.us-wiz .wiz-card small{display:none}
 .us-wiz .wiz-body:has(.wiz-check) .wiz-card{display:none}
 .us-wiz .wiz-body{gap:18px}
 .us-wiz .wiz-check li{grid-template-columns:86px 1fr auto;gap:10px}
 .us-wiz .wiz-check li span{letter-spacing:.6px}
 /* People: one small card per person — name, email, then role / share / remove. */
 html body .us-wiz .wiz-people{gap:10px}
 html body .us-wiz .wiz-person,html body .us-wiz .wiz-people-roles .wiz-person{grid-template-columns:minmax(0,1fr) 66px 20px;gap:6px;padding:12px;border:1px solid #ffffff17;border-radius:10px;background:#0d141966}
 html body .us-wiz .wiz-person [data-p="n"]{grid-column:1/-1;order:-2}
 html body .us-wiz .wiz-people-roles .wiz-person [data-p="e"]{grid-column:1/-1;order:-1}
 html body .us-wiz .wiz-person .wiz-na{text-align:center;color:var(--muted)}
 html body .us-wiz .wiz-person .wiz-x{justify-self:center}
 html body .us-wiz .wiz-person select{font-size:13px;padding:0 22px 0 9px}
 html body .us-wiz .wiz-person .wiz-pct input{padding-left:6px;padding-right:24px}
 html body .us-wiz .wiz-person .wiz-pct span{right:9px}
 html body .trk-form-card:has(.us-wiz){padding:18px 16px 18px}
 html body .us-wiz .lead-actions{flex-wrap:nowrap;gap:16px}
 html body .us-wiz .lead-actions .primary{flex:1;min-width:0}
}

/* Phones keep a tapped card looking "hovered". Only the chosen card stays copper. */
@media (max-width:760px){
 html body .us-config .us-status-step .choice:not([aria-pressed=true]):hover{background:linear-gradient(130deg,#26272588,#10111055);border-color:#8e817659}
}
@media (max-width:760px){
.gd-mobility.mr-final .mr-report-header .gd-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:6px!important;grid-template-columns:none!important;scrollbar-width:none;padding-bottom:10px}
.gd-mobility.mr-final .mr-report-header .gd-tabs button{flex:0 0 auto!important;width:auto!important;min-height:0!important;padding:8px 13px!important;font-size:13px!important;border-radius:20px!important}
.gd-mobility.mr-final .mr-report-header .gd-tabs svg{display:none!important}
.gd-mobility.mr-final .mr-report-header h2{font-size:22px!important}
.mo-row{grid-template-columns:1fr;grid-template-areas:'place' 'title' 'price' 'chip';}
.mo-price,.mo-chip{justify-self:start;text-align:left;max-width:none}
}
