/* ============================================================================
   EMS-Trade Cooling · assets/pages-worker-10.css
   Bundle worker-10 — four sheets, all of them on the one sheet discipline the
   design language fixes (warm paper, hairlines, mono utility, plate + number):

     /blog/                                   notes index      hero H4 document-head
     /blog/seal-degradation-mechanisms/       note NB-02        hero H7 stacked plate
     /blog/iso-4406-in-practice/              note NB-03        hero H7 stacked plate
     /blog/quick-disconnect-duty-cycles/      note NB-04        hero H7 stacked plate

   NAMESPACE. check-css-conflicts counts a class defined in two stylesheets as a
   failure, so every selector in this file carries the w10- prefix. No shared
   class from site.css or design-tokens.css is redefined or extended here; the
   shared devices (.sec, .plate, .spec-table, .data-row, .flow, .cut, .matrix,
   .specimen-strip, .request-band, .list-spec, .note, .discussed) are used as
   they are, from the markup.

   GRID TRACKS. Every track that carries a plate, a drawing or a table is
   written minmax(0, 1fr). A bare 1fr has an automatic minimum, so an image
   with an intrinsic width pushes its track wider than the sheet and the page
   goes sideways. That is a measured defect on this site, not a theory.

   NO STYLE ATTRIBUTES. CSP is style-src 'self'; the interface to a component
   is a class (w10-grid4, w10-span-5, w10-fits--2), never an inline variable.

   Z-ORDER. The two overlay layers on these sheets (a plate caption over a
   mount, a topic badge over a rule) are given an explicit z-index. Under
   z-index:auto the later sibling paints on top, which is how a text band gets
   buried under a figure that comes after it in the DOM.
   ========================================================================= */

/* ------------------------------------------------------------- 1 · BANDS -- */

/* A band is one visual strip of the sheet: a header line, a row of plates, a
   table, a step row. Padding is the only thing a band owns; the rules above
   and below it belong to the framing. */
.w10-band {
  border-top: var(--hair-soft);
  padding-block: var(--sp-6);
}

.w10-band--first {
  border-top: 0;
}

.w10-band--tight {
  padding-block: var(--sp-4);
}

/* Heavier division, for the one place per sheet where the argument turns. */
.w10-band--rule {
  border-top: var(--bw-2) solid var(--ink);
  padding-top: var(--sp-5);
}

.w10-band--ink {
  border-top: var(--hair-soft);
  border-bottom: var(--hair-soft);
  background: var(--paper-2);
}

/* -------------------------------------------------- 2 · ROW AND SPANS ----- */

.w10-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-6);
  align-items: start;
}

.w10-span-3 { grid-column: span 3; }
.w10-span-4 { grid-column: span 4; }
.w10-span-5 { grid-column: span 5; }
.w10-span-6 { grid-column: span 6; }
.w10-span-7 { grid-column: span 7; }
.w10-span-8 { grid-column: span 8; }
.w10-span-9 { grid-column: span 9; }
.w10-span-12 { grid-column: span 12; }

.w10-stack {
  display: grid;
  gap: var(--sp-5);
}

/* ------------------------------------------------------------- 3 · GRIDS -- */

.w10-grid2,
.w10-grid3,
.w10-grid4 {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}

.w10-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w10-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w10-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* A grid that also reads as a ruled block: one hairline frame, the cells
   separated by the rule colour showing through a zero gap. */
.w10-grid3--ruled,
.w10-grid4--ruled {
  gap: 0;
  border: var(--hair);
  background: var(--rule);
}

.w10-grid3--ruled > *,
.w10-grid4--ruled > * {
  background: var(--raise);
  padding: var(--sp-3);
}

/* --------------------------------------------- 4 · HERO H4 DOCUMENT HEAD -- */

/* document-head · the notes index. Number, title and summary are set on the
   paper; one small plate sits in the right four columns of twelve. No
   photograph carries type on this variant. */
.w10-hero--doc {
  border-bottom: var(--hair-strong);
  padding: var(--sp-8) 0 var(--sp-7);
}

.w10-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 344px);
  gap: var(--sp-7);
  align-items: start;
}

.w10-hero--doc h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--tr-display);
  max-width: 26ch;
  margin-top: var(--sp-4);
}

.w10-hero__lede {
  margin-top: var(--sp-4);
  max-width: 66ch;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--body);
}

.w10-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: var(--hair);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
}

.w10-hero__meta b {
  color: var(--ink);
  font-weight: 500;
}

.w10-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  align-items: center;
  margin-top: var(--sp-5);
}

/* ------------------------------------------ 5 · HERO H7 STACKED PLATE ----- */

/* stacked-plate-title · the three notes. The title block sits on the paper
   and the photograph runs full width underneath it. Nothing is set on the
   photograph on this variant. */
.w10-hero__title {
  padding: var(--sp-9) 0 var(--sp-7);
}

.w10-hero__title h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--tr-display);
  max-width: 27ch;
  margin-top: var(--sp-4);
}

/* The stage is height-driven, not ratio-driven: the frame is what a band
   would be, and the photograph is cropped to it. An aspect-ratio box would
   set a 960px-tall strip at 1440 and push the whole argument off the scroll. */
.w10-stage {
  background: var(--paper-2);
  border-top: var(--hair-strong);
  border-bottom: var(--hair-strong);
}

.w10-stage__shot {
  position: relative;
  height: clamp(300px, 46vh, 560px);
  overflow: hidden;
}

.w10-stage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------- 6 · POST CARDS -- */

/* One note, as it appears on the index: cover, kicker, declared title, one
   sentence of standfirst, and the figures it turns on. */
