/* ============================================================================
   EMS-Trade Cooling · assets/pages-worker-3.css
   Bundle worker-3, loaded after assets/site.css on this bundle's pages.
   Single authority: this file defines ONLY classes that start with ld- .
   Every other class on these pages comes from site.css and is never
   re-declared here, so check-css-conflicts sees one definition per class.

   Why a second class on a shared element: CSP is style-src 'self', so a page
   cannot pass a variable inline (style="--x:4"). A variant therefore arrives
   as a class of its own, and it is written with two of this bundle's own
   classes so it can outrank the shared rule without naming it.

   Page: /leak-detection/ (hero variant H3 plate-over-band)
   ========================================================================= */

/* ------------------------------------------------- 1 · SHEET BODY -------- */

/* The body of the sheet, between the hero plate and the request band. The
   twelve column rules come from site.css; only the vertical rhythm is set. */
.ld-flow {
  padding-block: var(--sp-8) var(--sp-9);
}

.ld-sec {
  padding-bottom: var(--sp-10);
}

.ld-sec:last-child {
  padding-bottom: var(--sp-2);
}

/* One visual band of the body. Every band of a section carries this class:
   the ruled section head, a copy band, a schedule, a figure, the line of
   figures under a table, an onward link line. Nothing here is a wrapper added
   for counting; it is the spacing between bands and the marker that says which
   band it is. */
.ld-block {
  margin-top: var(--sp-6);
}

.ld-block--tight {
  margin-top: var(--sp-5);
}

/* The first band of a section butts against the section rule above it. */
.ld-block--head {
  margin-top: 0;
}

/* ------------------------------------------------- 2 · HERO: H3 ---------- */

.ld-hero {
  padding-top: var(--sp-6);
}

/* plate-over-band: the photograph sits above and the copy band overlaps its
   lower edge. site.css insets that band by one cell so a plate can live in a
   grid column; on a hero the band runs the full width of the plate. */
.ld-hero .ld-hero__slip {
  left: 0;
  right: 0;
  padding-block: var(--sp-7) var(--sp-6);
}

.ld-hero__eyebrow {
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

.ld-hero__note {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

/* ---------------------------------------------- 3 · ON THE INK PLATE ----- */

/* The document list has to change ground on the ink plate: the shared list
   rule draws a paper-coloured rule and body-coloured text. Numbers and units
   in these half width cells are separated by a real space in the text, never
   by a margin: a margin earns no line break, and the cell then reads
   "0.1mlocating" at a narrow width. */
.ld-docs {
  margin-top: var(--sp-4);
  border-top: 0;
}

.ld-docs li {
  color: var(--on-plate);
  border-bottom: var(--hair-plate);
}

.ld-docs li::before {
  background: var(--link-brand);
}

.ld-docs b {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--on-plate-2);
}

/* ------------------------------------------------- 4 · REQUEST SECTION --- */

.ld-cta {
  border-top: var(--hair-strong);
}

/* ================================================= 5 · HERO H2 ----------
   split-copy-plate: copy left, plate right, the column edge cut hard and
   closed with one hairline. Used by /leak-detection/locating-rope/.

   The plate column is 7/12 and the copy column 5/12, so the split falls on
   the sheet's own twelve-column grid rather than on a half. Both tracks are
   minmax(0, …) — a bare fr track takes its minimum from the content, and a
   photograph inside it is content with a real width. */

.ld-hero2 {
  padding-top: var(--sp-6);
}

.ld-hero2__split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: 2px solid var(--ink);
  border-bottom: var(--hair);
}

.ld-hero2__copy {
  padding: var(--sp-6) var(--sp-6) var(--sp-7) 0;
  border-right: var(--hair-strong);
}

.ld-hero2__eyebrow {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--stamp);
}

.ld-hero2__note {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ld-hero2__plate {
  border: 0;
  background: var(--paper-2);
}

/* ================================================= 6 · HERO H5 ----------
   specimen-index: a row of specimen cells, the title pressed on the left of
   the row. Used by /leak-detection/point-sensors/.

   Every cell in the row carries the same 1:1 asset, which is what the shared
   grid rule asks for; the row is therefore a specimen strip, not a montage.
   The title band is absolutely positioned over the row and carries an
   explicit z-index: without it the later cells of the same row paint over it,
   because at equal z-index the later sibling wins. */

.ld-hero5 {
  padding-top: var(--sp-6);
}

.ld-hero5__strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: var(--hair-strong);
  background: var(--rule);
}

