/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Messaging — Call-Out (Figma 2225:3021)

   Everything inside the group is sized from the ribbon's font size (1em):
   x positions are % of the ribbon width, y offsets and sizes are em.
   Desktop base: ribbon type 60px, ribbon w1281. Values are Figma px / 60.
   Mobile base (Connections mobile spec): ribbon type 30px, ribbon w324.
   ───────────────────────────────────────────────────────────────────────── */

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

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

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

/* Blob 10: 272 x 26 box at ribbon x978.5 — 7px left of where "scattered"
   starts (measured) — and 23.6 down the 75 line. */
.section-msg-callout__strike {
  position: absolute;
  left: -0.1167em; /* -7 / 60 */
  top: 0.3933em; /* 23.6 / 60 */
  width: 4.5333em; /* 272 / 60 */
  height: 0.4333em; /* 26 / 60 */
  container-type: size;
  pointer-events: none;
}

.section-msg-callout__strike img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100cqh;
  height: 100cqw;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-92.43deg) scaleX(-1);
}

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

.section-msg-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-msg-callout__line {
  width: 35%;
  height: auto;
  transform: rotate(1.5deg);
}

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

/* ── Desktop ────────────────────────────────────────────────────────────── */
@media (width >= 64rem) {
  .section-msg-callout__group {
    width: max-content;
    font-size: min(3.75rem, 4.1667vw); /* 60 at 1440 */
    gap: 0;
  }

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

  /* Notes area: from the ribbon's bottom (y95) to the underline's bottom
     (y261.8) = 166.8 */
  .section-msg-callout__notes {
    display: block;
    height: 2.78em;
  }

  .section-msg-callout__note {
    position: absolute;
    left: calc(66.12% - 24.46%); /* centre 847 / 1281, box w626.7 / 1281 */
    top: 0.7493em; /* rotated box: Figma bbox top 126.46 + 13.5 below the ribbon top, minus the ribbon (95) */
    width: 48.92%;
    font-size: 0.8333em; /* 50 */
    line-height: 0.92; /* 46 / 50 */
  }

  .section-msg-callout__line {
    position: absolute;
    left: 53.03%; /* 679.3 / 1281 */
    top: 2.39em; /* Figma bbox top 235.69 - 95, plus the rotated box's 8.7 */
    width: 17.18%; /* 220.1 / 1281 */
    height: 0.3393em; /* 20.36 */
  }

  /* Icon-Arrow-Up: Figma box 67x63 at ribbon x1081.5 / y129.8 (34.8 below
     the ribbon). The export is the upright 22x70 arrow; rotated 42deg and mirrored (head
     up and right, pointing at "scattered") it fills that box. Vertical position
     matched to Figma's render, which draws it ~50px above the layer box. */
  .section-msg-callout__arrow {
    position: absolute;
    display: block;
    left: 84.43%; /* 1081.5 / 1281 */
    top: -0.25em; /* matched to Figma's render: the arrow tip sits just under "scattered" */
    width: 1.1167em; /* 67 */
    height: 1.05em; /* 63 */
  }

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