/* ==========================================================================
   series.v1.css -- product series page layout remediation (guide 3, hard-issue C)

   WHY A NEW FILE
   The series pages ship an inline <style> block that defines .sv3-2up with
   `align-items: start`, and that block is emitted *before* the external
   stylesheets in <head>.  An external rule of equal specificity therefore wins
   on document order, so the inline copy can stay untouched and stays
   reversible -- no per-page inline surgery.

   Stylesheet filenames are served immutable, so the content of an existing
   file must never be edited in place.  Hence a new versioned filename.

   MEASURED BEFORE (CDP, cache disabled, 1280px viewport, local :8899):
     series          spec block   detail figure   gap
     spc-flooring        581.5px        522.7px    58.8px
     pe-outdoor          562.0px        522.7px    39.3px
     soft-stone          849.8px        522.7px   327.1px
     pvc-grille          581.5px        522.7px    58.8px
     metal-trim          581.5px        390.9px   190.6px
     spc-wallpanel       581.5px        522.7px    58.8px
     wpc-wallpanel       581.5px        390.9px   190.6px
   The figure never grew past its intrinsic image height, so the right column
   left a hollow band underneath -- worst on soft-stone, 327px of dead space.
   ========================================================================== */

/* ---- Hard-issue C: force the two columns to the same height ------------ */
.sv3-2up {
  align-items: stretch;
}

.sv3-detail {
  height: 100%;
  min-height: 220px;
  display: flex;
}

/* The figure is now a flex box, so the image needs to be the flex item that
   fills it. `min-height` alone let the intrinsic size win. */
.sv3-detail img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Below the fold breakpoint the grid collapses to one column; a stretched
   figure would then be measured against the figure's own content and could
   collapse, so pin it to a readable minimum there instead. */
@media (max-width: 860px) {
  .sv3-2up {
    align-items: start;
  }
  .sv3-detail {
    height: auto;
  }
  .sv3-detail img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   Guide 3 section 3.4, plan A -- staging notice for a series that is
   produced but has no published pattern codes.

   The page used to end in a bare "SKU: 0" row followed by nothing, which
   reads as an abandoned page rather than a line item released per project.
   ========================================================================== */
.pd-staging {
  margin: 28px 0 40px;
  padding: 32px 34px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #8C6A3F;
  border-radius: 10px;
}

.pd-staging__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8C6A3F;
}

.pd-staging__h {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
  color: #141518;
}

.pd-staging__lead,
.pd-staging__cn {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  max-width: 68ch;
}

.pd-staging__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Self-contained CTA styling.  The same-colour-door pages were never wired
   into the shared design system -- they carry no tokens.v2 / nav.v2 /
   site-ui, and no .sv3-btn rule -- so a class borrowed from the series
   banner would have rendered as a bare default link here. */
.pd-staging__cta a {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pd-staging__cta a:first-child {
  background: #8C6A3F;
  color: #FFFFFF;
}

.pd-staging__cta a:first-child:hover {
  background: #7A5C36;
}

.pd-staging__cta a + a {
  background: #FFFFFF;
  color: #141518;
  border-color: #CBD5E1;
}

.pd-staging__cta a + a:hover {
  border-color: #8C6A3F;
}

@media (max-width: 640px) {
  .pd-staging {
    padding: 24px 20px;
  }
  .pd-staging__h {
    font-size: 19px;
  }
}

/* ==========================================================================
   Spec plate -- the honest stand-in for a texture photo we do not have.

   WHY
   Measured across the series pages, 166 elements showed one photograph while
   the markup asserted a per-SKU texture identity:

       pvc-grille    66 cards   one desk snapshot for 66 grille codes
       pe-outdoor    34 cards + 10 banner tiles   one deck board for 34 codes
       spc-flooring  27 cards + 10 banner tiles   a WALL panel (MM series)
                                                    standing in for 27
                                                    FLOORING codes
       metal-trim    13 cards +  3 banner tiles   a grille panel on a trim page
       soft-stone     3 cards

   The real fix is to publish a photograph per SKU.  Until those assets
   exist, a photo is replaced by a plate that shows what we can actually
   stand behind: the spec code and its price.  Nothing is invented, the
   per-SKU claim is withdrawn, and the 4:3 box from cards.v1.css is kept so
   grid alignment is unaffected.
   ========================================================================== */
.card__imgwrap--spec,
.shero__tile--spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  text-align: center;
  background: linear-gradient(160deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  box-sizing: border-box;
}

.card__spec,
.shero__spec {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #334155;
  word-break: break-all;
}

.card__specnote,
.shero__specnote {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #94A3B8;
}

/* The banner strip is short; keep the plate compact there. */
.shero__tile--spec {
  gap: 3px;
  padding: 6px 5px;
}

.shero__tile--spec .shero__spec {
  font-size: 10.5px;
}

.shero__tile--spec .shero__specnote {
  font-size: 8px;
}


