/* Prikola.net category 1: complete anecdote text with an in-feed expander. */
.short_story.feed-card--anecdote .feed-card__header {
  padding-bottom: 8px;
}

.short_story .feed-card__copy--anecdote {
  padding-top: 8px;
  padding-bottom: 12px;
}

.short_story .feed-card__excerpt--anecdote {
  position: relative;
  display: block;
  max-height: none;
  margin: 0;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.short_story .feed-card__copy--anecdote.is-collapsible .feed-card__excerpt--anecdote {
  transition: max-height 280ms ease;
}

.short_story .feed-card__excerpt--anecdote.is-collapsed {
  max-height: var(--anecdote-collapsed-height, 200px);
  overflow: hidden;
}

.short_story .feed-card__excerpt--anecdote.is-collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--surface) 88%);
  pointer-events: none;
}

.anecdote-slicer__toggle {
  min-height: 36px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent-main);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.anecdote-slicer__toggle:hover {
  color: var(--accent-hover, #d95f00);
  text-decoration: underline;
}

.anecdote-slicer__toggle:focus-visible {
  outline: 2px solid var(--control-focus-ring, var(--accent-main));
  outline-offset: 3px;
}

.theme-dark .short_story .feed-card__excerpt--anecdote.is-collapsed::after {
  background: linear-gradient(to bottom, transparent, var(--surface) 88%);
}

@media (prefers-reduced-motion: reduce) {
  .short_story .feed-card__copy--anecdote.is-collapsible .feed-card__excerpt--anecdote {
    transition-duration: 0.01ms;
  }
}
