/* Customer reflow only. Shared theme tokens and the desktop composition stay intact. */
.truck-detail-link,.detail-spec-toggle{display:none}
.detail-description>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:18px;font-weight:600;list-style:none}
.detail-description>summary::-webkit-details-marker{display:none}
.detail-description>summary::after{content:'+';margin-left:auto;padding-inline:12px}
.detail-description[open]>summary::after{content:'−'}
@media(min-width:1024px){
 .detail-description>summary{pointer-events:none;min-height:0;margin:14px 0 6px}
 .detail-description>summary::after{display:none}
}
@media(max-width:1023px){
 /* Two useful rows: compact brand/contact, then four primary links plus More. */
 body[data-page] .ref-header{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 44px;min-height:0;padding:4px 12px 10px;gap:0 8px;align-items:center}
 body[data-page] .ref-brand{grid-column:1;grid-row:1;width:clamp(132px,36vw,178px);max-width:100%}
 body[data-page] .ref-brand img{max-height:40px;width:100%}
 body[data-page] .ref-phone{grid-column:2;grid-row:1;min-height:44px;justify-self:end;gap:5px;font-size:14px;padding:0;border:0}
 body[data-page] .ref-phone svg{width:16px;height:16px}
 body[data-page] .ref-app-switch{display:none}
 body[data-page] .ref-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:0;align-items:center;margin:0;padding:0;border:0}
 body[data-page] .ref-nav>a{font-size:15px;min-height:44px;padding:8px 3px}
 body[data-page] .ref-nav>a[aria-current]{padding-bottom:6px}
 body[data-page] .ref-mobile-menu{position:relative;top:auto;right:auto}
 body[data-page] .ref-mobile-menu summary{gap:4px;padding:7px 8px;min-height:44px;font-size:14px}
 body[data-page] .ref-mobile-menu summary svg{width:17px;height:17px}
 body[data-page] .ref-mobile-menu nav{right:0;max-height:65dvh;width:min(300px,calc(100vw - 24px))}
 body[data-page] .ref-page-title{grid-column:1/-1;grid-row:3;padding:3px 0 1px}
 body[data-page] .ref-page-title h1{font-size:21px!important;line-height:1.15!important}
 body[data-page] .ref-header-trim{height:16px;bottom:-9px}
 body[data-page] .rns-scroll-shell{margin:5px 0 3px}
 body[data-page] .rns-scroll-shell a{min-height:44px;display:flex;align-items:center}
 body[data-page] :is(button,input,select,textarea,summary){scroll-margin-block:12px}
 body[data-page] :is(.truck-sidebar input,.truck-sidebar select,.rns-part-filter-grid select){font-size:16px!important;min-height:44px!important;height:44px!important;max-height:none!important}
 body[data-page] :is(.truck-search-row button,.truck-advanced-filters>summary,.rns-part-advanced>summary,#partClear){min-height:44px}
 body[data-page] .truck-advanced-filters>summary{padding-block:12px}
 body[data-page] .truck-filter-header{display:block}
 body[data-page] .truck-filter-header>label{font-size:13px;margin-bottom:4px}
 body[data-page] .truck-search-row{display:flex;gap:6px}
 body[data-page] .truck-search-row input{flex:1;min-width:0}
 body[data-page] :is(.truck-compact-filters,.rns-part-filter-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-page] .truck-results-count{font-size:14px;margin:6px 0}
 body[data-page] .catalog-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:thin;gap:6px;margin:5px 0}
 body[data-page] .catalog-tabs a{flex:0 0 auto;min-height:44px;font-size:14px;display:flex;align-items:center;padding:8px}
 body[data-page='parts'] .rns-scroll-shell:has(.catnav){display:none}
 body[data-page='parts'] .truck-sidebar{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:4px 8px}
 body[data-page='parts'] .rns-part-advanced{grid-column:1/-1;grid-row:2;width:100%}
 body[data-page='parts'] .rns-part-advanced>summary{font-size:14px;padding:12px 0}
 body[data-page='parts'] #partClear{grid-column:2;grid-row:1;font-size:14px;padding:8px}
 body[data-page='parts'] .rns-part-search{grid-column:1;grid-row:1}
 body[data-page='parts'] .rns-part-search label{font-size:13px}

 /* Inventory rows use photo and copy side by side instead of tall photo tiles. */
 body:is([data-page='trucks'],[data-page='metro']) :is(#truckCards,#metroTruckCards){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
 body:is([data-page='trucks'],[data-page='metro']) :is(#truckCards,#metroTruckCards)>.truck-grid-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;background:#1b4156!important;border:1px solid #87a8bc77!important}
 body:is([data-page='trucks'],[data-page='metro']) :is(#truckCards,#metroTruckCards) .truck-select{grid-column:1;grid-row:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px;min-height:112px;margin:0}
 body:is([data-page='trucks'],[data-page='metro']) .is-selected .truck-select{background:transparent!important;border-left-color:transparent!important}
 body:is([data-page='trucks'],[data-page='metro']) :is(#truckCards,#metroTruckCards) .truck-list-photo{flex:0 0 clamp(84px,24vw,112px);width:clamp(84px,24vw,112px);height:88px;aspect-ratio:auto}
 body:is([data-page='trucks'],[data-page='metro']) .truck-list-copy{gap:4px}
 body:is([data-page='trucks'],[data-page='metro']) .truck-list-copy>strong{font-size:16px;line-height:1.25}
 body:is([data-page='trucks'],[data-page='metro']) .truck-list-mileage{font-size:14px}
 body:is([data-page='trucks'],[data-page='metro']) .truck-list-bottom{display:flex;align-items:flex-start;gap:4px 8px;font-size:14px}
 body:is([data-page='trucks'],[data-page='metro']) .truck-list-status{font-size:12px;padding:2px 6px}
 body:is([data-page='trucks'],[data-page='metro']) .truck-detail-link{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border-left:1px solid #87a8bc44;font-size:0}
 body:is([data-page='trucks'],[data-page='metro']) :is(#truckPreview,#metroTruckPreview){display:none}

 body:is([data-page='trucks'],[data-page='metro']) .truck-detail-link>span{font-size:26px}

 /* Names wrap naturally, photos remain contained, and actions keep a 44px target. */
 body[data-page='parts'] #partCards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch}
 body[data-page='parts'] #partCards>.truck-grid-card{display:flex;flex-direction:column;min-width:0}
 body[data-page='parts'] #partCards .truck-grid-photo{aspect-ratio:4/3;height:auto!important;width:100%}
 body[data-page='parts'] #partCards .part-card-info{flex:1}
 body[data-page='parts'] #partCards .truck-grid-title{font-size:16px!important;line-height:1.25;padding:8px;overflow-wrap:anywhere}
 body[data-page='parts'] #partCards .truck-grid-data{padding:0 8px 6px}
 body[data-page='parts'] #partCards .truck-grid-data div{font-size:13px;padding:4px 0;line-height:1.35}
 body[data-page='parts'] #partCards .truck-grid-data div:first-child{display:none}
 body[data-page='parts'] #partCards .part-card-actions{margin-top:auto;grid-template-columns:minmax(0,1fr)}
 body[data-page='parts'] #partCards .part-card-actions .btn{font-size:13px;padding:8px 5px;min-height:44px;white-space:normal}
 body[data-page='parts'] #partCards .truck-grid-action{font-size:13px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:8px}

 /* Shorter fixed yard banner; useful navigation and search within the first screen. */
 body[data-page='home'] .reference-home{padding-top:6px}
 body[data-page='home'] .ref-hero{gap:8px}
 body[data-page='home'] .ref-yard{height:clamp(120px,38vw,176px)!important;min-height:0!important;margin:6px 12px 0}
 body[data-page='home'] .ref-yard>span{font-size:9px;padding:5px;letter-spacing:1px}
 body[data-page='home'] .ref-hero-copy{padding:0 12px 2px}
 body[data-page='home'] .ref-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-page='home'] .ref-actions .ref-button{width:auto;max-width:none;min-height:48px;padding:8px;font-size:16px;white-space:normal;text-align:left}
 body[data-page='home'] .ref-body{padding:6px 12px}
 body[data-page='home'] .ref-search{flex-wrap:nowrap;gap:6px;padding:6px}
 body[data-page='home'] .ref-search-field{flex:1 1 0;min-width:0;height:44px;padding:0 7px;gap:5px}
 body[data-page='home'] .ref-search input{font-size:16px;min-width:0;width:100%}
 body[data-page='home'] .ref-search-field svg{width:18px;height:18px;flex-shrink:0}
 body[data-page='home'] .ref-search button{flex:0 0 auto;width:auto;min-height:44px;padding:8px;font-size:18px}
 body[data-page='home'] .ref-makes{padding:8px 0}
 body[data-page='home'] .ref-makes-label{font-size:18px;margin-bottom:6px;padding:7px 14px}
 body[data-page='home'] .ref-make-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 body[data-page='home'] .ref-make{min-height:52px;padding:4px}
 body[data-page='home'] .ref-make img{height:44px}
 body[data-page='home'] .ref-section-title{margin:5px 0}
 body[data-page='home'] .ref-section-title h2{font-size:21px;padding:6px 12px}
 body[data-page='home'] .ref-contact-band{height:56px;min-height:56px}
 body[data-page='home'] .ref-contact-text strong{font-size:clamp(19px,5.2vw,27px)}
 body[data-page='home'] .ref-contact-text svg{width:22px;height:22px}

 body:has(.detail-overview) .rns-scroll-shell{display:none}

 /* The same price/availability node moves between photo and specifications on phones. */
 .detail-overview{display:flex!important;flex-direction:column;gap:8px!important}
 .detail-overview>section{width:100%}
 .detail-overview .part-detail-image-space{aspect-ratio:auto;height:clamp(180px,26svh,260px)!important;max-height:none}
 body[data-page] .detail-overview .detail-purchase{margin:0;padding:10px 12px!important}
 body[data-page] .detail-overview .detail-purchase .vehicle-price{font-size:24px;margin:0 0 5px}
 body[data-page] .detail-overview .detail-purchase p{margin:4px 0;font-size:14px;line-height:1.35}
 .detail-overview .detail-purchase .vehicle-actions{margin-top:8px;display:flex;gap:6px}
 .detail-overview .detail-purchase .vehicle-actions .btn{font-size:14px;min-height:44px;padding:9px}
 .detail-overview .detail-information{padding:12px!important}
 .detail-overview .detail-information h2{font-size:22px;margin-bottom:8px}
 .detail-overview .vehicle-specs{display:flex!important;flex-direction:column}
 .detail-overview .vehicle-specs>div{font-size:15px;padding:7px 0;gap:10px}
 .detail-overview .vehicle-specs>div[data-mobile-primary]{order:0}
 .detail-overview .vehicle-specs>div[data-mobile-extra]{order:1}
 .detail-information:not(.show-all-specs) [data-mobile-extra]{display:none}
 .detail-spec-toggle{display:block;min-height:44px;width:100%;text-align:left;margin-top:6px;padding:8px 10px;background:#234b63;color:#f5faff;border:1px solid #9cb7c9;border-radius:6px;font-size:15px;cursor:pointer}
 .detail-description{margin-top:8px;border-top:1px solid #87a8bc77}
 .detail-description>summary{font-size:17px}
 [data-gallery] .truck-preview-photo{touch-action:pan-y pinch-zoom}
 .gallery-thumbs{touch-action:pan-x;overscroll-behavior-x:contain}
 .part-photo-panel .truck-preview-photo-controls button{min-width:44px;min-height:44px}
 .detail-gallery-open{min-height:44px;font-size:14px}
 body[data-page] .site-review-button{min-height:44px}
 body[data-page] .field :is(input,select,textarea){min-width:0;width:100%;font-size:16px}
 body[data-page] .quote-row{gap:8px;align-items:flex-start}
 body[data-page] .quote-row>div{min-width:0;overflow-wrap:anywhere}
 body[data-page] .quote-row label{display:block;margin-top:6px}
 body[data-page] .quote-row input{max-width:100%}
}
@media(min-width:700px) and (max-width:1023px){
 body:is([data-page='trucks'],[data-page='metro']) :is(#truckCards,#metroTruckCards){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-page='parts'] #partCards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:359px){body[data-page='parts'] #partCards{grid-template-columns:minmax(0,1fr)!important}}
