:root{font:16px/1.5 system-ui,sans-serif;color:#17292a;background:#f3f5f3;--ink:#17392e;--green:#175646;--muted:#52645e;--line:#d6dfd9;--surface:#fff}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
.wrap{max-width:1110px;margin-inline:auto;padding-inline:clamp(.85rem,3vw,1.5rem)}
a{color:var(--green);text-underline-offset:.18em}
button,input,select,textarea{font:inherit}
a,button,input,select,textarea{outline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #397acc}
.skip{position:absolute;left:-999px;background:white;padding:.5rem}
.skip:focus{left:.5rem;top:.5rem;z-index:2}
.site-header,.site-footer{background:#fff;border-block-end:1px solid var(--line)}
.header-inner,.site-footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-block:.7rem}
.header-inner nav,.site-footer nav,.platforms .wrap{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap}
.header-inner nav a,.site-footer a{font-size:.875rem}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;text-decoration:none;line-height:1.2}
.brand small{display:block;color:var(--muted);font-size:.69rem;font-weight:650;letter-spacing:.03em;margin-bottom:.16rem}
.brand img{object-fit:contain}
.platforms{background:#e4ece6;border-bottom:1px solid var(--line)}
.platforms a{padding:.45rem .1rem;border-bottom:2px solid transparent;text-decoration:none;font-weight:650;font-size:.875rem}
.platforms a[aria-current=page]{border-color:var(--green)}
main.wrap{padding-block:clamp(.9rem,4vw,2.2rem);min-height:68vh}
.hero{background:#163e33;color:#fff;border-radius:1rem;display:grid;grid-template-columns:1fr minmax(250px,.7fr);gap:clamp(1rem,4vw,2.7rem);align-items:center;padding:clamp(1rem,5vw,2.8rem)}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(1.7rem,5vw,3rem);line-height:1.08;letter-spacing:-.04em;margin-bottom:.6rem}
h2{font-size:1.15rem;line-height:1.3;margin-bottom:.4rem}
h3{font-size:1rem;margin-bottom:.3rem}
p{margin-bottom:.65rem}
.hero p{max-width:39ch;color:#e2ece5}
.finder,.panel{background:var(--surface);color:#17292a;border:1px solid var(--line);border-radius:.8rem;padding:.95rem;min-width:0}
.finder{border:0}
.finder button{width:100%;margin-top:.65rem}
.services,.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:.8rem}
.services p,.muted{color:var(--muted)}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap;margin-block:1.15rem .6rem}
.section-heading h1,.section-heading h2{margin:0}
.field-grid,.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.filters{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));align-items:end}
.wide{grid-column:1/-1}
label,.field-label{font-weight:650;font-size:.875rem;display:grid;gap:.2rem;min-width:0}
input,select,textarea{width:100%;min-width:0;border:1px solid #9db4aa;border-radius:.42rem;padding:.43rem .5rem;background:#fff;color:inherit;min-height:40px}
textarea{resize:vertical;min-height:72px}
input[type=checkbox]{width:1rem;min-height:1rem;height:1rem;margin:0}
.check{display:flex;align-items:center;gap:.45rem;min-height:36px}
fieldset{border:1px solid var(--line);border-radius:.4rem;padding:.55rem;margin:.5rem 0;min-width:0}
legend{font-weight:700}
.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:.42rem .75rem;border:1px solid #9db4aa;border-radius:.45rem;background:#fff;color:var(--green);font-weight:700;text-decoration:none;cursor:pointer;text-align:center}
button:disabled{opacity:.65;cursor:default}
.primary{background:var(--green);border-color:var(--green);color:#fff}
.hero .primary{background:#d4ecd9;border-color:#d4ecd9;color:#17392e}
.hero .secondary{background:transparent;color:#fff;border-color:#accbbb}
.actions,.tabs{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}
.actions{margin-block:.55rem}
.tabs{margin-block:.65rem}
.tabs a[aria-current=page]{color:white;background:var(--green)}
.stack{display:grid;gap:.65rem}
.price{color:var(--green);font-weight:800;font-size:1.15rem}
.card img,.request-photo{width:100%;display:block;object-fit:contain;aspect-ratio:4/3;background:#eef2ef;border-radius:.45rem;margin-bottom:.5rem}
.request-photos{display:grid;grid-template-columns:repeat(3,minmax(0,7rem));gap:.4rem}
dl.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin:.55rem 0}
.facts dt{color:var(--muted);font-size:.79rem}
.facts dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.status{color:var(--muted)}
.status.error{color:#953521}
.badge{display:inline-block;border-radius:1rem;background:#e8f0ea;color:var(--ink);padding:.12rem .55rem;font-size:.8rem;font-weight:700}
details>summary{cursor:pointer;font-weight:700}
details[open]>summary{margin-bottom:.5rem}
.event-list{padding-left:1.2rem;margin:.4rem 0}
.event-list li{margin-bottom:.38rem;overflow-wrap:anywhere}
.site-footer{border-top:1px solid var(--line);border-bottom:0}
.empty{padding:.9rem;border:1px dashed #b7c8be;border-radius:.55rem;margin:.55rem 0}
@media(max-width:720px){
  .hero{grid-template-columns:1fr;gap:.8rem}
  .services,.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-inner{gap:.45rem;flex-wrap:wrap}
  .header-inner nav{justify-content:flex-start;gap:.6rem}
  .header-inner nav a{padding:.25rem 0}
  .panel,.finder{padding:.7rem}
  input,select,textarea{font-size:16px}
}
@media(max-width:410px){
  .services,.cards{grid-template-columns:1fr}
  .hero .actions>a{flex:1 1 auto;font-size:.875rem;padding-inline:.38rem}
}
.hero{display:block;padding:clamp(.9rem,3vw,1.65rem)}
.hero h1{font-size:clamp(1.45rem,4.2vw,2.5rem)}
.hero p{max-width:none;margin-bottom:0}
.header-search{display:flex;gap:.35rem;min-width:14rem}
.header-search input{min-width:5rem}
.shortcuts,.chips{display:flex;gap:.42rem;flex-wrap:wrap;margin:.65rem 0}
.shortcuts .button{flex:1}
.chips a{border:1px solid var(--line);border-radius:2rem;background:white;padding:.32rem .58rem;text-decoration:none;font-size:.84rem}
.home-section{margin-top:1rem}
.products{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.48rem}
.product{padding:.38rem;min-width:0;display:flex;flex-direction:column}
.product img,.product-placeholder{width:100%;aspect-ratio:4/3;height:auto;object-fit:contain;background:#eaf0ec;border-radius:.3rem;display:grid;place-items:center;color:var(--muted);font-size:.72rem}
.product h3{font-size:.86rem;line-height:1.23;margin:.25rem 0;overflow-wrap:anywhere}
.product :is(.price,.muted,.badge){font-size:.79rem;margin-bottom:.2rem}
.product .availability{align-self:start}
.product .button,.product button{min-height:30px;padding:.2rem .32rem;font-size:.74rem}
.product .card-tools{display:flex;gap:.25rem;flex-wrap:wrap;margin-top:auto}
.product .card-tools>*{flex:1}
.product-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.45rem;margin:.5rem 0}
.product-gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#edf2ef;border-radius:.4rem}
.product-gallery a:focus-visible{outline-offset:-2px}
.table-scroll{overflow:auto;max-width:100%}
table{width:100%;border-collapse:collapse;text-align:left;font-size:.875rem}
th,td{vertical-align:top;border-bottom:1px solid var(--line);padding:.42rem .55rem}
th{background:#e9f0eb}
td{overflow-wrap:anywhere}
#parts-drawer{margin:0 auto 0 0;width:min(21rem,90vw);height:100dvh;max-height:100dvh;border:0;border-right:1px solid var(--line);padding:.75rem}
#parts-drawer[open]{animation:parts-slide .17s ease-out}
@keyframes parts-slide{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#parts-drawer[open]{animation:none}}
#parts-drawer nav{display:grid;gap:.1rem}
#parts-drawer nav a{padding:.46rem .4rem}
#parts-map-dialog{width:min(35rem,calc(100% - 1rem));border:1px solid var(--line);border-radius:.7rem;padding:.75rem}
#parts-map{height:min(44vh,19rem);background:#e8efeb}
dialog::backdrop{background:#132b28a8}
.item-wrap{display:grid;gap:.4rem;margin-bottom:.45rem}
.item-wrap .field-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.catalog-tools{margin:.45rem 0}
.downloads{display:flex;flex-wrap:wrap;gap:.5rem}
@media(max-width:900px){
  .products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .header-search{flex-basis:100%}
}
@media(max-width:450px){
  .header-inner{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35rem}
  .header-inner nav,.header-search{grid-column:1/-1}
  .header-inner nav{justify-content:space-between}
  .shortcuts{gap:.25rem;flex-wrap:nowrap}
  .shortcuts .button{font-size:.75rem;padding:.25rem .2rem;white-space:nowrap}
  .products{gap:.3rem}
  .product{padding:.27rem}
  .product .card-tools{gap:.2rem}
}

/* Marketplace storefront */
:root{--green:#075535;--ink:#102f24;--line:#d7ded9;background:#fafbf9;color:#18251f}
.wrap{max-width:1536px;padding-inline:clamp(.55rem,1.4vw,1.3rem)}
main.wrap{padding-block:.6rem 1.4rem}
.icon-defs{position:absolute;overflow:hidden}
.parts-icon{width:1.25rem;height:1.25rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.site-header{background:#063d2e;color:#fff;border:0}
.site-header .header-inner{display:grid;grid-template-columns:auto max-content minmax(10rem,1fr) auto;gap:clamp(.35rem,1.4vw,1.25rem);padding-block:.35rem}
.site-header a,.site-header .icon-button{color:#fff}
.icon-button{display:inline-grid;place-items:center;position:relative;padding:0;width:42px;height:42px;min-height:42px;background:transparent;border:0;text-decoration:none}
.icon-button:hover{background:#ffffff20}
.icon-button .parts-icon{width:1.5rem;height:1.5rem}
.brand{gap:.45rem}
.brand img{padding:.18rem;background:#fff;border-radius:.5rem}
.brand strong{display:block;font-size:clamp(1.03rem,1.85vw,1.55rem);letter-spacing:-.035em}
.brand em{color:#ffdf21;font-style:normal}
.brand small{font-size:clamp(.7rem,1vw,.86rem);color:#f0f6f1;letter-spacing:0;margin:0}
.header-inner .account-tools{display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:.12rem}
.header-inner .account-link{display:flex;justify-content:center;align-items:center;gap:.25rem;width:auto;padding-inline:.35rem}
.account-link span{white-space:nowrap;font-weight:700}
#cart-count{position:absolute;inset:.02rem 0 auto auto;background:#bb101a;color:white;border-radius:1rem;padding:0 .25rem;min-width:1.05rem;text-align:center;font-size:.68rem;font-weight:800}
.header-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;min-width:0;width:min(100%,34rem);justify-self:center}
.header-search input{border-radius:.42rem 0 0 .42rem;background:#fff;color:#142c21}
.header-search button{border-radius:0 .42rem .42rem 0;background:#0b673f;color:#fff;border:0}
.search-toggle{display:none}
.platforms{background:#eaf3eb}
.platforms .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px;gap:.25rem;padding-block:.28rem}
.platforms a{display:flex;justify-content:center;align-items:center;gap:.42rem;padding:.35rem .25rem;border:0;border-bottom:3px solid transparent;border-radius:.5rem;text-align:center;color:#10392b;font-weight:800}
.platforms a[aria-current=page]{background:#075037;color:white;border-color:#f6d51b}
.hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:clamp(145px,14.5vw,213px);border-radius:.7rem;background:#062b23;padding:clamp(.78rem,2.6vw,2.2rem)}
.hero-art{position:absolute;z-index:-2;inset:0 0 0 auto;width:53%;height:100%}
.hero-art img{width:100%;height:100%;object-fit:cover;object-position:right center}
.hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#052b22 0%,#083d31 39%,#08382caf 48%,transparent 63%)}
.hero-copy{width:58%}
.hero h1{font-size:clamp(1.8rem,3.55vw,3.45rem);font-style:italic;font-weight:900;line-height:1.02;margin-bottom:.37rem}
.hero h1 em{color:#ffdc23;font-style:inherit}
.hero p{max-width:37rem;color:#fff;font-size:clamp(.86rem,1.3vw,1.08rem);line-height:1.28;margin-bottom:.65rem}
.hero .hero-cta{background:#ffda20;border:0;color:#132d21;gap:.42rem;font-weight:850;min-height:36px;padding:.25rem .75rem}
.parts-quick{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1.3fr);gap:.5rem;margin-top:.55rem}
.shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.38rem;margin:0}
.shortcuts .button{gap:.38rem;white-space:normal;min-height:48px;padding:.3rem;background:#fff;color:#123b29;border-color:#c1d1c7;line-height:1.12}
.shortcuts .primary{background:#075535;color:#fff}
.shortcuts .parts-icon{width:1.4rem;height:1.4rem}
.finder{padding:.35rem .6rem;background:#eaf3eb;border:1px solid var(--line);border-radius:.55rem}
.finder h2{margin:0 0 .13rem;color:#123b29;font-size:.97rem}
.finder .filters{grid-template-columns:1fr 1fr .67fr auto;gap:.35rem}
.finder input,.finder button{min-height:34px}
.finder button{margin:0;width:auto;gap:.25rem;padding-inline:.5rem;font-size:.8rem;white-space:nowrap}
.finder label{font-size:.78rem}
.parts-discovery{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(0,1fr);column-gap:.8rem}
.home-category-section{grid-column:1;grid-row:1}
.home-makes{grid-column:2;grid-row:1}
#home-sections{grid-column:1/-1}
.parts-discovery .home-section{margin-top:.7rem}
.parts-discovery .section-heading{margin:.15rem 0 .35rem}
.parts-discovery h2{border-left:4px solid #087345;padding-left:.4rem;color:#112d22;font-size:clamp(1rem,2.1vw,1.35rem)}
.section-heading>a,.text-button{font-weight:750;font-size:.84rem}
.text-button{border:0;background:transparent;padding:.15rem 0;min-height:28px;color:var(--green);text-decoration:underline;text-underline-offset:.16em}
.category-grid,.make-grid{display:grid;gap:.38rem}
.category-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.make-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.category-grid a,.make-grid a{display:grid;place-items:center;border:1px solid var(--line);border-radius:.55rem;background:#fff;text-decoration:none;color:#123b29;text-align:center;min-width:0;overflow-wrap:anywhere}
.category-grid a:hover,.make-grid a:hover{border-color:#087345}
.category-grid a{padding:.2rem .2rem .35rem;font-size:.82rem;font-weight:800;line-height:1.15}
.category-grid img{width:100%;height:auto;aspect-ratio:155/104;object-fit:contain}
.category-grid .parts-icon{height:clamp(1.8rem,7vw,5rem);width:1.8rem}
.make-grid a{min-height:45px;padding:.25rem;font-size:.77rem;font-weight:850}
.product{overflow:hidden;padding:0}
.product-media{position:relative;margin:.3rem .3rem 0;border-radius:.35rem;background:#f1f3f0}
.product-media>a{display:block}
.product img,.product-placeholder{background:#f3f4f1;aspect-ratio:4/3}
.product-info{padding:.33rem .46rem .46rem;display:flex;flex-direction:column;align-items:flex-start;flex:1;width:100%}
.product h3{font-size:clamp(.8rem,1.2vw,.97rem);line-height:1.18;margin:0 0 .24rem}
.product h3 a{text-decoration:none;color:inherit}
.product .price{font-size:clamp(.84rem,1.3vw,1.05rem);line-height:1.14;overflow-wrap:anywhere}
.product del{display:inline-block;color:#56645d;font-weight:550;font-size:.72rem;margin-left:.35rem}
.discount-label{position:absolute;left:.2rem;top:.2rem;pointer-events:none;background:#c10c17;color:#fff;border-radius:.3rem;padding:.14rem .27rem;font-size:.68rem;line-height:1.1;font-weight:850}
.product .save-icon{position:absolute;right:.13rem;top:.12rem;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;background:#ffffffeb;color:#14452e;padding:0}
.product .save-icon[aria-pressed=true] .parts-icon{fill:#bd1422;stroke:#bd1422}
.product .save-icon .parts-icon{width:1.15rem;height:1.15rem}
.product .availability{font-weight:750;color:#435c50;background:#edf1ef;font-size:.72rem;line-height:1.3;border-radius:1rem;padding:.1rem .33rem;margin:auto 0 .24rem}
.product .availability[data-stock=in-stock]{color:#075130;background:#e0f4df}
.product .availability[data-stock=in-stock]::before{content:"";display:inline-block;width:.42rem;height:.42rem;background:#168439;border-radius:50%;margin-right:.2rem;vertical-align:.08rem}
.product-meta{display:flex;justify-content:space-between;align-items:center;gap:.2rem;flex-wrap:wrap;width:100%;font-size:.72rem;color:#283c32}
.product-meta span{display:inline-flex;align-items:center;gap:.15rem}
.product-meta .parts-icon{width:.85rem;height:.85rem}
.part-reward{font-weight:850;color:#075130}
.part-reward b{display:inline-grid;place-items:center;background:#08723b;color:#fff;border-radius:50%;width:1.05rem;height:1.05rem;font-size:.7rem}
@media(max-width:1030px){
  .parts-quick{grid-template-columns:1fr}
  .parts-discovery{grid-template-columns:1fr}
  .home-category-section,.home-makes,#home-sections{grid-column:1;grid-row:auto}
  .make-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:720px){
  .site-header .header-inner{grid-template-columns:auto minmax(0,1fr) auto;gap:.16rem}
  .header-inner .account-tools{grid-column:auto;gap:0}
  .header-inner .account-tools .icon-button{width:34px;height:44px;padding:0}
  .header-inner .menu-button{width:34px}
  .header-inner .account-link span{display:none}
  .brand{gap:.2rem}
  .brand img{width:30px;height:30px;border-radius:.35rem}
  .brand strong{font-size:clamp(.77rem,2.52vw,1.1rem);line-height:1.08}
  .brand small{font-size:clamp(.63rem,1.7vw,.77rem);line-height:1.15;margin-top:.1rem}
  .search-toggle{display:inline-grid}
  .header-search{display:none;grid-row:2;grid-column:1/-1;width:100%}
  .header-search.search-open{display:grid}
  .platforms .wrap{gap:.15rem}
  .platforms a{gap:.2rem;font-size:clamp(.75rem,2.6vw,.95rem);padding:.32rem .1rem}
  .platforms .parts-icon{width:1rem;height:1rem}
  .hero{min-height:164px}
  .hero-copy{width:65%}
  .hero h1{font-size:clamp(1.3rem,4.9vw,2.45rem)}
  .hero p{font-size:clamp(.75rem,2.8vw,.95rem);max-width:27ch}
  .hero-art{width:59%}
  .hero::after{background:linear-gradient(90deg,#052b22 0%,#062f25 33%,#073427d6 45%,#0633265e 57%,transparent 72%)}
  .hero .hero-cta{min-height:36px;font-size:.8rem}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .category-grid img{height:clamp(55px,15vw,92px);aspect-ratio:auto}
  .shortcuts .button{font-size:.77rem;gap:.18rem;padding:.25rem .15rem}
  .shortcuts .parts-icon{width:1.15rem;height:1.15rem}
  .finder .filters{grid-template-columns:1fr 1fr .62fr}
  .finder .filters button{grid-column:1/-1;justify-self:stretch}
  .product-info{padding:.28rem .3rem .38rem}
  .product del{display:block;margin:0}
}
@media(max-width:385px){
  .brand img{width:26px;height:26px}
  .header-inner .account-tools .icon-button,.header-inner .menu-button{width:31px}
  .product .save-icon{width:34px;height:34px;min-height:34px}
}
