/**
 * @file card-story.css
 * Story/article card — Figma Drupal Community NGO Theme
 * Desktop node 1:11186 (horizontal), Mobile node 1:10893 (stacked)
 *
 * Design tokens: --font-sans, --font-serif, --card-foreground, --radius
 */

.card-story {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  color: var(--card-foreground, #020704);
  font-family: var(--font-sans);
}

.card-story__image {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius, 8px);
}

.card-story__image-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-story__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 0 0;
  min-width: 0;
}

.card-story__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.card-story__info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.card-story__tag {
  display: inline-flex;
  align-items: flex-start;
  padding: 4px 10px;
  background: rgba(2, 7, 4, 0.05);
  border: 1px solid rgba(2, 7, 4, 0.15);
  border-radius: var(--radius, 8px);
  font-size: 14px;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.5;
  color: var(--card-foreground, #020704);
  font-family: var(--font-sans);
}

.card-story__read-time {
  font-size: 14px;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.5;
  color: var(--card-foreground, #020704);
  font-family: var(--font-sans);
}

.card-story__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  color: var(--card-foreground, #020704);
}

.card-story__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: var(--font-weight-normal, 400);
  line-height: 1.4;
  letter-spacing: -0.28px;
  width: 100%;
}

.card-story__description {
  margin: 0;
  font-size: 16px;
  font-weight: var(--font-weight-normal, 400);
  line-height: 1.5;
  width: 100%;
}

.card-story__actions {
  display: flex;
  flex-shrink: 0;
  display: none;
}

.card-story__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.5;
  color: var(--card-foreground, #020704);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
}

a.card-story__cta:hover {
  text-decoration: underline;
}

.card-story__cta-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-story__cta-icon svg {
  width: 100%;
  height: 100%;
}

/* Desktop (1-11186): horizontal — image 250px left, content right */
@media (min-width: 48rem) {
  .card-story {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .card-story__image {
    width: 250px;
    min-width: 250px;
    aspect-ratio: 1 / 1;
    height: 250px;
  }

  .card-story__content {
    flex: 1 0 0;
    min-height: 0;
  }
}
