/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Role Management — Call-Out (Figma 2225:3693 / 2225:3816)

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

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

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

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

/* Blob 10: 311.8 x 27.7 box starting where "centralized" starts (ribbon
   x437), 29 down the 75 line (ribbon y39 minus the 10 padding). */
.section-rm-callout__strike {
  position: absolute;
  left: 0;
  top: 0.4677em; /* 29 / 62 */
  width: 5.0283em; /* 311.76 / 62 */
  height: 0.4463em; /* 27.67 / 62 */
  pointer-events: none;
}

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

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

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

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

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

    /* 62px at 1440. Below that, sized so the note's right edge (984.5 of
       the 788 ribbon, ribbon centred) stays 18px inside the viewport:
       62 / 590.5 x (50vw - 18px). */
    font-size: min(3.875rem, calc(5.2498vw - 0.1181rem));
    gap: 0;
  }

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

  /* Notes area: from the ribbon's bottom (y1397) to the underline's
     bottom (y1582.1) = 185.1 */
  .section-rm-callout__notes {
    display: block;
    height: 2.9858em;
  }

  .section-rm-callout__note {
    position: absolute;
    left: 39.32%; /* centre 646.6 - half of 673.5, / 788 */
    top: 1.176em; /* 58.8 / 50 (em of the note's own 50px type) — unrotated box top, below the ribbon */
    width: 85.47%; /* 673.49 / 788 */
    height: 2.02em; /* 101 / 50 — Figma text box, rotated about its centre */
    font-size: 0.8065em; /* 50 */
    line-height: 0.92; /* 46 / 50 */
    text-align: left;
  }

  .section-rm-callout__line {
    position: absolute;
    left: 61.93%; /* 487.97 / 788 */
    top: 2.6113em; /* 161.9 / 62 */
    width: 27.88%; /* 219.67 / 788 */
    height: 0.3284em; /* 20.36 / 62 */
  }

  /* Icon-Arrow-Up: 67x63 box at ribbon x598, its top 18.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 "centralized". */
  .section-rm-callout__arrow {
    position: absolute;
    display: block;
    left: 75.89%; /* 598 / 788 */
    top: -0.2984em; /* -18.5 / 62 */
    width: 1.0806em; /* 67 */
    height: 1.0161em; /* 63 */
  }

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