/* Danbe Dental - dental-lab.html only (wave F, variant L).
   Loaded AFTER tokens.css, site.css and interior.css, on this page alone.

   Two precedents, executed as measured:
     humphries-int/07-doctor-bio-card  the story paper-card (portrait split,
       full-measure paragraph, full-width media)
     humphries-int/06-procedure-rows   the leaflet rows (photo left, serif term
       and paragraph right, hairline separated, never alternating)

   Every deviation is named with its class in v2-specs/pages/dental-lab-spec.md.
   Nothing here restyles anything site.css or interior.css owns: the sheet, the
   well, the canvas, the pill and the back row are all chassis, used as shipped. */

:root {
  /* precedent 07: portrait 400x533, fixed px at every desktop viewport */
  --lab-portrait-w: 400px;
  /* the gap that the precedent's 1060 card leaves between portrait and text
     (1060 card, 400 + 500 columns); ours lands the same rhythm in a 1000 inner */
  --lab-split-gap: 60px;
  /* precedent 07: the full-measure paragraph and the bottom media sit 30-40px
     below what precedes them */
  --lab-block-gap: 40px;
  --lab-media-gap: 30px;
  /* precedent 06: ~384px row pitch = photo height + padding above and below */
  --lab-row-pad: 46px;
}

/* ---------------------------------------------------------------------------
   BANDS. Both sections ride the homepage canvas mechanism (.canvas + .band);
   this only sets the vertical band rhythm the rest of the site uses.
   --------------------------------------------------------------------------- */
.lab-story { padding: var(--band-pad) 0 0; }
.lab-rows  { padding: 0 0 var(--band-pad); }

/* ---------------------------------------------------------------------------
   THE STORY CARD : humphries-int/07
   One tall paper sheet: portrait beside a personal, specific text, then a
   full-measure paragraph, then a full-width photograph. The sheet itself is the
   chassis .int-sheet (white, --shadow-plate, square).
   --------------------------------------------------------------------------- */
.lab-split {
  display: flex; flex-flow: row nowrap; align-items: flex-start;
  gap: var(--lab-split-gap);
}
.lab-portrait {
  flex: none; width: var(--lab-portrait-w);
}
.lab-portrait img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
}
.lab-copy { min-width: 0; flex: 1 1 auto; }

.lab-copy h2 {
  margin: 0;
  font-size: var(--size-slab-title); line-height: var(--lh-slab-title);
  color: var(--ink);
}
/* class C1: the precedent carries the name in its H3 and has no sub-line slot */
.lab-cred {
  margin: 6px 0 0;
  font-size: var(--size-body); line-height: var(--lh-body);
  font-weight: 700; color: var(--muted-ink);
}
.lab-copy p.lab-p {
  margin: 20px 0 0;
  font-size: var(--size-body); line-height: var(--lh-body);
  color: var(--muted-ink);
}
/* the full-measure paragraph below the split (precedent: 1030 of the 1060 card) */
.lab-full {
  margin: var(--lab-block-gap) 0 0;
  font-size: var(--size-body); line-height: var(--lh-body);
  color: var(--muted-ink);
}
.lab-media {
  margin: var(--lab-media-gap) 0 0;
}
.lab-media img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
}

/* ---------------------------------------------------------------------------
   LEAFLET ROWS : humphries-int/06
   Mechanism kept exactly: a 50/50 column pair inside the fixed content column,
   20px gap, photo always left, no radius, house shadow, hairline separators,
   no per-row CTA.
   --------------------------------------------------------------------------- */
/* precedent 06 opens with a statement heading above the rows, full measure,
   same display size as the card heading (Overlock SC 32/700 there) */
.lab-rows-head {
  margin: 0 0 var(--lab-block-gap);
  font-size: var(--size-slab-title); line-height: var(--lh-slab-title);
  color: var(--ink);
}

.lab-row {
  display: flex; flex-flow: row nowrap; align-items: flex-start;
  gap: var(--split-gap);                    /* 20px, the site's own split gap */
  padding: var(--lab-row-pad) 0;
}
.lab-rows-head + .lab-row { padding-top: 0; }
.lab-row + .lab-row { border-top: 1px solid var(--hairline); }

.lab-row > * { width: calc(50% - (var(--split-gap) / 2)); min-width: 0; }

.lab-row figure { margin: 0; }
.lab-row img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  box-shadow: var(--shadow-plate);
}
.lab-row h3 {
  margin: 0;
  font-size: 25px; line-height: 32px;       /* precedent H4 25px/700, ls 0.5 */
  color: var(--ink);
}
.lab-row p {
  margin: 12px 0 0;
  font-size: var(--size-body); line-height: var(--lh-body);
  color: var(--muted-ink);
}

/* the back row is chassis (.int-backrow + .pill); it only needs its own space */
.lab-back { margin-top: var(--lab-block-gap); }

/* ---------------------------------------------------------------------------
   TABLET : the precedent stacks its split at 1119px; the chassis tier nearest
   that is 1023 (interior.css already turns the prefooter there). Photo first,
   DOM order, exactly as the precedent's own stack rule.
   --------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .lab-split { flex-flow: column nowrap; gap: var(--lab-media-gap); }
  .lab-portrait { width: 100%; max-width: 420px; }
  .lab-row { flex-flow: column nowrap; gap: 18px; }
  .lab-row > * { width: 100%; }
}

/* ---------------------------------------------------------------------------
   PHONE : house mobile law. Restructure, never rescale. Nothing is deleted:
   both photographs, all three rows, the hairlines and the pill survive.
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .lab-portrait { max-width: none; }
  .lab-row { padding: 32px 0; }
  .lab-copy p.lab-p { margin-top: 16px; }
}
