/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Unit and Resident Management — Call-Out (Figma 2225:2440)

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

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

.section-urm-callout__heading {
  font-size: 1em;
  line-height: 1.1em; /* 33 */
  gap: 0.5333em; /* 16 */
}

.section-urm-callout__ribbon {
  max-width: 100%;
  padding: 0.625rem 0.9375rem; /* 10 / 15 */
}

/* ── Strike over "recreated repeatedly" ─────────────────────────────────── */
.section-urm-callout__word {
  position: relative;
  display: inline-block;
}

.section-urm-callout__strike {
  position: absolute;
  height: 0.2818em; /* 17.47 / 62 */
  container-type: size;
  pointer-events: none;
}

/* Mobile (no mobile frame): one strike per word, so a wrapped line keeps
   its strike; the desktop strike sits on the ribbon as in Figma. */
.section-urm-callout__strike--word {
  left: 0;
  top: 0.38em;
  width: 100%;
}

.section-urm-callout__strike--last {
  width: calc(100% - 0.3em); /* stops before the full stop, as in Figma */
}

.section-urm-callout__strike--ribbon {
  display: none;
}

/* Figma: Blob 10 export (11.8 x 598) in a flex box, rotated -90.54deg and
   mirrored; its size is given as hypot() of the box's cqw / cqh. */
.section-urm-callout__strike img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: hypot(0.0187cqw, 67.5439cqh);
  height: hypot(99.9813cqw, 32.4561cqh);
  max-width: none;
  transform: translate(-50%, -50%) rotate(-90.54deg) scaleX(-1);
}

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

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

.section-urm-callout__line img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

  .section-urm-callout__heading {
    line-height: 1.2097em; /* 75 */
    gap: 0.2581em; /* 16 */
    white-space: nowrap;
  }

  /* Fixed-width ribbons, text centred: 607 and 869 wide, py-10 */
  .section-urm-callout__ribbon {
    max-width: none;
    padding: 0.1613em 0;
  }

  .section-urm-callout__ribbon--first {
    width: 9.7903em; /* 607 */
  }

  .section-urm-callout__ribbon--second {
    position: relative;
    width: 14.0161em; /* 869 */
  }

  /* Strike placed on the ribbon, as in Figma */
  .section-urm-callout__strike--word {
    display: none;
  }

  .section-urm-callout__strike--ribbon {
    display: block;
    left: 25.51%; /* 221.67 / 869 */
    top: 0.6359em; /* 39.43 */
    width: 68.83%; /* 598.14 / 869 */
  }

  /* Notes area: from the second ribbon's bottom (y2015) to the underline's
     bottom (y2188.8) = 173.8 */
  .section-urm-callout__notes {
    display: block;
    height: 2.8027em;
  }

  .section-urm-callout__note {
    position: absolute;
    left: 30.5038%; /* centre 598.5 / 869, box w666.8 / 869 */
    top: 1.1936em; /* 53.7 / 45 (em of the note's own 45px type) */
    width: 76.737%;
    font-size: 0.7258em; /* 45 */
    line-height: 1.0222; /* 46 / 45 */
  }

  /* line-6: 156.7 x 16 rotated 1.5deg, centred in Figma's 157.1 x 20.1
     box at ribbon x537 / 155.7 below the ribbon, drawn with Figma's export
     inset (-1.22% -0.13% -1.53% -0.15%) */
  .section-urm-callout__line {
    position: absolute;
    left: 61.793%; /* 537 / 869 */
    top: 2.511em; /* 155.7 */
    width: 18.0373%; /* 156.74 / 869 */
    height: 0.2587em; /* 16.04 */
  }

  .section-urm-callout__line img {
    position: absolute;
    top: -1.22%;
    left: -0.15%;
    width: 100.28%;
    height: 102.75%;
    max-width: none;
  }

  /* Icon-Arrow-Up: Figma box 67x63; placed where Figma's render draws it
     (ink x907-961 / y2003-2056, matched against our render). The export is
     the upright 22x70 arrow; rotated 48deg and mirrored its bounding box is
     exactly 67x63 (22cos48 + 70sin48 = 66.7, 22sin48 + 70cos48 = 63.2). */
  .section-urm-callout__arrow {
    position: absolute;
    display: block;
    left: 70.943%; /* 616.5 / 869 */
    top: -0.2016em; /* -12.5 */
    width: 1.0806em; /* 67 */
    height: 1.0161em; /* 63 */
  }

  .section-urm-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(48deg) scaleY(-1);
  }
}
