/* =============================================================================
   post.css — public post permalink page
   ============================================================================= */

.post-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 6rem;
}

@media (min-width: 768px) {
  .post-page {
    padding: 5rem var(--gutter) 8rem;
  }
}

.post-page__header {
  margin-bottom: 3rem;
}

.post-page__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 500;
  font-variation-settings:
    "opsz" 144,
    "WONK" 1;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 2rem;
}

.post-page__byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.post-page__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-page__avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--oxblood);
  color: var(--on-oxblood);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}

.post-page__byline-info {
  display: flex;
  flex-direction: column;
}

.post-page__author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.post-page__meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.post-page__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 3rem;
  border: 1px solid var(--rule);
}

.post-page__media {
  margin-bottom: 2.5rem;
}

.post-page__media .media-carousel {
  margin: 0;
  border-radius: 14px;
}

.post-page__media .media-carousel__slide img {
  aspect-ratio: 16 / 9;
}

/* --- Article body ------------------------------------------------------- */
/* Full editorial typography for rendered markdown. */
.post-page__body {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}

@media (min-width: 768px) {
  .post-page__body {
    font-size: 1.25rem;
    line-height: 1.72;
  }
}

@media (max-width: 767px) {
  .comment__reply-form-wrapper {
    padding: 0.75rem;
  }

  .reply-form .comment-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reply-form .comment-form__submit {
    width: 100%;
    justify-content: center;
  }

  .reply-form .comment-form__hint {
    text-align: left;
  }
}

.post-page__body p {
  margin-bottom: 1.5em;
}

.post-page__body h2 {
  font-size: 1.75em;
  font-weight: 500;
  font-variation-settings:
    "opsz" 96,
    "WONK" 1;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2em 0 0.75em;
}

.post-page__body h3 {
  font-size: 1.35em;
  font-weight: 500;
  margin: 1.75em 0 0.5em;
}

.post-page__body a {
  color: var(--oxblood-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-page__body blockquote {
  padding-left: 1.25rem;
  border-left: 3px solid var(--oxblood-text);
  font-style: italic;
  color: var(--ink-soft);
  margin: 1.5em 0;
}

.post-page__body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: rgba(var(--ink-rgb), 0.06);
  padding: 0.15em 0.35em;
}

.post-page__body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-page__body pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

.post-page__body ul,
.post-page__body ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}

.post-page__body li {
  margin-bottom: 0.4em;
}

.post-page__body img {
  margin: 2em 0;
  border: 1px solid var(--rule);
}

/* --- Like row (sits alone between body and comments) -------------------- */
.post-page__like {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* --- Comments ----------------------------------------------------------- */
.comments {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 5.5rem;
}

.comments__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
}

.comments__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.comments__back:hover {
  color: var(--oxblood-text);
}

.comments__back svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

#comments-heading:focus {
  outline: none;
}

#post-top {
  scroll-margin-top: 5.5rem;
}

.comment[id] {
  scroll-margin-top: 5.5rem;
}

.comments__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-variation-settings:
    "opsz" 96,
    "WONK" 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.comments__title span:first-child {
  font-style: italic;
  color: var(--oxblood-text);
  margin-right: 0.35rem;
}

.comments__login-prompt {
  padding: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-family: var(--font-display);
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.comments__empty {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  padding: 1.5rem 0;
}

/* --- Comment ------------------------------------------------------------ */
.comment {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.comment__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment__avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--oxblood);
  color: var(--on-oxblood);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
}

.comment__author-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.comment__author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.comment__author-handle {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.comment__badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  background: rgba(var(--oxblood-text-rgb), 0.1);
  color: var(--oxblood-text);
}

.comment__time {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.comment__time::before {
  content: "·";
  margin-right: 0.5rem;
}

.comment__body {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  white-space: pre-wrap;
  /* preserves newlines, escapes HTML */
  word-wrap: break-word;
}

/* --- Comment form ------------------------------------------------------- */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-form__input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.comment-form__input:focus {
  border-color: var(--oxblood-text);
}

.comment-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.comment-form__hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-style: italic;
}

