/* ============================================================
   Warranty & Spare Parts page — section layout
   Continues the support-page grammar: alternating white /
   light-grey sections, an intro split with a closing picture
   slot, fact cards with a green left edge, blue numbered steps
   in the Project Process grammar, tile rows and path cards.
   Colours and type come from tokens.css; .eyebrow,
   .section-heading and .text-link are global (site.css).
   Local prefix: nz-wsp-.
   ============================================================ */

.nz-wsp {
  overflow-x: clip;
}

/* ---- Section rhythm ---- */
.nz-wsp-section {
  padding: 88px 0;
}

.nz-wsp-section--soft {
  background: var(--gray-bg);
}

@media (max-width: 760px) {
  .nz-wsp-section {
    padding: 52px 0;
  }
}

/* ---- Wide picture slot under the page header ---- */
.nz-wsp-banner {
  padding-top: 44px;
  background: var(--white);
}

/* ---- Optional WordPress editor body ---- */
.nz-wsp-extra {
  max-width: 78ch;
}

.nz-wsp-extra > *:last-child {
  margin-bottom: 0;
}

/* ---- Warranty period: copy and fact card beside a portrait slot ---- */
.nz-wsp-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  position: relative;
}

.nz-wsp-intro__copy h2 {
  margin-bottom: 18px;
}

.nz-wsp-intro__copy > p {
  max-width: 62ch;
}

.nz-wsp-intro__media {
  margin-top: 30px;
}

@media (min-width: 1025px) {
  /* The slot is taken out of flow entirely, so the row is sized by the copy
     column alone; top:0/bottom:0 then give the slot exactly the copy
     column's height, and the picture crops inside it (object-fit: cover).
     A height:0 + min-height:100% grid item cannot do this: during track
     sizing the percentage falls back to auto and the slot's intrinsic
     height inflates the row again. The width mirrors the 5fr track:
     (container - gap) x 5/12. */
  .nz-wsp-intro__media {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: calc((100% - 56px) * 5 / 12);
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .nz-wsp-intro__media .nz-ph {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .nz-wsp-intro__media .nz-ph__img {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 1024px) {
  .nz-wsp-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

/* ---- Notes and fact cards: shared support-page grammar ---- */
.nz-wsp-note {
  max-width: 62ch;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gray-line);
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
}

.nz-wsp-facts {
  max-width: 620px;
  margin: 18px 0 0;
  padding: 4px 20px;
  border: 1px solid var(--gray-line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
}

.nz-wsp-facts--auto {
  max-width: none;
  align-self: start;
}

.nz-wsp-fact {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 3px 22px;
  padding: 11px 0;
}

.nz-wsp-fact + .nz-wsp-fact {
  border-top: 1px solid var(--gray-line);
}

.nz-wsp-fact dt {
  padding-top: 2px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nz-wsp-fact dd {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .nz-wsp-facts {
    padding: 2px 16px;
  }

  .nz-wsp-fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 0;
  }
}

/* ---- Reporting a fault: checklist and judgement beside the photo ---- */
.nz-wsp-report {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
  margin-top: 44px;
  position: relative;
}

.nz-wsp-report h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.nz-wsp-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nz-wsp-checks li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--gray-line);
}

.nz-wsp-checks__mark {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 15px;
  line-height: 1.45;
}

.nz-wsp-checks strong {
  display: block;
  color: var(--blue);
  font-size: 15.5px;
  font-weight: 600;
}

.nz-wsp-checks p {
  margin: 3px 0 0;
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
}

.nz-wsp-report__judged {
  margin-top: 34px;
}

.nz-wsp-report__media .nz-ph {
  border: 1px solid var(--gray-line);
}

@media (min-width: 1025px) {
  /* The photo column is taken out of flow entirely, so the row is sized by
     the copy column (checklist + judgement) alone; top:0/bottom:0 give the
     photo exactly that height, with the picture cover-cropped inside — the
     same mechanism as the intro slot above. The width mirrors the 6fr
     track: (container - gap) / 2. */
  .nz-wsp-report__media {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: calc((100% - 56px) * 6 / 12);
    display: flex;
    flex-direction: column;
  }

  .nz-wsp-report__media .nz-ph {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
  }

  .nz-wsp-report__media .nz-ph__img {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 1024px) {
  .nz-wsp-report {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

/* ---- Performance issues: copy and the numbered check order ---- */
.nz-wsp-performance {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}

.nz-wsp-performance__copy h2 {
  margin-bottom: 18px;
}

.nz-wsp-performance__copy > p {
  max-width: 58ch;
}

.nz-wsp-performance__copy .nz-wsp-steps {
  margin-top: 28px;
}

.nz-wsp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nz-wsp-step {
  display: flex;
  gap: 18px;
  padding: 14px 0;
}

.nz-wsp-step + .nz-wsp-step {
  border-top: 1px solid var(--gray-line);
}

.nz-wsp-step__num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nz-wsp-step__body strong {
  display: block;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}

.nz-wsp-step__body p {
  margin: 3px 0 0;
  max-width: 52ch;
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .nz-wsp-performance {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---- After the warranty: three tiles on the light grey ---- */
.nz-wsp-beyond {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.nz-wsp-beyond__tile {
  padding: 22px 24px;
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
}

.nz-wsp-beyond__tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}

.nz-wsp-beyond__tile p {
  margin: 0;
  color: var(--gray-text);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .nz-wsp-beyond {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Ordering a part: the two paths, then request items and payment ---- */
.nz-wsp-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.nz-wsp-path {
  padding: 22px 24px;
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
}

.nz-wsp-path h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.nz-wsp-path p {
  margin: 0;
  color: var(--gray-text);
  font-size: 14.5px;
  line-height: 1.65;
}

.nz-wsp-request {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

.nz-wsp-request__list h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.nz-wsp-request__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nz-wsp-request__items li {
  padding: 8px 14px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .nz-wsp-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  .nz-wsp-request {
    grid-template-columns: minmax(0, 1fr);
  }
}
