/* Shared application footer: participates in layout and never covers content. */
body:has(>.site-footer){display:flex;flex-direction:column;min-height:100dvh}
body:has(>.site-footer)>header{flex-shrink:0}
body:has(>.site-footer)>main{flex:1 0 auto}
body:not(.commerce-page):not(.photo-page):has(>.site-footer)>main{flex:1 1 auto}
body.commerce-page>main,body.photo-page>main{width:100%;margin:0 auto}
body>.site-footer{display:flex;flex:none;flex-direction:row;align-items:center;justify-content:space-between;gap:18px 30px;margin:auto 0 0;padding:20px 28px;border-top:1px solid #2c3037;background:#101113;color:#9aa2ad;font-size:13px;line-height:1.5;letter-spacing:0;width:100%}
.site-footer-brand{font-size:12px;letter-spacing:1.2px}.site-footer-brand i{color:#ef352d;font-style:normal;padding:0 10px}
.site-footer nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px 20px;margin:0;padding:0}
.site-footer a{font-size:13px;color:#b4bbc5;text-underline-offset:4px;white-space:nowrap}.site-footer a:hover{color:#fff}
@media(max-width:850px){body:has(>.site-footer){height:auto;min-height:100dvh}body:has(>.site-footer)>main{flex:1 0 auto}body>.site-footer{padding:22px 18px;flex-direction:column;align-items:flex-start;gap:16px}.site-footer nav{justify-content:flex-start;gap:12px 18px}}
/* Page introductions use the available content column at every breakpoint. */
.commerce-intro,.page-title p,.photo-heading p{width:100%;max-width:none!important}
.page-title>div:first-child,.photo-heading>div:first-child{flex:1;min-width:0}
/* The document owns vertical scrolling. Content must never be clipped to a viewport. */
html{height:auto!important;min-height:100%;overflow-x:clip!important;overflow-y:auto!important}
body:has(>.site-footer){height:auto!important;min-height:100dvh;overflow:visible!important}
body:has(>.site-footer)>main,body:has(>.site-footer)>main:has(>.workspace){height:auto;overflow:visible!important;flex:1 0 auto!important}
body:has(>.site-footer)>main.atlas-main{min-height:70dvh;overflow:visible!important}
.vehicle-impact{position:sticky;top:0;z-index:40;flex:none;background:#171a1ff5;border-bottom:1px solid #454b55;padding:12px 28px;backdrop-filter:blur(12px);font-size:14px}
.impact-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:8px}.impact-heading strong{font-size:14px}.impact-heading a,.impact-heading button{color:#d0d6df;font-size:13px;text-underline-offset:4px}.impact-heading button{text-decoration:underline;padding:0}.impact-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.impact-values>div{display:flex;flex-wrap:wrap;gap:4px 9px;align-items:baseline}.impact-values small{color:#a6b0bf;font-size:12px}.impact-values strong{font-size:19px;font-weight:500}.impact-values span{font-size:13px;color:#d6dde7}.impact-values .impact-positive{color:#8fd3a5}.impact-values .impact-negative{color:#ffaaa3}.impact-note{font-size:12px;color:#a9b3c1;margin:7px 0 0}.impact-actions{display:flex;align-items:center;gap:18px}.impact-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.impact-form label{font-size:14px;display:flex;flex-direction:column;gap:7px}.impact-form input{width:100%;min-height:42px;background:#171a20;color:#fff;border:1px solid #505765;border-radius:4px;padding:9px}.impact-save{margin-top:20px}.impact-note a{color:inherit}
@media(max-width:650px){.vehicle-impact{padding:10px 16px}.impact-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.impact-heading{align-items:flex-start}.impact-heading strong{font-size:13px}.impact-actions{gap:12px}.impact-heading a,.impact-heading button{font-size:12px}.impact-values strong{font-size:17px}.impact-note{font-size:11px}.impact-form{grid-template-columns:1fr 1fr}}
/* Bound the garage independently of its scrollable system/parts lists. */
@media(min-width:851px){
 body:has(>.site-footer)>main:has(>.workspace){grid-template-rows:auto auto auto auto!important;align-content:start;flex:1 0 auto!important}
 main:has(>.workspace) .workspace>.stage:has(>.car-display){height:clamp(460px,calc(100dvh - 450px),720px)!important;min-height:460px!important;max-height:720px;align-self:start}
 main:has(>.workspace) .workspace>.systems,main:has(>.workspace) .workspace>.details{contain:size;min-height:0;height:100%;overflow:hidden!important}
 main:has(>.workspace) .systems #categories{flex:1 1 0;min-height:0;overflow-y:auto;scrollbar-width:thin}
 main:has(>.workspace) .details #parts{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto!important}
 main:has(>.workspace) .stage>.car-display{flex:1 1 0;min-height:280px;max-height:600px}
}
@media(max-width:850px){
 main:has(>.workspace) .workspace>.details{height:auto;contain:none}
 main:has(>.workspace) .details #parts{max-height:55dvh;overflow-y:auto!important;overscroll-behavior:auto}
}
/* Desktop garage is a viewport-sized dashboard; only its lists scroll. */
@media(min-width:851px){
 html:has(body>main>.workspace){height:100%!important;overflow:hidden!important}
 body:has(>main>.workspace){height:100dvh!important;min-height:0!important;overflow:hidden!important}
 body:has(>.site-footer)>main:has(>.workspace){flex:1 1 0!important;min-height:0!important;height:0!important;overflow:hidden!important;grid-template-rows:auto minmax(0,1fr) auto auto!important}
 main:has(>.workspace) .workspace>.stage:has(>.car-display){height:100%!important;min-height:0!important;max-height:none!important;align-self:stretch}
 main:has(>.workspace) .stage>.car-display{min-height:0!important;max-height:none!important;flex:1 1 0}
 body:has(>main>.workspace)>.site-footer{padding-top:12px;padding-bottom:12px}
}
.direct-products{width:100%;max-width:1500px;margin:0 auto!important}.direct-filter{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:24px 0;font-size:14px;color:#b3bbc7}.direct-filter label{display:flex;align-items:center;gap:12px}.direct-filter select{min-width:180px;padding:12px;background:#20242a;color:#eee;border:1px solid #424852}.direct-filter a{margin-left:auto;color:#bbc4d0}.direct-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;align-items:stretch}.direct-product-card{background:linear-gradient(140deg,#20242a,#171a1e);border:1px solid #383e47;border-radius:5px;padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}.direct-product-card img{width:100%;height:200px;object-fit:contain;background:#eee;border-radius:4px}.direct-product-card h2{font-size:26px;margin:0}.direct-product-card h2 a{color:#f0f2f6;text-decoration:none}.direct-price{font-size:24px;margin:0}.direct-price small{display:block;font-size:13px;color:#aeb7c3;margin-top:8px}.card-impact{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid #3b414a;padding-top:16px;font-size:15px}.card-impact strong{grid-column:1/-1;font-size:14px;font-weight:500}.card-impact small{display:block;font-size:12px;color:#b5becc}.card-impact-up{color:#88d7a2}.card-impact-down{color:#ffa09c}.card-impact-flat{color:#d8dee7}.card-impact-unknown{color:#9da8b7}.direct-impact-note{font-size:13px;color:#a1adbc;line-height:1.6}.direct-product-card>.cta{margin-top:auto;text-align:center}.direct-products .page-title>div{width:100%}@media(max-width:650px){.direct-filter{gap:14px}.direct-filter a{margin-left:0}.direct-product-card{padding:18px}.direct-product-card>.cta{width:100%}}
/* Stable system header: switching categories never shifts the list controls. */
@media(min-width:851px){
 .workspace>.details>#sectionTitle{font-size:30px;line-height:1.15;min-height:2.3em;margin:16px 0 11px;display:block;flex:0 0 auto}
 .workspace>.details>#sectionDesc{font-size:14px;line-height:1.6;min-height:8em;margin:0 0 22px;display:block;flex:0 0 auto}
}
@media(max-width:850px){
 .workspace>.details>#sectionTitle{font-size:26px;line-height:1.2;min-height:2.4em;margin:8px 0 12px;flex:0 0 auto}
 .workspace>.details>#sectionDesc{font-size:14px;line-height:1.6;min-height:6.4em;margin:0 0 18px;flex:0 0 auto}
}

.performance-method{font-size:13px;line-height:1.6;grid-column:1/-1}.performance-method summary{cursor:pointer;text-decoration:underline}.performance-method p{max-width:none}.performance-method small{display:block}.vehicle-impact>.card-impact{max-height:35vh;overflow:auto;margin-top:8px}.card-impact>small{display:block}

#product-performance{padding:16px;margin:16px 0;border:1px solid #343940;background:#171a1d;border-radius:4px}#product-performance>strong{grid-column:1/-1}

.direct-product-card[hidden]{display:none!important}.direct-product-card .product-fitment{font-size:13px;line-height:1.55;color:#a8adb4}.direct-product-card .product-wordmark{min-height:140px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#15181b}.direct-product-card img{height:200px;object-fit:contain;width:100%}.direct-filter{flex-wrap:wrap}.direct-product-card .card-impact{margin-top:auto}.direct-product-card{min-width:0}.direct-product-card .cta{white-space:normal}.direct-product-card h2{overflow-wrap:anywhere}
