/* Member Builds page */
.builds { min-height: auto; }
.bhead__btn { margin-top: 14px; }
.btoolbar { margin-bottom: 4px; }
.btoolbar[hidden] { display: none; }

.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.bcard {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--coal); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.bcard:hover, .bcard:focus-visible { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.bcard__img { position: relative; aspect-ratio: 4 / 3; background: #0a0807; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bcard:hover .bcard__img img { transform: scale(1.05); }
.bcard__style {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 30px;
  font-family: var(--cond); font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(13,11,10,.8); color: var(--yellow); border: 1px solid rgba(246,185,23,.4);
}
.bcard__body { display: grid; gap: 2px; padding: 14px 16px 16px; border-top: 3px solid var(--red); }
.bcard__car { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.bcard__nick { color: var(--yellow); font-style: italic; font-size: .95rem; }
.bcard__owner { color: var(--muted); font-size: .88rem; }

.bempty, .bthanks {
  grid-column: 1 / -1; text-align: center; padding: 48px 24px; border-radius: var(--radius);
  background: repeating-linear-gradient(90deg, #2b1a12 0 58px, #24160f 58px 62px); border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 80px rgba(0,0,0,.6);
}
.bempty h3, .bthanks h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 6px 0 8px; }
.bempty p, .bthanks p { color: #ddd3c7; max-width: 560px; margin: 0 auto 20px; }
.bempty__icon { font-size: 2.4rem; }
.bnone { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 30px 0; }
.linkbtn { color: var(--yellow); text-decoration: underline; }

/* build sheet (shares the product sheet frame) */
.bsheet { z-index: 105; }                 /* a store part opened from a build sits on top */
.bsheet__main { background: #0a0807; }
.bsheet__main img { object-fit: contain; padding: 0; }
.bsheet .psheet__thumbs button { background: #0a0807; }
.bsheet .psheet__thumbs img { object-fit: cover; }
.bsheet__nick { color: var(--yellow); font-style: italic; font-size: 1.1rem; margin-bottom: 4px; }
.bsheet__owner { color: var(--muted); margin-bottom: 16px; }
.bsheet__owner strong { color: var(--paper); }
.bsheet__specs { margin-bottom: 18px; }
.bsheet__parts h3, .bsheet .psheet__sec h3 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; color: var(--yellow); margin-bottom: 8px; }
.bsheet__parts ul { padding-left: 18px; color: #ddd3c7; font-size: .95rem; line-height: 1.6; }
.bsheet .psheet__about p + p { margin-top: 12px; }
.bsheet__cta p { color: var(--muted); }
.bsheet__cta a { color: var(--yellow); font-weight: 700; }

/* submit */
.bsubmit { min-height: auto; background: linear-gradient(180deg, var(--ink), #140f0c); }
.bsubmit__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.brules { position: sticky; top: calc(var(--nav-h) + 20px); }
.brules__lead { color: #ddd3c7; margin-bottom: 20px; }
.brules__box { padding: 20px 22px; border-radius: var(--radius); background: var(--coal); border: 1px solid var(--line); border-left: 5px solid var(--yellow); }
.brules__box h3 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); margin-bottom: 8px; }
.brules__box ul { list-style: none; display: grid; gap: 8px; font-size: .95rem; color: #ddd3c7; }
.brules__box li { padding-left: 22px; position: relative; }
.brules__box li::before { content: "\2715"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.brules__box li:first-child::before { content: "\2713"; color: #7CFF8A; }
.brules__fine { margin-top: 16px; font-size: .82rem; color: var(--muted); }

.bform .row--3 { grid-template-columns: 1fr 1.3fr 1.5fr; }
.bform__set { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; display: grid; gap: 14px; }
.bform__set legend { padding: 0 8px; font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); font-size: .9rem; }
.bform__lbl { display: block; margin-bottom: 8px; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); }
.bform__lbl small { text-transform: none; letter-spacing: 0; font-family: var(--body); }
.bform .input.is-bad { outline: 2px solid var(--red); outline-offset: 1px; }
.bcheck { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--body) !important; font-size: .92rem !important; color: #ddd3c7 !important; }
.bcheck input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.bphoto { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #0a0807; border: 2px solid var(--line); }
.bphoto.is-cover { border-color: var(--yellow); }
.bphoto img { width: 100%; height: 100%; object-fit: cover; }
.bphoto span, .bphoto [data-cover] {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 20px; font-size: .72rem; font-weight: 700;
  background: rgba(13,11,10,.85); color: var(--yellow);
}
.bphoto [data-cover] { color: var(--paper); }
.bphoto [data-cover]:hover { color: var(--yellow); }
.bphoto__x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(13,11,10,.85); font-size: 1.1rem; line-height: 1; }
.bphoto__x:hover { background: var(--red); }
.bphoto--add { display: grid; place-content: center; text-align: center; cursor: pointer; border-style: dashed; color: var(--muted); gap: 2px; }
.bphoto--add b { font-size: 2rem; line-height: 1; color: var(--yellow); }
.bphoto--add:hover { border-color: var(--yellow); color: var(--paper); }

.bpick { position: relative; }
.bpick__res { display: grid; gap: 4px; margin-top: 6px; }
.bpick__res button { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 8px 12px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .9rem; }
.bpick__res button:hover { border-color: var(--yellow); }
.bpick__res small { color: var(--muted); white-space: nowrap; }
.bpick__none { color: var(--muted); font-size: .88rem; }
.bpicked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 30px; background: rgba(215,38,45,.18); border: 1px solid rgba(215,38,45,.5); font-size: .85rem; }
.bchip button { width: 22px; height: 22px; border-radius: 50%; line-height: 1; }
.bchip button:hover { background: var(--red); }

.bthanks { grid-column: 2; }

@media (max-width: 900px) {
  .bsubmit__inner { grid-template-columns: 1fr; gap: 28px; }
  .brules { position: static; }
  .bthanks { grid-column: 1; }
}
@media (max-width: 560px) {
  .bform .row, .bform .row--3 { grid-template-columns: 1fr; }
  .bgrid { grid-template-columns: 1fr; }
}
.bchip small { color: var(--muted); }