.w10-post {
  display: grid;
  gap: var(--sp-4);
  border-top: var(--bw-2) solid var(--ink);
  padding-top: var(--sp-4);
}

.w10-post__kick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: baseline;
}

.w10-post__title {
  font-size: var(--fs-h3);
  letter-spacing: var(--tr-title);
  line-height: 1.25;
  max-width: 30ch;
}

.w10-post__title a {
  color: var(--ink);
}

.w10-post__title a:hover {
  color: var(--link);
}

.w10-post__stand {
  font-size: var(--fs-data);
  line-height: var(--lh-ui);
  color: var(--body);
  max-width: 44ch;
}

.w10-post__figs {
  border-top: var(--hair-soft);
  padding-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  line-height: 1.9;
  color: var(--muted);
}

.w10-post__figs b {
  color: var(--ink);
  font-weight: 500;
}

.w10-post__go {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
}

/* --------------------------------------------------------- 7 · TOPICS ---- */

/* Where to start, by what is on the loop. One ruled row per subject, an icon
   in the first cell, the position and the destination in the second. */
.w10-topics {
  border-top: var(--hair-strong);
}

.w10-topic {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-bottom: var(--hair-soft);
}

.w10-topic__ic {
  color: var(--link-brand);
  margin-top: 2px;
}

.w10-topic__body h3 {
  font-size: var(--fs-h4);
}

.w10-topic__body p {
  margin-top: var(--sp-2);
  font-size: var(--fs-cap);
  line-height: 1.55;
  color: var(--body);
  max-width: 82ch;
}

.w10-topic__go {
  align-self: center;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  white-space: nowrap;
}

/* --------------------------------- 8 · FIT CELLS (real parts, contained) -- */

/* Two or three supplier parts in one row, each on its own mount and fitted
   whole rather than cropped: a drawing that loses its leader lines is not a
   drawing. */
.w10-fits {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}

.w10-fits--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w10-fits--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.w10-fit__mount {
  border: var(--hair-strong);
  background: var(--raise);
  padding: var(--sp-3);
  box-shadow: var(--shadow-plate);
}

.w10-fit__mount img {
  width: 100%;
  height: auto;
}

.w10-fit__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  align-items: baseline;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: var(--hair-soft);
}

.w10-fit__meta p {
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
  max-width: 46ch;
}

/* --------------------------------------------------- 9 · SCHEDULE ROWS --- */

/* One ruled row per item: number and icon, name, the signature you can see,
   and the window or cost attached to it. Used for the eight seal mechanisms,
   the eight rating steps and the five coupling wear points. A list, never a
   paragraph. */
.w10-mech {
  border-top: var(--hair-strong);
}

.w10-mech__row {
  display: grid;
  grid-template-columns: 34px 208px minmax(0, 1fr) 168px;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) var(--sp-3);
  border-bottom: var(--hair-soft);
}

.w10-mech__row:hover {
  background: var(--link-wash);
}

.w10-mech__no {
  display: grid;
  gap: 4px;
  justify-items: start;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  color: var(--stamp);
  padding-top: 3px;
}

/* Element selector, not the shared icon class: check-css-conflicts counts a
   shared class name anywhere in a selector as a second definition of it. */
.w10-mech__no svg {
  color: var(--stamp-brand);
}

.w10-mech__name {
  font-family: var(--f-display);
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.w10-mech__sig {
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
}

.w10-mech__win {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}

/* ------------------------------------------------------ 10 · SMALL PARTS -- */

/* A declared figure set: a label line plus the numbers, never a paragraph. */
.w10-keys {
  display: grid;
  gap: var(--sp-3);
}

.w10-key {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
}

.w10-key__ic {
  color: var(--link-brand);
  margin-top: 1px;
}

.w10-key h3 {
  font-size: var(--fs-h4);
}

.w10-key p {
  margin-top: 2px;
  font-size: var(--fs-cap);
  line-height: 1.55;
  color: var(--body);
}

/* A verdict line: the sentence a reader takes away from a band. */
.w10-verdict {
  border-left: var(--bw-bar) solid var(--link-brand);
  padding: var(--sp-3) var(--sp-4);
  background: var(--link-wash);
  font-size: var(--fs-data);
  line-height: var(--lh-ui);
  color: var(--ink);
  max-width: 92ch;
}

.w10-verdict b {
  font-family: var(--f-util);
  font-weight: 500;
}

.w10-quiet {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--muted);
  max-width: 96ch;
}

/* The drawing block for the inline figures on these sheets. */
.w10-fig {
  border: var(--hair);
  background: var(--raise);
  padding: var(--sp-5);
  overflow-x: auto;
}

.w10-fig svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.w10-fig__cap {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  margin-top: var(--sp-3);
}

.w10-fig__cap p {
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
  max-width: 82ch;
}

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

@media (max-width: 1100px) {
  .w10-mech__row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .w10-mech__sig {
    grid-column: 2;
  }

  .w10-mech__win {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 1000px) {
  .w10-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .w10-span-3,
  .w10-span-4,
  .w10-span-5,
  .w10-span-6,
  .w10-span-7,
  .w10-span-8,
  .w10-span-9 {
    grid-column: span 12;
  }

  .w10-grid4,
  .w10-grid4--ruled {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .w10-band {
    padding-block: var(--sp-5);
  }

  .w10-grid2,
  .w10-grid3,
  .w10-grid4,
  .w10-grid3--ruled,
  .w10-grid4--ruled,
  .w10-fits--2,
  .w10-fits--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .w10-topic {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .w10-topic__go {
    grid-column: 2;
    justify-self: start;
  }

  .w10-stage__shot {
    height: 260px;
  }
}
