/* =========================================================================
   VFS BUILD SPECIFICATIONS — includes/vfs-specs.php

   The spec sheet on a van-for-sale detail page: one part per source
   ("Titan Vans — Features", "Mercedes-Benz — Included Options", …), one row
   per category with the category name in a left rail and its items in
   hairline-ruled columns beside it. Everything is visible — the sheet is for
   scanning, not tapping.

   The band takes the same content column as the footer: 1600px measure with
   the 6rem → 9rem → 2rem → 1.25rem gutter ladder.
   ========================================================================= */

.vfs-build {
  --vfs-specs-measure: 1600px;
  --vfs-specs-gutter: 6rem;

  --vfs-specs-strong: var(--theme-text-strong, #f6f6f6);
  --vfs-specs-main: var(--theme-text-main, rgba(255, 255, 255, 0.84));
  --vfs-specs-muted: var(--theme-text-muted, rgba(255, 255, 255, 0.66));
  --vfs-specs-soft: var(--theme-text-soft, rgba(255, 255, 255, 0.48));
  --vfs-specs-divider: var(--theme-divider, rgba(255, 255, 255, 0.08));
  /* Included-item tick — same green as the FAQ answer checkmarks. */
  --vfs-specs-check: rgba(74, 222, 128, 0.8);

  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  color: var(--vfs-specs-main);
}

@media only screen and (min-width: 1600px) {
  .vfs-build {
    --vfs-specs-gutter: 9rem;
  }
}

@media only screen and (max-width: 1200px) {
  .vfs-build {
    --vfs-specs-gutter: 2rem;
  }
}

@media only screen and (max-width: 700px) {
  .vfs-build {
    --vfs-specs-gutter: 1.25rem;
  }
}

/* ---- section head — same editorial lockup as the FAQ bands ---- */

.vfs-build__head {
  display: grid;
  justify-items: center;
  width: min(52rem, 100% - 2 * var(--vfs-specs-gutter));
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: center;
}

.vfs-build__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--vfs-specs-soft);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vfs-build__title {
  margin: 0 0 0.6rem;
  color: var(--vfs-specs-strong);
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
}

.vfs-build__intro {
  margin: 0;
  color: var(--vfs-specs-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ---- the sheet ---- */

.vfs-build__sheet {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  width: min(var(--vfs-specs-measure), 100% - 2 * var(--vfs-specs-gutter));
  margin-inline: auto;
}

/* Part heading — small caps with a hairline running out to the right,
   the site's eyebrow-and-rule band. */
.vfs-build__part-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  color: var(--vfs-specs-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vfs-build__part-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vfs-specs-divider);
}

/* Category row: name in a left rail, items beside it. */
.vfs-build__row {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 4.5rem);
  padding: clamp(1.4rem, 2.5vw, 1.9rem) 0;
  border-bottom: 1px solid var(--vfs-specs-divider);
}

.vfs-build__row:last-child {
  border-bottom: 0;
}

/* The rail follows a long item list down the row, so the category label is
   still in view when its 20th item scrolls past. */
.vfs-build__rail {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.vfs-build__cat {
  margin: 0;
  color: var(--vfs-specs-strong);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-transform: none;
}

.vfs-build__count {
  color: var(--vfs-specs-soft);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Items: ticked rows flowing into up-to-two columns — no per-row rules, the
   ticks carry the rhythm and the category rows' dividers do the framing. */
.vfs-build__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  column-gap: clamp(1.75rem, 3vw, 3.25rem);
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vfs-build__items li {
  position: relative;
  min-width: 0;
  padding: 0.55rem 0 0.55rem 1.45rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--vfs-specs-main);
}

/* CSS-drawn tick — no icon font involved, so it can't fall back to a box. */
.vfs-build__items li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.98em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid var(--vfs-specs-check);
  border-bottom: 2px solid var(--vfs-specs-check);
  transform: rotate(-45deg);
}

/* ---- responsive ---- */

@media only screen and (max-width: 900px) {
  .vfs-build__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
  }
  .vfs-build__rail {
    position: static;
    grid-auto-flow: column;
    align-items: baseline;
    justify-content: start;
    gap: 0.75rem;
  }
  .vfs-build__cat {
    font-size: 1.02rem;
  }
}
