/**
 * @file card-advocacy.css
 * Advocacy card SDC — Figma desktop 1-8248, mobile 1-7970.
 * Light card: tagline, headline, body text, CTA with chevron, image.
 * Desktop: content | image (row). Mobile: content on top, image below (stacked).
 */

.card-advocacy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  background-color: var(--card, #f2f2f2);
  border: 1px solid var(--border, rgba(2, 7, 4, 0.15));
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--card-foreground, #020704);
}

/* Desktop: row layout — content left, image right */
@media (min-width: 48rem) {
  .card-advocacy {
    flex-direction: row;
  }
}

.card-advocacy__wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center !important;
}

@media (min-width: 48rem) {
  .card-advocacy__wrapper {
    gap: 32px;
    padding: 32px;
  }
}

.card-advocacy__content-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.card-advocacy__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  color: inherit;
}

@media (min-width: 48rem) {
  .card-advocacy__text {
    gap: 16px;
  }
}

/* Tagline — Figma: DM Sans SemiBold 16px, line-height 1.5 */
.card-advocacy__tagline {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: inherit;
}

/* Headline — Figma: IBM Plex Serif Regular, Heading 4 (36px), letter-spacing -0.36px, line-height 1.3 */
.card-advocacy__headline {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-normal);
  font-size: var(--h4-size);
  line-height: 1.3;
  letter-spacing: -0.36px;
  margin: 0;
  color: inherit;
}

/* Body — Figma: DM Sans Regular 16px, line-height 1.5 */
.card-advocacy__body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-base);
  line-height: 1.5;
  margin: 0;
  color: inherit;
}

.card-advocacy__actions {
  display: flex;
  align-items: center;
  width: 100%;
}

.card-advocacy__btn {
  /* Additional classes when using button component */
}

.card-advocacy__btn--static {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  line-height: 1.5;
  color: inherit;
}

.card-advocacy__btn--static::after {
  content: "";
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Image area — mobile: fixed height; desktop: flex 1 */
.card-advocacy__media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  min-height: 0;
  height: 326px;
}

@media (min-width: 48rem) {
  .card-advocacy__media {
    flex: 1 0 0;
    height: auto;
    min-height: 200px;
  }
}

.card-advocacy__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

/* canvas:image may render a wrapper; target the img inside */
.card-advocacy__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
