/* Identical, complete reference titles with deliberate two-line breaks. */
.im-card.reference-card { container-type: inline-size; }
.im-card.reference-card .reference-card-title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 1.2rem;
  font-size: clamp(1rem, 5.35cqi, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}
.reference-title-line { display: block; }
/* The toggle keeps its top-right position; the title can use the full width below it. */
.reference-weave .im-card.reference-card .im-card__head { padding-right: var(--card-padding); }
.reference-weave .im-card.reference-card .project-type { max-width: calc(100% - 3.25rem); }
@container (max-width: 320px) {
  .im-card.reference-card .im-card__head,
  .reference-weave .im-card.reference-card .im-card__head { padding-inline: .75rem; }
}
@container (max-width: 280px) {
  .im-card.reference-card .im-card__head,
  .reference-weave .im-card.reference-card .im-card__head { padding-inline: .5rem; }
}
