.post .post-options {
  position: relative;
  margin: 4rem 0 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.4rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.post-options__share-group,
.post-options__reaction {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: transparent;
  box-shadow: none;
}

.post-options__share-group {
  gap: 0.5rem;
  align-items: flex-end;
  text-align: right;
}

.post-options__share-title,
.post-options__reaction-title {
  color: #5f6658;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-options__reaction {
  gap: 0.6rem;
  align-items: flex-start;
  text-align: left;
}

.post-reactions {
  min-height: 3.8rem;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f3ee;
  color: #343a30;
}

.post-reactions__button {
  height: 3.8rem;
  margin: 0;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.post-reactions__button--like {
  min-width: 6.4rem;
}

.post-reactions__button--dislike {
  width: 4.8rem;
  padding: 0 1.55rem 0 1.05rem;
}

.post-reactions__button:hover {
  background: #e4e8df;
}

.post-reactions__button:focus-visible {
  background: #ffffff;
  outline: 2px solid rgba(111, 159, 53, 0.55);
  outline-offset: -2px;
}

.post-reactions__button.is-active {
  background: #e4f1d6;
  color: #5d8f28;
}

.post-reactions__icon {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: 0 0 2rem;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.post-reactions__button--like .post-reactions__icon {
  -webkit-mask-image: url('../images/reactions/thumb-up-outline.svg');
  mask-image: url('../images/reactions/thumb-up-outline.svg');
}

.post-reactions__button--like.is-active .post-reactions__icon {
  -webkit-mask-image: url('../images/reactions/thumb-up-filled.svg');
  mask-image: url('../images/reactions/thumb-up-filled.svg');
}

.post-reactions__button--dislike .post-reactions__icon {
  -webkit-mask-image: url('../images/reactions/thumb-down-outline.svg');
  mask-image: url('../images/reactions/thumb-down-outline.svg');
}

.post-reactions__button--dislike.is-active .post-reactions__icon {
  -webkit-mask-image: url('../images/reactions/thumb-down-filled.svg');
  mask-image: url('../images/reactions/thumb-down-filled.svg');
}

.post-reactions__count {
  min-width: 1ch;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.post-reactions__divider {
  width: 1px;
  height: 2rem;
  flex: 0 0 1px;
  background: #d1d7cb;
}

.post-reactions.is-loading {
  opacity: 0.66;
}

.post-reactions.is-loading .post-reactions__button,
.post-reactions__button:disabled {
  cursor: wait;
}

.post .post-options__share {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.post .post-options__share-link,
.post .post-options__share-link:not(:first-of-type) {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3.6rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: #687064;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.post .post-options__share-link img {
  width: 2.65rem;
  height: 2.65rem;
  display: block;
  object-fit: contain;
}

.post .post-options__share-link svg {
  width: 2.35rem;
  height: 2.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post .post-options__share-link.post-options__copy,
.post .post-options__share-link.post-options__copy:not(:first-of-type) {
  border-radius: 50%;
  background: #edf5e5;
  color: #527d23;
}

.post .post-options__share-link.post-options__copy:hover {
  background: #dfeecf;
  color: #3f6519;
}

.post .post-options__share-link.post-options__copy:focus-visible {
  background: #edf5e5;
}

.post .post-options__share-link.post-options__copy svg {
  width: 2.05rem;
  height: 2.05rem;
  display: block;
}

.post .post-options__share-link:hover {
  background: transparent;
  color: #527d23;
  opacity: 0.78;
  transform: translateY(-2px);
}

.post .post-options__share-link:focus-visible {
  background: transparent;
  color: #527d23;
  outline: 2px solid rgba(111, 159, 53, 0.48);
  outline-offset: 0.35rem;
}

.post .related-posts {
  padding-top: 0;
  border-top: 0;
}

.post .related-posts__heading {
  width: 100%;
  justify-content: space-between;
}

.post .related-posts__controls {
  margin-left: auto;
  flex: 0 0 auto;
}

.post .related-posts__list {
  width: 100%;
  margin: 0 0 -2.4rem;
  padding: 2.4rem 0 4.8rem;
  scroll-padding-inline: 0;
}

.post .related-posts__heading::after {
  display: none;
}

.like-thanks-layer[hidden] {
  display: none;
}

html.has-like-thanks {
  overflow: hidden;
}

.like-thanks-layer {
  position: fixed;
  inset: 0;
  padding: 2.4rem;
  display: grid;
  place-items: center;
  z-index: 12010;
  background: rgba(22, 29, 18, 0.46);
  backdrop-filter: blur(0.45rem);
  opacity: 0;
  transition: opacity 220ms ease;
}

.like-thanks-layer.is-visible {
  opacity: 1;
}

.like-thanks {
  position: relative;
  width: min(52rem, 100%);
  max-height: calc(100dvh - 4.8rem);
  padding: 3.2rem 3.4rem 3rem;
  overflow-y: auto;
  border: 1px solid rgba(139, 195, 74, 0.24);
  border-radius: 2.8rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(185, 235, 126, 0.2), transparent 38%),
    #ffffff;
  box-shadow: 0 3rem 9rem rgba(18, 27, 13, 0.3);
  text-align: center;
  opacity: 0;
  transform: translateY(2.4rem) scale(0.95);
  transition: opacity 220ms ease, transform 360ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.like-thanks-layer.is-visible .like-thanks {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.like-thanks__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f3f5f0;
  color: #687064;
  cursor: pointer;
}

.like-thanks__close svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.like-thanks__close:hover,
.like-thanks__close:focus-visible {
  background: #e6efdd;
  color: #3e5f1d;
  outline: none;
}

.like-thanks__icon {
  width: 6.2rem;
  height: 6.2rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  background: linear-gradient(145deg, #b9eb7e, #79ad3f);
  box-shadow: 0 1rem 2.5rem rgba(111, 159, 53, 0.25);
  color: #ffffff;
  animation: thanks-heart 760ms cubic-bezier(0.2, 0.9, 0.2, 1) 120ms both;
}

.like-thanks__icon svg {
  width: 3.2rem;
  height: 3.2rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
}

.like-thanks__content {
  min-width: 0;
}

.post .like-thanks__title {
  margin: 1.8rem 0 0;
  color: #20251d;
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  text-transform: none;
  text-wrap: balance;
}

.like-thanks__text,
.like-thanks__prompt {
  max-width: 43rem;
  margin: 1rem auto 0;
  color: #62695d;
  font-size: 1.45rem;
  line-height: 1.55;
}

.like-thanks__prompt {
  margin-top: 1.8rem;
  color: #353b31;
  font-weight: 650;
}

.like-thanks__share {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.post .like-thanks__share a {
  width: 100%;
  min-height: 4.8rem;
  margin: 0;
  padding: 1.1rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  border: 1px solid #dfe8d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.7rem 2rem rgba(33, 48, 23, 0.06);
  color: #293124;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.like-thanks__share-action img,
.like-thanks__copy-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
  flex: 0 0 2.2rem;
}

.like-thanks__copy-icon {
  stroke: #679b31;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post .like-thanks__share a:hover,
.post .like-thanks__share a:focus-visible {
  border-color: #a9ce7f;
  background: #f7fbf3;
  box-shadow: 0 1rem 2.6rem rgba(73, 104, 45, 0.12);
  color: #315410;
  outline: none;
  transform: translateY(-0.15rem);
}

.like-thanks__copy-field {
  width: 100%;
  min-width: 0;
  margin-top: 1rem;
  padding: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #dfe8d8;
  border-radius: 999px;
  background: #f7f9f5;
  box-shadow: inset 0 0.1rem 0.2rem rgba(31, 45, 20, 0.03);
}

.like-thanks__copy-url {
  min-width: 0;
  padding-left: 0.9rem;
  overflow: hidden;
  color: #687064;
  font-size: 1.25rem;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.like-thanks__copy-button {
  min-height: 4rem;
  margin: 0;
  padding: 0.85rem 1.35rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid #8fbd58;
  border-radius: 999px;
  background: #a8d96f;
  color: #1e3211;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.like-thanks__copy-button .like-thanks__copy-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex-basis: 1.8rem;
  stroke: currentColor;
}

.like-thanks__copy-button:hover,
.like-thanks__copy-button:focus-visible {
  border-color: #719f3c;
  background: #b9e886;
  box-shadow: 0 0.7rem 1.8rem rgba(91, 134, 45, 0.18);
  outline: none;
  transform: translateY(-0.1rem);
}

.copy-toast[hidden] {
  display: none;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(2.4rem, env(safe-area-inset-bottom));
  z-index: 12030;
  width: min(40rem, calc(100vw - 3.2rem));
  min-height: 5.6rem;
  padding: 0.8rem 0.8rem 0.8rem 1rem;
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) 3.6rem;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(132, 181, 76, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1.8rem 5rem rgba(20, 34, 11, 0.24);
  opacity: 0;
  transform: translate(-50%, 1.6rem);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-toast__icon {
  width: 3.6rem;
  height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f6dc;
  color: #568d22;
}

.copy-toast__icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-toast__text {
  color: #2b3326;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.copy-toast__close {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a8175;
  cursor: pointer;
}

.copy-toast__close svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.copy-toast__close:hover,
.copy-toast__close:focus-visible {
  background: #f0f4ec;
  color: #355b15;
  outline: none;
}

@keyframes thanks-heart {
  0% { opacity: 0; transform: rotate(-12deg) scale(0.55); }
  58% { opacity: 1; transform: rotate(5deg) scale(1.12); }
  100% { opacity: 1; transform: rotate(0) scale(1); }
}

@media only screen and (max-width: 767px) {
  .post .post-options {
    margin-top: 3rem;
    gap: 2rem;
  }

  .like-thanks-layer {
    padding: 1.6rem;
  }

  .like-thanks {
    max-height: calc(100dvh - 3.2rem);
    padding: 2.6rem 2rem 2.2rem;
    border-radius: 2.2rem;
  }

  .like-thanks__icon {
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 1.7rem;
  }
}

@media only screen and (max-width: 479px) {
  .post .post-options {
    align-items: stretch;
    flex-direction: column;
    gap: 1.8rem;
  }

  .post-options__reaction {
    align-items: flex-start;
  }

  .like-thanks__share {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .post .like-thanks__share a {
    min-height: 6.2rem;
    padding: 0.8rem 0.45rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    font-size: 1.08rem;
  }

  .like-thanks__copy-field {
    padding: 0.45rem;
    gap: 0.5rem;
    border-radius: 999px;
  }

  .like-thanks__copy-url {
    padding-left: 0.65rem;
    font-size: 1.15rem;
  }

  .like-thanks__copy-button {
    min-height: 3.8rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 1.15rem;
  }

  .like-thanks__copy-button .like-thanks__copy-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-reactions__button,
  .post .post-options__share-link,
  .like-thanks-layer,
  .like-thanks,
  .like-thanks__icon,
  .copy-toast {
    animation: none;
    transition: none;
  }
}

