/*
 * Single builder update (single-update.php). Matches the builder contact tab (builder-contact.css):
 * white cards, thin dark borders, taupe buttons, the grey lead-time box. Approved mockup 2026-11-10.
 */

.vz-u {
  max-width: 1200px;
  margin: 32px auto 64px;
  padding: 0 24px;
  box-sizing: border-box;
  color: #1f1f1f;
}

.vz-u *,
.vz-u *::before,
.vz-u *::after {
  box-sizing: border-box;
}

/* Updates menu */
.vz-u__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e6e3dd;
}

.vz-u__back {
  color: #8c806f !important;
  font-weight: 600;
  text-decoration: none;
  margin-right: 8px;
  white-space: nowrap;
}

.vz-u__back:hover {
  text-decoration: underline;
}

.vz-u__tab {
  border: 1px solid #d9d6d0;
  background: #fff;
  color: #333 !important;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  line-height: 1.2;
}

.vz-u__tab:hover {
  border-color: #1f1f1f;
}

.vz-u__tab.is-current {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff !important;
}

/* Page grid */
.vz-u__page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.vz-u__card {
  background: #fff;
  border: 1px solid #e6e3dd;
  padding: 32px 36px;
  min-width: 0;
}

/* Header */
.vz-u__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
}

.vz-u__badge--files { background: #5f7a8a; }
.vz-u__badge--products { background: #7a8a5f; }
.vz-u__badge--lead_times { background: #a07a3c; }
.vz-u__badge--builders { background: #8a5f7a; }
.vz-u__badge--weekly { background: #8c806f; }

.vz-u .vz-u__title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: #1f1f1f;
  margin: 12px 0 6px;
  text-wrap: balance;
}

.vz-u .vz-u__meta {
  margin: 0;
  color: #6b6b6b;
  font-size: 16px;
}

.vz-u__meta strong {
  color: #1f1f1f;
}

.vz-u .vz-u__lede {
  font-size: 18px;
  line-height: 1.45;
  margin: 20px 0 0;
  max-width: 72ch;
}

.vz-u__image {
  margin: 22px 0 0;
}

.vz-u__image img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
}

/* Key numbers */
.vz-u__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.vz-u__stats div {
  background: #f8f7f4;
  border: 1px solid #1f1f1f;
  padding: 14px 16px;
}

.vz-u__stats dt {
  font-size: 13px;
  color: #6b6b6b;
}

.vz-u__stats dd {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Lead times: same boxes as the contact tab */
.vz-u__lead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: #f1f0ee;
  border: 1px solid #1f1f1f;
  padding: 18px;
  margin-top: 22px;
}

.vz-u__lead-box {
  background: #fff;
  border: 1px solid #d9d6d0;
  text-align: center;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vz-u__lead-label { color: #555; font-size: 15px; }
.vz-u__lead-number { font-size: 40px; font-weight: 700; line-height: 1.1; }
.vz-u__lead-unit { font-weight: 600; }
.vz-u__lead-text { font-weight: 600; font-size: 16px; line-height: 1.35; padding-top: 6px; overflow-wrap: anywhere; }
.vz-u__lead-was { color: #6b6b6b; font-size: 13px; margin-top: 4px; }
.vz-u__lead-box.is-empty .vz-u__lead-number,
.vz-u__lead-box.is-empty .vz-u__lead-unit { color: #9a968f; }

/* Product gallery */
.vz-u__gallery {
  list-style: none;
  margin: 16px 0 0 !important;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.vz-u__item {
  border: 1px solid #e6e6e6;
  background: #fff;
  min-width: 0;
  margin: 0;
}

.vz-u__item > a,
.vz-u__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.vz-u__item > a {
  padding-bottom: 0;
}

.vz-u__item-image {
  aspect-ratio: 6 / 5;
  background: #f4f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
  color: #c3bdb2;
  font-size: 2rem;
}

.vz-u__item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vz-u__gallery--gone .vz-u__item-image img {
  filter: grayscale(.35);
}

.vz-u__item-sku,
.vz-u__item-name,
.vz-u__item-note {
  padding: 0 12px;
}

.vz-u__item-sku { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #958b7b; font-weight: 700; overflow-wrap: anywhere; }
.vz-u__item-name { font-weight: 600; font-size: 14px; line-height: 1.3; color: #1f1f1f; }
.vz-u__item-note { font-size: 12px; color: #6b6b6b; }

.vz-u .vz-u__more-note {
  margin: 12px 0 0;
  color: #6b6b6b;
}

/* Contact fields */
.vz-u__chips {
  list-style: none;
  margin: 16px 0 0 !important;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vz-u__chips li {
  border: 1px solid #1f1f1f;
  background: #f8f7f4;
  padding: 6px 14px;
  font-weight: 600;
  margin: 0;
}

/* Write-up */
.vz-u__body {
  margin-top: 24px;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.6;
  color: #32373c;
}

.vz-u__body h2,
.vz-u__body h3,
.vz-u__body h4 {
  font-size: 19px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 22px 0 6px;
}

.vz-u__body p {
  margin: 0 0 12px;
  width: auto;
}

.vz-u__body ul,
.vz-u__body ol {
  margin: 0 0 12px !important;
  padding-left: 22px;
}

.vz-u__body li {
  margin-bottom: 6px;
}

.vz-u__body img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.vz-u__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.vz-u a.vz-u__btn {
  display: inline-block;
  background: #8c806f;
  color: #fff !important;
  font-weight: 700;
  padding: 13px 22px;
  border: 1px solid #8c806f;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.vz-u a.vz-u__btn:hover {
  background: #6f6557;
  border-color: #6f6557;
}

.vz-u a.vz-u__btn--ghost {
  background: #fff;
  color: #6f6557 !important;
}

.vz-u a.vz-u__btn--ghost:hover {
  background: #f8f7f4;
  color: #1f1f1f !important;
}

.vz-u a.vz-u__btn--small {
  width: 100%;
  padding: 10px 14px;
}

/* Right column */
.vz-u__rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.vz-u__rail-card {
  background: #fff;
  border: 1px solid #e6e3dd;
  padding: 20px;
}

.vz-u__builder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.vz-u__logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e6e3dd;
  background: #fff;
  display: flex;
}

.vz-u__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vz-u__builder-name {
  font-size: 17px;
}

.vz-u .vz-u__rail-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1f1f1f;
}

.vz-u__more {
  list-style: none;
  margin: 0 0 12px !important;
  padding: 0;
}

.vz-u__more li {
  margin: 0;
  border-bottom: 1px solid #e6e3dd;
}

.vz-u__more a {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  text-decoration: none;
  color: #1f1f1f;
}

.vz-u__more a:hover .vz-u__more-title {
  text-decoration: underline;
}

.vz-u__more-date { color: #6b6b6b; font-size: 12px; }
.vz-u__more-title { font-weight: 600; font-size: 14px; }
.vz-u__more-builder { color: #6b6b6b; font-size: 13px; }

.vz-u__rail-link {
  color: #6f6557 !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.vz-u__rail-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .vz-u__page {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .vz-u {
    padding: 0 16px;
    margin-top: 20px;
  }

  .vz-u__card {
    padding: 22px 18px;
  }

  .vz-u .vz-u__title {
    font-size: 26px;
  }

  .vz-u__lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .vz-u__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
