/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Violations — Why It Matters (Figma 2225:3399 / 2225:3303)

   Photo band = Figma's Frame 217 (1440x752) with its image fill drawn at
   w100% h125.95%, top -22.02% (values from Figma). Below lg (no Violations
   mobile frame) the band is 360x250 with the image covering it.

   Highlight strokes are vertical exports (preserveAspectRatio="none"). Each
   is drawn at its export size (W x H) and rotated -90deg about its centre:
   left = figmaLeft - (W-H)/2, top = figmaTop - (H-W)/2, relative to the
   word it underlines.
   ───────────────────────────────────────────────────────────────────────── */

.section-viol-why__photo {
  position: relative;
  aspect-ratio: 360 / 250;
  overflow: hidden;
}

.section-viol-why__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Each stroke hangs off its word (inline-block, so its box is the line box) */
.section-viol-why__word {
  position: relative;
  display: inline-block;
  isolation: isolate; /* the stroke (z -1) paints under the word's text */
}

.section-viol-why__blob {
  position: absolute;
  z-index: -1;
  max-width: none;
  pointer-events: none;
  transform: rotate(-90deg);
}

@media (width >= 64rem) {
  .section-viol-why__photo {
    aspect-ratio: 1440 / 752;
  }

  .section-viol-why__photo img {
    inset: auto;
    top: -22.02%;
    left: 0;
    width: 100%;
    height: 125.95%;
    object-fit: fill;
  }

  /* Blob 6: export 31x339, drawn 339x31 at heading x107 / y88 = 10 left of
     "community", 31 below its line top (line 2 starts at y57). Metadata
     y119; Figma's render draws it 31 higher. */
  .section-viol-why__blob--first {
    width: 1.9375rem;
    height: 21.1875rem;
    left: 9rem; /* -10 + 154 */
    top: -7.6875rem; /* 31 - 154 */
  }

  /* Blob 7: export 31x359, drawn 359x31 at heading x-13 / y144 = 13 left of
     "compliance", 30 below its line top (line 3 starts at y114). Metadata
     y175; rendered 31 higher, as Blob 6. */
  .section-viol-why__blob--second {
    width: 1.9375rem;
    height: 22.4375rem;
    left: 9.4375rem; /* -13 + 164 */
    top: -8.375rem; /* 30 - 164 */
  }
}