.comment-form__submit {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

.post-page__footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* --- Translation bar --------------------------------------------------- */
.post-page__translate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(var(--oxblood-text-rgb), 0.05);
  border-left: 3px solid var(--oxblood-text);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.post-page__translate-link {
  color: var(--oxblood-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.post-page__translate-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Share button ------------------------------------------------------- */
/*.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}*/

.share-btn:hover {
  color: var(--oxblood-text);
  border-color: var(--oxblood-text);
  background: rgba(var(--oxblood-text-rgb), 0.04);
}

.share-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Share toast -------------------------------------------------------- */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(var(--shadow-rgb), 0.25);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  max-width: calc(100vw - 2rem);
  word-break: break-all;
  text-align: center;
}

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

.post-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.post-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--oxblood-text);
  text-decoration: none;
  background: rgba(var(--oxblood-text-rgb), 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.post-tag:hover {
  background: rgba(var(--oxblood-text-rgb), 0.1);
}

/* --- Comment Actions & Like Button -------------------------------------- */
.comment__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.9rem;
  margin-left: 0;
}

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.comment-like-btn:hover {
  color: var(--oxblood-text);
}

.comment-like-btn.is-liked {
  color: var(--oxblood-text);
}

.comment-like-btn__icon {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.comment-like-btn:active .comment-like-btn__icon {
  transform: scale(1.2);
}

/* --- Reply Toggle & Form ------------------------------------------------ */
.comment__reply-details {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.comment__reply-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(var(--oxblood-text-rgb), 0.02);
  padding: 0.45rem 0.8rem;
  transition: all 0.15s ease;
  user-select: none;
}

.comment__reply-details summary::-webkit-details-marker {
  display: none;
}

.comment__reply-details summary:hover,
.comment__reply-details[open] summary {
  color: var(--oxblood-text);
  border-color: rgba(var(--oxblood-text-rgb), 0.25);
  background: rgba(var(--oxblood-text-rgb), 0.06);
}

.comment-reply-btn__icon {
  font-size: 0.9rem;
  line-height: 1;
}

.comment__reply-form-wrapper {
  width: min(100%, 760px);
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(var(--oxblood-text-rgb), 0.12);
  border-radius: 12px;
  background: var(--paper-deep);
  box-shadow: none;
}

.comment__reply-form-header {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.comment__reply-form-header strong {
  color: var(--ink);
  font-weight: 600;
}

.reply-form {
  gap: 0.6rem;
}

.reply-form .comment-form__input {
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  min-height: 72px;
  background: var(--paper);
  border: 1px solid rgba(var(--oxblood-text-rgb), 0.1);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(var(--shadow-rgb), 0.02);
  outline: none;
}

.reply-form .comment-form__input:focus {
  border-color: var(--oxblood-text);
  box-shadow: none;
}

.reply-form .comment-form__actions {
  margin-top: 0.15rem;
  align-items: center;
}

.reply-form .comment-form__submit {
  min-width: 110px;
  border-radius: 10px;
}

/* --- Nested Replies (Clean Thread) -------------------------------------- */
.comment__replies {
  margin-top: 1rem;
  margin-left: 0.5rem;
  /* Tighter indent for mobile */
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  /* The vertical thread line */
}

.comment__reply-wrapper {
  margin-bottom: 1.25rem;
}

.comment__reply-wrapper.is-hidden {
  display: none;
}

/* Remove the border from the last nested comment */
.comment__reply-wrapper:last-child .comment {
  border-bottom: none;
  padding-bottom: 0;
}

/* Make nested avatars and text smaller to save space */
.comment__replies .comment__avatar {
  width: 28px;
  height: 28px;
}

.comment__replies .comment__author-name {
  font-size: 0.85rem;
}

.comment__replies .comment__author-handle {
  font-size: 0.75rem;
}

.comment__replies .comment__body {
  font-size: 0.95rem;
  margin-left: 2.5rem;
}

/* --- Load More Button --------------------------------------------------- */
.comment__load-more {
  background: none;
  border: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  color: var(--oxblood-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.comment__load-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Truncation --------------------------------------------------------- */
.comment__body.is-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment__read-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.25rem;
  color: var(--oxblood-text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.comment__read-more:hover {
  text-decoration: underline;
}

/* --- Article Engagement Bar --------------------------------------------- */
.post-page__engagement {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.engagement-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Base style for all engagement actions */
.engagement-bar .like-btn,
.engagement-bar .save-btn,
.engagement-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent !important;
  border: none !important;
  padding: 0.5rem !important;
  /* Touch target */
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Hover states */
.engagement-bar .like-btn:hover,
.engagement-bar .save-btn:hover,
.engagement-action:hover {
  color: var(--ink);
}

/* Active/Liked states */
.engagement-bar .like-btn.is-liked,
.engagement-bar .save-btn.is-saved {
  color: var(--oxblood-text);
}

/* Icons inside the actions */
.engagement-bar .like-btn__icon,
.engagement-bar .save-btn__icon,
.engagement-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

/* Like animation */
.engagement-bar .like-btn:active .like-btn__icon,
.engagement-bar .save-btn:active .save-btn__icon {
  transform: scale(1.2);
}

/* The overflow container */
.engagement-overflow {
  position: relative;
  margin-left: auto;
  /* Pushes it to the far right */
}

/* Fix for the dropdown menu inside the engagement bar */
.engagement-bar .actions-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  /* Opens upwards */
  top: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 -4px 12px rgba(var(--shadow-rgb), 0.1);
  min-width: 180px;
  z-index: 100;
}

.engagement-bar .actions-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}

.engagement-bar .actions-menu button:hover {
  background: var(--paper-deep);
}

/* Mobile adjustments */
@media (max-width: 500px) {
  .engagement-bar {
    gap: 1rem;
  }

  .engagement-bar .like-btn,
  .engagement-bar .save-btn,
  .engagement-action {
    font-size: 0.85rem;
  }

  /* Hide the "Share" text on very small screens, leaving just the icon */
  .engagement-action[data-share-url] span {
    display: none;
  }
}

/* --- Persistent post actions ------------------------------------------- */
/* One DOM node: a compact bottom bar on phones/tablets, a vertical rail in
   the article's left margin on desktop. Hidden at the header and again once
   the end-of-article bar or comments are on screen. */
.post-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.3rem var(--gutter) calc(0.3rem + env(safe-area-inset-bottom));
  background: rgba(var(--paper-rgb), 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px rgba(var(--shadow-rgb), 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s linear 0.16s;
}

.post-actions.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.post-actions.is-suspended {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hide before JS notices the prompt in browsers that support :has(). Kept in
   its own rule so an unsupported selector can't invalidate the fallback. */
@supports selector(:has(*)) {
  body:has(.auth-prompt.is-open) .post-actions {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.post-actions__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.25rem;
  max-width: 520px;
  margin: 0 auto;
}

.post-actions .like-btn,
.post-actions .save-btn,
.post-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.65rem !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.post-actions .like-btn:hover,
.post-actions .save-btn:hover,
.post-actions__btn:hover {
  color: var(--ink);
}

.post-actions .like-btn.is-liked,
.post-actions .save-btn.is-saved {
  color: var(--oxblood-text);
}

.post-actions .like-btn__icon,
.post-actions .save-btn__icon,
.post-actions__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.post-actions .like-btn:active .like-btn__icon,
.post-actions .save-btn:active .save-btn__icon,
.post-actions__btn:active .post-actions__icon {
  transform: scale(1.15);
}

.post-actions .like-btn:focus-visible,
.post-actions .save-btn:focus-visible,
.post-actions__btn:focus-visible {
  outline: 2px solid var(--oxblood-text);
  outline-offset: 2px;
}

.post-actions__count {
  font-variant-numeric: tabular-nums;
}

/* Optimistic state: fill the heart/bookmark before the server fragment
   swaps in. Both directions are stated explicitly so CSS also overrides the
   server-rendered fill attribute when un-liking or un-saving. */
.engagement-bar .like-btn.is-liked .like-btn__icon path,
.post-actions .like-btn.is-liked .like-btn__icon path {
  fill: currentColor;
}

.engagement-bar .like-btn:not(.is-liked) .like-btn__icon path,
.post-actions .like-btn:not(.is-liked) .like-btn__icon path {
  fill: none;
}

.engagement-bar .save-btn.is-saved .save-btn__icon path,
.post-actions .save-btn.is-saved .save-btn__icon path {
  fill: currentColor;
}

.engagement-bar .save-btn:not(.is-saved) .save-btn__icon path,
.post-actions .save-btn:not(.is-saved) .save-btn__icon path {
  fill: none;
}

/* Keep the share toast above the bottom bar while the bar is on screen. */
@media (max-width: 1023px) {
  body.has-post-actions .share-toast {
    bottom: calc(4.9rem + env(safe-area-inset-bottom));
  }
}

/* Desktop: a quiet vertical rail in the margin, not a floating card. */
@media (min-width: 1024px) {
  .post-actions {
    left: calc(50% - 360px - 64px);
    right: auto;
    bottom: auto;
    top: 50%;
    width: 44px;
    padding: 0;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translate(-8px, -50%);
  }

  .post-actions.is-visible {
    transform: translate(0, -50%);
  }

  .post-actions__inner {
    flex-direction: column;
    gap: 0.2rem;
    max-width: none;
    margin: 0;
  }

  .post-actions .like-btn,
  .post-actions .save-btn,
  .post-actions__btn {
    flex-direction: column;
    gap: 0.1rem;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0.3rem 0 !important;
    border-radius: 50%;
  }

  .post-actions .like-btn:hover,
  .post-actions .save-btn:hover,
  .post-actions__btn:hover {
    background: rgba(var(--ink-rgb), 0.05) !important;
  }

  .post-actions__count {
    font-size: 0.68rem;
  }

  .post-actions .like-btn__icon,
  .post-actions .save-btn__icon,
  .post-actions__icon {
    width: 19px;
    height: 19px;
  }
}

/* --- Comment form status ------------------------------------------------ */
.comment-form__status {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.comment-form__status a {
  color: var(--oxblood-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .post-actions,
  .post-actions .like-btn__icon,
  .post-actions .save-btn__icon,
  .post-actions__icon {
    transition: none;
  }
}

@media print {
  .post-actions {
    display: none !important;
  }
}