.ld-hero5__cell {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.ld-hero5__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-hero5__title {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(100%, 620px);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background-color: var(--scrim);
  background-image: linear-gradient(180deg, var(--scrim) 0%, var(--scrim-deep) 100%);
  color: var(--on-scrim);
}

.ld-hero5__note {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

/* The title band is this block's own ground, so it re-derives the two
   band colours instead of borrowing the shared band rules. Written against
   this bundle's classes only: a selector naming a class of the shared sheet
   would be a second definition of that class. */
.ld-hero5__title h1 {
  color: var(--on-scrim);
  text-shadow: var(--shadow-text);
}

.ld-hero5__lede {
  margin-top: var(--sp-3);
  max-width: 44ch;
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

.ld-hero5__act {
  margin-top: var(--sp-5);
}

/* ================================================= 7 · HERO H7 ----------
   stacked-plate-title: the title block sits above the plate and the plate
   runs the full width below it. No photograph is overdrawn on this page's
   hero, so nothing here depends on a scrim. Used by
   /leak-detection/accessories/. */

.ld-hero7 {
  padding-top: var(--sp-6);
}

.ld-hero7__head {
  border-top: 2px solid var(--ink);
  padding: var(--sp-4) 0 var(--sp-5);
}

.ld-hero7__eyebrow {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--stamp);
}

.ld-hero7__note {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ================================================= 8 · IMAGE GRIDS -----
   Three image grids, one per count. All three tracks are minmax(0, 1fr):
   written as a bare 1fr the track minimum is auto, which is the item's
   content minimum, and a photograph in the cell then pushes the track wider
   than the page. Every cell also sets min-width: 0 for the same reason. */

.ld-pair,
.ld-trio,
.ld-quad {
  display: grid;
  gap: 1px;
  border: var(--hair);
  background: var(--rule);
}

.ld-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ld-quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ld-pair > *,
.ld-trio > *,
.ld-quad > * {
  min-width: 0;
  background: var(--raise);
  padding: var(--sp-3);
}

/* ================================================= 9 · WIDE PLATE ------
   The 21:9 crop the two overlay pages ask for is drawn as a height-driven
   box, not as an aspect-ratio: the ratio whitelist for this sheet is
   3/2 · 2/3 · 1/1 · 3/4, and a 21/9 box would break it. The declared
   width/height on the <img> stays the asset's own 3:2. */

.ld-wide {
  height: clamp(200px, 28vh, 320px);
  overflow: hidden;
  background: var(--paper-2);
}

.ld-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================= 10 · MATRIX MARKS ----
   A compatibility matrix has to show a third state, so the cell is a word
   rather than a glyph: three text marks in the utility face, which stays
   legible in a 32px row and reads out in a screen reader without an
   aria-label bolted onto a decoration. No symbol font, no emoji range. */

.ld-mark {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ld-mark--yes {
  color: var(--link);
}

.ld-mark--care {
  color: var(--muted);
}

.ld-mark--no {
  color: var(--stamp);
}

/* ================================================= 11 · RECESSED BAND -- */

.ld-alt {
  background: var(--paper-2);
  border-top: var(--hair);
  border-bottom: var(--hair);
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}

/* ------------------------------------------------- 11 · RESPONSIVE ------- */

@media (max-width: 900px) {
  .ld-sec {
    padding-bottom: var(--sp-9);
  }

  .ld-hero2__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-hero2__copy {
    padding: var(--sp-5) 0 var(--sp-5);
    border-right: 0;
    border-bottom: var(--hair-strong);
  }

  .ld-hero5__strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-trio,
  .ld-quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ld-hero .ld-hero__slip {
    padding-block: var(--sp-5) var(--sp-4);
  }

  .ld-sec {
    padding-bottom: var(--sp-7);
  }

  .ld-flow {
    padding-block: var(--sp-6) var(--sp-7);
  }

  .ld-hero2__copy {
    padding: var(--sp-4) 0;
  }

  .ld-wide {
    height: 200px;
  }

  .ld-alt {
    padding: var(--sp-4) var(--sp-4) var(--sp-5);
  }
}

@media (max-width: 720px) {
  .ld-hero .ld-hero__slip {
    padding-block: var(--sp-5) var(--sp-4);
  }

  .ld-sec {
    padding-bottom: var(--sp-7);
  }

  .ld-flow {
    padding-block: var(--sp-6) var(--sp-7);
  }
}
