/* Technical page composition.
   The De Lank turbine hall opens the page. The introduction reads beside
   a tall photograph of the pipework. The blueprint sheet carries the
   statement as its title, with the Pelton runner drawing and the
   Trebartha turbine hall side by side beneath it: the drawing and the
   machine. The 2025 generator replacement follows on the paper as a
   dated sequence, zigzagging down the page in date order, then the
   construction photographs as one even strip, and the closing links. */

/* ------------------------------------------------------------------
   Photo band: the De Lank hall. The crop drops the bright roof so the
   machines and the big arched pipe sit on the right.
   ------------------------------------------------------------------ */

.tech-band {
  --focus: 50% 74%;
}

@media (max-width: 47.99rem) {
  .tech-band {
    --focus: 82% 70%;
  }
}

/* ------------------------------------------------------------------
   Introduction: lede and paragraphs beside the tall pipework photo
   ------------------------------------------------------------------ */

.tech-intro {
  padding-block: var(--section-m) calc(var(--section-m) + var(--space-5));
}

.tech-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-6);
}

.tech-intro__lede,
.tech-intro__prose {
  grid-column: 1 / -1;
}

.tech-intro__photo {
  grid-column: 3 / -1;
  margin-top: var(--space-5);
}

@media (min-width: 48rem) {
  .tech-intro__grid {
    grid-template-rows: auto 1fr;
    row-gap: var(--space-7);
  }

  .tech-intro__lede {
    grid-column: 1 / span 7;
    grid-row: 1;
  }

  .tech-intro__prose {
    grid-column: 1 / span 6;
    grid-row: 2;
  }

  .tech-intro__photo {
    grid-column: 8 / -1;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 0;
  }
}

@media (min-width: 64rem) {
  .tech-intro__lede {
    max-width: 36rem;
  }

  .tech-intro__prose {
    grid-column: 2 / span 5;
  }

  .tech-intro__photo {
    grid-column: 9 / -1;
    margin-top: var(--space-2);
  }
}

/* ------------------------------------------------------------------
   The blueprint sheet: the drawing large on the left; the statement and
   the photograph of the real machine beside it.
   ------------------------------------------------------------------ */

.tech-sheet {
  padding-block: calc(var(--tear-height) + var(--space-8));
}

.tech-sheet__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-7);
  align-items: center;
}

.tech-sheet__statement,
.tech-sheet__drawing,
.tech-sheet__photo {
  grid-column: 1 / -1;
}

.tech-sheet__drawing {
  max-width: 35rem;
}

@media (min-width: 48rem) {
  .tech-sheet__grid {
    row-gap: var(--space-8);
  }

  .tech-sheet__grid {
    row-gap: var(--space-7);
  }

  .tech-sheet__drawing {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .tech-sheet__statement {
    grid-column: 7 / -1;
    grid-row: 1;
    align-self: end;
  }

  .tech-sheet__photo {
    grid-column: 7 / -1;
    grid-row: 2;
    align-self: start;
  }
}

@media (min-width: 64rem) {
  .tech-sheet__drawing {
    padding-right: var(--space-6);
  }

  .tech-sheet__statement,
  .tech-sheet__photo {
    grid-column: 8 / -1;
  }
}

/* ------------------------------------------------------------------
   Generator replacement, 2025: seven dated photographs in date order,
   alternating between the left and right of the page and stepping down
   so the eye follows them as a sequence.
   ------------------------------------------------------------------ */

.tech-works {
  padding-block: var(--section-m) var(--section-s);
}

.tech-works__head {
  max-width: 40rem;
  margin-bottom: var(--space-8);
}

.tech-works__head p {
  margin-top: var(--space-4);
}

.tech-timeline {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-7);
  align-items: start;
}

.tech-timeline .timeline__item {
  grid-column: 1 / -1;
  margin-top: 0;
}

.tech-timeline__label {
  max-width: 20rem;
}

.tech-timeline .tech-timeline__item--runner,
.tech-timeline .tech-timeline__item--installed {
  grid-column: 3 / -1;
}

.tech-timeline .tech-timeline__item--pallet {
  grid-column: 1 / span 10;
}

@media (min-width: 48rem) {
  .tech-timeline {
    row-gap: var(--space-8);
  }

  .tech-timeline .tech-timeline__item--kiosk {
    grid-column: 1 / span 7;
  }

  .tech-timeline .tech-timeline__item--stands {
    grid-column: 9 / span 4;
    margin-top: var(--space-9);
  }

  .tech-timeline .tech-timeline__item--runner {
    grid-column: 2 / span 4;
  }

  .tech-timeline .tech-timeline__item--crane {
    grid-column: 7 / span 6;
    margin-top: var(--space-8);
  }

  .tech-timeline .tech-timeline__item--workshop {
    grid-column: 1 / span 6;
  }

  .tech-timeline .tech-timeline__item--pallet {
    grid-column: 8 / span 4;
    margin-top: var(--space-9);
  }

  /* The last entry closes the sequence: its date and title stand to the
     right of the photograph, on the same columns as the page grid */
  .tech-timeline .tech-timeline__item--installed {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    grid-column: 1 / -1;
  }

  .tech-timeline__item--installed .tech-timeline__label {
    grid-column: 7 / span 5;
    grid-row: 1;
    align-self: end;
    padding-bottom: var(--space-6);
  }

  .tech-timeline__item--installed .timeline__body {
    grid-column: 1 / span 6;
    grid-row: 1;
    margin-top: 0;
  }
}

@media (min-width: 64rem) {
  .tech-timeline__item--installed .tech-timeline__label {
    grid-column: 8 / span 4;
  }

  .tech-timeline__item--installed .timeline__body {
    grid-column: 2 / span 5;
  }
}

/* ------------------------------------------------------------------
   Trebartha under construction: three photographs as one strip of
   equal height, widths in proportion to each picture.
   ------------------------------------------------------------------ */

.tech-build {
  padding-block: var(--section-s) var(--section-m);
}

.tech-build__heading {
  padding-top: var(--space-7);
  border-top: var(--rule-width) solid var(--color-rule);
}

.tech-build__strip {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

@media (min-width: 48rem) {
  .tech-build__strip {
    display: flex;
    align-items: flex-start;
    gap: var(--grid-gap);
  }

  /* flex-grow follows each photograph's width-to-height ratio,
     so all three come out the same height */
  .tech-build__photo--turbine {
    flex: 1.3333 1 0;
  }

  .tech-build__photo--intake,
  .tech-build__photo--channel {
    flex: 1.7837 1 0;
  }
}

/* ------------------------------------------------------------------
   Questions about your site
   ------------------------------------------------------------------ */

.tech-next {
  padding-block: var(--section-m) var(--section-l);
  overflow: clip;
}

.tech-next__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-5);
}

.tech-next__heading,
.tech-next__body {
  grid-column: 1 / -1;
}

.tech-next__heading {
  max-width: 9em;
}

.tech-next__body p {
  max-width: var(--measure);
}

.tech-next__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-7);
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .tech-next__heading {
    grid-column: 1 / span 6;
  }

  .tech-next__body {
    grid-column: 7 / -1;
    align-self: end;
  }
}

@media (min-width: 64rem) {
  .tech-next__body {
    grid-column: 7 / span 5;
  }
}
