/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Web Portal and Mobile Application — Call-Out (Figma 2225:3533 / 2225:3583)

   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 62px, ribbon w1143. Values are Figma px / 62.
   Mobile base (Connections mobile spec): ribbon type 30px, ribbon w324.
   ───────────────────────────────────────────────────────────────────────── */

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

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

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

/* Blob 10: 342.5 x 29 box starting where "fragmented" starts (ribbon
   x774.5), 24 down the 75 line (ribbon y34 minus the 10 padding). */
.section-wpm-callout__strike {
  position: absolute;
  left: 0;
  top: 0.3871em; /* 24 / 62 */
  width: 5.5235em; /* 342.46 / 62 */
  height: 0.4673em; /* 28.98 / 62 */
  pointer-events: none;
}

/* Vertical export (preserveAspectRatio="none") drawn at its own size,
   centred, then rotated and mirrored exactly as Figma does. */
.section-wpm-callout__strike img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.2332em; /* 14.46 / 62 */
  height: 5.5187em; /* 342.16 / 62 */
  max-width: none;
  transform: translate(-50%, -50%) rotate(-92.43deg) scaleX(-1);
}

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

.section-wpm-callout__note {
  margin: 0;
  font-size: 0.5437em; /* 16.31 — Connections mobile note size */

  /* This note wraps to two lines on mobile (Connections' notes are one
     line each), so it keeps Figma's desktop ratio 46/50 — at 13.16/16.31
     the two Rock Salt lines overlap. */
  line-height: 0.92;
  text-align: center;
  transform: rotate(1.5deg);
}

.section-wpm-callout__line {
  width: 35%;
  height: auto;
  transform: rotate(1.5deg);
}

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

/* ── Desktop ────────────────────────────────────────────────────────────── */
@media (width >= 64rem) {
  .section-wpm-callout__group {
    width: max-content;

    /* 62px at 1440. Below that, sized so the single-line ribbon (1143 =
       18.435em) stays 18px inside the viewport: (100vw - 36px) / 18.435. */
    font-size: min(3.875rem, calc(5.4245vw - 0.1221rem));
    gap: 0;
  }

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

  /* Notes area: from the ribbon's bottom (y1825) to the underline's
     bottom (y1991.4) = 166.4 */
  .section-wpm-callout__notes {
    display: block;
    height: 2.6837em;
  }

  .section-wpm-callout__note {
    position: absolute;
    left: 34.52%; /* centre 722.2 - half of 655.2, / 1143 */
    top: 0.8302em; /* 41.5 / 50 (em of the note's own 50px type) — unrotated box top, below the ribbon */
    width: 57.33%; /* 655.22 / 1143 */
    height: 1.6222em; /* 81.11 / 50 — Figma text box, rotated about its centre */
    font-size: 0.8065em; /* 50 */
    line-height: 0.92; /* 46 / 50 */
    text-align: center;
  }

  .section-wpm-callout__line {
    position: absolute;
    left: 49.89%; /* 570.28 / 1143 */
    top: 2.309em; /* 143.16 / 62 */
    width: 19.22%; /* 219.67 / 1143 */
    height: 0.3284em; /* 20.36 / 62 */
  }

  /* Icon-Arrow-Up: 67x63 box at ribbon x914.5, its top 19.5 above the
     ribbon's bottom (matched to Figma's render). The export is the upright
     22x70 arrow; rotated 42deg and mirrored it fills that box, head up and
     right, pointing at "fragmented". */
  .section-wpm-callout__arrow {
    position: absolute;
    display: block;
    left: 80.01%; /* 914.5 / 1143 */
    top: -0.3145em; /* -19.5 / 62 */
    width: 1.0806em; /* 67 */
    height: 1.0161em; /* 63 */
  }

  .section-wpm-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);
  }
}
