/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Connections — Call-Out (Figma 2225:4253 / mobile 2282:4034)

   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, so the
   notes and strikes stay locked to the ribbon at every width.

   Desktop base: ribbon type 62px, ribbon w1150. Values are Figma px / 62.
   Mobile base:  ribbon type 30px, ribbon w324.  Values are Figma px / 30.
   ───────────────────────────────────────────────────────────────────────── */

.section-conn-callout__group {
  width: 20.25rem; /* 324 */
  max-width: 100%;
  font-size: 1.875rem; /* 30 — the em base for everything below */
  gap: 0.7333em; /* 22 */
}

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

/* ── Strikes ────────────────────────────────────────────────────────────── */
.section-conn-callout__word {
  position: relative;
  display: inline-block;
}

.section-conn-callout__strike {
  position: absolute;
  container-type: size;
  pointer-events: none;
}

/* The SVGs are vertical exports (preserveAspectRatio="none"). Draw them at
   the container's height x width, centred, then rotate onto the word. */
.section-conn-callout__strike img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100cqh;
  height: 100cqw;
  max-width: none;
}

/* "can": Blob 10, 123.9 x 19.7 over a 62px word, top 39.5 of the 75 line */
.section-conn-callout__word--can .section-conn-callout__strike {
  left: -0.2em;
  width: 1.9985em;
  top: 0.6371em;
  height: 0.3175em;
}

.section-conn-callout__word--can .section-conn-callout__strike img {
  transform: translate(-50%, -50%) rotate(-92.43deg) scaleX(-1);
}

/* "specific": Blob 11, 228.8 x 13.6, top 34.8 of the 75 line */
.section-conn-callout__word--specific .section-conn-callout__strike {
  left: -0.05em;
  width: 3.6908em;
  top: 0.5613em;
  height: 0.2188em;
}

.section-conn-callout__word--specific .section-conn-callout__strike img {
  transform: translate(-50%, -50%) rotate(-90deg) scaleX(-1);
}

/* ── Notes (mobile base: Rock Salt 16.31/13.16, row h38) ────────────────── */
.section-conn-callout__notes {
  height: 1.2667em; /* 38 */
}

.section-conn-callout__note {
  position: absolute;
  margin: 0;
  font-size: 0.5437em; /* 16.31 */
  line-height: 0.8069; /* 13.16 / 16.31 */
  white-space: nowrap;
}

.section-conn-callout__note--forced {
  left: 0;
  top: 0.307em; /* 5 / 16.31 */
  transform: rotate(1.64deg);
}

.section-conn-callout__note--company {
  left: 45.33%; /* 146.87 / 324 */
  top: 0.152em;
  width: 35.04%; /* 113.54 / 324 — text is centred in this box */
  text-align: center;
  transform: rotate(1.49deg);
}

.section-conn-callout__note--only {
  left: 82.77%; /* 268.16 / 324 */
  top: 0;
  transform: rotate(11.58deg);
}

.section-conn-callout__line {
  position: absolute;
  left: 11.21%; /* 36.32 / 324 */
  top: 0.7767em; /* 23.3 / 30 */
  width: 19.4%; /* 62.85 / 324 */
  height: 0.1941em; /* 5.82 / 30 */
  max-width: none;
  transform: rotate(-2.72deg);
}

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

    /* Figma's ribbon spans x158-1308, i.e. 13px right of centre */
    left: 0.2097em; /* 13 / 62 */

    /* 62px at 1440; scales down with the viewport so the single-line ribbon
       never outgrows the screen (≈44px at 1024). */
    font-size: min(3.875rem, 4.3vw);
    gap: 0.4355em; /* 27 */
  }

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

  .section-conn-callout__notes {
    height: 2.4282em; /* 150.55 */
  }

  .section-conn-callout__note {
    font-size: 0.8065em; /* 50 */
    line-height: 0.92; /* 46 / 50 */
  }

  .section-conn-callout__note--forced {
    left: 6.745%; /* 77.57 / 1150 */
    top: 0.3506em; /* 17.53 / 50 */
  }

  .section-conn-callout__note--company {
    left: 49.79%; /* 572.58 / 1150 */
    top: 0.66em; /* 33 / 50 */
    width: 34.51%; /* 396.84 / 1150 */
  }

  .section-conn-callout__note--only {
    left: 88.17%; /* 1014 / 1150 */
    top: 0.28em; /* rotated 11.58deg: box top in Figma is 14px below the glyphs' top */
  }

  .section-conn-callout__line {
    left: 17.78%; /* 204.5 / 1150 */
    top: 1.3129em; /* 81.4 / 62 */
    width: 19.1%; /* 219.67 / 1150 */
    height: 0.3283em; /* 20.36 / 62 */
  }
}
