/* Willy Build (public): project list (shared list cards) + the generic project page. Greyscale, photos included. */
.build-head { padding: 14px 16px 15px; margin-bottom: 14px; text-align: center; }
.build-head h1 { font: 700 clamp(20px, 3vw, 26px)/1.1 var(--font-ui); }
.build-head p { margin-top: 5px; color: var(--ink-2); font-size: 14px; }
.build-empty { padding: 30px 16px; text-align: center; color: #636363; }

/* the project list is the shared list cards (/css/items.css .ui-cards / .ui-card) */
.bproj__status { flex: none; padding: 1px 8px; background: #fff; border: 1px solid var(--ink); border-radius: 999px; font: 16px/1.2 var(--font-lcd); white-space: nowrap; }

.bproj { overflow: hidden; }
.bproj__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1.5px solid var(--line);
  background: repeating-linear-gradient(#fff 0 1px, #d6d6d6 1px 3px); }
.bproj__bar h1, .bproj__bar h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 6px; background: #fff; font: 700 clamp(18px, 3vw, 22px)/1.2 var(--font-ui); }
.bproj__solar, .bpw__ic { width: 16px; height: 16px; flex: none; image-rendering: pixelated; vertical-align: -2px; }
.bsec__h:has(.bpw__ic) { display: flex; align-items: center; gap: 6px; }
.bproj__cover img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; }
.bproj__cover--piece img { object-fit: contain; max-height: 80vh; background: #fff; }
.bproj__when { display: block; padding: 8px 12px 10px; font: 15px/1 var(--font-lcd); color: #525252; text-align: center; }
.bproj__vers .pics time { display: block; margin-top: 4px; font: 15px/1 var(--font-lcd); color: #525252; }
.bproj__body { padding: 14px 16px 16px; }
.bproj__body p + p { margin-top: .8em; }
.bproj__links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }                /* linked cars, books, posts */
.bproj__gantt { padding: 14px 16px 16px; }
.bproj__body:not([hidden]) + .bproj__parts { border-top: 1.5px solid var(--line); }   /* Parts: inside the card, after About */
.bparts { margin: 0; padding: 0; list-style: none; }
.bparts li { padding: 6px 0; }
.bparts li + li { border-top: 1px dotted #9c9c9c; }
.bparts__n { display: block; font-weight: 700; }
.bparts__d { display: block; color: var(--ink-2); font-size: 14px; }
.bproj__body:not([hidden]) ~ .bproj__gantt, .bpw:not([hidden]) ~ .bproj__gantt { border-top: 1.5px solid var(--line); }

/* Powerwall: Yesterday / Lifetime tiles + a pixel energy-offset chart */
.bpw { padding: 12px 16px 14px; border-top: 1.5px solid var(--line); }
.bpw[hidden] { display: none; }
.bsec__h { margin: 0 0 12px; }                                          /* About, Powerwall, Schedule: .ui-sec__h from /css/items.css */
.bproj__gantt .bsec__h { margin-bottom: 4px; }
.bpw__h { margin: 12px 0 4px; font: 700 15px/1.2 var(--font-ui); }
.bpw__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.bpw__cols > div { padding: 8px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; }
.bpw dt { font-size: 12.5px; color: #525252; }
.bpw dd { margin: 2px 0 0; font: 24px/1 var(--font-lcd); white-space: nowrap; }
.bpw dd.bpw__$ { font-size: 18px; color: #424242; }
.bpw__chart { display: block; width: 100%; height: auto; margin-top: 2px; }
.bpw__chart text { font-family: var(--font-lcd); }
@media (max-width: 420px) { .bpw__cols > div { padding: 7px 8px; } .bpw dt { font-size: 11.5px; } .bpw dd { font-size: 19px; } .bpw dd.bpw__$ { font-size: 16px; } }
.menubar__app [data-build-name] { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.menubar__app:has([data-build-name]) { overflow: hidden; }
/* garage project cards: the car's pixel sprite instead of the Build icon */
.bcard .ui-cover--icon img.bcard__car { width: 60px; height: 60px; }

/* project photo gallery (same idea as Property's .pics) + a 3D layout on the School Bus card */
.bproj__pics, .bproj__links, .bproj__model, .bproj__vers { padding: 14px 16px 16px; }
.bproj__cover:not([hidden]) ~ .bproj__vers { border-top: 1.5px solid var(--line); }
.bproj__body:not([hidden]) ~ .bproj__pics,
.bproj__body:not([hidden]) ~ .bproj__links,
.bproj__links ~ .bproj__pics,
.bproj__pics ~ .bproj__model,
.bproj__body:not([hidden]) ~ .bproj__model,
.bproj__vers ~ .bproj__body { border-top: 1.5px solid var(--line); }
.bproj__pics ~ .bproj__gantt, .bproj__model ~ .bproj__gantt, .bproj__links ~ .bproj__gantt { border-top: 1.5px solid var(--line); }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 4px; }
.pics figure { margin: 0; }
.pics img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 4px; background: var(--soft); }
.pics figcaption { font: 15px/1.2 var(--font-lcd); color: #636363; margin-top: 2px; }
.pics--wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pics--wide img { aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.pics--wide:has(> figure:only-child) { grid-template-columns: 1fr; }
.pics--wide:has(> figure:only-child) img { aspect-ratio: auto; }
.bproj__note { margin-top: .8em; color: #636363; font-size: 15px; }
.bproj__model model-viewer {
  display: block; width: 100%; height: min(70vh, 520px);
  background: #e6e6e6; --poster-color: #e6e6e6;
}
