.blog-card__engagement {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.15rem 0 0.2rem;
  color: var(--color-muted, #766f66);
}

.blog-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
}

.blog-card__metric svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-card__like {
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-card__like:hover {
  color: var(--color-sage, #557469);
  transform: translateY(-1px);
}

.blog-card__like.is-liked {
  color: var(--color-sage, #557469);
}

.blog-card__like.is-liked svg {
  fill: currentColor;
}

/* Article engagement block */

.article-engagement {
  margin: clamp(2.4rem, 6vw, 4.5rem) 0;
  padding: clamp(1.65rem, 4vw, 3rem);
  border: 1px solid rgba(91, 82, 72, 0.16);
  border-radius: clamp(1.4rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.8), transparent 38%),
    linear-gradient(135deg, rgba(250, 247, 241, 0.96), rgba(244, 238, 229, 0.88));
  box-shadow: 0 24px 70px rgba(48, 40, 32, 0.07);
}

.article-engagement__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.article-engagement__metric,
.article-engagement__like {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--color-ink, #26231f);
  font-family: var(--font-sans, "DM Sans", sans-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1;
}

.article-engagement__metric svg,
.article-engagement__like svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-engagement__like {
  min-width: 6.4rem;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border: 1px solid rgba(91, 82, 72, 0.16);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.62);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.article-engagement__like:hover {
  color: var(--color-sage, #557469);
  border-color: rgba(85, 116, 105, 0.35);
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 14px 34px rgba(48, 40, 32, 0.08);
  transform: translateY(-1px);
}

.article-engagement__like.is-liked {
  color: var(--color-sage, #557469);
}

.article-engagement__like.is-liked svg {
  fill: currentColor;
}

.article-engagement__divider {
  height: 1px;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0;
  background: rgba(91, 82, 72, 0.18);
}

.article-engagement__title {
  margin: 0 0 clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-ink, #26231f);
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.05;
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.6rem, 4vw, 3rem);
  flex-wrap: nowrap;
}

.article-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.4rem, 4vw, 3.15rem);
  height: clamp(2.4rem, 4vw, 3.15rem);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #3f3932;
  opacity: 0.9;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
}

.article-share__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.article-share__icon:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 14px rgba(48, 40, 32, 0.12));
}

.article-share__icon:focus-visible,
.article-engagement__like:focus-visible,
.blog-card__like:focus-visible {
  outline: 2px solid rgba(85, 116, 105, 0.55);
  outline-offset: 4px;
}

.article-share__icon--telegram { color: #2AABEE; }
.article-share__icon--facebook { color: #1877F2; }
.article-share__icon--linkedin { color: #0A66C2; }
.article-share__icon--whatsapp { color: #2E7D4F; }
.article-share__icon--copy { color: #4B453E; }


.article-share__icon--copy svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-share__status {
  min-height: 1.2rem;
  margin: 1rem 0 0;
  color: var(--color-muted, #766f66);
  font-family: var(--font-sans, "DM Sans", sans-serif);
  font-size: 0.92rem;
}

/* Mobile */

@media (max-width: 700px) {
  .article-engagement {
    padding: 1.55rem;
    border-radius: 1.35rem;
  }

  .article-engagement__metric svg,
  .article-engagement__like svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .article-engagement__like {
    min-width: 5.4rem;
    padding: 0.75rem 1rem;
  }

  .article-share {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    row-gap: 1.5rem;
    column-gap: 1.25rem;
  }

  .article-share__icon {
    width: 2.55rem;
    height: 2.55rem;
  }
}

@media (max-width: 420px) {
  .article-share {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .article-share__icon {
    width: 2.35rem;
    height: 2.35rem;
  }
}

/* -------------------------------------------------
   Compatibility fix for blog card counters/likes
   Supports both old .blog-engagement__* and new .blog-card__* class names
   ------------------------------------------------- */
.blog-card__engagement,
.blog-engagement {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.15rem 0 0.2rem;
  color: var(--color-muted, #766f66);
}

.blog-card__metric,
.blog-engagement__metric,
.blog-card__like,
.blog-engagement__like {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
}

.blog-card__metric svg,
.blog-engagement__metric svg,
.blog-card__like svg,
.blog-engagement__like svg,
.blog-engagement__heart {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-card__like,
.blog-engagement__like {
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-card__like:hover,
.blog-engagement__like:hover {
  color: var(--color-sage, #557469);
  transform: translateY(-1px);
}

.blog-card__like.is-liked,
.blog-engagement__like.is-liked {
  color: var(--color-sage, #557469);
}

.blog-card__like.is-liked svg,
.blog-engagement__like.is-liked svg,
.blog-engagement__like.is-liked .blog-engagement__heart {
  fill: currentColor;
}

.blog-card__like:disabled,
.blog-engagement__like:disabled,
.article-engagement__like:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* If only 3 share buttons are visible, keep them nicely aligned */
.article-share {
  justify-content: flex-start;
}

@media (max-width: 700px) {
  .article-share {
    grid-template-columns: repeat(auto-fit, minmax(2.55rem, max-content));
    justify-content: start;
  }
}
