.collection-page{--collection-red:#ed1c24;--collection-paper:#fff;--collection-charcoal:#171717;margin:0;background:#0b0b0b;color:var(--collection-paper);font:1rem/1.5 Arial,sans-serif;color-scheme:dark}
.collection-shell{max-width:76rem;margin:auto;padding:1.5rem clamp(1rem,4vw,3rem) 4rem}
.collection-shell>header{border-bottom:1px solid var(--collection-red);padding:1rem 0}
.collection-brand,.collection-hint{color:#c5c5c5}
.collection-shell h1{margin:0;font-size:clamp(2rem,6vw,3.75rem);line-height:1.1}
.collection-shell h2,.collection-shell h3{line-height:1.2}
.collection-actions{display:flex;align-items:center;gap:.75rem 1rem;flex-wrap:wrap}
.collection-shell a{color:#fff;text-underline-offset:.2em}
.collection-shell button,.collection-shell .collection-button{font:inherit;font-weight:700;color:white;background:#242424;border:1px solid #777;border-radius:999px;padding:.55rem .85rem;cursor:pointer}
.collection-shell button[type=submit],.collection-shell .collection-button{background:#ad1018;border-color:#ed1c24}
.collection-shell button:disabled{opacity:.55;cursor:wait}
.collection-shell :focus-visible{outline:2px solid #fff;outline-offset:3px}
.collection-panel,.collection-card{background:#171717;border:1px solid #3c3c3c;border-radius:.65rem;padding:1rem;margin:1rem 0}
.collection-fields,.collection-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.collection-fields label{display:grid;gap:.3rem;align-content:start}
.collection-fields label:has(input[type=checkbox]){display:flex;align-items:center}
.collection-shell input:not([type=checkbox]),.collection-shell select,.collection-shell textarea{width:100%;box-sizing:border-box;font:inherit;color:#fff;background:#101010;border:1px solid #777;border-radius:.35rem;padding:.5rem}
.collection-wide{grid-column:1/-1}
.collection-scroll{overflow-x:auto}
.collection-shell table{width:100%;border-collapse:collapse}
.collection-shell th,.collection-shell td{text-align:left;padding:.7rem;vertical-align:top;border-bottom:1px solid #3c3c3c}
.collection-shell th{white-space:nowrap}
.collection-shell img{max-width:100%;width:100%;max-height:30rem;object-fit:contain;background:#101010;border-radius:.4rem}
.collection-card img{aspect-ratio:3/2;object-fit:cover}
.collection-story{white-space:pre-wrap;overflow-wrap:anywhere}
.collection-badge{font-weight:700;color:var(--collection-paper);border-left:2px solid var(--collection-red);padding-left:.65rem}
.collection-shell dialog{max-width:min(66rem,calc(100% - 2rem));max-height:90vh;border:1px solid #888;background:#171717;color:#fff;border-radius:.6rem}
.collection-shell dialog::backdrop{background:#000a}

@media(max-width:46rem){
  .collection-stock{display:block}
  .collection-stock thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .collection-stock tbody{display:grid;gap:1rem}
  .collection-stock tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #3c3c3c;border-radius:.5rem}
  .collection-stock td{display:grid;gap:.25rem;border-bottom:0;padding:.65rem;overflow-wrap:anywhere}
  .collection-stock td::before{content:attr(data-label);font-size:.8rem;color:#c5c5c5}
  .collection-stock td:first-child{grid-column:1/-1;font-size:1.12rem;font-weight:700;border-bottom:1px solid #3c3c3c}
  .collection-stock td:first-child::before{content:none}
  .collection-stock td:nth-child(6),.collection-stock td:last-child{grid-column:1/-1}
  .collection-stock td:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem}
  .collection-stock td:last-child::before{flex-basis:100%}
  .collection-stock input[type=checkbox]{width:1.2rem;height:1.2rem;margin:.2rem}
}

.collection-panel form>label{display:block;margin:.65rem 0}
.collection-actions button:hover,.collection-card:hover{border-color:var(--collection-red)}

#shed-filters[hidden]{display:none}
#shed-filters select{width:auto;max-width:100%;border-radius:999px;padding-inline:.85rem}
#shed-guides{columns:3;column-gap:2rem}
#shed-guides li{break-inside:avoid;padding:.2rem 0}
#shed-adverts{margin-bottom:1rem}
#shed-adverts button{margin-top:.8rem}
@media(max-width:850px){#shed-guides{columns:2}}
@media(max-width:520px){#shed-guides{columns:1}}

.collection-shell{--collection-pill-bg:#252525;--collection-pill-border:#767676}
.collection-shell .collection-nav{margin-bottom:1rem}
.collection-shell :is(.collection-nav>a,.collection-button,.collection-pill){
  display:inline-flex;align-items:center;justify-content:center;
  min-height:2.75rem;box-sizing:border-box;padding:.5rem .85rem;
  border:1px solid var(--collection-pill-border);border-radius:999px;
  background:var(--collection-pill-bg);color:var(--collection-paper);text-decoration:none;font-weight:700
}
.collection-shell :is(.collection-nav>a,.collection-button,.collection-pill):is(:hover,:focus-visible){
  border-color:var(--collection-red);background:#303030
}
.collection-shell :is(.collection-nav>a[aria-current],.collection-button,.collection-pill[aria-pressed="true"]){
  border-color:var(--collection-red)
}
.collection-shell .collection-pill[aria-pressed="true"]{background:#3a1719}
.collection-shell [hidden]{display:none!important}
#shed-type{margin:.65rem 0 0;padding:0;border:0;min-width:0}
#shed-type legend{font-weight:700;margin-bottom:.4rem}

.collection-shell .collection-example-photo{margin:0}

.collection-example-frame{aspect-ratio:3/2;background:#101010;border-radius:.45rem;overflow:hidden}
.collection-shell .collection-example-frame img{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.collection-shell .collection-bike-card>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.collection-shell .collection-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}
.collection-shell .collection-example-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
.collection-shell .collection-example-card{
  display:flex;flex-direction:column;min-width:0;margin:0;
  border-top-color:var(--collection-red)
}
.collection-shell .collection-example-card h2{margin:.9rem 0 .35rem}
.collection-shell .collection-example-card p{margin:.35rem 0 .65rem}
.collection-shell .collection-example-card .collection-actions{margin-top:auto;padding-top:.55rem}
#collection-examples>.collection-actions{margin-top:1rem}
.collection-examples-page .collection-shell>header{padding-top:.35rem}
@media(max-width:62rem){
  .collection-shell .collection-example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:38rem){
  .collection-shell .collection-example-grid{grid-template-columns:1fr}
  .collection-examples-page .collection-shell>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
  .collection-examples-page .collection-shell>nav>a{padding-inline:.4rem;text-align:center}
}

.collection-example-photo figcaption{color:#c5c5c5;font-size:.76rem;margin-top:.35rem;overflow-wrap:anywhere}
.collection-shell .collection-example-detail{max-width:54rem}
.collection-shell #example-workshop .collection-example-photo{max-width:32rem;margin-bottom:1rem}
.collection-example-uploads{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem}
.collection-example-uploads img{aspect-ratio:3/2;object-fit:contain}
.collection-shell .collection-pill[aria-current="page"]{border-color:var(--collection-red)}
.collection-shell fieldset,.collection-shell input[type=file]{min-width:0;max-width:100%}
.collection-shell :is([id^="example-"],[id^="shed-"]){scroll-margin-top:5rem}
