/* ============================================================
   Project Process page — section layout
   Continues the About page's grammar: alternating white /
   light-grey sections, eyebrow + section headings, a deep-blue
   band and bordered fact rows. The stage timeline follows the
   process-diagram rules of DESIGN.md §10: rectangular numbered
   nodes, one thin connecting line, green used only as a small
   edge accent. Colours and type come from tokens.css; the
   .eyebrow, .section-heading, .text-link, .nz-terms and
   .nz-related patterns are global (site.css / framework.css).
   ============================================================ */

.nz-pp {
  /* Nothing on this page may widen the viewport. */
  overflow-x: clip;
}

/* ---- Section rhythm (same scale as the About page) ---- */
.nz-pp-section {
  padding: 88px 0;
}

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

.nz-pp-section--blue {
  background: var(--blue);
  /* The owner asked for pure white copy on this band, not the grey-white
     (--blue-soft) the About page's band uses. Setting the colour on the
     section alone is NOT enough: site.css targets paragraphs directly with
     `p { color: var(--gray-text) }`, and a direct rule beats any inherited
     value, so the band's paragraphs need an explicit white of their own. */
  color: var(--white);
}

.nz-pp-section--blue p {
  color: var(--white);
}

.nz-pp-section--blue h2,
.nz-pp-section--blue h3 {
  color: var(--white);
}

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

/* ---- Optional WordPress editor body, printed above the sections ---- */
.nz-pp-extra {
  max-width: 78ch;
}

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

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

/* ---- Intro: how we work, beside what the first reply contains ---- */
.nz-pp-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: start;
}

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

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

.nz-pp-intro__panel h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

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

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

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

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

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

.nz-pp-intro__note {
  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;
}

/* The picture slot that closes the intro column. */
.nz-pp-intro__media {
  margin-top: 22px;
}

/* The picture slot under the intro copy: it fills the empty left column and
   balances the checklist-plus-placeholder height of the right column. */
.nz-pp-intro__copy-media {
  margin-top: 30px;
}

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

/* ---- The stage timeline ---- */
.nz-pp-stages {
  position: relative;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.nz-pp-stage {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0 30px;
  padding: 0 0 46px;
}

.nz-pp-stage:last-child {
  padding-bottom: 0;
}

/* The connecting line between the numbered nodes (DESIGN.md §10). It runs
   the full height of each row; the node itself covers it where they meet. */
.nz-pp-stage::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 2px;
  content: "";
  background: var(--blue-soft);
}

.nz-pp-stage:first-child::before {
  top: 22px;
}

.nz-pp-stage:last-child::before {
  bottom: auto;
  height: 22px;
}

.nz-pp-stage__num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nz-pp-stage__body h3 {
  margin: 8px 0 10px;
  font-size: 20px;
}

.nz-pp-stage__body > p {
  max-width: 72ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Stages that carry a photograph take a third column on wide screens, so the
   picture fills the right-hand white space instead of the text stretching. */
.nz-pp-stage--media {
  grid-template-columns: 56px minmax(0, 1fr) 420px;
  gap: 0 34px;
  align-items: start;
}

.nz-pp-stage--media .nz-pp-stage__body > p {
  max-width: 60ch;
}

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

@media (max-width: 1200px) {
  .nz-pp-stage--media {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 30px;
  }

  .nz-pp-stage__media {
    grid-column: 2;
    max-width: 620px;
    margin-top: 18px;
  }
}

/* The facts of a stage, in the same card grammar as the global
   .nz-terms block: white panel, thin border, green left edge. */
.nz-pp-stage__facts {
  max-width: 860px;
  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-pp-fact {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3px 22px;
  padding: 11px 0;
}

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

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

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

/* A stage may point to the page that details it, e.g. stage 07 to
   Testing & Inspection. */
.nz-pp-stage__link {
  margin: 16px 0 0;
}

@media (max-width: 640px) {
  .nz-pp-stage {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 16px;
    padding-bottom: 36px;
  }

  .nz-pp-stage::before {
    left: 19px;
  }

  .nz-pp-stage:first-child::before {
    top: 18px;
  }

  .nz-pp-stage:last-child::before {
    height: 18px;
  }

  .nz-pp-stage__num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .nz-pp-stage__body h3 {
    font-size: 18px;
  }

  .nz-pp-stage__facts {
    padding: 2px 16px;
  }

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

  .nz-pp-stage__media {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 16px;
  }
}

/* ---- The four order documents, on the brand blue ---- */
.nz-pp-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.nz-pp-docs__copy h2 {
  margin-bottom: 14px;
}

.nz-pp-docs__copy p {
  max-width: 56ch;
}

.nz-pp-docs__link {
  margin-top: 22px;
}

.nz-pp-docs__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nz-pp-docs__row {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(185, 199, 228, 0.35);
}

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

.nz-pp-docs__row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.nz-pp-docs__row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.nz-pp-docs .text-link {
  color: var(--white);
}

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

/* ---- The About-section links, restated as cards ---- */
/* White cards on the soft section: title and arrow on one line, one line of
   context underneath. The arrow slide on hover/focus comes from the shared
   motion layer (a:hover [data-nz-arrow]); the card itself only swaps its
   border to the brand blue. */
.nz-pp-more {
  margin-top: 48px;
}

.nz-pp-more__title {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 22px;
}

.nz-pp-more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nz-pp-more__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.nz-pp-more__card:hover,
.nz-pp-more__card:focus-visible {
  border-color: var(--blue);
}

.nz-pp-more__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-size: 15.5px;
  font-weight: 600;
}

.nz-pp-more__head .nz-arrow {
  color: var(--gray-text);
}

.nz-pp-more__desc {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.55;
}

