/* Narrow-screen layout. Desktop presentation stays in the existing stylesheets. */
.metric-scroll-note{display:none}
@media(max-width:1023px){
 html,html:has(body.bc-document),body,body.bc-document,body.checkout-shell{
  min-width:0;width:100%;height:auto;min-height:100%;overflow-x:clip;overflow-y:auto;
 }
 body{--bc-text-body:16px;--bc-text-note:14px;--bc-text-subheading:18px;--bc-text-heading:26px;overflow-wrap:anywhere;padding-bottom:var(--mobile-actions-height,0px)}
 :is(h1,h2)[tabindex="-1"]:focus{outline:none}
 .site-shell,.site-shell:not(.is-home),.site-shell.bc-community,body.checkout-shell.bc-document{
  box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:none;height:auto;min-height:100svh;margin:0;padding:0 16px;
  --bc-text-body:16px;--bc-text-note:14px;--bc-text-subheading:18px;--bc-text-heading:26px;
 }
 .site-shell>.masthead,.site-shell.bc-community>.masthead,.checkout-shell>.masthead{
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;position:relative;width:100%;height:auto;min-height:80px;padding:14px 0 20px;gap:8px 10px;flex:none;align-items:center;
 }
 .site-shell .brand,.checkout-shell .brand{min-width:0;width:auto}
 .site-shell .brand strong,.checkout-shell .brand strong{font-size:30px;letter-spacing:-1.5px}
 .site-shell .brand>span,.checkout-shell .brand>span{font-size:6px;letter-spacing:1.8px}
 .site-shell>.masthead>.edition{position:absolute;top:auto;right:auto;bottom:4px;left:0;align-items:flex-start;margin:0}
 .site-shell>.masthead>.header-actions,.checkout-shell>.masthead>.header-actions{grid-column:2;grid-row:1;display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:6px;max-width:none;min-width:0}
 .site-shell>.masthead>.language-switch,.checkout-shell>.masthead>.language-switch{grid-column:2;grid-row:1}
 .header-actions .account-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;white-space:normal;max-width:100%}
 .header-actions .account-actions>span{max-width:130px;overflow-wrap:anywhere}
 .header-actions :is(button,a),.header-actions .language-switch{min-height:44px;padding:8px;--bc-text-size:14px;white-space:normal;margin:0}
 .bc-community .guide-status{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:12px;width:100%}
 .site-shell>.steps,.checkout-shell>.wizard-steps{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;height:auto;min-height:74px;margin:0;padding:0;position:relative;background:#080808;box-shadow:0 0 0 100vmax #080808;clip-path:inset(0 -100vmax)}
 .checkout-shell>.wizard-steps ol{display:contents;height:auto}
 html .site-shell>.steps button,.checkout-shell.bc-checkout .wizard-steps :is(a,.current-step){height:44px;min-height:44px;min-width:0;margin:0;padding:6px;justify-content:center;gap:0}
 .steps button>span,.checkout-shell .wizard-steps :is(a,.current-step)>b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .steps button>i,.checkout-shell .wizard-steps :is(a,.current-step)>span{--bc-text-size:18px;font-size:18px}
 .steps::after,.wizard-steps::after{content:attr(data-current-label);grid-column:1/-1;min-width:0;padding:8px 0 12px;line-height:1.5;font-size:14px;text-align:center;color:#eee}
 .steps>.bc-step-marker,.wizard-steps>.bc-step-marker{top:42px;bottom:auto;height:2px}
 .site-shell>main,.site-shell:not(.is-home)>main,.site-shell.bc-community>main,.checkout-shell>.checkout-page,
 .site-shell:not(.is-home)>main:has(#step-2:not([hidden]) #design-route-official:not([hidden])){
  flex:1 0 auto;min-height:0;max-height:none;width:100%;max-width:none;margin:0;padding:24px 0;overflow:visible;scrollbar-gutter:auto;
 }
 .site-shell>.step-actions,.bc-community .guide-navigation,.checkout-actions{
  position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);width:100%;height:auto;min-height:68px;margin:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));gap:10px;background:#080808;flex:none;align-items:center;
 }
 .step-actions>.kicker,.checkout-actions>.kicker{display:none}
 .step-actions>*,.checkout-actions>*,#review-primary-actions,#order-primary-actions{min-width:0;max-width:100%;width:100%;justify-self:stretch}
 .step-actions .next-action,.step-actions #generate,.checkout-actions .primary-button{width:100%;min-width:0;min-height:48px;padding:10px 12px;white-space:normal;--bc-text-size:16px}
 .step-actions .back-action,.checkout-actions>a{min-height:44px;padding:10px 4px;--bc-text-size:14px}
 .site-shell>.site-footer,.site-shell>.site-footer.has-permanent-links,.checkout-shell>.site-footer.has-permanent-links,.site-shell.bc-community>.site-footer{
  position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex:none;width:100%;height:auto;min-height:0;padding:14px 0 calc(16px + env(safe-area-inset-bottom,0px));margin:0;gap:10px;overflow:visible;box-shadow:none;clip-path:none;
 }
 .site-footer .policy-links,.bc-community .policy-links,.policy-shell footer nav,.bc-library footer nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;width:100%;gap:4px 12px;text-align:left;white-space:normal}
 body :is(.site-footer a,.site-footer button,.policy-shell footer a,.bc-library footer a){display:flex;align-items:center;min-height:44px;max-width:100%;padding:8px 0;line-height:1.5;white-space:normal;--bc-text-size:14px}
 .site-footer .manual-download{order:1;text-align:left;white-space:normal}
 .site-footer>.site-environment,.site-footer>.brand-footer{order:2}
 .site-shell:not(.is-home)>.step-actions::before,.site-shell:not(.is-home)>.step-actions::after,
 .site-shell:not(.is-home)>.site-footer::after,
 .bc-checkout>.checkout-actions::before,.bc-checkout>.checkout-actions::after,.bc-checkout>footer::after{display:none}
 .site-shell:not(.is-home)>.site-footer::before,.site-shell.is-home>.site-footer::before,.checkout-shell>.site-footer::before{
  content:'';display:block;position:absolute;inset:0 auto 0 50%;width:100vw;height:auto;transform:translateX(-50%);background:#080808;box-shadow:none;z-index:-1;pointer-events:none;
 }
 body.mobile-keyboard-open :is(.step-actions,.checkout-actions){position:static;left:auto;right:auto;padding-inline:0}
 #page-home{min-height:0;height:auto;display:flex;flex-direction:column;justify-content:center;padding:16px 0;gap:20px}
 html body .site-shell.is-home #page-home .home-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:580px;height:auto;margin:0 auto;position:static;transform:none;padding:0}
 html body .site-shell.is-home #page-home .home-services .application-icon{width:100%;height:auto;aspect-ratio:1;min-width:0;max-width:100%;margin:0}
 html body .site-shell.is-home #page-home .page-heading{position:static;transform:none;width:100%;height:auto;min-height:0;max-width:none;margin:0;padding:0;border:0}
 html body .site-shell.is-home #page-home .page-heading h1{width:100%;height:auto;position:static;transform:none;padding:0;outline:none}
 #page-home .home-services .application-icon{width:100%;height:auto;aspect-ratio:1;min-width:0;max-width:100%;margin:0}
 #page-home .home-services .application-icon>span{--bc-text-size:15px;white-space:normal}
 #page-home .home-social{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px;width:100%;margin:0}
 #page-home .home-social button{height:auto;min-height:44px;min-width:44px;width:auto;aspect-ratio:auto;padding:8px;--bc-text-size:14px}
 #page-home .home-group-heading,.is-home #page-home .home-group-heading{width:100%;max-width:none;margin:0;padding:0;--bc-text-size:20px}
 #page-coming-soon{min-height:0;padding:24px 0}
 #step-1:not([hidden]){min-height:260px;padding:24px 0;justify-content:center}
 #step-1 .version-picker,#step-1 #version-select{width:100%;min-width:0;max-width:440px}
 #step-1 .version-note{max-width:100%;line-height:1.8}
 #step-2:has(#design-route-choice:not([hidden])),#step-2 .design-route-choice,#step-2 .design-route-custom{min-height:0;padding:16px 0}
 #step-2 .design-route-options{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:16px}
 #step-2 .design-route-option{width:100%;max-width:none;min-width:0;min-height:100px;padding:20px}
 #step-2 .design-route-custom #download-request{width:100%;min-width:0;max-width:100%;min-height:48px;height:auto;white-space:normal;padding:10px;--bc-text-size:16px}
 #step-2:has(#design-route-official:not([hidden])){height:auto;min-height:0}
 #step-2 #design-route-official{display:flex;flex-direction:column;gap:20px;min-height:0}
 #step-2 .category-tabs{order:0;display:flex;flex-wrap:nowrap;flex:none;overflow-x:auto;overflow-y:hidden;width:100%;padding:0 0 6px;gap:4px;scrollbar-width:thin}
 #step-2 .category-tab{flex:0 0 auto;min-width:0;min-height:44px;padding:8px 12px;--bc-text-size:14px}
 #step-2 .category-tab small{--bc-text-size:12px}
 #step-2 .tyre-catalog{order:1;flex:none;width:100%;min-height:210px;height:210px;overflow:hidden;touch-action:pan-y pinch-zoom}
 #step-2 #design-list.tyre-strip{height:200px;min-height:0;width:100%;touch-action:pan-y pinch-zoom}
 #step-2 #design-list .tyre-choice{width:160px;min-width:0;height:180px;left:calc(50% - 80px)}
 #step-2 #design-list .tyre-choice>img{height:135px;max-height:135px;width:100%;object-fit:contain}
 #step-2 .showcase{order:2;display:grid;grid-template-columns:minmax(0,1fr);height:auto;min-height:0;max-height:none;gap:20px;margin:0}
 #step-2 #design-route-official>.showcase{container-type:normal;flex:none;height:auto;min-height:0}
 #step-2 .showcase::before,#step-2 .showcase::after{display:none}
 #step-2 .tyre-visual{display:flex;flex-direction:column;position:relative;inset:auto;width:100%;height:auto;min-height:0;max-height:none;padding:16px;overflow:visible;gap:14px;aspect-ratio:auto;container-type:normal}
 #step-2 .product-title{position:static;width:100%;max-width:100%;height:auto;padding:0;margin:0;white-space:normal;--bc-text-size:26px}
 #step-2 #profile-description,#step-2:has(#comparison-tray:not([hidden])) #profile-description{position:static;width:100%;height:auto;max-height:none;padding:0;margin:0;overflow:visible;--bc-text-size:16px;line-height:1.8}
 #step-2 .tyre-visual>#product-image{position:static;inset:auto;transform:none;width:100%;height:260px;max-height:35svh;object-fit:contain;margin:0;flex:none}
 #step-2 .tyre-visual .profile-download{position:static;width:100%;height:auto;min-height:44px;margin:0;display:flex;align-items:center;gap:8px}
 #step-2 .tyre-visual .profile-download>a{flex:1;min-width:0;width:auto;max-width:none;height:auto;min-height:48px;padding:10px;--bc-text-size:16px;white-space:normal}
 #step-2 .design-details,#step-2 #performance-browser,#step-2 .performance-pages,#step-2 .performance-page{height:auto;min-height:0;max-height:none;overflow:visible;width:100%;position:static}
 #step-2 #performance-browser{padding:16px}
 #step-2 #performance-browser::after{display:none}
 #step-2 .performance-pages{padding-top:16px}
 #step-2 #profile-character{--bc-text-size:16px;line-height:1.8}
 #step-2 .profile-specs{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:20px}
 #step-2 .profile-stats{width:100%}
 #step-2 #comparison-tray{position:static;flex:none;width:100%;min-width:0;display:flex;flex-wrap:wrap;gap:8px;padding:12px}
 #step-2 #comparison-chips{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
 #step-2 #comparison-tray button{min-height:44px;white-space:normal}
 #step-2 .detail-compare-actions{flex-wrap:wrap;justify-content:flex-start;width:100%;gap:8px}
 #step-2 .detail-compare-actions button{min-height:44px;white-space:normal;--bc-text-size:14px}
 #step-2 .tyre-selection-heading{flex-wrap:wrap;gap:12px;height:auto;padding:12px 0}
 .grip-curve,.curve-section{min-width:0;width:100%}
 #step-2 #wear-chart>.grip-curve>svg,#step-2 #temperature-chart>.grip-curve>svg,.grip-curve>svg{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:520/390;touch-action:pan-y pinch-zoom}
 body #comparison-dialog{width:calc(100vw - 24px);max-width:760px;max-height:calc(100dvh - 24px);height:auto;margin:auto;padding:16px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden}
 #comparison-dialog .dialog-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 #comparison-dialog .dialog-heading h2{flex:1;min-width:0;--bc-text-size:22px}
 #comparison-dialog .dialog-close{width:44px;height:44px;min-height:44px;flex:none}
 #comparison-dialog .comparison-layout{display:flex;flex-direction:column;width:100%;min-width:0;gap:20px}
 #comparison-dialog .comparison-visuals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:12px}
 #comparison-dialog[data-columns="3"] .comparison-visuals{grid-template-columns:minmax(0,1fr)}
 #comparison-dialog .comparison-card{display:flex;flex-direction:column;width:100%;min-width:0;max-width:none;padding:8px 0;gap:8px}
 #comparison-dialog .comparison-card>img{width:100%;height:110px;object-fit:contain}
 #comparison-dialog .comparison-card :is(h3,a,.residual-metric){width:100%;min-width:0;max-width:100%;white-space:normal;--bc-text-size:14px}
 #comparison-dialog .comparison-card>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;--bc-text-size:14px}
 #comparison-dialog .comparison-chart,#comparison-dialog .comparison-curves{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
 #comparison-dialog .comparison-chart{display:block}
 #comparison-dialog .comparison-series-legend{flex-wrap:wrap}
 #comparison-dialog .metric-values{width:100%;min-width:0}
 #comparison-dialog .metric-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 #comparison-dialog .comparison-table,#comparison-dialog .comparison-table[data-columns="2"]{width:100%;min-width:520px;table-layout:fixed}
 #comparison-dialog .comparison-table[data-columns="3"]{min-width:660px}
 #comparison-dialog .comparison-table tr>th:first-child{width:150px;position:sticky;left:0;background:#171717;z-index:1;--bc-text-size:14px}
 #comparison-dialog .comparison-table :is(th,td){padding:12px 8px;white-space:normal;--bc-text-size:14px}
 #comparison-dialog .comparison-table a{min-height:44px;display:flex;align-items:center;justify-content:center;white-space:normal}
 #comparison-dialog .metric-scroll-note{display:block;--bc-text-size:14px;margin:12px 0}
 #step-3 .configuration-layout,#order-form,#step-3 .vehicle-grid,#step-3 .axle-grid,#step-3 .dimension-fields,#step-3 .dimension-inputs,#step-3 .set-layout,#step-3 .set-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;width:100%;min-width:0}
 #step-3 .card,#step-3 .set-card,#step-3 [data-axis]{width:100%;min-width:0;max-width:100%;padding:16px}
 #step-3 .section-heading{flex-wrap:wrap;align-items:center;gap:8px}
 #step-3 .section-heading>h3{flex:1;min-width:0}
 #step-3 label,#step-3 .dimension-fields label{min-width:0;max-width:100%;width:100%}
 #step-3 :is(input,select){width:100%;min-width:0;max-width:100%;min-height:48px;padding:10px;--bc-text-size:16px}
 #step-3 .design-drop{width:100%;min-width:0;padding:16px;overflow-wrap:anywhere}
 #step-3 .design-drop :is(input,label,button){min-height:44px;max-width:100%;white-space:normal}
 #step-3 .quote-bar{display:flex;flex-wrap:wrap;gap:12px;position:static;width:100%}
 #step-3 .calculator,#step-3 .input-guide{width:100%;max-width:none;margin:0}
 .bc-document .policy-shell,.bc-document .wizard-page{width:100%;min-width:0;max-width:900px;margin:0 auto;padding:18px 16px}
 .bc-document .policy-shell :is(header,nav,footer){height:auto;max-width:100%;flex-wrap:wrap;gap:10px}
 .bc-document .policy-shell :is(p,dd,li){font-size:16px;line-height:1.85}
 .bc-document .policy-shell dl,.bc-library .downloads-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .bc-library .asset-row{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .bc-library .asset-row .button{width:100%;white-space:normal;min-height:48px}
 body.bc-checkout>.checkout-page{padding:24px 0}
 .checkout-shell #review-card{display:flex;flex-direction:column;gap:20px}
 .checkout-shell #review-card>*{width:100%;min-width:0;margin:0}
 .checkout-shell .review-pair{grid-template-columns:minmax(0,1fr);gap:20px}
 .checkout-shell .quote{flex-wrap:wrap;gap:12px}
 .checkout-shell .order-progress{display:flex;flex-wrap:wrap;gap:8px}
 .checkout-shell .order-actions{display:flex;flex-direction:column;gap:12px}
 .checkout-shell :is(.order-summary,.card,.notice){padding:16px;max-width:100%;overflow-wrap:anywhere}
 .checkout-shell :is(input,select){min-height:48px;max-width:100%;min-width:0;--bc-text-size:16px}
 .checkout-shell .price-breakdown,.checkout-shell .terms-notice,.checkout-shell .generation-note{--bc-text-size:16px;line-height:1.8}
 .bc-community .guide-slide{width:100%;margin:0;--bc-text-body:17px;--bc-text-heading:27px}
 .bc-community .guide-slide h1{line-height:1.5;overflow-wrap:anywhere}
 .bc-community .diagram-items,.bc-community .visual-permissions .diagram-items,.bc-community .visual-choices .diagram-items{grid-template-columns:minmax(0,1fr)}
 .bc-community .guide-navigation{grid-template-columns:auto auto minmax(0,1fr);gap:8px}
 .bc-community .guide-navigation .next-action{width:100%;min-width:0;padding:10px;--bc-text-size:14px}
 .bc-community .guide-navigation .contents-action{min-height:44px;padding:8px;--bc-text-size:14px}
 .bc-community .membership-table{width:100%;table-layout:fixed;--bc-text-body:14px}
 .bc-community .membership-table :is(th,td){padding:10px 6px;overflow-wrap:anywhere}
 .bc-community .actual-screen-gallery{padding:12px;max-width:100%}
 .guide-toc,.guide-preview-finish{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}
 .toc-groups{grid-template-columns:minmax(0,1fr)}
 .toc-groups a{min-height:44px;display:flex;align-items:center;padding:8px}
 .language-dialog,.account-dialog,.site-guide-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);width:min(650px,calc(100vw - 24px));padding:20px;overflow:auto}
 .language-dialog button,.account-dialog button{min-height:44px;--bc-text-size:16px}
 body .help-button{width:44px;height:44px;min-width:44px;min-height:44px;flex:none}
 body .help-button::before{width:20px;height:20px}
 .context-help .help-close{display:block;min-height:44px;margin-top:12px;padding:8px 16px;color:#eee;background:#222;border:1px solid #aaa;--bc-text-size:16px}
 body .context-help{width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:16px;overflow:auto;--bc-text-body:16px;--bc-text-subheading:18px}
 .toast{max-width:calc(100vw - 24px);bottom:calc(16px + env(safe-area-inset-bottom,0px));--bc-text-size:16px}
 /* Scrolling pages need a full background, without desktop header/footer cutouts. */
 html body .site-shell::before,html body .site-shell::after,html body.checkout-shell.bc-document::before{inset:0!important}
 .site-shell.is-home::before,.site-shell.is-home::after,.site-shell.is-home>main::before{background-image:url('/assets/backgrounds/clear-studio-mobile.webp')}
 .site-shell:not(.is-home)::before,.site-shell:not(.is-home)::after,body.bc-document::before,body.checkout-shell.bc-document::before{background-image:linear-gradient(#0a0a0a55,#0a0a0a88),url('/assets/backgrounds/vtg-garage-mobile.webp')}
 html body .site-shell>.site-footer.has-permanent-links .policy-links,html body.checkout-shell>.site-footer.has-permanent-links .policy-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;width:100%;min-width:0;grid-column:auto;grid-row:auto}
 html body .site-shell>.site-footer.has-permanent-links .policy-links a,html body.checkout-shell>.site-footer.has-permanent-links .policy-links a{display:flex;min-height:44px;align-items:center;white-space:normal;--bc-text-size:14px}
 html body .site-shell:not(.is-home)>.step-actions,html body.checkout-shell.bc-document>.checkout-actions{position:fixed;top:auto;left:0;right:0;bottom:0;width:100%;padding-inline:16px;transform:none}
 html body.mobile-keyboard-open .site-shell:not(.is-home)>.step-actions,html body.mobile-keyboard-open.checkout-shell.bc-document>.checkout-actions{position:static;inset:auto;width:100%;padding-inline:0}
}
/* The device switch is available on desktop too; it never changes the language. */
.mobile-guide{padding:16px;margin:0 0 20px;border:1px solid #777;background:#111b;line-height:1.8;--bc-text-size:16px}
.mobile-guide h2{--bc-text-size:20px;margin:0 0 12px}
.mobile-guide p{margin:0 0 12px}
.mobile-guide p:last-child{margin:0}
.guide-device-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.guide-device-switch button{min-height:44px;padding:8px 16px;background:#222;color:#eee;border:1px solid #777;--bc-text-size:16px}
.guide-device-switch button[aria-pressed=true]{border-color:#eee;background:#3a3a3a}
@media(max-width:560px){
 .site-shell .brand strong,.checkout-shell .brand strong{font-size:clamp(22px,6.8vw,30px)}
 .site-shell .brand>span,.checkout-shell .brand>span{font-size:5px;letter-spacing:1px}
}
@media(max-width:360px){
 .site-shell,.site-shell:not(.is-home),.site-shell.bc-community,body.checkout-shell.bc-document{padding-inline:12px}
 #comparison-dialog .comparison-visuals{grid-template-columns:minmax(0,1fr)}
}
