/* Pinch of Health — Internal Link Card ("poh-related-card")
   Colors are CSS variables so they can be overridden from
   Settings > Related Card without editing this file. */

.poh-related-card {
  display: flex;
  gap: 24px;
  background: var(--poh-related-bg, #f9f2f6);
  border-left: 4px solid var(--poh-related-accent, #622840);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  align-items: stretch;
}

.poh-related-card-thumb {
  flex: 0 0 var(--poh-related-thumb-width, 200px);
}

.poh-related-card-thumb a {
  display: block;
  aspect-ratio: var(--poh-related-thumb-aspect, 3 / 4);
  border-radius: 12px;
  overflow: hidden;
}

.poh-related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poh-related-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.poh-related-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--poh-related-accent, #622840);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.poh-related-card-title {
  margin: 0 0 10px;
  font-size: var(--poh-related-title-size, 22px);
  line-height: 1.3;
  font-weight: 700;
}

.poh-related-card-title a {
  color: var(--poh-related-accent, #622840);
  text-decoration: none;
}

.poh-related-card-title a:hover {
  text-decoration: underline;
}

.poh-related-card-desc {
  margin: 0;
  color: var(--poh-related-desc, #7B455C);
  font-size: var(--poh-related-desc-size, 15px);
  line-height: 1.5;
  flex: 1;
}

.poh-related-card-cta {
  align-self: flex-end;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--poh-related-accent, #622840);
  border: 2px solid var(--poh-related-accent, #622840);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: var(--poh-related-cta-size, 15px);
  text-decoration: none;
  transition: background 0.2s ease;
}

.poh-related-card-cta:hover {
  background: var(--poh-related-hover, #f2e6ec);
}

@media (max-width: 600px) {
  .poh-related-card {
    flex-direction: column;
  }

  .poh-related-card-thumb {
    flex: none;
    width: 100%;
  }

  .poh-related-card-thumb a {
    aspect-ratio: 16 / 9;
  }

  .poh-related-card-cta {
    align-self: stretch;
    justify-content: center;
  }
}
