/* ============================================================
   Installation & Technical Support page — section layout
   Continues the Support pages' grammar (Warranty, Delivery):
   alternating white / light-grey sections, a copy-photo split,
   fact cards with a green left edge, check rows, responsibility
   cards and blue numbered stages. Colours and type come from
   tokens.css; .eyebrow, .section-heading and .text-link are
   global (site.css). Local prefix: nz-inst-.
   ============================================================ */

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

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

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

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

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

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

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

/* ---- Standard support: copy with its 2 x 2 tiles beside the photo ---- */
.nz-inst-standard {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  position: relative;
}

.nz-inst-standard__copy h2 {
  margin-bottom: 18px;
}

.nz-inst-standard__copy > p {
  max-width: 62ch;
}

.nz-inst-standard__media {
  margin-top: 6px;
}

@media (min-width: 1025px) {
  /* The equal-height pattern proven on the Warranty page intro: at desktop
     the slot leaves the 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-inst-standard__media {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: calc((100% - 56px) * 5 / 12);
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

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

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

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

.nz-inst-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.nz-inst-tile {
  padding: 18px 20px;
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
}

.nz-inst-tile strong {
  display: block;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
}

.nz-inst-tile p {
  margin: 4px 0 0;
  color: var(--gray-text);
  font-size: 13.5px;
  line-height: 1.55;
}

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

/* ---- Boundary notes: same grammar as the Warranty page ---- */
.nz-inst-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-inst-note--wide {
  max-width: 78ch;
  margin-top: 28px;
}

/* ---- Fact cards: same grammar as the Support pages' fact cards ---- */
.nz-inst-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-inst-fact {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 3px 22px;
  padding: 11px 0;
}

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

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

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

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

/* ---- On-site service: copy, fee card and confirmed-before list ---- */
.nz-inst-onsite {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
  margin-top: 44px;
}

.nz-inst-onsite__copy > p {
  max-width: 58ch;
}

.nz-inst-onsite__list h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

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

.nz-inst-checks li {
  padding: 11px 0;
  border-top: 1px solid var(--gray-line);
  color: var(--text);
  font-size: 14.5px;
}

.nz-inst-checks li:first-child {
  border-top: 0;
}

.nz-inst-checks strong {
  color: var(--blue);
  font-weight: 600;
}

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

/* ---- Site conditions: the two responsibility cards ---- */
.nz-inst-duties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

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

.nz-inst-duty h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.nz-inst-duty ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nz-inst-duty li {
  padding: 9px 0;
  border-top: 1px solid var(--gray-line);
  color: var(--gray-text);
  font-size: 14.5px;
}

.nz-inst-duty li:first-child {
  border-top: 0;
}

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

/* ---- From arrival to running: numbered stages in a 2 x 2 grid ---- */
.nz-inst-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.nz-inst-stage {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--white);
}

.nz-inst-stage__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-inst-stage__body strong {
  display: block;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}

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

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

/* ---- Related links ---- */
.nz-inst-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 34px;
}

.nz-inst-links .text-link {
  justify-self: start;
}
