/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Violations — Call-Out (Figma 2225:3312 / arrow 2225:3398)

   Everything inside the group is sized from the ribbon font size (1em).
   Desktop base: ribbon type 62px; the group is the ribbon's box (1057
   wide) and 270.56 tall (to the underline's bottom). Sizes are Figma px /
   62; note / line / arrow positions are % of that 1057 x 270.56 group.
   Mobile base (Connections mobile spec): ribbon type 30px, ribbon w324.
   ───────────────────────────────────────────────────────────────────────── */

.section-viol-callout__group {
  width: 20.25rem; /* 324 */
  max-width: 100%;
  font-size: 1.875rem; /* 30 */
  gap: 0.7333em; /* 22 */
}

.section-viol-callout__ribbon {
  padding: 0.625rem 0.9375rem; /* 10 / 15 */
}

.section-viol-callout__ribbon h2 {
  margin: 0;
  font-size: 1em;
  line-height: 1.1em; /* 33 */
}

/* ── Strike over "manual." ──────────────────────────────────────────────── */
.section-viol-callout__word {
  position: relative;
  display: inline-block;
}

/* Blob 10: 247.75 x 24.95 at ribbon x797 / y41.5 — 31.5 below the line box
   top; left offset measured from where "manual." starts. The SVG is a
   vertical export (preserveAspectRatio="none"); Figma draws it in a size
   container, rotated -92.43deg and mirrored, at these hypot() sizes. */
.section-viol-callout__strike {
  position: absolute;
  left: -0.2823em; /* -17.5: Blob 10 starts 17.5 before the measured "manual." */
  top: 0.5081em;
  width: 3.996em;
  height: 0.4024em;
  container-type: size;
  pointer-events: none;
}

.section-viol-callout__strike img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: hypot(0.2479cqw, 57.8996cqh);
  height: hypot(99.7521cqw, 42.1004cqh);
  max-width: none;
  transform: translate(-50%, -50%) rotate(-92.43deg) scaleX(-1);
}

/* ── Note + underline (mobile: centred under the ribbon) ────────────────── */
.section-viol-callout__notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
}

.section-viol-callout__note {
  margin: 0;
  font-size: 0.5437em; /* 16.31 — Connections mobile note size */
  line-height: 0.8069;
  text-align: center;
  transform: rotate(1.5deg);
}

.section-viol-callout__line {
  width: 2.4em;
  height: auto;
  transform: rotate(1.5deg);
}

/* Arrow: shown with the desktop composition only (no mobile frame to place it) */
.section-viol-callout__arrow {
  display: none;
}

/* ── Desktop ────────────────────────────────────────────────────────────── */
@media (width >= 64rem) {
  .section-viol-callout__group {
    width: 17.0484em; /* 1057 */
    max-width: none;
    height: 4.3639em; /* 270.56 */
    font-size: min(3.875rem, 4.3056vw); /* 62 at 1440 */
    gap: 0;
  }

  .section-viol-callout__ribbon {
    padding: 0.1613em 0.2419em; /* 10 / 15 */
  }

  .section-viol-callout__ribbon h2 {
    line-height: 1.2097em; /* 75 */
    white-space: nowrap;
  }

  .section-viol-callout__notes {
    position: absolute;
    inset: 0;
    display: block;
  }

  /* Text box 622.44 x 102.78 at x520.35 / y144.59, rotated 1.5deg about its centre */
  .section-viol-callout__note {
    position: absolute;
    left: 49.229%;
    top: 53.441%;
    width: 58.888%;
    font-size: 0.8065em; /* 50 */
    line-height: 0.92; /* 46 / 50 */
    text-align: left;
  }

  /* line-6: 220.13 x 20.81 at x757.23 / y247.14, rotated 1.5deg */
  .section-viol-callout__line {
    position: absolute;
    left: 71.64%;
    top: 91.343%;
    width: 20.826%;
    height: 7.691%;
  }

  /* Icon-Arrow-Up: Figma box 67x63 at x887.5 / y133.84. The export is the
     upright 22x70 arrow; rotated 42deg and mirrored it fills that box.
     Vertical position matched to Figma's render, which draws it 47px above
     the layer box (tip just under "manual."). */
  .section-viol-callout__arrow {
    position: absolute;
    display: block;
    left: 83.964%;
    top: 32.097%; /* (133.84 - 47) / 270.56 */
    width: 6.339%;
    height: 23.285%;
  }

  .section-viol-callout__arrow img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.3548em; /* 22 */
    height: 1.129em; /* 70 */
    max-width: none;
    transform: translate(-50%, -50%) rotate(42deg) scaleY(-1);
  }
}
